/* =====================================================================
   Foreshore Marine Exhaust — site.css  (v2)
   Design: 06C — off-white paper, black ink, soft light blue, bright orange
   Type: Geist (text) · Geist Mono (labels) · Archivo Expanded (display)
   Sizing is fluid on width AND height so every section fits its screen.
   ===================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --paper: #f7f6f2;
  --ink: #0b0b0b;
  --blue: #cfe4f2;
  --orange: #ff6a13;
  --orange-text: #b84a08;
  --muted: #62625e;
  --soft: #464642;
  --line: #d6d5d0;

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4vw, 72px);                       /* page gutter — room to breathe */
  --gap: clamp(20px, 2.6vw, 48px);
  --sec: clamp(112px, calc(10vh + 6vw), 240px);       /* section padding */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --snap: cubic-bezier(0.19, 1, 0.22, 1);
  --header-h: 72px;
  --svh: 100vh;
}
@supports (height: 100svh) { :root { --svh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: clamp(15px, 0.35vw + 10px, 17px); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 999; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-200%); transition: transform .3s; }
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.mono-caps { font-family: var(--mono); font-size: clamp(12px, .78vw, 17px); letter-spacing: .14em; text-transform: uppercase; }
.mono-caps .dot { width: clamp(9px, .6vw, 13px); height: clamp(9px, .6vw, 13px); }
.idx { color: var(--orange-text); }
.on-blue .idx { color: inherit; font-weight: 600; }
.on-dark .idx { color: var(--orange); }
.display {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  line-height: .88; letter-spacing: -.035em; text-transform: uppercase;
}
.h-xl { font-size: clamp(40px, min(10.4vw, 20vh), 200px); }
.h-lg { font-size: clamp(32px, min(6.4vw, 12.5vh), 116px); }
.h-md { font-size: clamp(30px, min(3.6vw, 6.4vh), 58px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }

.lede { font-size: clamp(22px, min(2.5vw, 4.4vh), 40px); font-weight: 500; line-height: 1.16; letter-spacing: -.03em; max-width: 30ch; }
.tagline { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(16px, min(1.8vw, 3.2vh), 28px); line-height: 1.14; text-transform: uppercase; max-width: 24ch; }
.body { color: var(--soft); max-width: 60ch; }
.body p + p { margin-top: 1em; }
.on-dark .body { color: #bdbcb6; }
.on-blue .body { color: #2e2e2b; }
.hl { background: var(--blue); padding: 0 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.o { color: var(--orange); }
.label { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.screen { min-height: var(--svh); display: flex; flex-direction: column; justify-content: center; padding-block: var(--sec); }
.lay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--gap); }
.stack-y { display: grid; gap: clamp(28px, 3.4vw, 56px); align-content: start; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rule { border-top: 2px solid var(--ink); }
.on-dark .rule { border-top-color: var(--paper); }
.bg-blue { background: var(--blue); }
.bg-ink { background: var(--ink); color: var(--paper); }
.panel { margin-inline: var(--pad); padding: clamp(24px, 3.4vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; min-height: 48px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1; white-space: nowrap;
  transition: color .45s var(--ease);
}
.btn { --bf: var(--orange); --bh: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); --bf: var(--ink); --bh: var(--paper); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; --bf: var(--ink); --bh: var(--paper); }
.on-dark .btn-orange { --bf: var(--paper); --bh: var(--ink); }

/* Hover: colour floods in left → right; an overlay copy of the label in the new colour is revealed in step,
   so the text changes colour exactly where the fill has reached. */
.btn::before, .menu-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bf); border-radius: inherit; clip-path: inset(0 100% 0 0 round 999px); transition: clip-path .65s cubic-bezier(.65, 0, .35, 1); }
.btn-l, .btn-h { display: inline-flex; align-items: center; gap: inherit; white-space: nowrap; }
.btn-h { position: absolute; inset: 0; z-index: 1; padding: inherit; justify-content: inherit; color: var(--bh); pointer-events: none; clip-path: inset(0 100% 0 0); transition: clip-path .65s cubic-bezier(.65, 0, .35, 1); }
/* in from the left (.is-in) … out through the right (.is-out); JS resets it invisibly afterwards */
.btn.is-in::before, .menu-btn.is-in::before, .btn:focus-visible::before, .menu-btn:focus-visible::before { clip-path: inset(0 0 0 0 round 999px); }
.btn.is-in .btn-h, .menu-btn.is-in .btn-h, .btn:focus-visible .btn-h, .menu-btn:focus-visible .btn-h { clip-path: inset(0 0 0 0); }
.btn.is-out::before, .menu-btn.is-out::before { clip-path: inset(0 0 0 100% round 999px); }
.btn.is-out .btn-h, .menu-btn.is-out .btn-h { clip-path: inset(0 0 0 100%); }
.btn.no-t::before, .menu-btn.no-t::before, .btn.no-t .btn-h, .menu-btn.no-t .btn-h { transition: none !important; }
.btn .arr { transition: transform .5s var(--ease); }
.btn.is-in .arr { transform: translateX(4px); }
.menu-btn { --bf: var(--ink); --bh: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.site-header.on-image .menu-btn { --bf: #fff; --bh: var(--ink); }
.menu-open .menu-btn { --bf: var(--ink); --bh: var(--blue); }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px;
  padding-inline: var(--pad); color: var(--ink);
  transition: background-color .5s, color .5s, transform .7s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.on-image { color: #fff; }
.site-header.is-solid { background: rgba(247, 246, 242, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--ink); border-color: var(--line); }
.site-header { transform: none !important; } /* the nav never leaves the screen */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; justify-self: start; }
.brand svg { width: 30px; height: 30px; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(-14deg); }
.header-mid { justify-self: center; text-align: center; }
.nav { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); font-size: clamp(12.5px, .95vw, 14px); }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 8px 15px; min-height: 36px; font-size: clamp(12px, .9vw, 13px); }
.menu-btn { display: none; justify-self: end; align-items: center; padding: 8px 16px; min-height: 42px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 13px; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--blue); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--pad) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu-open .site-header { color: var(--ink); background: transparent; border-color: transparent; }
.menu nav { display: grid; gap: 2px; }
.menu nav a { display: flex; align-items: baseline; gap: 14px; overflow: hidden; }
.menu nav a span { display: inline-block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(26px, min(7.4vw, 5.6vh), 48px); line-height: 1.08; letter-spacing: -.035em; text-transform: uppercase; transform: translateY(105%); transition: transform .8s var(--ease); }
.menu nav a span { position: relative; }
.menu nav a span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.menu nav a:hover span::after, .menu nav a:focus-visible span::after, .menu nav a:active span::after { transform: scaleX(1); transform-origin: left; }
.menu-open .menu nav a span { transform: none; }
.menu-open .menu nav a:nth-child(2) span { transition-delay: .06s; }
.menu-open .menu nav a:nth-child(3) span { transition-delay: .12s; }
.menu-open .menu nav a:nth-child(4) span { transition-delay: .18s; }
.menu-open .menu nav a:nth-child(5) span { transition-delay: .24s; }
.menu a[aria-current="page"] span { color: var(--orange-text); }

/* ---------- Page transition ---------- */
/* Page change: a quick fade */
main, .site-footer { transition: opacity .28s ease; }
.is-leaving main, .is-leaving .site-footer { opacity: 0; }

/* =====================================================================
   MOTION SYSTEM — nothing is on screen until you scroll to it.
   [data-split]   big display type: letters SNAP up out of a mask, staggered
   [data-words]   headings & ledes: words rise one by one
   [data-reveal]  body copy: soft focus-pull (blur + fade + drift)
   [data-scramble] mono labels: characters decode
   [data-clip]    images: wipe up while the photo settles from a zoom
   [data-stagger] groups: children cascade
   .rule          dividing lines draw left → right
   [data-odo]     numbers roll like an odometer
   ===================================================================== */
.wd { display: inline-block; white-space: nowrap; }
.js [data-split] .wd { overflow: hidden; vertical-align: top; padding: .06em .02em .08em; margin: -.06em -.02em -.08em; }
.js [data-split] .ch { display: inline-block; transform: translate3d(0, 112%, 0) rotate(7deg); transform-origin: 0 100%; }
.js [data-split].in .ch { transform: none; transition: transform .95s var(--snap); transition-delay: calc(var(--i) * 26ms); }

.js [data-words] .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-words] .wm > span { display: inline-block; transform: translate3d(0, 105%, 0); }
.js [data-words].in .wm > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 34ms); }

.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(8px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-d="1"] { transition-delay: .12s; } .js [data-d="2"] { transition-delay: .24s; } .js [data-d="3"] { transition-delay: .36s; } .js [data-d="4"] { transition-delay: .48s; }

.js [data-stagger]:not(.in) > * { opacity: 0; }
.js [data-stagger].in > * { animation: stUp 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.js [data-stagger="right"].in > * { animation-name: stRight; animation-duration: 1.2s; animation-delay: calc(var(--i, 0) * 80ms); }
.js [data-stagger="wave"].in > * { animation-name: stWave; animation-duration: 1.3s; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes stUp { from { opacity: 0; transform: translate3d(0, 34px, 0); } }
@keyframes stRight { from { opacity: 0; transform: translate3d(90px, 0, 0); } }
@keyframes stWave { 0% { opacity: 0; transform: translate3d(0, 90px, 0) scale(.94); } 60% { opacity: 1; } }

/* Line-aware text: each line rises in turn (body) */
.js [data-lines-in] .lw { display: inline-block; opacity: 0; transform: translate3d(0, .9em, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--li, 0) * 90ms); }
.js [data-lines-in].in .lw { opacity: 1; transform: none; }

/* Slide-ins for the about teaser */
.js [data-reveal="left"] { transform: translate3d(-90px, 0, 0); filter: none; transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js [data-reveal="left"].in { transform: none; }
.js [data-clip][data-clip="right"] { clip-path: inset(0 0 0 100%); transform: translate3d(90px, 0, 0); transition: clip-path 1.5s var(--ease-io), transform 1.6s var(--ease); }
.js [data-clip][data-clip="right"].in { clip-path: inset(0); transform: none; }

[data-clip] { overflow: hidden; }
.js [data-clip] { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); }
.js [data-clip].in { clip-path: inset(0 0 0 0); }
.js [data-clip] img { transform: scale(1.22); transition: transform 2.2s var(--ease); }
.js [data-clip].in img { transform: none; }

.js .rule { border-top-color: transparent !important; background: linear-gradient(var(--rc, var(--ink)), var(--rc, var(--ink))) 0 0 / 0% 2px no-repeat border-box; transition: background-size 1.6s var(--ease-io); }
.js .on-dark .rule { --rc: var(--paper); }
.js .rule.in { background-size: 100% 2px; }

.js [data-scramble] { opacity: 0; transition: opacity .25s; }
.js [data-scramble].in { opacity: 1; }

.js .scrub .w { opacity: .16; transition: opacity .3s linear; }
.js .scrub .w.on { opacity: 1; }

.odo { display: inline-flex; font-variant-numeric: tabular-nums; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; vertical-align: bottom; }
.odo-col > span { display: block; transform: translate3d(0, 0, 0); transition: transform 1.8s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.odo-col > span > span { display: block; height: 1em; }

/* ---------- Images ---------- */
.img { position: relative; overflow: hidden; background: #d9d8d3; }
.img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.img .px { position: absolute; inset: -10% 0; will-change: transform; }
.img .px img { height: 100%; }
[data-clip] > .img { height: 100%; }

/* =====================================================================
   HOME
   ===================================================================== */
.hero { position: relative; height: var(--svh); min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.hero-slides, .hero-slides img { position: absolute; inset: 0; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides img.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.55) 12%, rgba(10,10,10,.18) 22%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 38%, rgba(10,10,10,.55) 66%, rgba(10,10,10,.9) 100%); }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap); }
.hero .h-xl { font-size: clamp(34px, min(5.1vw, 11.5vh), 130px); white-space: nowrap; }
.hero-foot { column-gap: clamp(48px, 5vw, 120px); }
.hero-tag { flex: none; max-width: none; text-align: right; font-size: clamp(15px, min(1.45vw, 2.7vh), 26px); line-height: 1.18; padding-bottom: .3vw; }
.hero-tag span { display: block; }
/* Title and tagline stack once there isn't comfortable room for both side by side */
@media (max-width: 1180px) {
  .hero-foot { flex-direction: column; align-items: stretch; width: min-content; max-width: calc(100% - 2 * var(--pad)); right: auto; gap: 18px; }
  .hero-tag { text-align: left; }
  .hero-tag span { display: inline; }
  .hero .h-xl { font-size: clamp(24px, min(7.3vw, 12vh), 96px); }
}
.hero-left { display: grid; gap: clamp(16px, 2.6vh, 28px); min-width: 0; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-top: 18px; }
.stat-k { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stats-3 { grid-template-columns: repeat(3, auto); justify-content: space-between; }
.stat-v { white-space: nowrap; margin-top: 6px; font-size: clamp(19px, 2.8vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Innovation — header left, copy right, cards below (Coralia-style) */
.panel { margin-inline: calc(var(--pad) / 2); }
.innov-sec { padding-bottom: var(--sec); }
.innov { padding: clamp(28px, 4.4vw, 84px); }
.innov-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.innov-h { font-size: clamp(34px, min(4.8vw, 8.6vh), 88px); font-weight: 500; letter-spacing: -.05em; line-height: .98; max-width: 13ch; }
.innov-body { justify-self: end; text-align: right; font-size: clamp(15px, .95vw, 17px); line-height: 1.6; max-width: 54ch; color: #2e2e2b; padding-top: 34px; }
.iref { cursor: default; background: linear-gradient(var(--orange), var(--orange)) no-repeat 100% 100% / 0% 2px; transition: background-size .6s var(--ease); padding-bottom: 1px; }
.iref.on, .iref:focus-visible { background-size: 100% 2px; background-position: 0 100%; outline: none; }
.innov-body sup { color: var(--orange-text); font-weight: 600; font-size: .7em; margin-left: 1px; }
.icards-bar { display: none; position: relative; height: 2px; margin-top: 18px; background: rgba(11,11,11,.15); overflow: hidden; }
.icards-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: var(--ink); transform: translateX(calc(var(--ip, 0) * 300%)); transition: transform .15s linear; }
.icards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); margin-top: clamp(48px, 9vh, 112px); }
.icard { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); outline: none; min-height: clamp(420px, 64vh, 640px); padding: clamp(20px, 2vw, 32px); display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 24px); transition: transform .7s var(--ease); }
.icard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.icard:hover, .icard.hl { transform: translateY(-8px); }
.icard:hover::after, .icard.hl::after { transform: scaleX(1); transform-origin: left; }
.icard:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.ic-top { display: flex; align-items: baseline; gap: 14px; }
.ic-n { font-family: var(--mono); font-size: 11px; color: var(--orange); flex: none; }
.ic-k { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; color: var(--blue); }
.ic-img { position: relative; flex: 1; min-height: 120px; overflow: hidden; background: #1a1a19; }
.ic-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); transform: scale(1.04); transition: transform 1.4s var(--ease), filter .8s; }
.icard:hover .ic-img img, .icard.hl .ic-img img { transform: scale(1.12); }
.ic-v { display: flex; align-items: flex-end; white-space: nowrap; font-size: clamp(40px, 3.8vw, 76px); font-weight: 500; letter-spacing: -.06em; line-height: .9; color: var(--blue); }
.ic-v small { font-size: .3em; letter-spacing: 0; margin-left: .25em; padding-bottom: .2em; }
.icard p { margin-top: 14px; min-height: 4.5em; font-size: 14px; line-height: 1.5; color: #bdbcb6; max-width: 32ch; }

/* Service rows — hover (or tap) to roll open */
.svc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-areas: 'intro list' 'btn list'; gap: 28px var(--gap); }
.svc-intro { grid-area: intro; }
.svc-list { grid-area: list; align-self: start; }
.svc-btn { grid-area: btn; align-self: end; }
@media (min-width: 901px) { .svc-intro .body { max-width: 30ch !important; } }
.svc-list { border-top: 2px solid var(--ink); }
.svc-row { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); cursor: default; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(-1 * clamp(10px, 1vw, 16px)); z-index: -1; background: var(--blue); opacity: 0; transition: opacity .5s var(--ease); }
.svc-row-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding: clamp(14px, 2.2vh, 22px) 0; }
.svc-row-head .mono { color: var(--muted); }
.svc-row-title { text-align: left; font-size: clamp(18px, min(1.7vw, 3.2vh), 26px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.svc-row .circ { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); transform: scale(.3); opacity: 0; transition: transform .6s var(--ease), opacity .3s; }
.svc-row .circ:hover { background: var(--ink); color: var(--paper); }
.svc-row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc-row-body > div { overflow: hidden; }
.svc-row-body p { padding: 0 44px 20px 52px; max-width: 64ch; color: var(--soft); font-size: 15px; opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .6s var(--ease); }
.svc-row.on::before { opacity: 1; }
.svc-row.on .circ { transform: none; opacity: 1; }
.svc-row.on .svc-row-body { grid-template-rows: 1fr; }
.svc-row.on .svc-row-body p { opacity: 1; transform: none; transition-delay: .08s; }
@media (hover: hover) {
  .svc-row:hover::before { opacity: 1; }
  .svc-row:hover .circ { transform: none; opacity: 1; }
  .svc-row:hover .svc-row-body { grid-template-rows: 1fr; }
  .svc-row:hover .svc-row-body p { opacity: 1; transform: none; transition-delay: .08s; }
}
.svc-row:focus-within::before { opacity: 1; }
.svc-row:focus-within .circ { transform: none; opacity: 1; }
.svc-row:focus-within .svc-row-body { grid-template-rows: 1fr; }
.svc-row:focus-within .svc-row-body p { opacity: 1; transform: none; }
/* Quote — blank until it fills the screen */
.quote { position: relative; min-height: var(--svh); display: flex; flex-direction: column; justify-content: center; padding-block: var(--sec); }
.quote > .mono { position: absolute; left: var(--pad); top: clamp(32px, 7vh, 72px); }
.quote-t { font-size: clamp(44px, min(7.4vw, 13vh), 128px); font-weight: 500; letter-spacing: -.06em; line-height: .96; max-width: 12ch; }
.quote-t em { font-style: normal; color: var(--orange); }
.js .quote-t .lw { display: inline-block; opacity: 0; transform: translate3d(-1.1em, 0, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--li, 0) * 180ms + var(--wi, 0) * 70ms); }
.js .quote-t.in .lw { opacity: 1; transform: none; }

/* Why it matters / 60 m */

/* Projects — pinned stack: one vessel grows, the rest stay thin slices */
.pstack { position: relative; }
.pstack-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pstack-h { font-size: clamp(24px, min(2.6vw, 4.6vh), 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 13px; }
@property --w { syntax: '<number>'; inherits: true; initial-value: 0; }
.pstack-pin { position: sticky; top: 0; height: var(--svh); display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 28px); padding: calc(var(--header-h) + clamp(12px, 3vh, 40px)) var(--pad) clamp(20px, 4vh, 48px); }
.pstack-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(5px, .8vh, 10px); }
.pst { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 27vw, 460px); gap: clamp(16px, 2.6vw, 48px); --w: 0; }
.pst-img { position: relative; overflow: hidden; background: #d9d8d3; min-height: 0; }
.pst-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(calc(1 - var(--w) * .85)) contrast(1.05); transform: scale(calc(1.12 - var(--w) * .12)); }
.pst-side { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; border-top: 1px solid var(--line); padding-top: 4px; }
.pst-row { display: flex; align-items: baseline; gap: 14px; transform-origin: 0 0; }
.pst-no { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.pst-name { display: block; font-size: clamp(30px, min(3.6vw, 6.4vh), 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; transform-origin: 0 0; transform: scale(calc(.38 + var(--w) * (var(--fit, 1) - .38))); white-space: nowrap; }
.pst-more { margin-top: auto; display: grid; gap: 14px; justify-items: start; opacity: calc(var(--w) * 1.6 - .6); transform: translateY(calc((1 - var(--w)) * 16px)); padding-bottom: 2px; }
.pst-more .mono { color: var(--muted); }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: var(--gap); align-items: stretch; }
.about-card { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 3vw, 48px); }
.about-card p { color: #c4c3be; }
.about-teaser .img-wrap { min-height: clamp(360px, 62vh, 720px); }

/* Home closing contact: the two lines slide in from opposite sides, lock together, then stay put */
.hcta { padding: var(--sec) var(--pad); display: grid; justify-items: center; gap: clamp(28px, 5vh, 56px); text-align: center; overflow: hidden; }
.hcta-h { display: grid; justify-items: center; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(22px, min(6.3vw, 12.5vh), 136px); line-height: .9; letter-spacing: -.035em; text-transform: uppercase; }
.hcta-h > span { display: block; white-space: nowrap; transition: transform 1.3s cubic-bezier(.16, 1, .3, 1), opacity .9s, filter 1s; }
.hcta-l1 { transform: translate3d(-45vw, 0, 0); opacity: 0; filter: blur(14px); }
.hcta-l2 { transform: translate3d(45vw, 0, 0); opacity: 0; filter: blur(14px); }
.hcta-h.in > span { transform: none; opacity: 1; filter: none; }
.hcta-h.in .hcta-l2 { transition-delay: .08s; }
.hcta-q { display: inline-block; color: var(--orange); transform: scale(0) rotate(-30deg); transform-origin: 50% 80%; transition: transform .7s cubic-bezier(.34, 1.8, .5, 1) 1.15s; }
.hcta-h.in .hcta-q { transform: none; }
.hcta-h:hover .hcta-l2 { color: var(--orange); }
.hcta-h > span.hcta-l2 { transition-property: transform, opacity, filter, color; }
.hcta-btn { font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; padding: clamp(14px, 1.4vw, 20px) clamp(26px, 2.6vw, 40px); }
@media (prefers-reduced-motion: reduce) { .hcta-h > span, .hcta-q { transform: none; opacity: 1; filter: none; } }

/* Gallery (end of About): white section, centred title, columns of mixed-shape photos; neighbouring columns
   drift in opposite directions as you scroll. Hover darkens the photo and shows what it is. */
.gal { padding-block: var(--sec); display: grid; gap: clamp(48px, 9vh, 104px); overflow: hidden; }
.gal-page { padding-top: calc(var(--header-h) + clamp(40px, 9vh, 112px)); min-height: var(--svh); }
.gal-head { display: grid; justify-items: center; gap: clamp(12px, 2vh, 20px); text-align: center; }
.gal-h { font-size: clamp(40px, min(6vw, 11vh), 112px); font-weight: 500; letter-spacing: -.06em; line-height: .95; }
.gal-pool { display: none; }
.gal-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); align-items: start; padding-block: 80px; }
.gal-col { display: grid; gap: clamp(18px, 2.4vw, 36px); transform: translate3d(0, calc(var(--gp, 0) * var(--dir, 1) * 70px), 0); will-change: transform; }
.gal-col:nth-child(even) { margin-top: clamp(40px, 7vw, 110px); }
.gal-item button { position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: #e4e3de; }
.gal-item img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.gal-item.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.gal-item.wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.gal-item.square img { aspect-ratio: 1; object-fit: cover; }
.gal-item button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.3) 45%, rgba(10,10,10,.8) 100%); opacity: 0; transition: opacity .45s; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; gap: 10px; align-items: baseline; padding: 14px 16px; text-align: left; font-size: 14px; line-height: 1.35; color: #fff; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .4s, transform .5s var(--ease); }
.gal-cap .mono { font-size: 10px; color: var(--orange); flex: none; }
.gal-item button:hover img, .gal-item button:focus-visible img { transform: scale(1.05); }
.gal-item button:hover::after, .gal-item button:focus-visible::after, .gal-item button:hover .gal-cap, .gal-item button:focus-visible .gal-cap { opacity: 1; transform: none; }
@media (hover: none) { .gal-item button::after { opacity: .7; } .gal-cap { opacity: 1; transform: none; font-size: 12px; padding: 10px 10px; } }
@media (max-width: 600px) { .gal-cols, .gal-col { gap: 14px; } .gal-cols { padding-block: 40px; } .gal-col { transform: translate3d(0, calc(var(--gp, 0) * var(--dir, 1) * 36px), 0); } }
@media (prefers-reduced-motion: reduce) { .gal-col { transform: none; } }
/* Lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px); border: 0; background: rgba(10,10,10,.96); color: var(--paper); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb-fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.lb-img { max-width: min(92vw, 1400px); max-height: 78dvh; width: auto; height: auto; object-fit: contain; }
.lb-cap { display: flex; gap: 14px; align-items: baseline; font-size: 14px; }
.lb-no { color: var(--orange); }
.lb-btn, .lb-close { position: fixed; color: var(--paper); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; transition: background .3s, color .3s; }
.lb-btn { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 18px; }
.lb-prev { left: clamp(10px, 2vw, 28px); } .lb-next { right: clamp(10px, 2vw, 28px); }
.lb-close { top: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); padding: 8px 16px; font-size: 14px; }
.lb-btn:hover, .lb-close:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 600px) { .lb-btn { top: auto; bottom: 18px; margin-top: 0; } }

/* Projects closing: wide black-and-white photo, then a short line and one button */
.pj-cta { padding-block: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img img" "copy act"; column-gap: 32px; row-gap: clamp(24px, 4vh, 40px); align-items: end; }
.pj-cta-img { grid-area: img; height: clamp(160px, 28vh, 440px); }
.pj-cta-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.pj-cta-copy { grid-area: copy; display: grid; gap: clamp(12px, 2vh, 18px); justify-items: start; }
.pj-cta-act { grid-area: act; }
.pj-cta-h { font-size: clamp(28px, min(3vw, 5.6vh), 52px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.pj-cta-p { font-size: clamp(15px, 1.1vw, 18px); max-width: 52ch; }
.pj-cta-btn { font-size: clamp(15px, 1.1vw, 17px); font-weight: 500; padding: clamp(14px, 1.3vw, 18px) clamp(26px, 2.4vw, 36px); }
@media (max-width: 700px) { .pj-cta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "copy" "act"; row-gap: 22px; } .pj-cta-img { height: 180px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); padding: clamp(28px, 5vh, 56px) var(--pad) 18px; overflow: hidden; font-size: 13px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px 32px; }
.js .foot-word[data-split].in .ch { transition-duration: 1.1s; transition-delay: calc(var(--i) * 60ms); }
.foot-word { display: block; font-size: clamp(56px, 12vw, 210px); font-weight: 600; letter-spacing: -.06em; line-height: .8; white-space: nowrap; margin-left: -.03em; }
.foot-grid { display: grid; grid-template-columns: repeat(2, max-content); gap: 18px clamp(40px, 7vw, 120px); margin-top: clamp(28px, 5vh, 48px); }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.foot-grid li + li { margin-top: 2px; }
.foot-grid a { overflow-wrap: anywhere; }
.foot-grid a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(24px, 4vh, 40px); padding-top: 12px; border-top: 1px solid rgba(11,11,11,.2); font-family: var(--mono); font-size: 11px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- Inner page hero (fits one screen) ---------- */
.page-hero { min-height: var(--svh); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 5vh, 64px); padding: calc(var(--header-h) + 32px) var(--pad) clamp(28px, 6vh, 72px); }
.page-hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); padding-top: 22px; align-items: start; }
/* Photo-in-type: three photos, three colours — the vessel in natural colour, then orange and blue duotones */
.pit { display: inline-block; -webkit-background-clip: text; background-clip: text; color: transparent; background-repeat: no-repeat; background-size: cover; }
.pit-1 { background-image: url("../img/hero/engine-room-mtu-md.webp"); background-position: 50% calc(50% + var(--pyo, 0px)); }
.pit-2 { background-image: url("../img/vessel-patrol.webp"); background-position: 40% calc(38% + var(--pyo, 0px)); }
.pit-3 { background-image: url("../img/vessel-patrol.webp"); background-position: 40% calc(66% + var(--pyo, 0px)); }
.h-pit { font-size: clamp(52px, min(12.6vw, 19vh), 240px); font-weight: 900; letter-spacing: -.04em; line-height: .86; white-space: nowrap; }
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.js .line-mask > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--snap); }
.js .in .line-mask > span { transform: none; }
.js .hero-h .line-mask > span { transform: translate3d(-105%, 0, 0); transition-duration: 1.2s; }
.js .hero-h.in .line-mask > span { transform: none; }
.js .hero-h.in .line-mask:nth-child(2) > span { transition-delay: .18s; }
.js .in .line-mask:nth-child(2) > span { transition-delay: .1s; }
.js .in .line-mask:nth-child(3) > span { transition-delay: .2s; }

/* =====================================================================
   ABOUT — its own set of moves
   ===================================================================== */
/* 1. Expanding window hero */
.xp { position: relative; height: calc(var(--svh) * 2.3); --p: 0; }
.xp-stage { position: sticky; top: 0; height: var(--svh); overflow: hidden; }
.xp-media { position: absolute; inset: 0; --t0: 56%; --r0: var(--pad); --b0: 9%; --l0: 54%;
  clip-path: inset(calc((1 - var(--p)) * var(--t0)) calc((1 - var(--p)) * var(--r0)) calc((1 - var(--p)) * var(--b0)) calc((1 - var(--p)) * var(--l0))); }
.xp-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(calc(1.3 - var(--p) * .3)); }
.xp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(10,10,10,.65)); opacity: var(--p); }
.xp-text { position: absolute; inset: 0; padding: calc(var(--header-h) + clamp(28px, 6vh, 72px)) var(--pad) 0; display: flex; flex-direction: column; gap: clamp(22px, 4vh, 44px); transform: translateY(calc(var(--p) * -14vh)); opacity: calc(1 - var(--p) * 1.8); }
.xp-text .h-lg { font-size: clamp(32px, min(6.6vw, 11.5vh), 124px); }

.xp-cap { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 56px); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; opacity: calc((var(--p) - .9) * 10); transform: translateY(calc((1 - var(--p)) * 60px)); }
.xp-cap .lede { max-width: 22ch; }

/* 2. Odometer stats */

/* 3. Horizontal track */

/* About ---------------------------------------------------------------- */
.ab-statement { font-size: clamp(28px, min(4vw, 7.2vh), 72px); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; max-width: 24ch; }
.ab-body { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; color: var(--muted); max-width: 52ch; }
.on-blue .ab-body { color: rgba(11,11,11,.7); }

.ab-nums { padding-block: clamp(56px, 12vh, 140px); }
.ab-nums-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ab-nums-grid > div { display: flex; flex-direction: column; gap: 16px; padding: 0 clamp(16px, 2.4vw, 40px); border-left: 1px solid rgba(11,11,11,.2); }
.ab-nums-grid > div:first-child { padding-left: 0; border-left: 0; }
.ab-nums-grid dd { margin: 0; display: flex; align-items: flex-start; font-size: clamp(52px, min(8.6vw, 15vh), 168px); font-weight: 500; letter-spacing: -.07em; line-height: .85; font-variant-numeric: tabular-nums; }
.ab-nums-grid dd .o { font-size: .5em; line-height: 1; }
.ab-nums-grid dt { color: rgba(11,11,11,.6); }

.ab-def { display: grid; gap: clamp(32px, 6vh, 64px); }
.ab-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 120px); align-items: end; }
.ab-title { font-size: clamp(24px, min(2.9vw, 5.2vh), 54px); line-height: .95; }
.ab-def .ab-body, .ab-approved .ab-body { font-size: clamp(15px, 1.1vw, 17px); max-width: 50ch; }
/* Capabilities glide in from the right, dull to full colour, as they scroll up the screen */
.ab-glide { border-top: 2px solid var(--ink); margin-top: clamp(8px, 2vh, 24px); overflow: hidden; }
.ab-glide li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--gap); align-items: baseline; padding: clamp(12px, 2vh, 22px) 0; border-bottom: 1px solid var(--line); --t: 1; }
.ab-glide .mono { color: var(--orange-text); opacity: calc(.25 + var(--t) * .75); }
.ab-gt { font-size: clamp(22px, min(3.4vw, 6.2vh), 64px); font-weight: 500; letter-spacing: -.055em; line-height: 1; transform: translate3d(calc((1 - var(--t)) * 42vw), 0, 0); opacity: calc(.18 + var(--t) * .82); will-change: transform; }

/* Approved by */
.ab-approved { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 20px var(--gap); padding-block: clamp(56px, 10vh, 120px); border-bottom: 1px solid var(--line); }
.ab-approved .mono { color: var(--muted); }
.ab-approved-names { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .55em; font-size: clamp(28px, min(3.1vw, 5.6vh), 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.ab-approved-names span:not(:last-child)::after { content: ""; display: inline-block; width: .22em; height: .22em; margin-left: .55em; border-radius: 50%; background: var(--orange); vertical-align: .18em; }
.ab-approved .ab-body { grid-column: 2; }

/* Built to perform: copy stays on the left, cards open one by one on the right */
.ab-built { position: relative; height: calc(var(--svh) + var(--count) * 42vh); }
.ab-built-pin { position: sticky; top: 0; height: var(--svh); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); padding-top: calc(var(--header-h) + clamp(24px, 5vh, 56px)); padding-bottom: clamp(24px, 5vh, 56px); }
.ab-built-copy { display: grid; align-content: start; gap: clamp(20px, 4vh, 40px); }
.ab-next { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-built .ab-title { font-size: clamp(22px, min(2.5vw, 4.8vh), 48px); }
.ab-cards { display: flex; flex-direction: column; min-height: 0; border-top: 2px solid var(--ink); }
.ab-card { --hh: clamp(48px, 7vh, 64px); flex: 0 0 var(--hh); display: flex; flex-direction: column; min-height: 0; border-bottom: 1px solid var(--line); overflow: hidden; transition: flex-grow .8s var(--ease-io); }
.ab-card.is-on { flex-grow: 1; }
.ab-card-h { flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; height: var(--hh); padding: 0; text-align: left; cursor: pointer; color: var(--soft); transition: color .4s; }
.ab-card-t { font-size: clamp(18px, min(1.7vw, 3.2vh), 28px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.ab-card-tag { color: var(--muted); }
.ab-chev { display: none; width: 9px; height: 9px; justify-self: end; margin-right: 4px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .5s var(--ease); }
.ab-card.is-on .ab-chev { transform: translateY(2px) rotate(225deg); }
.ab-card.is-on .ab-card-h, .ab-card-h:hover { color: var(--ink); }
.ab-card.is-on .ab-card-h .mono:first-child { color: var(--orange-text); }
.ab-card-b { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); padding-bottom: clamp(14px, 2.4vh, 24px); }
.ab-card-b-in { display: contents; }
.ab-card-img { position: relative; overflow: hidden; min-height: 0; }
.ab-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); clip-path: inset(0 0 100% 0); transform: scale(1.15); transition: clip-path .9s var(--ease-io) .15s, transform 1.4s var(--ease) .15s; }
.ab-card.is-on .ab-card-img img { clip-path: inset(0); transform: none; }
.ab-card dl { margin: 0; display: grid; align-content: start; gap: clamp(12px, 2vh, 22px); }
.ab-card dl > div { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .4s, transform .6s var(--ease); }
.ab-card.is-on dl > div { opacity: 1; transform: none; transition-delay: .35s; }
.ab-card.is-on dl > div + div { transition-delay: .45s; }
.ab-card dt { color: var(--muted); margin-bottom: 6px; }
.ab-card dd { margin: 0; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5; }

@media (max-width: 1024px) {
  .ab-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  /* Smaller screens: the heading, text and buttons scroll normally; then just the list locks under the header and
     each card opens in full as you scroll (the list slides up inside its own frame if the open card needs room) */
  .ab-built { height: auto; }
  .ab-built-pin { position: static; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 14px; padding: var(--sec) var(--pad) 24px; }
  .ab-built-copy { display: contents; }
  .ab-built .label { font-size: 11px; }
  .ab-built .ab-title { font-size: clamp(20px, 5.4vw, 30px); }
  .ab-built .ab-body { font-size: 13.5px; line-height: 1.5; }
  .ab-next { margin-top: 4px; margin-bottom: 18px; }
  .ab-cards { position: sticky; top: var(--header-h); flex: none; order: 1; translate: 0 var(--shift, 0px); clip-path: inset(calc(-1 * var(--shift, 0px)) 0 -40px 0); transition: translate .5s var(--ease-io), clip-path .5s var(--ease-io); background: var(--paper); }
  .ab-room { order: 1; flex: none; height: calc(var(--count) * 38vh); }
  .ab-card, .ab-card.is-on { flex: none; overflow: visible; }
  .ab-card-h { height: auto; padding: 14px 0; grid-template-columns: 36px minmax(0, 1fr) auto 20px; }
  .ab-card-t { font-size: clamp(16px, 4.2vw, 22px); }
  .ab-chev { display: block; }
  .ab-card { display: block; }
  .ab-card-b { display: block; flex: none; height: 0; padding: 0; overflow: hidden; }
  .ab-card.is-on .ab-card-b { transition: height .5s var(--ease-io); }
  .ab-card-b-in { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 14px; }
  .ab-card-b-in > * { margin-bottom: 16px; }
  .ab-card-b-in > dl { margin-bottom: 26px; }
  .ab-card-img { aspect-ratio: 4 / 3; align-self: start; }
  .ab-card dl { gap: 10px; }
  .ab-card dt { font-size: 10px; margin-bottom: 3px; }
  .ab-card dd { font-size: 13.5px; line-height: 1.45; }
}
@media (min-width: 1025px) { .ab-room { display: none; } }
@media (max-width: 760px) {
  .ab-approved { grid-template-columns: minmax(0, 1fr); }
  .ab-approved .ab-body { grid-column: 1; }
}
@media (max-width: 600px) {
  .ab-nums-grid > div { padding: 0 10px; gap: 10px; }
  .ab-nums-grid > div:first-child { padding-left: 0; }
  .ab-nums-grid dd { font-size: 8.4vw; }
  .ab-nums-grid dt { font-size: 9px; letter-spacing: .02em; }
  .ab-glide li { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .ab-gt { font-size: 6.4vw; }
  .ab-card-tag { display: none; }
  .ab-card-h { grid-template-columns: 36px minmax(0, 1fr) 20px; }
}
@media (prefers-reduced-motion: reduce) { .ab-gt { transform: none; opacity: 1; } }

/* 4. Depth gauge */
/* Underwater: heading and text beside one big number that counts up to 60 m */
.uw { padding-block: clamp(64px, 12vh, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; }
.uw-copy { display: grid; gap: clamp(20px, 3.4vh, 32px); justify-items: start; }
.uw-h { font-size: clamp(30px, min(3.6vw, 6.4vh), 64px); font-weight: 500; letter-spacing: -.05em; line-height: 1.02; max-width: 14ch; }
.uw .ab-body { font-size: clamp(15px, 1.15vw, 18px); max-width: 52ch; }
.uw-fig { display: grid; justify-items: end; gap: 14px; --g: 0; }
.uw-cap { color: rgba(11,11,11,.6); }
.gauge-num { font-size: clamp(120px, min(22vw, 40vh), 380px); font-weight: 500; letter-spacing: -.075em; line-height: .78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge-num b { display: inline-block; min-width: 1.12em; text-align: right; font-weight: inherit; }
.gauge-num small { font-size: .22em; color: var(--orange); letter-spacing: -.02em; margin-left: .04em; }
@media (max-width: 900px) { .uw { grid-template-columns: minmax(0, 1fr); } .uw-fig { justify-items: start; } }

/* 5. Stacking cards */

/* 6. Component list with cursor-follow photo */

@keyframes marq { to { transform: translateX(-50%); } }

/* =====================================================================
   SERVICES — capability figures
   ===================================================================== */

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-page { padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(64px, 11vh, 128px); }
.contact-top { display: grid; gap: clamp(18px, 3vh, 32px); margin-bottom: clamp(48px, 9vh, 104px); }
.contact-h { font-size: clamp(40px, min(9.6vw, 20vh), 220px); white-space: nowrap; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vh, 40px) var(--gap); }
.contact-form .form-foot { justify-content: space-between; }
.contact-form .form-foot .btn { margin-left: auto; }
.contact-page .sent { min-height: 44vh; }
.form { display: grid; gap: clamp(26px, 4vh, 40px); }
.field { position: relative; border-bottom: 2px solid var(--ink); }
.field input, .field textarea { width: 100%; border: 0; background: transparent; outline: none; padding: 30px 0 12px; font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; resize: none; }
.field textarea { min-height: 150px; line-height: 1.3; }
.field label { position: absolute; left: 0; top: 34px; color: var(--muted); font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; pointer-events: none; transform-origin: left top; transition: transform .5s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-26px) scale(.5); color: var(--ink); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.topic-group { border: 0; padding: 0; margin: 0; }
.topic-group legend { margin-bottom: 14px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topics span { display: inline-block; padding: 10px 17px; border-radius: 999px; background: var(--blue); color: var(--orange-text); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, transform .3s var(--ease); }
.topics label:hover span { background: #b9d7ec; }
.topics input:checked + span { background: var(--orange); color: var(--ink); }
.topics input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-err { color: var(--orange-text); font-size: 14px; min-height: 1.4em; }
.hp { display: none; }
.sent { display: none; min-height: 60vh; flex-direction: column; justify-content: center; gap: 28px; }
.is-sent .form { display: none; }
.is-sent .sent { display: flex; }
.tick { width: 96px; height: 96px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; animation: pop .8s var(--ease) both; }
.tick svg { width: 44px; height: 44px; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map { height: clamp(320px, 50vh, 520px); position: relative; background: #e6e5e0; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
.br-mid { display: none; }
@media (min-width: 901px) and (max-width: 1300px) {
  .br-mid { display: inline; }
}
@media (max-width: 1100px) {
  .header-mid { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .icards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icard { min-height: clamp(400px, 52vh, 520px); }
  
  
  
}
@media (max-width: 900px) {
  .quote-t { font-size: clamp(44px, 9.4vw, 84px); }
  :root { --header-h: 60px; }
  .header-mid, .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header { grid-template-columns: 1fr auto; }
  .lay, .about-teaser, .page-hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero .h-xl { font-size: clamp(24px, 7.3vw, 80px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stats-3 { grid-template-columns: repeat(3, auto); column-gap: 16px; }
  .svc-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'list' 'btn'; }
  .innov-top { grid-template-columns: minmax(0, 1fr); }
  .innov-body { justify-self: start; text-align: left; padding-top: 0; }
  .foot-bottom { flex-direction: column; gap: 4px; }
  .about-teaser { gap: 6px; }
  .about-teaser .img-wrap { min-height: 0; height: clamp(220px, 58vw, 440px); }
  .foot-links { display: none; }
  .pst { grid-template-columns: minmax(0, 1fr); position: relative; }
  .pst-side { position: absolute; inset: 0; padding: 10px 14px; border: 0; color: #fff; justify-content: flex-end; background: linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 52%, rgba(10,10,10,.72) 100%); }
  .pst-side::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.5); opacity: calc(1 - var(--w)); }
  .pst-row, .pst-more { z-index: 1; position: relative; }
  .pst-row { position: absolute; }
  .pst-row { position: absolute; left: 14px; top: 8px; align-items: center; }
  .pst-no { color: rgba(255,255,255,.75); }
  .pst-name { transform: scale(calc(.5 + var(--w) * (var(--fit, 1) - .5))); }
  .pst-more .mono { color: rgba(255,255,255,.8); }
  .xp-media { --t0: 58%; --r0: var(--pad); --b0: 12%; --l0: var(--pad); }
  
  
  
  
  
  
  
  
  .page-hero { min-height: calc(var(--svh) * .92); }
  
}
@media (max-aspect-ratio: 4/5) and (min-width: 601px) {
  .page-hero { min-height: calc(var(--svh) * .66); }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .quote-t { font-size: 12.4vw; max-width: none; }
  /* Innovation cards become a swipeable row with a position line underneath */
  .icards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .icards::-webkit-scrollbar { display: none; }
  .icards > .icard { flex: 0 0 84%; scroll-snap-align: start; }
  .icards-bar { display: block; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; font-size: 12px; }
  .icard { min-height: 400px; }
  
  
  
  
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-stagger] > *, .js [data-lines-in] .lw, .js .quote-t .lw, .js [data-clip="right"], .js .line-mask > span, .js [data-split] .ch, .js [data-words] .wm > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-clip] { clip-path: none !important; }
  .js .rule { background-size: 100% 2px; }
  .js .scrub .w { opacity: 1; }
  
}

/* ---------- Views (single document) ---------- */
.no-js .page[hidden] { display: block; } /* without JavaScript every view is shown in turn */

/* ---------- Projects ---------- */
.pj-hero { padding-bottom: clamp(56px, 11vh, 120px); }
.pj-hero .h-pit { margin-top: clamp(20px, 3vh, 36px); }
.pj-intro { margin-top: clamp(28px, 5vh, 56px); padding-top: 22px; }
.pj-intro .body { max-width: 84ch; font-size: clamp(14px, .95vw, 16px); line-height: 1.6; }

/* Project viewer — thumbnails down the side, one vessel at a time */
/* ---------- Project viewer ----------
   Pinned on every screen size: scrolling (or a thumbnail) moves to the next vessel.
   > 1400px   thumbnail column | photo | text (text spreads to the photo's top and bottom)
   1101–1400  same, but the text column holds at 360px and the photo gives way
   ≤ 1100px   stacked: thumbnail row, photo (narrower and centred on tablets), text
   ≤ 700px    phones: full-width photo
   .is-list   set by JS only if a description can't fit: a plain scrolling list */
.pv { position: relative; }
.pv-pin { position: sticky; top: 0; height: var(--svh); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(14px, 2.4vh, 28px); padding: calc(var(--header-h) + clamp(16px, 3.6vh, 40px)) var(--pad) clamp(16px, 3vh, 32px); }
.pv-body-grid { display: grid; grid-template-columns: clamp(120px, 10vw, 170px) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 64px); min-height: 0; }
.pv-thumbs { display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.2vh, 12px); min-height: 0; }
.pv-thumb { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; }
.pv-thumb-img { position: relative; display: block; flex: none; width: clamp(44px, 3.8vw, 64px); aspect-ratio: 4 / 3; overflow: hidden; background: #d9d8d3; }
.pv-thumb-img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .6; transition: opacity .5s, filter .5s, transform .9s var(--ease); }
.pv-thumb:hover .pv-thumb-img img, .pv-thumb:focus-visible .pv-thumb-img img { opacity: 1; transform: scale(1.08); }
.pv-thumb.on .pv-thumb-img img { opacity: 1; filter: none; }
.pv-thumb-txt { display: grid; gap: 2px; min-width: 0; }
.pv-thumb-no { font-family: var(--mono); font-size: 10px; color: var(--muted); transition: color .4s; }
.pv-thumb-name { font-size: 12px; line-height: 1.2; color: var(--muted); transition: color .4s, transform .5s var(--ease); }
.pv-thumb:hover .pv-thumb-name { color: var(--ink); }
.pv-thumb.on .pv-thumb-name { color: var(--ink); font-weight: 500; transform: translateX(4px); }
.pv-thumb.on .pv-thumb-no { color: var(--ink); }
.pv-thumb::after { content: ""; position: absolute; left: -10px; top: 0; bottom: 0; width: 2px; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.pv-thumb.on::after { transform: scaleY(1); transform-origin: top; }

.pv-stage { position: relative; min-height: 0; container-type: size; }
.pv-item { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "media info"; align-items: center; gap: clamp(28px, 4vw, 72px); --mh: min(100cqh, calc((100cqw - 72px) * .5833 / 1.3)); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.pv-item.on { opacity: 1; visibility: visible; z-index: 2; transition: opacity .7s var(--ease) .1s, visibility 0s; }
.pv-media { grid-area: media; position: relative; overflow: hidden; background: #e4e3de; width: 100%; height: var(--mh); }
.pv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.pv-item.on .pv-media img { transform: none; }

.pv-info { grid-area: info; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; height: var(--mh); container-type: inline-size; }
.pv-head { display: grid; gap: 10px; }
.pv-body { display: grid; gap: clamp(8px, 1.4vh, 14px); }
.pv-head > *, .pv-body > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.pv-item.on .pv-head > *, .pv-item.on .pv-body > * { opacity: 1; transform: none; }
.pv-item.on .pv-head > :nth-child(1) { transition-delay: .2s; }
.pv-item.on .pv-head > :nth-child(2) { transition-delay: .26s; }
.pv-item.on .pv-body > :nth-child(1) { transition-delay: .34s; }
.pv-item.on .pv-body > :nth-child(2) { transition-delay: .42s; }
.pv-name { font-weight: 500; font-size: min(clamp(40px, min(6.4vw, 12vh), 130px), 10.5cqi); line-height: .92; letter-spacing: -.055em; }
.pv-scope { font-size: clamp(15px, 1.05vw, 17px); font-weight: 500; letter-spacing: -.015em; line-height: 1.35; color: var(--ink); }
.pv-desc { color: var(--soft); font-size: clamp(14px, 1vw, 16px); line-height: 1.6; max-width: 52ch; }
.pv-progress { position: relative; height: 2px; background: var(--line); }
.pv-progress i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--pp, 0)); transform-origin: left; }

@media (min-width: 1101px) and (max-width: 1400px) {
  .pv-item { grid-template-columns: minmax(0, 1fr) 360px; --mh: min(100cqh, calc((100cqw - 360px - 56px) / 1.3)); gap: clamp(24px, 3vw, 44px); }
  .pv-name { font-size: min(clamp(36px, 4.6vw, 64px), 10.5cqi); }
  .pv-scope { font-size: 15px; }
  .pv-desc { font-size: 14px; line-height: 1.55; }
}

@media (max-width: 1100px) {
  .pv-pin { gap: 14px; padding-top: calc(var(--header-h) + 12px); }
  .pv-body-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
  .pv-thumbs { flex-direction: row; justify-content: flex-start; gap: 5px; }
  .pv-thumb { flex: 1 1 0; min-width: 0; display: block; }
  .pv-thumb-img { width: 100%; }
  .pv-thumb-txt { display: none; }
  .pv-thumb::after { left: 0; right: 0; top: auto; bottom: -5px; width: auto; height: 2px; transform: scaleX(0); transform-origin: right; }
  .pv-thumb.on::after { transform: scaleX(1); transform-origin: left; }
  .pv-item { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "media" "info"; align-content: center; align-items: start; gap: 18px; }
  .pv-media { height: auto; aspect-ratio: 3 / 2; max-height: 50cqh; width: min(100%, 720px); justify-self: center; }
  .pv-info { height: auto; justify-content: flex-start; gap: 14px; }
  .pv-head { gap: 10px; }
  .pv-body { gap: 8px; }
  .pv-name { font-size: min(clamp(28px, 7.4vw, 48px), 11cqi); }
  .pv-scope { font-size: 14px; }
  .pv-desc { font-size: 13px; line-height: 1.55; max-width: none; }
}
@media (max-width: 700px) {
  .pv-media { width: 100%; aspect-ratio: 5 / 4; max-height: 46cqh; }
}

.pv.is-list { height: auto !important; }
.pv.is-list .pv-pin { position: static; height: auto; display: block; padding: var(--sec) var(--pad) 0; }
.pv.is-list .pv-thumbs, .pv.is-list .pv-progress { display: none; }
.pv.is-list .pv-body-grid { display: block; }
.pv.is-list .pv-stage { display: grid; gap: 64px; container-type: normal; }
.pv.is-list .pv-item { position: static; visibility: visible; opacity: 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info"; }
.pv.is-list .pv-media { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.pv.is-list .pv-info { height: auto; }
.pv.is-list .pv-head > *, .pv.is-list .pv-body > * { opacity: 1; transform: none; }

/* Soft enquiry line at the end of Projects */

/* ---------- Services (clean index) ---------- */

.sv-hero .sv-h { margin-top: clamp(14px, 2.4vh, 28px); }
.sv-h { font-size: clamp(52px, min(10vw, 18vh), 220px); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.sv-h2 { font-size: clamp(30px, min(3.8vw, 7vh), 68px); font-weight: 500; letter-spacing: -.05em; line-height: 1; max-width: 16ch; }

/* What we do — numbered index */
.sv-list { padding-block: clamp(96px, 18vh, 200px) var(--sec); }
.sv-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(32px, 6vh, 64px); }
.sv-list-head .mono { color: var(--muted); }
.sv-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) clamp(140px, 15vw, 240px); gap: var(--gap); align-items: start; padding: clamp(28px, 5vh, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.sv-no { padding-top: .9em; color: var(--muted); }
.sv-title { font-size: clamp(28px, min(3.2vw, 6vh), 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.sv-copy { display: grid; gap: 18px; padding-top: .55em; }
.sv-desc { color: var(--soft); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; max-width: 52ch; }

.sv-img { aspect-ratio: 4 / 3; }
.sv-img .img { height: 100%; }
.sv-img img { transition: transform 1.2s var(--ease), filter .6s; }
.sv-row:hover .sv-img img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }

/* Consulting — sticky intro on the left, large statements on the right */

.sv-consult-intro { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; max-width: 46ch; color: #2e2e2b; }

/* Capability — a spec sheet with rolling figures */

@media (max-width: 1180px) {
  .sv-row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 18px; }
  .sv-copy, .sv-img { grid-column: 2; }
  .sv-copy { padding-top: 0; padding-right: clamp(12px, 8vw, 120px); }
  .sv-desc { max-width: 60ch; }
  .sv-img { max-width: 420px; }
}
@media (max-width: 900px) {
  .sv-row { grid-template-columns: 36px minmax(0, 1fr); row-gap: 16px; }
  .sv-copy, .sv-img { grid-column: 2; }
  .sv-no { padding-top: .6em; }
  
  
  
  .sv-list-head { flex-direction: column; align-items: flex-start; }
  
  
}

/* Services hero — photo left, text right */

/* Line drawings that sketch themselves in when revealed */

/* Consulting — three boxes */

/* Consulting — sticky intro on the left, large statements on the right */
.sv-consult { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 120px); }
.sv-consult-side { position: relative; }
/* the panel sticks the moment the blue reaches the top of the screen; its text sits in the middle of the view */
.sv-consult-sticky { position: sticky; top: 0; height: var(--svh); display: flex; align-items: center; padding-top: var(--header-h); }
.sv-consult-inner { display: grid; gap: clamp(18px, 3vh, 32px); justify-items: start; }
.sv-issues { display: grid; padding-block: var(--sec); }
.sv-issues li { position: relative; display: grid; grid-template-columns: clamp(56px, 6vw, 100px) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: clamp(32px, 7vh, 72px) 0; border-bottom: 1px solid rgba(11, 11, 11, .2); }
.sv-issues li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io) .1s; }
.sv-issues li.in::after { transform: scaleX(1); }
.sv-issue-no { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.03em; color: var(--orange-text); }
.sv-issues p { font-size: clamp(22px, min(2.6vw, 5vh), 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; max-width: 17ch; }

/* Who we work with — one sentence; the partners light up */
.sv-who { padding-block: var(--sec); display: grid; gap: clamp(28px, 5vh, 56px); }
.sv-who-text { font-size: clamp(28px, min(4.2vw, 7.6vh), 76px); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; max-width: 24ch; }
.sv-who-text mark { color: inherit; background: linear-gradient(var(--blue), var(--blue)) 0 88% / 0% 78% no-repeat; padding: 0 .06em; transition: background-size 1s var(--ease-io); }
.sv-who-text.in mark { background-size: 100% 78%; }
.sv-who-text.in mark:nth-of-type(1) { transition-delay: .5s; }
.sv-who-text.in mark:nth-of-type(2) { transition-delay: .75s; }
.sv-who-text.in mark:nth-of-type(3) { transition-delay: 1s; }
.sv-who-text.in mark:nth-of-type(4) { transition-delay: 1.25s; }

@media (max-width: 900px) {
  /* Stacked: intro, then the three points side by side (lines between them), then the button */
  .sv-consult { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3.4vh, 28px); padding-block: var(--sec); }
  .sv-consult-side, .sv-consult-sticky, .sv-consult-inner { display: contents; }
  .sv-consult-cta { order: 2; margin-top: 4px; }
  .sv-issues { order: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin-top: 8px; border-top: 1px solid rgba(11, 11, 11, .2); }
  .sv-issues li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding: 16px 12px 4px 0; border-bottom: 0; border-right: 1px solid rgba(11, 11, 11, .2); }
  .sv-issues li + li { padding-left: 12px; }
  .sv-issues li:last-child { border-right: 0; padding-right: 0; }
  .sv-issues li::after { left: auto; right: -1px; top: 0; bottom: auto; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .sv-issues li:last-child::after { display: none; }
  .sv-issues li.in::after { transform: scaleY(1); }
  .sv-issue-no { font-size: 16px; }
  .sv-issues p { font-size: clamp(12.5px, 3.2vw, 18px); letter-spacing: -.03em; line-height: 1.2; }
}

/* Who we work with — small photos open inside the sentence beside each partner */
.sv-pill { display: inline-block; position: relative; width: 1.75em; height: .74em; margin-right: .22em; vertical-align: -.04em; border-radius: 999px; overflow: hidden; clip-path: inset(0 50% 0 50% round 999px); transition: clip-path 1.2s var(--ease-io); transform: translateZ(0); }
.sv-pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.4); transition: transform 1.6s var(--ease), filter .5s; }
.sv-who-text.in .sv-pill { clip-path: inset(0 0 0 0 round 999px); }
.sv-who-text.in .sv-pill img { transform: none; }
.sv-who-text.in .sv-pill:nth-of-type(1), .sv-who-text.in .sv-pill:nth-of-type(1) img { transition-delay: .35s; }
.sv-who-text.in .sv-pill:nth-of-type(2), .sv-who-text.in .sv-pill:nth-of-type(2) img { transition-delay: .6s; }
.sv-who-text.in .sv-pill:nth-of-type(3), .sv-who-text.in .sv-pill:nth-of-type(3) img { transition-delay: .85s; }
.sv-who-text.in .sv-pill:nth-of-type(4), .sv-who-text.in .sv-pill:nth-of-type(4) img { transition-delay: 1.1s; }
.sv-pill:hover img, .sv-pill:has(+ mark:hover) img { filter: none; transition-delay: 0s; }

/* Key phrases in each service description: the underline draws in after the lines rise */
.sv-desc .kw { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0% 2px no-repeat; padding-bottom: .1em; transition: background-size .9s var(--ease-io); }
.sv-desc.in .kw { background-size: 100% 2px; transition-delay: .55s; }

/* Centred closing call to action (Services, About) */
.end-cta { padding-block: var(--sec); border-top: 1px solid var(--line); display: grid; gap: clamp(28px, 5vh, 56px); justify-items: center; text-align: center; }
.end-cta-row { display: grid; justify-items: center; gap: clamp(28px, 5vh, 48px); }
.end-cta-btn { font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; padding: clamp(14px, 1.4vw, 20px) clamp(26px, 2.6vw, 40px); }
.end-cta.has-photo { position: relative; overflow: hidden; border-top: 0; color: #fff; min-height: min(var(--svh), 900px); align-content: center; isolation: isolate; }
.end-cta-bg { position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.end-cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.62); transform: translate3d(0, 18%, 0) scale(1.2); transition: transform 2s var(--ease); }
.end-cta-bg.in { clip-path: inset(0); }
.end-cta-bg.in img { transform: none; }
.end-cta.has-photo .idx { color: var(--orange); }
.js .end-cta.has-photo [data-split].in .ch { transition-delay: calc(.45s + var(--i) * 22ms); }
@media (prefers-reduced-motion: reduce) { .end-cta-bg { clip-path: none; } .end-cta-bg img { transform: none; } }

/* Smaller screens: body copy uses the full width instead of a narrow column */
@media (max-width: 900px) {
  .body, .ab-body, .pv-desc, .pv-scope, .sv-consult-intro, .sv-desc, .innov-body, .pj-intro p, .uw .ab-body, .about-card p, .svc-intro p { max-width: none !important; }
}

@media (max-width: 600px) { .ab-card-b-in { grid-template-columns: minmax(0, 1fr); } .ab-card-img { aspect-ratio: 16 / 9; } }
@media (max-width: 700px) { .pv-scope { font-size: 13.5px; } .pv-desc { font-size: 12.5px; line-height: 1.5; } }
.gal.no-zoom .gal-item button { cursor: default; }

/* ===== Phones & tablets: lighter effects for smooth, battery-friendly scrolling ===== */
@media (hover: none), (pointer: coarse) {
  .js [data-reveal] { filter: none !important; transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .hcta-l1, .hcta-l2 { filter: none !important; }
  .site-header.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(247, 246, 242, .97); }
  .img .px { inset: 0; transform: none !important; will-change: auto; }
  .ab-gt { will-change: auto; }
}

/* ===== Nov 13 updates ===== */
/* "Proven on the water." — one line at a time, everywhere */
.js .h-pit .line-mask > span { transition-duration: 1.1s; }
.js .h-pit.in .line-mask:nth-child(1) > span { transition-delay: .1s; }
.js .h-pit.in .line-mask:nth-child(2) > span { transition-delay: .45s; }
.js .h-pit.in .line-mask:nth-child(3) > span { transition-delay: .8s; }

/* Why our systems last — simple open grid */
.ab-built-open { height: auto; padding-block: var(--sec); display: grid; gap: clamp(40px, 7vh, 80px); }
.bp-head { display: grid; gap: clamp(16px, 3vh, 28px); justify-items: start; max-width: 62ch; }
.bp-head .ab-title { font-size: clamp(26px, min(3.4vw, 6vh), 56px); }
.bp-head .ab-body { max-width: 56ch; }
.bp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 6vh, 64px) clamp(20px, 2.4vw, 40px); }
.bp { display: grid; align-content: start; gap: 14px; padding-top: 16px; border-top: 2px solid var(--ink); }
.bp-img { aspect-ratio: 4 / 3; overflow: hidden; background: #d9d8d3; }
.bp-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.bp:hover .bp-img img { filter: none; transform: scale(1.04); }
.bp-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.bp-n { color: var(--orange-text, #c4500f); }
.bp-t { margin: 0; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.bp-tag { grid-column: 2; color: var(--muted); font-size: 11px; }
.bp dl { margin: 0; display: grid; gap: 12px; }
.bp dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.bp dd { margin: 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 1024px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bp-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .bp dd { font-size: 14.5px; } }

/* About hero caption: on smaller screens "Kurnell, Sydney" sits above the sentence */
@media (max-width: 1024px) { .xp-cap { flex-direction: column-reverse; align-items: flex-start; gap: 12px; } }

/* Phones: numbers roll quicker so the final figure is showing before you scroll past */
@media (max-width: 900px) { .odo-col > span { transition-duration: .9s; transition-delay: calc(var(--i) * 40ms); } }

/* Phones: the tagline arrives after the big heading has slid in */
@media (max-width: 900px) { .js .hero-tag[data-reveal] { transition-delay: 1.15s; } }

/* Contact: keep the small question label clear of what you type */
.field textarea + label { white-space: nowrap; }
@media (max-width: 900px) { .field textarea { padding-top: 40px; } .field input { padding-top: 34px; } }

/* Why our systems last — phones & tablets: a plain tap-to-open list (no scroll-driven cards) */
@media (max-width: 1024px) {
  .ab-cards { position: static; translate: none; clip-path: none; transition: none; }
  .ab-room { display: none; }
  .ab-card-b { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; grid-template-rows: 0fr; height: auto !important; overflow: hidden; transition: grid-template-rows .5s var(--ease-io); }
  .ab-card.is-on .ab-card-b { grid-template-rows: 1fr; }
  .ab-card-b-in { min-height: 0; overflow: hidden; }
  .ab-card-h { cursor: pointer; }
  .ab-card .ab-card-img img { clip-path: none; transform: none; }
  .ab-card dl > div { opacity: 1; transform: none; }
}

/* ===== About hero (phones): the expanding photo runs on the browser's own scroll timeline and only moves
   layers (no repainting), so it stays glued to your finger. Older phones keep the regular version. ===== */
@supports (animation-timeline: view()) {
  @media (max-width: 900px) and (hover: none) {
    .xp { view-timeline: --xp block; }
    .xp-media { clip-path: none; overflow: hidden; transform-origin: 50% 82.86%; will-change: transform; animation: xpWin linear both; animation-timeline: --xp; animation-range: contain 0% contain 87.0%; }
    .xp-media img { transform-origin: 50% 82.86%; will-change: transform; animation: xpImg linear both; animation-timeline: --xp; animation-range: contain 0% contain 87.0%; }
    .xp-media::after { animation: xpShade linear both; animation-timeline: --xp; animation-range: contain 0% contain 87.0%; }
    .xp-text { animation: xpText linear both; animation-timeline: --xp; animation-range: contain 0% contain 87.0%; }
    .xp-cap { animation: xpCap linear both; animation-timeline: --xp; animation-range: contain 0% contain 87.0%; }
  }
}
@keyframes xpWin {
  0.0% { transform: scale(0.9000, 0.3000); }
  7.14% { transform: scale(0.9015, 0.3102); }
  14.29% { transform: scale(0.9055, 0.3388); }
  21.43% { transform: scale(0.9118, 0.3827); }
  28.57% { transform: scale(0.9198, 0.4388); }
  35.71% { transform: scale(0.9292, 0.5041); }
  42.86% { transform: scale(0.9394, 0.5755); }
  50.0% { transform: scale(0.9500, 0.6500); }
  57.14% { transform: scale(0.9606, 0.7245); }
  64.29% { transform: scale(0.9708, 0.7959); }
  71.43% { transform: scale(0.9802, 0.8612); }
  78.57% { transform: scale(0.9882, 0.9173); }
  85.71% { transform: scale(0.9945, 0.9612); }
  92.86% { transform: scale(0.9985, 0.9898); }
  100.0% { transform: scale(1.0000, 1.0000); }
}
@keyframes xpImg {
  0.0% { transform: scale(1.4444, 4.3333); }
  7.14% { transform: scale(1.4373, 4.1767); }
  14.29% { transform: scale(1.4173, 3.7883); }
  21.43% { transform: scale(1.3869, 3.3048); }
  28.57% { transform: scale(1.3487, 2.8272); }
  35.71% { transform: scale(1.3050, 2.4054); }
  42.86% { transform: scale(1.2582, 2.0537); }
  50.0% { transform: scale(1.2105, 1.7692); }
  57.14% { transform: scale(1.1639, 1.5433); }
  64.29% { transform: scale(1.1201, 1.3663); }
  71.43% { transform: scale(1.0809, 1.2302); }
  78.57% { transform: scale(1.0478, 1.1287); }
  85.71% { transform: scale(1.0223, 1.0576); }
  92.86% { transform: scale(1.0058, 1.0147); }
  100.0% { transform: scale(1.0000, 1.0000); }
}
@keyframes xpShade {
  0.0% { opacity: 0.000; }
  7.14% { opacity: 0.015; }
  14.29% { opacity: 0.055; }
  21.43% { opacity: 0.118; }
  28.57% { opacity: 0.198; }
  35.71% { opacity: 0.292; }
  42.86% { opacity: 0.394; }
  50.0% { opacity: 0.500; }
  57.14% { opacity: 0.606; }
  64.29% { opacity: 0.708; }
  71.43% { opacity: 0.802; }
  78.57% { opacity: 0.882; }
  85.71% { opacity: 0.945; }
  92.86% { opacity: 0.985; }
  100.0% { opacity: 1.000; }
}
@keyframes xpText {
  0.0% { transform: translateY(-0.000vh); opacity: 1.000; }
  7.14% { transform: translateY(-0.204vh); opacity: 0.974; }
  14.29% { transform: translateY(-0.776vh); opacity: 0.900; }
  21.43% { transform: translateY(-1.653vh); opacity: 0.787; }
  28.57% { transform: translateY(-2.776vh); opacity: 0.643; }
  35.71% { transform: translateY(-4.082vh); opacity: 0.475; }
  42.86% { transform: translateY(-5.510vh); opacity: 0.292; }
  50.0% { transform: translateY(-7.000vh); opacity: 0.100; }
  57.14% { transform: translateY(-8.490vh); opacity: 0.000; }
  64.29% { transform: translateY(-9.918vh); opacity: 0.000; }
  71.43% { transform: translateY(-11.224vh); opacity: 0.000; }
  78.57% { transform: translateY(-12.347vh); opacity: 0.000; }
  85.71% { transform: translateY(-13.224vh); opacity: 0.000; }
  92.86% { transform: translateY(-13.796vh); opacity: 0.000; }
  100.0% { transform: translateY(-14.000vh); opacity: 0.000; }
}
@keyframes xpCap {
  0.0% { transform: translateY(60.00px); opacity: 0.000; }
  7.14% { transform: translateY(59.13px); opacity: 0.000; }
  14.29% { transform: translateY(56.68px); opacity: 0.000; }
  21.43% { transform: translateY(52.92px); opacity: 0.000; }
  28.57% { transform: translateY(48.10px); opacity: 0.000; }
  35.71% { transform: translateY(42.51px); opacity: 0.000; }
  42.86% { transform: translateY(36.38px); opacity: 0.000; }
  50.0% { transform: translateY(30.00px); opacity: 0.000; }
  57.14% { transform: translateY(23.62px); opacity: 0.000; }
  64.29% { transform: translateY(17.49px); opacity: 0.000; }
  71.43% { transform: translateY(11.90px); opacity: 0.000; }
  78.57% { transform: translateY(7.08px); opacity: 0.000; }
  85.71% { transform: translateY(3.32px); opacity: 0.446; }
  92.86% { transform: translateY(0.87px); opacity: 0.854; }
  100.0% { transform: translateY(0.00px); opacity: 1.000; }
}
@media (prefers-reduced-motion: reduce) { .xp-media, .xp-media img, .xp-media::after, .xp-text, .xp-cap { animation: none !important; } }
