/* ==========================================================================
   Titan Dominion Capital — institutional-trust style
   Tokens per .claude/skills/financial-corporate-site/references/tokens-and-type.md

   Dark is the default theme (set via data-theme="dark" on <html>). The :root
   block below holds the light token values, reachable through the nav toggle.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --surface:             252 251 249;
  --surface-elevated:    255 255 255;
  --surface-panel:       245 243 239;
  --surface-inverse:      16  26  43;

  --text-primary:         16  26  43;
  --text-secondary:       71  85 105;
  --text-muted:          100 110 126;   /* AA on page, elevated, and panel */
  --text-on-inverse:     237 240 245;
  --text-on-inverse-dim: 160 173 191;

  --accent:              130 100  40;   /* darkened for AA on light surfaces */
  --accent-contrast:     255 255 255;
  /* The hero/footer band is dark even in the light theme, so accent needs a
     lighter value there. Scoped to those sections below. */
  --accent-on-inverse:   201 162  86;
  --accent-on-inverse-contrast: 16 26 43;

  --border:               16  26  43;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto,
                "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
                "Hiragino Sans GB", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Source Han Serif SC",
                "Noto Serif SC", "Songti SC", SimSun, serif;

  --transition-fast: 120ms cubic-bezier(.25, .1, .25, 1);
  --transition-base: 200ms cubic-bezier(.25, .1, .25, 1);

  --nav-h: 68px;
  --container: 1180px;
  --gutter: 24px;
}

:root[data-theme="dark"] {
  --surface:              11  17  28;
  --surface-elevated:     18  26  40;
  --surface-panel:        26  36  53;
  --surface-inverse:       7  11  18;

  --text-primary:        232 237 244;
  --text-secondary:      167 180 198;
  --text-muted:          135 148 167;   /* lifted for AA on all three surfaces */
  --text-on-inverse:     232 237 244;
  --text-on-inverse-dim: 150 164 184;

  --accent:              201 162  86;
  --accent-contrast:      11  17  28;
  /* Dark theme's bands are already dark — same accent works on both. */
  --accent-on-inverse:   201 162  86;
  --accent-on-inverse-contrast: 11 17 28;

  --border:              226 232 240;
}

/* The hero and footer sit on a dark band in BOTH themes. Remapping the accent
   locally means anything inside them (eyebrow, subtitle, mark, primary button)
   picks up the band-safe accent without per-element overrides. */
.hero,
.footer {
  --accent: var(--accent-on-inverse);
  --accent-contrast: var(--accent-on-inverse-contrast);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: rgb(var(--text-primary));
  background: rgb(var(--surface));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: normal;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.tabular { font-variant-numeric: tabular-nums; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: rgb(var(--accent-contrast));
  background: rgb(var(--surface-inverse));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: transform var(--transition-fast);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --- Shared type ---------------------------------------------------------- */

.eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(var(--accent));
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  letter-spacing: -0.01em;
}

.section__lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 17px;
  color: rgb(var(--text-secondary));
}

.prose {
  max-width: 68ch;
  display: grid;
  gap: 20px;
  color: rgb(var(--text-secondary));
}

.link {
  color: rgb(var(--accent));
  font-weight: 500;
  border-bottom: 1px solid rgb(var(--accent) / .35);
  transition: border-color var(--transition-fast);
}
.link:hover { border-color: rgb(var(--accent)); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast);
}

.btn--primary {
  color: rgb(var(--accent-contrast));
  background: rgb(var(--accent));
}
.btn--primary:hover { background: rgb(var(--accent) / .88); }

.btn--ghost {
  color: rgb(var(--text-primary));
  background: transparent;
  border-color: rgb(var(--border) / .22);
}
.btn--ghost:hover {
  background: rgb(var(--border) / .04);
  border-color: rgb(var(--border) / .4);
}

.btn--lg { min-height: 50px; padding: 13px 26px; font-size: 16px; }
.btn__icon { width: 17px; height: 17px; flex: none; }

/* --- Nav ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(var(--surface) / .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgb(var(--border) / .1);
  transition: box-shadow var(--transition-base),
              background-color var(--transition-base);
}
.nav.is-scrolled {
  background: rgb(var(--surface) / .96);
  box-shadow: 0 1px 14px rgb(var(--border) / .07);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: rgb(var(--accent));
}
/* The mark is 144x96 (3:2), so width follows height rather than being square
   like the old inline SVG. Served as a background so the browser only ever
   fetches the variant the active theme needs — two <img> tags with one hidden
   would download both. */
.nav__mark {
  width: 45px;
  height: 30px;
  flex: none;
  background: url("logo-mark-light.png") center / contain no-repeat;
}
:root[data-theme="light"] .nav__mark {
  background-image: url("logo-mark.png");
}

.nav__names { display: grid; }
.nav__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgb(var(--text-primary));
}
.nav__tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  color: rgb(var(--text-muted));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  padding: 8px 13px;
  font-size: 15px;
  font-weight: 500;
  color: rgb(var(--text-secondary));
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.nav__links a:hover {
  color: rgb(var(--text-primary));
  background: rgb(var(--border) / .05);
}

.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__phone { font-size: 14px; padding-inline: 15px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgb(var(--text-secondary));
  background: transparent;
  border: 1px solid rgb(var(--border) / .18);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast),
              background-color var(--transition-fast);
}
.icon-btn:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--border) / .38);
  background: rgb(var(--border) / .04);
}
.icon-btn svg { width: 19px; height: 19px; }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun  { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgb(var(--border) / .18);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: rgb(var(--text-primary));
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: rgb(var(--surface-inverse));
  color: rgb(var(--text-on-inverse));
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--text-on-inverse) / .055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--text-on-inverse) / .055) 1px, transparent 1px);
  background-size: 76px 76px;
  /* Kept to the lower-left so it doesn't collide with the hero artwork,
     which now occupies the upper right. */
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 12% 88%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 65% at 12% 88%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(64px, 9vw, 112px);
}
.hero__copy { min-width: 0; }
.hero__art { min-width: 0; }
.hero .eyebrow { color: rgb(var(--accent)); }

.hero__title { display: grid; gap: 14px; }
.hero__title-main {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero__title-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .04em;
  color: rgb(var(--accent));
}

.hero__lead {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgb(var(--text-on-inverse-dim));
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__cta .btn--ghost {
  color: rgb(var(--text-on-inverse));
  border-color: rgb(var(--text-on-inverse) / .26);
}
.hero__cta .btn--ghost:hover {
  background: rgb(var(--text-on-inverse) / .07);
  border-color: rgb(var(--text-on-inverse) / .5);
}

.hero__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 52px;
  margin-top: 8px;
  padding-top: 30px;
  border-top: 1px solid rgb(var(--text-on-inverse) / .14);
}
.hero__facts li { display: grid; gap: 5px; }
.hero__facts-k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(var(--text-on-inverse-dim) / .85);
}
.hero__facts-v { font-size: 16px; font-weight: 500; }

/* --- Sections ------------------------------------------------------------- */

.section { padding-block: clamp(60px, 8vw, 104px); }
.section--alt {
  background: rgb(var(--surface-panel));
  border-block: 1px solid rgb(var(--border) / .08);
}
.section__head { margin-bottom: 44px; }

:is(#about, #services, #approach, #strengths, #contact) { scroll-margin-top: var(--nav-h); }

/* --- Grids / cards -------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--three  { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 34px 42px; }

.card {
  --card-pad-x: 28px;
  --card-pad-y: 28px;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad-y) var(--card-pad-x);
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border) / .1);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}
.card:hover { border-color: rgb(var(--accent) / .45); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: rgb(var(--accent));
  background: rgb(var(--accent) / .1);
  border-radius: var(--radius-md);
}
.card__icon svg { width: 22px; height: 22px; }

.card__title { font-size: 19px; margin-bottom: 10px; }
.card__body { font-size: 16px; color: rgb(var(--text-secondary)); }

.card__list {
  margin-top: 18px;
  padding-top: 16px;
  display: grid;
  gap: 9px;
  border-top: 1px solid rgb(var(--border) / .09);
}
.card__list li {
  position: relative;
  padding-left: 17px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgb(var(--text-muted));
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 1.5px;
  background: rgb(var(--accent));
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 2px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgb(var(--border) / .1);
}
.step:last-child { border-bottom: 1px solid rgb(var(--border) / .1); }

.step__num {
  flex: none;
  width: 48px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: rgb(var(--accent));
}
.step__body { max-width: 66ch; }
.step__title { font-size: 18px; margin-bottom: 7px; }
.step__body p { font-size: 16px; color: rgb(var(--text-secondary)); }

/* --- Features ------------------------------------------------------------- */

.feature { padding-left: 20px; border-left: 2px solid rgb(var(--accent) / .55); }
.feature__title { font-size: 17.5px; margin-bottom: 9px; }
.feature p { font-size: 16px; color: rgb(var(--text-secondary)); }

/* --- Contact -------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.contact__intro .prose { margin-top: 18px; }
.contact__intro .btn { margin-top: 28px; }

.contact__list {
  margin: 0;
  padding: 30px 32px;
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border) / .1);
  border-radius: var(--radius-lg);
}
.contact__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding-block: 17px;
  border-bottom: 1px solid rgb(var(--border) / .08);
}
.contact__row:first-child { padding-top: 0; }
.contact__row:last-child { padding-bottom: 0; border-bottom: 0; }

.contact__row dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.9;
  color: rgb(var(--text-muted));
}
.contact__row dd { margin: 0; font-size: 16.5px; }
.contact__address { margin-bottom: 7px; line-height: 1.65; }

/* --- Footer --------------------------------------------------------------- */

.footer {
  padding-block: 56px 36px;
  background: rgb(var(--surface-inverse));
  color: rgb(var(--text-on-inverse));
}
.footer__inner { display: grid; gap: 34px; }

.footer__brand { display: grid; gap: 10px; }
/* The footer band is dark in both themes, so this always uses the light
   variant — the navy monogram would vanish against it. */
.footer__mark {
  display: block;
  width: 42px;
  height: 28px;
  background: url("logo-mark-light.png") center / contain no-repeat;
}
.footer__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}
.footer__addr {
  font-size: 15px;
  line-height: 1.75;
  color: rgb(var(--text-on-inverse-dim));
}
.footer__addr a { border-bottom: 1px solid rgb(var(--text-on-inverse-dim) / .4); }
.footer__addr a:hover { color: rgb(var(--text-on-inverse)); }

/* The footer nav was removed — on a single-page site it duplicated the header
   links verbatim. The divider it used to provide now lives on .footer__legal. */
.footer__legal {
  display: grid;
  gap: 14px;
  max-width: 92ch;
  padding-top: 26px;
  border-top: 1px solid rgb(var(--text-on-inverse) / .13);
}
.footer__legal p {
  font-size: 13px;
  line-height: 1.8;
  color: rgb(var(--text-on-inverse-dim) / .82);
}
.footer__copy {
  padding-top: 10px;
  color: rgb(var(--text-on-inverse-dim)) !important;
}

/* --- Artwork -------------------------------------------------------------- */
/* All decorative or schematic. No numbers, labels, tickers, or dates — see
   .claude/skills/financial-corporate-site/references/visuals-and-charts.md.
   Styling lives here rather than in style= attributes because the production
   CSP sets style-src 'self' and would block inline styles. */

.art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Background lattice — deliberately near-invisible. This is texture, not
   structure, so it is exempt from the 3:1 floor below. */
.art__grid path {
  fill: none;
  stroke: rgb(var(--border) / .12);
  stroke-width: 1;
}
.hero .art__grid path { stroke: rgb(var(--text-on-inverse) / .13); }

/* Structural lines — axes, baselines, drop-ticks. These must actually be
   visible in both themes (>=3:1) or the chart shape loses its reference. */
.art__grid--sm path,
.art__axis,
.art__ticks path {
  fill: none;
  stroke: rgb(var(--text-muted) / .75);
  stroke-width: 1;
}
.art__axis { stroke-width: 1.2; }
.art__ticks path { stroke: rgb(var(--text-muted) / .85); }

.art__mid {
  fill: none;
  stroke: rgb(var(--accent) / .9);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}
.art__mid--sm { stroke-width: 1; }

.art__band { fill: rgb(var(--accent) / .09); }

.art__line,
.art__curve,
.art__wave {
  stroke: rgb(var(--accent));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art__curve, .art__wave { stroke-width: 1.8; }

.art__nodes circle { fill: rgb(var(--accent) / .85); }
.art__node--hi {
  fill: rgb(var(--accent));
  stroke: rgb(var(--surface-inverse) / .55);
  stroke-width: 2;
}
.hero .art__node--hi { stroke: rgb(var(--surface-inverse)); }

.art__ticks path {
  fill: none;
  stroke: rgb(var(--border) / .2);
  stroke-width: 1;
}

/* Candles are deliberately mixed up/down. An all-positive series would read
   as a performance claim. */
.art__candles { stroke-linecap: round; }
.art__candle path { stroke-width: 1.4; fill: none; }
.art__candle rect { stroke-width: 1.2; }
/* Finer strokes in the 86px card banner, where the full-size weight blocks up. */
.art__candles--sm .art__candle path { stroke-width: 1.1; }
.art__candles--sm .art__candle rect { stroke-width: 1; }
.art__candle--up path,
.art__candle--up rect   { stroke: rgb(var(--positive)); }
.art__candle--up rect   { fill: rgb(var(--positive) / .22); }
.art__candle--down path,
.art__candle--down rect { stroke: rgb(var(--negative)); }
.art__candle--down rect { fill: rgb(var(--negative) / .18); }

/* Both sides at the same alpha so bid and ask read with equal weight — red is
   darker than green at matching opacity, which made the ask side recede. */
.art__depth-bid rect {
  fill: rgb(var(--positive) / .2);
  stroke: rgb(var(--positive) / .9);
  stroke-width: 1;
}
.art__depth-ask rect {
  fill: rgb(var(--negative) / .18);
  stroke: rgb(var(--negative) / .9);
  stroke-width: 1;
}

.art__dist { fill: rgb(var(--accent) / .1); }
.art__dist-line { stroke: rgb(var(--accent) / .75); stroke-width: 1.6; }
.art__scatter circle { fill: rgb(var(--accent) / .7); }

.art__docs rect {
  fill: rgb(var(--surface-panel));
  stroke: rgb(var(--border) / .3);
  stroke-width: 1.2;
}
.art__doc-lines {
  fill: none;
  stroke: rgb(var(--border) / .32);
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* Hero line draws itself once. */
.hero__art .art__line {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: art-draw 1500ms cubic-bezier(.25, .1, .25, 1) 250ms forwards;
}
@keyframes art-draw { to { stroke-dashoffset: 0; } }

/* Signal colors on the dark hero/footer band. Both themes use the lifted
   variants, since that band is dark even in light mode. */
.hero,
.footer {
  --positive: 67 178 89;
  --negative: 234 86 86;
}

/* --- Card banners --------------------------------------------------------- */

.card__banner {
  margin: calc(var(--card-pad-y) * -1) calc(var(--card-pad-x) * -1) 22px;
  border-bottom: 1px solid rgb(var(--border) / .1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgb(var(--accent) / .04);
  overflow: hidden;
}
.art--banner { height: 86px; }

/* --- Pipeline ------------------------------------------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 44px;
  padding: 26px 0;
  border-block: 1px solid rgb(var(--border) / .1);
}
.pipeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
/* Connector between nodes */
.pipeline__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 1px;
  background: linear-gradient(90deg,
    rgb(var(--accent) / .45) 0%,
    rgb(var(--accent) / .45) 72%,
    rgb(var(--accent) / 0) 100%);
}
.pipeline__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: rgb(var(--accent));
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--accent) / .9);
  border-radius: 50%;
}
.pipeline__glyph svg { width: 25px; height: 25px; }
.pipeline__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--text-secondary));
}

/* --- About layout: prose + schematic -------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: start;
}

.schematic { margin: 0; }
.schematic figcaption,
.photo figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: rgb(var(--text-muted));
}
.art--depth {
  padding: 22px;
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border) / .1);
  border-radius: var(--radius-lg);
}

/* Used by the commented-out photo slot in index.html. */
.photo { margin: 0; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--border) / .1);
}

/* --- Feature icons -------------------------------------------------------- */

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: rgb(var(--accent));
  background: rgb(var(--accent) / .1);
  border-radius: var(--radius-md);
}
.feature__icon svg { width: 20px; height: 20px; }

/* --- Contact section + skyline -------------------------------------------- */

.section--contact {
  position: relative;
  padding-block: clamp(60px, 8vw, 104px) 0;
  overflow: hidden;
}
.skyline {
  margin-top: clamp(48px, 7vw, 88px);
  line-height: 0;
}
.skyline svg { display: block; width: 100%; height: clamp(70px, 8vw, 120px); }
/* Darkest layer matches the footer so the silhouette reads as one mass
   meeting the footer edge. */
.skyline__front { fill: rgb(var(--surface-inverse)); }
.skyline__mid   { fill: rgb(var(--surface-inverse) / .6); }
.skyline__back  { fill: rgb(var(--surface-inverse) / .3); }

/* --- Reveal on scroll ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 380ms ease, transform 380ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav__links {
    position: absolute;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: rgb(var(--surface));
    border-bottom: 1px solid rgb(var(--border) / .1);
    box-shadow: 0 10px 22px rgb(var(--border) / .09);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px; font-size: 16px; }

  .nav__inner { gap: 12px; }
  .nav__links + .nav__actions { margin-left: auto; }
  .nav__burger { display: flex; }
  .nav__phone span { display: none; }
  .nav__phone { width: 44px; padding-inline: 0; }
  .nav__phone .btn__icon { width: 19px; height: 19px; }
}

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

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero__facts { gap: 20px 36px; }
  .step { gap: 16px; }
  .step__num { width: 34px; font-size: 19px; }
  .contact__list { padding: 24px 22px; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .contact__row dt { line-height: 1.6; }
  .card { --card-pad-x: 22px; --card-pad-y: 24px; }
}

/* Responsive rules for the artwork. Placed after the base breakpoints above so
   they win on any overlapping property. */

@media (max-width: 900px) {
  /* DOM order is copy → art → facts, so a single column stacks correctly
     without needing explicit `order`. */
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { max-width: 540px; }
  .hero__facts { margin-top: 0; }

  .about { grid-template-columns: 1fr; gap: 38px; }
  .schematic { max-width: 500px; }
}

@media (max-width: 620px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
    margin-bottom: 36px;
  }
  /* Connectors only make sense in a single row. */
  .pipeline__node:not(:last-child)::after { display: none; }
}

@media (max-width: 560px) {
  .art--banner { height: 74px; }
  .art--depth { padding: 16px; }
  .pipeline__glyph { width: 44px; height: 44px; }
  .pipeline__glyph svg { width: 22px; height: 22px; }
  .pipeline__label { font-size: 12px; }
}

/* --- Preferences ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* The near-zero duration above would otherwise leave the hero line parked at
     its start value (dashoffset 620 = invisible). Draw it fully, no animation. */
  .hero__art .art__line {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}

@media print {
  .nav, .nav__actions, .hero::after, .skip-link { display: none !important; }
  .hero__art, .card__banner, .skyline, .pipeline { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero, .footer { background: #fff !important; color: #000 !important; }
  .hero__inner, .about, .contact { display: block !important; }
  .footer__addr, .footer__legal p { color: #333 !important; }
  .section, .section--contact { padding-block: 18pt; }
  .art--depth { border-color: #999 !important; }
  a { text-decoration: underline; }
}
