/* ============================================================
   Ipswich Machining — bespoke design system
   Industrial earthworks language: charcoal + high-vis amber,
   condensed display type, photo-heavy, mobile-first.
   ============================================================ */

@font-face {
  font-family: 'Oswald';
  src: url('/assets/fonts/Oswald-Variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterVariable';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:    #1B1E23;
  --steel:  #272C34;
  --coal:   #3A414D;
  --amber:  #F5A100;
  --amber2: #FFB833;
  --sand:   #F4F2EC;
  --paper:  #FBFAF7;
  --line:   #E2DFD6;
  --muted:  #6C727D;
  --white:  #FFFFFF;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'InterVariable', -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(20, 22, 26, .12);
  --shadow-s: 0 4px 14px rgba(20, 22, 26, .08);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swift: cubic-bezier(0.77, 0, 0.18, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.6vw, 26px); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--amber); color: var(--ink); padding: 10px 14px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 13px 24px; border: 2px solid transparent; border-radius: 4px;
  text-decoration: none; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber2); border-color: var(--amber2); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: rgba(27,30,35,.35); }
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(27,30,35,.05); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink); color: var(--white);
  border-bottom: 3px solid var(--amber);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--amber); color: var(--ink); border-radius: 4px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; }
.brand-txt small { font-size: 11.5px; color: #B9BfC9; letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--white); margin: 5px auto; transition: all .25s ease; border-radius: 2px; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > a {
  font-family: var(--display); font-weight: 500; font-size: 15.5px; text-transform: uppercase; letter-spacing: .05em;
  color: #DDE1E8; text-decoration: none; padding: 10px 13px; border-radius: 4px; transition: all .15s ease;
}
.primary-nav > a:hover { color: var(--white); background: rgba(255,255,255,.09); }
.primary-nav > a.active { color: var(--amber); }

.nav-item { position: relative; }
.nav-item > button {
  background: none; border: 0; cursor: pointer; color: #DDE1E8;
  font-family: var(--display); font-weight: 500; font-size: 15.5px; text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 13px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center;
}
.nav-item > button::after { content: '▾'; font-size: 11px; opacity: .7; transition: transform .2s; }
.nav-item:hover > button, .nav-item.open > button { color: var(--white); background: rgba(255,255,255,.09); }
.nav-item.open > button::after { transform: rotate(180deg); }
.nav-item.is-active > button { color: var(--amber); }

/* Mega menu — full-width panel under the header (group is position:static so the panel anchors to the sticky header) */
.nav-mega { position: static; }
.nav-mega .nav-drop {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0; width: auto;
  background: var(--steel); border: none; border-bottom: 3px solid var(--amber);
  box-shadow: var(--shadow); border-radius: 0; padding: 0; display: none;
}
.nav-mega.open .nav-drop, .nav-mega:focus-within .nav-drop { display: block; }
@media (hover: hover) and (pointer: fine) {
  .nav-mega:hover .nav-drop { display: block; }
}
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 20px 0; }
.mega-card {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  padding: 16px 18px; background: #2A2F39; border: 1px solid #3C434F; border-left: 3px solid transparent; border-radius: 6px;
  transition: all .15s ease;
}
.mega-card:hover { background: #303642; border-left-color: var(--amber); transform: translateY(-1px); }
.mega-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(245,161,0,.13); color: var(--amber); border-radius: 6px; }
.mega-txt strong { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--white); margin-bottom: 5px; }
.mega-txt span { display: block; font-size: 13px; line-height: 1.45; color: #A9AFBA; }
.mega-2x2 { grid-template-columns: repeat(2, minmax(280px, 560px)); justify-content: center; }
.mega-all { display: inline-block; margin: 0 0 4px 10px; padding: 9px 14px; font-family: var(--display); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); text-decoration: none; border-left: 3px solid var(--amber); }
.mega-all:hover { color: var(--amber2); }

.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: 10px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,22,26,.88) 0%, rgba(20,22,26,.55) 55%, rgba(20,22,26,.25) 100%); }
.hero-in { position: relative; padding: 88px 0 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.hero-kicker::before { content: ''; width: 34px; height: 3px; background: var(--amber); }
.hero h1 { color: var(--white); max-width: 17ch; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub { max-width: 56ch; font-size: 18px; color: #C9CED8; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); margin-top: 52px; max-width: 880px; }
.hero-stats > div { background: rgba(23,26,31,.82); padding: 18px 20px; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); color: var(--amber); line-height: 1; }
.hero-stats span { font-size: 13px; color: #C9CED8; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- inner page header ---------- */
.page-head { background: var(--ink); color: var(--white); border-bottom: 3px solid var(--amber); position: relative; overflow: hidden; }
.page-head-bg { position: absolute; inset: 0; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-head-in { position: relative; padding: 58px 0 46px; }
.crumbs { font-size: 13px; color: #A9AFBA; margin-bottom: 14px; }
.crumbs a { color: #A9AFBA; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs i { font-style: normal; opacity: .5; margin: 0 7px; }
.page-head h1 { color: var(--white); text-transform: uppercase; max-width: 22ch; }
.page-head-sub { max-width: 66ch; color: #C9CED8; font-size: 17px; margin-top: 10px; }
.page-head-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .muted { color: #A9AFBA; }
.sec-head { max-width: 720px; margin-bottom: 38px; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.sec-head .kicker::before { content: ''; width: 28px; height: 3px; background: var(--amber); }
.sec-head p { color: var(--muted); font-size: 17px; }
.section-ink .sec-head p { color: #C9CED8; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.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: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 26px; box-shadow: var(--shadow-s); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-ico { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: var(--amber); border-radius: 6px; margin-bottom: 18px; }
.card h3 { text-transform: uppercase; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 14.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.card-link:hover { color: #000; }

/* service hub cards with image */
.svc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc-card img { height: 190px; width: 100%; object-fit: cover; }
.svc-card .svc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

/* ---------- stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-top: 3px solid var(--amber); }
.stat-strip > div { padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.09); text-align: center; }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); color: var(--amber); line-height: 1; }
.stat-strip span { font-size: 13px; color: #C9CED8; text-transform: uppercase; letter-spacing: .07em; }

/* ---------- chips (capabilities) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li, .chips > span { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 500; }
.chips li svg, .chips > span svg { color: var(--amber); flex: none; }
.section-ink .chips li, .section-ink .chips > span { background: var(--steel); border-color: #3C434F; color: var(--white); }

/* ---------- timeline (Our Story) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 128px; top: 8px; bottom: 8px; width: 3px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 38px 190px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { position: absolute; left: 0; top: 0; width: 100px; text-align: right; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); text-transform: uppercase; }
.tl-dot { position: absolute; left: 119px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--amber); }
.tl-item h3 { text-transform: uppercase; margin-bottom: 6px; }
.tl-item p { color: var(--muted); margin: 0; max-width: 64ch; }

/* ---------- fleet table ---------- */
.fleet-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-s); }
.fleet-table th { background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 15px 18px; }
.fleet-table td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.fleet-table tr:nth-child(even) td { background: var(--sand); }
.fleet-table td:first-child { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.fleet-table td:nth-child(2) { font-weight: 600; color: var(--coal); white-space: nowrap; }

/* ---------- projects ---------- */
.proj-card { padding: 0; overflow: hidden; }
.proj-card img { height: 210px; width: 100%; object-fit: cover; }
.proj-body { padding: 24px; }
.proj-tag { display: inline-block; font-family: var(--display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; background: var(--amber); color: var(--ink); padding: 4px 10px; border-radius: 3px; margin-bottom: 12px; }
.proj-meta { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 8px; padding: 24px; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--line); display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); border-top: 3px solid var(--amber); color: var(--white); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 0; flex-wrap: wrap; }
.cta-in h2 { color: var(--white); text-transform: uppercase; margin: 0; max-width: 24ch; }
.cta-in p { color: #C9CED8; margin: 8px 0 0; max-width: 46ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact / forms ---------- */
.form-panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 8px; padding: 34px; box-shadow: var(--shadow-s); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--coal); }
input, select, textarea { font-family: var(--body); font-size: 15.5px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,161,0,.22); }
textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: 14px; font-size: 14.5px; min-height: 20px; }
.form-status.ok { color: #1B7A3D; font-weight: 600; }
.form-status.err { color: #B4352B; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

.contact-side h3 { text-transform: uppercase; }
.contact-side .row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-side .row:last-child { border-bottom: 0; }
.contact-side .row svg { color: var(--amber); margin-top: 3px; flex: none; }
.contact-side a { text-decoration: none; font-weight: 600; }
.contact-side a:hover { color: var(--amber); }

/* ---------- badges ---------- */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; list-style: none; padding: 0; }
.badge-list span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #C9CED8; }
.badge-list svg { color: var(--amber); }
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cred { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.cred > svg { color: var(--amber); flex: none; margin-top: 3px; }
.cred h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.cred p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 14px; }
.partners span { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: .03em; color: var(--steel); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px 28px; }
.section-ink .partners span { background: var(--steel); border-color: #3C434F; color: var(--white); }

/* ---------- quick-quote widget ---------- */
.fab-call { position: fixed; right: 18px; bottom: 18px; z-index: 110; width: 54px; height: 54px; display: grid; place-items: center; background: var(--amber); color: var(--ink); border-radius: 50%; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease; }
.fab-call:hover { transform: scale(1.07); }
.qbubble { position: fixed; right: 18px; bottom: 84px; z-index: 110; display: none; }
.qpanel-ov { position: fixed; inset: 0; background: rgba(20,22,26,.6); z-index: 119; display: none; }
.qpanel { position: fixed; right: 18px; bottom: 18px; z-index: 120; width: min(420px, calc(100vw - 36px)); background: var(--white); border-top: 4px solid var(--amber); border-radius: 10px; box-shadow: var(--shadow); display: none; overflow: hidden; }
.qpanel.open { display: block; }
.qpanel-ov.open { display: block; }
.qpanel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: var(--sand); }
.qpanel-head strong { display: block; font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.qpanel-head span { font-size: 13px; color: var(--muted); }
.qpanel-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.qpanel-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.qpanel-fine { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }

/* ---------- mobile action bar ---------- */
.mobile-action-bar { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9CED8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer-grid h4 { font-family: var(--display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul a { display: inline-block; padding: 5px 0; color: #C9CED8; text-decoration: none; font-size: 15px; }
.footer-grid ul a:hover { color: var(--amber); }
.footer-brand p { font-size: 15px; color: #A9AFBA; max-width: 34ch; }
.brand-footer .brand-txt strong { color: var(--white); }
.footer-foot { border-top: 1px solid #333A45; padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.footer-foot p { margin: 0; width: 100%; }

/* ---------- 404 ---------- */
.err-page { padding: 110px 0; text-align: center; }
.err-page .code { font-family: var(--display); font-weight: 700; font-size: clamp(80px, 14vw, 150px); color: var(--line); line-height: 1; }
.err-page h1 { text-transform: uppercase; }

/* ---------- motion system ---------- */
/* Gate: hidden states apply ONLY when html.js is set (inline head script).
   No-JS visitors see the fully static page; nothing ever sticks hidden. */

/* Page veil (fades in over load, lifts, returns on same-origin nav) */
.page-veil { position: fixed; inset: 0; z-index: 199; background: var(--paper); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease-swift); }
html.js .page-veil { opacity: 1; }
html.js .page-veil.lift { opacity: 0; }
body.page-exit .page-veil { opacity: 1; }

/* Above-fold load stagger (inline --d per element) */
html.js [data-load] { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease-premium), transform .65s var(--ease-premium); transition-delay: var(--d, 0s); }
body.is-ready [data-load] { opacity: 1; transform: none; }

/* Word-by-word hero entrance */
html.js .hero-h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em); filter: blur(8px); transition: opacity .6s var(--ease-premium), transform .6s var(--ease-premium), filter .6s var(--ease-premium); transition-delay: calc(var(--i, 0) * 55ms); }
body.is-ready .hero-h1 .w { opacity: 1; transform: none; filter: none; }

/* Below-fold scroll reveals (JS: IntersectionObserver → .in-view, reveal once) */
html.js [data-reveal] { opacity: 0; transition: opacity .7s var(--ease-premium), transform .7s var(--ease-premium); transition-delay: var(--d, 0s); }
html.js [data-reveal="up"] { transform: translateY(34px); }
html.js [data-reveal="left"] { transform: translateX(-34px); }
html.js [data-reveal="right"] { transform: translateX(34px); }
html.js [data-reveal="zoom"] { transform: scale(.94); }
html.js [data-reveal].in-view { opacity: 1; transform: none; }

/* Scroll fade-in (alias of the reveal mechanism) */
html.js .fade-in { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease-premium), transform .75s var(--ease-premium); transition-delay: var(--d, 0s); }
html.js .fade-in.in-view { opacity: 1; transform: none; }

/* Timed rotating word */
.rot-slot { display: inline-block; }
.rot-slot.rot-out { animation: rotOut .26s var(--ease-swift) forwards; }
@keyframes rotOut { to { opacity: 0; transform: translateY(-.6em); } }
.rot-slot.rot-in { animation: rotIn .3s var(--ease-premium) forwards; }
@keyframes rotIn { from { opacity: 0; transform: translateY(.6em); } }
.rot-line { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2vw, 21px); color: var(--white); margin: 0 0 22px; letter-spacing: .01em; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.rot-line .rot-word { color: var(--amber); font-weight: 600; }

/* Full-viewport hero (home) */
.hero--full { min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero--full .hero-in { padding: 64px 0; width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Crossfade hero carousel — slides live inside .hero-bg, under the overlay */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: .46; transform: scale(1.06); transition: transform 9s linear; }
.hero-slide.is-on img { transform: scale(1.18); }

/* Hero carousel dots */
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 5; }
.hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .3s ease; cursor: pointer; }
.hero-dots i.on { background: var(--amber); transform: scale(1.25); }

/* Parallax band (JS translates the img; static fallback = static cover) */
.parallax { position: relative; height: clamp(360px, 54vh, 640px); overflow: hidden; background: var(--ink); }
.parallax img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; will-change: transform; }
.parallax::after { content: ''; position: absolute; inset: 0; background: rgba(20,22,26,.52); }
.parallax-in { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.parallax-quote { color: var(--white); font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.2vw, 46px); text-transform: uppercase; line-height: 1.12; max-width: 24ch; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.parallax-quote em { font-style: normal; color: var(--amber); }
.parallax-kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: rgba(255,255,255,.72); margin-bottom: 14px; }

/* Side-by-side split: text one side, image the other (default image right) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4.5vw, 68px); align-items: center; }
.split--rev .split-fig { order: -1; }
.split-fig { margin: 0; position: relative; }
.split-fig img { width: 100%; height: clamp(320px, 46vh, 560px); object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.split-fig .fig-tag { position: absolute; left: 0; bottom: -12px; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; padding: 7px 14px; border-radius: 3px; }
.split .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.split .kicker::before { content: ''; width: 28px; height: 3px; background: var(--amber); }
.split h2 { text-transform: uppercase; }
.split .split-body p { color: var(--muted); font-size: 16.5px; }

/* Animated counters */
.stat-strip b, .hero-stats b { font-variant-numeric: tabular-nums; }
.count-num { display: inline-block; }

/* Bigger, punchier service cards */
.svc-card img { height: 260px; transition: transform .5s ease; }
.svc-card:hover img { transform: scale(1.05); }

/* Slow breathing zoom on page headers */
.page-head-bg img { animation: headZoom 26s ease-in-out infinite alternate; }
@keyframes headZoom { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Reduced motion: show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-load], html.js .hero-h1 .w, html.js [data-reveal], html.js .fade-in { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .page-veil { display: none; }
  .hero-slide { transition: none; }
  .hero-slide img, .page-head-bg img { transition: none; animation: none; transform: none; }
  .rot-slot { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div { border-right: 0; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: fixed; inset: 72px 0 auto 0; top: 0;
    background: var(--ink); border-bottom: 3px solid var(--amber);
    padding: 14px 20px 28px; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: 13px 14px; font-size: 16.5px; }
  .nav-item { width: 100%; }
  .nav-item > button { width: 100%; text-align: left; padding: 13px 14px; }
  .nav-mega { position: relative; }
  .nav-mega .nav-drop {
    position: static; width: auto; display: none;
    background: transparent; border: none; border-left: 3px solid var(--amber);
    box-shadow: none; margin-top: 4px; padding: 0 14px 10px;
  }
  .nav-mega.open .nav-drop { display: block; }
  .mega-grid { grid-template-columns: 1fr; gap: 8px; padding: 4px 0 8px; }
  .mega-all { margin: 4px 0 0 10px; }
  .nav-cta { flex-direction: column; align-items: stretch; margin: 14px 0 4px; }
  .nav-cta .btn { justify-content: center; }

  .hero-in { padding: 56px 0 48px; }
  .section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 96px; }
  .tl-item { padding-left: 132px; }
  .tl-year { width: 76px; font-size: 19px; }
  .tl-dot { left: 88px; }

  .cta-in { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 30px; }
  .footer-foot { flex-direction: column; }

  .mobile-action-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 105;
    background: var(--ink); border-top: 2px solid var(--amber);
  }
  .mobile-action-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
  .mab-quote { background: var(--amber); color: var(--ink); }
  .fab-call { bottom: 74px; }
  .footer-foot { padding-bottom: 130px; }
  body { padding-bottom: 52px; }
}
