/* Stolway — site styles
   Layout: white industrial pages, centred 1200px column, full-bleed photo bands,
   thin grey rules under section headings (carried over from stolway.com). Light theme only, by design. */

@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Colour */
  --navy: #19216D;        /* brand navy, from the logo and stolway.com */
  --navy-btn: #2E368F;    /* stolway.com button blue */
  --navy-deep: #10164E;   /* footer, overlays */
  --red: #D72A1A;         /* logo swoosh red, used sparingly */
  --ink: #1B1B1F;         /* headings */
  --text: #4F5361;        /* body copy, cool grey */
  --muted: #6A6F7E;
  --line: #E2E4EA;
  --surface: #F6F7F9;
  --product: #F2F3F5;     /* product photo ground, matches the photos */
  --white: #FFFFFF;
  --on-dark: #DCDFEE;
  /* Type */
  --font-display: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  /* Space */
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(56px, 8vw, 96px);
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy-btn); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--navy); color: var(--white); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0; max-width: 68ch; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink); }
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-btn); }

.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 30px; border-radius: 48px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy-btn); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--on-dark); color: var(--navy-deep); }
.btn--outline { border-color: var(--navy-btn); color: var(--navy-btn); background: transparent; }
.btn--outline:hover { background: var(--navy-btn); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--small { min-height: 40px; padding: 0 22px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(16, 22, 78, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 30px 0 28px;
  font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-section { color: var(--navy); border-bottom-color: var(--navy); }
.caret { width: 10px; height: 10px; flex: none; }
.submenu {
  position: absolute; left: -20px; top: 100%; min-width: 290px; list-style: none; margin: 0; padding: 10px 0;
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy); box-shadow: 0 18px 36px -20px rgba(16,22,78,.4);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.submenu a { display: block; padding: 9px 22px; color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--surface); color: var(--navy); }
.submenu .submenu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--navy-btn); }
.sub-toggle { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 148px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 44px;
    background: var(--white); color: var(--ink); font: 600 0.95rem var(--font-body); cursor: pointer;
  }
  .menu-toggle svg { width: 18px; height: 18px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(16,22,78,.45); padding: 8px var(--gutter-r) 24px var(--gutter-l); flex-direction: column; align-items: stretch; gap: 16px;
    max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav-link { padding: 14px 0; border-bottom: 0; flex: 1; }
  .nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-section { border-bottom: 0; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); }
  .sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .has-sub > .nav-link .caret { display: none; }
  .submenu { position: static; flex-basis: 100%; min-width: 0; display: none; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; padding: 0 0 10px; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .submenu a { padding: 9px 14px; }
  .nav .btn { align-self: flex-start; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-media, .banner-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .banner-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,16,58,.55) 0%, rgba(12,16,58,.45) 45%, rgba(12,16,58,.78) 100%); }
.hero-inner { padding-block: clamp(96px, 15vw, 176px) clamp(88px, 12vw, 150px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 21ch; }
.hero .hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; color: #F1F2F8; max-width: 44ch; }
.hero .btn-row { justify-content: center; margin-top: 8px; }
.hero-facts { position: relative; border-top: 1px solid rgba(255,255,255,.18); background: rgba(10,14,48,.55); backdrop-filter: blur(2px); }
.hero-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-facts li { padding: 20px 20px 22px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-facts li:first-child { border-left: 0; padding-left: 0; }
.hero-facts strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--white); }
.hero-facts span { font-size: 0.95rem; color: var(--on-dark); }
@media (max-width: 820px) {
  .hero-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Page banner (interior) ---------- */
.banner { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,16,58,.86) 0%, rgba(12,16,58,.62) 55%, rgba(12,16,58,.35) 100%); }
.banner-inner { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 14px; }
.banner h1 { color: var(--white); max-width: 22ch; }
.banner p { color: #EDEEF6; font-size: 1.15rem; max-width: 56ch; }
.crumbs { font-size: 0.9rem; color: var(--on-dark); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--navy-btn); }
.crumbs--dark a:hover { color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--grey { background: var(--surface); }
.section--tight { padding-block: calc(var(--section) * .7); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; padding-bottom: 18px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.section-head h2 { max-width: 26ch; }
.section-head p { max-width: 52ch; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.intro-grid .stack { max-width: 66ch; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.process li { border-top: 3px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--navy-btn); }
.process p { font-size: 1rem; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: #C9CDDA; box-shadow: 0 16px 30px -24px rgba(16,22,78,.55); color: inherit; }
.product-card .media { background: var(--product); aspect-ratio: 4 / 3; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .media img { transform: scale(1.03); }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { color: var(--navy); }
.product-card p { font-size: 1rem; }
.product-card .text-link { margin-top: auto; padding-top: 6px; color: var(--navy-btn); }
.chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 30px; font-size: 0.82rem; font-weight: 600; color: var(--ink); background: var(--white); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Split feature */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split--flip .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.split-media figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.split .stack { align-items: flex-start; }
.split h3 { font-size: 1.75rem; color: var(--navy); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--flip .split-media { order: 0; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--navy-btn); border-bottom: 2px solid var(--navy-btn); transform: rotate(-45deg); }
.ticks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
@media (max-width: 640px) { .ticks--two { grid-template-columns: minmax(0, 1fr); } }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
.project-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.project-card img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.project-card .meta { font-size: 0.85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-card h3 { font-size: 1.2rem; }
.project-card:hover h3 { color: var(--navy-btn); }

/* Glance rows (from stolway.com "At A Glance") */
.glance h3 { color: var(--navy); font-size: 1.75rem; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(48px, 7vw, 76px); }
.cta-inner h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2rem); }
.cta-inner p { color: var(--on-dark); margin-top: 8px; }

/* ---------- Product page ---------- */
.product-hero { padding-block: 32px var(--section); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; margin-top: 28px; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { background: var(--product); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; background: var(--product); width: 108px; aspect-ratio: 4 / 3; cursor: pointer; border-radius: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--navy); }
.product-summary { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.product-summary h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.key-specs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.key-specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.key-specs div:nth-child(odd) { padding-right: 16px; }
.key-specs dt { font-size: 0.82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.key-specs dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.spec-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.spec-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .spec-cols { grid-template-columns: minmax(0, 1fr); } .spec-cols--2 { grid-template-columns: minmax(0, 1fr); } }
.spec-cols h3 { font-size: 1.2rem; color: var(--navy); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--navy); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.note { font-size: 0.95rem; color: var(--muted); }
.custom-box { background: var(--surface); border-top: 3px solid var(--navy); padding: 32px clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.section--grey .custom-box { background: var(--white); }
@media (max-width: 760px) { .custom-box { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards / lists ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card-grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.card-grid h3 { font-size: 1.2rem; color: var(--navy); }
.card-grid p { font-size: 1rem; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid, .card-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.industry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.industry-list li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.industry-list h3 { font-size: 1.15rem; }
.industry-list p { font-size: 1rem; }
@media (max-width: 900px) { .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industry-list { grid-template-columns: minmax(0, 1fr); } }

/* Project detail list */
.project-list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.project .figure-panel { aspect-ratio: 10 / 7; background: var(--navy); color: var(--white); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.project .figure-panel strong { font-family: var(--font-display); font-weight: 500; font-size: 2rem; color: var(--white); line-height: 1.1; }
.project .figure-panel span { color: var(--on-dark); }
.project h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.project .meta { font-size: 0.85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fact-table th, .fact-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 42%; font-weight: 600; color: var(--ink); padding-right: 16px; }
@media (max-width: 860px) { .project { grid-template-columns: minmax(0, 1fr); } }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.locations > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.locations > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.locations h3 { font-size: 1.1rem; }
.locations .role { font-size: 0.85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-btn); }
.locations address { font-style: normal; }
@media (max-width: 700px) { .locations { grid-template-columns: minmax(0, 1fr); } .locations > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #B9BDC9; border-radius: var(--radius); min-height: 48px; padding: 10px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(46,54,143,.25); border-color: var(--navy-btn); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .error { color: #B3261A; font-size: 0.92rem; font-weight: 600; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); font-weight: 600; }
.form-status--ok { background: #E8F3EC; color: #1D5A35; border: 1px solid #B9DCC5; }
.form-status--warn { background: #FFF5E5; color: #6A4300; border: 1px solid #F0D3A1; font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-card { border-top: 3px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.contact-card address { font-style: normal; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); font-size: 0.98rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 168px; }
.footer-brand p { color: var(--on-dark); max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.92rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 14vw, 160px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (max-width: 520px) {
  .hero-facts li { padding: 16px 12px 18px; }
  .hero-facts strong { font-size: 1.08rem; }
  .hero-facts span { font-size: 0.88rem; line-height: 1.4; display: block; }
}

/* =========================================================
   Layout patterns (v2)
   ========================================================= */
.accent { color: var(--red); }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto 48px; max-width: 760px; }
.center-head h2 { color: var(--navy); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; }
.center-head p { margin: 0 auto; }
.two-tone { color: var(--navy); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 40px; background: rgba(46,54,143,.08); color: var(--navy-btn); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pill--quiet { background: var(--white); border: 1px solid var(--line); color: var(--ink); letter-spacing: .04em; text-transform: none; font-size: .9rem; }

/* Utility bar */
.utility-bar { background: var(--navy-deep); color: var(--on-dark); font-size: .88rem; }
.utility-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; min-height: 38px; }
.utility-bar p { margin: 0; }
.utility-bar a { color: var(--on-dark); text-decoration: none; }
.utility-bar a:hover { color: var(--white); text-decoration: underline; }
.utility-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.utility-group a::after { content: " ↗"; }
@media (max-width: 640px) { .utility-links li:not(:first-child) { display: none; } }

/* Hero slider */
.slider { position: relative; isolation: isolate; background: var(--navy-deep); color: var(--white); min-height: clamp(560px, 78vh, 760px); display: flex; flex-direction: column; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
.slide-media { position: absolute; inset: 0; z-index: -1; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,16,58,.62) 0%, rgba(12,16,58,.52) 50%, rgba(12,16,58,.82) 100%); }
.slide-inner { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-block: 72px 150px; }
.slide-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #F3B3AC; }
.slide-eyebrow span { width: 40px; height: 1px; background: currentColor; opacity: .7; }
.slide-title { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 600; line-height: 1.08; max-width: 20ch; }
.slide-accent { display: block; color: #C9CEF2; font-weight: 500; font-size: .72em; margin-top: 8px; }
.slide-text { color: #EEF0F8; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 52ch; margin: 0; }
.slide .btn-row { justify-content: center; margin-top: 6px; }
.slider-foot { position: relative; z-index: 2; margin-top: auto; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.slider-controls { display: flex; align-items: center; gap: 2px; }
.slider-dot { position: relative; width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.slider-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 12px; transform: translate(-50%, -50%); background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.slider-dot[aria-current="true"] { width: 40px; }
.slider-dot[aria-current="true"]::before { width: 32px; background: var(--white); }
.slider-dot:hover::before { background: var(--white); }
.slider-pause { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; }
.slider-pause svg { width: 14px; height: 14px; }
.quick-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-size: .95rem; }
.quick-links a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.quick-links a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.quick-links a:hover { text-decoration: underline; }
@media (max-width: 600px) { .slide-inner { padding-block: 56px 170px; } .slider { min-height: 640px; } }

/* Featured system + mini cards */
.feature-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 22px 44px -36px rgba(16,22,78,.55); }
.feature-media { position: relative; min-height: 340px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 18px; top: 18px; background: var(--white); color: var(--navy); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; }
.feature-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-body h3 { font-size: 1.9rem; color: var(--navy); font-weight: 600; }
.tagline { color: var(--red); font-weight: 600; margin: 0; }
.tag-list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { font-size: .88rem; padding: 4px 12px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 900px) { .feature-card { grid-template-columns: minmax(0, 1fr); } .feature-media { min-height: 0; aspect-ratio: 16 / 10; } }
.mini-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
@media (max-width: 1080px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-card, .app-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mini-card:hover, .app-card:hover { transform: translateY(-3px); border-color: #C9CDDA; box-shadow: 0 18px 32px -26px rgba(16,22,78,.6); color: inherit; }
.mini-card .media { background: var(--product); aspect-ratio: 4 / 3; }
.mini-card .media img, .app-card .media img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .body, .app-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mini-card h3 { font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.mini-card p { font-size: .93rem; line-height: 1.45; }
.explore { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: inline-flex; gap: 6px; }
.explore::after { content: "→"; transition: transform .15s; }
.mini-card:hover .explore::after, .app-card:hover .explore::after { transform: translateX(3px); }

/* Capability tabs */
.cap { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; overflow: hidden; box-shadow: 0 22px 44px -36px rgba(16,22,78,.55); }
.cap-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.cap-tab { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font: 600 1rem var(--font-body); color: var(--ink); cursor: pointer; position: relative; }
.cap-tab .num { flex: none; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-size: .9rem; color: var(--navy-btn); }
.cap-tab:hover { background: var(--white); }
.cap-tab[aria-selected="true"] { background: var(--white); color: var(--navy); }
.cap-tab[aria-selected="true"]::before { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 3px; background: var(--red); }
.cap-tab[aria-selected="true"] .num { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cap-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cap-panel[hidden] { display: none; }
.cap-text { padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cap-count { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cap-text h3 { font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.cap-media { position: relative; margin: 0; min-height: 360px; }
.cap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-media figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(16,22,78,.82); color: var(--white); padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
@media (max-width: 1080px) { .cap-panel { grid-template-columns: minmax(0, 1fr); } .cap-media { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 820px) {
  .cap { grid-template-columns: minmax(0, 1fr); }
  .cap-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .cap-tab { flex: none; border-bottom: 0; border-right: 1px solid var(--line); padding: 14px 16px; }
  .cap-tab[aria-selected="true"]::before { right: 0; left: 0; top: auto; bottom: 0; width: auto; height: 3px; }
}

/* Application cards */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.app-card .media { aspect-ratio: 16 / 9; background: var(--product); }
.app-card .meta { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-btn); }
.app-card h3 { font-size: 1.2rem; color: var(--ink); }
.app-card p { font-size: .97rem; }

/* About block */
.about-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.about-media { position: relative; margin: 0 0 28px; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 10px; }
.about-media::before { content: ""; position: absolute; right: -14px; bottom: -14px; width: 60%; height: 60%; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); border-radius: 0 0 14px 0; z-index: -1; }
.about-card { position: absolute; left: 20px; bottom: -24px; background: var(--navy); color: var(--white); padding: 16px 20px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 18px 30px -18px rgba(16,22,78,.7); }
.about-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.about-card span { color: var(--on-dark); font-size: .92rem; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 44px; margin: 6px 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .about-block { grid-template-columns: minmax(0, 1fr); } }

/* Why accordion */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.why-media { margin: 0; }
.why-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 10px; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.accordion details[open] { background: var(--white); box-shadow: 0 16px 30px -26px rgba(16,22,78,.6); }
.accordion summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--navy-btn); }
.accordion details[open] summary .num { background: var(--navy); color: var(--white); border-color: var(--navy); }
.accordion summary .label { flex: 1; }
.accordion summary .caret { width: 12px; height: 12px; transition: transform .2s; }
.accordion details[open] summary .caret { transform: rotate(180deg); }
.accordion details p { padding: 0 18px 18px 66px; margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* Footer v2 */
.footer-top { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
.footer-group { font-size: .92rem; }
.footer-group a { color: var(--white); text-decoration: underline; }
.footer-contact li { line-height: 1.45; }
.footer-certs { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-certs h2 { margin: 0 !important; }
.footer-certs ul { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.footer-certs li { padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; font-size: .88rem; color: var(--white); }
@media (max-width: 1080px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* Rounded corners for cards */
.product-card, .project-card img, .split-media img, .card-grid, .custom-box, .gallery-main, .project img { border-radius: 10px; }
.product-card .media { border-radius: 10px 10px 0 0; }
.card-grid { overflow: hidden; }

.app-card .media, .mini-card .media { overflow: hidden; }
.app-card .media img { aspect-ratio: 16 / 9; height: auto; }
.mini-card .media img { aspect-ratio: 4 / 3; height: auto; }
@media (max-width: 680px) { .mini-grid .mini-card:last-child:nth-child(odd) { grid-column: 1 / -1; } .mini-grid .mini-card:last-child:nth-child(odd) .media img { aspect-ratio: 16 / 9; object-fit: contain; } }

/* =========================================================
   v3: design language across every page
   ========================================================= */
/* Interior banners: centred, like the home slider */
.banner { text-align: center; }
.banner::after { background: linear-gradient(180deg, rgba(12,16,58,.66) 0%, rgba(12,16,58,.58) 50%, rgba(12,16,58,.84) 100%); }
.banner-inner { align-items: center; padding-block: clamp(72px, 10vw, 128px); gap: 18px; }
.banner .crumbs ol { justify-content: center; }
.banner .crumbs { display: inline-flex; padding: 6px 16px; border-radius: 30px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: .85rem; letter-spacing: .04em; }
.banner-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; max-width: 22ch; line-height: 1.1; }
.banner p { margin: 0 auto; color: #EEF0F8; }

/* Intro paragraphs */
.intro-grid .lead { color: var(--navy); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.4; }
.split h2, .split h3 { color: var(--navy); font-weight: 600; }
.split-media img { box-shadow: 0 24px 44px -34px rgba(16,22,78,.7); }

/* Numbered rounded cards (was a ruled grid) */
.card-grid { border: 0; gap: 20px; counter-reset: card; overflow: visible; border-radius: 0; }
.card-grid > * { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 70px 26px 28px; counter-increment: card; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-grid > *::before { content: counter(card, decimal-leading-zero); position: absolute; left: 26px; top: 24px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: .9rem; }
.card-grid > *::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; background: var(--red); border-radius: 0 0 3px 3px; opacity: 0; transition: opacity .2s; }
.card-grid > *:hover { transform: translateY(-3px); border-color: #C9CDDA; box-shadow: 0 18px 32px -26px rgba(16,22,78,.6); }
.card-grid > *:hover::after { opacity: 1; }
.card-grid h3 { font-weight: 600; }
.section--grey .card-grid > * { background: var(--white); }

/* Industries as cards */
.industry-list { gap: 18px; counter-reset: ind; }
.industry-list li { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 22px 24px; background: var(--white); counter-increment: ind; }
.industry-list h3 { color: var(--navy); font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.industry-list h3::before { content: counter(ind, decimal-leading-zero); font-size: .85rem; color: var(--red); }

/* System cards match the home mini cards */
.product-card { border-radius: 10px; overflow: hidden; }
.product-card:hover { transform: translateY(-3px); }
.product-card h3 { font-weight: 600; }
.product-card .text-link { color: var(--red); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* Product page */
.product-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%); }
.product-summary h1 { font-weight: 600; }
.gallery-main { overflow: hidden; box-shadow: 0 24px 44px -34px rgba(16,22,78,.6); }
.thumb { border-radius: 8px; overflow: hidden; }
.key-specs { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; background: var(--white); }
.key-specs div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-cols > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px 18px; }
.spec-cols h3 { font-weight: 600; border-bottom: 0; padding-bottom: 0; display: flex; align-items: center; gap: 10px; }
.spec-cols h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.spec-list li:last-child { border-bottom: 0; }

/* Call-out panel */
.custom-box { background: var(--navy) !important; color: var(--on-dark); border: 0; border-radius: 12px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 24px 44px -30px rgba(16,22,78,.8); }
.custom-box h2 { color: var(--white) !important; }
.custom-box p { color: var(--on-dark); }
.custom-box .btn--primary { background: var(--white); color: var(--navy); }
.custom-box .btn--primary:hover { background: var(--on-dark); color: var(--navy-deep); }

/* Projects as cards */
.project { background: var(--white); border: 1px solid var(--line) !important; border-radius: 12px; padding: clamp(20px, 3vw, 32px) !important; box-shadow: 0 22px 44px -40px rgba(16,22,78,.6); }
.project img, .project .figure-panel { border-radius: 10px; }
.project h2 { color: var(--navy); font-weight: 600; }
.project .meta { color: var(--red); }
.project-list { gap: 28px; }

/* Locations */
.locations { border: 0; gap: 16px; }
.locations > div, .locations > div:nth-child(even) { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: var(--white); }
.locations .role { color: var(--red); }

/* Contact */
.contact-grid > .stack { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 22px 44px -40px rgba(16,22,78,.6); }
.contact-grid h2 { color: var(--navy); font-weight: 600; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 18px 20px; }
.contact-card .eyebrow { color: var(--red); }
.field input, .field select, .field textarea { border-radius: 8px; }

/* Services in-page navigation as pills */
nav[aria-label="On this page"] .btn { border-radius: 40px; }

/* Text links in brand red */
.text-link { color: var(--red); }
.text-link:hover { color: #A81F12; }

/* v4: Engineered in Australia */
.aus-band { background: var(--navy-deep); color: var(--on-dark); padding: clamp(40px, 6vw, 64px) 0; }
.aus-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.aus-mark { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); display: grid; place-items: center; }
.aus-mark svg { width: 36px; height: 36px; }
.aus-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #ff8d80; margin: 0 0 6px; }
.aus-text h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; }
.aus-text h2 .accent { color: #ff8d80; }
.aus-text p:last-child { margin: 0; max-width: 58ch; color: var(--on-dark); }
.aus-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aus-points li { display: grid; border-left: 3px solid var(--red); padding-left: 14px; }
.aus-points strong { color: var(--white); font-family: "Work Sans", sans-serif; font-weight: 600; }
.aus-points span { font-size: .92rem; }
@media (max-width: 960px) { .aus-inner { grid-template-columns: auto minmax(0, 1fr); } .aus-points { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aus-inner { grid-template-columns: minmax(0, 1fr); } .aus-points { grid-template-columns: minmax(0, 1fr); } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--aus { border-color: var(--navy); color: var(--navy); }
.chip--aus::before { background: var(--navy); }
.utility-group { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.utility-aus { font-weight: 600; }

.aus-mark { font-family: "Work Sans", sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: .06em; border: 2px solid var(--red); }
.aus-mark { width: 92px; height: 84px; border: 0; border-radius: 0; background: none; font-size: 0; }
.aus-mark svg { width: 92px; height: 84px; }
@media (max-width: 560px) { .aus-mark, .aus-mark svg { width: 76px; height: 70px; } }

/* ===== v6: motion & polish ===== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
p { text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 110px; }

/* Scroll reveals (only when JS + motion allowed) */
.motion [data-reveal="up"] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion [data-reveal="up"].is-in { opacity: 1; transform: none; }
.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), box-shadow .3s, border-color .3s; transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.motion [data-reveal="stagger"].is-in > *:hover { transition-delay: 0s; }
.motion .card-grid[data-reveal].is-in > *:hover, .motion .mini-grid.is-in > .mini-card:hover, .motion .app-grid.is-in > .app-card:hover, .motion .product-grid.is-in > .product-card:hover { transform: translateY(-4px); }
.motion [data-reveal="wipe"] > picture, .motion [data-reveal="wipe"] > img { display: block; clip-path: inset(0 0 100% 0 round 12px); transition: clip-path 1.2s var(--ease-io); }
.motion [data-reveal="wipe"].is-in > picture, .motion [data-reveal="wipe"].is-in > img { clip-path: inset(0 0 0 0 round 12px); }
.motion [data-reveal="wipe"] img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.motion [data-reveal="wipe"].is-in img { transform: scale(1); }
.motion .about-media .about-card { opacity: 0; transform: translateY(16px); transition: opacity .7s .7s var(--ease-out), transform .7s .7s var(--ease-out); }
.motion .about-media.is-in .about-card { opacity: 1; transform: none; }

/* Australia outline draws itself */
.motion .aus-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 2.2s var(--ease-io), fill-opacity .8s 1.8s; }
.motion .aus-mark circle { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.motion .aus-mark.is-in path { stroke-dashoffset: 0; fill-opacity: 1; }
.motion .aus-mark.is-in circle { opacity: 1; transform: scale(1); transition-delay: 2s; }
.motion .aus-mark.is-in circle:last-of-type { transition-delay: 2.2s; }
.motion .aus-mark.is-in circle { animation: aus-ping 2.4s 2.6s var(--ease-out) infinite; }
@keyframes aus-ping { 0%, 70%, 100% { stroke-width: 1; } 35% { stroke-width: 5; stroke: rgba(215, 42, 26, .35); } }

/* Hero: slow zoom + text entrance per slide */
.slide-media img, .banner-media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }
.motion .slide.is-active .slide-media img { animation: kenburns 9s var(--ease-out) both; }
@keyframes kenburns { from { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); } to { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); } }
.motion .slide.is-active .slide-inner > * { animation: rise .9s var(--ease-out) both; }
.motion .slide.is-active .slide-inner > :nth-child(2) { animation-delay: .08s; }
.motion .slide.is-active .slide-inner > :nth-child(3) { animation-delay: .18s; }
.motion .slide.is-active .slide-inner > :nth-child(4) { animation-delay: .28s; }
.motion .banner-inner > * { animation: rise .9s var(--ease-out) both; }
.motion .banner-inner > :nth-child(2) { animation-delay: .08s; }
.motion .banner-inner > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: .001; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.banner, .slider { overflow: hidden; }

/* Tabs and accordion transitions */
.motion .cap-panel:not([hidden]) .cap-text { animation: rise .6s var(--ease-out) both; }
.motion .cap-panel:not([hidden]) .cap-media { animation: fade-zoom .8s var(--ease-out) both; }
@keyframes fade-zoom { from { opacity: .001; transform: scale(.97); } to { opacity: 1; transform: none; } }
.motion .accordion details[open] > p { animation: rise .5s var(--ease-out) both; }
.accordion summary .caret { transition: transform .35s var(--ease-out); }

/* Lazy image fade */
.motion img.img-fade { opacity: 0; transition: opacity .7s var(--ease-out), transform 1.6s var(--ease-out); }
.motion img.img-fade.is-loaded { opacity: 1; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red), #ff6a55); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; pointer-events: none; }

/* Refined interactions */
.btn { transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(16, 22, 78, .55); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: .08s; }
.mini-card .media img, .app-card .media img, .product-card .media img, .project-card img, .feature-media img { transition: transform 1s var(--ease-out); }
.mini-card:hover .media img, .app-card:hover .media img, .product-card:hover .media img, .project-card:hover img { transform: scale(1.05); }
.project-card { overflow: hidden; }
.mini-card, .app-card, .product-card, .card-grid > * { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.site-footer a, .quick-links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out), color .2s; }
.site-footer a:hover, .quick-links a:hover { text-decoration: none; background-size: 100% 1px; }
.nav-link { transition: color .2s, border-color .3s; }
.site-header { transition: border-color .3s, box-shadow .4s var(--ease-out), background-color .3s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.motion [data-reveal="wipe"] > picture { overflow: hidden; border-radius: 10px; }
main { overflow-x: clip; }

/* ===== v8: history timeline ===== */
.history { background: var(--navy-deep); color: var(--on-dark); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.history::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(46,54,143,.55), transparent 70%); pointer-events: none; }
.history .wrap { position: relative; }
.center-head--dark h2 { color: var(--white); }
.center-head--dark h2 .accent { color: #ff8d80; }
.center-head--dark p:not(.pill) { color: var(--on-dark); }
.center-head--dark .pill { background: rgba(255,255,255,.1); color: var(--white); }
.timeline { list-style: none; margin: clamp(40px, 6vw, 64px) auto 0; padding: 0; max-width: 1040px; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(var(--red), rgba(215,42,26,.25)); transform-origin: top; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.tl-card { grid-column: 1; margin-right: 48px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 22px 26px; text-align: right; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out, ease); }
.tl-item:nth-child(even) .tl-card { grid-column: 2; margin: 0 0 0 48px; text-align: left; }
.tl-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.tl-year { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1; color: #ff8d80; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.tl-card h3 { color: var(--white); font-size: 1.2rem; margin: 0 0 6px; }
.tl-card p:last-child { margin: 0; color: var(--on-dark); }
.tl-dot { position: absolute; left: 50%; top: 30px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--navy-deep), 0 0 0 7px rgba(215,42,26,.4); z-index: 1; }
@media (max-width: 760px) {
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 1; margin: 0 0 0 36px; text-align: left; }
  .tl-dot { left: 8px; top: 26px; }
}
/* timeline motion: line draws down, entries step in from their side */
.motion .timeline[data-reveal]::before { transform: scaleY(0); transition: transform 1.8s var(--ease-io); }
.motion .timeline.is-in::before { transform: scaleY(1); }
.motion .timeline[data-reveal="stagger"] > .tl-item { transform: translateX(-28px); transition-delay: calc(var(--i, 0) * 220ms + 150ms); }
.motion .timeline[data-reveal="stagger"] > .tl-item:nth-child(even) { transform: translateX(28px); }
.motion .timeline.is-in > .tl-item { transform: none; }
.motion .timeline .tl-dot { transform: scale(0); transition: transform .6s cubic-bezier(.34,1.56,.64,1); transition-delay: inherit; }
.motion .timeline.is-in .tl-dot { transform: scale(1); }
@media (max-width: 760px) { .motion .timeline[data-reveal="stagger"] > .tl-item:nth-child(even) { transform: translateX(-28px); } .motion .timeline.is-in > .tl-item:nth-child(even) { transform: none; } }
.motion .timeline[data-reveal="stagger"].is-in > .tl-item, .motion .timeline[data-reveal="stagger"].is-in > .tl-item:nth-child(even) { transform: none; }
