/* Forge · genre: industrial-minimal · macrostructure: Photographic + Split Studio
 * theme: OEC navy + red · type: Big Shoulders Display + IBM Plex Sans/Mono
 * Oilfield Electric & Motor / OEC Electrical, multi-page. No em dashes in any copy.
 * pre-emit critique: P5 H5 E4 S5 R4 V5
 */

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.display, .hero__title, .section-title, .stat__num, .cta-band__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 50%; top: -64px; transform: translateX(-50%);
  background: var(--color-navy); color: var(--color-on-dark);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill);
  font-size: var(--text-sm); z-index: 200; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { top: var(--space-sm); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--color-paper-2); border-top: 1px solid var(--color-rule); }

/* visually hidden, still read by screen readers */
.sr-only {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ============ SHARED TYPE BITS ============ */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-muted);
  margin: 0 0 var(--space-md);
}
.kicker--light { color: var(--color-on-dark-soft); }
.section-title { font-size: var(--text-section); font-weight: 800; color: var(--color-ink); max-width: 18ch; }
.section-title--light { color: var(--color-on-dark); }
.lede { font-size: var(--text-base); font-weight: 600; color: var(--color-ink-soft); line-height: 1.6; max-width: 60ch; }
.prose p + p { margin-top: var(--space-md); }
.prose { color: var(--color-ink-soft); line-height: 1.7; max-width: 64ch; }

/* ============ BUTTONS ============ */
.btn {
  --_bg: var(--color-navy); --_fg: var(--color-on-dark); --_bd: var(--color-navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.01em; padding: 0.85rem 1.4rem; border: 1.5px solid var(--_bd);
  background: var(--_bg); color: var(--_fg); border-radius: var(--radius-sm); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn--primary:hover, .btn--primary.is-hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--accent { --_bg: var(--color-accent); --_fg: var(--color-on-accent); --_bd: var(--color-accent); }
.btn--accent:hover { --_bg: var(--color-accent-strong); --_bd: var(--color-accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { --_bg: transparent; --_fg: var(--color-ink); --_bd: var(--color-rule-strong); }
.btn--ghost:hover { --_bd: var(--color-navy); transform: translateY(-2px); }
.btn--on-dark { --_bg: var(--color-on-dark); --_fg: var(--color-navy); --_bd: var(--color-on-dark); }
.btn--on-dark:hover { --_bg: var(--color-accent); --_fg: var(--color-on-accent); --_bd: var(--color-accent); transform: translateY(-2px); }
.btn--ghost-light { --_bg: transparent; --_fg: var(--color-on-dark); --_bd: oklch(100% 0 0 / 0.4); }
.btn--ghost-light:hover { --_bd: var(--color-on-dark); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(98.8% 0.003 262 / 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--color-rule);
  transition: box-shadow var(--dur-mid) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-nav); }
.site-header__bar {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand__logo { height: 34px; width: auto; }
.brand__heritage {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--color-ink); border-left: 1px solid var(--color-rule-strong); padding-left: 0.85rem;
}
.brand__heritage span { color: var(--color-neutral); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.15rem; }

.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav__link {
  position: relative; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-soft);
  padding: 0.55rem 0.85rem; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.primary-nav__link:hover { color: var(--color-ink); background: var(--color-paper-3); }
.primary-nav__link[aria-current="page"] { color: var(--color-ink); }
.primary-nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 2px;
  background: var(--color-accent); border-radius: 2px;
}
.btn--call {
  --_bg: var(--color-navy); --_fg: var(--color-on-dark); --_bd: var(--color-navy);
  font-family: var(--font-mono); gap: 0.5rem; margin-left: 0.5rem; padding: 0.6rem 1rem;
}
.btn--call:hover { --_bg: var(--color-accent); --_bd: var(--color-accent); transform: translateY(-1px); }
.btn--call .dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-accent); }
.btn--call:hover .dot { background: var(--color-on-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO actions (shared by fx heroes + cta bands) ============ */
.hero__actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-on-dark-soft); margin-bottom: var(--space-md); }
.breadcrumb a { padding-block: 0.5rem; }
.breadcrumb a:hover { color: var(--color-on-dark); }
.breadcrumb span { color: oklch(100% 0 0 / 0.4); }

/* ============ STAT STRIP ============ */
.stats { background: var(--color-paper-2); border-block: 1px solid var(--color-rule); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat__num { font-size: clamp(2.75rem, 5vw, 4.25rem); color: var(--color-navy); font-variant-numeric: tabular-nums; }
.stat__num .unit { color: var(--color-accent); }
.stat__label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); max-width: 22ch; }
.creds { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.cred { font-size: var(--text-sm); color: var(--color-ink-soft); padding: 0.4rem 0.9rem; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-paper); }
.cred::before { content: "✓"; color: var(--color-accent); font-weight: 700; margin-right: 0.45rem; }

/* ============ SECTION HEAD ============ */
.shead { margin-bottom: var(--space-2xl); max-width: 60ch; }
.shead .lede { margin-top: var(--space-md); }

/* ============ SERVICES GRID ============ */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.service-card {
  display: flex; flex-direction: column; background: var(--color-paper); border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-rule-strong); }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.service-card__title { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: var(--text-xl); line-height: 1.05; color: var(--color-ink); }
.service-card__desc { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.6; }
.service-card__link { margin-top: auto; padding-top: var(--space-sm); display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-strong); }
.service-card__link span { transition: transform var(--dur-fast) var(--ease-out); }
.service-card:hover .service-card__link span { transform: translateX(4px); }

/* ============ SPLIT FEATURE ============ */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature--reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.feature__tag { position: absolute; left: 0; bottom: 1rem; background: var(--color-accent); color: var(--color-on-accent); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4rem 0.85rem; }
.feature__title { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.12; color: var(--color-ink); margin-bottom: var(--space-md); }

/* ============ CAPABILITY LIST ============ */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; margin-top: var(--space-lg); }
.caps li { position: relative; padding-left: 1.2rem; font-size: var(--text-sm); color: var(--color-ink-soft); line-height: 1.45; }
.caps li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.45rem; height: 0.45rem; background: var(--color-accent); }

/* ============ BRANDS ============ */
.brands__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--color-rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-paper); }
.brand-cell { display: flex; align-items: center; gap: 0.2rem; padding: var(--space-lg) var(--space-xl); font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: var(--text-lg); letter-spacing: 0.02em; color: var(--color-ink); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.brand-cell:hover { background: var(--color-paper-2); color: var(--color-accent-strong); }
.brand-cell .star { color: var(--color-accent); }
.brands__note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.brands__note .star { color: var(--color-accent); font-weight: 700; }

/* ============ STORY ============ */
.story { background: var(--color-paper-2); border-block: 1px solid var(--color-rule); }
.story__inner { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story__year { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 11vw, 8rem); line-height: 0.82; color: var(--color-navy); }
.story__year-label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-muted); display: block; margin-top: 0.4rem; }
.story__aside { border-left: 3px solid var(--color-accent); padding-left: var(--space-lg); position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* ============ CTA BAND ============ */
.cta-band { background: var(--color-navy); color: var(--color-on-dark); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, oklch(56% 0.21 27 / 0.18), transparent 45%); pointer-events: none; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl); position: relative; }
.cta-band__title { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 18ch; }
.cta-band__sub { color: var(--color-on-dark-soft); margin-top: var(--space-sm); max-width: 42ch; }
.cta-band .hero__actions, .cta-band .fx-hero__actions { margin: 0; }

/* ============ CONTACT ============ */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__details { display: flex; flex-direction: column; margin-top: var(--space-lg); }
.contact__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.contact__row dt { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); padding-top: 0.2rem; }
.contact__row dd { margin: 0; color: var(--color-ink); font-size: var(--text-md); line-height: 1.5; }
.contact__row a:hover { color: var(--color-accent-strong); }
.contact__muted { color: var(--color-muted); }

.form { background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form__intro { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: var(--space-lg); max-width: 44ch; }
.field { margin-bottom: var(--space-lg); }
.field--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.field__label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-soft); margin-bottom: 0.4rem; }
.field__opt { color: var(--color-muted); font-weight: 400; }
.field__input { width: 100%; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-ink); padding: 0.7rem 0.85rem; background: var(--color-paper-2); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-sm); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
textarea.field__input { resize: vertical; min-height: 5.5rem; }
.field__input::placeholder { color: var(--color-neutral); }
.field__input:hover { border-color: var(--color-muted); }
.field__input:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px oklch(56% 0.21 27 / 0.18); }
.field__input[aria-invalid="true"] { border-color: var(--color-error); background: var(--color-error-soft); }
.field__error { display: block; margin-top: 0.4rem; font-size: var(--text-sm); color: var(--color-error); }
.btn__spinner { width: 1rem; height: 1rem; border-radius: 50%; display: none; border: 2px solid oklch(100% 0 0 / 0.3); border-top-color: var(--color-on-dark); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#form-submit[data-state="loading"] .btn__spinner { display: inline-block; }
#form-submit[data-state="loading"] .btn__label { opacity: 0.7; }
#form-submit[data-state="success"] { --_bg: var(--color-success); --_bd: var(--color-success); }
.form__status { margin-top: var(--space-md); font-size: var(--text-sm); min-height: 1.2em; }
.form__status[data-tone="success"] { color: var(--color-success); }
.form__status[data-tone="error"] { color: var(--color-error); }
.form__fallback { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.form__fallback a { color: var(--color-accent-strong); font-weight: 600; }

/* map embed */
.map-frame { width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); margin-top: var(--space-2xl); filter: saturate(0.9); }

/* ============ FOOTER ============ */
.site-footer { background: var(--color-navy-deep); color: var(--color-on-dark); }
.site-footer__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr); gap: var(--space-2xl); padding-block: clamp(3rem, 6vw, 5rem) var(--space-2xl); }
.footer-brand__logo { height: 52px; width: auto; margin-bottom: var(--space-md); }
.footer-brand p { color: var(--color-on-dark-soft); max-width: 42ch; font-size: var(--text-sm); line-height: 1.6; }
.footer-brand .footer__easa { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; color: oklch(72% 0.02 264); margin-top: var(--space-md); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col__title { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-on-dark); margin: 0 0 0.2rem; }
.footer-col a, .footer-col span { font-size: var(--text-sm); color: var(--color-on-dark-soft); width: max-content; max-width: 100%; transition: color var(--dur-fast) var(--ease-out); }
.footer-col a { padding-block: 0.35rem; }
.footer-col a:hover { color: var(--color-on-dark); }
.site-footer__bottom { border-top: 1px solid oklch(100% 0 0 / 0.12); padding-block: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: oklch(72% 0.02 264); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.site-footer__legal a { padding-block: 0.35rem; }
.site-footer__legal a:hover { color: var(--color-on-dark); }

/* ============ FAQ (contact) ============ */
.faq { margin: 0; display: grid; gap: var(--space-lg); }
@media (min-width: 760px) { .faq { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } }
.faq__item dt { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.01em; color: var(--color-navy); }
.faq__item dd { margin: 0.4rem 0 0; color: var(--color-ink-soft); line-height: 1.65; max-width: 52ch; }

/* ============ PAGE HEAD (legal pages) ============ */
.page-head { background: var(--color-navy); color: var(--color-on-dark); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, oklch(56% 0.21 27 / 0.16), transparent 50%); pointer-events: none; }
.page-head__inner { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.25rem, 4vw, 3.25rem); position: relative; }
.page-head .section-title { color: var(--color-on-dark); }

/* ============ LEGAL CONTENT ============ */
.legal { max-width: 760px; }
.legal__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); margin-bottom: var(--space-xl); }
.legal h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: var(--text-xl); color: var(--color-ink); letter-spacing: 0.01em; margin: var(--space-2xl) 0 var(--space-sm); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: var(--text-md); font-weight: 600; color: var(--color-ink); margin: var(--space-lg) 0 var(--space-xs); }
.legal p { color: var(--color-ink-soft); line-height: 1.75; margin-bottom: var(--space-md); }
.legal ul { margin: 0 0 var(--space-md) 1.2rem; list-style: disc; }
.legal li { color: var(--color-ink-soft); line-height: 1.7; margin-bottom: 0.35rem; }
.legal a { color: var(--color-accent-strong); text-decoration: underline; }

/* ============ FORGE 3D SCROLL SCENE ============ */
.forge3d { position: relative; height: 240vh; background: var(--color-navy-deep); }
.forge3d__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.forge3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.forge3d__overlay { position: relative; z-index: 1; pointer-events: none; }
.forge3d__title { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; color: var(--color-on-dark); font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1.1; letter-spacing: 0.005em; text-shadow: 0 4px 30px oklch(15% 0.05 267 / 0.6); }
.forge3d__sub { margin-top: var(--space-lg); max-width: 46ch; color: var(--color-on-dark-soft); font-size: var(--text-md); line-height: 1.6; text-shadow: 0 2px 16px oklch(15% 0.05 267 / 0.75); }
.forge3d__title .f3d-line { display: block; }
.f3d-line { will-change: transform, opacity; }
@media (max-width: 700px) { .forge3d { height: 180vh; } }


/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; transform: scaleX(0); transform-origin: left center; background: var(--color-accent); z-index: 200; pointer-events: none; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
/* when GSAP drives the reveals, let it own opacity/transform (no double-ease) */
.gsap-anim .reveal { transition: none; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
/* ============ HISTORY PLACEHOLDERS (awaiting vintage photos) ============ */
.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.history__ph {
  margin: 0; border: 1.5px dashed var(--color-rule-strong); border-radius: var(--radius-md);
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--space-md); color: var(--color-muted);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.8;
}
.history__item {
  margin: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-md);
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--space-sm); background: var(--color-paper-2);
  padding: var(--space-md);
}
.history__item img { width: clamp(110px, 42%, 145px); height: auto; border-radius: 50%; }
.history__item figcaption {
  color: var(--color-muted); font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
@media (max-width: 720px) { .history { grid-template-columns: minmax(0, 1fr); } }

/* Archival photographs below the history logos: crew + yard as a balanced pair */
.story__photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); margin-top: var(--space-xl); }
.story__photos figure { margin: 0; }
.story__photos img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }
.story__photos figcaption {
  margin-top: 0.6rem; text-align: center; color: var(--color-muted);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em;
}
@media (min-width: 760px) { .story__photos { grid-template-columns: 5fr 7fr; align-items: start; } }

/* ============ CAREERS (live Talent Hub jobs) ============ */
/* Hero: animated "live current" canvas over a deep navy field. Distinct from the
 * photographic interior-page heroes elsewhere on the site. */
.fx-hero {
  position: relative;
  min-height: clamp(440px, 64vh, 620px);
  display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 90% at 75% 8%, oklch(34% 0.085 267) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-navy) 60%, var(--color-navy-deep) 100%);
  overflow: clip;
  isolation: isolate;
}
.fx-hero--home { min-height: clamp(560px, 88vh, 840px); }
.fx-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* phones have no side room: fade the 3D scene to a background so text always wins */
@media (max-width: 720px) { .fx-hero__canvas { opacity: 0.3; } }
/* the pole run needs the full width, so it goes backdrop-mode earlier */
@media (max-width: 900px) { .fx-hero__canvas[data-3d="linework"] { opacity: 0.3; } }
.page-head--fx { isolation: isolate; }
.page-head--fx .page-head__inner { position: relative; z-index: 1; }
/* Pause/play toggle for the animated hero backdrops (WCAG 2.2.2) */
.fx-pause {
  position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.35); background: oklch(20% 0.06 267 / 0.55);
  color: var(--color-on-dark); font-size: 0.9rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.fx-pause:hover { background: oklch(26% 0.06 267 / 0.75); border-color: oklch(100% 0 0 / 0.6); }
.fx-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 80% 12%, oklch(56% 0.21 27 / 0.16), transparent 60%),
    linear-gradient(180deg, oklch(20% 0.06 267 / 0.10) 0%, transparent 30%, oklch(18% 0.06 267 / 0.55) 100%);
}
.fx-hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: clamp(var(--space-2xl), 8vh, var(--space-4xl));
}
.fx-hero .breadcrumb { margin-bottom: var(--space-lg); }
.fx-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.9rem, 7vw + 0.5rem, 6rem); line-height: 1.14;
  letter-spacing: 0.005em; color: var(--color-on-dark);
  margin: var(--space-sm) 0 var(--space-md); text-wrap: balance;
  overflow-wrap: anywhere; min-width: 0;
}
.fx-hero__sub { max-width: 52ch; color: var(--color-on-dark-soft); font-size: var(--text-md); line-height: 1.55; }
.fx-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); }
.fx-hero__pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  border: 1px solid oklch(100% 0 0 / 0.16); background: oklch(100% 0 0 / 0.06);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-on-dark);
  backdrop-filter: blur(6px);
}
.fx-hero__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 0 oklch(52% 0.11 150 / 0.5); }
.fx-hero__pill[data-state="ready"] .fx-hero__dot { animation: careersPulse 2.4s var(--ease-out) infinite; }
.fx-hero__pill[data-state="loading"] .fx-hero__dot { background: var(--color-neutral); }
.fx-hero__pill[data-state="error"] .fx-hero__dot,
.fx-hero__pill[data-state="empty"] .fx-hero__dot { background: var(--color-accent); }
@keyframes careersPulse {
  0% { box-shadow: 0 0 0 0 oklch(52% 0.11 150 / 0.5); }
  70% { box-shadow: 0 0 0 7px oklch(52% 0.11 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(52% 0.11 150 / 0); }
}

.jobs__count {
  margin-top: var(--space-md);
  font-family: var(--font-mono); font-size: var(--text-sm);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted);
}
.jobs__count[data-state="error"] { color: var(--color-error); }
.jobs { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-xl); }
.jobs__status {
  padding: var(--space-xl); border: 1px dashed var(--color-rule-strong); border-radius: var(--radius-md);
  color: var(--color-muted); font-size: var(--text-md); text-align: center;
}
.jobs__status a { color: var(--color-accent); font-weight: 600; text-decoration: underline; }
.job-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl);
  padding: var(--space-xl); padding-left: calc(var(--space-xl) + 4px); background: var(--color-paper);
  border: 1px solid var(--color-rule); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.job-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--color-accent); border-radius: var(--radius-md) 0 0 var(--radius-md);
  transform: scaleY(0); transform-origin: top; transition: transform var(--dur-mid) var(--ease-out);
}
.job-card:hover { border-color: var(--color-rule-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card:hover::before { transform: scaleY(1); }
.job-card__body { min-width: 0; }
.job-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.05; color: var(--color-ink); letter-spacing: 0.01em; }
.job-card__meta {
  margin-top: var(--space-xs); font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); /* AA contrast */
}
.job-card__blurb { margin-top: var(--space-sm); max-width: 60ch; color: var(--color-ink-soft); font-size: var(--text-base); line-height: 1.5; }
.job-card__cta {
  flex: none; font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.job-card__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.job-card__cta:hover .job-card__arrow { transform: translateX(4px); }

@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .feature--reverse .feature__media { order: 0; }
  .story__inner, .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .story__aside { position: static; }
  .site-footer__main { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .brand__heritage { display: none; }
}
/* Collapse the nav to a menu at 820px so the full "Overhead Transmission"
   link row never crowds or clips (covers small tablets and phone landscape). */
@media (max-width: 820px) {
  .primary-nav {
    position: absolute; top: calc(100% + 0.5rem); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0.25rem; padding: var(--space-sm);
    background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav__link { padding: 0.7rem 0.85rem; }
  .primary-nav__link[aria-current="page"]::after { display: none; }
  .primary-nav__link[aria-current="page"] { background: var(--color-paper-3); }
  .btn--call { justify-content: center; margin-left: 0; margin-top: 0.25rem; padding-block: 0.8rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .field--split { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .job-card { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .job-card__cta { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .brands__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
