/* Gooding Security Solutions Ltd. Design plan: _work/design-plan.md ("Night watch"). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic-var.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
/* metric-matched fallbacks so nothing jumps when the web fonts arrive */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 84%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 104%; descent-override: 34%; line-gap-override: 0%; }

:root {
  --night: #0E1B24;
  --night-2: #13242f;
  --petrol: #123A40;
  --sodium: #F2A33A;
  --sodium-deep: #9A5A0E;
  --signal: #F5F6F2;
  --mist: #DCE4E3;
  --ink: #14202A;
  --ink-soft: #3d4b55;
  --dawn: #F6D9A8;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(20, 32, 42, .14);

  --display: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;

  --r: 8px;      /* surfaces: 27 letters mod 5 = 2 */
  --rb: 3px;     /* buttons: "Gooding" 7 mod 3 = 1 */
  --wrap: 1440px;
  --gut: clamp(20px, 4vw, 64px);
  --head-h: 96px;
  --sec-y: clamp(64px, 7.4vw, 112px);
  --media-cap: min(76vh, 760px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.62; font-weight: 400;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sodium); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--sodium); color: var(--ink); padding: 12px 18px; border-radius: var(--rb); font-family: var(--display); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display); font-stretch: 114%; font-weight: 790; letter-spacing: -.012em;
  margin: 0 0 .5em; text-wrap: balance; display: flow-root; line-height: 1.04;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5.9rem); line-height: .98; }
h2 { font-size: clamp(2rem, 3.4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.75rem); font-stretch: 108%; font-weight: 720; line-height: 1.12; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--sodium); }
.on-light h1 em, .on-light h2 em, .on-light h3 em { color: var(--sodium-deep); }
.lede { font-size: clamp(1.08rem, 1.25vw, 1.2rem); line-height: 1.6; }
.label { font-family: var(--display); font-stretch: 100%; font-weight: 620; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* heading masks (frontend-design recipe; Archivo ascent .878 so the standard .2em) */
.ln-mask { padding: .2em .15em .5em; margin: -.7em -.15em -.5em; }
.ln-mask:first-child { margin-top: -.2em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: var(--sec-y) 0; overflow: clip; isolation: isolate; }
.on-dark { color: #fff; }
.on-dark .lede, .on-dark p { color: rgba(255, 255, 255, .84); }
.on-light { color: var(--ink); }
.on-light .lede, .on-light p { color: var(--ink-soft); }
.bg-night { background-color: var(--night); }
.bg-petrol { background-color: var(--petrol); }
.bg-signal { background-color: var(--signal); }
.bg-mist { background-color: var(--mist); }
.bg-sodium { background-color: var(--sodium); }

/* textures: each sits on its own layer and drifts, so no section is ever flat or still */
.tex { position: absolute; inset: -12%; z-index: -1; pointer-events: none; animation: drift 46s linear infinite alternate; }
.tex-contours { background: url("../img/texture-contours.svg") center / cover no-repeat; }
.tex-contours.is-dark { filter: invert(1); opacity: .55; }
.tex-mesh { background: url("../img/texture-mesh.svg") 0 0 / 32px 32px repeat; }
.tex-scan { background: url("../img/texture-scan.svg") 0 0 / 8px 4px repeat; animation-duration: 18s; }
.tex-rain { background: url("../img/texture-rain.svg") 0 0 / 180px 240px repeat; animation: rain 1.6s linear infinite; inset: 0; opacity: .8; }
@keyframes rain { from { background-position: 0 0; } to { background-position: -36px 240px; } }
.tex-grain { inset: 0; animation: none; opacity: .5; background: url("../img/texture-grain.svg") 0 0 / 220px 220px repeat; }
.tex-ticks { inset: auto; width: min(1400px, 130vw); aspect-ratio: 1; right: -30%; top: 50%; margin-top: calc(min(1400px, 130vw) / -2); background: url("../img/texture-ticks.svg") center / contain no-repeat; animation: spin 140s linear infinite; }
.photo-wash { position: absolute; inset: 0; z-index: -2; }
.photo-wash img { width: 100%; height: 115%; object-fit: cover; opacity: .14; filter: grayscale(.4); }
@keyframes drift { from { transform: translate3d(-2%, -1.5%, 0) scale(1.02); } to { transform: translate3d(2%, 1.5%, 0) scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sodium); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 14px 26px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bg); border-radius: var(--rb);
  font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { border-color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover, .btn-ghost:focus-visible { --fg: var(--ink); }
.on-light .btn-ghost, .btn-ghost.is-ink { --fg: var(--ink); border-color: rgba(20,32,42,.4); }
.on-light .btn-ghost::before, .btn-ghost.is-ink::before { background: var(--ink); }
.on-light .btn-ghost:hover, .on-light .btn-ghost:focus-visible, .btn-ghost.is-ink:hover { --fg: #fff; border-color: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: #fff; }
.btn-ink::before { background: var(--night); }
.btn-ink:hover, .btn-ink:focus-visible { border-color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-link { font-family: var(--display); font-weight: 680; font-stretch: 104%; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; gap: .5em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 3px; }
.text-link:hover, .text-link:focus-visible { background-size: 100% 2px; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--head-h); color: #fff; transition: background-color .4s, box-shadow .4s, transform .5s var(--ease), height .4s var(--ease); }
.site-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8,16,22,.72), rgba(8,16,22,0)); pointer-events: none; transition: opacity .4s; }
.site-head.is-solid { background: rgba(14, 27, 36, .94); box-shadow: 0 1px 0 var(--line-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); --head-h: 80px; }
.site-head.is-solid::before { opacity: 0; }
.site-head.is-hidden { transform: translateY(-105%); }
.head-row { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 70px; width: auto; transition: height .4s var(--ease); }
.site-head.is-solid .brand img { height: 56px; }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; background: none; border: 0; cursor: pointer; font-family: var(--display); font-stretch: 104%; font-weight: 600; font-size: 1rem; text-decoration: none; color: #fff; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--sodium); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after, .has-drop.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.has-drop { position: relative; }
.has-drop.is-open > .nav-link svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 6px); left: -40px; width: 460px; padding: 12px;
  background: var(--night); border: 1px solid var(--line-dark); border-radius: var(--r); box-shadow: 0 30px 60px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
}
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop a { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: calc(var(--r) - 4px); text-decoration: none; transition: background-color .3s; }
.drop a:hover, .drop a:focus-visible, .drop a[aria-current="page"] { background: rgba(255,255,255,.07); }
.drop img { width: 76px; height: 64px; object-fit: cover; border-radius: calc(var(--r) - 4px); }
.drop strong { display: block; font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: 1.02rem; }
.drop span { display: block; font-size: .94rem; line-height: 1.4; color: rgba(255,255,255,.72); }
.head-cta { min-height: 48px; padding: 10px 20px; flex: none; }
.menu-btn { display: none; margin-left: auto; min-height: 48px; min-width: 48px; padding: 0 14px; background: none; border: 1px solid rgba(255,255,255,.4); border-radius: var(--rb); cursor: pointer; font-family: var(--display); font-weight: 650; color: #fff; align-items: center; gap: 10px; }
.menu-btn i { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: background-color .3s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 99; background: var(--night); color: #fff; padding: calc(var(--head-h) + 12px) var(--gut) 32px; overflow-y: auto; display: flex; flex-direction: column; clip-path: circle(0 at calc(100% - 44px) 46px); transition: clip-path .7s var(--ease), visibility 0s .7s; visibility: hidden; }
.mnav.is-open { clip-path: circle(150% at calc(100% - 44px) 46px); visibility: visible; transition: clip-path .7s var(--ease); }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav > ul > li { border-bottom: 1px solid var(--line-dark); }
.mnav a { display: flex; align-items: center; min-height: 56px; font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: 1.5rem; text-decoration: none; }
.mnav .sub a { font-size: 1.1rem; font-weight: 620; min-height: 48px; padding-left: 18px; color: rgba(255,255,255,.85); }
.mnav .btn { margin-top: 28px; justify-content: center; font-size: 1.1rem; }
.mnav-foot { margin-top: auto; padding-top: 28px; color: rgba(255,255,255,.7); font-size: 1rem; }

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; color: #fff; overflow: clip; background: var(--night); isolation: isolate; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-canvas { opacity: 0; transition: opacity 1s ease; z-index: 1; }
.hero.is-live .hero-canvas { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
  linear-gradient(90deg, rgba(8,15,21,.88) 0%, rgba(8,15,21,.62) 38%, rgba(8,15,21,.1) 70%),
  linear-gradient(0deg, rgba(8,15,21,.85) 0%, rgba(8,15,21,0) 38%); }
.hero-inner { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--head-h); padding-bottom: clamp(28px, 4vh, 48px); }
.hero-copy { max-width: 1040px; }
.hero h1 { margin-bottom: .34em; }
.hero .lede { max-width: 760px; color: rgba(255,255,255,.88); }
.hero-bar { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px; margin-top: clamp(26px, 5vh, 56px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-count { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hero-count b { color: var(--sodium); }
.hero-cap { position: relative; overflow: clip; min-height: 1.6em; font-family: var(--display); font-stretch: 104%; font-weight: 560; color: rgba(255,255,255,.9); }
.hero-cap span { display: block; }
.hero-progress { grid-column: 1 / -1; order: 5; height: 2px; background: rgba(255,255,255,.16); position: relative; overflow: hidden; }
.hero-progress i { position: absolute; inset: 0; background: var(--sodium); transform-origin: left; transform: scaleX(0); }
.hero-clock { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 600; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 8px; }
.hero-clock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e2463a; box-shadow: 0 0 0 4px rgba(226,70,58,.22); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-ctrl { display: flex; gap: 8px; }
.hero-ctrl button { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.35); border-radius: var(--rb); color: #fff; cursor: pointer; transition: background-color .3s, border-color .3s; }
.hero-ctrl button:hover, .hero-ctrl button:focus-visible { background: var(--sodium); border-color: var(--sodium); color: var(--ink); }
.hero-ctrl svg { width: 18px; height: 18px; }
.hero-frame { position: absolute; z-index: 2; inset: calc(var(--head-h) + 14px) var(--gut) auto auto; width: 44px; height: 44px; border-top: 2px solid rgba(255,255,255,.55); border-right: 2px solid rgba(255,255,255,.55); pointer-events: none; }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: clamp(28px, 3.6vw, 52px); }
.sec-head h2 { margin: 0 0 .4em; }
.sec-head h2 em { display: block; }
.sec-head p { margin: 0; }

/* ---------- service cards (home) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.svc-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--night); aspect-ratio: 10 / 11; max-height: min(var(--media-cap), 56vh); width: 100%; isolation: isolate; }
.svc-card .svc-img { position: absolute; inset: 0; overflow: hidden; animation: breathe 11s ease-in-out infinite alternate; }
.svc-card:nth-child(2) .svc-img { animation-delay: -4s; } .svc-card:nth-child(3) .svc-img { animation-delay: -7s; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.svc-card .svc-torch { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 40%), rgba(255,196,120,.28), transparent 70%); mix-blend-mode: screen; opacity: 0; transition: opacity .5s; }
.svc-card:hover img, .svc-card:focus-visible img { transform: scale(1.12); }
.svc-card .svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,21,.45) 0%, rgba(8,15,21,0) 30%, rgba(8,15,21,.2) 55%, rgba(8,15,21,.9) 100%); transition: opacity .6s; }
.svc-card:hover .svc-img::after { opacity: .75; }
.svc-card:hover .svc-torch, .svc-card:focus-visible .svc-torch { opacity: 1; }
.svc-card .svc-body { position: absolute; inset: auto 0 0; padding: clamp(20px, 2vw, 30px); }
.svc-card h3 { margin-bottom: .35em; font-size: clamp(1.45rem, 1.9vw, 2rem); }
.svc-card p { color: rgba(255,255,255,.84); font-size: 1.02rem; line-height: 1.5; margin-bottom: 14px; }
.svc-card .svc-go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; color: var(--sodium); }
.svc-card .svc-go svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.svc-card:hover .svc-go svg { transform: translateX(6px); }
.svc-card .svc-tag { position: absolute; top: 18px; left: 18px; padding: 6px 10px; background: rgba(8,15,21,.62); border: 1px solid rgba(255,255,255,.22); border-radius: calc(var(--r) - 4px); font-family: var(--display); font-weight: 620; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- night shift (pinned filmstrip) ---------- */
.shift { position: relative; color: #fff; overflow: clip; isolation: isolate; background: #1d2c48 url("../img/texture-rain.svg") 0 0 / 180px 240px repeat; }
.shift-sky { position: absolute; inset: 0; z-index: -1; }
.shift-sky i { position: absolute; inset: 0; }
.shift-sky .sky-dusk { background: linear-gradient(180deg, #1d2c48 0%, #3b4a6b 55%, #b0694a 100%); }
.shift-sky .sky-night { background: linear-gradient(180deg, #060d14 0%, #0d1b26 60%, #13283a 100%); opacity: 0; }
.shift-sky .sky-dawn { background: linear-gradient(180deg, #2b3a58 0%, #6b6680 48%, #d99a62 100%); opacity: 0; }
.shift-stars { position: absolute; inset: 0 0 40%; z-index: -1; opacity: 0; background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 12%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 58% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 9%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 88% 31%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 46%, #fff 50%, transparent 51%); animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { filter: brightness(.55); } }
.shift-stage { position: relative; isolation: isolate; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--head-h); padding-bottom: 28px; overflow: clip; }
.shift-view { overflow-x: clip; }
.shift-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(18px, 3vh, 34px); }
.shift-top h2 { margin: 0; }
.shift-top p { margin: 10px 0 0; color: rgba(255,255,255,.82); }
.shift-clock { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .9; font-variant-numeric: tabular-nums; color: var(--sodium); flex: none; }
/* the strip is a sliding track: wider than the screen (trailing room is never scrolled to), first card lined up with the heading */
.shift-track { display: flex; width: max-content; gap: clamp(16px, 2vw, 28px); padding: 0 80vw 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); will-change: transform; }
.shift-panel { flex: none; width: clamp(280px, 30vw, 440px); }
.shift-panel figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; height: min(48vh, 520px); background: var(--night); }
.shift-panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.shift-panel figcaption { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: calc(var(--r) - 4px); background: rgba(8,15,21,.7); font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sodium); }
.shift-panel h3 { margin: 16px 0 6px; font-size: clamp(1.25rem, 1.5vw, 1.55rem); }
.shift-panel p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.shift-rail { margin: clamp(18px, 3vh, 30px) var(--gut) 0; position: relative; height: 26px; }
.shift-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(255,255,255,.2); }
.shift-rail i { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--sodium); transform-origin: left; transform: scaleX(0); }
.shift-rail span { position: absolute; top: 0; font-family: var(--display); font-size: .8rem; font-weight: 620; color: rgba(255,255,255,.7); transform: translateX(-50%); }
.shift-rail span::after { content: ""; display: block; width: 2px; height: 8px; margin: 3px auto 0; background: rgba(255,255,255,.45); }
.shift-rail span:first-child { transform: none; }
.shift-rail span:last-child { transform: translateX(-100%); }

/* ---------- founder story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) min(40vw, calc(var(--media-cap) * .68)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-grid .frame { justify-self: start; width: 100%; }
.story-say { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.55rem, 2.3vw, 2.35rem); line-height: 1.28; color: var(--ink); margin: 0 0 .9em; padding-left: 26px; border-left: 4px solid var(--sodium); text-wrap: balance; }
.story-say .w { color: rgba(20,32,42,.16); transition: color .2s; }
.story-say .w.lit { color: var(--ink); }
.story-say .w.lit.hot { color: var(--sodium-deep); }
.frame { position: relative; margin: 0; width: min(100%, calc(var(--media-cap) * .68)); justify-self: end; }
.frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--sodium); border-radius: var(--r); z-index: -1; }
.frame .frame-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
/* torch glint: a pool of warm light drifting over framed photos, so they never sit dead still */
.frame .frame-img::after, .shift-panel figure::after { content: ""; position: absolute; inset: -30%; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255,196,120,.26), rgba(255,196,120,0) 32%); mix-blend-mode: screen; animation: glint 10s ease-in-out infinite alternate; }
.shift-panel:nth-child(2n) figure::after { animation-delay: -5s; animation-duration: 12s; }
@keyframes glint { 0% { transform: translate(-22%, -16%); } 50% { transform: translate(18%, 4%); } 100% { transform: translate(-6%, 20%); } }
.frame img { width: 100%; height: 114%; object-fit: cover; }
.frame figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: calc(var(--r) - 4px); background: rgba(8,15,21,.72); color: #fff; font-family: var(--display); font-size: .9rem; font-weight: 600; }

/* ---------- promises ---------- */
.prom-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.prom-big { font-family: var(--display); font-stretch: 125%; font-weight: 850; font-size: clamp(7rem, 17vw, 15rem); line-height: .9; color: var(--sodium); letter-spacing: -.04em; background: linear-gradient(100deg, var(--sodium) 0 40%, #ffe2b5 50%, var(--sodium) 60% 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 6s ease-in-out infinite; padding-bottom: .04em; }
@keyframes sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.prom-big-label { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.3rem, 1.8vw, 1.8rem); margin-top: 18px; color: #fff; }
.prom-big-sub { color: rgba(255,255,255,.78); margin-top: 8px; }
.prom-list { list-style: none; margin: 0; padding: 0; }
.prom-list li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; }
.prom-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.22); transform-origin: left; transform: scaleX(var(--line, 1)); }
.prom-list li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.22); }
.prom-ico { width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center; background: rgba(242,163,58,.12); color: var(--sodium); }
.prom-ico svg { width: 28px; height: 28px; }
.prom-list h3 { margin: 4px 0 6px; color: #fff; }
.prom-list p { margin: 0; color: rgba(255,255,255,.8); }

/* ---------- planner teaser (sodium band) ---------- */
.teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) min(440px, 40vw); gap: clamp(32px, 4vw, 56px); align-items: center; }
.teaser h2 { color: var(--ink); }
.teaser h2 .ink-em { display: block; color: var(--ink); }
.teaser p { color: #2b2516; }
.mini-dial { width: min(100%, 440px, 62vh); justify-self: start; position: relative; border-radius: 50%; background: var(--night); box-shadow: 0 30px 60px rgba(60,30,0,.25); }
.mini-dial svg { width: 100%; height: auto; overflow: visible; }
.mini-dial .md-face { fill: var(--night); }
.mini-dial .md-track { fill: none; stroke: rgba(255,255,255,.1); }
.mini-dial .md-arc { fill: none; stroke: var(--sodium); stroke-linecap: butt; }
.mini-dial .md-tick { stroke: rgba(255,255,255,.35); stroke-width: 2; }
.mini-dial .md-tick.major { stroke: rgba(255,255,255,.7); stroke-width: 3; }
.mini-dial .md-num { fill: rgba(255,255,255,.75); font-family: var(--display); font-weight: 650; font-size: 22px; text-anchor: middle; dominant-baseline: middle; }
.mini-dial .md-hand { fill: #fff; stroke: var(--night); stroke-width: 5; }
.mini-dial .md-read { position: absolute; inset: 27%; border-radius: 50%; background: var(--night); display: grid; place-content: center; text-align: center; color: #fff; pointer-events: none; }
.mini-dial .md-read b { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.mini-dial .md-read span { font-family: var(--display); font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.85); margin-top: 6px; }
.teaser .btn-ink { margin-top: 8px; }

/* ---------- coverage map ---------- */
.cover-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.cover-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.cover-facts li { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 620; font-size: 1.05rem; color: #fff; }
.cover-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 0 5px rgba(242,163,58,.18); flex: none; }
.map-box { position: relative; perspective: 1200px; }
.map-tilt { transform-style: preserve-3d; will-change: transform; }
.sw-map { width: 100%; height: auto; max-height: min(72vh, 700px); margin: 0 auto; overflow: hidden; border-radius: var(--r); }
.map-land { fill: #17303b; }
.map-region { fill: #143a42; stroke: var(--sodium); stroke-width: 2; stroke-linejoin: round; }
.map-county { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.map-rings circle { fill: none; stroke: var(--sodium); stroke-width: 2.4; opacity: .7; }
.map-beam { fill: url(#beam-grad); mix-blend-mode: screen; }
.map-pin-dot { fill: var(--sodium); }
.map-pin-glow { fill: var(--sodium); opacity: .28; }
.map-label { position: absolute; font-family: var(--display); font-weight: 700; color: #fff; padding: 6px 10px; border-radius: calc(var(--r) - 4px); background: rgba(8,15,21,.78); border: 1px solid rgba(242,163,58,.6); pointer-events: none; white-space: nowrap; transform: translate(14px, -130%); }

/* ---------- enquiry band + forms ---------- */
.enq-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.enq-aside .frame { justify-self: start; margin-top: 34px; width: min(100%, calc(var(--media-cap) * .9)); }
.enq-aside .frame .frame-img { aspect-ratio: 16 / 10; }
.form[hidden] { display: none; }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; padding: clamp(22px, 3vw, 40px); background: #fff; border-radius: var(--r); box-shadow: 0 30px 70px rgba(14,27,36,.14); scroll-margin-top: 110px; }
.on-dark .form { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); box-shadow: none; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-family: var(--display); font-weight: 650; font-size: .98rem; color: var(--ink); }
.on-dark .field label, .on-dark .field legend { color: #fff; }
.field .hint { font-family: var(--display); font-weight: 450; font-size: .9rem; color: var(--ink-soft); }
.on-dark .field .hint { color: rgba(255,255,255,.7); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r); border: 1.5px solid rgba(20,32,42,.22);
  background: var(--signal); color: var(--ink); font-family: var(--display); font-size: 1rem; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.on-dark .field input, .on-dark .field select, .on-dark .field textarea { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); color: #fff; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sodium); box-shadow: 0 0 0 4px rgba(242,163,58,.25); background-color: #fff; }
.on-dark .field input:focus, .on-dark .field select:focus, .on-dark .field textarea:focus { background-color: rgba(255,255,255,.1); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314202A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.on-dark .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.on-dark .field select option { color: var(--ink); background: #fff; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 16px 18px; border-radius: var(--r); font-family: var(--display); font-weight: 600; }
.form__status--ok { background: #e3f2e6; color: #134d25; border: 1px solid #9ccfa8; }
.form__status--err { background: #fbe6e2; color: #7a1d10; border: 1px solid #e6a597; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-foot p { margin: 0; font-size: .95rem; }
.form-foot a { color: inherit; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--night); color: rgba(255,255,255,.82); overflow: clip; isolation: isolate; }
.foot-marquee { border-bottom: 1px solid var(--line-dark); overflow: hidden; padding: 20px 0; }
.foot-marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.foot-marquee span { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.8rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); padding-right: 40px; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.foot-marquee span::after { content: ""; width: 12px; height: 12px; background: var(--sodium); border-radius: 50%; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 4vw, 56px); }
.foot-brand img { height: 70px; width: auto; margin-bottom: 20px; }
.foot-brand p { color: rgba(255,255,255,.75); font-size: 1.02rem; }
.foot-col h2 { position: relative; font-size: 1.05rem; font-stretch: 106%; font-weight: 700; color: #fff; margin: 0 0 18px; padding-bottom: 10px; letter-spacing: 0; }
.foot-col h2 .bar { display: block; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--sodium); transform-origin: left; animation: bar 3.2s ease-in-out infinite alternate; }
.foot-col:nth-child(3) h2 .bar { animation-delay: -1.1s; } .foot-col:nth-child(4) h2 .bar { animation-delay: -2.2s; }
@keyframes bar { from { transform: scaleX(.35); } to { transform: scaleX(1); } }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col ul a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-family: var(--display); font-weight: 520; background: linear-gradient(var(--sodium), var(--sodium)) 0 85% / 0 2px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.foot-col ul a:hover, .foot-col ul a:focus-visible { background-size: 100% 2px; color: #fff; }
.foot-col p { font-size: 1rem; color: rgba(255,255,255,.75); }
.foot-col .btn { margin-top: 6px; }
.foot-base { position: relative; border-top: 1px solid var(--line-dark); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-family: var(--display); font-size: .95rem; color: rgba(255,255,255,.66); }
.foot-base a { color: #fff; text-decoration-color: var(--sodium); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -14px 0; }
.foot-glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; left: 50%; top: 30%; background: radial-gradient(circle, rgba(242,163,58,.16), transparent 60%); transform: translateX(-50%); animation: glow 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate(-40%, -8%) scale(1.15); opacity: .6; } }

/* ---------- reveal start states (only when motion runs; the safety net clears them) ---------- */
.js:not(.rm):not(.rv-safe) [data-r="up"] { opacity: 0; transform: translateY(40px); }
.js:not(.rm):not(.rv-safe) [data-r="wipe"] { clip-path: inset(100% 0 0 0 round var(--r)); }
.js:not(.rm):not(.rv-safe) [data-r="lines"] { opacity: 0; }
.js:not(.rm):not(.rv-safe) .hero-copy > * { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc-card:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --head-h: 84px; }
  .brand img { height: 60px; }
  .sec-head, .story-grid, .prom-grid, .teaser-grid, .cover-grid, .enq-grid { grid-template-columns: 1fr; }
  .frame, .story-grid .frame { justify-self: start; width: min(100%, 520px); }
  .hero-bar { grid-template-columns: auto 1fr auto; }
  .hero-clock { display: none; }
  .prom-big { font-size: clamp(6rem, 30vw, 10rem); }
  .shift-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .shift-clock { font-size: clamp(2.6rem, 12vw, 4rem); }
}
@media (max-width: 640px) {
  :root { --head-h: 76px; }
  .brand img, .site-head.is-solid .brand img { height: 52px; }
  .site-head.is-solid { --head-h: 70px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-grid .svc-card:last-child { aspect-ratio: 4 / 4.2; }
  .form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cap { display: none; }
  .hero-bar { grid-template-columns: auto 1fr; }
  .hero-ctrl { justify-self: end; }
  .shift-panel { width: 76vw; }
  .shift-panel figure { height: min(44vh, 400px); }
  .shift-panel p { font-size: .98rem; }
  .shift-top p { display: none; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- reduced motion and no-JS: the complete page, nothing hidden or moving ---------- */
.rm .tex, .rm .svc-img, .rm .frame-img::after, .rm .shift-panel figure::after, .rm .prom-big, .rm .foot-marquee-track, .rm .shift-stars, .rm .foot-glow, .rm .hero-clock::before { animation: none; }
.no-js .hero-canvas, .rm .hero-canvas { display: none; }
.rm .shift-stage, .no-js .shift-stage { height: auto; padding: var(--sec-y) 0; }
.rm .shift-track, .no-js .shift-track { flex-wrap: wrap; }
.rm .shift-panel, .no-js .shift-panel { width: calc(50% - 14px); }
.rm .shift-sky .sky-night, .no-js .shift-sky .sky-night { opacity: 1; }
.rm .shift-track, .no-js .shift-track { width: auto; padding: 0 var(--gut); }
.rm .shift-rail, .no-js .shift-rail { display: none; }
.rm .story-say .w, .no-js .story-say .w { color: var(--ink); }
@media (max-width: 640px) { .rm .shift-panel, .no-js .shift-panel { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- legal band, link cards (404, privacy, holding pages) ---------- */
.legal-band { padding-top: calc(var(--head-h) + clamp(48px, 7vw, 96px)); }
.legal-band h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.link-cards a { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 100%; padding: 26px 64px 26px 26px; background: #fff; border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: 0 16px 40px rgba(14,27,36,.08); transition: transform .45s var(--ease), box-shadow .45s var(--ease); overflow: hidden; isolation: isolate; }
.link-cards a::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--sodium); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.link-cards a:hover, .link-cards a:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(14,27,36,.14); }
.link-cards a:hover::before, .link-cards a:focus-visible::before { transform: none; }
.link-cards strong { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 1.3rem; }
.link-cards span { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.link-cards svg { position: absolute; right: 24px; top: 28px; width: 22px; height: 22px; color: var(--sodium-deep); transition: transform .4s var(--ease); }
.link-cards a:hover svg { transform: translateX(5px); }
@media (max-width: 900px) { .link-cards { grid-template-columns: 1fr; } }

/* footer: a light runs along the base rule so the footer is never dead still */
.foot-base::before { content: ""; position: absolute; top: -1px; left: 0; width: 22%; height: 2px; background: linear-gradient(90deg, transparent, var(--sodium), transparent); animation: rule-run 7s ease-in-out infinite; }
@keyframes rule-run { from { transform: translateX(-30%); } to { transform: translateX(480%); } }
/* header text waits for the web fonts (no width jump); the head script adds .fonts-in, with a 1.5 s safety net */
.js:not(.fonts-in) .site-head .nav, .js:not(.fonts-in) .head-cta { opacity: 0; }
.site-head .nav, .head-cta { transition: opacity .5s ease; }
.rm .foot-base::before, .rm .tex-rain, .rm .foot-col h2 .bar { animation: none; }
