/* ==========================================================================
   SAVIC COMPANY LTD — concept landing page
   Black-led industrial palette · red primary · green precision accent
   ========================================================================== */

:root {
  /* fixed palette — never themed */
  --lit-paper: oklch(94% 0.008 75);
  --lit-ink:   oklch(17% 0.006 30);
  --red:   oklch(54% 0.17 29);         /* Savic red, industrial not fire-engine */
  --green: oklch(48% 0.09 160);        /* deep integrity green */

  /* themed tokens — dark defaults */
  --coal:  oklch(17% 0.006 30);        /* page ground */
  --soot:  oklch(21% 0.007 30);        /* raised surfaces */
  --seam:  oklch(32% 0.008 30);        /* hairline rules */
  --bone:  oklch(94% 0.008 75);        /* primary text */
  --ash:   oklch(88% 0.02 60 / .62);   /* muted text */
  --red-hot: oklch(62% 0.19 29);       /* red used AS text */
  --green-lit: oklch(66% 0.11 160);    /* green used AS text */
  color-scheme: dark;

  --font: "Archivo", "Arial Narrow", sans-serif;
  --wide: "wdth" 125;
  --narrow: "wdth" 82;

  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* light theme: the whole token set flips; sections derive their colors,
   so the proposal band automatically becomes the dark counterpoint */
:root[data-theme="light"] {
  --coal:  oklch(95% 0.008 75);
  --soot:  oklch(90% 0.01 75);
  --seam:  oklch(83% 0.012 75);
  --bone:  oklch(20% 0.006 30);
  --ash:   oklch(22% 0.012 30 / .66);
  --red-hot: oklch(47% 0.16 29);       /* darkened for text on paper */
  --green-lit: oklch(40% 0.09 160);
  color-scheme: light;
}

/* the hero and footer always sit on dark photography — pin their context to
   dark regardless of theme (also covers the transparent nav state over the hero) */
.hero, .footer, .nav:not(.is-scrolled) {
  --coal:  oklch(17% 0.006 30);
  --soot:  oklch(21% 0.007 30);
  --seam:  oklch(32% 0.008 30);
  --bone:  var(--lit-paper);
  --ash:   oklch(88% 0.02 60 / .62);
  --red-hot: oklch(62% 0.19 29);
  --green-lit: oklch(66% 0.11 160);
}

/* the proposal band is always the inverse of the page, so its red/green
   text accents need the opposite treatment to keep contrast */
.proposal { --red-hot: oklch(47% 0.16 29); --green-lit: oklch(40% 0.09 160); }
:root[data-theme="light"] .proposal { --red-hot: oklch(62% 0.19 29); --green-lit: oklch(66% 0.11 160); }

/* ==========================================================================
   SUBSEA BRAND VARIATION — navy / steel-blue / teal (from the draft proposal)
   Deep Navy #0A1F44 · Steel Blue #1A5276 · Teal #117A65 · Light Gray #F4F6F7
   The whole palette swaps via [data-brand="subsea"]; --red maps to teal (action),
   --green maps to steel blue (secondary), the near-black base becomes deep navy.
   ========================================================================== */
:root[data-brand="subsea"] {
  --lit-paper: oklch(97% 0.004 230);
  --lit-ink:   oklch(21% 0.075 264);
  --red:   oklch(52% 0.10 172);        /* teal = primary action */
  --green: oklch(45% 0.09 250);        /* steel blue = secondary accent */

  /* dark defaults */
  --coal:  oklch(16% 0.05 264);        /* deep navy near-black ground */
  --soot:  oklch(21% 0.065 264);       /* raised navy surfaces */
  --seam:  oklch(33% 0.055 262);       /* navy hairline rules */
  --bone:  oklch(97% 0.004 230);
  --ash:   oklch(80% 0.03 235 / .68);
  --red-hot:   oklch(66% 0.12 172);    /* teal used AS text on dark */
  --green-lit: oklch(70% 0.10 245);    /* steel blue used AS text on dark */
}

:root[data-brand="subsea"][data-theme="light"] {
  --coal:  oklch(97% 0.004 230);
  --soot:  oklch(93% 0.008 235);
  --seam:  oklch(86% 0.012 240);
  --bone:  oklch(21% 0.075 264);
  --ash:   oklch(26% 0.05 255 / .7);
  --red-hot:   oklch(45% 0.09 172);
  --green-lit: oklch(40% 0.08 250);
}

/* hero, footer and transparent nav always sit on dark navy photography */
:root[data-brand="subsea"] .hero,
:root[data-brand="subsea"] .footer,
:root[data-brand="subsea"] .nav:not(.is-scrolled) {
  --coal:  oklch(16% 0.05 264);
  --soot:  oklch(21% 0.065 264);
  --seam:  oklch(33% 0.055 262);
  --bone:  oklch(97% 0.004 230);
  --ash:   oklch(80% 0.03 235 / .68);
  --red-hot:   oklch(66% 0.12 172);
  --green-lit: oklch(70% 0.10 245);
}

/* proposal band inverse accents in subsea */
:root[data-brand="subsea"] .proposal { --red-hot: oklch(45% 0.09 172); --green-lit: oklch(40% 0.08 250); }
:root[data-brand="subsea"][data-theme="light"] .proposal { --red-hot: oklch(66% 0.12 172); --green-lit: oklch(70% 0.10 245); }

/* footer blurred-image tint follows the navy ground */
:root[data-brand="subsea"] .footer { background: oklch(16% 0.05 264); }
:root[data-brand="subsea"] .footer-bg::after {
  background:
    linear-gradient(oklch(16% 0.05 264 / .82), oklch(16% 0.05 264 / .42) 45%, oklch(16% 0.05 264 / .88)),
    linear-gradient(150deg, oklch(from var(--red) l c h / .2), transparent 55%, oklch(from var(--green) l c h / .16));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--coal);
  color: var(--bone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3 { line-height: 1.02; text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }

h2 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); }
h2 em { font-style: normal; color: var(--ash); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--red); color: var(--lit-paper); }

/* ---- shared bits ---------------------------------------------------- */

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ash);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 2.2em; height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 0.9em;
}
.kicker-red { color: var(--red-hot); }

.section-head { padding: 0 var(--pad); max-width: 68rem; }
.section-sub { margin-top: 1.4rem; max-width: 34rem; color: var(--ash); font-size: 1.02rem; }

.btn {
  display: inline-block;
  white-space: nowrap;
  font: 600 0.85rem/1 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 1.05em 1.9em;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: var(--lit-paper); }
.btn-red:hover { background: var(--red-hot); }
.btn-ghost { border-color: oklch(from var(--bone) l c h / .35); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-big { font-size: 1rem; padding: 1.2em 2.4em; }

/* duotone photo treatment — grayscale base + brand tint, any photo inherits it */
.duo { position: relative; overflow: hidden; background: var(--soot); }
.duo img { filter: grayscale(1) contrast(1.06) brightness(0.9); }
.duo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, oklch(from var(--red) l c h / .38) 0%, transparent 46%, oklch(from var(--green) l c h / .34) 100%),
    linear-gradient(oklch(from var(--coal) l c h / .22), oklch(from var(--coal) l c h / .22));
  mix-blend-mode: hard-light;
  pointer-events: none;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- nav ------------------------------------------------------------- */

.nav {
  color: var(--bone);
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2.4rem;
  padding: 0.9rem var(--pad);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: oklch(from var(--coal) l c h / .88); backdrop-filter: blur(10px); border-color: var(--seam); }

.wordmark { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.wordmark-bars { display: grid; gap: 3px; }
.wordmark-bars i { width: 22px; height: 5px; background: var(--red); transform: skewX(-18deg); }
.wordmark-bars i + i { background: var(--green); width: 15px; }
.wordmark-text { font-weight: 900; font-variation-settings: var(--wide); font-size: 1.25rem; letter-spacing: 0.04em; line-height: 1; display: grid; }
.wordmark-text small { font-weight: 500; font-variation-settings: normal; font-size: 0.52rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ash); }

.nav-links { display: flex; gap: 1.9rem; }
.nav-links a { font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ash); transition: color .2s; }
.nav-links a:hover { color: var(--bone); }

.brand-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  flex: 0 0 auto;
  height: 2.6rem; padding: 0 0.85rem 0 0.7rem;
  background: none;
  border: 1px solid oklch(from var(--bone) l c h / .3);
  border-radius: 1.4rem;
  color: var(--bone);
  cursor: pointer;
  transition: border-color .2s var(--ease-out);
}
.brand-toggle:hover { border-color: var(--bone); }
.brand-dots { display: inline-flex; }
.brand-dots i {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 1.5px solid var(--coal);
}
.brand-dots i:last-child { margin-left: -0.32rem; }
:root[data-brand="industrial"] .brand-dots i:first-child { background: #1A5276; }
:root[data-brand="industrial"] .brand-dots i:last-child  { background: #117A65; }
:root[data-brand="subsea"] .brand-dots i:first-child { background: #C0392B; }
:root[data-brand="subsea"] .brand-dots i:last-child  { background: #1E8449; }
.brand-label {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}

.theme-toggle {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem;
  background: none;
  border: 1px solid oklch(from var(--bone) l c h / .3);
  border-radius: 50%;
  color: var(--bone);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--bone); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.cta-short { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand-toggle { margin-left: auto; padding: 0 0.55rem; }
  .brand-label { display: none; }
  .nav { gap: 0.55rem; }
  .wordmark-text { font-size: 1.1rem; }
  .nav-cta { font-size: 0.76rem; letter-spacing: 0.09em; padding: 1em 1.1em; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

/* ---- hero ------------------------------------------------------------ */

.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; color: var(--bone); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { animation: drift 26s var(--ease-out) both; }
@keyframes drift { from { transform: scale(1.12) translateX(2%); } to { transform: scale(1.02) translateX(0); } }
.hero-media::after {
  /* extra legibility veil on top of the duotone */
  background:
    linear-gradient(oklch(from var(--coal) l c h / .55), transparent 34%, oklch(from var(--coal) l c h / .82) 88%),
    linear-gradient(105deg, oklch(from var(--coal) l c h / .68) 8%, transparent 60%),
    linear-gradient(160deg, oklch(from var(--red) l c h / .30) 0%, transparent 48%, oklch(from var(--green) l c h / .26) 100%);
  mix-blend-mode: normal;
}

.hero-inner { position: relative; padding: 9rem var(--pad) 3.4rem; max-width: 84rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 900; }
@media (max-width: 420px) { .hero h1 br { display: none; } }
.hero-sub { margin-top: 1.6rem; max-width: 32rem; color: oklch(from var(--bone) l c h / .82); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-meta {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2.6rem;
  padding: 1.5rem var(--pad) 1.7rem;
  border-top: 1px solid oklch(from var(--bone) l c h / .16);
  font-size: 0.92rem;
}
.hero-meta > div { display: grid; gap: 0.25rem; }
.hero-meta span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ash); }
.hero-scroll {
  margin-left: auto;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border: 1px solid oklch(from var(--bone) l c h / .3);
  border-radius: 50%;
  animation: nudge 2.6s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- stats ----------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad) 1rem;
  border-bottom: 1px solid var(--seam);
}
.stat { padding: 0 2rem 2.6rem 0; }
.stat + .stat { border-left: 1px solid var(--seam); padding-left: 2rem; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; font-variation-settings: var(--wide); line-height: 1; letter-spacing: -0.01em; }
.stat p { margin-top: 0.7rem; font-size: 0.88rem; color: var(--ash); max-width: 15rem; }
.stat sup { color: var(--red-hot); }
.stats-note { grid-column: 1 / -1; padding-bottom: 1.6rem; font-size: 0.72rem; color: oklch(from var(--ash) l c h / .78); }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--seam); padding-top: 1.6rem; }
}

/* ---- services: typographic index, not a card grid -------------------- */

.services { padding: clamp(4.5rem, 10vw, 8.5rem) 0 0; }

.service-index { margin-top: clamp(2.5rem, 6vw, 4.5rem); counter-reset: svc; }

.service {
  display: grid;
  grid-template-columns: 5rem 1fr clamp(9rem, 22vw, 19rem);
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.1rem) var(--pad);
  border-top: 1px solid var(--seam);
  position: relative;
  transition: background-color .35s var(--ease-out);
}
.service:last-child { border-bottom: 1px solid var(--seam); }
.service::before {
  /* red progress seam that grows on hover */
  content: "";
  position: absolute; left: 0; top: -1px;
  height: 2px; width: 0;
  background: var(--red);
  transition: width .5s var(--ease-out);
}
.service:hover { background: var(--soot); }
.service:hover::before { width: 100%; }

.service-num { font-size: 0.9rem; font-weight: 600; color: var(--red-hot); letter-spacing: 0.1em; align-self: start; padding-top: 0.5rem; }

.service-body h3 { font-size: clamp(1.2rem, 2.3vw, 1.8rem); }
.service-body p { margin-top: 0.6rem; color: var(--ash); font-size: 0.98rem; max-width: 30rem; }

.service-img { aspect-ratio: 16 / 10; }
.service-img img { transition: transform .8s var(--ease-out); }
.service:hover .service-img img { transform: scale(1.06); }

@media (max-width: 700px) {
  .service { grid-template-columns: 2.6rem 1fr; }
  .service-img { grid-column: 2; aspect-ratio: 16 / 8; }
}

/* ---- approach chain --------------------------------------------------- */

.approach { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }

.chain {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--seam);
  border-block: 1px solid var(--seam);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.chain li {
  background: var(--coal);
  padding: 1.8rem 1.4rem 2.1rem;
  display: grid; gap: 0.4rem; align-content: start;
  counter-increment: step;
}
.chain li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--ash);
}
.chain b { font-size: clamp(0.95rem, 1.5vw, 1.15rem); text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 800; }
.chain span { font-size: 0.8rem; color: var(--ash); }
.chain-final { background: oklch(from var(--green) l c h / .16); }
.chain-final::before { color: var(--green-lit); }
.chain-final b { color: var(--green-lit); }

@media (max-width: 900px) { .chain { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .chain { grid-template-columns: repeat(2, 1fr); } }

/* ---- story ------------------------------------------------------------ */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad);
  border-top: 1px solid var(--seam);
}
.story-media { position: sticky; top: 5.5rem; align-self: start; aspect-ratio: 4 / 5; max-height: 82svh; }
.story-text { display: grid; gap: clamp(2.6rem, 6vw, 4.5rem); align-content: center; }
.story-block h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: oklch(from var(--bone) l c h / .35); transition: color .5s var(--ease-out); }
.story-block.is-in h3 { color: var(--bone); }
.story-block p { margin-top: 1rem; max-width: 34rem; color: var(--ash); font-size: 1.04rem; }
mark.green { background: none; color: var(--green-lit); font-weight: 600; }

@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
  .story-media { position: static; aspect-ratio: 16 / 9; }
}

/* ---- proposal (contrast flip: bone paper) ------------------------------ */

.proposal {
  background: var(--bone);
  color: var(--coal);
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.proposal .section-sub { color: oklch(from var(--coal) l c h / .64); }
.proposal .kicker { color: var(--red-hot); }

.deliverables {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.8rem, 6vw, 4.5rem) var(--pad) 0;
}
.deliverable-num {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  background: var(--coal); color: var(--bone);
  font-weight: 800; font-size: 1rem;
  margin-bottom: 1.2rem;
  transform: skewX(-8deg);
}
.deliverable:nth-child(2) .deliverable-num { background: var(--red); color: var(--lit-paper); }
.deliverable:nth-child(3) .deliverable-num { background: var(--green); color: var(--lit-paper); }
.deliverable h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.deliverable li {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: oklch(from var(--coal) l c h / .72);
  border-bottom: 1px solid oklch(from var(--coal) l c h / .12);
}

.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: oklch(from var(--coal) l c h / .16);
  border-block: 1px solid oklch(from var(--coal) l c h / .16);
  margin: clamp(3rem, 7vw, 5rem) var(--pad) 0;
}
.timeline li { background: var(--bone); padding: 1.5rem 1.3rem 1.8rem; display: grid; gap: 0.35rem; align-content: start; }
.timeline b { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.timeline span { font-size: 0.85rem; color: oklch(from var(--coal) l c h / .6); }
.timeline em { font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-hot); margin-top: 0.4rem; }
.timeline-note { padding: 0.9rem var(--pad) 0; font-size: 0.72rem; color: oklch(from var(--coal) l c h / .45); }

.proposal-cta {
  margin: clamp(3.5rem, 8vw, 6rem) var(--pad) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  padding-top: 2.4rem;
  border-top: 2px solid var(--coal);
}
.proposal-cta h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); }

@media (max-width: 880px) {
  .deliverables { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
  .proposal-cta .btn-big { width: 100%; text-align: center; }
}

/* ---- footer: tall closing band over a blurred duotone image ------------- */

.footer {
  position: relative;
  overflow: hidden;
  background: oklch(17% 0.006 30);
  color: var(--bone);
  padding: clamp(6rem, 14vw, 11rem) var(--pad) 2.2rem;
}

.footer-bg { position: absolute; inset: 0; }
.footer-bg img {
  filter: grayscale(1) blur(3px) brightness(0.52) contrast(1.05);
  transform: scale(1.06); /* hide blur edge bleed */
}
.footer-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(oklch(17% 0.006 30 / .82), oklch(17% 0.006 30 / .42) 45%, oklch(17% 0.006 30 / .88)),
    linear-gradient(150deg, oklch(from var(--red) l c h / .18), transparent 55%, oklch(from var(--green) l c h / .14));
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto; /* contact block sits at the far right edge */
  gap: clamp(3rem, 8vw, 10rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.footer-lead { display: grid; gap: 1.6rem; justify-items: start; align-content: start; }
.footer-tag {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  font-variation-settings: var(--wide);
  text-transform: uppercase;
  line-height: 1.04;
}
.footer-blurb { color: var(--ash); font-size: 0.98rem; max-width: 26rem; }

.footer-contact { display: grid; gap: 0.55rem; align-content: start; justify-items: start; }
.footer-label {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--ash);
  margin-top: 1.4rem;
}
.footer-label:first-child { margin-top: 0; }
.footer-line {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out);
}
.footer-line:hover { border-color: var(--red-hot); }

.socials { display: flex; gap: 0.7rem; margin-top: 0.4rem; }
.socials a {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid oklch(from var(--bone) l c h / .28);
  border-radius: 50%;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.socials a:hover { border-color: var(--red); background: oklch(from var(--red) l c h / .2); }
.socials svg { width: 1.1rem; height: 1.1rem; }

.footer-base {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem;
  justify-content: space-between;
  border-top: 1px solid oklch(from var(--bone) l c h / .16);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ash);
}
.footer-fine { font-size: 0.72rem !important; color: oklch(from var(--ash) l c h / .8) !important; max-width: 34rem; }

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

/* ---- standalone proposal page ------------------------------------------- */

.prop {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(6.5rem, 14vw, 9rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

/* title block */
.prop-hero { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.prop-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900; text-transform: uppercase;
  font-variation-settings: var(--wide);
  line-height: 1.02; letter-spacing: -0.01em;
  margin-top: 1.1rem;
}
.prop-hero h1 em { font-style: normal; color: var(--ash); }
.prop-lead {
  margin-top: 1.6rem; max-width: 44rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ash);
}
.prop-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem 3rem;
  margin-top: 2.4rem; padding-top: 1.8rem;
  border-top: 1px solid var(--seam);
}
.prop-meta dt { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ash); }
.prop-meta dd { margin-top: 0.35rem; font-weight: 600; font-size: 0.98rem; }

/* generic section scaffold */
.prop-section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--seam); }
.prop-head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.8rem; }
.prop-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; color: var(--red-hot); }
.prop-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  text-transform: uppercase; font-variation-settings: var(--wide);
  font-weight: 800; letter-spacing: -0.01em;
}
.prop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.prop-cols p { color: var(--ash); font-size: 1rem; }
.prop-cols strong { color: var(--bone); font-weight: 700; }
.prop-note { color: var(--ash); max-width: 46rem; margin-bottom: 2rem; font-size: 0.98rem; }

/* scope cards */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.scope-card {
  border: 1px solid var(--seam);
  padding: 1.6rem 1.5rem 1.8rem;
  background: oklch(from var(--soot) l c h / .5);
}
.scope-tag {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  background: var(--red); color: var(--lit-paper);
  font-weight: 800; font-size: 0.9rem;
  transform: skewX(-8deg);
  margin-bottom: 1rem;
}
.scope-card h3 { font-size: 1.15rem; text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 800; margin-bottom: 0.9rem; }
.scope-card li { padding: 0.42rem 0; font-size: 0.92rem; color: var(--ash); border-bottom: 1px solid oklch(from var(--seam) l c h / .5); }
.scope-card li:last-child { border-bottom: 0; }

/* tier cards */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.tier {
  position: relative;
  border: 1px solid var(--seam);
  padding: 1.9rem 1.6rem;
  background: oklch(from var(--soot) l c h / .5);
}
.tier-featured {
  border-color: var(--red);
  background: oklch(from var(--red) l c h / .08);
  box-shadow: 0 0 0 1px var(--red) inset;
}
.tier-badge {
  position: absolute; top: 0; right: 1.4rem; transform: translateY(-50%);
  background: var(--red); color: var(--lit-paper);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.4em 0.8em;
}
.tier-top { padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--seam); }
.tier-top h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--ash); }
.tier-price { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; font-variation-settings: var(--wide); letter-spacing: -0.02em; margin: 0.5rem 0 0.4rem; }
.tier-sub { font-size: 0.86rem; color: var(--ash); }
.tier-list li { padding: 0.5rem 0; font-size: 0.9rem; color: var(--bone); border-bottom: 1px solid oklch(from var(--seam) l c h / .5); }
.tier-list li:last-child { border-bottom: 0; }
.tier-list .muted { color: var(--ash); }
.tier-list .accent { color: var(--red-hot); font-weight: 600; }

/* comparison table */
.table-scroll { overflow-x: auto; margin-top: 2.5rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 40rem; font-size: 0.9rem; }
.compare th, .compare td { padding: 0.75rem 1rem; text-align: right; border-bottom: 1px solid var(--seam); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--bone); }
.compare thead th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); font-weight: 700; }
.compare td { color: var(--ash); }
.compare .col-feat { background: oklch(from var(--red) l c h / .08); color: var(--bone); font-weight: 600; }
.compare tfoot td { font-weight: 800; color: var(--bone); font-size: 1rem; border-bottom: 0; border-top: 2px solid var(--bone); }
.compare tfoot .col-feat { color: var(--red-hot); }

/* add-ons */
.addon-head { margin-top: 2.8rem; margin-bottom: 1.2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 2.5rem; }
.addons li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--seam); }
.addons span { color: var(--ash); font-size: 0.92rem; }
.addons b { font-weight: 800; white-space: nowrap; }
.addons b i { font-style: normal; font-weight: 500; font-size: 0.72rem; color: var(--ash); margin-left: 0.35rem; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--seam); border: 1px solid var(--seam); }
.phases li { background: var(--coal); padding: 1.5rem 1.3rem 1.7rem; }
.phase-week { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-hot); }
.phases h3 { font-size: 1.05rem; margin: 0.5rem 0 0.6rem; text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 800; }
.phases p { font-size: 0.86rem; color: var(--ash); }
.phase-final { background: oklch(from var(--green) l c h / .12); }

/* terms */
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2.5rem; }
.terms-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-hot); margin-bottom: 0.5rem; }
.terms-grid p { font-size: 0.92rem; color: var(--ash); }

/* cta band */
.prop-cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 2px solid var(--bone);
}
.prop-cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 800; margin: 0.8rem 0 1rem; }
.prop-cta-band > div { max-width: 40rem; }

@media (max-width: 820px) {
  .prop-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .scope-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier-featured { order: -1; }
  .phases { grid-template-columns: 1fr 1fr; }
  .terms-grid { grid-template-columns: 1fr 1fr; }
  .addons { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .phases { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .prop-cta-band .btn-big { width: 100%; text-align: center; }
}

/* ---- motion preferences ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  .hero-scroll { animation: none; }
  .service-img img, .service::before { transition: none; }
}
