/* Gereon Studios: homepage. A grey studio wall, tight grotesk type, mono labels.
   The opening plays on its own: the words drift apart and the studio introduces itself. */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("assets/fonts/fredoka-600.woff") format("woff"); }

:root {
  --wall: #BCBCBC; --wall-2: #B2B2B2; --ink: #2A2A2A; --ink-2: #4A4A4A; --ink-3: #4F4F4F; --line: rgba(0,0,0,0.14); --paper: #F4F4F2;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pad: clamp(16px, 2.2vw, 32px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 72px; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.4 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--display); font-weight: 500; }
p { margin: 0; }

/* ---------- Top bar: logo left, pills right, floating over everything ---------- */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding: calc(var(--pad) + env(safe-area-inset-top, 0px)) var(--pad) 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; }
.brand .logo { width: 24px; height: 24px; flex: none; }
.bar nav { display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 99px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease); }
.pill:active { transform: scale(0.97); }
.pill.dark { background: var(--ink); color: #EDEDED; }
.pill.line { border-color: var(--ink); background: rgba(188,188,188,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) {
  .pill.dark:hover { background: #000; } .pill.line:hover { background: var(--ink); color: #EDEDED; }
}
@media (max-width: 640px) { .bar nav .hide-s { display: none; } }

/* ---------- The scene ---------- */
.scene { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.words { position: absolute; inset: 0; pointer-events: none; }
.stage { --fs: clamp(64px, 13.5vw, 240px); }
.w { position: absolute; left: 50%; white-space: nowrap; font: 500 var(--fs)/0.9 var(--display); letter-spacing: -0.065em; text-transform: uppercase; color: #333; will-change: transform; }
/* The first line starts at the page margin, so the M is never cut by the edge */
.w1 { top: 26%; left: var(--pad); margin-left: -0.035em; }
.w2 { top: 50%; transform: translateX(-8%); }
.mid { position: absolute; left: var(--pad); top: calc(26% + var(--fs) * 0.9 + 22px); text-align: left; font: 500 11px/1.35 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

/* The studio introduces itself: the statement inks in word by word as you scroll */
.intro { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: clamp(20px, 3vh, 36px); max-width: 1500px; margin: 0 auto; }
.intro .idx { padding: 0; }
.statement { font: 500 clamp(27px, 4.6vw, 76px)/1.02 var(--display); letter-spacing: -0.045em; color: var(--ink); max-width: 21ch; text-wrap: balance; }
.statement .wd { opacity: 0.16; transition: opacity 260ms ease; }
.statement .wd.on { opacity: 1; }
.facts { margin: clamp(8px, 2vh, 28px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; }
.facts > div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.facts dd { margin: 0; font: 500 clamp(17px, 1.5vw, 22px)/1.15 var(--display); letter-spacing: -0.02em; }
.js .rise { opacity: 0; will-change: transform, opacity; }
.js .intro { visibility: hidden; } .js .intro.live { visibility: visible; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; gap: 14px 16px; } .statement { max-width: none; font-size: clamp(30px, 8.4vw, 40px); } .intro { top: 50%; } }

.corner { position: absolute; bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px)); }
.corner.bl { left: var(--pad); max-width: 23ch; font: 400 14.5px/1.25 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.corner.br { right: var(--pad); font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: inline-flex; gap: 22px; }
.corner.br::after { content: "\2192"; }
.hint { position: absolute; left: 50%; bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: grid; justify-items: center; gap: 8px; }
.hint::after { content: ""; width: 1px; height: 26px; background: var(--ink-3); transform-origin: top; animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 640px) { .corner.bl { display: none; } .stage { --fs: 17.4vw; } .w2 { top: calc(26% + var(--fs) * 0.9 + 70px); } }

/* Without script, or with reduced motion: no pinning, the cards simply sit in their grid */
.no-js .scene, .static .scene { height: auto; }
.no-js .stage, .static .stage { position: relative; height: auto; overflow: visible; perspective: none; padding: 120px var(--pad) 48px; }
.no-js .words, .static .words { position: static; }
.no-js .w, .static .w { position: static; display: block; transform: none; font-size: clamp(56px, 12vw, 200px); }
.no-js .mid, .static .mid { position: static; transform: none; text-align: left; margin: 18px 0 40px; }
.no-js .intro, .static .intro { position: static; transform: none; visibility: visible; margin-top: 40px; }
.no-js .statement .wd, .static .statement .wd, .static .rise { opacity: 1; }
.no-js .corner, .no-js .hint, .static .corner, .static .hint { display: none; }

/* ---------- Sections ---------- */
.cat { padding: clamp(72px, 9vw, 140px) var(--pad) 0; }
.cat-head { display: grid; grid-template-columns: minmax(90px, 1fr) 5fr; align-items: end; gap: 0 20px; padding-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 2vw, 28px); }
.idx { font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 0.9em; }
.cat-head h2 { font-size: clamp(56px, 11vw, 190px); line-height: 0.86; letter-spacing: -0.065em; text-transform: uppercase; color: #333; }
.cat-head p { grid-column: 2; margin-top: 18px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }
@media (max-width: 640px) { .cat-head { grid-template-columns: 1fr; } .cat-head p { grid-column: 1; } .idx { padding-bottom: 14px; } }

.tile { border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: min(78vh, 720px); }
.t-copy { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.t-app { display: inline-flex; align-items: center; gap: 12px; margin-bottom: auto; padding-bottom: 40px; }
.t-app img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.swiby-word { font: 600 32px/1 "Fredoka", var(--display); letter-spacing: -0.01em; }
.tile h3 { font-size: clamp(38px, 5vw, 78px); line-height: 0.95; letter-spacing: -0.05em; text-wrap: balance; max-width: 12ch; }
.t-copy > p { margin: 22px 0 28px; max-width: 38ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.35; }
.ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.t-vis { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 56px); min-width: 0; }

.t-swiby { background: linear-gradient(140deg, #D6E7F6 0%, #E9E0F1 45%, #F6D2DE 100%); color: #26202B; }
.t-swiby .t-copy > p { color: #54495A; }
.t-swiby .pill.line { background: rgba(255,255,255,0.35); border-color: #26202B; }
@media (max-width: 900px) { .tile { grid-template-columns: 1fr; min-height: 0; } .t-app { margin-bottom: 0; } .tile h3 { max-width: none; } .t-swiby .t-vis { padding-top: 8px; } }


/* How we build */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.value { display: grid; gap: 12px; align-content: start; padding: 8px 0 0; }
.num { font: 500 12px/1 var(--mono); letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: clamp(24px, 4vw, 64px); }
.value h4 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.04em; }
.value p { color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 36px; } .num { margin-bottom: 8px; } }

/* The team: a large portrait, with a calm placeholder until the photo exists */
.portrait { margin: 0; }
.portrait img, .portrait-empty { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; }
.portrait-empty { background: linear-gradient(160deg, #B0B0B0, #A6A6A6); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #3A3A3A; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.portrait-empty svg { width: clamp(44px, 6vw, 84px); height: auto; margin-bottom: 14px; opacity: 0.85; }
.portrait-empty .soon { opacity: 0.7; }
.portrait figcaption { display: flex; justify-content: space-between; margin-top: 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.team-txt { display: grid; grid-template-columns: minmax(90px, 1fr) 5fr; gap: 0 20px; margin-top: clamp(40px, 5vw, 72px); }
.team-txt .idx { padding: 0.5em 0 0; }
@media (max-width: 640px) { .portrait img, .portrait-empty { aspect-ratio: 4 / 5; } .team-txt { grid-template-columns: 1fr; gap: 14px; } }

/* Contact */
.end { padding-bottom: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); margin-top: clamp(72px, 9vw, 140px); padding-top: clamp(28px, 3vw, 44px); }
.end .idx { padding-bottom: 28px; }
.big { font-size: clamp(22px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -0.035em; max-width: 30ch; }
.contact { position: relative; }
#kontakt { position: absolute; }
.hello { display: inline-block; font: 500 clamp(64px, 12vw, 210px)/0.84 var(--display); letter-spacing: -0.065em; text-transform: uppercase; color: #333; white-space: nowrap; }
.hello::after { content: "\2197"; font-size: 0.5em; vertical-align: 0.5em; margin-left: 0.1em; display: inline-block; transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .hello:hover::after { transform: translate(0.08em, -0.08em); } }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.mail code { font: 500 clamp(14px, 1.3vw, 17px)/1 var(--mono); }
.reply { color: var(--ink-2); font-size: 15px; max-width: 36ch; }
@media (max-width: 860px) { .end { grid-template-columns: 1fr; } }
.copy-label { display: grid; }
.copy-label > span { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease); }
.copy-label .s-done { opacity: 0; filter: blur(4px); transform: scale(0.96); }
.copy-label[data-state="done"] .s-idle { opacity: 0; filter: blur(4px); transform: scale(0.96); }
.copy-label[data-state="done"] .s-done { opacity: 1; filter: none; transform: none; }

/* Footer: dark, with the name set as wide as the page */
.foot { background: var(--ink); color: #D9D9D9; padding: clamp(36px, 4vw, 56px) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 15px; }
.foot-cols h5 { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #A0A0A0; margin-bottom: 14px; }
.foot-cols a { display: block; margin-bottom: 8px; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
.foot-word { font: 500 13.6vw/0.8 var(--display); letter-spacing: -0.07em; text-transform: uppercase; white-space: nowrap; color: #EDEDED; margin: clamp(48px, 7vw, 110px) -0.04em clamp(20px, 2vw, 28px); }
.foot-legal { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: #A0A0A0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.16); }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].seen { opacity: 1; transform: none; }

/* ---------- Product demos ---------- */
.phone { width: min(280px, 100%); aspect-ratio: 600 / 1067; border-radius: 44px; padding: 10px; background: #111; box-shadow: var(--shadow-float); }
.phone .demo { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #FDF1F5; container-type: inline-size; color: #1D1D1F; }

/* ---------- Live Swiby demo: cards swipe on their own, like a screen recording ---------- */
.demo-top { position: absolute; top: 13cqw; left: 7cqw; display: flex; align-items: center; gap: 2.6cqw; font: 600 8.4cqw/1 "Fredoka", var(--display); letter-spacing: -0.01em; }
.demo-top img { width: 9cqw; height: 9cqw; border-radius: 2.4cqw; }
.demo-deck { position: absolute; left: 6cqw; right: 6cqw; top: 27cqw; bottom: 34cqw; }
.demo-card {
  position: absolute; inset: 0; border-radius: 9cqw; padding: 7cqw;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 2cqw 6cqw rgba(120, 60, 90, 0.10);
  transform-origin: 50% 90%;
}
.demo-card.pige { background: linear-gradient(#FBE1E9, #F5CBD8); }
.demo-card.dreng { background: linear-gradient(#DCEDFA, #C3DFF4); }
.demo-card.begge { background: linear-gradient(#E1F1E6, #CBE5D3); }
.demo-card .head { position: absolute; top: 9cqw; left: 50%; width: 52cqw; translate: -50% 0; }
.demo-card .nm { font: 600 17cqw/1 "Fredoka", var(--display); letter-spacing: -0.02em; }
.demo-card .mn { font: 600 5cqw/1.25 var(--sans); margin-top: 3cqw; }
.demo-card .or { font: 400 4.2cqw/1.2 var(--sans); color: rgba(29,29,31,0.6); margin-top: 1cqw; }
.demo-card .stamp {
  position: absolute; top: 7cqw; padding: 1.8cqw 3.4cqw; border-radius: 99px;
  font: 600 4.2cqw/1 var(--display); letter-spacing: 0.02em; opacity: 0;
}
.demo-card .stamp.y { left: 7cqw; background: #1D1D1F; color: #fff; }
.demo-card .stamp.n { right: 7cqw; background: #fff; color: #1D1D1F; }
.demo-match {
  position: absolute; top: 12cqw; right: 7cqw; padding: 2.4cqw 4cqw; border-radius: 99px;
  background: #EC3B5A; color: #fff; font: 600 4.4cqw/1 "Fredoka", var(--display);
  opacity: 0; transform: translateY(-2cqw) scale(0.94);
}
.demo-btns { position: absolute; left: 0; right: 0; bottom: 11cqw; display: flex; justify-content: center; align-items: center; gap: 5cqw; }
.demo-btns span { display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2cqw 6cqw rgba(120, 60, 90, 0.14); }
.demo-btns .b-no { width: 15cqw; height: 15cqw; color: #6E6E73; }
.demo-btns .b-yes { width: 22cqw; height: 22cqw; color: #EC3B5A; }
.demo-btns .b-no svg { width: 6cqw; } .demo-btns .b-yes svg { width: 10cqw; }


.phone { width: min(290px, 74vw); box-shadow: 0 40px 80px -30px rgba(80,40,70,0.5); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hint::after { animation: none; }
}

/* The logo floats in its own soft pill so it stays readable over any section */
.brand { padding: 7px 14px 7px 9px; margin: -7px 0 -7px -9px; border-radius: 99px; background: rgba(188,188,188,0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bar { transition: opacity 250ms ease, transform 350ms var(--ease); }
.bar[data-away] { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.bar[data-away] > * { pointer-events: none; }
.foot-word { font-size: 12.1vw; }

/* Coming soon: the open tile from the logo, waiting for the next app */
.t-next { background: #CFCFCF; color: var(--ink); }
.t-next .t-copy > p { color: var(--ink-2); }
.soon-tag { font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.t-next .t-vis { padding: clamp(40px, 6vw, 80px); }
.next-mark { width: min(320px, 62vw); height: auto; color: var(--ink); overflow: visible; }
.next-mark .slot { animation: slot 2.6s ease-in-out infinite; }
@keyframes slot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .next-mark .slot { animation: none; } }
