/* Layout concept: a night-blueprint operations room. Wide editorial type over a
   single live workflow "line", brass used only for the moments that matter. */
:root {
  --bg: #0a111e;
  --surface: #0f1a2b;
  --surface-2: #14223a;
  --line: rgba(160, 182, 214, 0.16);
  --fg: #e8edf4;
  --muted: #95a3b8;
  --accent: #cfae6d;
  --accent-ink: #0a111e;
  --signal: #8cc0e8;
  --good: #7fcf9f;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-0: 0.8125rem;
  --s-1: 1rem;
  --s-2: 1.1875rem;
  --s-3: 1.5rem;
  --s-4: clamp(1.9rem, 3.2vw, 2.75rem);
  --s-5: clamp(2.6rem, 6.4vw, 5.6rem);

  --wrap: 1200px;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f8;
    --surface: #ffffff;
    --surface-2: #e9edf3;
    --line: rgba(20, 38, 66, 0.13);
    --fg: #0d1626;
    --muted: #556275;
    --accent: #94712c;
    --accent-ink: #ffffff;
    --signal: #275f93;
    --good: #23774a;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e9edf3;
  --line: rgba(20, 38, 66, 0.13);
  --fg: #0d1626;
  --muted: #556275;
  --accent: #94712c;
  --accent-ink: #ffffff;
  --signal: #275f93;
  --good: #23774a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--s-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--s-0);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); letter-spacing: -0.01em; line-height: 1.04; }
h1 { font-size: var(--s-5); }
h2 { font-size: var(--s-4); max-width: 22ch; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-family: var(--f-body); font-weight: 600; font-size: var(--s-2); letter-spacing: -0.005em; }
p { margin: 0; }
.lede { font-size: var(--s-2); color: var(--muted); max-width: 60ch; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem 4rem; }
.section-head--split .lede { justify-self: end; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 0.95rem/1 var(--f-body);
  padding: 0.95rem 1.4rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  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 { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-name span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { padding: 0.7rem 1.1rem; font-size: 0.875rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 0.55rem 0.9rem; font: 500 0.875rem var(--f-body); cursor: pointer; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.hero-regions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--f-mono); font-size: var(--s-0); color: var(--muted); letter-spacing: 0.04em; }
.hero-regions b { color: var(--fg); font-weight: 500; }

/* Live workflow */
.flow {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.flow-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; font-family: var(--f-mono); font-size: var(--s-0); color: var(--muted); margin-bottom: 1.5rem; }
.flow-top .live { color: var(--good); display: inline-flex; align-items: center; gap: .5rem; }
.flow-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2s infinite; }
.flow-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.flow-track::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 1px;
  background: linear-gradient(90deg, var(--line), var(--signal), var(--line));
}
.flow-step { position: relative; display: grid; gap: 0.35rem; justify-items: start; min-width: 0; }
.flow-dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.flow-step.is-active .flow-dot { background: var(--signal); color: var(--bg); border-color: var(--signal); transform: scale(1.08); }
.flow-step.is-done .flow-dot { border-color: var(--signal); color: var(--signal); }
.flow-name { font-weight: 600; font-size: 0.95rem; margin-top: 0.6rem; }
.flow-meta { font-size: var(--s-0); color: var(--muted); line-height: 1.45; }
.flow-step--human .flow-name::after { line-height: 1; content: " · human"; color: var(--accent); font-weight: 500; font-size: var(--s-0); font-family: var(--f-mono); }
.flow-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: var(--s-0); color: var(--muted); }
.flow-note { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); font-family: var(--f-mono); }

/* Stack strip */
.stack { padding-block: 2rem; border-top: 1px solid var(--line); }
.stack .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.stack-label { font-family: var(--f-mono); font-size: var(--s-0); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.stack-list { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; list-style: none; margin: 0; padding: 0; font-family: var(--f-display); font-size: 1.2rem; color: var(--fg); opacity: .85; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: clamp(1.75rem, 3.5vw, 2.75rem); display: grid; gap: 1rem; align-content: start; min-width: 0; transition: background-color .3s; }
.service:hover { background: var(--surface); }
.service-kicker { font-family: var(--f-mono); font-size: var(--s-0); color: var(--accent); letter-spacing: .06em; }
.service h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.service p { color: var(--muted); }
.service ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.service li { padding-left: 1.4rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7rem; height: 1px; background: var(--accent); }
.service-flow { font-family: var(--f-mono); font-size: 0.75rem; color: var(--signal); border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 0.5rem; line-height: 1.7; }

/* Decision table */
.decide { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.decide-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.decide-rows li { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.decide-q { color: var(--fg); }
.decide-arrow { color: var(--accent); font-family: var(--f-mono); }
.decide-a { font-family: var(--f-mono); font-size: 0.875rem; color: var(--signal); }
.decide-foot { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* Before / after */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ba-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); min-width: 0; }
.ba-card--after { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ba-card h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ba-card h3 small { font-family: var(--f-mono); font-size: var(--s-0); color: var(--muted); font-weight: 400; }
.chain { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.chain li { font-family: var(--f-mono); font-size: 0.8rem; padding: 0.45rem 0.7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.ba-card--before .chain li { color: var(--muted); border-style: dashed; }
.ba-card--after .chain li { color: var(--fg); }
.ba-card--after .chain li.human { border-color: var(--accent); color: var(--accent); }
.ba-card p { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* Delivery sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.25rem; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: var(--s-0); color: var(--accent); margin-bottom: 0.9rem; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Engagements */
.engage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.engage-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: grid; gap: 0.75rem; align-content: start; background: var(--bg); min-width: 0; }
.engage-card--feature { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.engage-tag { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.engage-card--feature .engage-tag { color: var(--accent); }
.engage-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.engage-card p { color: var(--muted); font-size: 0.95rem; }
.journey { margin-top: 2.25rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; }
.journey b { color: var(--fg); font-weight: 500; }
.journey i { color: var(--accent); font-style: normal; }

/* Use cases tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tab { font: 500 0.9rem var(--f-body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.1rem; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cases li { padding: 1.15rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.95rem; min-width: 0; animation: rise .4s ease both; }
.cases li span { display: block; font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); margin-bottom: 0.3rem; letter-spacing: .04em; }

/* Governance + measures */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; color: var(--good); font-family: var(--f-mono); }
.measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.measures div { background: var(--bg); padding: 1.25rem; min-width: 0; }
.measures b { display: block; font-family: var(--f-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 0.4rem; font-weight: 500; }
.measures span { font-size: 0.95rem; }

/* Regions */
.clocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.clock { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); min-width: 0; }
.clock-region { font-family: var(--f-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.clock-time { font-family: var(--f-display); font-size: 2.6rem; line-height: 1.1; margin-top: 0.75rem; font-variant-numeric: tabular-nums; }
.clock-city { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.clock-status { margin-top: 1rem; font-size: 0.8rem; font-family: var(--f-mono); color: var(--muted); display: inline-flex; gap: .45rem; align-items: center; }
.clock-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.clock-status.is-open { color: var(--good); }
.clock-status.is-open::before { background: var(--good); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h2 { font-size: var(--s-5); max-width: 12ch; }
.contact-points { margin-top: 2rem; display: grid; gap: 0.6rem; color: var(--muted); }
.contact-points li { list-style: none; }
.contact-points { padding: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: 0.8rem; font-family: var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--f-body); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 0.9rem; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-done { font-size: 0.95rem; color: var(--good); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes rise { from { transform: translateY(6px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Responsive */
@media (max-width: 1000px) {
  .steps, .engage, .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decide, .two-col, .contact, .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .lede { justify-self: start; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-links.is-open {
    display: grid; gap: 1rem; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); padding: 1.5rem clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line);
  }
  .flow-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.75rem; }
  .flow-track::before { display: none; }
  .services, .ba { grid-template-columns: 1fr; }
  .flow-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .steps, .engage, .clocks, .cases, .measures, .field-row { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decide-rows li { grid-template-columns: 1fr; gap: 0.3rem; }
  .decide-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
