/* ============================================================
   TCB METAL WORKS — Elevated Industrial Design System
   Palette:  ink #0B101B · steel #233D4C · ember #F27E06
   Type:     Fraunces (display serif) · Manrope (UI/body)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --ink:        #0B101B;
  --ink-2:      #101626;
  --steel:      #233D4C;
  --steel-2:    #1a2c37;
  --ember:      #F27E06;
  --ember-600:  #d96e05;
  --ember-300:  #ffb765;
  --paper:      #ffffff;
  --paper-2:    #f4f5f6;
  --paper-3:    #eceef0;
  --mist:       #e2e5e8;
  --smoke:      rgba(11, 16, 27, 0.66);
  --smoke-2:    rgba(11, 16, 27, 0.46);
  /* on dark */
  --on-dark:      rgba(255, 255, 255, 0.72);
  --on-dark-dim:  rgba(255, 255, 255, 0.50);
  --hair-dark:    rgba(255, 255, 255, 0.12);
  --hair-light:   rgba(11, 16, 27, 0.10);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* fluid scale */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.55rem, 1.30rem + 1.1vw, 2.25rem);
  --step-3:  clamp(1.95rem, 1.55rem + 1.9vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.4rem);
  --step-5:  clamp(3rem, 2.1rem + 4.4vw, 5.6rem);

  /* space (8pt) */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;    --s-7: 6rem;    --s-8: 8rem;

  --container: 75rem;      /* 1200px */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(11,16,27,.06), 0 4px 14px rgba(11,16,27,.05);
  --shadow-md: 0 10px 30px rgba(11,16,27,.10), 0 2px 8px rgba(11,16,27,.06);
  --shadow-lg: 0 30px 60px rgba(11,16,27,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --nav-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
/* Optical heading scale: leading and tracking tighten as size grows.
   text-wrap:balance evens out line lengths so no heading is left with an orphan word. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.021em; }
h2 { font-size: var(--step-3); line-height: 1.14; letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); line-height: 1.28; letter-spacing: -0.005em; }
h4 { font-size: var(--step-0); line-height: 1.38; letter-spacing: 0; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
.serif { font-family: var(--font-display); }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.dark, .section--ink {
  color: var(--on-dark);
  background-color: var(--ink);
  background-image:
    radial-gradient(70% 60% at 88% -10%, rgba(242,126,6,.10), transparent 55%),
    radial-gradient(60% 55% at 2% 108%, rgba(5,121,194,.08), transparent 55%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}
.section--ink { background-color: var(--ink-2); }
.dark h1, .dark h2, .dark h3, .dark h4, .section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.alt {
  background-color: var(--paper-2);
  background-image:
    radial-gradient(55% 45% at 100% 0%, rgba(242,126,6,.045), transparent 55%),
    linear-gradient(rgba(11,16,27,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,16,27,.016) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.grid { display: grid; gap: var(--s-4); }
.center { text-align: center; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--smoke); font-weight: 400; text-wrap: pretty; max-width: 62ch; }
.center .lead, .section-head.center .lead { margin-inline: auto; }
.dark .lead { color: var(--on-dark); }

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui); font-weight: 700;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ember); display: inline-block; }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--ember); display: inline-block; }
/* card-level label — the only sanctioned second eyebrow size */
.eyebrow--sm { font-size: .7rem; letter-spacing: .16em; gap: .45rem; }
.eyebrow--sm::before, .center .eyebrow--sm::after { width: 16px; }
.section-head { max-width: 46rem; }
.center .section-head, .section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: var(--s-2); }
.section-head p { margin-top: var(--s-3); }

/* ---------- Buttons ---------- */
.btn {
  --bd: transparent;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; min-height: 48px;
  font-family: var(--font-ui); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; border-radius: var(--radius);
  border: 1.5px solid var(--bd);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ember); color: var(--ink); --bd: var(--ember); box-shadow: 0 8px 22px rgba(242,126,6,.28); }
.btn--primary:hover { background: var(--ember-600); --bd: var(--ember-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242,126,6,.36); }
.btn--ghost { background: transparent; color: var(--ink); --bd: var(--hair-light); }
.btn--ghost:hover { --bd: var(--ink); transform: translateY(-2px); }
.dark .btn--ghost, .hero .btn--ghost, .cta .btn--ghost, .pagehero .btn--ghost, .flagship .btn--ghost { color: #fff; --bd: var(--hair-dark); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta .btn--ghost:hover, .pagehero .btn--ghost:hover, .flagship .btn--ghost:hover { --bd: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.15rem; min-height: 40px; font-size: .85rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; }
.header.is-solid { background: rgba(11,16,27,.9); backdrop-filter: blur(14px); border-bottom-color: var(--hair-dark); height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; z-index: 2; }
.brand img { height: 46px; width: auto; transition: height .4s var(--ease); }
.header.is-solid .brand img { height: 40px; }
.brand__logo-dark { display: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.5vw, 1.5rem); }
.nav__link {
  position: relative; font-weight: 600; font-size: .93rem; color: rgba(255,255,255,.86);
  padding: .4rem 0; transition: color .25s var(--ease); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* dropdown */
.nav__has-sub { position: relative; }
.nav__sub-toggle { display: inline-flex; align-items: center; gap: .3rem; }
.nav__chev { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.nav__has-sub:hover .nav__chev, .nav__has-sub:focus-within .nav__chev { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 210px; background: var(--ink-2); border: 1px solid var(--hair-dark); border-radius: var(--radius);
  padding: .5rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; z-index: 120;
}
.nav__has-sub::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }  /* hover bridge */
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__sub a { display: flex; align-items: center; padding: .6rem .8rem; border-radius: 3px; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.82); transition: background .2s var(--ease), color .2s var(--ease); }
.nav__sub a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); margin-right: .6rem; opacity: 0; transition: opacity .2s var(--ease); flex: none; }
.nav__sub a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__sub a:hover::before { opacity: 1; }

.header__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav .header__phone { display: none; }   /* nav copy only appears in mobile drawer */
.header__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; font-size: .95rem; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--ember); }

/* hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; z-index: 120; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1){ top: 15px; } .nav-toggle span:nth-child(2){ top: 21px; } .nav-toggle span:nth-child(3){ top: 27px; }
body.nav-open .nav-toggle span:nth-child(1){ top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; background: rgba(6,9,15,.6); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; z-index: 90; }
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,27,.72) 0%, rgba(11,16,27,.55) 40%, rgba(11,16,27,.82) 100%),
    radial-gradient(120% 90% at 15% 30%, rgba(11,16,27,.25), rgba(11,16,27,.85));
}
.hero__grain { position: absolute; inset: 0; z-index: 1; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
/* Ambient welding sparks — canvas injected by JS, blurred so it never fights the type.
   z-index 1: above the grain/photo, below the content (z-index 2). */
.hero__sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; filter: blur(2px); mix-blend-mode: screen; opacity: .82; }
@media (max-width: 860px) { .hero__sparks { opacity: .6; filter: blur(1.6px); } }
@media (prefers-reduced-motion: reduce) { .hero__sparks { display: none !important; } }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vh, 7rem); max-width: 60rem; }
.hero .eyebrow { color: var(--ember-300); }
.hero .eyebrow::before { background: var(--ember-300); }
.hero h1 { color: #fff; font-size: var(--step-5); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; margin-top: var(--s-3); }
.hero h1 em { font-style: italic; color: var(--ember-300); }
.hero__sub { color: var(--on-dark); font-size: var(--step-1); font-weight: 400; margin-top: var(--s-4); max-width: 42rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--hair-dark); }
.hero__trust li { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: rgba(255,255,255,.9); font-size: .95rem; }
.hero__trust svg { width: 20px; height: 20px; color: var(--ember); flex: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 2; display: grid; place-items: center; gap: .5rem; color: var(--on-dark-dim); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--ember), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{ transform: scaleY(0); transform-origin: top; } 45%{ transform: scaleY(1); transform-origin: top; } 55%{ transform: scaleY(1); transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }
@media (max-height: 880px), (max-width: 860px) { .scroll-cue { display: none; } }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.pagehero { position: relative; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(3rem, 4vw, 5rem); overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px; }
.pagehero::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: radial-gradient(90% 120% at 85% 0%, rgba(242,126,6,.16), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(5,121,194,.10), transparent 60%);
  animation: auroraDrift 20s ease-in-out infinite alternate; }
.pagehero__grain { position:absolute; inset:0; opacity:.4; mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); }
.pagehero__inner { position: relative; z-index: 2; max-width: 52rem; }
.pagehero h1 { color: #fff; margin-top: var(--s-2); font-size: var(--step-4); }
.pagehero p { color: var(--on-dark); margin-top: var(--s-3); font-size: var(--step-1); line-height: 1.55; font-weight: 400; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--on-dark-dim); font-weight: 600; }
.breadcrumb a:hover { color: var(--ember-300); }
.breadcrumb span { color: var(--ember); }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.stat { padding: var(--s-4) var(--s-3); border-left: 2px solid var(--hair-dark); }
.stat:first-child { border-left-color: var(--ember); }
.stat__num { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .u { color: var(--ember); }
.stat__label { margin-top: .6rem; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-dim); }

/* ============================================================
   FEATURE / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--media-right .split__media { order: 2; }
.split__media { position: relative; }
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.frame--tall img { aspect-ratio: 4/4.6; }
.split__media .badge {
  position: absolute; left: -1.2rem; bottom: -1.2rem; background: var(--ember); color: var(--ink);
  padding: 1.1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 15rem;
}
.split__media .badge b { font-family: var(--font-display); font-size: 1.8rem; display: block; line-height: 1.05; }
.split__media .badge span { display: block; margin-top: .25rem; font-size: .82rem; font-weight: 700; letter-spacing: .03em; line-height: 1.3; }
.tick-list { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.tick-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.tick-list .ic { width: 26px; height: 26px; border-radius: 50%; background: rgba(242,126,6,.14); color: var(--ember); display: grid; place-items: center; flex: none; margin-top: 2px; }
.dark .tick-list .ic { background: rgba(242,126,6,.18); }
.tick-list .ic svg { width: 15px; height: 15px; }
.tick-list b { font-weight: 700; }
.reasons { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.reason { padding: var(--s-3); border: 1px solid var(--hair-light); border-radius: var(--radius); background: var(--paper); transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.reason:hover { border-color: rgba(242,126,6,.5); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
/* card sub-headings — one rule instead of 11 inline font overrides */
.reason b, .reason__title {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.005em;
  color: var(--ink); text-wrap: balance;
}
.reason .eyebrow + b, .reason .eyebrow + .reason__title { margin-top: .45rem; }
.reason p { margin-top: .35rem; color: var(--smoke); font-size: .95rem; line-height: 1.62; }

/* ============================================================
   EXPERTISE / PROCESS (numbered)
   ============================================================ */
.expertise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--hair-dark); border-radius: var(--radius-lg); overflow: hidden; }
.expertise__item { padding: var(--s-4); border-right: 1px solid var(--hair-dark); border-bottom: 1px solid var(--hair-dark); position: relative; transition: background .35s var(--ease); }
.expertise__item:hover { background: rgba(255,255,255,.03); }
.expertise__num { font-family: var(--font-display); font-size: 1rem; color: var(--ember); font-variant-numeric: tabular-nums; }
.expertise__item p { color: var(--on-dark); margin-top: .6rem; font-size: .95rem; line-height: 1.62; }
.expertise__item h3 { margin-top: var(--s-2); color: #fff; font-size: 1.2rem; }
.expertise__item::after { content:""; position:absolute; left:0; top:0; width:2px; height:0; background: var(--ember); transition: height .4s var(--ease); }
.expertise__item:hover::after { height: 100%; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-3); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--hair-light); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(242,126,6,.4); }
.card[id] { scroll-margin-top: 90px; }
.card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
/* art-direction: keep the subject in frame when a wide image is cover-cropped */
.card__media img.obj-left { object-position: 18% 50%; }
.card__media img.obj-right { object-position: 78% 50%; }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(11,16,27,.55)); }
.card__tag { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: rgba(11,16,27,.72); backdrop-filter: blur(6px); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 3px; }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body h3 { font-size: 1.25rem; }
.card__body p { color: var(--smoke); font-size: .93rem; line-height: 1.55; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; color: var(--ember-600); padding-top: .6rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.project { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.project::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(11,16,27,.1) 25%, rgba(11,16,27,.55) 60%, rgba(11,16,27,.92)); transition: background .4s var(--ease); }
.project:hover img { transform: scale(1.06); }
.project__body { padding: var(--s-4); transform: translateY(8px); transition: transform .4s var(--ease); }
.project:hover .project__body { transform: translateY(0); }
.project__body .tag { color: var(--ember-300); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.project__body h3 { color: #fff; margin: .5rem 0 .6rem; }
.project__body p { color: rgba(255,255,255,.8); font-size: .92rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease); }
.project:hover .project__body p { max-height: 8rem; opacity: 1; margin-bottom: .8rem; }
.project__link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .88rem; color: #fff; }
.project__link svg { width: 16px; height: 16px; color: var(--ember); transition: transform .3s var(--ease); }
.project:hover .project__link svg { transform: translateX(4px); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { position: relative; max-width: 52rem; margin-inline: auto; }
.quote { text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--ember); opacity: .5; }
.quote__text { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; line-height: 1.42; letter-spacing: -0.008em; color: #fff; margin-top: var(--s-2); text-wrap: balance; }
.quote__by { margin-top: var(--s-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--ember); }
.quote__stars { display: flex; justify-content: center; gap: .2rem; margin-top: var(--s-3); color: var(--ember); }
.quote__stars svg { width: 18px; height: 18px; }
/* All slides stacked in one grid cell → the track is always as tall as the LONGEST
   testimonial and never resizes as quotes rotate. */
.quotes__track { display: grid; }
.quotes__slide { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.quotes__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quotes__dots { display: flex; justify-content: center; gap: .6rem; margin-top: var(--s-5); }
.quotes__dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--hair-dark); transition: background .3s var(--ease), width .3s var(--ease); }
.quotes__dots button.is-active { background: var(--ember); width: 26px; border-radius: 5px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta { position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px; }
.cta__bg { position: absolute; inset: 0; z-index: 0; opacity: .14; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background: radial-gradient(120% 90% at 50% 130%, transparent 45%, rgba(11,16,27,.4)); }
.cta__inner { z-index: 3; }

/* Flowing gradient mesh — lightweight, brand-fit adaptation of the animated-gradient concept.
   Injected into .cta by JS. Pure CSS (no SVG goo filter, no blend on huge areas), reduced-motion safe. */
.gradient-flow { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.gradient-flow span { position: absolute; display: block; border-radius: 50%; filter: blur(52px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.gradient-flow .g1 { width: 58%; aspect-ratio: 1; left: 6%; top: -20%; background: radial-gradient(circle at center, rgba(242,126,6,.7), transparent 62%); animation: flowY 15s ease-in-out infinite; }
.gradient-flow .g2 { width: 52%; aspect-ratio: 1; right: 0%; bottom: -24%; background: radial-gradient(circle at center, rgba(124,151,168,.55), transparent 62%); animation: flowX 20s ease-in-out infinite; }
.gradient-flow .g3 { width: 46%; aspect-ratio: 1; left: -14%; top: 28%; background: radial-gradient(circle at center, rgba(255,183,101,.5), transparent 60%); animation: flowOrbit 26s linear infinite; }
/* cursor-following glow — moved by JS (lerped) */
.gradient-flow .gp { width: 55%; aspect-ratio: 1; left: 22.5%; top: 22.5%; background: radial-gradient(circle at center, rgba(242,126,6,.55), transparent 58%); opacity: .6; transition: opacity .4s var(--ease); }
@keyframes flowY { 0%,100% { transform: translateY(-16%); } 50% { transform: translateY(22%); } }
@keyframes flowX { 0%,100% { transform: translateX(-15%) translateY(-8%); } 50% { transform: translateX(17%) translateY(13%); } }
@keyframes flowOrbit { from { transform: rotate(0deg) translateX(10%); } to { transform: rotate(360deg) translateX(10%); } }
@media (max-width: 700px) { .gradient-flow span { filter: blur(34px); opacity: .42; } }

/* ---------- "Machined metal" sheen — a precision specular highlight gliding across a
   brushed-steel finish, the way light travels over a turned or milled part. Signifies
   machining expertise. Transform-only (GPU-composited), reduced-motion aware, sits BEHIND
   text so contrast is never affected, clipped by each band's overflow:hidden (no CLS). ---------- */
.pagehero::after, .cta::after, .footer::after {
  content: ""; position: absolute; top: -25%; bottom: -25%; left: 0; width: 55%;
  pointer-events: none;
  background: linear-gradient(100deg,
      transparent 0%,
      rgba(214,228,238,.05) 40%,     /* cool steel specular edge */
      rgba(255,183,101,.07) 50%,     /* ember heat core (cutting/grinding glow) */
      rgba(214,228,238,.05) 60%,
      transparent 100%);
  transform: translateX(-140%) skewX(-9deg);
  animation: machineSheen 8.5s cubic-bezier(.62,.03,.35,1) infinite;
  will-change: transform;
}
.pagehero::after { z-index: 1; }   /* below .pagehero__inner (z-index:2) */
.cta::after      { z-index: 2; }   /* below .cta__inner (z-index:3), above gradient-flow */
.footer          { position: relative; overflow: hidden; isolation: isolate; }
.footer::after   { z-index: -1; opacity: .85; }  /* behind footer text, above footer bg */
@keyframes machineSheen {
  0%, 12%   { transform: translateX(-140%) skewX(-9deg); }
  88%, 100% { transform: translateX(330%)  skewX(-9deg); }
}
@media (max-width: 700px) {
  .pagehero::after, .cta::after, .footer::after { width: 82%; animation-duration: 10s; }
}
.cta__inner { position: relative; z-index: 2; text-align: center; max-width: 46rem; margin-inline: auto; }
.cta h2 { color: #fff; font-size: var(--step-4); }
.cta p { color: var(--on-dark); margin-top: var(--s-3); font-size: var(--step-1); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.info-card { display: grid; gap: var(--s-3); }
.info-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); align-items: start; padding: var(--s-3); border: 1px solid var(--hair-light); border-radius: var(--radius); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.info-row:hover { border-color: rgba(242,126,6,.45); transform: translateX(4px); }
.info-row .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--ink); color: var(--ember); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .k { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--smoke-2); margin-bottom: 3px; }
.info-row .v { display: block; font-weight: 600; color: var(--ink); font-size: 1.02rem; word-break: break-word; }
.info-row a.v:hover { color: var(--ember-600); }

.form { display: grid; gap: var(--s-3); background: var(--paper); border: 1px solid var(--hair-light); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form .eyebrow + h3 { margin-top: .6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.field label .req { color: var(--ember); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: .85rem 1rem; min-height: 48px;
  border: 1.5px solid var(--mist); border-radius: var(--radius); background: var(--paper-2);
  color: var(--ink); transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: #fff; box-shadow: 0 0 0 4px rgba(242,126,6,.14); }
.field .help { font-size: .8rem; color: var(--smoke-2); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d9534f; }
.field .err { font-size: .8rem; color: #d9534f; font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.form__status { font-weight: 600; font-size: .95rem; padding: .8rem 1rem; border-radius: var(--radius); display: none; }
.form__status.ok { display: block; background: rgba(92,184,92,.12); color: #2f7d32; border: 1px solid rgba(92,184,92,.4); }
.form__status.bad { display: block; background: rgba(217,83,79,.1); color: #b53c38; border: 1px solid rgba(217,83,79,.4); }

/* map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hair-light); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-2); color: var(--on-dark); padding-top: var(--s-7); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--s-5); }
.footer__brand img { height: 64px; margin-bottom: var(--s-3); }
.footer__brand p { color: var(--on-dark); font-size: .95rem; max-width: 22rem; }
.footer__social { display: flex; gap: .7rem; margin-top: var(--s-3); }
.footer__social a { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--hair-dark); display: grid; place-items: center; color: #fff; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.footer__social a:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer h3 { color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: .8rem; line-height: 1.38; letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer__links { display: grid; gap: .7rem; }
.footer__links a { color: var(--on-dark); font-size: .95rem; transition: color .25s var(--ease), padding .25s var(--ease); }
.footer__links a:hover { color: var(--ember-300); padding-left: 5px; }
.footer__news p { font-size: .92rem; color: var(--on-dark); margin-bottom: var(--s-3); }
.footer__news form { display: flex; gap: .5rem; }
.footer__news input { flex: 1; min-width: 0; padding: .8rem 1rem; min-height: 46px; border: 1px solid var(--hair-dark); background: rgba(255,255,255,.04); border-radius: var(--radius); color: #fff; font: inherit; font-size: .9rem; }
.footer__news input::placeholder { color: var(--on-dark-dim); }
.footer__news input:focus { outline: none; border-color: var(--ember); }
.footer__news button { flex: none; }
.footer__bottom { margin-top: var(--s-6); padding-block: var(--s-3); border-top: 1px solid var(--hair-dark); display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; align-items: center; font-size: .85rem; color: var(--on-dark-dim); }
.footer__bottom a:hover { color: var(--ember-300); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); will-change: transform, opacity; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   FLAGSHIP SHOWCASE (homepage featured Zoo Enclosures band)
   ============================================================ */
.flagship { position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); min-height: 30rem; display: flex; align-items: center; }
.flagship__media { position: absolute; inset: 0; z-index: -2; }
.flagship__media img { width: 100%; height: 100%; object-fit: cover; }
.flagship::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,16,27,.95) 0%, rgba(11,16,27,.82) 46%, rgba(11,16,27,.5) 100%),
              radial-gradient(120% 110% at 0% 0%, rgba(242,126,6,.18), transparent 55%); }
.flagship__content { max-width: 42rem; padding: clamp(2rem, 5vw, 4.5rem); }
.flagship__content h2 { color: #fff; margin-top: var(--s-3); font-size: var(--step-3); }
.flagship__content > p { color: var(--on-dark); margin-top: var(--s-3); font-size: var(--step-1); line-height: 1.55; max-width: 34rem; }
.flagship__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(242,126,6,.15); border: 1px solid rgba(242,126,6,.45); color: var(--ember-300); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px; }
.flagship__badge svg { width: 15px; height: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s-4); }
.chips li { font-size: .85rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.07); border: 1px solid var(--hair-dark); padding: .45rem .85rem; border-radius: var(--radius); }
.flagship__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.card__tag--flag { background: var(--ember); color: var(--ink); }

/* ============================================================
   EQUIPMENT GALLERY
   ============================================================ */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-3); }
.equip { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.equip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.equip:hover img { transform: scale(1.06); }
.equip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,16,27,.35) 62%, rgba(11,16,27,.9)); }
.equip__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1.2rem; color: #fff; }
.equip__cap span { display: block; color: var(--ember-300); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.equip__cap b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.005em; margin-top: .25rem; display: block; text-wrap: balance; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { display: grid; gap: .8rem; max-width: 52rem; margin-inline: auto; }
.faq details { border: 1px solid var(--hair-light); border-radius: var(--radius); background: var(--paper); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq details[open] { border-color: rgba(242,126,6,.4); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(242,126,6,.14); color: var(--ember); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary .faq__ic { transform: rotate(45deg); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--smoke); font-size: .97rem; line-height: 1.65; }
.faq__body a { color: var(--ember-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   ARTICLES — featured post, placeholder cards
   ============================================================ */
.feature-post {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  background: var(--paper); border: 1px solid var(--hair-light); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.feature-post:hover { box-shadow: var(--shadow-md); border-color: rgba(242,126,6,.4); transform: translateY(-4px); }
.feature-post__media { position: relative; overflow: hidden; min-height: 320px; }
.feature-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.feature-post:hover .feature-post__media img { transform: scale(1.06); }
.feature-post__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--ember); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 3px; }
.feature-post__body { padding: clamp(1.75rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1.15rem; }
/* multi-line serif card title needs real leading — 1.18 left only ~5px between lines */
.feature-post__body h2 { font-size: var(--step-2); line-height: 1.28; letter-spacing: -0.012em; margin-top: .15rem; }
.feature-post__body p { color: var(--smoke); line-height: 1.7; max-width: 52ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .82rem; font-weight: 600; color: var(--smoke-2); }
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta svg { width: 14px; height: 14px; color: var(--ember); }

/* Reusable placeholder post card (for future articles) */
.card--placeholder { border-style: dashed; border-color: var(--mist); background: transparent; box-shadow: none; }
.card--placeholder:hover { transform: none; box-shadow: none; border-color: var(--mist); }
.card--placeholder .card__media { aspect-ratio: 16/11; background: var(--paper-3); display: grid; place-items: center; }
.card--placeholder .card__media::after { display: none; }
.card--placeholder .ph-icon { width: 34px; height: 34px; color: var(--smoke-2); opacity: .5; }
.card--placeholder .ph-cat { display: inline-block; width: 5.5rem; height: .95rem; border-radius: 3px; background: var(--paper-3); }
.card--placeholder .ph-line { display: block; height: .85rem; border-radius: 3px; background: var(--paper-3); }
.card--placeholder h3 { color: var(--smoke-2); font-size: 1.15rem; }
.card--placeholder p { color: var(--smoke-2); font-size: .9rem; }
.card--placeholder .card__link { color: var(--smoke-2); cursor: not-allowed; }

/* ============================================================
   ARTICLE PAGE — layout, sticky TOC, long-form prose
   ============================================================ */
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin-top: var(--s-4); }
.article-meta span { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--on-dark-dim); }
.article-meta strong { color: #fff; font-weight: 700; }
.article-meta svg { width: 16px; height: 16px; color: var(--ember); flex: none; }

.article-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }

.toc { position: sticky; top: 96px; border-left: 1px solid var(--hair-light); padding-left: 1.25rem; }
.toc__title { font-family: var(--font-ui); font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke-2); margin-bottom: var(--s-2); }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: .15rem; margin: 0; padding: 0; }
.toc li { counter-increment: toc; }
.toc a { display: block; font-size: .88rem; font-weight: 600; line-height: 1.4; color: var(--smoke); padding: .45rem .5rem .45rem 0; border-left: 2px solid transparent; margin-left: -1.3rem; padding-left: 1.3rem; transition: color .25s var(--ease), border-color .25s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ember); }

/* long-form prose */
/* lead / inline article image */
.article-figure { margin: 0 0 1.25rem; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--paper-2); }
.article-figure figcaption { margin-top: .8rem; padding-left: .8rem; border-left: 2px solid var(--ember); font-size: .88rem; line-height: 1.6; color: var(--smoke-2); text-wrap: pretty; }

.prose { max-width: 70ch; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.2em; }
/* Both fluid, so the H2:H3 size ratio stays ~1.35–1.5 at every width
   (a fixed H3 collapsed to within 15% of the H2 on mobile, flattening hierarchy). */
.prose h2 { font-size: clamp(1.72rem, 1.30rem + 1.2vw, 2.25rem); line-height: 1.18; letter-spacing: -0.014em; margin-top: 2.9rem; margin-bottom: .2rem; scroll-margin-top: 100px; }
.prose h3 { font-size: clamp(1.26rem, 1.10rem + 0.5vw, 1.5rem); line-height: 1.28; letter-spacing: -0.004em; margin-top: 2.1rem; margin-bottom: .1rem; scroll-margin-top: 100px; }
.prose p { color: var(--smoke); line-height: 1.78; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose ul { display: grid; gap: .55rem; padding: 0; margin-top: 1em; }
.prose li { position: relative; padding-left: 1.5rem; color: var(--smoke); line-height: 1.7; }
.prose li::before { content: ""; position: absolute; left: .25rem; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.prose a { color: var(--ember-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }

/* key-takeaway callout */
.callout { background: var(--paper-2); border: 1px solid var(--hair-light); border-left: 3px solid var(--ember); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.85rem); }
.callout h2 { margin: 0 0 .5rem !important; font-size: 1.3rem !important; }
.callout p { margin: 0; color: var(--smoke); }

/* prose comparison tables (design-system, mobile-safe scroll) */
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hair-light); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .96rem; }
.prose thead th { background: var(--paper-2); color: var(--ink); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: .72rem .9rem; border-bottom: 1px solid var(--hair-light); vertical-align: top; line-height: 1.55; color: var(--smoke); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td strong { color: var(--ink); }
.prose caption { caption-side: bottom; font-size: .85rem; color: var(--smoke-2); padding-top: .6rem; text-align: left; }

/* checklist (checkmark bullets, overrides the dot) */
.prose ul.checklist { gap: .6rem; }
.prose ul.checklist li { padding-left: 1.9rem; }
.prose ul.checklist li::before { content: "\2713"; background: none; width: auto; height: auto; left: 0; top: 0; border-radius: 0; color: var(--ember); font-weight: 800; font-size: 1.05rem; line-height: 1.7; }

/* inline soft CTA */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; justify-content: space-between; background: var(--paper-2); border: 1px solid var(--hair-light); border-left: 3px solid var(--ember); border-radius: var(--radius); padding: 1rem 1.25rem; }
.cta-inline p { margin: 0 !important; color: var(--ink) !important; font-weight: 600; line-height: 1.5; }
.cta-inline a { white-space: nowrap; font-weight: 700; }

/* references */
.refs { display: grid; gap: .7rem; padding: 0; margin-top: 1rem; }
.refs li { position: relative; padding-left: 1.5rem; font-size: .92rem; line-height: 1.6; color: var(--smoke-2); }
.refs li::before { content: ""; position: absolute; left: .25rem; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--mist); }

/* ============================================================
   PREMIUM MOTION & DEPTH
   ============================================================ */
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3.5%, -3%, 0) scale(1.12); }
}

/* Hero — slow drifting coloured glow over the photo for depth */
.hero::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(38% 40% at 28% 32%, rgba(242,126,6,.20), transparent 62%),
    radial-gradient(34% 36% at 76% 62%, rgba(5,121,194,.16), transparent 62%);
  filter: blur(26px); mix-blend-mode: screen; opacity: .75;
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

/* Scroll progress bar (injected by JS) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--ember), var(--ember-300));
  box-shadow: 0 0 10px rgba(242,126,6,.5); will-change: transform;
}

/* Premium sheen sweep on primary buttons */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: translateX(-260%) skewX(-18deg); pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(420%) skewX(-18deg); transition: transform .7s var(--ease); }

/* Footer — subtle warm depth */
.footer {
  background-image: radial-gradient(60% 80% at 90% 0%, rgba(242,126,6,.06), transparent 55%);
}

/* Cards & tiles — a touch smoother/deeper on hover */
.card, .equip, .project, .reason, .info-row { will-change: transform; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer__brand { grid-column: 1 / -1; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project:nth-child(3) { grid-column: 1 / -1; }

  /* nav → drawer */
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px);
    background: var(--ink-2); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--nav-h) + 1rem) var(--s-4) var(--s-4);
    transform: translateX(100%); transition: transform .45s var(--ease); z-index: 110; gap: var(--s-3);
    border-left: 1px solid var(--hair-dark); overflow-y: auto;
  }
  body.nav-open .nav { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--hair-dark); }
  .nav__link::after { display: none; }
  .nav .header__phone { display: inline-flex; margin-top: var(--s-2); }
  .nav .btn { justify-content: center; }
  /* mobile submenu (accordion) */
  .nav__has-sub { position: static; }
  .nav__sub-toggle { justify-content: space-between; }
  .nav__has-sub::after { display: none; }
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0 1rem; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav__has-sub.is-open .nav__sub { max-height: 480px; }
  .nav__has-sub.is-open .nav__chev { transform: rotate(180deg); }
  .nav__sub a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--hair-dark); }
}
@media (max-width: 1024px) {
  /* Article: TOC stacks above content as a bordered box */
  .article-wrap { grid-template-columns: 1fr; gap: var(--s-4); }
  .toc { position: static; border-left: 0; border: 1px solid var(--hair-light); border-radius: var(--radius); padding: 1.25rem; background: var(--paper-2); }
  .toc a { margin-left: 0; padding-left: .8rem; }
  .prose { max-width: none; }
}
@media (max-width: 860px) {
  .feature-post { grid-template-columns: 1fr; }
  .feature-post__media { min-height: 0; aspect-ratio: 16/10; }
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .split__media .badge { left: 1rem; bottom: 1rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .flagship::after { background: linear-gradient(180deg, rgba(11,16,27,.72) 0%, rgba(11,16,27,.9) 100%); }
  .flagship { min-height: 0; }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(3) { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero__trust { gap: var(--s-2); }
  .header__cta .btn--primary { padding: .7rem 1.05rem; min-height: 42px; font-size: .85rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__media img { height: 100% !important; transform: none !important; }
  .scroll-cue span { animation: none; }
  /* machined sheen: rest as a still diagonal highlight instead of sweeping */
  .pagehero::after, .cta::after, .footer::after { animation: none !important; transform: translateX(52%) skewX(-9deg); }
}
