:root {
  /* neutrals from the logo (brand/logo/generate.mjs COLORS) */
  --bg: #1B1A17;
  --ink: #F2E6C9;
  --dim: #3a362f;
  --line: #2f2c26;
  --rule: #4a463e;
  --deep: #141310;
  --p1: #E8553A;   /* player 1 — vermilion */
  --p2: #E9B23F;   /* player 2 — mustard */
  --wide: "Anybody", "Pretendard Variable", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: 16px;
}
@media (min-width: 720px) { :root { --pad: 40px; } }
html[lang="ko"] body { word-break: keep-all; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: .95rem; line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; }
::selection { background: var(--p1); color: var(--bg); }
.pad { padding-left: var(--pad); padding-right: var(--pad); }
.tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.p1c { color: var(--p1); } .p2c { color: var(--p2); }

/* custom cursors (fine pointers only) */
.cur { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; border-radius: 50%; display: none; will-change: transform; }
.cur1 { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--p1); transition: width .2s, height .2s, margin .2s; }
.cur2 { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--p2); }
body.cur-link .cur1 { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cur { display: block; }
  body, a, button, [role="button"] { cursor: none; }
}

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 52px;
  display: flex; align-items: center; gap: 24px;
  color: var(--ink); background: rgba(27, 26, 23, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: block; width: 34px; height: 34px; }
.logo-mark svg { display: block; width: 100%; height: 100%; }
/* pupil of the mark: HTML layer over the static SVG (glint: centre +.36rx/−.4ry, r .5rx — same as the logo) */
.pf-pupil { position: absolute; border-radius: 50%; background: #1B1A17; will-change: transform; }
.pf-pupil i { position: absolute; left: 43%; top: 9.5%; width: 50%; height: 41%; border-radius: 50%; background: #F2E6C9; }
/* same face as the logo wordmark (Anton) */
.logo-word { font: 400 1.35rem/1 "Anton", sans-serif; letter-spacing: .02em; padding-top: 2px; }
.bar nav { margin-left: auto; display: flex; gap: 20px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.bar nav a { text-decoration: none; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .bar nav { display: none; } .lang { margin-left: auto; } }
.lang { display: flex; gap: 4px; }
.lang button { font: 700 .75rem/1 var(--mono); color: var(--ink); background: none; border: 1px solid var(--ink); padding: 6px 9px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* kinetic hero */
.hero { position: relative; min-height: clamp(560px, 100svh, 1000px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 52px; }
/* hero swirl: the logo's paper-roll swirl, full-bleed and faint, with the eye at full strength */
.hero-swirl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-swirl .blades { fill: url(#heroFade); }
/* hero eye (logo eye): socket stays put while the sclera blinks — a rim when open, a hole when shut.
   Proportions from the logo: pupil rx .66 / ry .805 of the hole, glint r .5rx at (+.36rx, −.4ry). */
.hero-eye { position: absolute; pointer-events: none; }
.hero-eye .socket { position: absolute; inset: -7%; border-radius: 50%; background: #171613; }
/* the eye sits far back: paper sunk halfway into the background, clearly darker than the wordmark */
.hero-eye { --eye: #4A463D; }
.hero-eye .sclera { position: absolute; inset: 0; border-radius: 50%; background: var(--eye); overflow: hidden; will-change: transform; }
.hero-eye .pupil { position: absolute; left: 17%; top: 9.75%; width: 66%; height: 80.5%; border-radius: 50%; background: var(--bg); will-change: transform; }
.hero-eye .pupil i { position: absolute; left: 43%; top: 9.5%; width: 50%; height: 41%; border-radius: 50%; background: var(--eye); }
/* :where keeps this at low specificity so .hud / .hero-foot stay absolute */
.hero > :where(:not(.hero-swirl, .hero-eye)) { position: relative; z-index: 1; }
.hero > .hud, .hero > .hero-foot { position: absolute; z-index: 1; }
.hud { position: absolute; top: 68px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 16px; }
.kinetic {
  font-family: var(--wide); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 19vw, 15rem); line-height: .82; letter-spacing: -.01em;
  user-select: none;
}
.kinetic .line { display: block; white-space: nowrap; }
.kinetic .ch { display: inline-block; font-variation-settings: "wdth" 80, "wght" 600; }
.kinetic .line:nth-child(2) { text-align: right; }
.slogan { margin-top: 32px; font-size: clamp(.9rem, 1.8vw, 1.15rem); max-width: 40ch; }
.slogan .prompt { color: var(--p1); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--p1); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-foot { position: absolute; bottom: 20px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }

/* studio title: fixed two-tone P1/P2 shadow on hover (.on = scrolled into view on touch) */
.studio-title .mega {
  text-shadow: 0 0 0 var(--p1), 0 0 0 var(--p2);
  transition: text-shadow .25s ease-out;
}
.studio-title:hover .mega, .studio-title.on .mega {
  text-shadow: -.012em -.024em 0 var(--p1), -.024em -.048em 0 var(--p2);
}
/* neutral tracking for the studio title (overrides .mega / .mega.ko-able) */
.studio-title .mega, html[lang="ko"] .studio-title .mega.ko-able { letter-spacing: 0; }
/* the lime full stop stays clean and clear of the last glyph */
.studio-title .mega .us { margin-left: .1em; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .studio-title .mega { transition: none; } }

/* sections */
section { position: relative; padding: 100px 0; scroll-margin-top: 52px; }
.sec-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.mega {
  font-family: var(--wide); font-weight: 900; text-transform: uppercase; line-height: .85;
  font-size: 10vw; font-variation-settings: "wdth" 150, "wght" 900;
  white-space: nowrap; letter-spacing: -.02em; display: inline-block;
}
.mega .us { color: var(--p1); }
html[lang="ko"] .mega.ko-able { font-family: "Pretendard Variable", sans-serif; letter-spacing: -.05em; }
.lede { margin-top: 28px; max-width: 46ch; font-size: clamp(1rem, 1.9vw, 1.2rem); }
.term { margin-top: 48px; max-width: 760px; border-top: 1px dashed var(--rule); }
.term div { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--rule); text-transform: uppercase; font-size: .85rem; }
.term dt { opacity: .6; white-space: nowrap; }
.term .fill { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--rule); transform: translateY(-5px); }
.term dd { font-weight: 700; text-align: right; }
.term a { text-decoration: none; }
.term a:hover { color: var(--p1); }

/* key visual — generated placeholder until real key art exists.
   Real art: drop <img class="kv-art" src="..." alt=""> as first child and remove .kv-mark. */
.kv {
  position: relative; display: block; overflow: hidden; container-type: inline-size;
  aspect-ratio: 16 / 9; background: var(--deep); border: 1px solid var(--dim);
  color: var(--ink); text-decoration: none;
}
@media (max-width: 720px) { .kv { aspect-ratio: 4 / 5; } }
.kv-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kv canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .22; }
.kv::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .4) 2px 4px); }
.kv-mark { position: absolute; inset: 0 0 12cqw; display: grid; place-items: center; }
.kv-mark span {
  grid-area: 1 / 1; font-family: var(--wide); font-weight: 900; line-height: .8;
  font-variation-settings: "wdth" 150, "wght" 900; font-size: 36cqw; letter-spacing: -.04em;
  will-change: transform;
}
@media (max-width: 720px) { .kv-mark { inset: 0 0 30cqw; } .kv-mark span { font-size: 48cqw; font-variation-settings: "wdth" 110, "wght" 900; } }
/* paper face on top, P1/P2 offset behind it (no blending: overlaps stay print-like) */
.kv-mark .a { color: var(--p1); }
.kv-mark .b { color: var(--p2); }
.kv-mark .c { color: var(--ink); }
.kv-hud { position: absolute; z-index: 2; left: 4cqw; right: 4cqw; display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.kv-hud.top { top: 3.5cqw; } .kv-hud.bottom { bottom: 3.5cqw; align-items: flex-end; }
.kv-title { font-family: var(--wide); font-weight: 900; font-variation-settings: "wdth" 150, "wght" 900; font-size: max(1.6rem, 6.5cqw); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.kv-title .us { color: var(--p1); }
.kv-go { padding: 8px 12px; border: 1px solid var(--ink); background: var(--bg); white-space: nowrap; transition: background .2s, color .2s; }
a.kv:hover .kv-go, a.kv:focus-visible .kv-go { background: var(--p1); color: var(--bg); border-color: var(--p1); }
a.kv:hover .kv-mark span { animation: jitter .25s steps(2) infinite; }
a.kv:focus-visible { outline: 2px solid var(--p1); outline-offset: 4px; }
@keyframes jitter { 50% { clip-path: inset(18% 0 30% 0); } }

/* keyword interactions */
.kws { border-top: 1px solid var(--line); }
.kw { position: relative; border-bottom: 1px solid var(--line); padding: 40px var(--pad); min-height: 300px; overflow: hidden; touch-action: pan-y; }
.kw-n { font-size: .75rem; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.kw h3 {
  margin-top: 12px; font-family: var(--wide); font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 150, "wght" 900; font-size: clamp(3.4rem, 15vw, 12rem); line-height: .85;
  white-space: nowrap;
}
html[lang="ko"] .kw h3 { font-family: "Pretendard Variable", sans-serif; font-weight: 900; letter-spacing: -.04em; }
.kw p { margin-top: 16px; max-width: 40ch; }
.kw .hint { position: absolute; top: 40px; right: var(--pad); font-size: .75rem; text-transform: uppercase; opacity: .6; }

.kw-read .base { color: var(--dim); }
.kw-read .reveal {
  position: absolute; inset: 0; padding: 40px var(--pad); color: var(--p1); pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r, 150px) at var(--x, 50%) var(--y, 50%), #000 60%, transparent 100%);
          mask-image: radial-gradient(circle var(--r, 150px) at var(--x, 50%) var(--y, 50%), #000 60%, transparent 100%);
}
.kw-read .secret { margin-top: 18px; font-weight: 700; text-transform: uppercase; }

.kw-coop .pair { position: relative; margin-top: 12px; height: clamp(3rem, 13vw, 10.5rem); }
.kw-coop .pair h3 { position: absolute; left: 0; top: 0; margin: 0; will-change: transform; transition: color .25s; }
.kw-coop .pair .a { color: var(--p1); }
.kw-coop .pair .b { color: var(--p2); }
.kw-coop .sync { display: inline-block; margin-top: 16px; padding: 4px 8px; border: 1px solid var(--rule); font-size: .75rem; text-transform: uppercase; transition: background .2s, color .2s; }
/* lined up: the two players merge into one paper-coloured word */
.kw-coop.synced .pair h3 { color: var(--ink); }
.kw-coop.synced .sync { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.kw-action { user-select: none; }
.kw-action h3 { display: inline-block; transform-origin: 30% 70%; }
.kw-action.hit h3 { animation: hit .38s cubic-bezier(.3, 1.6, .5, 1); }
.kw-action.hit { animation: shake .3s linear; }
@keyframes hit {
  0% { transform: scale(1); color: var(--ink); }
  20% { transform: scale(1.08, .9) skewX(-12deg); color: var(--p2); text-shadow: -8px 0 var(--p1), 8px 0 var(--p2); }
  45% { transform: scale(.96, 1.04) skewX(6deg); clip-path: inset(10% 0 40% 0); }
  60% { clip-path: inset(50% 0 5% 0); transform: translateX(10px); }
  100% { transform: none; clip-path: inset(0); color: var(--ink); text-shadow: none; }
}
@keyframes shake { 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, -2px); } }
.combo { position: absolute; right: var(--pad); bottom: 40px; font: 900 clamp(1.4rem, 4vw, 2.6rem)/1 var(--wide); font-variation-settings: "wdth" 150, "wght" 900; color: var(--p2); opacity: 0; transition: opacity .2s; }
.combo.on { opacity: 1; }

/* classified media slot */
.media { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--dim); overflow: hidden; display: grid; place-items: center; }
.media canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .35; }
.media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .45) 2px 4px); pointer-events: none; }
.media .label { position: relative; z-index: 1; text-align: center; background: var(--bg); padding: 10px 14px; text-transform: uppercase; }
.media .label b { display: block; font: 900 clamp(1.4rem, 5vw, 3rem)/1 var(--wide); font-variation-settings: "wdth" 150; color: var(--p2); }

/* contact + footer */
.email {
  display: block; margin-top: 20px; text-decoration: none; overflow-wrap: anywhere;
  font-family: var(--wide); font-weight: 800; font-variation-settings: "wdth" 110; text-transform: lowercase;
  font-size: clamp(1.3rem, 4.6vw, 4.6rem); line-height: 1;
}
.email:hover { color: var(--p1); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); text-decoration: none; }
.next b { font: 900 clamp(1.4rem, 5vw, 3.2rem)/1 var(--wide); font-variation-settings: "wdth" 150, "wght" 900; text-transform: uppercase; }
.next:hover b { color: var(--p1); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: .75rem; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, a.kv:hover .kv-mark span { animation: none; }
  .kw-action.hit, .kw-action.hit h3 { animation: none; }
}
