/* ==================================================================
   Yoann Designs — clone
   ================================================================== */

/* League Spartan — variable (100–900), self-hosted */
@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan-Latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan-LatinExt.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan-Vietnamese.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #EAEAEA;
  --ink: #0A2540;
  --ink-soft: rgba(19, 19, 19, 0.52);
  --ink-faint: rgba(19, 19, 19, 0.32);
  --line: rgba(19, 19, 19, 0.14);
  --item-h: 131px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: 24px;
  --col: 13.8%;
  --num-left: clamp(40px, 6.7vw, 132px);
  --num-size: clamp(84px, 12.2vw, 211px);
  --font-display: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "League Spartan", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.overlay-open { overflow: hidden; }

::selection { background: #0A2540; color: #EAEAEA; }

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* No mix-blend-mode: blending a fixed full-screen layer over the WebGL
     canvas every frame is a large compositor cost for a 4% texture. */
}

/* ==================================================================
   INTRO
   ================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0b0b0b;
  color: #ececec;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: transform 1s var(--ease), opacity 0.6s ease 0.2s;
}
.intro.done { transform: translateY(-101%); }
.intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.2vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.intro-mark sup { font-family: var(--font-sans); font-size: 0.18em; vertical-align: super; letter-spacing: 0; }
.intro-count { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.02em; opacity: 0.6; padding-top: 8px; }
.intro-tag { font-size: 12px; color: rgba(236, 236, 236, 0.5); }

/* ==================================================================
   HOME
   ================================================================== */
.home { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }

/* ---------- top bar ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  z-index: 40;
  color: var(--ink);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  position: absolute;
  left: var(--pad);
  top: 23px;
  width: clamp(46px, 4.15vw, 72px);
  display: block;
  text-decoration: none;
  z-index: 45;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.04));
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.brand:hover img { transform: rotate(-3deg); }

.menu-btn {
  position: absolute;
  left: 13.75%;
  top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(19, 19, 19, 0.5);
  transition: color 0.3s ease;
}
.menu-btn:hover { color: var(--ink); }

.main-nav {
  position: absolute;
  left: 13.76%;
  top: 76.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 22.8px;
  letter-spacing: -0.04em;
}
.main-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0;
  line-height: inherit;
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
}
.main-nav a:first-of-type { margin-left: 35px; }
.main-nav a:hover { transform: translateX(7px); opacity: 0.65; }
.nav-arrow {
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
}

.audio-btn {
  position: absolute;
  left: 39.1%;
  top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  gap: 6px;
  align-items: center;
}
.audio-btn .dash { color: rgba(19, 19, 19, 0.45); }
.audio-btn:hover #audioState { opacity: 0.6; }

.loc {
  position: absolute;
  left: 50.83%;
  top: 24.5px;
  z-index: 41;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.loc span { color: #fff; opacity: 0.5; }

.inq {
  position: absolute;
  right: var(--pad);
  top: 24px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(19, 19, 19, 0.5);
}
.inq a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 13px;
}

/* ---------- stage ---------- */
.stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.mag-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
body.webgl .mag-canvas { opacity: 1; }

body.webgl .collage,
body.webgl .main-frame { display: none; }

.collage { position: absolute; inset: 0; transition: transform 0.9s var(--ease); }

.c {
  position: absolute;
  overflow: hidden;
  background: #d9d9d9;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
  will-change: transform;
}
.c img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 1.2s var(--ease);
}
.c.swap img { animation: collageSwap 1s var(--ease) both; }

@keyframes collageSwap {
  from { opacity: 0.1; transform: scale(1.09); }
  to { opacity: 1; transform: scale(1.02); }
}

.c1 { left: 49.5%; top: -3.5%; width: 24.5vw; aspect-ratio: 1.5; transform: rotate(-7deg); }
.c2 { left: 73.4%; top: -4.5%; width: 8vw; aspect-ratio: 0.62; transform: rotate(5deg); }
.c3 { left: 80.8%; top: 5%; width: 6.4vw; aspect-ratio: 0.72; transform: rotate(-4deg); }

.main-frame {
  position: absolute;
  left: 48.1%;
  top: 50%;
  width: 27.1vw;
  aspect-ratio: 1.243;
  transform: translate(-50%, -50%) rotate(-1.2deg);
  background: #d6d6d6;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.13);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  z-index: 2;
}
.main-frame:hover {
  transform: translate(-50%, -50%) rotate(-1.2deg) scale(1.012);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.18);
}
.frame-inner { position: absolute; inset: 0; display: block; }
.frame-layer { position: absolute; inset: 0; overflow: hidden; will-change: transform, opacity; }
.frame-layer img { width: 100%; height: 100%; object-fit: cover; }
.frame-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 13px;
  border-radius: 100px;
  background: #f7f7f7;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  pointer-events: none;
}
.main-frame:hover .frame-hint { opacity: 1; transform: none; }

@keyframes frameIn {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.06); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); }
}
@keyframes frameOut {
  from { clip-path: inset(0 0 0 0); transform: scale(1); }
  to { clip-path: inset(0 0 100% 0); transform: scale(0.97); }
}

.swatches {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1px;
  z-index: 12;
  pointer-events: auto;
}
.swatches span {
  width: 20px;
  height: 20px;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease);
  animation: swatchIn 0.6s var(--ease) both;
}
.swatches span:nth-child(2) { animation-delay: 0.05s; }
.swatches span:nth-child(3) { animation-delay: 0.1s; }
.swatches span:nth-child(4) { animation-delay: 0.15s; }
.swatches span:hover { transform: scale(1.25); }
@keyframes swatchIn {
  from { opacity: 0; transform: scale(0.55); filter: blur(3px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ---------- index ---------- */
.index {
  position: absolute;
  left: 80%;
  top: 0;
  width: 23.4%;
  min-width: 300px;
  max-width: 460px;
  height: 100%;
  overflow: hidden;
  transform: translateX(-50%);
  z-index: 9;
  pointer-events: none;
}
.index-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
  pointer-events: auto;
  transition: filter 0.55s ease, opacity 0.55s ease;
}
.index.blurred .index-track {
  filter: blur(6px);
  opacity: 0.35;
  transition: filter 0.18s ease, opacity 0.18s ease;
}
.index-item {
  display: block;
  text-align: center;
  width: 100%;
  height: max(128px, 19.2vh);
  color: #1e1e1e;
  cursor: pointer;
  opacity: 0.24;
  transition: opacity 0.5s ease;
}
.index-item.active { opacity: 1; }
.index-item:hover { opacity: 0.58; }
.index-item .cat {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(19, 19, 19, 0.62);
  margin-bottom: 8px;
  transition: opacity 0.45s ease;
}
.index-item .name {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.19vw, 20.5px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #1e1e1e;
  transition: opacity 0.45s ease;
}
.index-item .dash {
  display: block;
  width: 14px;
  height: 1px;
  margin: 21px auto 0;
  background: currentColor;
  opacity: 0.38;
}
.index-item .desc {
  display: block;
  margin-top: 22px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  line-height: 1.3;
  color: #1e1e1e;
  transition: opacity 0.45s ease;
}

.index-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 2;
}
.index-fade.top { top: 0; background: linear-gradient(var(--bg) 0%, rgba(234, 234, 234, 0) 100%); }
.index-fade.bottom { bottom: 0; background: linear-gradient(rgba(234, 234, 234, 0) 0%, var(--bg) 100%); }
.index.static .index-fade { display: none; }

/* ---------- meta ---------- */
.meta {
  position: absolute;
  left: var(--pad);
  top: 41.1%;
  width: 46%;
  height: 190px;
  z-index: 10;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  transition: filter 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}
.meta.changing {
  filter: blur(8px);
  opacity: 0;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.meta .k { color: var(--ink-soft); flex: none; }
.meta .v { white-space: pre-line; }

.meta-role { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; }
.meta-row { display: flex; width: 220px; }
.meta-row .k { width: 69px; }
.meta-row .k,
.meta-row .v { line-height: 1.3; }

.meta-launch { position: absolute; left: 213px; top: 0; display: flex; }
.meta-launch .k { width: 109px; }
.meta-rec { position: absolute; left: 213px; top: 101px; display: flex; width: 430px; }
.meta-rec .k { width: 109px; }
.meta-rec .v { display: flex; flex-direction: column; line-height: 1.3; }

/* ---------- selected work ---------- */
.selected {
  position: absolute;
  left: var(--col);
  bottom: 39px;
  width: 62%;
  z-index: 11;
  pointer-events: none;
}
.sel-label {
  position: absolute;
  left: 0;
  top: 15.5px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  z-index: 3;
}
.sel-total {
  position: absolute;
  left: calc(var(--num-left) + var(--num-size) * 1.274);
  top: 15.3px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
}
.big-num {
  position: relative;
  display: block;
  left: var(--num-left);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--num-size);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  -webkit-text-stroke: 0.022em #fff;
  paint-order: stroke fill;
  z-index: 2;
  min-width: 2ch;
  transition: filter 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}
.big-num.changing {
  filter: blur(10px);
  opacity: 0;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.big-num .num-old { position: absolute; left: 0; top: 0; }

/* ---------- misc ---------- */
.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: 24px;
  z-index: 12;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}
.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(-2px); opacity: 0.3; }
  50% { transform: translateY(2px); opacity: 1; }
}

.showreel {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 12;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}
.showreel:hover { opacity: 0.6; }

.mobile-caption { display: none; }

/* ==================================================================
   OVERLAYS
   ================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  color: var(--ink);
  transform: translateY(101%);
  visibility: hidden;
  transition: transform 1s var(--ease), visibility 0s linear 1s;
  overflow: hidden;
}
.overlay.open {
  transform: none;
  visibility: visible;
  transition: transform 1s var(--ease), visibility 0s;
}

.p-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 5;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.p-top > * { pointer-events: auto; }

.close-btn {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}
.close-btn:hover { opacity: 0.55; }
.close-btn span { font-size: 15px; line-height: 1; }
.close-btn.light { color: #ececec; }

/* ---------- menu ---------- */
.menu-overlay {
  background: #0c0c0c;
  color: #ececec;
  z-index: 300;
}
.menu-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 3;
}
.menu-top .eyebrow { color: rgba(236, 236, 236, 0.45); }

.menu-links {
  position: absolute;
  left: 13.1%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.menu-links a {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: #ececec;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0.06em 0;
  transition: color 0.35s ease, transform 0.6s var(--ease);
}
.menu-links a span {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding-top: 0.55em;
  color: rgba(236, 236, 236, 0.35);
  transition: color 0.35s ease;
}
.menu-links a:hover { color: #ff4d3d; transform: translateX(14px); }
.menu-links a:hover span { color: #ff4d3d; }

.menu-overlay .menu-links a { opacity: 0; translate: 0 46px; }
.menu-overlay.open .menu-links a { animation: menuIn 0.9s var(--ease) forwards; }
.menu-overlay.open .menu-links a:nth-child(1) { animation-delay: 0.12s; }
.menu-overlay.open .menu-links a:nth-child(2) { animation-delay: 0.19s; }
.menu-overlay.open .menu-links a:nth-child(3) { animation-delay: 0.26s; }
.menu-overlay.open .menu-links a:nth-child(4) { animation-delay: 0.33s; }
@keyframes menuIn {
  to { opacity: 1; translate: 0 0; }
}
.menu-overlay.open .menu-links a:hover { transform: translateX(14px); }

.menu-preview {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 25vw;
  max-width: 460px;
  aspect-ratio: 1.25;
  transform: translateY(-50%) rotate(-4deg);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.menu-overlay.open .menu-preview { opacity: 1; }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }

.menu-foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 20px;
  display: flex;
  gap: 8vw;
  z-index: 3;
}
.menu-foot > div { display: flex; flex-direction: column; gap: 3px; }
.menu-foot .eyebrow { color: rgba(236, 236, 236, 0.35); margin-bottom: 3px; }
.menu-foot a, .menu-foot span:not(.eyebrow) {
  color: #ececec;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.menu-foot a:hover { opacity: 0.55; }

/* ---------- project ---------- */
.project-overlay { background: var(--bg); }
.p-count { color: var(--ink-soft); }

.p-scroll, .about-scroll, .pg-scroll, .contact-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.p-head { padding: 13vh 3vw 0; }
.p-cat { margin: 0 0 2.4vh; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.p-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 9.6vw, 186px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.p-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 3.4vh;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.p-link:hover { opacity: 0.55; }
.p-link[hidden] { display: none; }
.p-meta {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.7fr 1.6fr;
  gap: 2vw;
  margin-top: 6vh;
  max-width: 1500px;
}
.p-meta span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.p-meta p { margin: 0; font-size: 12px; line-height: 1.35; font-weight: 500; }
.p-meta p span { display: block; font-size: 12px; color: var(--ink); margin: 0; }

.p-hero {
  width: min(100vw, calc(86vh * 16 / 9));
  margin: 7vh auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8d8d8;
}
.p-hero img { width: 100%; height: 100%; object-fit: cover; }

.p-body {
  width: 94vw;
  margin: 7vh auto 0;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 7vw;
  align-items: start;
}
.p-about {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.35vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  max-width: 900px;
}
.p-side { border-top: 1px solid var(--line); }
.p-side-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.p-side-row > span:first-child { color: var(--ink-soft); }
.p-side-row strong { font-weight: 500; text-align: right; }
.p-swatches { display: flex; gap: 5px; }
.p-swatches i { width: 16px; height: 16px; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }

/* ---------- case study ---------- */
.p-case {
  width: 94vw;
  margin: 14vh auto 0;
  padding: clamp(32px, 5vw, 72px);
  background: #14181d;
  color: #f4f4f2;
}
.p-case[hidden] { display: none; }
.p-case-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}
.p-case-block h3,
.p-case-head h3 {
  margin: 0 0 22px;
  font-size: clamp(19px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.p-case-head h3 span { font-weight: 400; color: #9aa2aa; }
.p-case-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.35;
}
.p-case-list li { padding: 5px 0; }
.p-case-text,
.p-case-response {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.45;
  color: #d6dadd;
}
.p-case-rule { height: 1px; margin: clamp(48px, 7vw, 110px) 0; background: #363d44; }
.p-case-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: start;
  padding: 0 0 clamp(48px, 6vw, 96px);
}
.p-case-row:last-child { padding-bottom: 0; }
.p-case-row[hidden] { display: none; }

/* ---------- project videos ---------- */
.p-media {
  width: 94vw;
  margin: 10vh auto 0;
  display: grid;
  gap: 2vh;
}
.p-media[hidden] { display: none; }
.p-media-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14181d;
}
.p-media-item video { display: block; width: 100%; height: 100%; object-fit: cover; }

.p-next {
  display: block;
  width: 94vw;
  margin: 14vh auto 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
  position: relative;
  color: var(--ink);
}
.p-next-label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 1.4vh; }
.p-next strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}
.p-next figure {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(140px, 17vw, 300px);
  aspect-ratio: 1.3;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
  transition: transform 0.7s var(--ease);
}
.p-next:hover figure { transform: rotate(0deg) scale(1.03); }
.p-next figure img { width: 100%; height: 100%; object-fit: cover; }
.p-next:hover strong { opacity: 0.55; }

.p-foot {
  width: 94vw;
  margin: 12vh auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}
.p-foot a { color: var(--ink); text-decoration: none; }

/* ---------- about ---------- */
.about-scroll { padding: 12vh 3vw 0; }
.about-hero { max-width: 1500px; }
.about-title {
  margin: 2.5vh 0 5vh;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 138px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.about-title em { font-style: italic; color: var(--ink-soft); }
.about-lede {
  max-width: 560px;
  margin: 0 0 10vh;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  margin-bottom: 10vh;
}
.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.about-stats span { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-bottom: 12vh; }
.about-list { list-style: none; margin: 20px 0 0; padding: 0; }
.about-list li { font-size: clamp(17px, 1.5vw, 24px); line-height: 1.5; border-bottom: 1px solid var(--line); padding: 10px 0; }
.about-list.muted li { font-size: 13px; color: var(--ink-soft); }
.about-big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 5vh;
}
.about-big span { font-style: italic; color: var(--ink-soft); }
.about-quote {
  max-width: 900px;
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.4;
  margin: 0 0 8vh;
}
.process-list {
  list-style: none;
  margin: 0 0 4vh;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 5vw;
}
.process-list li {
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: baseline;
}
.process-list li > span { font-size: 11px; color: var(--ink-soft); }
.process-list strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 0; }
.process-list p { grid-column: 2; margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); max-width: 400px; }

/* ---------- playground ---------- */
.pg-head {
  padding: 13vh 3vw 6vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: end;
}
.pg-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(60px, 10vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.025em;
}
.pg-head p { margin: 0 0 10px; max-width: 520px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw 2vw;
  padding: 0 3vw 4vh;
}
.pg-item { display: block; text-align: left; color: var(--ink); }
.pg-item figure { overflow: hidden; aspect-ratio: 4 / 3; background: #d8d8d8; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.4s ease; }
.pg-item:hover img { transform: scale(1.05); opacity: 0.9; }
.pg-item span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; font-size: 12px; }
.pg-item span i { font-style: normal; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-overlay { background: #0c0c0c; color: #ececec; }
.contact-scroll { padding: 13vh 3vw 0; }
.contact-title {
  margin: 2vh 0 6vh;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(84px, 16vw, 300px);
  line-height: 0.78;
  letter-spacing: -0.03em;
}
.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 52px);
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 236, 236, 0.4);
  padding-bottom: 4px;
  margin-bottom: 12vh;
  transition: color 0.3s ease;
}
.contact-mail:hover { color: #ff4d3d; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
  border-top: 1px solid rgba(236, 236, 236, 0.16);
  padding-top: 28px;
}
.contact-grid > div { display: flex; flex-direction: column; gap: 4px; }
.contact-grid .eyebrow { color: rgba(236, 236, 236, 0.4); margin-bottom: 6px; }
.contact-grid a { color: #ececec; text-decoration: none; font-size: 12px; font-weight: 500; }
.contact-grid a:hover { opacity: 0.55; }
.contact-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16vh;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(236, 236, 236, 0.16);
  font-size: 12px;
  color: rgba(236, 236, 236, 0.45);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1180px) {
  .meta-rec { width: 340px; }
  .index { width: 25%; }
}

@media (max-width: 900px) {
  :root {
    --pad: 16px;
    --num-left: 40px;
    --num-size: clamp(76px, 22vw, 120px);
  }

  .topbar { height: 80px; }
  .brand { left: 16px; top: 16px; width: 38px; }
  .menu-btn { left: auto; right: 16px; top: 18px; color: var(--ink); }
  .main-nav, .audio-btn, .loc, .inq { display: none; }

  .main-frame { left: 50%; top: 42%; width: 68vw; }
  .c1 { left: 22%; top: 3%; width: 58vw; transform: rotate(-5deg); }
  .c2 { left: 78%; top: 12%; width: 22vw; }
  .c3 { display: none; }

  .index, .meta, .swatches { display: none; }

  .selected { left: 16px; bottom: 70px; width: 80%; }
  .sel-label { top: -20px; }
  .sel-total { top: -20px; }

  .scroll-hint { display: none; }
  .showreel { bottom: 16px; right: 16px; }

  .mobile-caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    left: 16px;
    bottom: 230px;
    z-index: 12;
    max-width: 80vw;
  }
  .mc-cat { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
  .mc-name {
    font-family: var(--font-display);
    font-size: clamp(26px, 7.4vw, 40px);
    line-height: 0.95;
    letter-spacing: 0.005em;
  }

  .menu-links { left: 16px; top: 42%; }
  .menu-links a { font-size: clamp(44px, 13vw, 76px); gap: 12px; }
  .menu-preview { display: none; }
  .menu-foot { flex-wrap: wrap; gap: 24px 32px; bottom: 16px; }
  .menu-foot > div:nth-child(3) { display: none; }

  .p-head { padding: 10vh 16px 0; }
  .p-title { font-size: clamp(42px, 13vw, 90px); }
  .p-meta { grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 4vh; }
  .p-hero { width: 100vw; margin-top: 5vh; aspect-ratio: 16 / 9; }
  .p-body { width: calc(100vw - 32px); grid-template-columns: 1fr; gap: 6vh; }
  .p-about { font-size: 20px; }
  .p-case { width: 100vw; margin-top: 10vh; padding: 32px 16px; }
  .p-case-top, .p-case-row { grid-template-columns: 1fr; gap: 32px; }
  .p-case-rule { margin: 48px 0; }
  .p-case-row { padding-bottom: 56px; }
  .p-media { width: 100vw; margin-top: 8vh; }
  .p-next { width: calc(100vw - 32px); margin-top: 10vh; }
  .p-next strong { font-size: 40px; max-width: 60%; }
  .p-next figure { width: 34vw; }
  .p-foot { width: calc(100vw - 32px); }

  .about-scroll { padding: 10vh 16px 0; }
  .about-title { font-size: clamp(40px, 11.5vw, 72px); }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 8vh; }
  .process-list { grid-template-columns: 1fr; }

  .pg-head { padding: 10vh 16px 5vh; grid-template-columns: 1fr; gap: 24px; }
  .pg-head h2 { font-size: 56px; }
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 0 16px 3vh; }

  .contact-scroll { padding: 10vh 16px 0; }
  .contact-title { font-size: clamp(76px, 24vw, 150px); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .contact-foot { flex-direction: column; gap: 8px; margin-top: 10vh; }
}

@media (max-width: 520px) {
  .pg-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-foot { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
