/* ───────── Rukhava · white edition ───────── */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #7a7a7a;
  --line: #ececec;
  --soft: #f5f5f4;
  --accent: #a8743f; /* copper — logo dot */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --frame: min(66vw, 1180px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter Tight', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.35; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.layer-open body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Chrome ───────── */
.chrome { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.chrome > * { position: absolute; margin: 0; pointer-events: auto; }
.chrome a, .chrome button { transition: opacity 0.25s; }
.chrome a:hover, .chrome button:hover { opacity: 0.55; }
.chrome__tl { top: 22px; left: var(--gutter); display: flex; gap: 26px; }
.wordmark { top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; line-height: 1; }
.wordmark__mark { height: 42px; width: auto; aspect-ratio: 208 / 166; overflow: visible; }
.wordmark__mark text { font-family: var(--serif); font-weight: 500; font-size: 236px; fill: var(--ink); }
.wordmark__dot { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 50%; }
.wordmark__text { display: flex; flex-direction: column; gap: 4px; }
.wordmark__name { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: -0.01em; }
.wordmark small { font-size: 8.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.wordmark:hover { opacity: 1 !important; }
.wordmark:hover .wordmark__dot { animation: dotHop 0.7s var(--ease); }
@keyframes dotHop { 30% { transform: translateY(-38%) scale(1.15); } 60% { transform: translateY(0) scale(0.92, 1.08); } }
.chrome__tr { top: 14px; right: var(--gutter); display: flex; align-items: center; gap: 22px; }
.chrome__bl { bottom: 22px; left: var(--gutter); }
.chrome__br { bottom: 22px; right: var(--gutter); }
.chrome__bc {
  bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
  transition: opacity 0.4s;
}
.chrome__bc span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chrome__bc b { font-weight: 500; }
.chrome__bc i { font-style: normal; color: var(--ink-2); }
html.layer-open .chrome__bc, html.layer-open .chrome__bl, html.layer-open .chrome__br { visibility: hidden; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.pill[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sound { width: 26px; height: 26px; display: grid; place-items: center; }
.sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.sound .w1, .sound .w2 { opacity: 0.25; transition: opacity 0.3s; }
.sound[aria-pressed='true'] .w1, .sound[aria-pressed='true'] .w2 { opacity: 1; }

/* ───────── 3D scenes (framed, same origin) ───────── */
.scene { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.scene--hero { background: #fafcfe; }
.scene__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene__frame.is-ready { opacity: 1; }
.scene__copy { position: absolute; left: var(--gutter); bottom: 78px; pointer-events: none; }
.scene__copy--top { top: 120px; bottom: auto; }
.scene__eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.scene__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.scene__lead { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.4vw, 68px); line-height: 0.95; letter-spacing: -0.02em; }
.scene__hint { position: absolute; right: var(--gutter); bottom: 78px; margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); pointer-events: none; }
.scene + .stream { padding-top: 24vh; }
@media (max-width: 760px) {
  .scene__copy { bottom: 92px; }
  .scene__copy--top { top: 124px; }
  .scene__lead { font-size: 38px; }
  .scene__hint { display: none; }
}

/* ───────── Stream ───────── */
.stream { padding: calc(50vh - var(--frame) * 0.3125) 0 10vh; display: flex; flex-direction: column; align-items: center; gap: 34vh; }
.frame {
  width: var(--frame); position: relative; cursor: pointer;
  will-change: transform, filter, opacity; transform-origin: 50% 50%;
}
.frame__img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 12px; background: var(--soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 60px -18px rgba(0, 0, 0, 0.22), 0 60px 120px -40px rgba(0, 0, 0, 0.18);
}
.frame--dark .frame__img { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 30px 70px -18px rgba(0, 0, 0, 0.45); }

.outro { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter) 14vh; }
.outro__lead { margin: 0; font-size: clamp(32px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.outro__text { margin: 18px 0 30px; max-width: 520px; color: var(--ink-2); }
.outro__links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.hover-label {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  padding: 7px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px;
  opacity: 0; transform: translate(-50%, -150%) scale(0.8); transition: opacity 0.2s, transform 0.3s var(--ease);
}
.hover-label.is-on { opacity: 1; transform: translate(-50%, -150%) scale(1); }

/* ───────── Layers (index, project, about) ───────── */
.layer { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; }
.layer.is-open { visibility: visible; }
.layer:focus { outline: none; }
.layer::before { content: ''; position: sticky; top: 0; z-index: 2; display: block; height: 110px; margin-bottom: -110px; background: linear-gradient(var(--bg) 55%, rgba(255, 255, 255, 0)); pointer-events: none; }

.index__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; padding: 140px var(--gutter) 120px; }
.index__group { display: contents; }
.index__card { min-width: 0; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.index__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 7px; background: var(--soft); box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.3); transition: transform 0.6s var(--ease); }
.index__card:hover img { transform: translateY(-4px) scale(1.015); }
.index__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.index__meta span { color: var(--ink-2); }

.project__inner { padding: 140px var(--gutter) 0; }
.back { color: var(--ink-2); margin-bottom: 40px; display: inline-block; }
.back:hover { color: var(--ink); }
.project__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.project__no { color: var(--ink-2); }
.project__title { margin: 6px 0 8px; font-size: clamp(36px, 5.2vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.project__tagline { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 20px); }
.project__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13px; color: var(--ink-2); }
.project__meta a { color: var(--ink); border-bottom: 1px solid currentColor; }
.project__shots { display: flex; flex-direction: column; align-items: center; gap: 120px; }
.shot { width: min(82vw, 1320px); margin: 0; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--soft); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.28); }
.shot figcaption { display: grid; grid-template-columns: 40px 220px 1fr; gap: 16px; margin-top: 18px; font-size: 14px; }
.shot figcaption span { color: var(--ink-2); }
.shot figcaption b { font-weight: 500; }
.shot figcaption i { font-style: normal; color: var(--ink-2); max-width: 520px; }
.project__body { max-width: 980px; margin: 160px auto 0; display: grid; grid-template-columns: 200px 1fr; gap: 28px 40px; }
.project__body h3 { margin: 0; font-size: 15px; font-weight: 500; }
.project__body p { margin: 0; color: #444; font-size: 17px; line-height: 1.5; }
.project__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project__stats div { display: flex; flex-direction: column; gap: 4px; }
.project__stats strong { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.project__stats span { color: var(--ink-2); font-size: 13px; }
.project__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.project__stack span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.project__next {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; margin-top: 180px; padding: 120px 0 160px; border-top: 1px solid var(--line); text-align: center;
}
.project__next span { color: var(--ink-2); }
.project__next strong { font-size: clamp(36px, 5.2vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; transition: opacity 0.3s; }
.project__next:hover strong { opacity: 0.55; }
.project__next img { width: min(40vw, 520px); height: auto; border-radius: 9px; margin-top: 36px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.3); }

.about__inner { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 160px; }
.about__lead { margin: 0; font-size: clamp(26px, 3.2vw, 42px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; }
.about__text { margin: 28px 0 0; color: #444; font-size: 18px; line-height: 1.5; }
.about__block { margin-top: 84px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.about__block h2 { margin: 0; font-size: 15px; font-weight: 500; }
.about__block dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 14px 24px; }
.about__block dt { font-weight: 500; }
.about__block dd { margin: 0; color: #555; }
.about__caps { margin: 0; color: #444; line-height: 1.6; }
.about__caps a { border-bottom: 1px solid currentColor; color: var(--ink); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .index__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --frame: 88vw; }
  body { font-size: 14px; }
  .chrome__tl { gap: 16px; }
  .chrome__tr { gap: 12px; }
  .chrome__tr > a { display: none; }
  .wordmark { top: 58px; gap: 8px; }
  .wordmark__mark { height: 34px; }
  .wordmark__name { font-size: 22px; }
  .wordmark small { font-size: 7px; letter-spacing: 0.22em; }
  .chrome__bl, .chrome__br { display: none; }
  .chrome__bc { flex-direction: column; align-items: center; gap: 2px; bottom: 18px; }
  .stream { gap: 22vh; padding-top: 32vh; }
  .index__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; padding-top: 140px; }
  .project__inner, .about__inner { padding-top: 140px; }
  .shot { width: 92vw; }
  .shot figcaption { grid-template-columns: 30px 1fr; }
  .shot figcaption i { grid-column: 2; }
  .project__shots { gap: 72px; }
  .project__body, .about__block, .about__block dl { grid-template-columns: 1fr; gap: 10px; }
  .project__stats { grid-template-columns: 1fr 1fr; }
  .project__next img { width: 80vw; }
}
@media (prefers-reduced-motion: reduce) {
  .frame { filter: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
