/* ============================================================
   The Data Element — redesign
   System: Space Grotesk display + Inter body
   Palette: #0A0E1A bg, #00E5C3 teal, #7B5EA7 violet
   ============================================================ */

:root, :root[data-theme="dark"] {
  --bg: #0A0E1A;
  --bg-rgb: 10, 14, 26;
  --bg-2: #0D1320;
  --bg-elev: #11172A;
  --surface: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #E8ECF3;
  --text-dim: #8892A6;
  --text-faint: #5A6478;
  --teal: #00E5C3;
  --teal-ink: #04231E; /* readable text on teal button */
  --teal-soft: rgba(0, 229, 195, 0.12);
  --teal-glow: rgba(0, 229, 195, 0.28);
  --violet: #7B5EA7;
  --violet-soft: rgba(123, 94, 167, 0.15);
  --node-color: #cfd6e6;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 8vw, 112px);
}

/* Light theme — warm, editorial */
:root[data-theme="light"] {
  --bg: #F7F5F0;
  --bg-rgb: 247, 245, 240;
  --bg-2: #EFEDE6;
  --bg-elev: #FFFFFF;
  --surface: rgba(0, 0, 0, 0.02);
  --border: rgba(15, 19, 32, 0.10);
  --border-strong: rgba(15, 19, 32, 0.20);
  --text: #0E1320;
  --text-dim: #4F5868;
  --text-faint: #8892A6;
  --teal: #C77B12;          /* Amber — tuned for light bg */
  --teal-ink: #FFFFFF;
  --teal-soft: rgba(199, 123, 18, 0.10);
  --teal-glow: rgba(199, 123, 18, 0.22);
  --violet: #C53457;        /* Ruby — tuned for light bg */
  --violet-soft: rgba(197, 52, 87, 0.10);
  --node-color: #5A6478;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--teal);
}
.eyebrow.muted { color: var(--text-dim); }
.eyebrow.muted::before { background: var(--text-dim); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0; color: var(--text-dim); }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-dim); max-width: 56ch; text-wrap: pretty; }

.section-title {
  font-size: clamp(36px, 4.8vw, 60px);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .title-block { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 22px; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform 220ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--teal);
  color: var(--teal-ink);
  box-shadow: 0 8px 28px -10px var(--teal-glow), inset 0 0 0 1px rgba(255,255,255,0.18);
}
:root[data-theme="light"] .btn-primary { box-shadow: 0 8px 24px -10px var(--teal-glow); }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px -8px var(--teal-glow), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.03);
}
:root[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(15,19,32,0.30);
  background: rgba(15,19,32,0.04);
}

/* Sticky nav ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease, padding 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { color: var(--text); }
.brand-name em { font-style: normal; color: var(--teal); }

.nav-links {
  display: flex; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 200ms ease, background 200ms ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.03); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 16px; font-size: 13.5px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
}
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-bg::before {
  /* radial vignette to keep text legible */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 22% 40%, rgba(var(--bg-rgb),0) 0%, rgba(var(--bg-rgb),0.55) 70%, rgba(var(--bg-rgb),0.9) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb),0.4) 0%, rgba(var(--bg-rgb),0) 30%, rgba(var(--bg-rgb),0.4) 70%, rgba(var(--bg-rgb),1) 100%);
  pointer-events: none;
}

.hero-grid {
  display: block;
  position: relative;
  z-index: 2;
  max-width: 980px;
}
@media (max-width: 980px) {
  .hero-grid { max-width: none; }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-top: 28px;
  margin-bottom: 28px;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--teal) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: 19px; max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Hero stats card on right */
.hero-side {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
:root[data-theme="dark"] .hero-side {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.005) 100%);
}
:root[data-theme="light"] .hero-side {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 20px 60px -30px rgba(15,19,32,0.18);
}
.hero-side-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.hero-side-head .dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,229,195,0.15);
  margin-right: 8px;
  vertical-align: -1px;
}
.hero-stats { display: grid; gap: 22px; }
.hero-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-stat .val {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-stat .val .unit { font-size: 20px; color: var(--text-dim); margin-left: 2px; }
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: right;
  max-width: 12ch;
}

/* Firm card (replaces metric stats — honest fact rows) */
.firm-card { display: grid; gap: 0; margin: 0; }
.firm-card .row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.firm-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.firm-card .row:first-child { padding-top: 0; }
.firm-card dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.firm-card dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.firm-card dd .aside {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: none;
}
.firm-card dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.firm-card dd a:hover { border-bottom-color: var(--teal); color: var(--teal); }

.hero-scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 36px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 560px) { .hero-scroll { display: none; } }
.hero-scroll .line { display: inline-block; width: 36px; height: 1px; background: var(--text-faint); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0; background: var(--teal);
  transform: translateX(-100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Credibility bar ------------------------------------------ */
.creds {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.creds-inner {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap;
}
.creds-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.creds-logos {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap;
  flex: 1;
}
.creds-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.78;
  transition: color 200ms ease, opacity 200ms ease;
}
.creds-logo:hover { color: var(--text); opacity: 1; }
.creds-logo .glyph {
  width: 18px; height: 18px;
  display: inline-block;
}

/* Section base --------------------------------------------- */
section.block { padding: var(--section-y) 0; position: relative; }
section.block.tight { padding: clamp(64px, 8vw, 96px) 0; }

/* Services -------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 26px 24px;
  min-height: 260px;
  display: flex; flex-direction: column;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease, box-shadow 320ms ease, background 320ms ease;
  overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 320ms ease;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: var(--teal-soft);
  background: var(--teal-soft);
  box-shadow: 0 24px 48px -28px var(--teal-glow);
}
.svc:hover::after { box-shadow: inset 0 0 0 1px var(--teal-soft); }

.svc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--teal);
  margin-bottom: 28px;
  transition: background 320ms ease, border-color 320ms ease;
}
.svc:hover .svc-icon { background: var(--teal-soft); border-color: var(--teal-soft); }
.svc-icon svg { width: 22px; height: 22px; }

.svc-num {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-faint);
}
.svc h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.svc p { font-size: 14px; line-height: 1.55; }
.svc-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-list li {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* How we work ---------------------------------------------- */
.howwework {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(197,52,87,0.14) 0%, rgba(197,52,87,0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(56px, 7vw, 96px) 0;
}
.howwework .section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
  align-items: flex-start;
}
.howwework .section-title {
  font-size: clamp(28px, 3.2vw, 44px);
}
.howwework .lead {
  font-size: 16px;
  max-width: 44ch;
}
.steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .step {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0 24px;
  }
  .step-output { grid-column: 2; margin-top: 16px; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-output { grid-column: 1; }
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--border-strong);
  line-height: 1;
  user-select: none;
}

.step-body { min-width: 0; }
.step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.step-label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet); flex-shrink: 0;
}
.step-body h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.step-body p {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 52ch;
}

.step-output {
  text-align: right;
  min-width: 200px;
  flex-shrink: 0;
}
.step-output-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.step-output-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 860px) {
  .step-output { text-align: left; }
}

/* Case studies --------------------------------------------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr; } }

.case {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 30px 28px 28px;
  display: flex; flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease;
}
.case:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.case-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.case-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.case-problem {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 32ch;
}
.case-metric {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.case-metric .unit {
  font-size: clamp(15px, 1.4vw, 20px);
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.case-outcome {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 30px;
  max-width: 30ch;
}
.case-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.case-client {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.case-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 200ms ease;
}
.case-link:hover { color: var(--teal); }
.case-link .arrow { transition: transform 200ms ease; }
.case-link:hover .arrow { transform: translateX(3px); }

/* Narrative variant */
body[data-case-layout="narrative"] .case-metric { font-size: 36px; order: 2; margin: 18px 0 6px; }
body[data-case-layout="narrative"] .case-problem { order: 1; font-size: 17px; color: var(--text); margin-bottom: 6px; max-width: 36ch; }
body[data-case-layout="narrative"] .case-outcome { order: 3; font-size: 14px; color: var(--text-dim); }
body[data-case-layout="narrative"] .case { display: flex; flex-direction: column; }
body[data-case-layout="narrative"] .case-tag { order: 0; }
body[data-case-layout="narrative"] .case-foot { order: 4; }

/* Testimonials --------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 30px 28px;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 56px; line-height: 0.6;
  color: var(--teal);
  margin-bottom: 8px;
}
.quote-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text);
  text-wrap: pretty;
}
.quote-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.quote-who { display: flex; flex-direction: column; gap: 2px; }
.quote-name { font-size: 14px; color: var(--text); font-weight: 500; }
.quote-title { font-size: 12.5px; color: var(--text-dim); }
.quote-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  opacity: 0.85;
}

/* About / Team --------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
  max-width: 18ch;
}
.about-statement em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--teal) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-body {
  display: flex; flex-direction: column; gap: 28px;
}
.about-body p { font-size: 16px; color: var(--text-dim); max-width: 52ch; }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }

.member {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.member:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.member-portrait {
  height: 92px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, rgba(123,94,167,0.18), rgba(0,229,195,0.08));
  position: relative;
  display: grid; place-items: center;
  border: 1px dashed var(--border);
}
.member-portrait::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}
.member-name { font-size: 15px; font-weight: 500; color: var(--text); }
.member-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.member-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.member-tag { font-size: 12px; color: var(--text-dim); }
.member-in {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: color 200ms ease, border-color 200ms ease;
}
.member-in:hover { color: var(--teal); border-color: var(--teal-soft); }
.member-in svg { width: 12px; height: 12px; }

/* CTA banner ----------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: clamp(96px, 12vw, 140px) 0;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 50% 50%, var(--teal-soft) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  mask-image: radial-gradient(70% 100% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 18ch; margin-left: auto; margin-right: auto;
  position: relative;
}
.cta-banner p { font-size: 17px; color: var(--text-dim); max-width: 48ch; margin: 0 auto 36px; position: relative; }
.cta-banner .btn { position: relative; }

/* Footer --------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col li a { font-size: 14px; color: var(--text-dim); transition: color 200ms ease; }
.foot-col li a:hover { color: var(--text); }
.foot-brand p { font-size: 14px; color: var(--text-dim); max-width: 32ch; margin: 18px 0 24px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.foot-social a:hover { color: var(--teal); border-color: var(--teal-soft); background: var(--teal-soft); }
.foot-social svg { width: 14px; height: 14px; }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}

/* Scroll reveal -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* Light-theme element overrides ---------------------------- */
:root[data-theme="light"] body {
  background:
    radial-gradient(800px 600px at 10% -10%, rgba(197,52,87,0.05) 0%, transparent 60%),
    radial-gradient(700px 500px at 110% 0%, rgba(199,123,18,0.04) 0%, transparent 60%),
    var(--bg);
}
:root[data-theme="light"] .howwework {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(197,52,87,0.08) 0%, rgba(197,52,87,0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
:root[data-theme="light"] .svc:hover {
  background: rgba(199, 123, 18, 0.04);
  box-shadow: 0 24px 48px -28px rgba(199, 123, 18, 0.30);
}
:root[data-theme="light"] .cta-banner::before {
  background:
    radial-gradient(40% 60% at 50% 50%, var(--teal-soft) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(15,19,32,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(15,19,32,0.04) 0 1px, transparent 1px 80px);
}
:root[data-theme="light"] .member-portrait {
  background:
    repeating-linear-gradient(135deg, rgba(15,19,32,0.04) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, rgba(197,52,87,0.08), rgba(199,123,18,0.05));
}
:root[data-theme="light"] .quote-mark { opacity: 0.85; }
:root[data-theme="light"] .nav-links a:hover { background: rgba(15,19,32,0.04); }
:root[data-theme="light"] .foot-social a:hover { background: var(--teal-soft); }

/* Logo mark — committed to TILE. */
.logo-mark { display: block; }

.brand-mark { width: 30px; height: 30px; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  letter-spacing: -0.015em;
}

/* Reduce motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll .line::after { animation: none; }
}
