/* Genesis dentAI — black stage, one warm light. Bricolage Grotesque for display, Hanken Grotesk for text.
   The gold is the margin light from the hero film; the pointer carries the same light across the page.
   Built to hold from a 280px cover screen (Galaxy Z Fold) up to wide desktop. */
:root {
  --black: #000;
  --ink: #f5f4f0;
  --soft: #b9b8b2;
  --dust: #7d7c77;
  --gold: #f0b25c;
  --gold-deep: #c9802c;
  --hair: rgba(245, 244, 240, .13);
  --panel: rgba(255, 255, 255, .028);
  --display: "Bricolage Grotesque", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4.6vw, 84px);
  --mx: 50vw; --my: 30vh;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--black); }
body { margin: 0; min-width: 0; background: var(--black); color: var(--ink); font-family: var(--body); font-weight: 400; font-size: clamp(15px, .95vw + 12px, 18.5px); line-height: 1.62; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
section[id] { scroll-margin-top: 56px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.035em; font-variation-settings: "wdth" 92; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #000; padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: clamp(12.5px, .35vw + 11px, 15px); font-weight: 500; color: var(--gold); margin-bottom: clamp(16px, 2.4vw, 26px); }
.kicker::before { content: ""; width: clamp(18px, 3vw, 40px); height: 1px; background: currentColor; }

/* the pointer's light: a soft warm pool that follows the mouse (app.js moves --mx / --my) */
.light { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(240, 178, 92, .13), rgba(240, 178, 92, .04) 42%, transparent 68%); }
.has-pointer .light { opacity: 1; }
.ring { position: fixed; left: 0; top: 0; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(240, 178, 92, .75); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .25s, height .25s, margin .25s, background .25s; will-change: transform; }
.has-pointer .ring { opacity: 1; }
.ring.on { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(240, 178, 92, .12); }
main, .foot { position: relative; z-index: 2; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--pad); padding-top: max(14px, env(safe-area-inset-top)); background: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0)); }
.mark { font-family: var(--display); font-weight: 400; font-size: clamp(14px, .5vw + 12px, 18px); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.mark b { font-weight: 700; letter-spacing: .02em; }
.top nav { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: center; font-size: clamp(12.5px, .3vw + 11.5px, 15px); white-space: nowrap; }
.top nav a { text-decoration: none; }
.nav-link { color: var(--soft); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-cta { padding: 7px 14px; border: 1px solid var(--hair); border-radius: 999px; transition: border-color .2s, background .2s, color .2s; }
.nav-cta:hover { border-color: var(--gold); background: var(--gold); color: #000; }
.lang { font: inherit; color: var(--soft); background: none; border: 0; padding: 7px 2px; cursor: pointer; transition: color .2s; }
.lang:hover { color: var(--gold); }

/* film */
.reel { margin: 0; position: relative; }
.reel video { width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 70px); padding: 84px var(--pad) clamp(28px, 6vh, 64px); overflow: hidden; perspective: 1400px; }
.hero-reel { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; height: min(calc(100svh - 120px), 58vw); width: auto; justify-self: end; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
/* the film is rendered on pure black; feather its edges so cropped scans melt into the page */
.hero-reel video { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%); mask-composite: intersect; background: transparent; }
.hero-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.hero h1 { font-size: clamp(42px, min(9vw, 16svh), 164px); font-weight: 700; line-height: .92; letter-spacing: -0.055em; font-variation-settings: "wdth" 84;
  background: radial-gradient(3.2em circle at var(--hx, 18%) var(--hy, 30%), #ffe2ad 0%, var(--gold) 26%, var(--ink) 62%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.lede { margin-top: clamp(16px, 3vh, 36px); max-width: 29em; color: var(--soft); }

.cta { position: relative; display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(24px, 4.4vh, 44px); max-width: 100%; text-decoration: none; padding: 15px clamp(20px, 2.6vw, 30px); border-radius: 999px; background: var(--gold); color: #0b0703; font-weight: 600; font-size: clamp(14px, .3vw + 13px, 16.5px); transform: translate3d(var(--bx, 0px), var(--by, 0px), 0); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, background .3s; }
.cta small { font-size: .86em; font-weight: 500; padding-left: 14px; border-left: 1px solid rgba(0, 0, 0, .28); opacity: .8; }
.cta:hover { background: #ffd08a; box-shadow: 0 0 0 6px rgba(240, 178, 92, .14), 0 18px 70px -10px rgba(240, 178, 92, .6); }

/* sections */
.how, .anatomy, .scope, .notify { padding: clamp(64px, 14vh, 190px) 0; border-top: 1px solid var(--hair); }
h2 { font-size: clamp(30px, 5vw, 84px); line-height: 1; max-width: 16em; }

/* process: four panels; each catches the pointer's light on its edge */
.steps { list-style: none; counter-reset: step; margin: clamp(36px, 7vh, 84px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.steps li { counter-increment: step; position: relative; min-width: 0; padding: clamp(18px, 1.8vw, 28px); border-radius: 14px; background: var(--panel); border: 1px solid var(--hair); overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.steps li::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 0%), rgba(240, 178, 92, .2), transparent 70%); }
.steps li:hover { transform: translateY(-6px); border-color: rgba(240, 178, 92, .55); }
.steps li:hover::after { opacity: 1; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: clamp(26px, 5vh, 64px); transition: color .3s; }
.steps li:hover::before { color: var(--gold); }
.steps h3 { font-size: clamp(20px, 1.7vw, 27px); line-height: 1.12; }
.steps p { margin-top: 12px; font-size: .92em; color: var(--soft); }

/* anatomy */
.anatomy { background: radial-gradient(60% 80% at 12% 50%, #150e06 0%, #000 70%); }
.anatomy-grid { display: block; }
.anatomy-text p:not(.kicker) { margin-top: clamp(18px, 3vh, 30px); max-width: 34em; color: var(--soft); }
.anatomy-text p:last-child { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.22; letter-spacing: -0.02em; color: var(--ink); max-width: 22em; padding-left: clamp(16px, 2vw, 28px); border-left: 2px solid var(--gold); }

/* scope */
.scope-grid { margin-top: clamp(36px, 8vh, 100px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.scope-grid > div { padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 40px) 0 0; min-width: 0; }
.scope-grid > div + div { padding-left: clamp(18px, 3vw, 40px); border-left: 1px solid var(--hair); }
.scope h3 { font-size: clamp(22px, 2.3vw, 34px); }
.does h3 { color: var(--gold); }
.notyet h3 { color: var(--dust); }
.scope ul { list-style: none; margin: clamp(16px, 2.4vw, 26px) 0 0; padding: 0; }
.scope li { position: relative; padding: 14px 0; border-top: 1px solid var(--hair); font-size: .95em; transition: padding-left .3s cubic-bezier(.2, .7, .2, 1), color .3s; }
.scope li::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--gold); transition: width .3s cubic-bezier(.2, .7, .2, 1); }
.notyet li { color: #9d9c96; }
@media (hover: hover) {
  .scope li:hover { padding-left: 30px; color: var(--ink); }
  .scope li:hover::before { width: 20px; }
}

/* release */
.notify { text-align: center; background: radial-gradient(50% 60% at 50% 100%, #20160a 0%, #000 70%); }
.notify h2 { font-size: clamp(40px, 10vw, 176px); font-weight: 700; letter-spacing: -0.055em; margin-inline: auto; max-width: none; font-variation-settings: "wdth" 84; }
.notify .kicker { justify-content: center; }
.notify p:not(.kicker) { margin: clamp(18px, 3vh, 28px) auto 0; max-width: 30em; color: var(--soft); }

.foot { padding: 28px 0 max(40px, env(safe-area-inset-bottom)); font-size: 13.5px; border-top: 1px solid var(--hair); color: var(--dust); }
.foot .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 20px; flex-wrap: wrap; }

/* Korean: Hangul needs looser tracking, taller lines and whole-word wrapping */
html[lang="ko"] body { word-break: keep-all; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { letter-spacing: -0.03em; font-weight: 700; }
html[lang="ko"] .hero h1 { font-weight: 900; line-height: 1.1; letter-spacing: -0.045em; font-size: clamp(38px, min(6.4vw, 14svh), 136px); }
html[lang="ko"] h2 { line-height: 1.16; }
html[lang="ko"] .notify h2 { font-weight: 900; font-size: clamp(32px, 7.6vw, 132px); letter-spacing: -0.045em; }
html[lang="ko"] .steps h3 { line-height: 1.25; }

/* tablets and unfolded foldables */
@media (max-width: 900px) {
  .nav-link { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 64px; gap: 0; }
  .hero-reel { grid-column: 1; grid-row: 1; justify-self: center; height: min(58svh, calc((100vw - 2 * var(--pad)) * 5 / 4)); width: auto; }
  .hero-copy { grid-row: 2; margin-top: 14px; position: relative; }
  .hero h1 { font-size: clamp(36px, 13vw, 96px); }
  html[lang="ko"] .hero h1 { font-size: clamp(34px, 11.5vw, 88px); }
}
/* phones, and the narrow cover screen of a fold */
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::before { margin-bottom: 18px; }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .scope-grid > div, .scope-grid > div + div { padding: 22px 0 14px; border-left: 0; }
  .scope-grid > div + div { border-top: 1px solid var(--hair); }
  .cta { width: 100%; justify-content: center; flex-wrap: wrap; row-gap: 4px; }
}
@media (max-width: 340px) {
  .cta small { border-left: 0; padding-left: 0; }
  .nav-cta { padding: 6px 10px; }
  .top nav { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .light, .ring { display: none; }
}
