/* RERWOD site styles. Layout: left-aligned 1240px column. White header (full-colour logo), full-bleed photo hero, navy proof band,
   then white / steel bands. Everything stays quiet so the content leads.
   Type (Sophia 10-19): Source Serif 4 for headings and the intro statement, IBM Plex Sans for text, labels and figures.
   Colour: Rerwod navy and gold from the logo, on white and a cool steel neutral. Single light theme by choice (public company site). */
:root {
  --navy: #0F2033;
  --navy-2: #18304A;
  --text: #18222E;
  --muted: #526070;
  --steel: #EEF2F5;
  --line: #D3DAE1;
  --gold: #C29A3F;
  --gold-ink: #7F6220;
  --white: #FFFFFF;
  --on-navy: #D5DEE8;
  --head-h: 105px; /* sticky header height, so in-page links land below it */
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Source Serif 4", Cambria, Georgia, serif;
  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.3125rem;
  --s2: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);
  --s3: clamp(1.625rem, 1.3rem + 0.75vw, 2rem);
  --s4: clamp(2rem, 1.375rem + 2.15vw, 3.25rem);
  --lede: 1.1875rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main, main [id] { scroll-margin-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: var(--s0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; margin: 0; text-wrap: balance; overflow-wrap: break-word; color: var(--navy); }
h1 { font-size: var(--s4); }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s1); line-height: 1.25; }
p { margin: 0; }
.lede { font-size: var(--lede); color: var(--muted); max-width: 60ch; line-height: 1.5; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.band { padding-block: clamp(48px, 6vw, 80px); }
.band.steel { background: var(--steel); }
/* Two bands that belong together (Partners tiers): halve the padding where they meet */
.band.join-next { padding-bottom: clamp(32px, 4vw, 56px); }
.band.join-prev { padding-top: clamp(32px, 4vw, 56px); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.stack-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }
.section-head { display: grid; gap: 0.875rem; max-width: 62ch; }
.section-head h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--gold); margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: var(--lede); line-height: 1.5; }
.head-row > .section-head { flex: 1 1 560px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.text-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--gold-ink); }
.fineprint { font-size: var(--s-1); color: var(--muted); }

/* Header: white, full-colour logo */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; }
/* The logo artwork starts 7.94% of its height in from the left of the file; this lines it up with the page edge. */
.logo img { margin-left: calc(var(--logo-h) * -0.0794); }
.site-header .logo img { --logo-h: 86px; height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; padding: 10px 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.nav a:hover { color: var(--navy); }
/* aria-current marks the page itself; .here marks the parent section of a sub-page (same look). */
.nav a[aria-current="page"], .nav a.here { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 15px 26px; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D1AA51; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--steel); }
.nav .btn { margin-left: 14px; padding: 12px 20px; background: var(--navy); color: var(--white); }
.nav .btn:hover { background: var(--navy-2); color: var(--white); }
.burger { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); font: inherit; font-weight: 700; padding: 8px 14px; cursor: pointer; }
/* Mobile: keep the quote action visible next to Menu */
.head-actions { display: none; align-items: center; gap: 8px; }
.quote-mini { display: none; }
@media (min-width: 1101px) and (max-width: 1240px) {
  .site-header .logo img { --logo-h: 70px; }
  .nav a { padding: 10px 12px; }
  .nav .btn { margin-left: 10px; }
}
@media (max-width: 1100px) {
  :root { --head-h: 73px; }
  .site-header .wrap { min-height: 72px; }
  .site-header .logo img { --logo-h: 60px; }
  .burger { display: inline-block; }
  .head-actions { display: flex; }
  .quote-mini { display: inline-block; background: var(--navy); color: var(--white); border: 2px solid var(--navy); padding: 8px 14px; font-weight: 700; text-decoration: none; }
  .quote-mini:hover { background: var(--navy-2); }
  /* The open menu never runs past the bottom of the screen; it scrolls instead (launch audit 13 Nov, F-01). */
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 32, 51, 0.12); max-height: calc(100vh - var(--head-h)); max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"], .nav a.here { box-shadow: inset 4px 0 0 var(--gold); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; }
}
@media (max-width: 600px) {
  .site-header .wrap { gap: 12px; }
  .site-header .logo img { --logo-h: 44px; }
  .quote-mini, .burger { font-size: 0.9375rem; padding: 8px 10px; }
}
@media (max-width: 374px) {
  .site-header .logo img { --logo-h: 36px; }
  .head-actions { gap: 6px; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero: full-bleed photo slideshow */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero .slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.07); }
.hero .slide.on { opacity: 1; }
/* First photo: a smaller file for phones and tablets (launch audit F-04, mobile speed). */
.hero .slide.s1 { background-image: url(../assets/hero-offshore.jpg); }
@media (max-width: 900px) { .hero .slide.s1 { background-image: url(../assets/hero-offshore-m.jpg); } }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 32, 51, 0.92) 0%, rgba(15, 32, 51, 0.7) 45%, rgba(15, 32, 51, 0.15) 100%); }
/* minmax(0, 1fr): the column never grows past the screen, even with enlarged text spacing (launch audit 13 Nov, F-02). */
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: clamp(72px, 9.5vw, 136px) clamp(40px, 5vw, 56px); }
.hero h1 { color: var(--white); max-width: 26ch; }
.hero .lede { color: var(--white); max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: var(--s-1); color: var(--on-navy); }
.hero .meta button { font: inherit; background: rgba(15, 32, 51, 0.6); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.6); padding: 8px 16px; min-height: 44px; cursor: pointer; }
/* Phones: keep the slideshow control on the left, clear of the WhatsApp button. */
@media (max-width: 600px) { .hero .meta { flex-direction: column; align-items: flex-start; } }
/* Short screens: the control sits first, so it stays still as the caption changes. */
@media (min-width: 601px) and (max-height: 760px) { .hero .meta { flex-direction: row-reverse; justify-content: flex-end; } }
.page-hero { background: var(--navy); color: var(--on-navy); }
.page-hero .wrap { display: grid; gap: 1.1rem; padding-block: clamp(48px, 5vw, 72px); }
.page-hero h1 { color: var(--white); max-width: 36ch; font-size: clamp(2rem, 1.375rem + 1.5vw, 2.75rem); }
.page-hero .lede { color: var(--on-navy); }
.crumbs { font-size: var(--s-1); color: var(--on-navy); }
/* Padding widens the tap area without moving the text (launch audit 13 Nov, F-14). */
.crumbs a { color: var(--on-navy); padding-inline: 4px; margin-inline: -4px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-inline: 0.4em; }
/* Project pages: long official names, so a wider, quieter title and less padding. */
.page-hero.project .wrap { gap: 0.75rem; padding-block: clamp(32px, 4.5vw, 56px); }
.page-hero.project h1 { max-width: 38ch; font-size: clamp(1.75rem, 1.2rem + 1.45vw, 2.5rem); }

/* Intro statement */
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro .statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.625rem); line-height: 1.2; color: var(--navy); text-wrap: balance; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }
.intro .statement + p { font-size: var(--lede); line-height: 1.5; color: var(--muted); }
.intro-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
/* Links that sit in a line of text stay whole where they fit and wrap only when they can't (launch audit 13 Nov, F-02). */
.doc-line .text-link, .why-cards .text-link { display: inline-block; max-width: 100%; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; width: max-content; gap: 16px; animation: scroll 45s linear infinite; }
.marquee:hover .track, .marquee:focus-within .track, .marquee.paused .track { animation-play-state: paused; }
.marquee .cell { flex: 0 0 auto; width: 210px; height: 100px; background: var(--white); display: grid; place-items: center; padding: 18px; }
.marquee .cell img { max-height: 58px; width: auto; max-width: 100%; object-fit: contain; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pause-btn { font: inherit; font-size: var(--s-1); font-weight: 700; border: 2px solid var(--navy); background: var(--white); color: var(--navy); padding: 8px 16px; min-height: 44px; cursor: pointer; }

/* Shared content blocks used on inner pages */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.facts > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.facts p { color: var(--muted); }
@media (max-width: 720px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.client-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.client-logos li { display: grid; place-items: center; height: 112px; padding: 18px 24px; background: var(--white); border: 1px solid var(--line); }
.client-logos img { height: auto; max-height: 64px; max-width: 100%; object-fit: contain; }
@media (max-width: 900px) { .client-logos li { padding: 14px 12px; } }
@media (max-width: 720px) { .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .client-logos li { height: 96px; padding: 14px 16px; } }

.auth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.auth { padding: 28px 0; display: grid; gap: 12px; align-content: start; }
.auth .mark, .scp .mark { height: 120px; display: grid; place-items: center; padding: 16px 24px; background: var(--white); border: 1px solid var(--line); }
.auth .mark img, .scp .mark img { height: auto; max-width: 100%; max-height: 88px; object-fit: contain; }
.auth .status { font-size: var(--s-1); color: var(--gold-ink); font-weight: 700; }
.auth p { color: var(--muted); }
@media (max-width: 860px) { .auth-grid { grid-template-columns: minmax(0, 1fr); } .auth { padding: 22px 0; } .auth + .auth { border-top: 1px solid var(--line); } }
/* Partners, second tier: same card anatomy as the authorised manufacturers. Set apart by its own heading, a thin top rule and no gold status line (gold status = authorisation). */
.scp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.scp { padding: 28px 0; display: grid; gap: 12px; align-content: start; }
.scp p { color: var(--muted); }
@media (max-width: 860px) { .scp-list { grid-template-columns: minmax(0, 1fr); } .scp { padding: 22px 0; } .scp + .scp { border-top: 1px solid var(--line); } }

/* Case studies */
.did { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.did li { padding-left: 24px; position: relative; }
.did li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 3px; background: var(--gold); }

/* Footer */
/* Gold top rule so the footer separates from any band above it. */
.site-footer { background: var(--navy); color: var(--on-navy); font-size: var(--s-1); border-top: 4px solid var(--gold); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px; }
.site-footer .col { display: grid; gap: 8px; align-content: start; }
.site-footer h2 { font-family: var(--font); font-weight: 700; font-size: var(--s0); color: var(--white); margin-bottom: 4px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .logo img { --logo-h: 64px; height: var(--logo-h); width: auto; margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.14); }
/* Left-aligned so the floating WhatsApp button never covers the Privacy link. */
.site-footer .legal .wrap { display: flex; flex-wrap: wrap; gap: 4px 32px; align-items: center; padding-block: 18px; font-size: var(--s-1); }
.site-footer .footer-wa { display: none; }
/* Tablets: logo block on top, three link columns under it. */
@media (max-width: 860px) {
  .site-footer .top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; padding-block: 40px 32px; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
/* Phones: the supply list is one tap away in the menu, so it drops out and the footer stays under a screen tall. */
@media (max-width: 600px) {
  .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding-block: 32px 24px; }
  .site-footer .top > :nth-child(3) { display: none; }
  .site-footer .top > :nth-child(4) { grid-column: 1 / -1; }
  .site-footer .top > :nth-child(2) { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
  .site-footer .top > :nth-child(2) h2 { grid-column: 1 / -1; }
  .site-footer .logo img { --logo-h: 44px; margin-bottom: 4px; }
  .site-footer .col { gap: 4px; }
  .site-footer .legal .wrap { padding-block: 8px; }
  .site-footer .footer-wa { display: block; }
}
/* --wa-lift is set by site.js while the footer is on screen, so the button stays above it. */
.wa { --wa-edge: 24px; position: fixed; right: var(--wa-edge); bottom: max(calc(var(--wa-edge) + env(safe-area-inset-bottom, 0px)), var(--wa-lift, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 16px; border-radius: 24px; background: #1A7F45; color: #FFFFFF; font-size: 1rem; font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(15, 32, 51, 0.25); }
.wa:hover { background: #146638; }
.wa:focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 3px var(--white); }
.wa svg { flex: none; }
@media (max-width: 600px) { .wa { --wa-edge: 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slide { transition: none; }
  .marquee .track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee .cell.dup { display: none; }
}

/* Client logos directly under the hero */
.logos-band { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 36px 40px; }
.logos-band .wrap { display: grid; gap: 22px; }
.logos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.logos-head h2 { font-family: var(--font); font-size: var(--s1); color: var(--muted); font-weight: 600; }
.logos-band .marquee .cell { background: transparent; }

/* Figures inside the Home intro (the one place the figures live) */
.figures { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; align-content: start; }
.figures > div { border-top: 3px solid var(--gold); padding-top: 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.figures dd { margin: 0; font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.25vw, 2.75rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.figures dt { font-size: var(--s0); color: var(--muted); }

/* Who We Are overview */
.overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.overview-lead { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.5; color: var(--navy); font-weight: 500; }
.mv-list { margin: 8px 0 0; display: grid; gap: 20px; }
.mv-list > div { border-left: 4px solid var(--gold); padding-left: 20px; display: grid; gap: 4px; }
.mv-list dt { font-family: var(--display); font-weight: 500; color: var(--navy); font-size: var(--s1); }
.mv-list dd { margin: 0; color: var(--text); }
@media (max-width: 860px) { .overview { grid-template-columns: minmax(0, 1fr); } }

/* How we work: animated scenes */

.lgx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.lgx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .lgx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: one row to swipe, with the next scene showing at the edge. */
@media (max-width: 560px) {
  .lgx-grid { --edge: clamp(16px, 4vw, 40px); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); padding-block: 2px 8px; }
  .lgx-grid > .sc { scroll-snap-align: start; }
}
.lgx.paused * { animation-play-state: paused !important; }
/* Each scene loops its own 6 s move (staggered 1 s apart); the gold highlight still steps through the scenes over 36 s. */
.lgx .an{animation-duration:6s;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-delay:calc(var(--d,0s) / 6);animation-fill-mode:both;transform-box:fill-box;transform-origin:center}
.lgx .mv{animation-name:lgmv}.lgx .fk{animation-name:lgfk}.lgx .gone{animation-name:lggone}.lgx .pop{animation-name:lgpop}.lgx .dash{animation-name:lgdash;animation-timing-function:linear}.lgx .land{animation-name:lgland}
.lgx .lp{animation-iteration-count:infinite;animation-timing-function:ease-in-out;transform-box:fill-box;transform-origin:center}
.lgx .wv{animation-name:lgwv;animation-duration:2.6s;animation-timing-function:linear}
.lgx .bob{animation-name:lgbob;animation-duration:3.4s;animation-direction:alternate}
.lgx .smoke{animation-name:lgsmoke;animation-duration:3s}
.lgx .cloud{animation-name:lgcl;animation-duration:14s;animation-direction:alternate}.lgx .cloud2{animation-name:lgcl;animation-duration:18s;animation-direction:alternate-reverse}
@keyframes lgmv{0%{opacity:0;transform:translate(var(--x0,0px),var(--y0,0px))}6%{opacity:1;transform:translate(var(--x0,0px),var(--y0,0px))}62%,86%{opacity:1;transform:translate(var(--x1,0px),var(--y1,0px))}95%{opacity:0;transform:translate(var(--x1,0px),var(--y1,0px))}100%{opacity:0;transform:translate(var(--x0,0px),var(--y0,0px))}}
@keyframes lgland{0%{opacity:0;transform:translate(-250px,-86px) rotate(12deg)}6%{opacity:1;transform:translate(-250px,-86px) rotate(12deg)}30%{transform:translate(-120px,-42px) rotate(14deg)}48%{transform:translate(-34px,-10px) rotate(6deg)}62%,86%{opacity:1;transform:translate(0,0) rotate(0deg)}95%{opacity:0;transform:translate(0,0) rotate(0deg)}100%{opacity:0;transform:translate(-250px,-86px) rotate(12deg)}}
@keyframes lgfk{0%,8%{transform:translateX(0)}38%{transform:translateX(24px)}62%,100%{transform:translateX(0)}}
@keyframes lggone{0%,38%{opacity:1}40%,96%{opacity:0}100%{opacity:1}}
@keyframes lgpop{0%,38%{opacity:0}40%,90%{opacity:1}96%,100%{opacity:0}}
@keyframes lgdash{from{transform:translateX(0)}to{transform:translateX(-120px)}}
@keyframes lgwv{from{transform:translateX(0)}to{transform:translateX(-22px)}}
@keyframes lgbob{from{transform:translateY(0)}to{transform:translateY(2.5px)}}
@keyframes lgsmoke{0%{transform:translateY(0);opacity:1}100%{transform:translateY(-8px);opacity:.3}}
@keyframes lgcl{from{transform:translateX(0)}to{transform:translateX(22px)}}
.lgx .sc{animation:lghl 36s infinite;animation-delay:var(--d,0s);animation-fill-mode:both}
.lgx .nb{animation:lgnb 36s infinite;animation-delay:var(--d,0s);animation-fill-mode:both}
@keyframes lghl{0%,16.2%{border-color:#B8913A;box-shadow:0 8px 22px rgba(184,145,58,.28)}17.2%,100%{border-color:#D9DEE6;box-shadow:none}}
@keyframes lgnb{0%,16.2%{background:#B8913A;color:#0F1E2E;transform:scale(1.12)}17.2%,100%{background:#0F1E2E;color:#fff;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.lgx *{animation:none!important}}

/* Why RERWOD cards (Who We Are) */
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.why-cards > div { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.why-cards p { color: var(--muted); }
@media (max-width: 720px) { .why-cards { grid-template-columns: minmax(0, 1fr); } }

/* Supply category names and tags (Home and What We Do) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: var(--s-1); font-weight: 600; color: var(--navy); border: 1px solid var(--line); background: var(--white); padding: 2px 8px; border-radius: 2px; }

/* Manufacturer strip (Home): its own short white band between supply and projects */
.mfr.band { background: var(--white); }
.mfr .logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mfr .logos a { display: grid; place-items: center; height: 128px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.mfr .logos a + a { border-left: 1px solid var(--line); }
.mfr .logos img { max-height: 60px; width: auto; object-fit: contain; }
@media (max-width: 900px) { .mfr .logos a { height: 104px; padding: 12px 16px; } }
@media (max-width: 640px) { .mfr .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mfr .logos a + a { border-left: 0; } .mfr .logos a:last-child { grid-column: 1 / -1; } }

/* Contact (approved mockup, Sophia 11-01): two matched cards, then one ruled office row */
.page-hero.short .wrap { padding-block: clamp(40px, 4vw, 56px); }
.contact-band { padding-top: 56px; }
.contact-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.contact-paths > div { display: flex; flex-direction: column; background: var(--steel); padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); }
.contact-paths h2 { font-size: var(--s2); }
.contact-paths p { margin-top: 14px; }
/* margin-top: auto pins the buttons to the card's bottom whatever the text length. */
.contact-paths .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: auto; padding-top: 28px; }
.contact-office { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-office > div { display: grid; gap: 4px; align-content: start; justify-items: start; }
.contact-office .k { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .contact-paths .actions { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px) { .contact-paths .actions { align-items: stretch; } .contact-paths .actions .text-link { align-self: flex-start; } .contact-paths .actions .btn { width: 100%; text-align: center; } }

/* What We Do: How we work stage row */
.stage-row { list-style: none; margin: 0; padding: 0; counter-reset: stg; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.stage-row li { counter-increment: stg; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.stage-row li::before { content: counter(stg, decimal-leading-zero); font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.stage-row h3 { font-size: var(--s1); }
.stage-row p { color: var(--muted); font-size: var(--s0); }
@media (max-width: 1000px) { .stage-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stage-row { grid-template-columns: minmax(0, 1fr); } }

/* Serif weight fix (Sophia 10-19 picked "thickened"): pin Source Serif 4 to its text optical size so large headings keep sturdy strokes */
h1, h2, h3, .intro .statement, .mv-list dt { font-optical-sizing: none; font-variation-settings: "opsz" 18; }

/* Case study card: one component on Home and Case Studies. Rows line up across cards via subgrid. */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
.pcard { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.pcard:hover { border-color: var(--navy); }
.pc-logo { height: 148px; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.pc-logo img { max-width: 100%; height: auto; max-height: 100%; }
.pc-kind { padding: 20px 24px 0; font-size: var(--s-1); font-weight: 600; color: var(--gold-ink); }
.pc-title { padding: 6px 24px 10px; font-family: var(--display); font-weight: 500; font-size: var(--s2); line-height: 1.15; color: var(--navy); margin: 0; }
.pc-supply { padding: 0 24px 18px; color: var(--muted); }
.pc-go { padding: 0 24px 24px; align-self: end; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pcard:hover .pc-go { color: var(--gold-ink); }
@media (max-width: 900px) {
  .pcards { display: flex; flex-direction: column; gap: 16px; }
  .pcard { display: block; }
  .pc-logo { height: 116px; padding: 12px; }
  .pc-logo img { max-height: 84px; width: auto !important; max-width: 60%; }
  .pc-kind, .pc-title, .pc-supply, .pc-go { display: block; }
}

/* Project page. Three sizes only: page title, section heading, everything else (--s0). */
.proj-band { padding-block: clamp(40px, 5vw, 72px); }
.proj-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 64px); row-gap: 32px; align-items: start; }
.proj-overview { grid-column: 1; grid-row: 1; }
.proj-aside { grid-column: 2; grid-row: 1 / -1; }
.proj-did { grid-column: 1; grid-row: 2; }
.proj-overview p, .proj-outcome p { max-width: 60ch; text-wrap: pretty; }
.proj-main h2 { font-size: var(--s1); margin-bottom: 10px; }
.proj-facts { margin: 0; background: var(--steel); padding: clamp(20px, 2.4vw, 28px); display: grid; }
.proj-facts > div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.proj-facts > div:first-child { padding-top: 0; border-top: 0; }
.proj-facts > div:last-child { padding-bottom: 0; }
.proj-facts dt { flex: 0 0 7.25rem; font-weight: 600; color: var(--navy); }
.proj-facts dd { flex: 1 1 10rem; min-width: 0; margin: 0; }
/* Manufacturer logos have white backgrounds; multiply lets them sit on the panel without a white box. */
.proj-maker img { height: 44px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.proj-outcome { grid-column: 1; grid-row: 3; margin-top: 8px; background: var(--white); border-left: 4px solid var(--gold); padding: 4px 0 4px clamp(16px, 2vw, 24px); }
@media (max-width: 860px) {
  .proj-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .proj-overview, .proj-aside, .proj-did, .proj-outcome { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) { .page-hero h1 { font-size: 1.875rem; } .page-hero.project h1 { font-size: 1.6875rem; } }

/* Touch screens: links get room to tap. */
@media (max-width: 900px), (pointer: coarse) {
  .site-footer a { display: inline-block; padding-block: 11px; }
  .crumbs a { display: inline-block; padding-block: 11px; }
}
/* Phones: most visitors take a quick look here. */
@media (max-width: 900px) {
  .head-row > .text-link, p > .text-link:only-child, .contact-office .text-link { display: inline-block; padding-block: 10px; }
  .quote-mini, .burger { min-height: 44px; }
  /* Standalone links get a 44px tap area without moving the text (launch audit 13 Nov, F-14). */
  .intro-links { row-gap: 18px; }
  .intro-links .text-link, .contact-paths .actions .text-link { padding-block: 9px; margin-block: -9px; }
}
/* Phones and portrait tablets (11-11, launch audit F-01): the text spans most of the photo, so the shade is even across it,
   the slide numbers are set below. */
@media (max-width: 900px) { .hero .shade { background: rgba(15, 32, 51, 0.72); } }

/* Touch defaults */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(194, 154, 63, 0.2); }

/* Hero, premium pass (11-03): taller desktop hero, slide tabs with a progress line, slow zoom, shade weighted to the text side.
   Contrast checked over all three photos at 920-1920px: headline 4.25:1 or better, intro 4.74:1 or better, tabs 4.89:1 or better. */
.hero .slide.on { animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero .tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.hero .meta .tab { border: 0; background: none; padding: 12px 0 14px; }
.hero .tab { position: relative; font: inherit; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); padding: 12px 0 14px; min-height: 44px; cursor: pointer; }
.hero .tab .n { color: var(--gold); margin-right: 6px; }
/* Below 900px the numbers sit over bright sky, so they are white, not gold (launch audit F-01). */
@media (max-width: 900px) { .hero .tab .n { color: var(--white); } }
.hero .tab:hover, .hero .tab.on { color: var(--white); }
.hero .tab .prog { position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: rgba(255, 255, 255, 0.18); }
.hero .tab .prog::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero .tab.on .prog::after { transform: scaleX(1); }
.hero.playing .tab.on .prog::after { animation: hero-prog 6s linear both; }
.hero.held .tab.on .prog::after { animation: none; transform: scaleX(1); }
/* Pause also freezes the slow zoom (launch audit F-02, WCAG 2.2.2). */
.hero.held .slide.on { animation-play-state: paused; }
@keyframes hero-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .meta #hero-pause { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(15, 32, 51, 0.45); border-color: rgba(255, 255, 255, 0.45); padding: 8px 14px; }
@media (min-width: 901px) {
  .hero { min-height: min(84vh, 860px); display: flex; align-items: flex-end; }
  .hero .wrap { padding-block: 120px 36px; }
  .hero .shade { background: linear-gradient(90deg, rgba(15, 32, 51, 0.9) 0%, rgba(15, 32, 51, 0.76) 45%, rgba(15, 32, 51, 0.5) 63%, rgba(15, 32, 51, 0.1) 88%), linear-gradient(0deg, rgba(15, 32, 51, 0.55) 0%, rgba(15, 32, 51, 0) 40%); }
}
/* Narrow desktops and landscape tablets: the text covers more of the photo, so the shade reaches further. */
@media (min-width: 901px) and (max-width: 1199px) {
  .hero .shade { background: linear-gradient(90deg, rgba(15, 32, 51, 0.9) 0%, rgba(15, 32, 51, 0.8) 50%, rgba(15, 32, 51, 0.55) 70%, rgba(15, 32, 51, 0.15) 92%), linear-gradient(0deg, rgba(15, 32, 51, 0.55) 0%, rgba(15, 32, 51, 0) 40%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide, .hero .slide.on { transform: none; animation: none; }
  .hero.playing .tab.on .prog::after { animation: none; }
}

/* Who We Are: values row under the Why RERWOD cards (13 Nov) */
.vals { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.vals .vals-k { font-family: var(--display); font-weight: 600; font-size: var(--s1); color: var(--navy); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.vals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.vals li { font-family: var(--font); font-weight: 400; font-size: 1.0625rem; color: var(--text); position: relative; padding-left: 17px; }
.vals li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 7px; background: var(--gold); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 720px) { .vals { display: grid; gap: 12px; } .vals ul { display: grid; gap: 10px; } }

/* What We Do supply section: product cells (three columns) and the documentation line. */
.sup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.sup-cell { display: grid; gap: 10px; align-content: start; padding-block: 24px 28px; border-top: 1px solid var(--line); }
.sup-cell p { color: var(--muted); }
.doc-line { color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.doc-copy { display: block; max-width: 60ch; }
@media (max-width: 900px) { .sup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sup-grid { grid-template-columns: minmax(0, 1fr); } }

/* Page heroes: same minimum height on laptops so one-line titles (Contact) match the rest (13 Nov) */
@media (min-width: 901px) { .page-hero .wrap { min-height: 250px; align-content: center; } }

/* Privacy notice: room above headings; right edge lines up with the end of "Case Studies" in the menu; justified on laptops (Sophia, 13 Nov) */
.prose { display: grid; gap: 1rem; max-width: 62rem; }
.prose h2 { font-size: var(--s2); margin-top: 1.25rem; }
@media (min-width: 1101px) { .prose { max-width: calc(100% - 315px); } }
@media (min-width: 901px) { .prose p { text-align: justify; } }

/* Windows high-contrast mode: keep the gold accents visible in the system text colour (launch audit 13 Nov, F-13). */
@media (forced-colors: active) {
  .section-head h2::before, .did li::before, .vals li::before { forced-color-adjust: none; background: CanvasText; }
  .hero .tab .prog::after { forced-color-adjust: none; background: Highlight; }
}
/* Desktop scale (Sophia, 13 Nov): the whole desktop layout at 90%, the same as browser zoom at 90%, because
   the site felt zoomed in on laptops. Phones are unchanged. After scaling, body text stays at 16px, small print
   at 14px and the hero tabs at 13px, and the Home hero still takes 84% of the screen. */
@media (min-width: 1101px) {
  html { zoom: 0.9; }
  :root { --s0: calc(16px / 0.9); --s-1: calc(14px / 0.9); }
  .hero .tab, .hero .meta #hero-pause { font-size: calc(13px / 0.9); }
  /* Screen-height units shrink with the page too, so the hero is set back to 84% of the screen (cap 774px on screen). */
  .hero { min-height: min(calc(84vh / 0.9), 860px); }
}

/* Home: What we supply by segment (B3 cards, chosen 16 Nov) */
.segc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.segc-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--navy); box-shadow: 0 18px 40px -28px rgba(15,32,51,0.45); }
.segc-img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.segc-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); }
.segc-body h3 { font-size: var(--s1); font-weight: 600; line-height: 1.2; }
.segc-body h3::before { content: ""; display: block; width: 48px; height: 4px; background: var(--gold); margin-bottom: 16px; }
.segc-body > p { margin: 0; color: var(--muted); font-size: var(--s0); line-height: 1.5; }
.segc-chips { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segc-chips li { background: var(--steel); color: var(--navy); font-weight: 600; font-size: max(0.9375rem, var(--s-1)); padding: 7px 12px; }
@media (max-width: 900px) { .segc { grid-template-columns: minmax(0, 1fr); } }

/* What We Do: two segments, featured pair (15 Nov) */
.seg-v { display: grid; gap: clamp(24px, 3vw, 32px); scroll-margin-top: calc(var(--head-h) + 16px); }
.seg-v + .seg-v { margin-top: clamp(24px, 4vw, 48px); }
.seg-vhead { border-top: 3px solid var(--navy); padding-top: 22px; display: grid; gap: 8px; }
.seg-vhead h3 { font-size: var(--s2); font-weight: 600; }
.seg-vhead p { color: var(--muted); font-size: var(--lede); line-height: 1.5; max-width: 60ch; }
.feat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feat { background: var(--steel); border-top: 4px solid var(--navy); padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; align-content: start; scroll-margin-top: calc(var(--head-h) + 16px); }
.feat h4 { font-family: var(--display); font-size: var(--s1); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0; font-optical-sizing: none; font-variation-settings: "opsz" 18; text-wrap: balance; }
.feat-auth { font-size: max(0.9375rem, var(--s-1)); font-weight: 600; color: var(--gold-ink); }
.feat .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sup-name { font-family: var(--font); font-size: var(--s0); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.35; }
.sup-cell { scroll-margin-top: calc(var(--head-h) + 16px); }
.sourced { background: var(--steel); border-left: 4px solid var(--gold); padding: 24px clamp(20px, 3vw, 32px); display: grid; gap: 12px; }
.sourced h4 { font-family: var(--display); font-size: var(--s1); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0; }
.sourced ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sourced li { background: var(--white); padding: 6px 12px; font-weight: 600; font-size: max(0.9375rem, var(--s-1)); color: var(--navy); }
.sourced p { color: var(--muted); max-width: 60ch; }
.seg-link { color: inherit; text-decoration: none; }
.seg-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 900px) { .feat-pair { grid-template-columns: minmax(0, 1fr); } .sup-grid.two { grid-template-columns: minmax(0, 1fr); } }

/* Keep short hyphenated terms on one line (audit 17 Nov, F-07). */
.nw { white-space: nowrap; }
/* What We Do: From factory to site scene captions, on the site's own type tokens (were inline styles with Cambria first). */
.sc-h { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--s1); line-height: 1.25; color: var(--navy); }
.sc-p { margin: 0; font-size: var(--s0); line-height: 1.6; color: var(--muted); }
