/* ==========================================================================
   JetAlum LLC — jetalum.com
   Umbrella site for Earthwise of Kansas City + Extrusia.
   Tokens derive from the JetAlum logo (crimson + charcoal). The two brand
   accents are the REAL brand colors — Earthwise from references/brand/,
   Extrusia from erp-platform/brand/. Do not re-derive them per page.
   ========================================================================== */

:root {
  /* JetAlum */
  --red:        #c8102e;
  --red-hi:     #e11b36;
  --red-deep:   #8c0b20;
  --charcoal:   #262b35;
  --ink:        #191d24;
  --ground:     #0b0d11;   /* dark page ground */
  --panel:      #141821;   /* dark cards / rails */
  --panel-2:    #1c212c;
  --paper:      #ffffff;
  --paper-2:    #f4f6f8;
  --body:       #4a5260;
  --body-dark:  #aeb7c4;   /* body text on dark */
  --line:       #e3e7ec;
  --line-dark:  rgba(255,255,255,.12);

  /* Brand accents — Earthwise / Extrusia */
  --ew-green:   #8dc63f;
  --ew-green-d: #6fa32c;
  --ew-blue:    #29abe2;
  --ew-blue-d:  #1b87b5;
  --ex-gold:    #f2b01e;
  --ex-gold-d:  #8a5d00;
  /* Ascend Technology — the partner vehicle alongside JetAlum. Its own blue, so
     it never reads as an Earthwise or Extrusia sub-brand. */
  --asc-blue:   #2f74e0;
  --asc-blue-d: #1f57c3;

  --display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --sans:    'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wordmark:'Montserrat', 'Century Gothic', 'Trebuchet MS', sans-serif;

  --shadow:   0 2px 4px rgba(15,20,30,.06), 0 12px 32px rgba(15,20,30,.08);
  --shadow-l: 0 4px 10px rgba(15,20,30,.10), 0 24px 60px rgba(15,20,30,.14);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

.container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.06;
  margin: 0 0 .6rem;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem);   text-transform: uppercase; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; }
p  { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; line-height: 1.65; }
.small { font-size: .92rem; }
.muted { color: var(--body); }

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .85rem;
}
.rule { width: 68px; height: 4px; background: var(--red); border: 0; margin: 1.1rem 0 1.4rem; }
.rule--center { margin-inline: auto; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4rem) 0; }
.section--paper { background: var(--paper-2); }
.section-head { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- dark surfaces ---------- */
.dark { background: var(--ground); color: var(--body-dark); }
/* Consecutive dark sections read as one surface, so their facing paddings stack
   into dead space. Collapse the boundary and let the upper section's bottom
   padding do the separating. */
section.dark + section.dark { padding-top: 0; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .muted { color: var(--body-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 700;
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  padding: .95rem 1.6rem; border: 2px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background .16s, color .16s, border-color .16s, transform .16s;
  white-space: nowrap;
}
.btn::after { content: "\203A"; font-size: 1.25em; line-height: 0; transform: translateY(-.04em); }
.btn--red   { background: var(--red); color: #fff; }
.btn--red:hover   { background: var(--red-hi); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark  { background: var(--charcoal); color: #fff; }
.btn--dark:hover  { background: var(--ink); color: #fff; }
.btn--green { background: var(--ew-green-d); color: #fff; }
.btn--green:hover { background: #5f8f22; color: #fff; }
.btn--blue  { background: #1c4e8a; color: #fff; }
.btn--blue:hover  { background: #163f70; color: #fff; }
/* Extrusia's brand is gold ON DARK — a solid gold fill reads as brown, so the
   button is the dark panel with the gold as the accent. */
.btn--gold  { background: var(--charcoal); color: var(--ex-gold); border-color: var(--charcoal); }
.btn--gold:hover  { background: var(--ink); color: #ffe08a; border-color: var(--ex-gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.btn-row--center { justify-content: center; }

/* ---------- wordmark lockup ---------- */
.wm { display: inline-flex; align-items: center; gap: .55rem; }
.wm img { height: 46px; width: auto; }
.wm-text {
  font-family: var(--wordmark);
  font-weight: 800; font-style: italic;
  font-size: 1.85rem; line-height: 1; letter-spacing: -.02em;
  color: var(--charcoal);
}
.wm-text .jet { color: var(--red); }
.wm-llc {
  font-family: var(--wordmark); font-weight: 700; font-style: normal;
  font-size: .62rem; letter-spacing: .1em; color: var(--charcoal);
  align-self: flex-end; padding-bottom: .28rem;
}
.on-dark .wm-text, .on-dark .wm-llc { color: #fff; }

/* ---------- header ----------
   The header is LIGHT on purpose. The real JetAlum lockup is artwork on a white
   ground with no transparency, and that white cannot be keyed out: the fan glass
   and the gaps between the wedges are near-white too, so knocking them through
   turns them dark and breaks the mark. Rather than invert the logo or float it
   in a white sticker on a dark bar, the bar itself is light, and the hero
   directly beneath stays dark so the page keeps its contrast. */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.site-header.is-stuck {
  background: #fff;
  box-shadow: 0 8px 30px rgba(15,20,30,.12);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
  transition: min-height .25s;
}
.site-header.is-stuck .container { min-height: 68px; }
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img {
  height: 62px; width: auto; display: block;
  transition: height .25s;
}
.site-header.is-stuck .logo img { height: 48px; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav > a, .nav-item > button {
  font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .7rem .95rem; border-bottom: 3px solid transparent;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav > a:hover, .nav-item > button:hover { color: var(--red); }
.nav > a.is-active, .nav-item.is-active > button { color: var(--red); border-bottom-color: var(--red); }
.nav-item { position: relative; }
.nav-item > button::after {
  content: ""; width: 6px; height: 6px; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-l); padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: .6rem 1.2rem;
  font-size: .95rem; color: var(--ink); letter-spacing: 0; text-transform: none;
}
.dropdown a:hover { background: var(--paper-2); color: var(--red); }
.dropdown a small { display: block; font-size: .78rem; color: var(--body); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .15s;
}
/* hamburger folds into an X while the drawer is open */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* the drawer's contact block; hidden on desktop, where the footer covers it */
.nav-extra { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ground); color: #fff; overflow: hidden; }
/* ambient light: a warm wash behind the copy, a cool one behind the artwork */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 70% at 6% 34%, rgba(200,16,46,.22), transparent 62%),
    radial-gradient(46% 60% at 84% 62%, rgba(41,171,226,.12), transparent 65%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .38;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ground) 8%, rgba(11,13,17,.86) 42%, rgba(11,13,17,.35) 100%);
}
.hero .container { position: relative; padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(5rem, 11vw, 8.5rem); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .sub {
  font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600; color: #fff; line-height: 1.25; max-width: 30ch; margin: 0 0 1.2rem;
}
.hero p { max-width: 56ch; color: #c3cbd6; }
.hero .rule { margin: 1.4rem 0 1.6rem; }

/* ---------- brand cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.brand-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
/* accent bar wipes across the top on hover — brand colour, not JetAlum red */
.brand-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 4px; width: 100%;
  transform: scaleX(0); transform-origin: left; z-index: 2;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.brand-card--ew::before { background: linear-gradient(90deg, var(--ew-green), var(--ew-blue)); }
.brand-card--ex::before { background: linear-gradient(90deg, #ffe08a, var(--ex-gold), #7a4a03); }
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: #d3dae2; }
.brand-card:hover::before { transform: scaleX(1); }
.brand-card:hover .brand-card__art img { transform: scale(1.05); }
.brand-card__art img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.brand-card__top { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.brand-card__intro { padding: 2rem 1.9rem 1.4rem; }
.brand-card__art { background: var(--paper-2); }
.brand-card__art img { width: 100%; height: 100%; object-fit: cover; min-height: 250px; }
.brand-card__logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; min-height: 62px; }
.brand-card__logo img { height: 62px; width: auto; }
.brand-card__tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--body); margin: 0;
}
.brand-card__body { padding: 0 1.9rem 1.4rem; flex: 1; }
.brand-card__body h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.3rem; }
.brand-card--ew h3 { color: var(--ew-green-d); }
.brand-card--ex h3 { color: var(--ex-gold-d); }
.brand-card__pills {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  border-top: 1px solid var(--line); padding: 1.5rem 1.9rem;
}
.pill h5 {
  font-family: var(--sans); font-size: .88rem; font-weight: 700;
  margin: 0 0 .2rem; color: var(--ink);
}
.brand-card--ew .pill h5 { color: var(--ew-green-d); }
.brand-card--ex .pill h5 { color: var(--ex-gold-d); }
.pill p { font-size: .84rem; line-height: 1.45; margin: 0; }
.pill-mark { font-size: 1.35rem; line-height: 1; margin-bottom: .45rem; display: block; }
.brand-card__cta { padding: 0 1.9rem 1.9rem; }
.brand-card__cta .btn { width: 100%; justify-content: center; }

/* The Extrusia wordmark, typeset with the real miter mark standing in for the X.
   The mark's blades fill only ~64% of its viewBox, so it is sized 1.42x and the
   surrounding whitespace is pulled back in with negative margins — otherwise it
   reads as three words instead of one. */
.ex-wordmark {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .045em; font-size: 2rem; line-height: 1; color: var(--ink);
}
.ex-wordmark img { height: 1.42em; width: auto; margin: 0 -.30em; }
.on-dark .ex-wordmark { color: #fff; }

/* ---------- timeline (homepage, horizontal) ---------- */
.timeline-wrap { position: relative; }
/* the rail runs behind the cards; --tl-fill is driven by scroll in site.js */
.timeline-rail {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--line-dark); overflow: hidden;
}
.timeline-rail::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--tl-fill, 0%); background: var(--red);
  transition: width .3s linear;
}
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: stretch; padding-top: 2.4rem; }
.tl-step { position: relative; padding: 0 1.05rem; display: flex; }
.tl-step::after {
  content: ""; position: absolute; top: -2.55rem; left: 50%; width: 9px; height: 9px;
  margin-left: -4.5px; border-radius: 50%; background: var(--ground);
  border: 2px solid #3a4250; transition: border-color .3s, background .3s, transform .3s;
}
.tl-step.is-past::after { border-color: var(--red); background: var(--red); transform: scale(1.25); }
.tl-step + .tl-step::before {
  content: "\203A"; position: absolute; left: -.5rem; top: 108px;
  font-size: 2rem; line-height: 0; color: #fff; opacity: .45;
}
.tl-card {
  background: var(--panel); border: 1px solid var(--line-dark); height: 100%;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s;
}
.tl-card:hover { transform: translateY(-5px); border-color: rgba(225,27,54,.5); background: var(--panel-2); }
.tl-card img { width: 100%; height: 132px; object-fit: cover; opacity: .82; }
.tl-body { padding: 1.1rem 1.1rem 1.4rem; }
.tl-year {
  display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  color: var(--red-hi); line-height: 1; margin-bottom: .35rem;
}
.tl-card h4 { color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.tl-card p { font-size: .86rem; line-height: 1.5; color: var(--body-dark); margin: 0; }

/* ---------- timeline (history page, vertical) ---------- */
.tl-long { max-width: 900px; margin-inline: auto; }
.tl-row {
  display: grid; grid-template-columns: 170px 1fr; gap: 2.5rem;
  padding: 2.4rem 0; border-top: 1px solid var(--line);
}
.tl-row:first-child { border-top: 0; padding-top: 0; }
.tl-row .tl-year { color: var(--red); font-size: 2.4rem; }
.tl-row h3 { text-transform: uppercase; letter-spacing: .04em; }
.tl-row p:last-child { margin-bottom: 0; }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); padding: 1.8rem;
  box-shadow: var(--shadow);
}
.dark .card { background: var(--panel); border-color: var(--line-dark); box-shadow: none; }
.card h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--display); font-size: 2.2rem; font-weight: 700;
  color: var(--red); line-height: 1; display: block; margin-bottom: .5rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; }
/* ...but a LOGO inside a split is not a photograph. `cover` was cropping the
   Earthwise lockup and cutting "WINDOWS & DOORS" off the bottom. Same
   specificity as the rule above, so this has to come after it. */
.split .brand-card__logo img {
  width: auto; height: auto; max-height: 84px; object-fit: contain;
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); }
.stat { background: var(--ground); padding: 1.6rem 1.2rem; text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 2.6rem; line-height: 1; color: #fff;
}
.stat span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #8d97a5; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}
.dark .checks li::before { color: var(--red-hi); }

/* ---------- partner ---------- */
/* The compact strip, for inside a column (About page). */
.partner {
  display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 2rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line-dark);
  border-left: 4px solid var(--asc-blue); padding: 2rem 2.2rem;
}
.partner__mark {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: .05em; color: #fff; line-height: 1.15;
}
.partner__mark span { display: block; font-size: .7rem; letter-spacing: .24em; color: #6ba6f2; }
.partner p { margin: 0; }

/* The full-width partner block — Ascend is a partner of JetAlum, not a vendor to
   Extrusia, so on the homepage it gets a section of its own rather than a
   footnote under the software brand. */
.partner-panel {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: clamp(2rem, 4vw, 3.2rem);
  border-top: 4px solid var(--asc-blue);
}
/* Ascend's logo is a full-bleed dark square with its wordmark baked in, so it
   is placed as its own tile rather than floated on the white panel. No
   inverting, no knocking the background out. */
.partner-panel__id { text-align: center; }
.partner-panel__id img {
  display: block; width: 100%; max-width: 260px; height: auto;
  margin: 0 auto .9rem; border-radius: 6px;
  box-shadow: 0 6px 24px rgba(15,20,30,.22);
}
.partner-panel__role {
  display: inline-block; margin-top: .8rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--asc-blue-d); background: #eaf2fe;
  border: 1px solid #cfe0fb; padding: .4rem .8rem;
}
.partner-panel h3 { text-transform: uppercase; letter-spacing: .04em; }
.partner-panel p:last-child { margin-bottom: 0; }
.partner-panel .checks li::before { color: var(--asc-blue); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-inline: auto; }
.cta-band .btn--ghost:hover { color: var(--red); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 2px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; margin-top: .6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ground); color: #97a1af; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.4rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .92rem; line-height: 1.5; }
.site-footer a { color: #97a1af; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .9rem; line-height: 1.6; }
.footer-logo-tile {
  display: inline-block; background: #fff; border-radius: 6px;
  padding: .75rem 1rem; margin-bottom: 1.1rem;
}
.footer-logo-tile img { height: 46px; width: auto; display: block; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: grid; place-items: center; color: #97a1af;
}
.footer-social a:hover { border-color: var(--red); color: #fff; background: var(--red); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-top: 1.4rem;
  font-size: .84rem;
}
.footer-bottom nav { display: flex; gap: 1.4rem; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.page-head {
  position: relative; overflow: hidden;
  background: var(--ground); color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
/* the miter motif from the hero, reduced to a hairline field so inner page
   heads carry the same language without competing with the copy */
.page-head::after {
  content: ""; position: absolute; right: -3%; top: -45%; width: 48%; height: 190%;
  background: repeating-linear-gradient(135deg,
    rgba(255,255,255,.075) 0 1px, transparent 1px 28px);
  -webkit-mask-image: radial-gradient(62% 58% at 68% 50%, #000, transparent 74%);
  mask-image: radial-gradient(62% 58% at 68% 50%, #000, transparent 74%);
  pointer-events: none;
}
.page-head::before {
  content: ""; position: absolute; right: 0; top: 0; width: 42%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red));
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head p { color: #c3cbd6; max-width: 62ch; font-size: 1.1rem; margin-bottom: 0; }
.crumb { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: #8d97a5; margin-bottom: .9rem; }
.crumb a { color: #8d97a5; }
.crumb a:hover { color: #fff; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.9rem; margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ==========================================================================
   MOTION & DETAIL LAYER
   Everything below is polish: scroll reveal, the hero artwork, counters, the
   scroll progress bar, focus treatment, print. All of it degrades to a static,
   fully readable page if JS is off, and all of it stands down under
   prefers-reduced-motion.
   ========================================================================== */

/* ---------- skip link + focus ---------- */
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--red); color: #fff; padding: .8rem 1.2rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem;
  transition: top .18s;
}
.skip:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible,
.hero :focus-visible, .page-head :focus-visible, .cta-band :focus-visible {
  outline-color: #fff;
}
::selection { background: var(--red); color: #fff; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 90;
  transform: scaleX(var(--p, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--red-hi));
  pointer-events: none;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* JS off: never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero: artwork, kinetic headline, scroll cue ---------- */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 75% 40%, #000 20%, transparent 75%);
}
.hero-art {
  position: absolute; right: -6%; bottom: -14%;
  width: min(760px, 54%); pointer-events: none; opacity: .9;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .draw {
  stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400);
  animation: draw 2.4s cubic-bezier(.25,.8,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-art .glow { animation: pulse 4.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .25; } 50% { opacity: .7; } }

.hero .container { z-index: 2; }
.hero h1 .w { display: inline-block; animation: rise .9s cubic-bezier(.2,.75,.2,1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(.42em) rotate(1.2deg); } }
.hero .rule { animation: grow .8s cubic-bezier(.2,.7,.2,1) .55s backwards; }
@keyframes grow { from { width: 0; } }
.hero .fade { animation: fade .9s ease .7s backwards; }
.hero .fade--2 { animation-delay: .85s; }
.hero .fade--3 { animation-delay: 1s; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: .5rem;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: #8d97a5;
  animation: fade 1s ease 1.4s backwards;
}
.scroll-cue span { display: block; width: 1px; height: 34px; background: linear-gradient(#8d97a5, transparent); }
.scroll-cue span::after {
  content: ""; display: block; width: 1px; height: 12px; background: var(--red-hi);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }

/* ---------- certification strip ---------- */
.certs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.8rem, 5vw, 3.6rem);
}
.certs img {
  height: 64px; width: auto; opacity: .8;
  transition: opacity .3s, transform .3s;
}
.certs img:hover { opacity: 1; transform: translateY(-3px); }
.certs-note {
  text-align: center; font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: #8d97a5; margin-bottom: 2rem;
}

/* ---------- counters ---------- */
.stat b { font-variant-numeric: tabular-nums; }
.stat { transition: background .3s; }
.stat:hover { background: var(--panel-2); }

/* ---------- card hover ---------- */
.card {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.section .card:hover, .section--paper .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.dark .card:hover { transform: translateY(-4px); border-color: rgba(225,27,54,.45); background: var(--panel-2); }
.card__num { transition: color .3s; }
.dark .card:hover .card__num { color: var(--red-hi); }

/* ---------- split imagery ---------- */
.split figure, .split > div > img { overflow: hidden; margin: 0; }
.split img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }

/* ---------- buttons: sheen ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .55s cubic-bezier(.2,.7,.2,1);
}
.btn:hover::before { left: 120%; }
.btn--ghost::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }

/* ---------- partner ---------- */
.partner { transition: border-color .3s, background .3s; }
.partner:hover { background: var(--panel-2); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-art .draw { stroke-dashoffset: 0; }
  .scroll-cue { display: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .nav, .scroll-cue, .progress, .hero-art, .hero-grid,
  .hero-bg, .btn-row, .footer-social, .cta-band { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .dark, .page-head, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .dark h1, .dark h2, .dark h3, .dark h4,
  .page-head h1, .hero h1, .site-footer h4 { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section { padding: 1.2rem 0; }
  .card, .brand-card, .tl-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hero-art { opacity: .28; right: -12%; }
}
@media (max-width: 1080px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .tl-step { padding: 0; }
  .tl-step + .tl-step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }

  /* CRITICAL: no backdrop-filter here.
     backdrop-filter establishes a containing block for position:fixed
     descendants, so with it on, the drawer resolved top/bottom against the 84px
     HEADER instead of the viewport and rendered 40px tall. The blur is a desktop
     nicety over the dark hero; on mobile the bar is solid white anyway. */
  .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: #fff;
  }

  /* The drawer hangs off the bottom of the header. The header shrinks when it is
     stuck, which used to drag the drawer's top edge with it and leave a seam --
     so while the drawer is open the header is pinned at full height. */
  body.nav-open .site-header.is-stuck .container { min-height: var(--header-h); }
  body.nav-open .site-header.is-stuck .logo img { height: 62px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 55;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: .5rem 1.4rem 2rem; gap: 0; overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
    box-shadow: -18px 0 40px rgba(15,20,30,.10);
  }
  .nav.open { transform: none; }

  .nav > a, .nav-item > button {
    position: relative;
    width: 100%; justify-content: space-between;
    padding: 1.05rem .2rem; font-size: 1rem; letter-spacing: .1em;
    border-bottom: 1px solid var(--line);
  }
  /* a left bar reads better than an underline in a vertical list */
  .nav > a.is-active, .nav-item.is-active > button { border-bottom-color: var(--line); }
  .nav > a.is-active::before, .nav-item.is-active > button::before {
    content: ""; position: absolute; left: -1.4rem; top: .35rem; bottom: .35rem;
    width: 3px; background: var(--red);
  }
  .nav-item > button::after { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
  .nav-item.open > button::after { transform: translateY(2px) rotate(-135deg); }

  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent;
    border: 0; border-left: 2px solid var(--line);
    margin: .25rem 0 .25rem .3rem;
    max-height: 0; overflow: hidden;
    transition: max-height .28s cubic-bezier(.2,.7,.2,1);
  }
  .nav-item.open .dropdown { max-height: 460px; }
  .dropdown a {
    padding: .8rem 1rem; border-bottom: 0;
    font-size: .95rem; line-height: 1.35;
  }
  .dropdown a small { color: var(--body); margin-top: .1rem; }

  /* pinned to the bottom of the drawer */
  .nav-extra {
    display: block; margin-top: auto; padding-top: 1.6rem;
  }
  .nav-extra .btn { width: 100%; justify-content: center; }
  .nav-extra__contact {
    display: flex; flex-direction: column; gap: .5rem;
    margin: 1.2rem 0 0; font-size: .95rem; color: var(--body);
  }
  .nav-extra__contact a { color: var(--ink); font-weight: 600; }
  .nav-extra__contact span { font-size: .88rem; line-height: 1.5; }
  .brand-grid, .grid--2, .grid--3, .grid--4, .split { grid-template-columns: 1fr; }
  .partner-panel { grid-template-columns: 1fr; text-align: left; }
  .partner-panel__id { text-align: left; }
  .partner-panel__id img { margin-left: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .split--flip > *:first-child { order: 2; }
  .hero-art { display: none; }
  .timeline-rail { display: none; }
  .timeline { padding-top: 0; }
  .tl-step::after { display: none; }
  .certs img { height: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 2rem); }
  .brand-card__top { grid-template-columns: 1fr; }
  .brand-card__art img { min-height: 190px; }
  .brand-card__pills { grid-template-columns: 1fr; gap: 1rem; }
  .timeline { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: .6rem; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wm img { height: 38px; }
  .wm-text { font-size: 1.5rem; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}
