/* ── Design tokens ─────────────────────────── */
:root {
  --black: #10110e;
  --cream: #f1f0e9;
  --lime:  #d6ff35;
  --orange:#ff6138;
  --line:  rgba(16,17,14,.14);
  --muted: #60625b;
  /* semantic tokens used throughout */
  --fg: #10110e;
  --bg: #f1f0e9;
}
[data-theme="dark"] {
  --fg:   #f1f0e9;
  --bg:   #10110e;
  --line: rgba(241,240,233,.14);
  --muted:#9a9c95;
}

/* ── Reset ─────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -.02em;
  transition: background-color .3s ease, color .3s ease;
}
.wrap { width: min(1230px, calc(100% - 48px)); margin: auto; }

/* ── Ticker ── fixed dark bar, always ─────── */
.ticker {
  height: 26px; overflow: hidden;
  background: #10110e; color: var(--lime);
  display: flex; white-space: nowrap;
  font-size: 10px; font-weight: bold;
  letter-spacing: .12em; line-height: 26px;
}
.ticker span { animation: scroll 20s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* ── Nav ───────────────────────────────────── */
.nav {
  height: 88px; display: flex;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.nav .theme-toggle { margin-left: auto; margin-right: 16px; }
.wordmark { font-weight: 900; letter-spacing: -.09em; font-size: 23px; color: inherit; text-decoration: none; }
.wordmark span { font-weight: 400; }
.wordmark sup  { font-size: 7px; letter-spacing: 0; margin-left: 3px; vertical-align: top; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a { font-size: 13px; color: inherit; text-decoration: none; }
.nav-cta { border: 1px solid var(--fg); padding: 11px 15px; }
.nav b, .capabilities b, .case b, .contact b { font-size: 16px; margin-left: 6px; }
.menu { display: none; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }

/* ── Hero ──────────────────────────────────── */
.hero { position: relative; padding: 29px 0 78px; overflow: hidden; }
.hero-top, .hero-bottom, .split-head { display: flex; justify-content: space-between; gap: 30px; }
.kicker, .location, .section-label, .tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin: 0;
}
.location { text-align: right; line-height: 1.35; }
.hero h1 {
  font-size: clamp(67px, 12.6vw, 185px);
  line-height: .79; letter-spacing: -.1em;
  margin: 115px 0 88px; position: relative; z-index: 1; font-weight: 800;
}
.hero h1 em, .approach h2 em, .contact h2 em {
  font-family: Georgia, serif; font-weight: 400; letter-spacing: -.1em;
}
.hero-bottom { position: relative; z-index: 1; align-items: end; }
.hero-bottom p { width: 360px; max-width: 75%; line-height: 1.35; font-size: 17px; margin: 0; }
.round-link {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--lime); border-radius: 50%;
  color: #10110e; font-size: 27px; text-decoration: none;
}
.hero-grid {
  position: absolute; right: -10px; bottom: 34px;
  width: 40%; height: 70%;
  display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,1fr);
  gap: 8px; opacity: .95;
}
.hero-grid span { border: 1px solid var(--fg); background: transparent; }
.hero-grid span:nth-child(2), .hero-grid span:nth-child(5) { background: var(--orange); border-radius: 50%; }
.hero-grid span:nth-child(4) { background: var(--lime); }

/* ── Manifesto ─────────────────────────────── */
.manifesto {
  padding: 108px 0 126px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 2fr; gap: 30px;
}
.statement h2 {
  font-size: clamp(43px, 6vw, 82px); font-weight: 700;
  letter-spacing: -.085em; line-height: .94; margin: 0 0 36px; max-width: 800px;
}
.statement h2 i { font-family: Georgia, serif; font-weight: 400; }
.statement p { font-size: 18px; line-height: 1.45; max-width: 535px; margin: 0; color: var(--muted); }

/* ── Practice / Ink ── always dark, never flips ── */
.ink { background: #10110e; color: #f1f0e9; padding: 105px 0; }
.ink .section-label  { color: rgba(241,240,233,.45); }
.ink .split-head > p:last-child { color: rgba(241,240,233,.6); }

.split-head { margin-bottom: 66px; }
.split-head > p:last-child { max-width: 250px; font-size: 14px; line-height: 1.4; margin: 0; }

/* Capabilities rows — borders must show on dark bg */
.capabilities { border-top: 1px solid rgba(241,240,233,.15); }
.capabilities article {
  display: grid; grid-template-columns: 10% 25% 45% 20%;
  align-items: start; padding: 28px 0;
  border-bottom: 1px solid rgba(241,240,233,.15);
}
.capabilities span  { font-size: 12px; color: var(--lime); font-weight: 700; }
.capabilities h3    { font-size: 28px; letter-spacing: -.065em; margin: 0; color: #f1f0e9; }
.capabilities p     { margin: 8px 30px 0 0; line-height: 1.5; color: rgba(241,240,233,.55); font-size: 14px; }
.capabilities a     { color: rgba(241,240,233,.75); text-decoration: none; font-size: 13px; text-align: right; transition: color .2s; }
.capabilities a:hover { color: #f1f0e9; }
.case a             { color: inherit; text-decoration: none; font-size: 13px; }

/* ── Work / Cases ──────────────────────────── */
.work { padding: 108px 0; }
.work-intro { font-size: clamp(25px,3.1vw,42px); letter-spacing: -.065em; line-height: 1.06; max-width: 830px; margin: 0 0 72px; }

.case {
  min-height: 580px; margin-bottom: 28px; padding: 40px;
  display: grid; grid-template-columns: 38% 62%;
  align-items: stretch; overflow: hidden; border-radius: 4px;
}
.case-copy { display: flex; flex-direction: column; align-items: start; position: relative; z-index: 1; }
.case-copy h3 { font-size: clamp(46px,5.2vw,75px); letter-spacing: -.09em; line-height: .85; margin: 84px 0 28px; font-weight: 800; }
.case-copy > p:not(.tag) { font-size: 14px; line-height: 1.5; max-width: 270px; margin: 0; color: rgba(16,17,14,.68); }
.case-copy a { margin-top: auto; text-align: left; border-bottom: 1px solid currentColor; padding-bottom: 7px; font-size: 13px; font-weight: 700; text-decoration: none; color: inherit; }
.case-one   { background: #d1ede9; }
.case-two   { background: #e6d8ff; }
.case-three { background: #ff956b; }

/* Artifact cards */
.artifact {
  border: 1px solid rgba(16,17,14,.13);
  box-shadow: 20px 20px 0 rgba(16,17,14,.10);
  align-self: center; min-height: 395px; padding: 24px;
  font-family: Arial, sans-serif; letter-spacing: -.03em; border-radius: 2px;
}
.pipeline { background: #fbfbf7; transform: rotate(-2deg); }
.artifact-bar { display: flex; gap: 4px; }
.artifact-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c5c7c0; }
.artifact-nav {
  display: flex; gap: 25px; font-size: 10px; margin: 26px 0 20px;
  color: #9a9c95; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.artifact-nav span:first-child { color: #10110e; font-weight: 700; }
.artifact-main { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.metric { background: #edf5f1; padding: 18px; min-height: 96px; border-radius: 2px; }
.metric small  { display: block; color: #6d7974; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.metric strong { display: block; font-size: 32px; margin-top: 14px; letter-spacing: -.06em; color: #10110e; }
.rows { margin-top: 20px; }
.rows span { height: 34px; border-bottom: 1px solid #dfe3df; display: block; }

/* Portal card */
.portal { background: #18181b; color: #f5f4ef; transform: rotate(2deg); padding: 28px; }
.portal > p { font-size: 22px; margin: 10px 0 28px; font-weight: 600; letter-spacing: -.04em; }
.portal-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-panels div { background: #2c2c31; padding: 18px; min-height: 120px; border-radius: 2px; }
.portal small { font-size: 10px; color: #a0a0a8; display: block; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.portal b { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; }
.portal-panels span { display: block; width: 50%; height: 4px; background: var(--lime); margin-top: 28px; border-radius: 2px; }
.portal-list { margin-top: 22px; }
.portal-list span {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 13px 0; font-size: 12px; color: rgba(245,244,239,.65);
}
.portal-list i { font-style: normal; color: var(--lime); font-weight: 600; }

/* Hub card */
.hub { background: #1f3043; color: #f4f7f0; transform: rotate(-1deg); display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.hub-title { font-size: 11px; color: #b9cad8; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hub-ring {
  width: 142px; height: 142px; border-radius: 50%;
  border: 16px solid #91c9ff; border-top-color: #f6c84f;
  display: grid; place-items: center; margin: 22px 0;
}
.hub-ring b { font-size: 18px; font-weight: 800; }
.hub-stats  { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.hub-stats span { background: #2d4359; padding: 12px; font-size: 10px; color: #b9cad8; border-radius: 2px; font-weight: 600; }
.hub-stats i { display: block; font-style: normal; font-size: 18px; color: #fff; margin-top: 8px; font-weight: 700; }

/* ── Approach / Lime ── always yellow, never flips ── */
.lime { background: var(--lime); padding: 108px 0; color: #10110e; }
.approach h2, .contact h2 {
  font-size: clamp(63px, 9vw, 130px);
  line-height: .82; letter-spacing: -.1em; margin: 78px 0;
}
.approach-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.approach-grid > p { font-size: 18px; line-height: 1.4; margin: 0; color: rgba(16,17,14,.72); }
.approach ol { padding: 0; margin: 0; list-style: none; border-top: 2px solid rgba(16,17,14,.18); }
.approach li {
  display: grid; grid-template-columns: 12% 35% 1fr;
  padding: 20px 0; border-bottom: 1px solid rgba(16,17,14,.13);
  align-items: start;
}
.approach li span   { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: rgba(16,17,14,.45); padding-top: 3px; }
.approach li strong { font-size: 18px; font-weight: 800; letter-spacing: -.04em; color: #10110e; }
.approach li small  { font-size: 13px; line-height: 1.5; color: rgba(16,17,14,.58); }

/* ── Contact ───────────────────────────────── */
.contact { padding: 112px 0 88px; }
.contact h2 { margin-bottom: 70px; }
.contact-row { display: flex; gap: 45px; flex-wrap: wrap; }
.contact-link { font-size: clamp(22px,3vw,40px); letter-spacing: -.06em; color: inherit; text-decoration: none; border-bottom: 1px solid; padding-bottom: 10px; }
.contact-note { margin: 74px 0 0; max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ── Footer ────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line); padding: 25px 0 38px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start;
}
.footer p { font-size: 12px; line-height: 1.45; margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:first-child { color: var(--fg); }

/* ── Skip link ─────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--lime); color: #10110e;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  z-index: 9999; border-radius: 0 0 4px 4px;
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ── Theme toggle ──────────────────────────── */
.theme-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; font-size: 16px; transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--lime); border-color: var(--lime); }

/* ── Cookie banner ─────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #10110e; color: #f1f0e9;
  padding: 16px 22px; display: flex; align-items: center; gap: 24px;
  font-size: 13px; line-height: 1.4; z-index: 9000;
  max-width: calc(100% - 32px); width: 640px;
  border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.cookie-banner p  { margin: 0; flex: 1; }
.cookie-actions   { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cookie-btn       { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 9px 18px; border-radius: 2px; }
.cookie-accept    { background: var(--lime); color: #10110e; }
.cookie-link      { color: rgba(241,240,233,.65); font-size: 12px; text-decoration: underline; }

/* ── About ─────────────────────────────────── */
.about { padding: 108px 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; margin-bottom: 80px; }
.team-card { border: 1px solid var(--line); padding: 32px; }
.team-card--open { border-style: dashed; opacity: .75; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.team-avatar--open { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.team-card h3   { font-size: 22px; font-weight: 800; letter-spacing: -.07em; margin: 0 0 4px; }
.team-role      { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.team-bio       { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }

/* Tech stack */
.tech-stack { border-top: 1px solid var(--line); padding-top: 60px; margin-bottom: 80px; }
.tech-list  { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list span { border: 1px solid var(--line); padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 2px; }

/* Testimonials */
.testimonials    { border-top: 1px solid var(--line); padding-top: 60px; }
.testimonial-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.testimonial     { margin: 0; border: 1px solid var(--line); padding: 28px; }
.testimonial p   { font-size: 15px; line-height: 1.55; margin: 0 0 20px; color: var(--fg); }
.testimonial cite{ font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ── Print ─────────────────────────────────── */
@media print {
  .ticker, .menu, .theme-toggle, .cookie-banner, .round-link, .hero-grid, .artifact { display: none !important; }
  .nav, .footer { border: none; }
  .nav nav { display: flex !important; }
  .skip-link { display: none; }
  .hero h1 { font-size: 56px; }
  .case { page-break-inside: avoid; }
  .contact-link { color: #000; text-decoration: underline; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; }
}

/* ── Dark mode tweaks ──────────────────────── */
[data-theme="dark"] .case-one   { background: #1d2f2d; }
[data-theme="dark"] .case-two   { background: #25213a; }
[data-theme="dark"] .case-three { background: #7a3520; }
[data-theme="dark"] .case-copy > p:not(.tag) { color: rgba(241,240,233,.62); }
[data-theme="dark"] .manifesto  { border-top-color: rgba(241,240,233,.12); }
[data-theme="dark"] .hero-grid span { border-color: rgba(241,240,233,.18); }
[data-theme="dark"] .pipeline   { background: #1e201a; }
[data-theme="dark"] .pipeline .artifact-nav span:first-child { color: #f1f0e9; }
[data-theme="dark"] .team-card  { border-color: rgba(241,240,233,.12); }
[data-theme="dark"] .testimonial{ border-color: rgba(241,240,233,.12); }
[data-theme="dark"] .tech-list span { border-color: rgba(241,240,233,.14); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1230px); }
  .nav  { height: 68px; }
  .nav nav { display: none; }
  .nav nav.open {
    position: absolute; z-index: 5;
    top: 88px; left: 16px; right: 16px;
    background: #10110e; color: #f1f0e9;
    padding: 20px 24px; display: flex; flex-direction: column; align-items: start; gap: 2px;
  }
  .nav nav.open a { padding: 11px 0; font-size: 15px; width: 100%; border-bottom: 1px solid rgba(241,240,233,.08); }
  .nav-cta { border: 0 !important; border-bottom: 1px solid rgba(241,240,233,.25) !important; }
  .menu { display: block; font-size: 13px; }
  .menu i { display: inline-block; border-top: 1px solid; width: 13px; margin: 0 0 4px 6px; }
  .hero h1 { font-size: clamp(65px,18vw,108px); margin: 96px 0 72px; }
  .hero-grid { width: 55%; height: 35%; bottom: 88px; opacity: .45; }
  .hero-bottom p { font-size: 15px; }
  .manifesto { display: block; padding: 72px 0; }
  .statement h2 { margin-top: 52px; }
  .statement p  { font-size: 16px; }
  .ink, .work, .lime, .contact { padding: 74px 0; }
  .split-head { margin-bottom: 48px; }
  .capabilities article { grid-template-columns: 15% 1fr; padding: 23px 0; }
  .capabilities h3 { font-size: 26px; }
  .capabilities p, .capabilities a { grid-column: 2; margin: 13px 0 0; }
  .capabilities a { text-align: left; }
  .work-intro { font-size: 29px; }
  .case { grid-template-columns: 1fr; padding: 28px; min-height: auto; }
  .case-copy h3 { font-size: 58px; margin: 48px 0 20px; }
  .case-copy a  { margin: 28px 0; }
  .artifact { min-height: auto; margin-top: 24px; transform: none !important; }
  .approach h2, .contact h2 { font-size: clamp(58px,16vw,92px); margin: 55px 0; }
  .approach-grid { display: block; }
  .approach-grid > p { margin-bottom: 48px; }
  .approach li { grid-template-columns: 15% 1fr; gap: 7px; }
  .approach li small { grid-column: 2; }
  .footer { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { align-items: flex-start; }
  .hub-stats { grid-template-columns: 1fr 1fr; }
  .hub-stats span:last-child { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .about { padding: 74px 0; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; bottom: 10px; }
  .cookie-actions { width: 100%; justify-content: flex-start; }
}
