/* ============================================================
   Studio Debug — stylesheet
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #17171c;
  --fg: #e8e8e6;
  --fg-dim: #9a9a95;
  --fg-dimmer: #5a5a58;
  --line: #24242a;
  --line-bright: #3a3a42;
  --accent: #00ff88;
  --accent-2: #ff3ea5;
  --accent-3: #ffc233;
  --danger: #ff4d4d;
  --caos: 2;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.light {
  --bg: #f2efe8;
  --bg-2: #e8e4db;
  --bg-3: #ddd9d0;
  --fg: #0a0a0b;
  --fg-dim: #4a4a48;
  --fg-dimmer: #8a8a85;
  --line: #cfcbc1;
  --line-bright: #b0aca1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.cursor-crosshair, body.cursor-crosshair * { cursor: none !important; }

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }

/* ==== overlays =========================================== */

.scanlines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0) 4px
  );
  opacity: calc(0.35 * (var(--caos) / 3));
  mix-blend-mode: multiply;
}
body.light .scanlines { mix-blend-mode: multiply; opacity: calc(0.15 * (var(--caos)/3)); }

.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 9997;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: calc(0.08 * (var(--caos) / 3 + 0.3));
  animation: grain 1.3s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)}
  40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,2%)}
  80%{transform:translate(4%,4%)} 100%{transform:translate(0,0)}
}

.crt-flicker {
  position: fixed; inset: 0; pointer-events: none; z-index: 9996;
  background: rgba(255,255,255,0.02);
  animation: flicker 6s infinite;
}
@keyframes flicker {
  0%,100%{opacity:0} 47%{opacity:0} 48%{opacity:0.7} 49%{opacity:0}
  68%{opacity:0} 69%{opacity:0.5} 70%{opacity:0}
}

/* ==== cursor ============================================= */

.cursor {
  position: fixed; top: 0; left: 0;
  width: 24px; height: 24px;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
}
body:not(.cursor-crosshair) .cursor { display: none; }
.cursor-crosshair {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) center/1px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/100% 1px no-repeat;
}
.cursor-crosshair::before,
.cursor-crosshair::after {
  content: ""; position: absolute;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
}
.cursor-crosshair::before { top:-6px; left:-6px; border-right:0; border-bottom:0; }
.cursor-crosshair::after  { bottom:-6px; right:-6px; border-left:0; border-top:0; }
.cursor-label {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10px; color: var(--accent);
  white-space: nowrap;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.6);
  padding: 2px 5px;
  border: 1px solid var(--accent);
}
.cursor.hovering { transform: translate(-50%,-50%) scale(1.6); }

/* ==== statusbar ========================================== */

.statusbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 24px; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  font-size: 10.5px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.statusbar-left, .statusbar-right { display: flex; gap: 10px; align-items: center; }
.statusbar-sep { color: var(--fg-dimmer); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.blink { color: var(--danger); animation: blink 1s steps(2) infinite; font-weight: 700; }
@keyframes blink { 50% { opacity: 0; } }

/* ==== nav ================================================ */

.nav {
  position: fixed; top: 24px; left: 0; right: 0;
  height: 52px; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 2px;
  letter-spacing: -0.01em;
}
.logo-bracket { color: var(--accent); }
.logo-cursor { color: var(--accent); animation: blink 1s steps(2) infinite; margin-left: 3px; }
.nav-links { display: flex; gap: 2px; align-items: center; font-size: 12.5px; }
.nav-links a {
  padding: 8px 14px;
  position: relative;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:not(.nav-cta):hover::before {
  content: attr(data-label);
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; color: var(--accent);
  background: var(--bg);
  padding: 2px 6px;
  border: 1px solid var(--accent);
  white-space: nowrap;
  margin-top: 2px;
  pointer-events: none;
}
.nav-cta {
  margin-left: 8px;
  padding: 8px 14px !important;
  background: var(--accent);
  color: #000 !important;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  transition: transform .15s;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--fg); }

/* ==== sections shared ==================================== */

main { padding-top: 76px; }

section {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: 24px;
}
.section-tag::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* ==== HERO =============================================== */

.hero {
  min-height: calc(100vh - 76px);
  padding: 40px 20px 60px;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.hero-title .line { display: block; position: relative; }
.hero-title em {
  font-style: italic;
  font-family: "Space Grotesk", serif;
  color: var(--accent);
}
.hero-title .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 4px;
  color: var(--fg-dim);
}
.hero-title .glitch {
  position: relative;
  display: inline-block;
}
.hero-title .glitch::before,
.hero-title .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%;
}
.hero-title .glitch::before {
  color: var(--accent);
  transform: translate(-2px, 0);
  clip-path: inset(0 0 50% 0);
  animation: glitch-1 calc(3s / (0.5 + var(--caos)/2)) infinite steps(2);
}
.hero-title .glitch::after {
  color: var(--accent-2);
  transform: translate(2px, 0);
  clip-path: inset(50% 0 0 0);
  animation: glitch-2 calc(3.3s / (0.5 + var(--caos)/2)) infinite steps(2);
}
@keyframes glitch-1 {
  0%,90%,100%{transform:translate(-2px,0)}
  92%{transform:translate(-6px,-2px)}
  94%{transform:translate(-2px,2px)}
}
@keyframes glitch-2 {
  0%,90%,100%{transform:translate(2px,0)}
  92%{transform:translate(6px,2px)}
  94%{transform:translate(2px,-2px)}
}

.hero-sub {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.7;
}
.hero-sub .hl { color: var(--fg); }
.hero-sub .accent { color: var(--accent); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 32px;
  border: 1px solid var(--line);
}
.hero-meta-cell {
  background: var(--bg);
  padding: 14px;
  font-size: 11px;
  color: var(--fg-dim);
}
.hero-meta-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

/* hero right (terminal) */
.hero-right {
  display: flex; align-items: stretch;
  min-height: 600px;
}

.terminal-window {
  flex: 1;
  background: #000;
  border: 1px solid var(--line-bright);
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px #000, 6px 6px 0 var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow: hidden;
}
body.light .terminal-window { background: #181712; color: #e8e8e6; }

.terminal-bar {
  height: 26px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-size: 10.5px;
  color: var(--fg-dim);
}
.term-dots { display: flex; gap: 5px; }
.term-dots span {
  width: 10px; height: 10px;
  border: 1px solid var(--line-bright);
}
.term-dots span:nth-child(1) { background: var(--danger); border-color: var(--danger); }
.term-dots span:nth-child(2) { background: var(--accent-3); border-color: var(--accent-3); }
.term-dots span:nth-child(3) { background: var(--accent); border-color: var(--accent); }
.terminal-title { flex: 1; text-align: center; font-size: 10.5px; }
.terminal-title .blink { font-weight: 400; }

.terminal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  color: #e8e8e6;
  line-height: 1.55;
  font-size: 12.5px;
}
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--line-bright); }

.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--accent); }
.term-muted { color: #777; }
.term-ok { color: var(--accent); }
.term-warn { color: var(--accent-3); }
.term-err { color: var(--danger); }
.term-pink { color: var(--accent-2); }
.term-user { color: #e8e8e6; }
.term-input-line {
  display: flex; align-items: center;
  margin-top: 6px;
}
.term-input-line input {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  margin-left: 6px;
  caret-color: var(--accent);
}
.term-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
  vertical-align: text-bottom;
}

.ascii-canvas {
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.05;
  color: var(--accent);
  padding: 16px;
  overflow: hidden;
}

.matrix-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* ==== marquee ============================================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.marquee-track span.mute { color: var(--fg-dimmer); }
.marquee-track span.pop {
  color: var(--accent);
  font-style: italic;
}
.marquee-track svg { vertical-align: middle; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==== services =========================================== */

.services {
  padding: 100px 20px;
}
.services-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.services-head h2 {
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 500;
  line-height: 0.9;
}
.services-head p {
  align-self: end;
  color: var(--fg-dim);
  font-size: 13px;
  max-width: 520px;
}

.services-grid {
  border: 1px solid var(--line);
  border-right: 0; border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column;
  gap: 16px;
  background: var(--bg);
  transition: background .2s;
  overflow: hidden;
  cursor: pointer;
}
.service:hover { background: var(--bg-2); }
.service-num {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.service-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.service-desc {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.6;
  flex: 1;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-tags span {
  font-size: 10.5px;
  padding: 3px 8px;
  border: 1px solid var(--line-bright);
  color: var(--fg-dim);
}
.service-art {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dimmer);
  opacity: 0.7;
}
.service:hover .service-art {
  color: var(--accent);
  opacity: 1;
}

/* ==== work / projects ==================================== */

.work {
  padding: 100px 20px;
  background: var(--bg);
}
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  gap: 40px;
}
.work-head h2 {
  font-size: clamp(40px, 5.5vw, 84px);
}
.work-filters {
  display: flex; gap: 4px;
  font-size: 11px;
  color: var(--fg-dim);
}
.work-filters button {
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .15s;
}
.work-filters button:hover, .work-filters button.on {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.work-list {
  border-top: 1px solid var(--line);
}
.work-row {
  display: grid;
  grid-template-columns: 60px 2fr 1.5fr 120px 140px 60px;
  gap: 20px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: background .15s;
  cursor: pointer;
}
.work-row:hover { background: var(--bg-2); }
.work-row .num { font-size: 11px; color: var(--fg-dimmer); }
.work-row .title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.work-row:hover .title { color: var(--accent); }
.work-row .client { font-size: 12px; color: var(--fg-dim); }
.work-row .year { font-size: 11px; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.work-row .tags { font-size: 10.5px; color: var(--fg-dim); }
.work-row .arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-dimmer);
  text-align: right;
  transition: transform .2s, color .2s;
}
.work-row:hover .arrow {
  transform: translateX(6px);
  color: var(--accent);
}

.work-preview {
  position: fixed;
  width: 360px; height: 240px;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity .18s, transform .18s;
  border: 1px solid var(--accent);
  background: var(--bg-2);
  overflow: hidden;
}
.work-preview.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-preview-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: #000;
  font-size: 32px;
  letter-spacing: -0.02em;
  position: relative;
}
.work-preview-inner::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.15) 0 2px, transparent 2px 8px);
}

/* ==== manifesto (big text) =============================== */

.manifesto {
  padding: 120px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.manifesto-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 15ch;
}
.manifesto h2 em {
  font-style: italic;
  color: var(--accent);
}
.manifesto h2 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 4px;
  color: var(--fg-dim);
}
.manifesto-foot {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.manifesto-foot div span {
  display: block;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.manifesto-foot div p {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ==== team =============================================== */

.team {
  padding: 100px 20px;
  background: var(--bg-2);
}
.team-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 56px;
}
.team-head h2 { font-size: clamp(40px, 5.5vw, 84px); }
.team-head p { font-size: 13px; color: var(--fg-dim); align-self: end; max-width: 520px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.member {
  background: var(--bg);
  padding: 20px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.member:hover { background: var(--bg-3); }

.member-avatar {
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.member-avatar .ascii {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  white-space: pre;
  opacity: 0.6;
}
.member:hover .member-avatar .ascii {
  color: var(--accent-2);
  opacity: 1;
  animation: rot 6s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.member-avatar .badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; color: var(--accent);
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--accent);
  padding: 2px 6px;
}
.member-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.member-role {
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.member-bio {
  font-size: 11.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  flex: 1;
}
.member-stats {
  margin-top: 12px;
  display: flex; gap: 10px;
  font-size: 10px;
  color: var(--fg-dimmer);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.member-stats span strong {
  color: var(--fg);
  font-weight: 500;
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
}

/* ==== process ============================================ */

.process { padding: 100px 20px; }
.process-head h2 {
  font-size: clamp(40px, 5.5vw, 84px);
  margin-bottom: 16px;
}
.process-head p {
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 60ch;
  margin-bottom: 56px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-right: 0;
}
.step {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  min-height: 280px;
  position: relative;
  display: flex; flex-direction: column;
}
.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 11.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  flex: 1;
}
.step-arr {
  position: absolute; top: 28px; right: 12px;
  color: var(--fg-dimmer);
  font-size: 16px;
}
.step-dur {
  margin-top: 16px;
  font-size: 10.5px;
  color: var(--fg-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

/* ==== clients ============================================ */

.clients {
  padding: 80px 20px;
  background: var(--bg-2);
}
.clients-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px;
}
.clients-head h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.clients-head span { font-size: 11px; color: var(--fg-dim); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
}
.client-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  transition: all .15s;
  cursor: pointer;
  position: relative;
  min-height: 86px;
  display: flex; align-items: center; justify-content: center;
}
.client-cell:nth-child(6n) { border-right: 0; }
.client-cell:hover {
  color: var(--accent);
  background: var(--bg);
}
.client-cell::before {
  content: "~";
  position: absolute; left: 8px; top: 6px;
  font-size: 10px;
  color: var(--fg-dimmer);
  font-family: var(--font-mono);
}

/* ==== testimonials ======================================= */

.testimonials {
  padding: 100px 20px;
}
.testimonials-head {
  margin-bottom: 56px;
}
.testimonials-head h2 { font-size: clamp(40px, 5.5vw, 84px); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  background: var(--bg);
  transition: border-color .2s, transform .2s;
}
.quote:hover {
  border-color: var(--accent);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--accent);
}
.quote::before {
  content: "“";
  position: absolute; top: -8px; left: 16px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
}
.quote-text {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-top: 20px;
  margin-bottom: 24px;
}
.quote-author {
  display: flex; gap: 12px; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.quote-author .ava {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.quote-author .meta strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
}
.quote-author .meta span {
  color: var(--fg-dim);
  font-size: 10.5px;
}

/* ==== notes / blog ======================================= */

.notes {
  padding: 100px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.notes-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px;
}
.notes-head h2 { font-size: clamp(40px, 5.5vw, 84px); }
.notes-head a { font-size: 11px; color: var(--accent); }

.notes-list {
  border-top: 1px solid var(--line);
}
.note {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 80px;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  cursor: pointer;
  transition: background .15s;
}
.note:hover { background: var(--bg-2); }
.note .date {
  font-size: 11px; color: var(--fg-dim); font-variant-numeric: tabular-nums;
}
.note .ttl {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.note:hover .ttl { color: var(--accent); }
.note .tag {
  font-size: 10.5px;
  color: var(--fg-dim);
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line-bright);
  justify-self: start;
}
.note .rt {
  font-size: 11px;
  color: var(--fg-dimmer);
  text-align: right;
}

/* ==== careers ============================================ */

.careers {
  padding: 100px 20px;
  background: var(--bg-2);
  position: relative;
}
.careers-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.careers-left h2 {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.92;
}
.careers-left h2 em { color: var(--accent); font-style: italic; }
.careers-left p {
  margin-top: 24px;
  color: var(--fg-dim);
  font-size: 13px;
  max-width: 52ch;
  line-height: 1.65;
}
.careers-left .pills {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.careers-left .pills span {
  font-size: 10.5px;
  padding: 4px 10px;
  border: 1px solid var(--line-bright);
  color: var(--fg-dim);
}

.roles-list {
  border: 1px solid var(--line);
  background: var(--bg);
}
.role {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.role:last-child { border-bottom: 0; }
.role:hover { background: var(--bg-2); }
.role .ttl {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.role:hover .ttl { color: var(--accent); }
.role .meta {
  font-size: 10.5px;
  color: var(--fg-dim);
  display: flex; gap: 10px;
}
.role .meta span {
  padding: 2px 8px;
  border: 1px solid var(--line-bright);
}
.role .arr {
  font-size: 16px;
  color: var(--fg-dimmer);
  transition: transform .2s, color .2s;
}
.role:hover .arr { color: var(--accent); transform: translateX(4px); }

/* ==== contact ============================================ */

.contact {
  padding: 100px 20px;
  background: var(--accent);
  color: #000;
  position: relative;
  overflow: hidden;
}
body.light .contact { color: #000; }
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.contact h2 em { font-style: italic; }
.contact h2 .cur { display: inline-block; width: 0.6em; height: 0.85em; background: #000; margin-left: 0.1em; animation: blink 1s steps(2) infinite; vertical-align: baseline; }

.contact-aside {
  align-self: end;
}
.contact-aside .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  font-size: 13px;
}
.contact-aside .row span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  align-self: center;
}
.contact-aside .row strong { font-weight: 500; }
.contact-aside .row a:hover { text-decoration: underline; }

.contact-cta {
  margin-top: 40px;
  display: flex; gap: 12px;
}
.contact-cta a {
  background: #000;
  color: var(--accent);
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s;
}
.contact-cta a:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 #000; }

/* ==== footer ============================================= */

.footer {
  padding: 60px 20px 24px;
  background: var(--bg);
  color: var(--fg-dim);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.footer-brand span { color: var(--accent); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 12px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex; justify-content: space-between; font-size: 11px;
  align-items: center;
  flex-wrap: wrap; gap: 12px;
}

.ascii-banner {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.1;
  color: var(--fg-dimmer);
  white-space: pre;
  margin-bottom: 24px;
  overflow: hidden;
}

/* ==== terminal fab ======================================= */

.terminal-fab {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 48px; height: 48px;
  background: var(--accent);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  z-index: 400;
  cursor: pointer;
  transition: transform .15s;
  box-shadow: 0 0 0 1px #000, 4px 4px 0 #000;
}
.terminal-fab:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 1px #000, 6px 6px 0 #000; }

/* ==== tweaks panel ======================================= */

.tweaks-panel {
  position: fixed;
  top: 80px; right: 20px;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 600;
  box-shadow: 4px 4px 0 var(--accent);
}
.tweaks-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.tweaks-header button {
  background: transparent; border: 0; color: var(--accent);
  cursor: pointer; font-size: 16px; line-height: 1;
}
.tweaks-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tweak {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--fg-dim);
}
.tweak-swatches { display: flex; gap: 4px; }
.tweak-swatches button {
  width: 22px; height: 22px;
  border: 1px solid var(--line-bright);
  cursor: pointer;
  padding: 0;
  background: var(--sw);
}
.tweak-swatches button.on { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.tweak-toggle { display: flex; }
.tweak-toggle button {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-bright);
  border-right: 0;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  cursor: pointer;
}
.tweak-toggle button:last-child { border-right: 1px solid var(--line-bright); }
.tweak-toggle button.on { background: var(--accent); color: #000; border-color: var(--accent); }
.tweak-val { color: var(--accent); min-width: 10px; text-align: right; }
.tweak input[type=range] {
  -webkit-appearance: none;
  background: var(--line);
  height: 2px;
}
.tweak input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: var(--accent);
  cursor: pointer;
}

/* ==== responsive ========================================= */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps .step { border-bottom: 1px solid var(--line); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .client-cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .client-cell:nth-child(3n) { border-right: 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .manifesto-foot { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .careers-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .services-head, .team-head { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
