/* Yusuf Eren Çakmak — portfolio
   Layout concept: a gallery in two rooms. Films live in a black screening room,
   designs and photographs hang on a pale Apple-grey wall. Mono "( labels )" act as wall placards. */
:root {
  --night: #000;
  --night-2: #111113;
  --night-line: rgba(255, 255, 255, .12);
  --snow: #f5f5f7;
  --snow-dim: #8e8e93;
  --paper: #f5f5f7;
  --paper-2: #e8e8ed;
  --ink: #1d1d1f;
  --ink-dim: #6e6e73;
  --ink-line: rgba(0, 0, 0, .1);
  --link-dark: #2997ff;
  --link-light: #0066cc;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --gx: max(20px, 3.6vw);
  --pad-l: max(var(--gx), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gx), env(safe-area-inset-right, 0px));
  --radius: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--snow);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link-dark); outline-offset: 3px; border-radius: 6px; }
::selection { background: #2997ff55; }

.wrap { padding-left: var(--pad-l); padding-right: var(--pad-r); }
.room-dark { background: var(--night); color: var(--snow); }
.room-light { background: var(--paper); color: var(--ink); color-scheme: light; }
.room-white { background: #fff; color: var(--ink); color-scheme: light; }

/* ---------- type ---------- */
.label {
  font-family: var(--mono); font-size: 12px; line-height: 1.4; letter-spacing: .02em;
  text-transform: uppercase; font-weight: 500; white-space: nowrap;
}
.label.dim, .dim { color: var(--snow-dim); }
.room-light .dim, .room-white .dim { color: var(--ink-dim); }
.h-xxl { font-size: clamp(56px, 11.2vw, 210px); line-height: .9; letter-spacing: -.055em; font-weight: 600; margin: 0; }
.h-xl { font-size: clamp(44px, 7vw, 112px); line-height: .95; letter-spacing: -.045em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-l { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.038em; font-weight: 600; margin: 0; text-wrap: balance; }
.h-m { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.028em; font-weight: 600; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; letter-spacing: -.02em; font-weight: 500; max-width: 34ch; margin: 0; text-wrap: pretty; }
.body { max-width: 62ch; color: var(--snow-dim); margin: 0; }
.room-light .body, .room-white .body { color: var(--ink-dim); }
.tnum { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; gap: .5em; height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; transition: transform .4s var(--ease-out), background .3s, color .3s;
  background: var(--snow); color: var(--ink);
}
.btn:hover { transform: scale(1.03); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.room-light .btn:not(.ghost), .room-white .btn:not(.ghost) { background: var(--ink); color: var(--snow); }
.link { color: var(--link-dark); font-weight: 500; }
.room-light .link, .room-white .link { color: var(--link-light); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.arrow { display: inline-block; transition: transform .35s var(--ease-out); }
a:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.nav {
  position: fixed; z-index: 50; top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: var(--pad-l); right: var(--pad-r);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 52px; padding: 0 8px 0 20px; border-radius: 16px;
  background: rgba(28, 28, 30, .58); color: var(--snow);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease-out), background .4s;
}
.nav.hide { transform: translateY(calc(-100% - 30px)); }
.nav .brand { font-weight: 600; font-size: 15px; letter-spacing: -.015em; white-space: nowrap; }
.nav .brand sup { font-family: var(--mono); font-size: 9px; font-weight: 500; color: var(--snow-dim); margin-left: 3px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 10px; font-size: 14px; color: rgba(245, 245, 247, .78); transition: background .25s, color .25s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--snow); background: rgba(255, 255, 255, .1); }
.nav .menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; }
.nav .menu-btn span { display: grid; grid-template-columns: repeat(2, 4px); gap: 4px; }
.nav .menu-btn i { width: 4px; height: 4px; background: currentColor; border-radius: 1px; }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--night); color: var(--snow);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--pad-r) calc(env(safe-area-inset-bottom, 0px) + 32px) var(--pad-l);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu ol a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.menu ol .label { font-size: 11px; color: var(--snow-dim); transform: translateY(-1.2em); }
.menu .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 22px); right: calc(var(--pad-r) + 6px); width: 40px; height: 40px; font-size: 26px; font-weight: 300; }

@media (max-width: 760px) {
  .nav ul { display: none; }
  .nav .menu-btn { display: grid; }
}

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- media frame ---------- */
.frame { position: relative; overflow: hidden; background: #0b0b0c; isolation: isolate; }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.lb > img, .frame.lb > video { transform: scale(var(--lbs, 1.343)); }
.frame > video { opacity: 0; transition: opacity .6s var(--ease); }
.frame > video.playing { opacity: 1; }

/* ---------- HERO (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; background: var(--night); overflow: clip; }
.hero-media { position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform; overflow: hidden; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 52%, rgba(0,0,0,.72) 100%); }
.hero-ui { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: 1fr auto auto; padding-top: 120px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); color: #fff; }
.hero-mid { align-self: center; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-mid p { margin: 0; max-width: 26ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; font-weight: 500; color: rgba(255,255,255,.92); }
.hero-name { margin: 0 0 18px -.04em; }
.hero-foot { display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.7); }
.hero-foot .label { color: inherit; }

/* ---------- statement ---------- */
.statement { padding-block: clamp(96px, 14vw, 200px); }
.statement .cap { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.statement p.big {
  margin: 0; font-size: clamp(30px, 4.3vw, 68px); line-height: 1.08; letter-spacing: -.038em; font-weight: 600;
  text-indent: min(30%, 22vw); max-width: 22em; text-wrap: pretty;
}
.statement .w { transition: opacity .35s linear; }
.js .statement .w { opacity: var(--o, .18); }

/* ---------- featured (home) ---------- */
.featured { padding-block: clamp(96px, 10vw, 160px) clamp(80px, 8vw, 140px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 80px); flex-wrap: wrap; }
.feat-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.feat-media { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--night-2); }
.feat-card { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease-out); transform: scale(1.04); pointer-events: none; }
.feat-card.on { opacity: 1; transform: none; pointer-events: auto; }
.feat-card .frame { position: absolute; inset: 0; }
.feat-card .tags { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 500;
  background: rgba(30, 30, 32, .55); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); white-space: nowrap; }
.feat-card .play { position: absolute; left: 18px; bottom: 16px; z-index: 2; }
.feat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.5), transparent 40%); pointer-events: none; }
.feat-list { list-style: none; margin: 0; padding: 0 0 20vh; }
.feat-list li { min-height: 44vh; display: flex; align-items: center; }
.feat-list li:first-child { min-height: 30vh; align-items: flex-start; }
.feat-list a { display: block; padding-block: 8px; color: #3a3a3c; transition: color .5s var(--ease); }
.feat-list li.on a, .feat-list a:hover { color: var(--snow); }
.feat-list .t { display: block; font-size: clamp(34px, 4.2vw, 68px); line-height: .98; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.feat-list .s { display: flex; gap: 14px; margin-top: 12px; }
.feat-list .s .label { color: inherit; opacity: .8; }
.feat-mobile-media { display: none; }
.feat-more { margin-top: 24px; }

@media (max-width: 860px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-media { display: none; }
  .feat-list { padding: 0; display: grid; gap: 56px; }
  .feat-list li, .feat-list li:first-child { min-height: 0; display: block; }
  .feat-list a { color: var(--snow); }
  .feat-mobile-media { display: block; aspect-ratio: 4 / 3; border-radius: 18px; margin-bottom: 18px; }
}

/* ---------- 3D designs ring (home) ---------- */
.ring-sec { position: relative; overflow: hidden; padding-block: clamp(80px, 8vw, 120px) 0; }
.ring-head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ring-stage { position: relative; height: clamp(520px, 78vh, 860px); perspective: 900px; perspective-origin: 50% 50%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ring-stage.dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ring .tile {
  position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: var(--ar);
  translate: -50% -50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 6px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
}
.ring .tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; text-align: center; }
.ring-center > div { pointer-events: auto; display: grid; justify-items: center; gap: 14px; }
.ring-fade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 26% 22% at 50% 50%, rgba(245,245,247,.95) 0%, rgba(245,245,247,.7) 50%, rgba(245,245,247,0) 100%); }
.ring-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 3; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink-line); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(28px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.04em; padding-right: .9em; white-space: nowrap; color: #b8b8bd; transition: color .3s; }
.marquee-track span::after { content: "·"; padding-left: .9em; color: #d2d2d7; }
.marquee-track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { padding-block: clamp(96px, 11vw, 180px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 96px); }
.about-grid > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--ink-line); padding-top: 28px; }
.stats b { display: block; font-size: clamp(44px, 5vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--ink-dim); font-size: 15px; }
.services { list-style: none; margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; border-top: 1px solid var(--ink-line); }
.services li { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--ink-line); align-items: baseline; }
.services h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.services p { margin: 0; color: var(--ink-dim); max-width: 46ch; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .services li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- contact / footer ---------- */
.contact { padding-block: clamp(110px, 13vw, 210px) 0; }
.contact .mail { display: inline-block; margin-top: clamp(40px, 5vw, 72px); font-size: clamp(26px, 4.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; word-break: break-word; }
.contact .mail:hover { color: var(--link-dark); }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(100px, 12vw, 180px); padding-block: 22px calc(env(safe-area-inset-bottom, 0px) + 22px); border-top: 1px solid var(--night-line); }
.footer .label { color: var(--snow-dim); }
.footer a.label:hover { color: var(--snow); }
.room-light .footer { border-color: var(--ink-line); }
.room-light .footer .label { color: var(--ink-dim); }

/* ---------- page head (inner pages) ---------- */
.page-head { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- projects index (split) ---------- */
.split { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2.1fr); gap: clamp(28px, 4vw, 72px); align-items: start; padding-bottom: 40px; }
.split-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); display: grid; gap: 28px; padding-top: 8px; }
.split-side > * { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--snow-dim); box-shadow: inset 0 0 0 1px var(--night-line); transition: color .25s, background .25s; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--night); background: var(--snow); box-shadow: none; }
.room-light .filters button { color: var(--ink-dim); box-shadow: inset 0 0 0 1px var(--ink-line); }
.room-light .filters button[aria-pressed="true"], .room-light .filters button:hover { color: var(--snow); background: var(--ink); }
.side-meta { display: grid; gap: 6px; }
.side-meta div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--night-line); padding-top: 10px; }
.masonry { columns: 2; column-gap: clamp(14px, 1.6vw, 24px); }
.card { display: block; break-inside: avoid; margin-bottom: clamp(28px, 3vw, 44px); }
.card .frame { border-radius: 16px; aspect-ratio: var(--ar, 16 / 10); transition: transform .8s var(--ease-out); }
.card:hover .frame { transform: scale(.985); }
.card .frame > img { transition: transform 1.2s var(--ease-out); }
.card:hover .frame > img { transform: scale(calc(var(--lbs, 1) * 1.04)); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 14px; }
.card .meta h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.022em; line-height: 1.2; }
.card .meta p { margin: 3px 0 0; font-size: 14px; color: var(--snow-dim); }
.card[hidden] { display: none !important; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-side { position: static; }
}
@media (max-width: 560px) { .masonry { columns: 1; } }

/* ---------- project detail ---------- */
.proj-head { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); }
.proj-head .crumbs { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.meta-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 4vw, 60px); border-top: 1px solid var(--night-line); padding-top: 18px; }
.meta-grid > div { min-width: 0; display: grid; gap: 6px; align-content: start; }
.meta-grid dd { margin: 0; font-size: 15px; line-height: 1.35; }
.meta-grid dt { margin: 0; }
@media (max-width: 960px) { .meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; } }
@media (max-width: 520px) { .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.players { display: grid; gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 72px); }
.players.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1100px; margin-inline: auto; }
.player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.player video { width: 100%; height: auto; display: block; background: #000; }
.player .cover { position: absolute; inset: 0; display: grid; place-items: center; background: #000; transition: opacity .5s var(--ease); }
.player .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.player .cover .pbtn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 18px; border-radius: 999px;
  background: rgba(245,245,247,.92); color: var(--ink); font-weight: 600; font-size: 16px; transition: transform .4s var(--ease-out); }
.player .cover:hover .pbtn { transform: scale(1.05); }
.pbtn svg { width: 22px; height: 22px; }
.player.started .cover { opacity: 0; pointer-events: none; }
.player .plabel { position: absolute; left: 18px; top: 16px; z-index: 2; }
.player.started .plabel { display: none; }

.desc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 96px); padding-block: clamp(72px, 8vw, 130px) 0; }

.frames-sec { padding-block: clamp(80px, 9vw, 150px) 0; }
.frames-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.frames-grid.tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fr { display: block; text-align: left; width: 100%; }
.fr .frame { border-radius: 10px; aspect-ratio: var(--ar); }
.fr .frame > img { transition: transform 1s var(--ease-out); }
.fr:hover .frame > img { transform: scale(1.035); }
.fr .fr-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 9px; }
.swatches { display: flex; gap: 3px; }
.swatches i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.fr.clip .badge { position: absolute; left: 10px; top: 10px; z-index: 2; }
.palette { display: flex; height: 72px; border-radius: 14px; overflow: hidden; margin-top: clamp(36px, 4vw, 56px); }
.palette i { flex: 1; }
@media (max-width: 860px) { .frames-grid, .frames-grid.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .desc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .players.two { grid-template-columns: 1fr; } }

.next { display: block; position: relative; margin-top: clamp(100px, 12vw, 180px); border-top: 1px solid var(--night-line); padding-block: clamp(40px, 5vw, 72px) 0; }
.next .h-xl { transition: color .4s var(--ease); }
.next:hover .h-xl { color: var(--snow-dim); }
.next .frame { margin-top: 32px; border-radius: var(--radius); aspect-ratio: 21 / 9; }
.next .frame > img { transition: transform 1.4s var(--ease-out); }
.next:hover .frame > img { transform: scale(calc(var(--lbs, 1) * 1.03)); }

/* ---------- designs page ---------- */
.d-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); z-index: 10; padding-block: 14px; }
.d-sec { padding-block: clamp(64px, 7vw, 120px) 0; }
.d-sec[hidden] { display: none; }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.logo-tile { display: block; text-align: left; width: 100%; }
.logo-tile .frame { aspect-ratio: 1; border-radius: 18px; background: var(--bg, #fff); }
.logo-tile .frame > img { object-fit: contain; transition: transform .9s var(--ease-out); }
.logo-tile:hover .frame > img { transform: scale(1.06); }
.logo-tile .label { display: block; margin-top: 10px; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; }
.logo-tile.cta .frame { background: var(--ink); color: var(--snow); display: grid; place-items: center; text-align: center; padding: 20px; }
.logo-tile.cta .frame span { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
@media (max-width: 860px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.brand-block + .brand-block { margin-top: clamp(64px, 7vw, 110px); }
.brand-block .bh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; margin-bottom: clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--ink-line); flex-wrap: wrap; }
.img-masonry { columns: 3; column-gap: clamp(10px, 1.2vw, 18px); }
.img-masonry .pic { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 18px); }
.pic { display: block; width: 100%; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.pic img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out); }
.pic:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .img-masonry { columns: 2; } }

.photo-wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: end; }
.photo-wall figure { margin: 0; min-width: 0; }
.photo-wall figure:nth-child(1) { grid-column: 1 / span 4; }
.photo-wall figure:nth-child(2) { grid-column: 6 / span 7; }
.photo-wall figure:nth-child(3) { grid-column: 2 / span 4; }
.photo-wall figure:nth-child(4) { grid-column: 7 / span 6; align-self: start; }
.photo-wall figure:nth-child(5) { grid-column: 3 / span 8; }
.photo-wall figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-dim); }
@media (max-width: 700px) { .photo-wall figure:nth-child(n) { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
.lb-box { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; color: var(--snow);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--pad-r) calc(env(safe-area-inset-bottom, 0px) + 18px) var(--pad-l); }
.lb-box.open { opacity: 1; visibility: visible; }
.lb-top, .lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding-block: 12px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 20px; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-nav { display: flex; gap: 8px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); translate: -50% 20px; z-index: 95; padding: 12px 18px; border-radius: 12px; background: var(--snow); color: var(--ink); font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .3s, translate .4s var(--ease-out); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement .w { opacity: 1; }
}

/* ---------- small-screen fixes ---------- */
.wrap-label { white-space: normal; overflow-wrap: anywhere; }
.fr-meta > .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ring-center .label { white-space: normal; max-width: 34ch; text-align: center; }
@media (max-width: 640px) {
  .hero-mid { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-ui { padding-top: 96px; }
  .fr-meta .swatches { display: none; }
}
.page-head .row .label, .sec-head > .label, .brand-block .bh .label { white-space: normal; }
.d-tabs { background: rgba(245,245,247,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
