/* ==========================================================================
   ARKHOS ENERGY — Design system
   Concept: "Subsurface". Deep petrol-blue grounds (the colour named after oil's
   sheen), a gas-flare amber accent, limestone light sections, and one thin-film
   iridescent "sheen" used sparingly. Display: Archivo (expanded widths).
   Body: IBM Plex Sans. Data and labels: IBM Plex Mono.
   Layout: 12-col container, alternating dark/limestone bands, full-bleed media.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Petrol grounds */
  --petrol-950: #050f15;
  --petrol-900: #08161f;
  --petrol-850: #0b1d28;
  --petrol-800: #0f2533;
  --petrol-700: #163243;
  --petrol-600: #21465b;

  /* Text on petrol */
  --fg: #e8eef1;
  --fg-2: #b6c4cc;
  --fg-mute: #8197a3;
  --line: rgba(196, 222, 235, 0.12);
  --line-strong: rgba(196, 222, 235, 0.24);

  /* Flare accent */
  --flare: #ff8b2b;
  --flare-hot: #ff6a13;
  --gold: #f4c16a;
  --flare-ink: #c2410c;      /* accent text on limestone */

  /* Limestone (light bands) */
  --limestone: #e9eeec;
  --limestone-2: #dce4e1;
  --limestone-3: #cfd9d5;
  --ink: #0a1a22;
  --ink-2: #33495a;
  --ink-mute: #5a7180;
  --ink-line: rgba(10, 26, 34, 0.13);

  /* Low-carbon + market semantics */
  --sea: #4cc4b5;
  --sea-ink: #0f7a6e;
  --up: #45d08b;
  --down: #ff6464;

  /* Thin-film sheen (oil on water) — use once per view */
  --sheen: linear-gradient(100deg, #9a7bff 0%, #3fb7e2 28%, #5fe3b6 50%, #f4c16a 72%, #ff8b2b 100%);
  --flare-grad: linear-gradient(135deg, #ffb35c 0%, #ff8b2b 45%, #ff6a13 100%);

  /* Contextual tokens (dark default; .section--light swaps them) */
  --bg: var(--petrol-900);
  --surface: var(--petrol-850);
  --surface-2: var(--petrol-800);
  --text: var(--fg);
  --text-2: var(--fg-2);
  --muted: var(--fg-mute);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent-text: var(--flare);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.7rem, 1.35rem + 5.6vw, 6.6rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.6vw, 4.8rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 2.3vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.08rem + 0.7vw, 1.7rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.74rem;

  /* Space + shape */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --section-y: clamp(80px, 9vw, 148px);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--petrol-900);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"], .plain-list { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--flare); color: var(--petrol-950); }

:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--flare); color: var(--petrol-950);
  padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
  color: var(--text);
}
.display { font-size: var(--fs-display); font-weight: 750; font-stretch: 118%; letter-spacing: -0.035em; line-height: 0.98; }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.15; letter-spacing: -0.012em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; font-stretch: 105%; }

p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 62ch; font-weight: 300; }
.prose { max-width: 66ch; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* Section kicker: used sparingly, only where it tells the reader something the heading does not. */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-2);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheen-text {
  background: var(--sheen);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.accent { color: var(--accent-text); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: 980px; }

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--text);
}
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--flush-top { padding-top: 0; }
.section--deep { --bg: var(--petrol-950); --surface: var(--petrol-900); --surface-2: var(--petrol-850); }
.section--raised { --bg: var(--petrol-850); --surface: var(--petrol-800); --surface-2: var(--petrol-700); }
.section--light {
  --bg: var(--limestone);
  --surface: #f4f7f6;
  --surface-2: var(--limestone-2);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --muted: var(--ink-mute);
  --rule: var(--ink-line);
  --rule-strong: rgba(10, 26, 34, 0.24);
  --accent-text: var(--flare-ink);
  color-scheme: light;
}
.section--light ::selection { background: var(--ink); color: var(--limestone); }

/* Strata hairlines: subtle geological layering on dark bands */
.section--strata::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(176deg, transparent 0 46px, rgba(196, 222, 235, 0.035) 46px 47px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.section > .container { position: relative; z-index: 1; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head > * { min-width: 0; }
.section-head .lead { margin-top: 4px; }
@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    column-gap: clamp(32px, 6vw, 96px);
  }
  .section-head--split .section-head__aside { justify-self: end; }
}
.section-head__title { display: grid; gap: 18px; }
.section-head__aside { display: grid; gap: 24px; justify-items: start; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.stack { display: grid; gap: var(--stack-gap, 20px); }
.stack > * { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-gap, 12px); align-items: center; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Split: media + copy */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split > * { min-width: 0; }
.split--wide-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split--wide-media { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: var(--ratio, 4 / 5);
  max-width: 100%;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.media-frame--wide { --ratio: 16 / 10; }
.media-frame--land { --ratio: 3 / 2; }
.media-caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--flare); --btn-fg: #170a02; --btn-bd: var(--flare); font-weight: 600; }
.btn--primary:hover { --btn-bg: #ffa04f; --btn-bd: #ffa04f; }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-bd: var(--text); }
.section--light .btn--ghost:hover { --btn-bg: rgba(10, 26, 34, 0.05); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--limestone); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--petrol-700); --btn-bd: var(--petrol-700); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--text);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--accent-text); background-size: 40% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.chip--flare { border-color: rgba(255, 139, 43, 0.5); color: var(--accent-text); }
.chip--sea { border-color: rgba(76, 196, 181, 0.5); color: var(--sea); }
.section--light .chip--sea { color: var(--sea-ink); border-color: rgba(15, 122, 110, 0.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(69, 208, 139, 0.18); flex: none; }
.dot--flare { background: var(--flare); box-shadow: 0 0 0 4px rgba(255, 139, 43, 0.2); }
.dot--gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 193, 106, 0.2); }
.dot--sea { background: var(--sea); box-shadow: 0 0 0 4px rgba(76, 196, 181, 0.2); }
.dot--steel { background: #9fb4c0; box-shadow: 0 0 0 4px rgba(159, 180, 192, 0.18); }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 120;
  background: var(--petrol-950);
}
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--fg);
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 15, 21, 0.7), rgba(5, 15, 21, 0));
  transition: opacity .4s;
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(5, 15, 21, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--fg); }
.brand__mark { width: 30px; height: 36px; }
.brand__word { display: grid; line-height: 1; }
.brand__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 750; font-size: 1.22rem; letter-spacing: 0.16em; }
.brand__sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.42em; color: var(--fg-mute); margin-top: 5px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); list-style: none; }
.nav__link {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 0.93rem; font-weight: 500; color: var(--fg-2);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--sheen); background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: clamp(8px, 1.6vw, 28px); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: transparent;
  align-items: center; justify-content: center;
}
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s; }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1140px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

/* Mobile menu overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--petrol-950);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(176deg, transparent 0 46px, rgba(196, 222, 235, 0.035) 46px 47px);
}
.mobile-nav__list { list-style: none; display: grid; gap: 2px; position: relative; }
.mobile-nav__link {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 115%; font-weight: 650;
  font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: -0.02em; color: var(--fg);
  transform: translateY(14px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .2s;
}
.mobile-nav__link span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--fg-mute); font-weight: 400; }
.mobile-nav__link[aria-current="page"] { color: var(--flare); }
.mobile-nav.is-open .mobile-nav__link { transform: none; opacity: 1; }
.mobile-nav.is-open li:nth-child(2) .mobile-nav__link { transition-delay: .04s; }
.mobile-nav.is-open li:nth-child(3) .mobile-nav__link { transition-delay: .08s; }
.mobile-nav.is-open li:nth-child(4) .mobile-nav__link { transition-delay: .12s; }
.mobile-nav.is-open li:nth-child(5) .mobile-nav__link { transition-delay: .16s; }
.mobile-nav.is-open li:nth-child(6) .mobile-nav__link { transition-delay: .2s; }
.mobile-nav.is-open li:nth-child(7) .mobile-nav__link { transition-delay: .24s; }
.mobile-nav.is-open li:nth-child(8) .mobile-nav__link { transition-delay: .28s; }
.mobile-nav__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; position: relative; color: var(--fg-2); font-size: var(--fs-small); }
@media (min-width: 1141px) { .mobile-nav { display: none; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(660px, 100svh, 1000px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 48px);
  overflow: hidden;
  background: var(--petrol-950);
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 62% 50%);
  transform: scale(1.08);
  animation: heroSettle 2.6s var(--ease) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 15, 21, 0.9) 0%, rgba(5, 15, 21, 0.58) 32%, rgba(5, 15, 21, 0.08) 58%, rgba(5, 15, 21, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 15, 21, 0.55) 0%, rgba(5, 15, 21, 0) 26%, rgba(5, 15, 21, 0) 52%, rgba(5, 15, 21, 0.86) 88%, var(--petrol-950) 100%);
}
.hero__seismic {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: 46%;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
}
.hero__inner {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: end;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero__copy { display: grid; gap: 28px; max-width: 900px; min-width: 0; }
.hero__title { text-shadow: 0 2px 40px rgba(5, 15, 21, 0.45); }
.hero__title .sheen-text { text-shadow: none; }
.hero__copy .lead { color: var(--fg-2); max-width: 42ch; }
.hero__title { color: var(--fg); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__fade { animation: fadeUp 1.1s var(--ease) .45s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); align-self: end; }
  .readout { align-self: auto; margin-top: 0; max-width: 420px; }
}

/* Asset readout (glass instrument panel) */
.readout {
  align-self: start;
  margin-top: clamp(0px, 3vh, 40px);
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 37, 51, 0.72), rgba(5, 15, 21, 0.72));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: grid; gap: 14px;
  font-size: var(--fs-small);
}
.readout__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.readout__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.readout__coords { font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-mute); letter-spacing: 0.06em; }
.readout dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.readout dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); }
.readout dd { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.12rem; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.1; }
.readout dd small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.08em; color: var(--fg-mute); }
.readout__title a:hover { color: var(--flare); }
.readout__spark { height: 44px; width: 100%; }
.readout__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--fg-mute); text-transform: uppercase; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute);
}
.scroll-cue i { position: relative; width: 1px; height: 38px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--flare); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  display: flex; align-items: stretch;
  border-top: 1px solid var(--line);
  background: rgba(5, 15, 21, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
}
.ticker__label {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 20px 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--petrol-950);
  border-right: 1px solid var(--line);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute);
  position: relative; z-index: 2;
}
.ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; }
.ticker__item { display: flex; align-items: baseline; gap: 10px; padding: 16px 28px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker__sym { color: var(--fg-mute); letter-spacing: 0.08em; }
.ticker__px { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.ticker__chg { font-variant-numeric: tabular-nums; font-size: 0.74rem; }
.ticker__chg.is-up { color: var(--up); }
.ticker__chg.is-down { color: var(--down); }
.ticker__unit { color: var(--fg-mute); font-size: 0.68rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker__label { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--petrol-950);
  padding-top: calc(var(--header-h) + clamp(72px, 10vw, 150px));
  padding-bottom: clamp(56px, 7vw, 104px);
  min-height: clamp(540px, 78svh, 820px);
  display: flex; align-items: flex-end;
}
.page-hero > .container { position: relative; }
.page-hero__media { position: absolute; inset: 0; z-index: -3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(1.06); animation: heroSettle 2.4s var(--ease) forwards; }
.page-hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 15, 21, 0.9) 0%, rgba(5, 15, 21, 0.55) 45%, rgba(5, 15, 21, 0.15) 100%),
    linear-gradient(180deg, rgba(5, 15, 21, 0.6) 0%, rgba(5, 15, 21, 0) 30%, rgba(5, 15, 21, 0.2) 60%, var(--petrol-950) 100%);
}
.page-hero .hero__seismic { height: 40%; opacity: 0.4; }
.page-hero__content { display: grid; gap: 24px; max-width: 920px; }
.page-hero__content .lead { color: var(--fg-2); }
.page-hero h1 { color: var(--fg); }
.page-hero__facts {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.page-hero__facts > div { padding: 20px 20px 0 0; display: grid; gap: 6px; min-width: 0; }
.page-hero__facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.page-hero__facts strong { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.page-hero__facts span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
@media (max-width: 760px) {
  .page-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .page-hero__facts > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); list-style: none; }
.crumbs a { color: var(--fg-2); transition: color .2s; }
.crumbs a:hover { color: var(--flare); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.stat { padding: 28px 24px 4px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat__value {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-display); font-stretch: 116%;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat__unit { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; color: var(--accent-text); }
.stat__label { color: var(--text-2); font-size: 0.95rem; max-width: 26ch; }
.stat__note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 24px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 0; }
}

/* ---------- Intro statement ---------- */
.statement {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 500;
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
  max-width: 30ch;
}
.statement em { font-style: normal; color: var(--muted); }

/* ---------- Value chain ---------- */
.chain { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.chain::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px;
  background: linear-gradient(90deg, var(--flare) 0%, var(--gold) 50%, var(--sea) 100%);
  opacity: 0.55;
}
.chain__flow {
  position: absolute; top: 31px; left: 0; width: 120px; height: 8px; border-radius: 8px;
  background: radial-gradient(closest-side, rgba(255, 179, 92, 0.95), rgba(255, 139, 43, 0));
  animation: flow 6s linear infinite;
}
@keyframes flow { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw)); } }
.chain__step { position: relative; display: grid; gap: 18px; padding-right: clamp(16px, 2vw, 32px); align-content: start; min-width: 0; }
.chain__node {
  position: relative; z-index: 1;
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--accent-text);
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.chain__node svg { width: 28px; height: 28px; }
.chain__step:hover .chain__node { border-color: var(--flare); background: var(--surface-2); transform: translateY(-4px); }
.chain__step:nth-child(4) .chain__node { color: var(--sea); }
.chain__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--surface-2); }
.chain__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(0.85); }
.chain__step:hover .chain__media img { transform: scale(1.05); filter: saturate(1.05); }
.chain__step p { color: var(--text-2); font-size: 0.98rem; }
.chain__specs { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); }
.chain__specs b { color: var(--text); font-weight: 500; }
@media (min-width: 1081px) {
  .chain__step { grid-template-rows: auto auto auto auto 1fr auto; align-content: stretch; }
  .chain__step h3 { min-height: 2.3em; }
}
@media (max-width: 1080px) {
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .chain::before, .chain__flow { display: none; }
}
@media (max-width: 620px) { .chain { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Operations map ---------- */
.opsmap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.opsmap > * { min-width: 0; }
.opsmap__canvas-wrap { position: relative; width: 100%; aspect-ratio: 2.58 / 1; max-width: 100%; }
.opsmap__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.opsmap__tip {
  position: absolute; z-index: 3; pointer-events: none;
  min-width: 200px; max-width: 260px;
  padding: 12px 14px;
  background: rgba(5, 15, 21, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.85rem; line-height: 1.4;
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.98);
  transition: opacity .2s, transform .2s;
}
.opsmap__tip.is-visible { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.opsmap__tip b { display: block; font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 0.98rem; margin-bottom: 2px; color: var(--fg); }
.opsmap__tip span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.opsmap__tip p { margin-top: 6px; color: var(--fg-2); }
.opsmap__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.opsmap__legend span { display: inline-flex; align-items: center; gap: 10px; }
.regions { display: grid; border-top: 1px solid var(--rule-strong); }
.region {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline;
  width: 100%; text-align: left; padding: 16px 4px 16px 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--text-2);
  transition: color .25s, padding .35s var(--ease);
}
.region:hover, .region[aria-pressed="true"] { color: var(--text); padding-left: 10px; }
.region[aria-pressed="true"] { box-shadow: inset 2px 0 0 var(--flare); }
.region__name { font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 1.1rem; }
.region__val { font-family: var(--font-mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--text); }
.region__meta { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); }
.region__bar { grid-column: 1 / -1; height: 3px; background: var(--rule); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.region__bar i { display: block; height: 100%; width: var(--w, 30%); background: var(--flare-grad); }
@media (max-width: 1000px) { .opsmap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Project cards (horizontal rail) ---------- */
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 38%);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 86%; } }
.rail-controls { display: flex; gap: 10px; }
.icon-btn {
  width: 50px; height: 50px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent; color: var(--text);
  transition: background .3s, border-color .3s, color .3s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

.project-card {
  position: relative; display: grid; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); min-height: 520px; color: var(--fg);
  background: var(--petrol-800);
}
.project-card__media { position: absolute; inset: 0; z-index: -2; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 1.4s var(--ease); }
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 15, 21, 0.35) 0%, rgba(5, 15, 21, 0) 24%, rgba(5, 15, 21, 0.7) 52%, rgba(5, 15, 21, 0.96) 100%);
}
.project-card__body { text-shadow: 0 1px 14px rgba(5, 15, 21, 0.55); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px; }
.project-card__top .chip { background: rgba(5, 15, 21, 0.5); color: var(--fg); border-color: rgba(255, 255, 255, 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project-card__body { align-self: end; padding: 22px; display: grid; gap: 12px; }
.project-card__loc { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.project-card h3 { color: var(--fg); }
.project-card p { color: var(--fg-2); font-size: 0.95rem; }
.project-card .project-card__loc { color: var(--gold); font-size: 0.72rem; }
.project-card__specs { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--font-mono); font-size: 0.74rem; color: var(--fg-2); }
.project-card__specs b { color: var(--fg); font-weight: 500; }
.project-card__link { position: absolute; inset: 0; z-index: 2; }

/* ---------- Generic content card ---------- */
.card {
  position: relative; display: grid; align-content: start; gap: 16px;
  min-width: 0;
}
.card__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ratio, 3 / 2); background: var(--surface-2); max-width: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card__meta .accent { color: var(--accent-text); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card:hover h3 a { background-size: 100% 1px; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card .card__meta { font-size: 0.72rem; color: var(--muted); }

/* Panel: bordered surface for grouped content (use sparingly) */
.panel {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  min-width: 0;
}

/* Feature (icon + title + text) */
.feature { display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 1px solid var(--rule-strong); min-width: 0; }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent-text); }
.feature__icon svg { width: 30px; height: 30px; }
.feature p:not([class]) { color: var(--text-2); font-size: 0.98rem; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Spec list (dl) ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.specs > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; min-width: 0; }
@supports (grid-template-rows: subgrid) {
  .specs > div { grid-row: span 2; grid-template-rows: subgrid; row-gap: 4px; }
}
.specs dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.08rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Meters (targets) ---------- */
.meters { display: grid; gap: 28px; }
.meter { display: grid; gap: 10px; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.meter__label { font-weight: 500; color: var(--text); }
.meter__value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter__track { position: relative; height: 6px; border-radius: 6px; background: var(--rule); overflow: visible; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: 6px; background: linear-gradient(90deg, var(--sea), #8ee6d9); transform-origin: left; }
.meter--flare .meter__fill { background: var(--flare-grad); }
.meter__target { position: absolute; top: -5px; bottom: -5px; left: var(--t, 100%); width: 2px; background: var(--text); }
.meter__target::after { content: attr(data-label); position: absolute; top: calc(100% + 4px); right: 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.meter__note { font-size: 0.84rem; color: var(--muted); padding-right: 52px; }

/* ---------- Quote ---------- */
.quote { display: grid; gap: 28px; max-width: 980px; }
.quote__text {
  font-family: var(--font-display); font-stretch: 106%; font-weight: 500;
  font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text); text-wrap: balance;
}
.quote__text::before { content: "\201C"; color: var(--accent-text); margin-right: 0.04em; }
.quote__text::after { content: "\201D"; color: var(--accent-text); margin-left: 0.02em; }
.quote__by { display: flex; align-items: center; gap: 16px; }
.monogram {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-stretch: 120%; font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  color: var(--petrol-950);
  background: var(--sheen);
}
.quote__name { font-weight: 600; color: var(--text); }
.quote__role { font-size: 0.9rem; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--rule-strong); margin-bottom: clamp(28px, 4vw, 48px); }
.tabs__tab {
  position: relative; padding: 16px 18px; background: none; border: 0;
  font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 1.02rem; color: var(--muted);
  transition: color .25s;
}
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--flare); transform: scaleX(0); transition: transform .4s var(--ease); }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { color: var(--text); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { animation: fadeUp .6s var(--ease) both; }
@media (max-width: 640px) {
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs__tab { white-space: nowrap; }
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  transition: background .25s, color .25s, border-color .25s;
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-empty { padding: 40px 0; color: var(--muted); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--rule-strong); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.15rem; color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .35s var(--ease);
  color: var(--accent-text);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 0 24px; color: var(--text-2); max-width: 72ch; }

/* ---------- Timeline (real chronology) ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline__item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: 28px 0; border-top: 1px solid var(--rule); }
.timeline__year { font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; color: var(--accent-text); font-variant-numeric: tabular-nums; line-height: 1; }
.timeline__item h3 { margin-bottom: 8px; }
.timeline__item p { color: var(--text-2); max-width: 64ch; }
@media (max-width: 600px) { .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; border-top: 1px solid var(--rule-strong); }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.data-table th, .data-table td { padding: 14px 16px 14px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.data-table th { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.data-table td { color: var(--text-2); }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table .r { text-align: right; padding-right: 0; padding-left: 16px; }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flare); box-shadow: 0 0 0 3px rgba(255, 139, 43, 0.22); }
.field__error { font-size: 0.84rem; color: var(--down); min-height: 0; }
.modal__body .field__error { color: var(--down); }
.section--light .field__error { color: #c0262d; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--down); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--flare); flex: none; }
.form-success {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid rgba(69, 208, 139, 0.4); background: rgba(69, 208, 139, 0.08);
  color: var(--text);
}
.section--light .form-success { border-color: rgba(15, 122, 110, 0.35); background: rgba(15, 122, 110, 0.07); }

/* ---------- Modal (native dialog) ---------- */
.modal {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--petrol-900); color: var(--fg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.modal::backdrop { background: rgba(3, 9, 13, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 15, 21, 0.75); border: 1px solid var(--line-strong); color: var(--fg);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__media { aspect-ratio: 21 / 9; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px; }
.modal__body p { color: var(--fg-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 180px); background: var(--petrol-950); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 60%); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 15, 21, 0.92) 0%, rgba(5, 15, 21, 0.6) 55%, rgba(5, 15, 21, 0.35) 100%), linear-gradient(180deg, var(--petrol-900) 0%, rgba(5, 15, 21, 0) 22%, rgba(5, 15, 21, 0) 78%, var(--petrol-950) 100%); }
.cta-band__inner { display: grid; gap: 28px; max-width: 760px; }
.cta-band h2 { color: var(--fg); }
.cta-band .lead { color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--petrol-950); color: var(--fg-2);
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::after {
  content: "ARKHOS"; position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%);
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(5rem, 22vw, 22rem); letter-spacing: 0.04em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 222, 235, 0.07);
  pointer-events: none; white-space: nowrap;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.footer-top > * { min-width: 0; }
.footer-brand { display: grid; gap: 22px; align-content: start; }
.footer-brand p { max-width: 38ch; font-size: 0.95rem; }
.footer-col h3 { font-family: var(--font-mono); font-stretch: 100%; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.95rem; color: var(--fg-2); transition: color .2s; }
.footer-col a:hover { color: var(--flare); }
.newsletter { display: flex; gap: 8px; max-width: 420px; }
.newsletter input { flex: 1; min-width: 0; padding: 0 16px; min-height: 50px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--petrol-900); color: var(--fg); }
.newsletter input:focus { outline: none; border-color: var(--flare); }
.newsletter__msg { font-size: 0.85rem; color: var(--up); min-height: 1.2em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.85rem; color: var(--fg-mute); position: relative; z-index: 1; padding-bottom: clamp(60px, 14vw, 200px); }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--fg); }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg-2); transition: background .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--fg); color: var(--petrol-950); border-color: var(--fg); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 80;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flare); color: #170a02; border: 0;
  box-shadow: 0 12px 30px -8px rgba(255, 106, 19, 0.5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal (scroll-driven, never hides content at rest) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
    .reveal-img img {
      animation: revealImg linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
    @keyframes revealImg { from { transform: scale(1.18); } to { transform: scale(1); } }
  }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(40px, 5vw, 72px); }
.ta-c { text-align: center; }
.maxw-60 { max-width: 60ch; }
.nowrap { white-space: nowrap; }
.flex-between { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker__track { animation: none; }
}

/* ---------- Page-level helpers used by the home page and others ---------- */
.mobile-nav > .container { display: flex; flex-direction: column; flex: 1; }
.stack > .link-arrow, .stack > .btn, .stack > .chip { justify-self: start; }
.intro { align-items: end; }
.intro__aside { --stack-gap: 24px; }
.transition__panel { display: grid; align-content: start; }
.transition__panel .link-arrow { justify-self: start; }

/* ---------- Sticky in-page section nav (with scroll-spy) ---------- */
.subnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(5, 15, 21, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; gap: clamp(20px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 18px 0 16px; border-bottom: 2px solid transparent;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); white-space: nowrap; transition: color .2s, border-color .3s;
}
.subnav a:hover { color: var(--fg); }
.subnav a.is-active { color: var(--fg); border-bottom-color: var(--flare); }

.btn--ghost { --btn-bd: color-mix(in srgb, var(--text) 34%, transparent); }

/* Phone tables: shadow on the scrollable edge hints that the table scrolls sideways */
@media (max-width: 760px) {
  .table-wrap {
    background:
      linear-gradient(90deg, var(--bg) 30%, transparent) left center / 32px 100% no-repeat local,
      linear-gradient(270deg, var(--bg) 30%, transparent) right center / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.28), transparent) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.28), transparent) right center / 12px 100% no-repeat scroll;
  }
}
