/* Hieun · all-black, white text.
   Shape system: pill for interactive, 24px for media, 0 everywhere else.
   Motion: GSAP for hero entrance, scroll-scrubbed manifesto, sticky stack.
   Everything above hover collapses under prefers-reduced-motion. */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --fg-70: rgba(255, 255, 255, 0.7);
  --fg-50: rgba(255, 255, 255, 0.5);
  --fg-30: rgba(255, 255, 255, 0.3);
  --line: rgba(255, 255, 255, 0.12);
  --surface: #0a0a0a;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-media: 24px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -48px;
  padding: 8px 14px; background: var(--fg); color: var(--bg);
  border-radius: 999px; font-weight: 600; z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__brand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--fg-70);
  transition: color 0.3s var(--ease);
}
.nav__link:hover { color: var(--fg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn > span { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: #e6e6e6; }
.btn--ghost {
  border: 1px solid var(--line); color: var(--fg);
}
.btn--ghost:hover { border-color: var(--fg-50); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100dvh;
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.hero__title {
  font-size: clamp(44px, 7.2vw, 108px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; will-change: transform; }
.hero__sub {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--fg-70);
  line-height: 1.5;
}
.hero .btn { margin-top: 36px; }

.hero__visual { position: relative; min-height: 420px; }
.cluster {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px;
  margin-left: auto;
}
.cluster__icon {
  position: absolute;
  border-radius: 22.37%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  will-change: transform;
}
.cluster__icon--a { width: 46%; left: 6%; top: 10%; }
.cluster__icon--b { width: 56%; right: 0; top: 32%; }
.cluster__icon--c { width: 34%; left: 14%; bottom: 2%; }

/* ---------- MANIFESTO ---------- */
.manifesto {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 16vh, 200px) var(--gutter);
}
.manifesto__text {
  font-size: clamp(28px, 4.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 22ch;
}
.manifesto__text .w { display: inline-block; color: var(--fg); }
.manifesto.is-ready .w { color: var(--fg-30); }

/* ---------- PRODUCTS ---------- */
.products {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 12vh, 160px);
}
.products__title {
  font-size: 15px; font-weight: 500; color: var(--fg-50);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}

.stack { position: relative; }
.stack__card {
  position: sticky; top: 0;
  --dim: 0;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 48px;
  background: var(--bg);
  isolation: isolate;
  will-change: transform;
  transform-origin: center top;
}
.stack__card::after {
  content: ""; position: absolute; inset: 0; background: #000;
  opacity: var(--dim, 0); pointer-events: none;
}
.stack__card:nth-child(1) { z-index: 1; }
.stack__card:nth-child(2) { z-index: 2; }
.stack__card:nth-child(3) { z-index: 3; }
.card__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 6vw, 120px);
}
.card__icon { width: 72px; height: 72px; border-radius: 22.37%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.card__name {
  margin-top: 28px;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.card__kicker { margin-top: 14px; font-size: 18px; font-weight: 500; color: var(--fg-70); }
.card__desc { margin-top: 18px; max-width: 46ch; font-size: 17px; color: var(--fg-50); }
.card__copy .btn { margin-top: 32px; }

.card__media {
  justify-self: end;
  height: min(76dvh, 760px);
  aspect-ratio: 1287 / 2796;
  width: auto;
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  will-change: transform;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- STUDIO ---------- */
.studio {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 16vh, 200px) var(--gutter);
  border-top: 1px solid var(--line);
}
.studio__title {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1;
}
.studio__text {
  margin-top: 28px; max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 21px); color: var(--fg-70);
}
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-motion [data-reveal], [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer__grid {
  max-width: var(--max); margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.footer__copy { font-size: 14px; color: var(--fg-50); }
.footer__meta { display: grid; gap: 18px; font-size: 14px; }
.footer__meta dt { color: var(--fg-50); }
.footer__meta dd { margin-top: 4px; color: var(--fg); }
.footer__meta a { border-bottom: 1px solid var(--fg-30); transition: border-color 0.3s var(--ease); }
.footer__meta a:hover { border-bottom-color: var(--fg); }

/* ---------- MOBILE COLLAPSE (< 768px) ---------- */
@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 32px) var(--gutter) 48px;
    gap: 40px;
    min-height: auto;
  }
  .hero__visual { min-height: 0; }
  .cluster { max-width: 360px; margin: 0 auto; }
  .hero .btn { width: 100%; }

  .stack__card { position: static; min-height: auto; padding: 48px 0; border-bottom: 1px solid var(--line); }
  .stack__card:last-child { border-bottom: 0; }
  .card__inner { grid-template-columns: 1fr; gap: 32px; }
  .card__media { justify-self: center; height: auto; width: min(100%, 320px); }
  .card__copy .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 40px var(--gutter) 48px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line__inner, .cluster__icon, .card__media, .btn, .btn > span { transition: none !important; }
  .stack__card { position: static; min-height: auto; padding: 64px 0; }
  .manifesto.is-ready .w { color: var(--fg); }
}
