/* ============================================
   KETOS — Global styles
   Playful & tactile, high-contrast B&W + electric accent
============================================ */
:root {
  --bg: #f4f1ea;
  --ink: #0a0a0a;
  --ink-soft: #141414;
  --muted: #7a756d;
  --line: rgba(10,10,10,0.14);
  --accent: #c6ff3a;   /* electric lime */
  --accent-ink: #0a0a0a;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1440px;
  --pad: clamp(18px, 4vw, 56px);
  --sec-y: clamp(72px, 12vw, 140px);

  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: .6s;
}

[data-mode="dark"] {
  --bg: #0a0a0a;
  --ink: #f4f1ea;
  --ink-soft: #ece8df;
  --muted: #8a8578;
  --line: rgba(244,241,234,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}
body[data-cursor="native"] { cursor: auto; }
body[data-cursor="native"] * { cursor: inherit; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
body[data-cursor="native"] a, body[data-cursor="native"] button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: .14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   0 0 0 1.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}
[data-mode="dark"] .grain { mix-blend-mode: screen; opacity: .09; }
body[data-grain="off"] .grain { display: none; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-radius .35s var(--ease), background .2s var(--ease);
  will-change: transform, width, height;
}
.cursor[data-state="hover"] {
  width: 72px; height: 72px;
  background: var(--accent);
}
.cursor[data-state="drag"] {
  width: 110px; height: 110px; border-radius: 40%;
}
.cursor-label {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: difference;
  padding-left: 22px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .25s var(--ease);
}
.cursor-label[data-shown="1"] { opacity: 1; }
body[data-cursor="native"] .cursor, body[data-cursor="native"] .cursor-label { display: none; }
body[data-cursor="dot"] .cursor { mix-blend-mode: normal; background: var(--ink); }
body[data-cursor="dot"] .cursor[data-state="hover"] { background: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  z-index: 50;
  mix-blend-mode: difference;
  color: #f4f1ea;
  gap: 12px;
}
.wordmark { display: inline-block; height: 22px; line-height: 0; color: #f4f1ea; }
.wordmark svg { height: 100%; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { position: relative; padding: 6px 2px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 10px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
@media (max-width: 780px){ .nav-links { display: none; } }
@media (max-width: 480px){
  .nav-cta { font-size: 10px; padding: 8px 12px; letter-spacing: .1em; }
  .wordmark { height: 18px; }
}

/* ---------- Layout utils ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
  flex: 0 0 8px;
}
.hero .eyebrow::before { animation: hero-dot-pulse 1.8s ease-in-out infinite; }
@keyframes hero-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 7vw, 104px); font-weight: 500; letter-spacing: -0.03em; line-height: .95; }
.section-head p { max-width: 42ch; color: var(--muted); }
@media (max-width: 560px){
  .section-head { margin-bottom: 32px; gap: 20px; }
  .section-head p { font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(100px, 18vw, 160px) var(--pad) clamp(48px, 10vw, 80px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  gap: 48px;
}
.hero-blob { position: absolute; top: -10%; right: -20%; bottom: -10%; width: 75%; z-index: 0; pointer-events: none; }
.hero-blob svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; filter: blur(40px); opacity: .55; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 30% 50%, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 60%); }
.hero-inner { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; width: 100%; }
.hero h1 {
  font-size: clamp(44px, 13vw, 220px);
  line-height: .9;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
  color: var(--bg);
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.hero.ready h1 .line > span { transform: translateY(0); }
.hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0 .18em .05em;
  border-radius: .08em;
  display: inline-block;
  line-height: .95;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: none;
}
.hero-sub {
  max-width: 52ch; margin-top: 32px; font-size: clamp(16px, 1.3vw, 21px);
  color: color-mix(in oklab, var(--bg) 92%, transparent);
  line-height: 1.55;
  font-weight: 400;
}
.hero-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 8vw, 80px);
}
.hero-meta { display: flex; gap: 28px 48px; flex-wrap: wrap; }
.hero-meta div { font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 75%, transparent); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; color: var(--bg); margin-top: 6px; font-weight: 500; text-transform: none; }
@media (max-width: 560px){
  .hero-meta { gap: 20px 28px; width: 100%; }
  .hero-meta > div { min-width: calc(50% - 14px); }
  .hero-meta strong { font-size: 16px; }
}

/* Magnetic CTA */
.mag-wrap { display: inline-block; }
.cta-big {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: clamp(18px, 4vw, 26px) clamp(24px, 5vw, 36px);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  transition: transform .4s var(--ease);
  will-change: transform;
}
.cta-big .arrow {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-ink); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
.cta-big:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 2.5vw, 20px) 0;
  background: var(--bg);
}
.hero .marquee { border-color: rgba(244,241,234,.18); background: transparent; }
.marquee-track {
  display: flex; gap: clamp(28px, 5vw, 56px);
  white-space: nowrap;
  font-size: clamp(28px, 5vw, 72px);
  letter-spacing: -.02em;
  animation: scroll-x 28s linear infinite;
  will-change: transform;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-track span { display: inline-flex; align-items: center; gap: clamp(28px, 5vw, 56px); }
.marquee-track .dot { width: clamp(10px, 1.5vw, 16px); height: clamp(10px, 1.5vw, 16px); border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body[data-motion="low"] .marquee-track { animation-duration: 80s; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-mask { display: inline-block; overflow: hidden; line-height: 1.1; }
.reveal-mask > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.reveal-mask.in > span { transform: none; }

/* ---------- About ---------- */
.about { padding: var(--sec-y) var(--pad); border-bottom: 1px solid var(--line); }
.about h2 {
  font-size: clamp(34px, 7vw, 112px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500;
  max-width: 18ch; text-wrap: balance;
}
.about h2 mark { background: var(--accent); color: var(--accent-ink); padding: 0 .2em; border-radius: 8px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; margin-top: clamp(48px, 8vw, 80px); align-items: start; }
.about-grid p { font-size: clamp(16px, 1.4vw, 22px); color: var(--ink-soft); max-width: 52ch; }
.about-grid p + p { margin-top: 18px; }
.about-card {
  border: 1px solid var(--line); padding: clamp(28px, 5vw, 40px); border-radius: 24px;
  background: color-mix(in oklab, var(--ink) 4%, var(--bg));
  display: grid; gap: clamp(28px, 5vw, 40px);
}
.about-card-block { display: grid; gap: 12px; }
.about-card-label { font: 500 12px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.about-card-value { font-weight: 500; font-family: var(--font-display); font-size: clamp(32px, 5.5vw, 44px); line-height: 1.05; letter-spacing: -.02em; display: block; }
.about-card-divider { width: 44px; height: 1px; background: var(--line); }
@media (max-width: 900px){ .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Services ---------- */
.services { padding: var(--sec-y) var(--pad); border-bottom: 1px solid var(--line); }
.service-list { border-top: 1px solid var(--ink); }
.service-row {
  position: relative;
  border-bottom: 1px solid var(--ink);
  padding: clamp(24px, 4vw, 36px) 0;
  display: grid; grid-template-columns: 80px 1fr auto 60px;
  gap: 40px; align-items: center;
  transition: color .3s var(--ease);
  overflow: hidden;
}
.service-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); transform: translateY(101%);
  transition: transform .6s var(--ease); z-index: 0;
}
.service-row:hover::before { transform: translateY(0); }
.service-row > * { position: relative; z-index: 1; }
.service-row:hover { color: var(--accent-ink); }
.service-num { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; color: var(--muted); }
.service-row:hover .service-num { color: var(--accent-ink); }
.service-title { font-size: clamp(22px, 4.2vw, 64px); font-weight: 500; letter-spacing: -.02em; }
.service-desc { font: 400 14px/1.4 var(--font-mono); text-align: right; max-width: 30ch; color: var(--muted); }
.service-row:hover .service-desc { color: var(--accent-ink); }
.service-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.service-row:hover .service-arrow { background: var(--accent-ink); color: var(--accent); transform: rotate(-45deg); }
@media (max-width: 780px){
  .service-row { grid-template-columns: 36px 1fr 36px; gap: 16px; }
  .service-desc { display: none; }
  .service-arrow { width: 36px; height: 36px; }
}

/* ---------- Process (pinned) ---------- */
.process { padding: var(--sec-y) var(--pad); border-bottom: 1px solid var(--line); background: var(--ink); color: var(--bg); }
.process .section-head h2 { color: var(--bg); }
.process .section-head p { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.process .eyebrow { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(244,241,234,.2); margin-top: 60px; }
.process-step {
  position: relative;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 3vw, 28px);
  border-right: 1px solid rgba(244,241,234,.2);
  display: flex; flex-direction: column; gap: 24px;
  min-height: 420px;
  transition: background .5s var(--ease);
}
.process-step:last-child { border-right: 0; }
.process-step:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.process-step .idx {
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em;
  color: var(--accent);
}
.process-step h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.01em; }
.process-step p { color: color-mix(in oklab, var(--bg) 70%, transparent); font-size: 15px; }
.process-step .ticks { margin-top: auto; display: grid; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: color-mix(in oklab, var(--bg) 60%, transparent); text-transform: uppercase; }
.process-step .ticks li { list-style: none; position: relative; padding-left: 18px; }
.process-step .ticks li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 900px){
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid rgba(244,241,234,.2); }
  .process-step:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px){
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: 0; min-height: 0; }
}

/* ---------- Stats ---------- */
.stats { padding: clamp(64px, 10vw, 120px) var(--pad); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { border-top: 1px solid var(--ink); padding-top: 24px; }
.stat .n { font-size: clamp(56px, 9vw, 144px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.stat .n span { color: var(--accent); }
.stat .l { font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; max-width: 24ch; }
@media (max-width: 900px){ .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work { padding: var(--sec-y) var(--pad); border-bottom: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 3vw, 32px); }
.work-card { position: relative; overflow: hidden; border-radius: 20px; background: var(--ink-soft); color: var(--bg); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 4vw, 28px); transition: transform .6s var(--ease); }
.work-card:hover { transform: translateY(-6px); }
.work-card:nth-child(1) { grid-column: span 7; min-height: 540px; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(4) { grid-column: span 7; }
.work-card .tag { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 60%, transparent); }
.work-card h3 { font-size: clamp(22px, 3.2vw, 48px); font-weight: 500; letter-spacing: -.02em; max-width: 18ch; }
.work-card .meta { display: flex; gap: 20px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 55%, transparent); }
.work-card .visual { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.work-card .visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: .55; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.work-card:hover .visual-img { opacity: .85; transform: scale(1.04); }
.work-card > * { position: relative; z-index: 1; }
.work-card .visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.75) 100%);
}
.viz { position: absolute; inset: 0; }
.viz-stripes {
  background:
    repeating-linear-gradient(45deg, #242424 0 14px, #1a1a1a 14px 28px);
}
.viz-grid {
  background:
    linear-gradient(#1a1a1a 0 0),
    repeating-linear-gradient(0deg, rgba(198,255,58,.08) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(198,255,58,.08) 0 1px, transparent 1px 40px);
  background-blend-mode: normal;
}
.viz-orbs {
  background: radial-gradient(circle at 30% 40%, #c6ff3a 0 2px, transparent 3px) 0 0/36px 36px,
              #1a1a1a;
}
.viz-waves {
  background: repeating-radial-gradient(circle at 20% 120%, rgba(198,255,58,.25) 0 2px, transparent 3px 40px), #1a1a1a;
}
@media (max-width: 900px){
  .work-card { grid-column: span 12 !important; min-height: 340px; }
  .work-card:nth-child(1) { min-height: 380px; }
}
@media (max-width: 560px){
  .work-card { min-height: 280px !important; }
  .work-card h3 { font-size: 24px; }
  .work-card .meta { flex-wrap: wrap; gap: 10px 16px; }
}

/* ---------- Clients marquee ---------- */
.clients { padding: clamp(48px, 8vw, 80px) var(--pad); border-bottom: 1px solid var(--line); }
.clients-row { gap: 28px 48px !important; }
.clients-eyebrow { text-align: center; margin-bottom: 40px; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 80px; align-items: center; }
.client {
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 500; letter-spacing: -.02em;
  color: var(--ink);
  opacity: .6;
  transition: opacity .3s var(--ease), color .3s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
}
@media (max-width: 560px){
  .client .mk { width: 10px; height: 10px; }
}
.client:hover { opacity: 1; color: var(--ink); }
.client .mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.client.sq .mk { border-radius: 2px; }
.client.tr .mk { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: currentColor; }
.client-logo { gap: 0; padding: 0 8px; }
.client-logo img { height: clamp(28px, 3.6vw, 44px); width: auto; max-width: 180px; object-fit: contain; display: block; filter: grayscale(1) contrast(1.05); transition: filter .3s var(--ease), transform .3s var(--ease); }
.client-logo:hover img { filter: none; transform: scale(1.04); }
[data-mode="dark"] .client-logo img { filter: grayscale(1) invert(1) contrast(1.05); }
[data-mode="dark"] .client-logo:hover img { filter: invert(1); }

/* ---------- Team ---------- */
.team { padding: var(--sec-y) var(--pad); border-bottom: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2vw, 24px); }
.member { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 3/4; background: #1a1a1a; color: #f4f1ea; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(14px, 2.5vw, 22px); }
.member .face { position: absolute; inset: 0; z-index: 0; transition: transform .8s var(--ease); overflow: hidden; }
.member .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.member .face .face-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(244,241,234,.2); font-size: clamp(60px, 12vw, 120px); font-weight: 500; letter-spacing: -.04em; z-index: 0; }
.member:hover .face { transform: scale(1.06); }
.member > *:not(.face) { position: relative; z-index: 1; }
.member h4 { font-size: clamp(16px, 2.2vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.member .role { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, #f4f1ea 60%, transparent); margin-top: 6px; }
.member::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 100%);
  z-index: 0;
}
@media (max-width: 900px){ .team-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px){ .team-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WORK detail page hero ---------- */
.work-hero { padding: clamp(120px, 16vw, 180px) var(--pad) clamp(56px, 9vw, 100px); background: var(--bg); border-bottom: 1px solid var(--line); }
.work-hero h1 { font-size: clamp(44px, 9vw, 140px); line-height: .95; letter-spacing: -.04em; font-weight: 500; margin-top: 20px; max-width: 15ch; text-wrap: balance; }
.work-hero p { margin-top: 24px; max-width: 58ch; color: color-mix(in oklab, var(--ink) 68%, transparent); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; }
.work-hero-nav { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 10px 14px; }
.work-hero-nav a { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.work-hero-nav a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- PROJECTS (detail) ---------- */
.projects { padding: var(--sec-y) var(--pad); border-bottom: 1px solid var(--line); background: var(--bg); }
.projects-list { margin-top: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); }
.project-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.project-row:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.project-row:nth-child(even) .project-visual { order: 2; }
.project-row:nth-child(even) .project-body { order: 1; }
.project-visual { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; background: #1a1a1a; }
.project-visual .viz { position: absolute; inset: 0; }
.project-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.project-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35) 100%); z-index: 2; pointer-events: none; }
.project-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.project-num { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 45%, transparent); }
.project-body h3 { font-size: clamp(30px, 4.5vw, 56px); font-weight: 500; letter-spacing: -.025em; }
.project-meta { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; margin: 18px 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-meta > div { display: flex; flex-direction: column; gap: 4px; }
.project-meta span { font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 45%, transparent); }
.project-meta b { font-weight: 500; font-size: 14px; letter-spacing: -.01em; }
.project-body p { color: color-mix(in oklab, var(--ink) 72%, transparent); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55; max-width: 56ch; }
@media (max-width: 780px){
  .project-row, .project-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .project-row:nth-child(even) .project-visual, .project-row:nth-child(even) .project-body { order: initial; }
  .project-head { margin-bottom: 14px; }
}

/* ---------- CTA outro ---------- */
.outro {
  position: relative;
  padding: clamp(80px, 14vw, 160px) var(--pad);
  background: var(--ink); color: var(--bg);
  overflow: hidden;
}
.outro .big {
  font-size: clamp(48px, 15vw, 260px);
  line-height: .92; letter-spacing: -.04em; font-weight: 500;
  text-align: center;
  max-width: 20ch; margin: 0 auto;
  text-wrap: balance;
}
.outro .big em { font-style: normal; color: var(--accent); }
.outro-cta { display: flex; justify-content: center; margin-top: clamp(36px, 6vw, 60px); }
.outro-foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px 40px; margin-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid rgba(244,241,234,.18); padding-top: 32px;
}
.outro-foot h5 { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 55%, transparent); margin-bottom: 14px; }
.outro-foot a, .outro-foot p { display: block; color: color-mix(in oklab, var(--bg) 90%, transparent); padding: 4px 0; font-size: 15px; }
.outro-foot a:hover { color: var(--accent); }
.outro-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(48px, 8vw, 80px); font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 60%, transparent); flex-wrap: wrap; gap: 16px; }
.outro-bottom .mark { display: inline-block; height: 22px; line-height: 0; color: var(--bg); }
.outro-bottom .mark svg { height: 100%; width: auto; display: block; }
@media (max-width: 900px){ .outro-foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){
  .outro-foot { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .outro-bottom { font-size: 10px; justify-content: center; text-align: center; }
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; width: 280px;
  box-shadow: 0 18px 60px rgba(0,0,0,.2);
  font-size: 13px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h6 { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.tweaks h6 .x { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.tweak-row { display: grid; gap: 6px; margin-bottom: 14px; }
.tweak-row label { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opts button {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .06em;
}
.tweak-opts button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: none; }
.swatch[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.08); }

/* motion preference reductions */
body[data-motion="low"] .hero h1 .line > span { transition-duration: .5s; }
body[data-motion="low"] .reveal { transition-duration: .4s; }
