
/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:   #040404;
  --bg2:  #0a0a0a;
  --bg3:  #111111;
  --bg4:  #1c1c1c;
  --text: #ffffff;
  --sub:  #909090;
  --dim:  #606060;
  --bd:   #1a1a1a;
  --bd2:  #282828;
  --sky-t: #000204;
  --sky-b: #010508;
}
[data-theme="light"] {
  --bg:   #f7f5f2;
  --bg2:  #efece7;
  --bg3:  #e6e2db;
  --bg4:  #d8d3ca;
  --text: #100f0d;
  --sub:  #5a5650;
  --dim:  #a09890;
  --bd:   #dbd6cf;
  --bd2:  #c8c2b8;
  --sky-t: #8daabf;
  --sky-b: #b8ccda;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
  transition: background .4s, color .4s;
}

/* grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: .032;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 190px;
}

/* ── CURSOR ─────────────────────────────────────────────────── */
.csr { position: fixed; border-radius: 50%; pointer-events: none; transform: translate(-50%,-50%); mix-blend-mode: difference; z-index: 9999; }
#cd  { width: 7px; height: 7px; background: #fff; transition: width .2s, height .2s; }
#cr  { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); transition: width .3s, height .3s, opacity .3s; }
body:has(a:hover) #cr,
body:has(button:hover) #cr { width: 52px; height: 52px; }

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
  transition: background .4s, border-color .3s;
}
.n-logo {
  font-family: 'Space Mono', monospace;
  font-size: .85rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
}
.n-links {
  display: flex; gap: 2.5rem; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.n-links a {
  font-family: 'Space Mono', monospace;
  font-size: .76rem; color: var(--sub);
  text-decoration: none; letter-spacing: .1em; text-transform: uppercase;
  transition: color .15s;
}
.n-links a:hover { color: var(--text); }
.n-right { display: flex; align-items: center; gap: 1rem; }
.t-btn {
  font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sub); background: none; border: 1px solid var(--bd2);
  padding: .36rem .9rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.t-btn:hover { border-color: var(--text); color: var(--text); }
.n-cta {
  font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--text); color: var(--bg);
  padding: .4rem 1.1rem; text-decoration: none;
  transition: opacity .15s;
}
.n-cta:hover { opacity: .8; }
/* theme toggle in mobile drawer */
.mob-theme {
  font-family: 'Space Mono', monospace;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sub); background: none; border: 1px solid var(--bd2);
  padding: .75rem 1.25rem; cursor: pointer; margin-top: 1.5rem; align-self: flex-start;
  transition: border-color .15s, color .15s;
}
.mob-theme:hover { border-color: var(--text); color: var(--text); }

/* hamburger */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.ham span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .3s; }
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* mobile drawer */
.mob-menu {
  display: none; position: fixed; inset: 0; top: 62px;
  background: var(--bg); border-top: 1px solid var(--bd);
  z-index: 999; flex-direction: column;
  padding: 2rem 2rem;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  padding: 1.2rem 0; border-bottom: 1px solid var(--bd);
  transition: color .15s;
}
.mob-menu a:hover { color: var(--sub); }
.mob-menu .mob-cta {
  margin-top: 2rem; font-size: .9rem;
  background: var(--text); color: var(--bg);
  padding: 1rem; text-align: center; border-bottom: none;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 2.5rem 3.5rem;
  border-bottom: 1px solid var(--bd);
  background: transparent !important; /* canvas shows through */
}
/* bottom gradient — text legibility over abstract 3D scene */
.hero-grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 30%,
    rgba(0,0,0,.12) 60%, transparent 100%);
}
[data-theme="light"] .hero-grad {
  background: linear-gradient(to top,
    rgba(247,245,242,.96) 0%, rgba(247,245,242,.62) 30%,
    rgba(247,245,242,.14) 60%, transparent 100%);
}

/* scan line sweep */
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px; top: -2px;
  background: linear-gradient(90deg, transparent 0%, var(--text) 30%, var(--text) 70%, transparent 100%);
  opacity: .12;
  animation: scanLine 6s linear infinite;
  z-index: 5; pointer-events: none;
}
@keyframes scanLine {
  0%   { top: -2px;   opacity: 0; }
  5%   { opacity: .12; }
  95%  { opacity: .06; }
  100% { top: 100vh; opacity: 0; }
}

/* subtle top fade — keeps nav readable */
.hero-haze {
  position: absolute; left: 0; right: 0; top: 0; height: 18%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
}
[data-theme="light"] .hero-haze {
  background: linear-gradient(to bottom, rgba(247,245,242,.58), transparent);
}

/* corner brackets */
.cb {
  position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none;
}
.cb-tl { top: 70px;  left: 2.5rem;  border-top: 1px solid var(--dim); border-left:  1px solid var(--dim); }
.cb-tr { top: 70px;  right: 2.5rem; border-top: 1px solid var(--dim); border-right: 1px solid var(--dim); }
.cb-bl { bottom: 3.5rem; left:  2.5rem; border-bottom: 1px solid var(--dim); border-left:  1px solid var(--dim); }
.cb-br { bottom: 3.5rem; right: 2.5rem; border-bottom: 1px solid var(--dim); border-right: 1px solid var(--dim); }

/* eyebrow */
.h-eye {
  position: absolute; top: 74px; left: 2.5rem; z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub);
  display: flex; align-items: center; gap: 1rem;
  animation: fIn 1s .6s ease both;
}
.h-eye-line { width: 26px; height: 1px; background: var(--dim); flex-shrink: 0; }
.a-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34e07e;
  flex-shrink: 0; margin-left: .2rem;
  box-shadow:
    0 0 4px 1px rgba(52, 224, 126, 0.95),
    0 0 12px 3px rgba(52, 224, 126, 0.45),
    0 0 22px 6px rgba(52, 224, 126, 0.2);
  animation: adot 2.8s ease-in-out infinite;
}
@keyframes adot { 0%,100%{opacity:1} 50%{opacity:.22} }

/* meta top-right */
.h-meta {
  position: absolute; top: 74px; right: 2.5rem; z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
  animation: fIn 1s .7s ease both;
}

/* scroll indicator */
.h-scroll {
  position: absolute; bottom: 3.5rem; right: 2.5rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  animation: fIn 1s .9s ease both;
}
.h-scroll-line {
  width: 1px; height: 46px; background: var(--dim);
  animation: linePulse 2.4s ease-in-out infinite;
}
@keyframes linePulse { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(.25);opacity:.25} }
.h-scroll span {
  font-family: 'Space Mono', monospace;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); writing-mode: vertical-rl; transform: rotate(180deg);
}

/* hero title */
.h-body { position: relative; z-index: 2; }
.h-title {
  font-size: clamp(4.5rem, 11.5vw, 13rem);
  font-weight: 800; line-height: .88;
  letter-spacing: -.045em;
  margin-bottom: 3rem;
  max-width: 62vw;
}
.clip    { display: block; overflow: hidden; line-height: .96; padding-bottom: .05em; }
.clip-in { display: block; animation: wipeUp .95s cubic-bezier(0.16,1,0.3,1) both; }
.clip:nth-child(1) .clip-in { animation-delay: .04s; }
.clip:nth-child(2) .clip-in { animation-delay: .19s; color: var(--sub); font-style: italic; font-weight: 400; }
.clip:nth-child(3) .clip-in { animation-delay: .34s; }
@keyframes wipeUp { from { transform: translateY(112%); } to { transform: translateY(0); } }

/* hero bottom row */
.h-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; position: relative; z-index: 2;
  animation: fIn 1s .52s ease both;
}
.h-sub {
  font-family: 'Space Mono', monospace;
  font-size: .9rem; color: var(--sub); line-height: 1.8; max-width: 380px;
}
.h-btns { display: flex; gap: .6rem; flex-shrink: 0; }
@keyframes fIn { from { opacity: 0; } to { opacity: 1; } }

/* shared button styles */
.btn {
  font-family: 'Space Mono', monospace;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .9rem 1.8rem; text-decoration: none; display: inline-block;
  transition: opacity .15s, border-color .15s;
}
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { opacity: .8; }
.btn-ghost { border: 1px solid var(--bd2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ── TICKER STRIP ───────────────────────────────────────────── */
.ticker {
  height: 42px; background: var(--text);
  overflow: hidden; display: flex; align-items: center;
  flex-shrink: 0;
}
.t-track {
  display: flex; white-space: nowrap;
  will-change: transform;
}
.t-item {
  font-family: 'Space Mono', monospace;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bg); padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.t-item::after { content: '×'; opacity: .28; font-size: .75rem; }

/* ── GENERIC ────────────────────────────────────────────────── */
section { padding: 7rem 2.5rem; background: var(--bg); position: relative; z-index: 1; }
section.hero { background: transparent !important; padding: 0 2.5rem 3.5rem; }
.ctr-w { max-width: 1200px; margin: 0 auto; }
.lbl {
  font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: .7rem;
}
.sh {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  margin-bottom: 1.2rem;
}
.ss {
  font-family: 'Space Mono', monospace;
  font-size: .88rem; color: var(--sub); line-height: 1.8; max-width: 460px;
}
.hr { height: 1px; background: var(--bd); }

/* ── STATS ──────────────────────────────────────────────────── */
.stats { padding: 0; background: var(--bg2); border-bottom: 1px solid var(--bd); }
.s-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1200px; margin: 0 auto;
  border-left: 1px solid var(--bd);
}
.s-cell {
  padding: 2.5rem 2.25rem;
  border-right: 1px solid var(--bd);
  border-top: 1px solid var(--bd);
  transition: background .2s;
}
.s-cell:hover { background: var(--bg3); }
.s-num {
  font-size: 4.25rem; font-weight: 800; line-height: 1;
  letter-spacing: -.055em;
}
.s-lbl {
  font-family: 'Space Mono', monospace;
  font-size: .74rem; color: var(--dim); margin-top: .4rem; letter-spacing: .04em;
}

/* ── SERVICES ───────────────────────────────────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--bd);
  margin-top: 3.5rem;
}
.svc {
  padding: 2.25rem;
  border-right: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  position: relative; overflow: hidden; cursor: default;
}
.svc:nth-child(3n)       { border-right: none; }
.svc:nth-last-child(-n+3){ border-bottom: none; }
/* fill wipe */
.svc::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--text);
  transform: translateY(103%);
  transition: transform .38s cubic-bezier(.76, 0, .24, 1);
}
.svc:hover::after { transform: translateY(0); }
.svc > * { position: relative; z-index: 1; }
.svc:hover .svc-n, .svc:hover h3, .svc:hover p { color: var(--bg); }
.svc:hover .svc-n { color: rgba(0,0,0,.35); }
.svc:hover .svc-arr { opacity: 1; transform: translate(0,0); color: var(--bg); }
.svc-n {
  font-family: 'Space Mono', monospace;
  font-size: .7rem; letter-spacing: .16em; color: var(--dim);
  margin-bottom: 1.6rem; transition: color .2s;
}
.svc h3 {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: .6rem; transition: color .2s;
}
.svc p {
  font-family: 'Space Mono', monospace;
  font-size: .84rem; color: var(--sub); line-height: 1.75; transition: color .2s;
}
.svc-arr {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  font-size: .9rem; z-index: 2;
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .2s .1s, transform .2s .1s;
}

/* ── CLIENTS ────────────────────────────────────────────────── */
.clients { background: var(--bg2); }
.mq-wrap {
  overflow: hidden; margin-top: 3rem; position: relative;
}
.mq-wrap::before, .mq-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 130px; z-index: 2; pointer-events: none;
}
.mq-wrap::before { left: 0;  background: linear-gradient(to right, var(--bg2), transparent); }
.mq-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg2), transparent); }
.mq-track {
  display: flex; width: max-content;
  will-change: transform;
}
.l-tile {
  display: flex; align-items: center; justify-content: center;
  width: 192px; height: 72px; flex-shrink: 0;
  border: 1px solid var(--bd); margin-right: -1px;
  transition: background .2s;
}
.l-tile:hover { background: var(--bg3); }
.l-tile img {
  max-height: 34px; max-width: 130px; object-fit: contain;
  transition: filter .25s;
}
[data-theme="dark"]  .l-tile img       { filter: brightness(0) invert(1) opacity(.4); }
[data-theme="dark"]  .l-tile:hover img { filter: brightness(0) invert(1) opacity(.9); }
[data-theme="light"] .l-tile img       { filter: brightness(0) opacity(.38); }
[data-theme="light"] .l-tile:hover img { filter: brightness(0) opacity(.78); }

/* ── WORK LIST ──────────────────────────────────────────────── */
.w-list { margin-top: 3.5rem; border: 1px solid var(--bd); }
.w-row {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--bd);
  position: relative; cursor: pointer;
  text-decoration: none; color: inherit;
  transition: background .18s;
}
.w-row:last-child { border-bottom: none; }
/* left accent bar */
.w-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--text);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .32s cubic-bezier(.76, 0, .24, 1);
}
.w-row:hover::before { transform: scaleY(1); }
.w-row:hover { background: var(--bg3); }
/* arrow */
.w-row::after {
  content: '↗'; position: absolute; right: 2rem;
  color: var(--sub); font-size: .85rem;
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .18s, transform .18s;
}
.w-row:hover::after { opacity: 1; transform: translate(0, 0); }
.w-idx  { font-family: 'Space Mono', monospace; font-size: .7rem; color: var(--dim); width: 26px; flex-shrink: 0; }
.w-thumb {
  width: 50px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--bd); background: var(--bg3);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.w-name { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; flex: 1; }
.w-tags { display: flex; gap: .35rem; }
.tag {
  font-family: 'Space Mono', monospace;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border: 1px solid var(--bd2); color: var(--dim);
}

/* ── PROCESS ────────────────────────────────────────────────── */
.proc { background: var(--bg2); }
.p-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--bd);
  margin-top: 3.5rem;
}
.p-cell {
  padding: 2.25rem;
  border-right: 1px solid var(--bd);
  position: relative; overflow: hidden;
  transition: background .2s;
}
.p-cell:last-child { border-right: none; }
.p-cell:hover { background: var(--bg3); }
.p-bg-num {
  position: absolute; bottom: -1.8rem; right: -.4rem;
  font-size: 7.5rem; font-weight: 800; letter-spacing: -.06em;
  color: var(--bd2); line-height: 1;
  user-select: none; pointer-events: none;
  transition: color .2s;
}
.p-cell:hover .p-bg-num { color: var(--bd); }
.p-step {
  font-family: 'Space Mono', monospace;
  font-size: .7rem; letter-spacing: .16em; color: var(--dim);
  margin-bottom: 1.4rem;
}
.p-cell h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.p-cell p  {
  font-family: 'Space Mono', monospace;
  font-size: .84rem; color: var(--sub); line-height: 1.72;
  position: relative; z-index: 1;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta-wrap { padding: 6rem 2.5rem; }
.cta-box {
  max-width: 1000px; margin: 0 auto;
  padding: 5rem 4rem;
  border: 1px solid var(--bd2);
  background: var(--bg2);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .55;
}
.cta-in { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 800; letter-spacing: -.05em; line-height: .9;
  margin-bottom: 1.1rem;
}
.cta-box h2 em { font-style: italic; font-weight: 400; color: var(--sub); }
.cta-box p {
  font-family: 'Space Mono', monospace;
  font-size: .9rem; color: var(--sub); margin-bottom: 2.5rem; line-height: 1.75;
}
.cta-btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact { background: var(--bg2); }
.c-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 5rem; margin-top: 3.5rem; align-items: start;
}
.ci h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .7rem; }
.ci > p {
  font-family: 'Space Mono', monospace;
  font-size: .86rem; color: var(--sub); line-height: 1.78; margin-bottom: 2.5rem;
}
.ci-links { display: flex; flex-direction: column; gap: .65rem; }
.ci-link {
  display: flex; align-items: center; gap: .9rem;
  color: var(--sub); text-decoration: none;
  font-family: 'Space Mono', monospace; font-size: .84rem;
  transition: color .15s;
}
.ci-link:hover { color: var(--text); }
.ci-dot {
  width: 5px; height: 5px; border: 1px solid var(--dim); flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.ci-link:hover .ci-dot { background: var(--text); border-color: var(--text); }

/* form */
.c-form { display: flex; flex-direction: column; gap: .7rem; }
.f-row  { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.fg     { display: flex; flex-direction: column; gap: .26rem; }
.fg label {
  font-family: 'Space Mono', monospace;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.fg input, .fg select, .fg textarea {
  padding: .8rem 1rem;
  background: var(--bg); border: 1px solid var(--bd2);
  color: var(--text); font-family: 'Space Mono', monospace; font-size: .88rem;
  outline: none; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--text); }
.fg textarea { resize: vertical; min-height: 110px; }
.fg select option { background: var(--bg); color: var(--text); }
.btn-send {
  font-family: 'Space Mono', monospace;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 1.9rem; background: var(--text); color: var(--bg);
  border: none; cursor: pointer; align-self: flex-start;
  transition: opacity .15s;
}
.btn-send:hover { opacity: .8; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { padding: 1.75rem 2.5rem; border-top: 1px solid var(--bd); background: var(--bg); position: relative; z-index: 1; }
.ft {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.ft-logo { font-family: 'Space Mono', monospace; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.ft-copy { font-family: 'Space Mono', monospace; font-size: .72rem; color: var(--dim); }
.ft-links { display: flex; gap: 1.75rem; }
.ft-links a {
  font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .15s;
}
.ft-links a:hover { color: var(--text); }

/* ── PROJECT PREVIEW ────────────────────────────────────────── */
.pp {
  position: fixed; pointer-events: none; z-index: 500;
  width: 280px; display: none; flex-direction: column;
  border: 1px solid var(--bd2); background: var(--bg3);
  opacity: 0; transform: rotate(-2.5deg) scale(0.88);
  transition: opacity .18s ease, transform .18s ease;
  will-change: transform;
}
.pp.show { display: flex; }
.pp.vis  { opacity: 1; transform: rotate(0deg) scale(1); }
.pp-slides { position: relative; width: 100%; height: 168px; overflow: hidden; }
.pp-slide  { position: absolute; inset: 0; opacity: 0; transition: opacity .14s; }
.pp-slide.on { opacity: 1; }
/* 5 pattern styles */
.ps0 { background: repeating-linear-gradient(45deg,#0d0d0d 0,#0d0d0d 1px,#131313 0,#131313 8px); }
.ps1 { background: repeating-linear-gradient(0deg,#0c0c0c 0,#0c0c0c 1px,#131313 0,#131313 10px); }
.ps2 { background: radial-gradient(circle,#1c1c1c 1.5px,transparent 1.5px) 0 0/13px 13px,#0b0b0b; }
.ps3 { background: repeating-linear-gradient(90deg,#111 0,#111 1px,transparent 0,transparent 11px),repeating-linear-gradient(0deg,#111 0,#111 1px,transparent 0,transparent 11px),#0d0d0d; }
.ps4 { background: repeating-linear-gradient(90deg,#0d0d0d 0,#0d0d0d 1px,#141414 0,#141414 9px); }
[data-theme="light"] .ps0 { background: repeating-linear-gradient(45deg,#d8d8d8 0,#d8d8d8 1px,#e8e8e8 0,#e8e8e8 8px); }
[data-theme="light"] .ps1 { background: repeating-linear-gradient(0deg,#d4d4d4 0,#d4d4d4 1px,#e8e8e8 0,#e8e8e8 10px); }
[data-theme="light"] .ps2 { background: radial-gradient(circle,#bbb 1.5px,transparent 1.5px) 0 0/13px 13px,#e8e8e8; }
[data-theme="light"] .ps3 { background: repeating-linear-gradient(90deg,#d0d0d0 0,#d0d0d0 1px,transparent 0,transparent 11px),repeating-linear-gradient(0deg,#d0d0d0 0,#d0d0d0 1px,transparent 0,transparent 11px),#e4e4e4; }
[data-theme="light"] .ps4 { background: repeating-linear-gradient(90deg,#d8d8d8 0,#d8d8d8 1px,#e8e8e8 0,#e8e8e8 9px); }
/* label over slides */
.pp-lbl {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: .55rem .75rem;
  background: linear-gradient(to top,rgba(0,0,0,.72) 0%,transparent 100%);
}
[data-theme="light"] .pp-lbl {
  background: linear-gradient(to top,rgba(214,208,200,.88) 0%,transparent 100%);
}
.pp-lname {
  display: block; font-family:'Space Mono',monospace;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--text);
  text-transform: uppercase;
}
.pp-ltype {
  display: block; font-family:'Space Mono',monospace;
  font-size: .58rem; letter-spacing: .14em; color: var(--sub);
  text-transform: uppercase; margin-top: .1rem;
}
/* dot indicators */
.pp-dots {
  display: flex; gap: .45rem; justify-content: center;
  padding: .45rem; border-top: 1px solid var(--bd); background: var(--bg3);
}
.pp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bd2); transition: background .12s; }
.pp-dot.on { background: var(--text); }
@media (max-width: 767px) { .pp { display: none !important; } }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.r  { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.r.v { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* ---- Tablet: 768px – 1100px ---- */
@media (max-width: 1100px) {
  .n-links { display: none; }
  .ham     { display: flex; }
  .t-btn   { display: none; }
}
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(2n)       { border-right: none; }
  .svc:nth-child(3n)       { border-right: 1px solid var(--bd); }
  .svc:nth-last-child(-n+3){ border-bottom: 1px solid var(--bd); }
  .svc:nth-child(2n):nth-last-child(-n+2),
  .svc:last-child          { border-bottom: none; }

  .p-grid  { grid-template-columns: repeat(2, 1fr); }
  .p-cell  { border-bottom: 1px solid var(--bd); }
  .p-cell:nth-child(2n) { border-right: none; }
  .p-cell:nth-last-child(-n+2) { border-bottom: none; }

  .h-title { max-width: 75vw; }
  .c-grid  { gap: 3.5rem; }
}
@media (max-width: 900px) {
  .s-grid { grid-template-columns: repeat(2, 1fr); }
  .s-cell:nth-child(2n) { border-right: 1px solid var(--bd); }
  .s-cell:nth-child(odd):last-child { border-right: none; }
  .s-cell { border-bottom: 1px solid var(--bd); }
}

/* ---- Mobile: up to 767px ---- */
@media (max-width: 767px) {
  nav       { padding: 0 1.25rem; height: 56px; }
  section   { padding: 4rem 1.25rem; }
  .stats    { padding: 0; }
  .cta-wrap { padding: 3.5rem 1.25rem; }
  .cta-box  { padding: 2.5rem 1.5rem; }
  footer    { padding: 1.5rem 1.25rem; }

  /* hero */
  .hero      { padding: 0 1.25rem 2.5rem; }
  .h-title   { font-size: clamp(3rem, 14vw, 5.5rem); max-width: 100%; margin-bottom: 2rem; }
  .h-eye     { font-size: .68rem; left: 1.25rem; }
  .h-meta    { display: none; }
  .h-foot    { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .h-sub     { font-size: .84rem; max-width: 100%; }
  .h-btns    { flex-direction: column; width: 100%; }
  .btn       { text-align: center; }
  .cb        { display: none; }
  .h-scroll  { display: none; }

  /* hide custom cursor on touch */
  #cd, #cr { display: none; }

  /* stats: 2 col */
  .s-grid  { grid-template-columns: repeat(2, 1fr); }
  .s-num   { font-size: 3rem; }

  /* services: 1 col */
  .svc-grid { grid-template-columns: 1fr; }
  .svc      { border-right: none !important; border-bottom: 1px solid var(--bd) !important; }
  .svc:last-child { border-bottom: none !important; }
  /* disable tilt on touch */
  .svc { transform: none !important; }

  /* work */
  .w-tags { display: none; }
  .w-row  { gap: 1rem; padding: 1.1rem 1.25rem; }
  .w-row::after { display: none; }

  /* process: 1 col */
  .p-grid  { grid-template-columns: 1fr; }
  .p-cell  { border-right: none; border-bottom: 1px solid var(--bd); }
  .p-cell:last-child { border-bottom: none; }

  /* contact */
  .c-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .f-row  { grid-template-columns: 1fr; }

  /* footer */
  .ft { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .ft-links { display: none; }

  /* ticker */
  .ticker { height: 38px; }
  .t-item { font-size: .7rem; }

  /* cta */
  .cta-btns { flex-direction: column; }
  .btn.btn-solid, .btn.btn-ghost { text-align: center; }
}

/* ---- Small phones ---- */
@media (max-width: 390px) {
  .h-title { font-size: clamp(2.6rem, 16vw, 4rem); }
  .s-num   { font-size: 2.5rem; }
}
