/* devxnet — base styles. Tokens driven by CSS vars so Tweaks can rewrite live. */
:root {
  --bg: #0B0B0C;
  --bg-elev: #131315;
  --bg-card: #161618;
  --ink: #ECECEC;
  --ink-dim: #8C8C92;
  --ink-faint: #5A5A60;
  --line: #23232A;
  --line-strong: #2F2F37;
  --accent: #C4FF3E;
  --accent-ink: #0A0A0A;
  --accent-fg: #C4FF3E;
  --warn: #FF6A3D;
  --ok: #6EE7B7;

  --font-display: 'Inter Tight', Inter, system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1360px;
  --gutter: 32px;
}

.theme-light {
  --bg: #DDDDE0;
  --bg-elev: #EBEBED;
  --bg-card: #F2F2F4;
  --ink: #0A0A0B;
  --ink-dim: #3F3F46;
  --ink-faint: #8E8E97;
  --line: #C9C9CD;
  --line-strong: #B8B8BD;
  --accent-ink: #0A0A0A;
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

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

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; }
.mono { font-family: var(--font-mono); font-feature-settings: normal; }
.caps { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; font-weight: 500; }
.eyebrow { color: var(--accent-fg); }

/* NAV ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-dim); font-size: 14px; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; height: 28px;
}
.lang-switch button {
  padding: 2px 10px; border-radius: 999px; color: var(--ink-dim);
  font-family: inherit; font-size: 11px;
  transition: all 0.15s ease;
}
.lang-switch button.active { background: var(--ink); color: var(--bg); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 2px;
  color: var(--ink-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); background: var(--bg-elev); }

.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 2px;
  color: var(--ink-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-hamburger:hover { color: var(--ink); background: var(--bg-elev); }

.mobile-menu {
  display: flex; flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.mobile-menu a {
  padding: 14px var(--gutter);
  font-size: 16px; font-weight: 500;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, background 0.15s ease;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--ink); background: var(--bg-elev); }
.mobile-menu .mobile-menu-cta {
  color: var(--accent-fg);
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em; margin-top: 4px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 2px;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-dim); }

/* HERO ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding: 88px var(--gutter) 56px;
  display: grid; grid-template-columns: 1fr; gap: 48px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 80%, transparent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.hero-title {
  font-size: clamp(52px, 9vw, 148px);
  line-height: 0.94;
}
.hero-title .cross {
  font-family: var(--font-mono);
  color: var(--accent-fg);
  font-weight: 400;
  display: inline-block;
  transform: translateY(-0.05em);
  font-size: 0.72em;
  margin: 0 0.1em;
}
.hero-title .line-b {
  display: block;
  color: var(--ink-dim);
}

.hero-sub {
  font-size: 18px; line-height: 1.55; color: var(--ink-dim);
  max-width: 620px;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta > div {
  padding: 20px 24px 18px;
  border-right: 1px solid var(--line);
}
.hero-meta > div:last-child { border-right: 0; }
.hero-meta .k { color: var(--ink-dim); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.hero-meta .v { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }


/* Ticker */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
.ticker-track {
  display: flex; gap: 64px; white-space: nowrap;
  padding: 14px 0;
  animation: scroll 40s linear infinite;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 16px; }
.ticker-track .sep { color: var(--accent-fg); font-weight: 600; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* PAIN POINTS ----------------------------------------------------------- */
.pain-section { background: var(--bg-elev); }
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin-bottom: 48px;
}
.pain-card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background 0.2s ease;
}
.pain-card:hover { background: var(--bg-card); }
.pain-icon { color: var(--accent-fg); }
.pain-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; letter-spacing: -0.01em; line-height: 1.35;
  color: var(--ink); margin: 0;
}
.pain-cta { text-align: center; padding-top: 8px; }

/* SECTION --------------------------------------------------------------- */
section { scroll-margin-top: 80px; }
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.section-head .title {
  font-size: clamp(36px, 4.6vw, 64px);
}
.section-head .sub { color: var(--ink-dim); font-size: 17px; max-width: 480px; }

/* SERVICES -------------------------------------------------------------- */
.svc-tabs {
  display: flex; gap: 0; margin-bottom: 32px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--bg-elev);
  width: fit-content;
}
.svc-tabs button {
  padding: 10px 18px; color: var(--ink-dim); font-size: 13px; font-weight: 500;
  border-right: 1px solid var(--line);
  transition: all 0.15s ease;
}
.svc-tabs button:last-child { border-right: 0; }
.svc-tabs button.active { background: var(--ink); color: var(--bg); }

.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card {
  grid-column: span 3;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px;
  background: var(--bg);
  position: relative;
  transition: background 0.2s ease;
  min-height: 280px;
}
.svc-card:hover { background: var(--bg-elev); }
.svc-icon {
  color: var(--accent-fg);
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
}
.svc-card:hover .svc-icon { opacity: 1; }
.svc-cat {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-fg); margin-bottom: 20px;
}
.svc-card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink);
}
.svc-card .body {
  color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin: 0 0 24px;
}
.svc-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-card ul li {
  font-size: 13px; color: var(--ink-dim);
  padding-left: 18px; position: relative; line-height: 1.4;
}
.svc-card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-fg); font-weight: 600;
}

/* PROCESS --------------------------------------------------------------- */
.proc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.proc-step {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 220px;
}
.proc-step:last-child { border-right: 0; }
.proc-step .n {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  margin-bottom: 48px;
}
.proc-step h4 {
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  letter-spacing: -0.01em; margin: 0 0 12px;
}
.proc-step p { color: var(--ink-dim); font-size: 14px; margin: 0; }

/* ABOUT ----------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; margin-bottom: 64px; }
.about-text p { font-size: 17px; color: var(--ink-dim); max-width: 560px; }
.about-text p + p { margin-top: 18px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.team-member {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px;
  position: relative;
  background: var(--bg);
}
.team-member .avatar {
  width: 100%; aspect-ratio: 1; margin-bottom: 24px;
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 9px),
    var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
  display: grid; place-items: center;
}
.team-member .avatar .tag {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 10px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 3px 8px; color: var(--accent-fg);
  letter-spacing: 0.1em;
}
.team-member .avatar .placeholder {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.team-member h5 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.team-member .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.team-member .bio { color: var(--ink-dim); font-size: 14px; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
.stats > div {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .n { font-family: var(--font-display); font-weight: 500; font-size: 42px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stats .l { color: var(--ink-dim); font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }

/* VALUES (replaces team + stats) --------------------------------------- */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin-top: 8px;
}
.value-card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--bg);
  position: relative;
}
.value-card .value-num {
  font-size: 11px; color: var(--accent-fg);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 28px;
}
.value-card h5 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.value-card p {
  color: var(--ink-dim); font-size: 14px; line-height: 1.55; margin: 0;
}

/* WORK ------------------------------------------------------------------ */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 140px 1.3fr 1fr 160px;
  gap: 32px; align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.2s ease, background 0.2s ease;
}
.work-row:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-elev); }
.work-row .sector { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.work-row .title { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; }
.work-row .scope { display: flex; flex-wrap: wrap; gap: 6px; }
.work-row .scope span {
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid var(--line); padding: 3px 8px;
  color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.work-row .outcome { font-size: 13px; color: var(--accent-fg); text-align: right; line-height: 1.3; }

/* PARTNERS -------------------------------------------------------------- */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner-card {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--bg-elev);
  display: flex; flex-direction: column; gap: 28px;
  min-height: 220px;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.partner-card:hover { border-color: var(--ink-dim); transform: translateY(-2px); }
.partner-card .p-mark {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.partner-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; margin: 0; }
.partner-card .role { color: var(--ink-dim); font-size: 14px; }
.partner-card .p-logo {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 18px;
  color: var(--accent-fg);
}

.stack {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stack-title { color: var(--ink-dim); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pills span {
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--line); padding: 6px 12px;
  color: var(--ink);
  transition: all 0.15s ease;
}
.stack-pills span:hover { border-color: var(--accent-fg); color: var(--accent-fg); }

/* TESTIMONIALS ---------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.testi-card {
  padding: 36px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 32px;
  justify-content: space-between;
  min-height: 260px;
}
.testi-card .q { font-family: var(--font-display); font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 400; }
.testi-card .q::before { content: "“"; color: var(--accent-fg); margin-right: 4px; }
.testi-card .q::after { content: "”"; color: var(--accent-fg); margin-left: 2px; }
.testi-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.testi-card .meta .name { color: var(--ink); }

/* FAQ ------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item .q-row {
  display: grid; grid-template-columns: 60px 1fr 40px; gap: 24px; align-items: center;
}
.faq-item .q-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.faq-item .q-text { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.015em; font-weight: 500; }
.faq-item .q-toggle { font-family: var(--font-mono); font-size: 20px; color: var(--accent-fg); text-align: right; transition: transform 0.2s ease; }
.faq-item.open .q-toggle { transform: rotate(45deg); }
.faq-item .a-text {
  max-height: 0; overflow: hidden;
  color: var(--ink-dim); font-size: 15px;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  padding-left: 84px;
  max-width: 720px;
}
.faq-item.open .a-text { max-height: 200px; margin-top: 16px; }

/* JOURNAL --------------------------------------------------------------- */
.journal-list { border-top: 1px solid var(--line); }
.journal-row {
  display: grid; grid-template-columns: 140px 100px 1fr 80px;
  gap: 24px; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.2s ease;
}
.journal-row:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-elev); }
.journal-row .date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.journal-row .cat {
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid var(--line); padding: 3px 8px;
  color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.1em;
  justify-self: start;
}
.journal-row .title { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; font-weight: 500; }
.journal-row .read { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); text-align: right; }

/* CONTACT --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); background: var(--bg-elev); }
.contact-form .field { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.contact-form .field:nth-child(even) { border-right: 0; }
.contact-form .field.full { grid-column: span 2; border-right: 0; }
.contact-form label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); }
.contact-form input, .contact-form textarea, .contact-form select {
  background: transparent; border: 0; outline: 0;
  padding: 4px 0; font-size: 15px;
  color: var(--ink);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--ink-faint);
}
.contact-form textarea { resize: none; min-height: 120px; }
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.contact-form .submit-row {
  grid-column: span 2; border-right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
}
.contact-form .sent-msg { color: var(--accent-fg); font-size: 13px; font-family: var(--font-mono); }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .info-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-row:first-child { padding-top: 0; }
.contact-info .info-row .k { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-info .info-row .v { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; }
.contact-info .info-row .v.small { font-size: 16px; color: var(--ink-dim); font-family: var(--font-body); letter-spacing: 0; }
.contact-info .big-cta {
  margin-top: 24px;
  padding: 32px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; justify-content: space-between; align-items: center;
}
.contact-info .big-cta .big-num { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; font-weight: 500; }

/* FOOTER ---------------------------------------------------------------- */
footer {
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.footer-top h6 { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; font-weight: 500; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-top ul a { color: var(--ink-dim); font-size: 14px; }
.footer-top ul a:hover { color: var(--ink); }
.footer-tag { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.015em; max-width: 260px; margin-bottom: 16px; line-height: 1.2; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-socials { display: flex; gap: 14px; align-items: center; }
.footer-socials a {
  color: var(--ink-faint);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s ease;
}
.footer-socials a:hover { color: var(--ink); }

/* GIANT WORDMARK in footer */
.giant-wordmark {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(96px, 22vw, 360px);
  letter-spacing: -0.05em; line-height: 0.82;
  padding: 48px 0 24px;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.giant-wordmark .cross {
  font-family: var(--font-mono); color: var(--accent);
  font-size: 0.7em; display: inline-block;
  transform: translateY(-0.08em);
  margin: 0 0.05em;
}


/* TOPIC PILLS (contact form) ------------------------------------------- */
.topic-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.topic-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.18s ease;
  border-radius: 2px;
}
.topic-pill:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}
.topic-pill.active {
  background: var(--accent);
  border-color: var(--accent-fg);
  color: var(--accent-ink);
}

/* LEGAL PAGES ----------------------------------------------------------- */
.legal-page { min-height: 100vh; }

/* Header block — full-width banner above content */
.legal-header {
  border-bottom: 1px solid var(--line);
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}
.legal-header::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 85% 0%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 0%, black 0%, transparent 65%);
}
.legal-header .container { position: relative; }
.legal-header .crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 40px;
}
.legal-header .crumbs a { color: var(--ink-dim); }
.legal-header .crumbs a:hover { color: var(--accent-fg); }
.legal-header .crumbs .sep { color: var(--ink-faint); opacity: 0.6; }
.legal-header .crumbs .current { color: var(--ink); }

.legal-header .hdr-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: end;
}
.legal-header .eyebrow {
  color: var(--accent-fg);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 20px;
}
.legal-header h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6.2vw, 88px);
  letter-spacing: -0.03em; line-height: 0.98;
  margin: 0;
  max-width: 900px;
}
.legal-header .meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; flex-direction: column; gap: 8px;
  text-align: right;
  min-width: 180px;
}
.legal-header .meta .k { color: var(--ink-faint); }
.legal-header .meta .v { color: var(--ink); }

/* Tabs between the 3 legal pages */
.legal-tabs {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 66px; z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.legal-tabs .container {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto;
}
.legal-tabs a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 24px 18px 0;
  margin-right: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.1em;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a .n {
  color: var(--ink-faint); font-size: 10px;
}
.legal-tabs a.active { color: var(--ink); }
.legal-tabs a.active::after {
  content: "";
  position: absolute; left: 0; right: 32px; bottom: -1px;
  height: 1px; background: var(--accent);
}
.legal-tabs a.active .n { color: var(--accent-fg); }

/* Body layout — TOC + content */
.legal-body-wrap {
  padding: 64px 0 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

/* TOC */
.legal-toc {
  position: sticky; top: 140px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.legal-toc .toc-title {
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 8px 0;
  color: var(--ink-dim);
  font-size: 12px; line-height: 1.4;
  transition: color 0.15s ease;
  border-left: 2px solid transparent;
  padding-left: 12px; margin-left: -14px;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-faint);
  font-size: 10px;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active {
  color: var(--accent-fg);
  border-left-color: var(--accent-fg);
}
.legal-toc a.active::before { color: var(--accent-fg); }

/* Body content */
.legal-body { max-width: 720px; }
.legal-body .intro {
  font-size: 18px; line-height: 1.6;
  color: var(--ink);
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  max-width: 640px;
}
.legal-body .intro + .intro {
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 15px;
  padding-top: 24px;
}

.legal-body section.legal-section {
  padding: 48px 0 8px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 140px;
}
.legal-body section.legal-section:last-of-type { border-bottom: 0; }

.legal-body section.legal-section .sec-head {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 20px;
}
.legal-body section.legal-section .sec-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  padding-top: 4px;
}
.legal-body section.legal-section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; letter-spacing: -0.015em; line-height: 1.15;
  margin: 0;
}

.legal-body section.legal-section .sec-body {
  padding-left: 84px;
}
.legal-body section.legal-section .sec-body > *:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  color: var(--ink-dim); font-size: 15px; line-height: 1.7;
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul { padding-left: 20px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body a { color: var(--accent-fg); border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.legal-body a:hover { border-bottom-color: var(--accent-fg); }

.legal-body table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
  border: 1px solid var(--line);
}
.legal-body th, .legal-body td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}
.legal-body th:last-child, .legal-body td:last-child { border-right: 0; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body th {
  color: var(--ink-faint); font-weight: 500;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--bg-elev);
  white-space: nowrap;
}
.legal-body td strong { color: var(--ink); }

/* Callout box for contact at bottom */
.legal-contact {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.legal-contact .lc-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink);
  max-width: 460px;
}
.legal-contact .lc-text span {
  display: block; color: var(--ink-dim); font-size: 14px;
  font-family: var(--font-body); font-weight: 400;
  letter-spacing: 0; margin-top: 6px;
}
.legal-contact .btn-primary { color: var(--accent-ink); }

/* Footer on legal pages — overrides inline */
.legal-page footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--ink-dim);
}
.legal-page footer .f-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.legal-page footer .f-links { display: flex; gap: 24px; }
.legal-page footer .f-links a { color: var(--ink-dim); }
.legal-page footer .f-links a:hover { color: var(--ink); }
.legal-page footer .f-links a.active { color: var(--accent-fg); }

/* Responsive for legal pages */
@media (max-width: 1100px) {
  .legal-body-wrap { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .legal-toc ol { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .legal-toc a { padding: 4px 0; border-left: 0; margin-left: 0; padding-left: 0; }
  .legal-toc a.active { border-left: 0; }
}
@media (max-width: 900px) {
  .legal-header { padding: 40px 0 28px; }
  .legal-header h1 { font-size: clamp(30px, 8vw, 52px); }
  .legal-header .hdr-grid { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .legal-header .meta { text-align: left; flex-direction: row; gap: 20px; flex-wrap: wrap; }
  .legal-tabs { top: 58px; }
  .legal-tabs a { padding: 13px 14px 13px 0; margin-right: 14px; font-size: 11px; }
  .legal-body-wrap { padding: 32px 0 56px; }
  .legal-body .intro { font-size: 16px; }
  .legal-toc { display: none; }
  .legal-body section.legal-section { padding: 28px 0 4px; }
  .legal-body section.legal-section .sec-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
  .legal-body section.legal-section .sec-num { display: none; }
  .legal-body section.legal-section .sec-body { padding-left: 0; }
  .legal-body section.legal-section h2 { font-size: 20px; }
  .legal-body table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal-body th, .legal-body td { padding: 10px 12px; }
  .legal-contact { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .legal-contact .lc-text { font-size: 17px; }
  .legal-contact .btn-primary { text-align: center; justify-content: center; }
  .legal-page footer .f-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-page footer .f-links { flex-wrap: wrap; gap: 12px 20px; }
}

/* RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: clamp(44px, 8vw, 96px) !important; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-inner { height: 58px; }
  .nav-right { gap: 10px; }
  .lang-switch { padding: 2px; height: 26px; }
  .lang-switch button { padding: 2px 7px; font-size: 10px; }
  .btn { padding: 10px 14px; font-size: 13px; }

  /* Hero */
  .hero-title { font-size: clamp(38px, 9vw, 72px) !important; }
  .hero-sub { font-size: 16px; max-width: 100%; }
  .hero-ctas { gap: 10px; }
  .hero-meta-3col { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
  .hero-meta > div { padding: 16px; }
  .hero-meta > div:nth-child(3) { border-right: 0; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .section-head .title { font-size: clamp(28px, 6vw, 48px); }

  /* Pain points */
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-text { font-size: 17px; }

  /* Services */
  .svc-tabs { flex-wrap: wrap; gap: 8px; border: 0; background: transparent; width: 100%; }
  .svc-tabs button { font-size: 11px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { grid-column: span 1; padding: 24px; min-height: auto; }

  /* Process */
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; min-height: auto; }
  .proc-step .n { margin-bottom: 20px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .team { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  /* Work / Journal */
  .work-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .work-row .outcome { text-align: left; }
  .journal-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }

  /* Partners */
  .partners-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-item .q-row { grid-template-columns: 40px 1fr 32px; gap: 12px; }
  .faq-item .q-text { font-size: 17px; }
  .faq-item .a-text { padding-left: 52px; font-size: 14px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .field { border-right: 0; grid-column: span 1 !important; }
  .contact-form .field.full, .contact-form .submit-row { grid-column: span 1; }
  .submit-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .submit-row .btn { width: 100%; justify-content: center; }
  .contact-info .big-cta { padding: 20px; }
  .contact-info .big-cta .big-num { font-size: 16px !important; }
  .topic-pill { font-size: 11px; padding: 8px 12px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .giant-wordmark { font-size: clamp(56px, 18vw, 180px); }

  /* Misc */
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }

  /* Nav */
  .nav-right .btn-primary { display: none; }

  /* Hero */
  .hero-title { font-size: clamp(34px, 10vw, 48px) !important; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; text-align: center; }
  .hero-meta-3col { grid-template-columns: 1fr 1fr; }
  .hero-meta > div:nth-child(3) { grid-column: span 2; border-right: 0; border-top: 1px solid var(--line); }

  /* About */
  .values-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }

  /* Pain points */
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { padding: 24px 20px; gap: 14px; }
  .pain-text { font-size: 16px; }

  /* FAQ */
  .faq-item .q-row { grid-template-columns: 32px 1fr 28px; gap: 10px; }
  .faq-item .q-text { font-size: 15px; }
  .faq-item .a-text { padding-left: 42px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
