/* ==========================================================================
   Ibtihaj Ali — Portfolio
   Two surfaces, equal weight: paper (#fff) and ink (#000). The chrome has no
   colour at all; the colour on the page is the work.
   ========================================================================== */

:root {
  --pad: clamp(20px, 3.4vw, 56px);
  --gap: clamp(14px, 1.6vw, 24px);
  --sec: clamp(88px, 12vw, 200px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --head: 76px;
}

/* ---------- Surfaces ---------- */
.on-paper { --bg: #fff; --fg: #000; --mute: #666; --line: rgba(0, 0, 0, 0.18); --field: #f1f1f1; }
.on-ink   { --bg: #000; --fg: #fff; --mute: #9b9b9b; --line: rgba(255, 255, 255, 0.24); --field: #111; }
.on-paper, .on-ink { background: var(--bg); color: var(--fg); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #fff; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; }
ul { list-style: none; }
::selection { background: #000; color: #fff; }
.on-ink ::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: #fff; color: #000; padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--sec); }

/* ---------- Type ---------- */
.title {
  font-size: clamp(2.5rem, 6.2vw, 6.5rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 40ch;
  text-wrap: pretty;
}
.muted { color: var(--mute); }
p { max-width: 62ch; text-wrap: pretty; }
h3 { font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }

/* Word-by-word masked rise (page load only) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.28em; margin: -0.06em -0.04em -0.28em; }
.w > span { display: inline-block; }
.js .w > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes rise { to { transform: none; } }

/* ---------- Header (inverts over whatever is behind it) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--head); z-index: 120;
  color: #fff; mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad);
}
.brand { font-weight: 750; font-stretch: 110%; letter-spacing: -0.035em; font-size: 1.25rem; }
.nav { display: none; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav a.link { position: relative; font-weight: 500; font-size: 0.98rem; padding: 6px 0; }
.nav a.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav a.link:hover::after, .nav a.link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.pill {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border: 1.5px solid currentColor; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease);
}
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: translateY(102%); transition: transform 0.5s var(--ease); border-radius: inherit; }
.pill:hover::before { transform: none; }
.menu-btn { font-weight: 600; font-size: 0.98rem; display: inline-flex; align-items: center; gap: 10px; height: 42px; }
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-open .menu-btn i::before { transform: translateY(4.25px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110; background: #000; color: #fff;
  padding: calc(var(--head) + 24px) var(--pad) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-io), visibility 0s; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(2.6rem, 12vw, 5rem); font-weight: 700; font-stretch: 108%; letter-spacing: -0.04em; line-height: 1.12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 6px 0;
}
.menu nav a[aria-current="page"] { color: #9b9b9b; }
.menu-foot { display: grid; gap: 6px; color: #9b9b9b; font-size: 1rem; }
.menu-foot a { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px;
  border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: translateY(102%); transition: transform 0.55s var(--ease); border-radius: inherit; }
.btn span { position: relative; }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--bg); }
.btn.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid::before { background: var(--bg); }
.btn.solid:hover { color: var(--fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { color: #fff; } /* hero lives inside the difference layer: always white */
.hero .btn:hover { color: #000; }

.link-u { position: relative; font-weight: 600; padding-bottom: 3px; white-space: nowrap; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); transform-origin: right; }
.link-u:hover::after { transform: scaleX(0); }

/* ==========================================================================
   HERO — a black/white split that follows the cursor
   ========================================================================== */
.hero {
  --x: 0%;
  position: relative; min-height: 100svh;
  background: linear-gradient(90deg, #000 var(--x), #fff var(--x));
  display: flex; flex-direction: column;
}
.hero-blend { mix-blend-mode: difference; color: #fff; display: flex; flex-direction: column; flex: 1; padding: calc(var(--head) + clamp(28px, 6vh, 72px)) var(--pad) clamp(40px, 5vw, 72px); }
.hero-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.hero-statement {
  grid-column: 1 / -1; font-size: clamp(2.1rem, 4.6vw, 4.8rem); font-weight: 650; font-stretch: 106%;
  letter-spacing: -0.04em; line-height: 0.98; max-width: 15ch; text-wrap: balance;
}
.hero-side { grid-column: 1 / -1; display: grid; gap: 28px; margin-top: 28px; align-content: start; }
.hero-side p { font-size: 1.05rem; line-height: 1.5; max-width: 38ch; }
.hero-facts { display: grid; gap: 2px; font-size: 1.05rem; }
.hero-facts b { font-weight: 700; font-stretch: 108%; }
.hero-name-wrap { margin-top: auto; padding-top: 6vh; }
.hero-name {
  display: inline-block; white-space: nowrap; font-size: 15.4vw; font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.06em; line-height: 0.8; margin-left: -0.03em; padding-bottom: 0.04em;
}
.hero-name .w { padding: 0.14em 0.03em 0.3em; margin: -0.14em -0.03em -0.3em; }

.handle {
  position: absolute; top: 62%; left: var(--x); width: 76px; height: 76px; margin: -38px 0 0 -38px; z-index: 5;
  border-radius: 50%; border: 1.5px solid #fff; background: transparent; color: #fff; cursor: ew-resize;
  display: grid; place-items: center; touch-action: none; opacity: 0; transition: opacity 0.8s 1.4s, transform 0.4s var(--ease);
}
.handle svg { width: 30px; height: 30px; }
.js .handle { opacity: 1; }
.handle:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .handle { pointer-events: none; } .handle:focus-visible { pointer-events: auto; } }

@media (max-width: 899px) { .handle { top: 77%; } .hero-statement { font-size: clamp(2.5rem, 10.5vw, 4rem); } }
@media (min-width: 900px) {
  .hero-statement { grid-column: 1 / 9; }
  .hero-side { grid-column: 9 / -1; margin-top: 10px; gap: 36px; }
  .hero-facts { font-size: 1.1rem; }
}

/* ==========================================================================
   WORK TILES
   ========================================================================== */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.tile { display: block; width: 100%; text-align: left; cursor: pointer; }
.tile-media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--field); }
.tile-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.22); pointer-events: none; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .tile:hover .tile-media img { transform: scale(1.04); } }
.tile-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; align-items: baseline; }
.tile-title { font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1.25; }
.tile-cat { color: var(--mute); font-size: 0.95rem; white-space: nowrap; }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(44px, 6vw, 110px) var(--gap); align-items: end; }
.feature-grid .tile { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .feature-grid .tile:nth-child(1) { grid-column: 1 / 8; }
  .feature-grid .tile:nth-child(2) { grid-column: 9 / 13; }
  .feature-grid .tile:nth-child(3) { grid-column: 1 / 6; }
  .feature-grid .tile:nth-child(4) { grid-column: 7 / 13; }
  .feature-grid .tile:nth-child(5) { grid-column: 2 / 9; }
  .feature-grid .tile:nth-child(6) { grid-column: 10 / 13; }
}

.grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 4vw, 64px) var(--gap); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid.fading { opacity: 0; transition: opacity 0.18s; }
.grid { transition: opacity 0.35s var(--ease); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  height: 46px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  display: inline-flex; align-items: center; gap: 10px; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip small { font-size: 0.8rem; font-weight: 600; color: var(--mute); transition: color 0.3s; }
.chip:hover { border-color: var(--fg); }
.chip.active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip.active small { color: var(--bg); opacity: 0.7; }
.count { color: var(--mute); margin-bottom: clamp(28px, 4vw, 56px); }

/* ==========================================================================
   SERVICES ROWS (home)
   ========================================================================== */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; gap: 14px 40px; padding: clamp(26px, 3.4vw, 48px) var(--pad); margin-inline: calc(var(--pad) * -1);
  border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden; transition: color 0.5s var(--ease);
}
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.row-name { font-size: clamp(2.1rem, 5.4vw, 5.2rem); font-weight: 700; font-stretch: 110%; letter-spacing: -0.045em; line-height: 0.95; }
.row-desc { color: var(--mute); max-width: 44ch; transition: color 0.5s var(--ease); }
@media (min-width: 900px) {
  .row { grid-template-columns: 1.35fr 1fr; align-items: center; }
}
@media (hover: hover) {
  .row:hover::before { transform: scaleY(1); }
  .row:hover { color: var(--bg); }
  .row:hover .row-desc { color: var(--bg); }
}

/* ==========================================================================
   APPROACH + FEED TEST
   ========================================================================== */
.approach { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 980px) { .approach { grid-template-columns: 5fr 7fr; align-items: start; } .approach-copy { position: sticky; top: calc(var(--head) + 24px); } }
.approach-copy .lead { margin-top: 28px; }
.demo { border: 1.5px solid var(--fg); border-radius: 6px; overflow: hidden; }
.demo-stage { background: var(--field); display: grid; place-items: center; aspect-ratio: 16 / 10; padding: clamp(16px, 3vw, 40px); position: relative; }
.demo-frame { width: calc(var(--s, 1) * 100%); aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.demo-frame img { width: 100%; height: 100%; object-fit: cover; filter: blur(var(--blur, 0px)) grayscale(var(--gray, 0)); }
.demo-read { position: absolute; left: 16px; bottom: 12px; font-size: 0.9rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.demo-bar { display: grid; gap: 18px; padding: 20px; border-top: 1.5px solid var(--fg); }
@media (min-width: 620px) { .demo-bar { grid-template-columns: 1fr auto; align-items: center; gap: 28px; } }
.demo-ctl { display: grid; gap: 8px; }
.demo-ctl label, .demo-picks span { font-size: 0.92rem; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: ew-resize; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--fg); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--fg); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--fg); border: 0; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); border: 0; }
.demo-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.switch { height: 42px; padding: 0 16px; border: 1.5px solid var(--fg); border-radius: 999px; font-weight: 600; font-size: 0.92rem; transition: background-color 0.3s, color 0.3s; }
.switch[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.demo-picks { display: flex; gap: 8px; align-items: center; }
.pick { width: 56px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; opacity: 0.45; outline-offset: 3px; transition: opacity 0.3s; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick[aria-pressed="true"] { opacity: 1; outline: 1.5px solid var(--fg); }
.principles { display: grid; gap: 0; margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--line); }
.principles div { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.principles h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.principles p { color: var(--mute); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: var(--gap); } .principles div { border-top: 1px solid var(--line); border-bottom: 0; padding: 22px 0 0; align-content: start; } }

/* Logo strip (home) */
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 900px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-grid a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--field); }
.mini-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .mini-grid a:hover img { transform: scale(1.05); } }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */
.cta-big { font-size: clamp(3rem, 10vw, 11rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.055em; line-height: 0.88; text-wrap: balance; max-width: 14ch; }
.cta .btn-row { margin-top: clamp(32px, 4vw, 56px); }
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 120px) var(--pad) 28px; display: grid; gap: clamp(48px, 6vw, 96px); }
.foot-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-top p.lead { font-size: clamp(1.3rem, 2vw, 1.9rem); max-width: 22ch; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h4 { font-weight: 500; color: var(--mute); font-size: 0.95rem; margin-bottom: 6px; }
.foot-col a { font-weight: 600; width: fit-content; position: relative; }
.foot-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.foot-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--mute); font-size: 0.95rem; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-bottom b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-btn { color: var(--fg); font-weight: 600; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-head { padding: calc(var(--head) + clamp(48px, 9vw, 140px)) var(--pad) clamp(48px, 7vw, 110px); }
.page-title { font-size: clamp(4.2rem, 17vw, 17rem); font-weight: 800; font-stretch: 116%; letter-spacing: -0.06em; line-height: 0.88; padding-bottom: 0.04em; margin-bottom: clamp(24px, 3vw, 48px); }
.page-head .lead { max-width: 36ch; }
.page-title.sm { font-size: clamp(3.4rem, 11vw, 11rem); }

/* Services page */
.svc { display: grid; gap: 24px; padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: var(--head); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h2 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); font-weight: 700; font-stretch: 108%; letter-spacing: -0.045em; line-height: 0.96; }
.svc-body { display: grid; gap: 28px; align-content: start; }
.svc-body > p { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--fg); }
.ticks li { padding: 12px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .svc { grid-template-columns: 5fr 7fr; gap: var(--gap); } .svc h2 { position: sticky; top: calc(var(--head) + 24px); align-self: start; } }

.pkg-list { border-top: 1px solid var(--line); }
.pkg { position: relative; display: grid; gap: 12px 32px; padding: clamp(24px, 3vw, 40px) var(--pad); margin-inline: calc(var(--pad) * -1); border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden; transition: color 0.5s var(--ease); }
.pkg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.pkg h3 { font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -0.04em; }
.pkg p { color: var(--mute); transition: color 0.5s var(--ease); }
.pkg .go { font-weight: 600; }
@media (min-width: 900px) { .pkg { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: center; } .pkg .go { justify-self: end; } }
@media (hover: hover) { .pkg:hover::before { transform: scaleY(1); } .pkg:hover { color: var(--bg); } .pkg:hover p { color: var(--bg); } }
.note { margin-top: 32px; color: var(--mute); max-width: 70ch; }
.note b { color: var(--fg); font-weight: 600; }

.steps { display: grid; gap: 0; }
.step { padding: 26px 0; border-top: 1px solid var(--fg); display: grid; gap: 10px; }
.step span { font-weight: 700; font-stretch: 110%; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -0.04em; }
.step p { color: var(--mute); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--gap); } .step { min-height: 280px; align-content: start; grid-template-rows: auto auto 1fr; } }

.faq { border-top: 1px solid var(--line); max-width: 1000px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(1.2rem, 1.8vw, 1.65rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.faq-q i { flex: none; position: relative; width: 22px; height: 22px; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: currentColor; transition: transform 0.5s var(--ease); }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 28px; color: var(--mute); max-width: 60ch; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* About */
.about { display: grid; gap: clamp(36px, 5vw, 80px); padding-inline: var(--pad); padding-bottom: var(--sec); }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; gap: calc(var(--gap) * 3); align-items: start; } }
.portrait { overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@media (min-width: 900px) { .portrait { position: sticky; top: calc(var(--head) + 24px); } }
.prose { display: grid; gap: 22px; }
.prose p { font-size: clamp(1.12rem, 1.4vw, 1.35rem); line-height: 1.5; letter-spacing: -0.01em; }
.prose p:first-child { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 12px; }
.stats strong { display: block; font-size: clamp(2.2rem, 5vw, 4.8rem); font-weight: 750; font-stretch: 112%; letter-spacing: -0.05em; line-height: 1; }
.stats span { color: var(--mute); font-size: 0.95rem; line-height: 1.3; display: block; margin-top: 8px; }

/* Logos page */
.logo-meta { display: flex; gap: 6px; }

/* Contact */
.contact-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.channels { margin-top: 36px; border-top: 1px solid var(--line); }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; transition: padding 0.5s var(--ease); word-break: break-word; }
.channel small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.channel svg { flex: none; width: 26px; height: 26px; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .channel:hover { padding-left: 14px; } .channel:hover svg { transform: translate(3px, -3px); } }
.form h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 700; font-stretch: 106%; letter-spacing: -0.045em; line-height: 1; }
.form > p { margin: 14px 0 32px; color: var(--mute); }
.fields { display: grid; gap: 22px var(--gap); }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label em { font-style: normal; font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--field); border: 1.5px solid transparent; border-radius: 6px; padding: 15px 16px; min-height: 54px; outline: none; transition: border-color 0.3s, background-color 0.3s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 25px, calc(100% - 16px) 25px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field ::placeholder { color: var(--mute); opacity: 0.8; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form-status { min-height: 1.6em; margin-top: 16px; font-weight: 500; }
.form-hint { color: var(--mute); font-size: 0.95rem; margin-top: 4px; }

/* ==========================================================================
   LIGHTBOX (native <dialog>)
   ========================================================================== */
dialog.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
dialog.lb::backdrop { background: #000; }
.lb-inner { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-fig { min-height: 0; display: grid; place-items: center; padding: calc(var(--head) + 8px) var(--pad) 16px; }
.lb-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); transition: opacity 0.25s; }
.lb-fig img.swap { opacity: 0; }
.lb-side { display: grid; gap: 14px 32px; padding: 20px var(--pad) 24px; border-top: 1px solid rgba(255, 255, 255, 0.24); align-items: center; }
.lb-kicker { color: #9b9b9b; font-size: 0.95rem; }
.lb-title { font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.035em; font-weight: 650; line-height: 1.1; }
.lb-desc { color: #c9c9c9; max-width: 56ch; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 0.95rem; }
.lb-meta dt { color: #9b9b9b; font-size: 0.85rem; }
.lb-meta dd { font-weight: 600; }
.swatches { display: inline-flex; gap: 6px; margin-top: 4px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.lb-controls { display: flex; align-items: center; gap: 12px; }
.lb-count { color: #9b9b9b; font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: center; }
.lb-btn { width: 52px; height: 52px; border: 1.5px solid #fff; border-radius: 50%; display: grid; place-items: center; transition: background-color 0.3s, color 0.3s; }
.lb-btn:hover { background: #fff; color: #000; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 16px; right: var(--pad); z-index: 3; height: 46px; padding: 0 20px; border: 1.5px solid #fff; border-radius: 999px; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.lb-close:hover { background: #fff; color: #000; }
.lb-text { display: grid; gap: 8px; }
.lb-cta { justify-self: start; }
@media (min-width: 980px) {
  .lb-inner { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 380px; }
  .lb-fig { padding: calc(var(--head) + 8px) 28px 28px var(--pad); }
  .lb-side { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.24); align-content: end; align-items: start; padding: calc(var(--head) + 8px) var(--pad) 28px 28px; gap: 22px; }
}
@media (max-width: 979px) { .lb-side { grid-template-columns: 1fr auto; align-items: center; } .lb-text, .lb-extra { grid-column: 1 / -1; } .lb-cta { grid-column: 1; white-space: nowrap; padding: 0 22px; min-height: 50px; } .lb-controls { grid-column: 2; } .lb-btn { width: 46px; height: 46px; } .lb-count { display: none; } }
@media (max-width: 560px) { .lb-desc { display: none; } .lb-meta { display: none; } }

/* ==========================================================================
   CURSOR LABEL
   ========================================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: #fff; color: #000; mix-blend-mode: difference; pointer-events: none; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; transform: translate3d(-100px, -100px, 0) scale(0); transition: scale 0.45s var(--ease); scale: 0; }
.cursor.on { scale: 1; }

/* ==========================================================================
   PAGE TRANSITIONS (cross-document view transitions)
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.6s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.7s var(--ease-io) both; }
@keyframes vt-out { to { opacity: 0.35; transform: translateY(-4vh); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
::view-transition-group(lb-img) { animation-duration: 0.6s; animation-timing-function: var(--ease-io); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .w > span { transform: none; }
  @view-transition { navigation: none; }
}
