:root {
  --bg: #ffffff;
  --ink: #0b0b0d;
  --muted: #6e6e76;
  --line: #e8e8ec;
  --soft: #f5f5f7;
  --accent: #0b0b0d;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  font-size: 14px;
  background: linear-gradient(#fff 40%, rgba(255,255,255,0));
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); font-family: var(--mono); font-size: 13px; }

/* Hero */
.hero {
  position: relative;
  height: 100svh; min-height: 620px;
  display: grid; place-items: center;
  overflow: hidden;
}
#stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
}
#stage.ready { opacity: 1; }
#stage.hovering { cursor: pointer; }
.hero-copy {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 1100px;
  pointer-events: none;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 {
  margin: 18px auto 22px;
  font-size: clamp(38px, 5.4vw, 88px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 span { display: block; color: #b4b4bc; }
.hero .sub {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  text-wrap: balance;
}
.hint {
  position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%);
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: opacity .4s;
}
.hint .dot { width: 6px; height: 6px; border-radius: 50%; background: #20c05c; animation: pulse 2s infinite; }
.no-gl .hint { display: none; }
.touch-only { display: none; }
@media (hover: none) { .fine-only { display: none; } .touch-only { display: inline; } }

.tag {
  position: absolute; z-index: 3; bottom: 22px; left: 50%;
  pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px;
  opacity: 0; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.tag.on { opacity: 1; transform: translate(-50%, 0); }
.tag b { font-weight: 600; }
.tag span { color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { 50% { opacity: .3; } }

/* Sections */
.section-head { max-width: 1200px; margin: 0 auto 40px; }
.section-head h2, .contact h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1; letter-spacing: -.04em; font-weight: 800;
  margin: 12px 0 0; max-width: 16ch;
}
.work, .how { padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }

.work-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
  border-top: 1px solid var(--line);
}
.work-list button {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 56px 1.1fr 1.4fr 24px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.work-list button:hover { padding-left: 12px; }
.work-list .idx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.work-list .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: 1px; }
.work-list .name { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.work-list .meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.work-list .line { color: var(--muted); font-size: 16px; }
.work-list .arrow { color: var(--muted); transition: transform .25s, color .25s; }
.work-list button:hover .arrow { transform: translateX(4px); color: var(--ink); }

.how-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.how-grid article { background: var(--soft); border-radius: 20px; padding: 28px; }
.how-grid .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.how-grid h3 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 16px; }

.contact {
  padding: clamp(100px, 14vw, 200px) var(--gutter) 40px;
  text-align: center;
}
.contact h2 { margin: 14px auto 32px; max-width: 18ch; }
.contact h2 span { color: #b4b4bc; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--ink);
  transition: transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.fine { margin-top: 120px; font-size: 12px; color: var(--muted); }

/* Sheet */
.sheet {
  border: 0; padding: 0; margin: 0 0 0 auto;
  width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: #fff; color: var(--ink);
  box-shadow: -30px 0 80px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), overlay .45s allow-discrete, display .45s allow-discrete;
}
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateX(100%); } }
.sheet::backdrop { background: rgba(255,255,255,0); transition: background .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
.sheet[open]::backdrop { background: rgba(240,240,244,.55); backdrop-filter: blur(4px); }
@starting-style { .sheet[open]::backdrop { background: rgba(255,255,255,0); } }
.sheet-inner { height: 100%; overflow-y: auto; padding: 24px clamp(20px, 4vw, 40px) 32px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.icon-btn { background: var(--soft); border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--line); }
.sheet h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.02; letter-spacing: -.035em; margin: 28px 0 14px; }
.sheet-line { color: var(--muted); margin: 0 0 24px; }
.sheet-shot { margin: 0 0 24px; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.sheet-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sheet-shot.vertical { aspect-ratio: 9 / 16; width: min(340px, 100%); margin-inline: auto; background: #000; }
.sheet-shot iframe { width: 100%; height: 100%; border: 0; display: block; }
.credit { margin: -14px 0 24px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.credit:empty { display: none; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 28px; }
.metrics div { background: var(--soft); border-radius: 12px; padding: 14px; }
.metrics dt { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.metrics dd { margin: 4px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.deeper { border-top: 1px solid var(--line); padding-top: 20px; }
.deeper ul { margin: 12px 0 0; padding: 0; list-style: none; }
.deeper li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.deeper li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.sheet-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.text-btn { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.text-btn:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 820px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .work-list button { grid-template-columns: 1fr 20px; gap: 6px 16px; }
  .work-list .idx { display: none; }
  .work-list .line { grid-column: 1; font-size: 15px; }
  .work-list .arrow { grid-row: 1 / span 2; grid-column: 2; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid h3 { margin-top: 24px; }
  .sheet { width: 100vw; height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .sheet[open] { transform: none; }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
  .metrics dt { font-size: 18px; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
