/* ============================================================
   Binquant — Linear / Vercel direction
   Sans-first (Geist) · deep navy · cobalt accent · mono details
   ============================================================ */

:root {
  /* Surfaces */
  --paper: #f6f8fc;
  --paper-soft: #eef3fa;
  --paper-line: #dce5f2;
  --ink: #0b1220;
  --ink-2: #1a2236;
  --ink-soft: #2c3a52;
  --ink-mute: #5a6a82;
  --ink-faint: #8a96ad;
  --rule: #c7d2e3;
  --rule-soft: #d9e1ed;

  /* Accent */
  --cobalt: #315cff;
  --cobalt-soft: #e6ebff;
  --cobalt-deep: #1835c4;
  --violet: #6d5dfc;
  --violet-soft: #eceaff;
  --signal: #9fe7ff;

  /* Dark inverted */
  --night: #090d1e;
  --night-2: #111832;
  --night-line: #26365c;
  --night-line-soft: #1a2748;
  --night-ink: #e8edf7;
  --night-mute: #9da9c1;
  --night-faint: #607092;

  /* Type — sans-first, Geist */
  --sans:    'Geist', 'Inter', 'Noto Sans SC', 'Noto Sans Tamil', 'PingFang SC', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --display: 'Geist', 'Inter', system-ui, sans-serif;
  --mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--cobalt); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 0.55em;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
h1 { font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.024em; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.012em; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

:lang(ta) h1, :lang(ta) h2, :lang(ta) h3 { line-height: 1.22; word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh-Hans-SG) h1, :lang(zh-Hans-SG) h2 { letter-spacing: -0.005em; line-height: 1.18; }

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

/* ===== Section marker (mono /01) ===== */
.marker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.marker::before {
  content: ""; width: 10px; height: 10px; border: 1px solid var(--cobalt);
  display: inline-block; transform: rotate(45deg);
  background:
    linear-gradient(var(--cobalt), var(--cobalt)) center / 4px 4px no-repeat;
}
.marker .num { color: var(--cobalt); }
.section-dark .marker { color: var(--night-mute); }
.section-dark .marker::before { border-color: var(--signal); background-image: linear-gradient(var(--signal), var(--signal)); }
.section-dark .marker .num { color: var(--signal); }

/* mono atom */
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  overflow: visible;
  background: rgba(246, 248, 252, 0.58);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(151, 167, 198, 0.28);
  box-shadow: 0 12px 36px rgba(24, 35, 74, 0.08);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 38%, rgba(49, 92, 255, 0.15) 46%, rgba(109, 93, 252, 0.13) 50%, transparent 58%),
    linear-gradient(290deg, transparent 42%, rgba(159, 231, 255, 0.10) 50%, transparent 58%);
  background-size: 320% 320%, 280% 280%;
  background-position: 8% 16%, 92% 24%;
  opacity: 0.8;
  pointer-events: none;
}
.nav-inner {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 9px; height: 9px;
  background: var(--cobalt);
  display: inline-block;
  border-radius: 1px;
  transform: rotate(45deg);
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links {
  display: flex; gap: 22px; align-items: center;
}
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.88rem;
  position: relative; padding: 4px 0;
  letter-spacing: -0.005em;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--cobalt); transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 9px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.84rem;
  line-height: 1; white-space: nowrap;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--cobalt); color: var(--paper); }
.nav-links a.nav-cta::after { display: none; }

/* Lang switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  color: var(--ink-soft); cursor: pointer;
  padding: 6px 10px; border-radius: var(--r-pill);
  font-size: 0.84rem; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover, .lang[data-open="true"] .lang-btn {
  background: var(--paper-soft); border-color: var(--paper-line); color: var(--ink);
}
.lang-btn .globe { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lang-btn .chev { width: 9px; height: 9px; opacity: 0.7; transition: transform 0.2s; }
.lang[data-open="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--paper); border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  box-shadow: 0 10px 40px -8px rgba(11,18,32,0.18), 0 4px 14px rgba(11,18,32,0.05);
  padding: 4px; min-width: 190px;
  display: none; z-index: 60;
}
.lang[data-open="true"] .lang-menu { display: block; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: transparent; border: 0; padding: 9px 12px; cursor: pointer;
  border-radius: var(--r-sm); color: var(--ink-soft); font-size: 0.88rem; font-weight: 500;
  text-align: left;
}
.lang-menu button:hover { background: var(--paper-soft); color: var(--ink); }
.lang-menu button .code {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--ink-faint); letter-spacing: 0.02em;
}
.lang-menu button[aria-current="true"] { color: var(--cobalt); }
.lang-menu button[aria-current="true"] .code { color: var(--cobalt); }

@media (max-width: 1080px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-right { gap: 12px; }
}
@media (max-width: 460px) {
  .nav-links a.nav-cta { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}
/* dot-grid background — quiet engineering texture */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11,18,32,0.07) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: -1px -1px;
  mask-image: radial-gradient(60% 60% at 80% 20%, transparent, black 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 80% 20%, transparent, black 80%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 34%, rgba(49, 92, 255, 0.17) 44%, rgba(109, 93, 252, 0.19) 50%, transparent 60%),
    linear-gradient(300deg, transparent 42%, rgba(159, 231, 255, 0.11) 49%, rgba(49, 92, 255, 0.06) 54%, transparent 62%);
  background-size: 320% 320%, 280% 280%;
  background-position: 8% 14%, 92% 28%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--cobalt);
  font-weight: 700;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero-lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 38ch;
}
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-weight: 600; font-size: 0.9rem;
  border-radius: var(--r-pill);
  transition: transform 0.2s ease, background 0.2s, color 0.2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--cobalt); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero side facts */
.hero-side {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.hero-side dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.hero-side dt {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px;
}
.hero-side dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 0.95rem; letter-spacing: -0.01em; }
.hero-side dd .strong-num {
  font-family: var(--mono); font-feature-settings: "tnum"; font-weight: 600;
  color: var(--cobalt); font-size: 1.15rem;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-side { padding-top: 24px; }
}

/* ============================================================
   Strip
   ============================================================ */
.strip {
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 18px 0;
  background:
    linear-gradient(100deg, transparent 20%, rgba(49, 92, 255, 0.028) 30%, transparent 40%, rgba(109, 93, 252, 0.026) 74%, transparent 84%),
    var(--paper);
  overflow: hidden;
}
.strip-inner {
  display: flex; gap: 24px; align-items: center;
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; overflow-x: auto;
}
.strip-label { color: var(--ink); font-weight: 600; padding-right: 14px; border-right: 1px solid var(--rule); }
.strip-list { display: flex; gap: 24px; }
.strip-list li::before { content: "/ "; color: var(--cobalt); }

/* ============================================================
   Section foundations
   ============================================================ */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-alt {
  overflow: hidden;
  background:
    linear-gradient(128deg, transparent 22%, rgba(49, 92, 255, 0.026) 31%, transparent 40%, rgba(109, 93, 252, 0.026) 74%, transparent 84%),
    var(--paper-soft);
}
.section-alt > .container { position: relative; z-index: 1; }
.section-dark { background: var(--night); color: var(--night-ink); position: relative; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(120deg, transparent 24%, rgba(49, 92, 255, 0.065) 32%, transparent 40%, rgba(109, 93, 252, 0.055) 74%, transparent 84%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent);
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--night-ink); }
.section-dark p { color: var(--night-mute); }

.section-head { max-width: 940px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 18px; text-wrap: balance; }
.section-lede { font-size: 1.02rem; max-width: 64ch; margin-top: 8px; color: var(--ink-soft); }
.section-dark .section-lede { color: #b6becc; }

/* ============================================================
   Pain — engineering grid
   ============================================================ */
.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.pain-list > li {
  background: var(--paper);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.2s;
}
.pain-list > li:hover { background: #fefefa; }
.pain-list .pain-num {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--cobalt);
}
.pain-list h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.pain-list p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

@media (max-width: 720px) { .pain-list { grid-template-columns: 1fr; } }

/* ============================================================
   Modules
   ============================================================ */
.modules {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.module {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}
.module .module-num {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--cobalt);
}
.module h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.018em; margin: 0; }
.module p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.module ul { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.module ul li {
  font-size: 0.84rem; color: var(--ink-soft);
  padding-left: 14px; position: relative;
}
.module ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--cobalt);
}
.module .vs {
  font-family: var(--mono); font-size: 0.68rem; color: var(--ink-mute);
  letter-spacing: 0.02em; padding-top: 8px; border-top: 1px dashed var(--rule);
  margin-top: auto;
}

@media (max-width: 980px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* ============================================================
   AI use cases
   ============================================================ */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.ai-panel {
  background: var(--paper);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-kicker {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1px solid var(--cobalt-soft);
  background: #eef1ff;
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.ai-panel h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.018em;
}
.ai-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.ai-panel ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.ai-panel li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.ai-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cobalt);
  transform: rotate(45deg);
}

@media (max-width: 880px) { .ai-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Case study
   ============================================================ */
.case {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.case-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600;
  letter-spacing: -0.022em; line-height: 1.15; color: var(--night-ink);
}
.case-text p { font-size: 0.98rem; color: #b6becc; }
.case-meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--night-line);
}
.case-meta .label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--night-mute); text-transform: uppercase;
}
.case-meta .stack { display: flex; gap: 6px; flex-wrap: wrap; }
.case-meta .stack span {
  font-family: var(--mono); font-size: 0.74rem;
  padding: 4px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--night-line); color: var(--night-ink);
  background: var(--night-2);
}

.case-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.case-stats > div {
  background: var(--night); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.case-stats > div::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 24px; height: 1.5px; background: var(--signal);
}
.case-stats .label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--night-mute); text-transform: uppercase;
}
.case-stats .figure {
  font-family: var(--display); font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1;
  color: var(--signal);
  font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.case-stats .figure .unit {
  font-family: var(--mono); font-size: 0.42em; color: var(--night-ink); margin-left: 4px;
  font-weight: 500; letter-spacing: 0;
}
.case-stats .delta {
  font-family: var(--mono); font-size: 0.74rem; color: var(--night-mute);
  letter-spacing: 0;
}
.case-stats .delta s { color: #6a7596; text-decoration-thickness: 1px; }

@media (max-width: 880px) { .case { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case-stats { grid-template-columns: 1fr; } }

/* ============================================================
   Why us — comparison
   ============================================================ */
.why-grid {
  border-top: 1px solid var(--rule);
}
.why-row {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 3fr));
  border-bottom: 1px solid var(--rule);
  align-items: stretch;
}
.why-row > * { padding: 18px 16px; display: flex; align-items: center; }
.why-row .col-label {
  font-family: var(--display); font-size: 0.94rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
}
.why-row .col-us { background: var(--ink); color: var(--paper); font-weight: 500; font-size: 0.92rem; }
.why-row .col-mid, .why-row .col-old { color: var(--ink-soft); font-size: 0.9rem; }
.why-row.head .col-label,
.why-row.head .col-us,
.why-row.head .col-mid,
.why-row.head .col-old {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 500;
}
.why-row.head .col-label { color: var(--ink-mute); }
.why-row.head .col-mid, .why-row.head .col-old { color: var(--ink-mute); background: transparent; }
.why-row.head .col-us { color: var(--signal); background: var(--ink); }

@media (max-width: 720px) {
  .why-row { grid-template-columns: 1fr; gap: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .why-row > * { padding: 6px 0; align-items: flex-start; }
  .why-row.head { display: none; }
  .why-row .col-us { background: transparent; color: var(--ink); border-left: 2px solid var(--cobalt); padding-left: 12px; }
  .why-row .col-us::before { content: "Binquant — "; color: var(--cobalt); font-family: var(--mono); font-size: 0.74rem; margin-right: 6px; }
  .why-row .col-mid::before { content: "Integrator — "; color: var(--ink-mute); font-family: var(--mono); font-size: 0.74rem; margin-right: 6px; }
  .why-row .col-old::before { content: "Vendor — "; color: var(--ink-mute); font-family: var(--mono); font-size: 0.74rem; margin-right: 6px; }
}

/* ============================================================
   Process
   ============================================================ */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.process > li {
  background: var(--night);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.process .step-num {
  font-family: var(--mono); font-size: 0.72rem; color: var(--signal); letter-spacing: 0.04em;
}
.process h3 { font-size: 1.05rem; font-weight: 600; color: var(--night-ink); margin: 0; letter-spacing: -0.018em; }
.process p { color: var(--night-mute); font-size: 0.88rem; margin: 0; }

@media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; }
.faq details {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-size: 1.02rem; font-weight: 600; line-height: 1.3;
  color: var(--ink); letter-spacing: -0.014em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  width: 20px; height: 20px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 0.85rem; color: var(--cobalt);
  transition: transform 0.2s ease, background 0.2s;
}
.faq details[open] summary::after { content: "−"; background: var(--cobalt); color: var(--paper); border-color: var(--cobalt); }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 0.94rem; max-width: 70ch; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-grid h2 { color: var(--night-ink); }
.contact-grid .section-lede { color: var(--night-mute); }
.contact-card {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  padding: 6px;
}
.contact-card ul { display: flex; flex-direction: column; }
.contact-card li {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px; align-items: baseline;
  padding: 16px 14px;
  border-bottom: 1px dashed var(--night-line);
  font-size: 0.92rem;
}
.contact-card li:last-child { border-bottom: 0; }
.contact-card .label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--night-mute); text-transform: uppercase;
}
.contact-card a { color: var(--signal); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.contact-card a:hover { color: #fff; }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--night);
  color: var(--night-mute);
  padding: 48px 0 28px;
  border-top: 1px solid var(--night-line);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  border-bottom: 1px solid var(--night-line);
  padding-bottom: 28px;
}
.footer .brand-word {
  color: var(--night-ink); font-family: var(--display);
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.footer .brand-word::before {
  content: ""; width: 8px; height: 8px; background: var(--cobalt);
  display: inline-block; transform: rotate(45deg); border-radius: 1px;
}
.footer p { color: var(--night-mute); font-size: 0.9rem; margin: 10px 0 0; max-width: 38ch; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 0.76rem; }
.footer-meta li { color: var(--night-mute); }
.footer-meta li strong { color: var(--night-ink); font-weight: 500; padding-right: 6px; }
.footer-meta a { color: var(--signal); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 22px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--night-mute);
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--night-ink); }

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ============================================================
   Hero animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .nav::before,
  .hero::after {
    animation: hero-gradient-drift 7.5s ease-in-out infinite alternate;
  }
  .hero h1, .hero-lede, .cta-row, .hero-side, .hero-eyebrow {
    opacity: 0; transform: translateY(8px);
    animation: fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  .hero-eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.12s; }
  .hero-lede { animation-delay: 0.26s; }
  .cta-row { animation-delay: 0.4s; }
  .hero-side { animation-delay: 0.5s; }
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-gradient-drift {
  to {
    background-position: 92% 30%, 8% 78%;
  }
}
