/* ==========================================================================
   Fusion MPC Limited site styles
   Palette: cream + navy + warm orange
   ========================================================================== */

/* Self-hosted. Montserrat ships as Light (300) and Medium (500) only, with no
   400, so body copy sets weight 300 explicitly. Left at 400, CSS font
   matching would round *up* to Medium and body text would render bold. */
@font-face {
  font-family: 'Timeless';
  src: url('/assets/fonts/Timeless.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf7f0;
  --bg-warm: #f1ebdc;
  --bg-deep: #ece4d0;
  --ink: #1f2a52;
  --ink-deep: #131a35;
  --ink-soft: #5a5a6a;
  --rule: #d8cfb8;
  --accent: #d9542b;
  --accent-deep: #b8421e;
  --paper: #fffdf7;

  --font-display: 'Timeless', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: var(--font-body);

  --nav-h: 88px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; }
body.nav-locked { overflow: hidden; }

/* Anchor targets clear the fixed header */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font-size: 13px; letter-spacing: 0.08em; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Section primitives ------------------------------------------------------ */
.section { padding: 140px 0; position: relative; }
.section.tight { padding: 90px 0; }
.wrap { width: min(1280px, 92vw); margin: 0 auto; }

@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .section.tight { padding: 56px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* Top nav ----------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 10px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s ease;
}
.nav.scrolled { padding: 6px 0; }
.nav-inner {
  width: min(1280px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; align-items: center; margin-left: auto; margin-right: 8px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }
.nav-cta {
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 0.01em;
  background: var(--ink); color: #fff;
  padding: 9px 22px; border-radius: 2px;
  text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }

.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--ink);
}
.nav-burger .icon-close { display: none; }
.nav.open .nav-burger .icon-close { display: block; }
.nav.open .nav-burger .icon-open { display: none; }

.nav-drawer {
  position: absolute; left: 0; right: 0; top: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0d1530;
  opacity: 0; pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer-inner {
  width: min(1280px, 92vw); margin: 0 auto;
  padding: 44px 0 40px;
  display: flex; flex-direction: column; gap: 30px;
}
.nav-drawer-link {
  display: flex; align-items: baseline; gap: 16px;
  text-decoration: none; color: #fff;
  transform: translateY(10px); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.nav-drawer.open .nav-drawer-link { transform: none; opacity: 1; }
.nav-drawer.open .nav-drawer-link:nth-child(2) { transition-delay: 60ms; }
.nav-drawer.open .nav-drawer-link:nth-child(3) { transition-delay: 120ms; }
.nav-drawer.open .nav-drawer-link:nth-child(4) { transition-delay: 180ms; }
.nav-drawer-link .n { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); }
.nav-drawer-link .l { font-family: var(--font-display); font-size: 34px; line-height: 1.1; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 700px) {
  :root { --nav-h: 66px; }
  .nav-logo img { height: 44px; }
  .nav-drawer-link .l { font-size: 30px; }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  --ink: #ffffff;
  --ink-deep: #ffffff;
  --ink-soft: rgba(255,255,255,0.72);
  --rule: rgba(255,255,255,0.20);
  --paper: #101a38;
  color: #fff;
  background: linear-gradient(180deg, #16204a 0%, #0d1530 100%);
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 150px 0 130px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
  display: block;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,21,48,0.72) 0%, rgba(13,21,48,0.80) 55%, rgba(13,21,48,0.92) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-mark {
  position: absolute;
  /* Oversized and cropped by the hero. The left edge starts 48px past the
     hero copy, whose width tracks .hero-lede (52ch at its clamped size). */
  top: 50%; left: calc(50% - min(640px, 46vw) + clamp(582px, 46.2vw, 720px) + 48px);
  height: 120%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.16;
  filter: brightness(0) invert(1);
  z-index: 1;
  will-change: transform;
}
.hero-mark svg { height: 100%; width: auto; display: block; overflow: visible; }
@media (max-width: 980px) {
  .hero-mark { top: auto; left: auto; bottom: -8%; right: -12%; height: 75vh; transform: none; opacity: 0.1; }
}
.hero-copy { max-width: 720px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 22px 0 32px;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: #f0a17f; }
.hero .eyebrow { color: #f0a17f; }
.hero-lede {
  max-width: 52ch;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
/* → and ↗ are not in Timeless or Montserrat; name the fallback explicitly so
   they render the same everywhere instead of per-glyph roulette. */
.btn [aria-hidden], .pf-visit-link [aria-hidden], .contact-form-submit [aria-hidden] {
  font-family: system-ui, 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
  letter-spacing: 0;
}
.btn-solid { background: var(--ink); color: var(--paper); padding: 16px 26px; }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-ghost { color: var(--ink); padding: 16px 22px; border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.scroll-cue {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 2; pointer-events: none;
}
.scroll-cue .bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.72));
  animation: pulseDown 2.4s ease-in-out infinite;
}
@keyframes pulseDown {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 700px) {
  .hero { padding: 118px 0 84px; min-height: 0; }
  .hero h1 { margin: 18px 0 24px; font-size: clamp(38px, 10.5vw, 64px); }
  .hero-lede { font-size: 16px; margin-bottom: 30px; }
  .scroll-cue { display: none; }
}

/* Stats strip ------------------------------------------------------------- */
.stats {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 36px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }
.stat .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px; font-weight: 500;
}
.stat .v {
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.stat .v em { font-style: normal; color: var(--accent); }
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 20px; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* About ------------------------------------------------------------------- */
.about {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-image {
  aspect-ratio: 3/4;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .about-image { aspect-ratio: 4/3; } }
/* The copy runs well past the photo, so on desktop the photo holds in view
   while the text scrolls. Capped to the viewport so short screens still see
   all of it; object-fit crops the overflow. */
@media (min-width: 901px) {
  .about-media { align-self: stretch; }
  .about-image {
    position: sticky; top: calc(var(--nav-h) + 32px);
    max-height: calc(100vh - var(--nav-h) - 64px);
  }
}
.about-body h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 18ch;
}
.about-body h2 em { font-style: normal; color: var(--accent); }
.about-body p { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 56ch; margin: 0 0 24px; }
.about-body p.muted { color: var(--ink-soft); }
.about-body p:last-child { margin-bottom: 0; }

/* Portfolio --------------------------------------------------------------- */
.portfolio { background: var(--bg); position: relative; }
.portfolio-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 72px;
}
.portfolio h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0; max-width: 14ch;
}
.portfolio h2 em { font-style: normal; color: var(--accent); }
.portfolio-intro { color: var(--ink-soft); font-size: 17px; max-width: 48ch; margin: 0; }
@media (max-width: 900px) {
  .portfolio-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

.pv-sticky-grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: stretch; }
.pv-sticky-index {
  position: sticky; top: calc(var(--nav-h) + 42px);
  display: flex; flex-direction: column; gap: 18px;
  border-left: 1px solid var(--rule);
  list-style: none; margin: 0; padding: 0;
}
.pv-sticky-item {
  display: flex; gap: 14px; align-items: baseline;
  padding-left: 20px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.pv-sticky-item.on { color: var(--ink); border-left-color: var(--accent); }
.pv-sticky-item .l { font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.pv-sticky-item a { color: inherit; text-decoration: none; }
.pv-sticky-item:hover { color: var(--ink); }

.pv-sticky-panels { display: flex; flex-direction: column; }
.pv-panel { padding: 0 0 90px; border-bottom: 1px solid var(--rule); margin-bottom: 90px; }
.pv-panel:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pv-panel-logo { display: flex; align-items: flex-end; min-height: 62px; margin-bottom: 22px; }
.pv-panel-logo img { max-height: 62px; max-width: 260px; height: auto; width: auto; }
.pv-panel-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pv-panel-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.pv-panel p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 28px; max-width: 62ch; }
.pv-panel-meta {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--rule); margin-bottom: 24px;
}
.pv-panel-meta .k {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px;
}
.pv-panel-meta .v { font-size: 15px; line-height: 1.5; color: var(--ink); }

.pf-visit-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  transition: gap 0.25s ease, color 0.2s, border-color 0.2s;
}
.pf-visit-link:hover { gap: 12px; color: var(--accent-deep); border-color: var(--accent-deep); }

/* Desktop shows the name in the sticky index, so the panel heading is for
   assistive tech and search only. Below 900px the index is hidden, so the
   heading becomes visible, otherwise the panels would carry no company name. */
@media (min-width: 901px) {
  .pv-panel-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .pv-sticky-grid { grid-template-columns: 1fr; gap: 32px; }
  .pv-sticky-aside { display: none; }
  .pv-panel { padding-bottom: 44px; margin-bottom: 44px; }
  .pv-panel-logo { min-height: 48px; margin-bottom: 18px; }
  .pv-panel-logo img { max-height: 48px; max-width: 200px; }
  .pv-panel-meta { gap: 24px 32px; padding: 20px 0; margin-bottom: 20px; }
}

/* Contact ----------------------------------------------------------------- */
.contact { background: var(--ink-deep); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 400; line-height: 1; letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
}
.contact h2 em { font-style: normal; color: var(--accent); }

.contact-card { display: flex; flex-direction: column; gap: 22px; }
.contact-line { display: flex; flex-direction: column; gap: 4px; }
.contact-line .k {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.contact-line .v { font-family: var(--font-display); font-size: 24px; color: var(--paper); }
.contact-line a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-line a:hover { border-bottom-color: var(--accent); }

.contact-form {
  display: grid; gap: 22px;
  margin-top: 32px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 36px;
  border-radius: 4px;
}
@media (max-width: 700px) { .contact-form { padding: 22px; gap: 18px; } }
/* display:grid above outranks the UA [hidden] rule, so say it explicitly.
   site.js hides the form once a submission succeeds. */
.contact-form[hidden] { display: none; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .contact-form-row { grid-template-columns: 1fr; gap: 18px; } }
.contact-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.contact-field label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.contact-field label .opt { text-transform: none; letter-spacing: 0.08em; opacity: 0.6; }
.contact-field:focus-within label { color: var(--accent); }
.contact-field input,
.contact-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 8px 0 12px;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 0.25s ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--accent); }
.contact-field input:user-invalid,
.contact-field textarea:user-invalid { border-color: #e2725b; }
/* Chrome's yellow autofill wash would destroy the dark form */
.contact-field input:-webkit-autofill,
.contact-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #131a35 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-form-submit {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 18px 32px;
  border: none; border-radius: 999px;
  cursor: pointer;
  justify-self: start;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s, gap 0.25s;
}
.contact-form-submit:hover { background: var(--accent-deep); transform: translateY(-1px); gap: 16px; }
.contact-form-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.contact-form-foot {
  font-size: 12px; line-height: 1.6;
  color: rgba(255,255,255,0.42);
  margin: -4px 0 0;
}
.contact-form-foot a { color: rgba(255,255,255,0.7); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* In-page result panel. Replaces the form on success, sits under it on
   failure. The /success and /error pages cover the no-JS path. */
.contact-status {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 32px 30px;
  margin-top: 32px;
  display: flex; align-items: flex-start; gap: 18px;
  border-radius: 4px;
}
.contact-status[hidden] { display: none; }
@media (max-width: 700px) { .contact-status { padding: 24px 22px; gap: 14px; } }
.contact-status .check {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px; font-weight: 500;
}
.contact-status .body { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; }
.contact-status .body strong {
  color: #fff; display: block;
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  margin-bottom: 8px; letter-spacing: -0.015em;
}
.contact-status.ok .check { background: var(--accent); color: #fff; }
.contact-status.error {
  border-color: rgba(255, 147, 130, 0.38);
  background: rgba(255, 147, 130, 0.06);
}
.contact-status.error .check {
  background: transparent;
  border: 1px solid #ff9382;
  color: #ff9382;
}

/* Footer ------------------------------------------------------------------ */
.footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.footer .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-row { display: flex; justify-content: space-between; width: 100%; gap: 16px; flex-wrap: wrap; }
.footer-legal {
  opacity: 0.7; text-transform: none; letter-spacing: 0.04em;
  font-size: 11px; line-height: 1.6;
}
.footer a { color: inherit; }

/* Standalone pages (success / error / 404) -------------------------------- */
/* These pages are short, so pin the footer to the bottom of the viewport
   instead of leaving a band of page background below it. */
body.page-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.page-body main { flex: 1; display: flex; flex-direction: column; }
.page-narrow {
  flex: 1;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  background: var(--ink-deep);
  color: var(--paper);
}
.page-narrow .wrap { width: min(760px, 90vw); }
.page-narrow .eyebrow { color: var(--accent); }
.page-narrow h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 20px 0 24px; color: #fff;
}
.page-narrow h1 em { font-style: normal; color: var(--accent); }
.page-narrow p { color: rgba(255,255,255,0.72); font-size: 18px; line-height: 1.6; margin: 0 0 36px; max-width: 52ch; }
.page-narrow p a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--accent); }
.page-narrow p a:hover { color: var(--accent); }
.page-narrow .eyebrow { margin: 0; }
.page-narrow .btn-solid { background: var(--accent); color: #fff; }
.page-narrow .btn-solid:hover { background: var(--accent-deep); }
.page-narrow .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.page-narrow .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Scroll reveal ----------------------------------------------------------- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.in { opacity: 1; transform: none; }
/* A <noscript> block in each page also un-hides these without JS. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .scroll-cue .bar { animation: none; }
  .hero-mark { transform: translateY(-50%) !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .nav, .scroll-cue, .hero-mark, .contact-form { display: none !important; }
  body { background: #fff; color: #000; }
}
