/* sup?'s own page on grimmgroup.eu (website/src/sup/index.html): the app's night, like its promo film.
   Instrument Sans for what it says, the house's EB Garamond italic for small lines above it. Motion comes from
   sup.js, which adds html.js; without it every part of the page is simply there. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

body.supnight {
  --paper: #100e0b;
  --ink: #efe6d2;
  --accent: #b09a64;
  --soft: #bcb199;
  --night: #100e0b;
  --day: #f3ebd8;
  --dawn: #7a482e;
  --day-ink: #2b2416;
  --day-soft: #5b4f36;
  --hair: rgba(239, 230, 210, 0.13);
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  font-variant-numeric: normal;
  overflow-x: clip;
}
body.supnight .site-header { border-bottom-color: var(--hair); position: relative; z-index: 2; }
body.supnight .site-header .brand span, body.supnight .site-nav { font-family: "EB Garamond", Garamond, serif; }
body.supnight .site-header .wrap, body.supnight .site-footer .wrap { max-width: 78rem; }
body.supnight main.wrap { max-width: none; padding: 0; }
body.supnight .site-footer { margin-top: 0; border-top-color: var(--hair); }

.c { max-width: 78rem; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); position: relative; }
.c.wide { max-width: 90rem; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
.supnight h1, .supnight h2, .supnight h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.supnight h1 { font-size: clamp(3.1rem, 8.4vw, 7.6rem); margin: 0 0 0.35em; }
.supnight h2 { font-size: clamp(2.5rem, 6vw, 5.2rem); margin: 0 0 0.4em; }
.supnight h3 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 0.5em; }
.kicker, .when { font-family: "EB Garamond", Garamond, serif; font-style: italic; font-size: 1.25rem; color: var(--soft); margin: 0 0 1.1rem; letter-spacing: 0; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.38rem); line-height: 1.45; color: var(--soft); max-width: 34rem; letter-spacing: -0.01em; }
.lead.narrow { max-width: 30rem; }
.center .lead { margin-left: auto; margin-right: auto; }
.fine { font-size: 0.85rem; color: var(--soft); opacity: 0.8; }
.supnight a:focus-visible, .supnight button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* Store badges: the official artwork, the same height side by side (Apple's at least 40 px). */
.stores { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin: 2rem 0 0.9rem; }
.center .stores { justify-content: center; }
.store { display: block; text-decoration: none; transition: transform 0.4s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store img { height: 3.1rem; width: auto; display: block; }

/* The phone: graphite frame, light edge, the screen at the app's own 1080 x 2400. */
.phone { position: relative; width: 100%; aspect-ratio: 1124 / 2444; padding: 2%; border-radius: 13% / 6%;
         background: linear-gradient(140deg, #6b645a 0%, #26231f 18%, #121110 50%, #2c2925 82%, #5a544b 100%);
         box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), 0 50px 100px rgba(0, 0, 0, 0.5), 0 14px 30px rgba(0, 0, 0, 0.35); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 11.5% / 5.2%; overflow: hidden; background: #000; }
.phone .screen::after { content: ""; position: absolute; left: 50%; top: 1.6%; width: 3.8%; aspect-ratio: 1; transform: translateX(-50%);
                        border-radius: 50%; background: #050505; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.phone img, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 62rem); display: flex; align-items: center; padding: clamp(3rem, 8vh, 6rem) 0; overflow: hidden; }
.streets { position: absolute; inset: 0; pointer-events: none;
           -webkit-mask-image: radial-gradient(circle at 72% 48%, #000 var(--r), transparent calc(var(--r) + 35%));
           mask-image: radial-gradient(circle at 72% 48%, #000 var(--r), transparent calc(var(--r) + 35%));
           --r: 140%; }
.streets::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 8%, rgba(16, 14, 11, 0.55) 45%, rgba(16, 14, 11, 0.2) 70%), linear-gradient(0deg, var(--night), transparent 30%); }
.streets .map { position: absolute; left: 50%; top: 50%; width: max(100%, 178svh); aspect-ratio: 16 / 9; translate: -50% -50%;
                background: url("streets.webp") center / 100% 100% no-repeat; opacity: 0.85; will-change: transform; }
/* Placed by sup.js from data-x/data-y (the site's security policy allows no inline styles). */
.dot { display: none; }
html.js .dot { display: block; }
.dot { position: absolute; width: 0.5rem; height: 0.5rem; margin: -0.25rem 0 0 -0.25rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0.8rem var(--c); }
.dot.you { --c: #35ddf0; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem; }
.dot.you::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); animation: ping 2.4s var(--ease) infinite; }
.dot.friend { --c: #3ce01a; } .dot.stranger { --c: #8c867a; } .dot.business { --c: #3d7bff; } .dot.organization { --c: #ff3b3b; }
.dot.job { --c: #d12ce6; } .dot.event { --c: #ff8a00; } .dot.activity { --c: #ffd000; } .dot.location { --c: #c98a4e; } .dot.post { --c: #fff; }
.dot.event, .dot.activity { animation: glow 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 0 1.6rem 0.2rem var(--c); } }

.hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; }
.hero-text { position: relative; z-index: 1; }
.hero-phone { justify-self: center; width: min(68vw, 21rem); perspective: 1600px; }
.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, -8deg)); transition: transform 0.9s var(--ease); }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-phone { width: min(clamp(16rem, 24vw, 22rem), calc((100svh - 11rem) / 2.17)); }
}

/* The film */
.film { padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 7rem); }
.player { position: relative; margin-top: 2.5rem; border-radius: clamp(0.75rem, 1.6vw, 1.5rem); overflow: hidden; background: #000;
          box-shadow: 0 0 0 1px var(--hair), 0 60px 120px rgba(0, 0, 0, 0.55); aspect-ratio: 16 / 9; }
.player video { display: block; width: 100%; height: 100%; }
.play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 1.1rem; border: 0; cursor: pointer;
        padding: clamp(1rem, 4.5%, 3.4rem) clamp(1rem, 6.8%, 5.6rem); color: var(--ink);
        background: linear-gradient(0deg, rgba(16, 14, 11, 0.55), rgba(16, 14, 11, 0) 40%);
        font: 600 1.15rem/1 var(--sans); letter-spacing: -0.01em; }
.play[hidden] { display: none; }
.play > span:last-child { margin-bottom: 1.72rem; }
.play .tri { flex: none; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: rgba(239, 230, 210, 0.94); position: relative;
             transition: transform 0.5s var(--ease); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.play .tri::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 0.75rem 0 0.75rem 1.2rem;
                    border-color: transparent transparent transparent var(--night); }
.play:hover .tri { transform: scale(1.08); }

/* The story: steps on the left, the phone staying on the right and changing screen with them. */
.story { padding: 2rem 0 4rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 3.5rem 0; border-top: 1px solid var(--hair); }
.step p { font-size: 1.1rem; line-height: 1.55; color: var(--soft); max-width: 31rem; }
.step .when { font-size: 1.15rem; margin-bottom: 0.8rem; }
.phone.inline { width: min(74vw, 20rem); margin: 2.4rem auto 0; }
.sticky { display: none; }
@media (min-width: 56rem) {
  .story-grid { display: grid; grid-template-columns: 1fr minmax(16rem, 0.8fr); gap: 4rem; }
  .sticky { display: block; order: 2; }
  .sticky .phone { position: sticky; top: calc(50vh - min(39vh, 23rem)); height: min(78vh, 46rem); width: auto; margin: 0 auto; }
  .steps { order: 1; }
  .step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding: 0; }
  .phone.inline { display: none; }
  html.js .step { opacity: 0.28; transition: opacity 0.6s var(--ease); }
  html.js .step.active { opacity: 1; }
}
.stack img { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease); }
.stack img.on { opacity: 1; transform: none; }

/* Your data */
.private { padding: clamp(5rem, 12vh, 9rem) 0; }
.data { margin: 3rem 0 0; }
.fact { display: grid; gap: 0.4rem 3rem; padding: 1.8rem 0; border-top: 1px solid var(--hair); }
.fact:last-child { border-bottom: 1px solid var(--hair); }
.fact dt { font-weight: 600; font-size: clamp(2.1rem, 3.6vw, 3.3rem); letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.fact dd { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--soft); max-width: 36rem; align-self: center; }
@media (min-width: 48rem) { .fact { grid-template-columns: minmax(15rem, 0.75fr) 1fr; } }

/* Languages: the night turns to day, like the film's Saturday. */
/* The kicker starts only where the dawn has turned into day, so it reads on a plain background. */
.langs { color: var(--day-ink); padding: 17rem 0 14rem;
         background: linear-gradient(180deg, var(--night) 0, var(--dawn) 5rem, #c79b78 9rem, var(--day) 13rem, var(--day) calc(100% - 12rem), var(--dawn) calc(100% - 5rem), var(--night) 100%); }
.langs .kicker, .langs .lead { color: var(--day-soft); }
.lang-row { list-style: none; margin: 3.5rem 0 0; padding: 1rem clamp(1.25rem, 5vw, 3rem) 2rem; display: flex; gap: clamp(1rem, 2vw, 2rem);
            overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lang-row::-webkit-scrollbar { display: none; }
.lang-row li { flex: 0 0 auto; width: clamp(9.5rem, 13vw, 12.5rem); scroll-snap-align: center; text-align: center; }
.lang-row span { display: block; margin-top: 1.2rem; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.phone.mini { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(43, 36, 22, 0.28); }
@media (min-width: 80rem) { .lang-row { justify-content: center; overflow: visible; } }

/* Get it */
.get { padding: clamp(5rem, 12vh, 8rem) 0 4rem; }
.app-icon { width: 7.5rem; height: 7.5rem; margin: 0 auto 2.2rem; display: block; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.more { margin-top: 6rem; padding-top: 2rem; border-top: 1px solid var(--hair); display: grid; gap: 1rem; font-size: 0.95rem; color: var(--soft); }
.more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.more a { color: var(--ink); }
.more p { margin: 0; }

/* Motion (sup.js). Delays as classes: the site's security policy allows no inline styles. */
.d2 { --d: 0.2s; } .d25 { --d: 0.25s; } .d35 { --d: 0.35s; } .d4 { --d: 0.4s; } .d5 { --d: 0.5s; } .d6 { --d: 0.6s; }
html.js [data-reveal] { opacity: 0; transform: translateY(1.8rem); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .lang-row li { opacity: 0; transform: translateY(5rem); transition: opacity 1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--i) * 0.08s); }
.lang-row li:nth-child(2) { --i: 1; } .lang-row li:nth-child(3) { --i: 2; } .lang-row li:nth-child(4) { --i: 3; }
.lang-row li:nth-child(5) { --i: 4; } .lang-row li:nth-child(6) { --i: 5; } .lang-row li { --i: 0; }
html.js .lang-row.in li { opacity: 1; transform: none; }
html.js .lang-row[data-reveal] { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }
html.js [data-split] .w > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 0.055s); }
html.js [data-split].in .w > span { transform: none; }
html.js .streets { animation: reveal 2.6s var(--ease) 0.1s both; }
@keyframes reveal { from { --r: 0%; } to { --r: 140%; } }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js .lang-row li, html.js [data-split] .w > span { opacity: 1; transform: none; transition: none; }
  html.js .streets { animation: none; }
  .dot, .dot.you::after { animation: none; }
  .tilt, .stack img { transition: none; }
}
@media (max-width: 40rem) {
  .play { gap: 0.7rem; font-size: 0.95rem; }
  .play .tri { width: 2.8rem; height: 2.8rem; }
  .play .tri::after { border-width: 0.5rem 0 0.5rem 0.8rem; }
  .play > span:last-child { margin-bottom: 0.95rem; }
}

/* Get sup? (/getsup/, where the app's "Invite your friends" ad leads) */
.invite { min-height: calc(100svh - 12rem); display: flex; align-items: center; }
.invite .lead.narrow { margin-top: 2.5rem; font-size: 1.05rem; }

/* Advertise on sup? (/sup/advertise/) */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 2rem 0 0; }
.actions.center { justify-content: center; }
.btn { display: inline-block; padding: 0.95rem 1.6rem; border-radius: 999px; background: var(--ink); color: var(--night);
       font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; transition: transform 0.4s var(--ease), background 0.3s; }
.btn:hover { transform: translateY(-2px); background: #fff; }
.actions .quiet { color: var(--soft); font-size: 1rem; text-decoration-color: var(--hair); }
.actions .quiet:hover { color: var(--ink); }
.ad-how { padding: clamp(4rem, 10vh, 7rem) 0; }
.ad-steps { list-style: none; margin-top: 3rem; display: grid; gap: 4rem 3rem; }
.ad-steps li { max-width: 22rem; }
.ad-steps .phone { width: min(70vw, 17rem); margin-bottom: 2rem; }
.ad-steps .n { font-family: "EB Garamond", Garamond, serif; font-style: italic; font-size: 1.4rem; color: var(--accent); margin: 0 0 0.3rem; }
.ad-steps h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.ad-steps p { color: var(--soft); font-size: 1.05rem; line-height: 1.5; margin: 0; }
@media (min-width: 56rem) { .ad-steps { grid-template-columns: repeat(3, 1fr); } .ad-steps li:nth-child(2) { margin-top: 4rem; } .ad-steps li:nth-child(3) { margin-top: 8rem; } }
.ad-kinds { padding: clamp(4rem, 10vh, 7rem) 0; }
.kinds { display: grid; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .kinds { grid-template-columns: 1fr 1fr; } }
.kind h3 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.kind p { color: var(--soft); font-size: 1.05rem; line-height: 1.55; max-width: 32rem; }
.kind img, .template img { display: block; width: 100%; height: auto; border-radius: clamp(0.6rem, 1.4vw, 1.1rem); margin-top: 1.4rem;
                           box-shadow: 0 0 0 1px var(--hair), 0 30px 70px rgba(0, 0, 0, 0.45); }
.ad-files { padding: clamp(4rem, 10vh, 7rem) 0 2rem; }
.template { margin: 2.5rem 0 0; }
.files { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--hair); }
.files li { border-bottom: 1px solid var(--hair); }
.files a { display: grid; gap: 0.2rem 2rem; padding: 1.3rem 0; text-decoration: none; transition: padding 0.4s var(--ease); }
.files a:hover { padding-left: 0.6rem; }
.files .f { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.files .t { color: var(--soft); }
@media (min-width: 48rem) { .files a { grid-template-columns: minmax(14rem, 0.5fr) 1fr; align-items: baseline; } }
@media (max-width: 55.99rem) { .ad-hero .hero-phone { display: none; } .ad-hero { min-height: 0; } }
