/* ==========================================================================
   Ravenholm (Engineering) Ltd
   Monochrome, dithered imagery on dark surfaces. One accent colour.
   ========================================================================== */

:root {
    --bg: #0a0a0a;
    --bg-2: #101010;
    --bg-3: #161616;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: #ececec;
    --text-2: #c9c9c9;
    --muted: #9a9a9a;
    --accent: #cc5500;
    --accent-2: #e8681a;
    --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --gutter: clamp(20px, 4vw, 48px);
    --max: 1240px;
    --section-y: clamp(80px, 11vw, 150px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: #fff;
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; line-height: 1.25; }

.lead {
    font-size: clamp(1.1rem, 1.55vw, 1.35rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-2);
    max-width: 60ch;
}
.muted { color: var(--muted); }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    padding: 10px 14px; background: var(--accent-2); color: #0a0a0a; font-family: var(--mono); font-size: 13px;
}
.skip-link:focus { left: 8px; }

/* Kicker and fiducial mark ------------------------------------------------- */
.kicker {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 1.4em;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.fid { width: 16px; height: 1.5px; flex: 0 0 16px; background: currentColor; }

/* Buttons ------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.7em;
    padding: 15px 22px;
    font-family: var(--mono); font-size: 12.5px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: #0a0a0a; background: var(--accent-2); border: 1px solid var(--accent-2);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover { background: #ff8a3d; border-color: #ff8a3d; color: #0a0a0a; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; }

/* Header -------------------------------------------------------------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 20px 0;
    transition: padding 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(10, 10, 10, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.3s ease;
}
.site-header.is-scrolled { padding: 12px 0; border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; color: #fff; }
.brand:hover { color: #fff; }
.wordmark {
    display: inline-block; padding: 7px 0 6px;
    border-top: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2);
    font-weight: 500; font-size: 15px; line-height: 1; letter-spacing: 0.32em; text-transform: uppercase;
    white-space: nowrap; text-indent: 0.02em;
}
.wordmark .wm-a { color: #fff; }
.wordmark .wm-b { color: var(--accent-2); margin-right: -0.32em; }
.brand:hover .wm-b { color: #ff8a3d; }
.footer-brand .wordmark { font-size: 14px; }
@media (max-width: 400px) { .wordmark { font-size: 13px; letter-spacing: 0.26em; } }

.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
    position: relative; display: inline-block; padding: 6px 0;
    font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-2);
}
.nav-list a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: #fff; }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); }
.nav-contact { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.nav-contact:hover { color: #fff; }

.nav-toggle {
    display: none; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--line-strong); color: #fff; cursor: pointer;
    padding: 10px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-toggle-bar { position: relative; width: 18px; height: 2px; background: #fff; transition: background 0.2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; position: relative; z-index: 61; }
    .site-nav {
        position: fixed; inset: 0; z-index: 60;
        flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
        padding: 110px var(--gutter) 40px;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        justify-content: flex-start; justify-content: safe center;
        background: rgba(10, 10, 10, 0.97);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav-list { flex-direction: column; gap: 22px; }
    .nav-list a { font-size: 22px; letter-spacing: 0.12em; }
    .nav-contact { font-size: 14px; }
    .nav-open { overflow: hidden; }
}

/* Sections and backgrounds -------------------------------------------------- */
.section { position: relative; padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.has-bg { border-top: 0; }
.section.has-bg + .section { border-top: 0; }

.has-bg { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.bg {
    position: absolute; inset: 0; z-index: -2;
    background-image: var(--bg-m);
    background-size: cover;
    background-position: var(--bg-pos, center);
    background-repeat: no-repeat;
    opacity: 0.55;
}
@media (min-width: 768px) {
    .bg { background-image: var(--bg-l); }
}
@media (min-width: 1024px) and (hover: hover) {
    .has-bg .bg { background-attachment: fixed; }
    .hero-media .bg { background-attachment: scroll; }
}
.has-bg::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0.92) 100%);
}
.has-bg::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(10, 10, 10, 0.7) 100%);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 1em; }
.section-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.section-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
@media (max-width: 860px) {
    .section-grid { grid-template-columns: 1fr; }
    .section-grid .section-head { position: static; margin-bottom: 8px; }
}
.prose-cols { columns: 2; column-gap: 48px; }
.prose-cols p { break-inside: avoid; }
@media (max-width: 860px) { .prose-cols { columns: 1; } }

.section[id], .partners[id] { scroll-margin-top: 72px; }
.sub-block { margin-top: clamp(48px, 6vw, 80px); }
.sub-heading { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 24px; }
.facility-notes { margin-top: clamp(40px, 5vw, 64px); }
.facility-notes p { color: var(--text-2); }

/* Items (numbered cards / list) --------------------------------------------- */
.items { list-style: none; margin: 0; padding: 1px; display: grid; gap: 1px; }
.items-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.items-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .items-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .items-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .items-2, .items-3, .items-4 { grid-template-columns: 1fr; } }

.item {
    position: relative; padding: 28px 26px 30px;
    background: rgba(12, 12, 12, 0.88);
    outline: 1px solid var(--line); outline-offset: 0;
    transition: background 0.25s ease;
}
.has-bg .item { background: rgba(10, 10, 10, 0.8); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.item:hover { background: rgba(22, 22, 22, 0.95); }
.item .idx { display: block; margin-bottom: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent-2); }
.item h3 { margin-bottom: 0.55em; }
.item p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

.items-list { display: block; padding: 0; border-top: 1px solid var(--line); }
.items-list .item { outline: 0; }
.items-list .item {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: baseline;
    padding: 26px 0; background: none; border-bottom: 1px solid var(--line);
}
.items-list .item .idx { margin: 0; }
.items-list .item:hover { background: none; }
.items-list .item h3 { margin: 0; }
@media (max-width: 720px) {
    .items-list .item { grid-template-columns: 44px minmax(0, 1fr); }
    .items-list .item p { grid-column: 2; }
}

/* Trailing cards: never leave an empty bordered cell at the end of a grid. */
@media (min-width: 600px) {
    .items-2 > .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 860px) {
    .items-3 > .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 1024px) {
    .items-4 > .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 861px) {
    .items-3 > .item:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
    .items-3 > .item:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (min-width: 1025px) {
    .items-4 > .item:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
    .items-4 > .item:last-child:nth-child(4n + 2) { grid-column: span 3; }
    .items-4 > .item:last-child:nth-child(4n + 3) { grid-column: span 2; }
}

/* Hero ---------------------------------------------------------------------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100svh; display: grid; align-items: end;
    padding: 140px 0 clamp(56px, 8vh, 96px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-media .bg { opacity: 0.6; }
.hero-media video, .hero-media canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-media video { display: none; }
.hero-media.is-ready canvas { opacity: 0.62; }
.hero-media.is-fallback video { display: block; opacity: 0.55; filter: grayscale(1) contrast(1.15) brightness(0.9); }
.hero-media.is-fallback canvas { display: none; }
.hero-media.is-static video, .hero-media.is-static canvas { display: none; }
.hero-veil {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.25) 35%, rgba(10, 10, 10, 0.35) 65%, rgba(10, 10, 10, 0.96) 100%),
        radial-gradient(90% 70% at 20% 80%, rgba(10, 10, 10, 0.55) 0%, transparent 70%);
}
.hero-inner { max-width: 960px; }
.hero .kicker { color: var(--muted); font-weight: 400; letter-spacing: 0.22em; }
.hero h1 { max-width: 24ch; font-size: clamp(2.3rem, 5.4vw, 4.9rem); margin-bottom: 0.45em; }
.hero .lead { max-width: 52ch; }
.hero .btn-row { margin-top: 2.4em; }

.spec-strip {
    margin: clamp(48px, 7vh, 80px) 0 0; padding: 22px 0 0; list-style: none;
    display: flex; flex-wrap: wrap; gap: 12px 40px; overflow: clip;
    border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.spec-strip li { position: relative; display: flex; align-items: center; }
.spec-strip li + li::before { content: ''; position: absolute; left: -20px; top: 50%; width: 1px; height: 12px; transform: translateY(-50%); background: var(--line-strong); }
@media (max-width: 720px) {
    .spec-strip { flex-direction: column; gap: 10px; }
    .spec-strip li + li::before { display: none; }
}

/* Inner page hero ----------------------------------------------------------- */
.page-hero {
    min-height: 62vh; display: grid; align-items: end;
    padding: 160px 0 clamp(48px, 7vh, 88px);
}
.page-hero-inner { max-width: 860px; }
.page-hero h1 { margin-bottom: 0.4em; }

/* Statement blocks ---------------------------------------------------------- */
.statement { max-width: 900px; }
.statement h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.statement p { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text-2); max-width: 66ch; }
.big-num { font-family: var(--mono); font-weight: 400; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: -0.03em; color: #fff; }
.big-num small { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-top: 14px; }

/* Process steps ------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 1px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; }
.steps li { position: relative; padding: 32px 26px; background: rgba(10, 10, 10, 0.8); outline: 1px solid var(--line); outline-offset: 0; }
.steps h3 { margin-bottom: 0.5em; }
.steps p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Clients and partners ------------------------------------------------------ */
/* Flex rather than grid so a short last row is centred instead of leaving orphan cells. */
.logo-grid {
    --cols: 6;
    list-style: none; margin: 0; padding: 1px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1px;
}
@media (max-width: 1100px) { .logo-grid { --cols: 5; } }
@media (max-width: 900px) { .logo-grid { --cols: 4; } }
@media (max-width: 600px) { .logo-grid { --cols: 3; } }
@media (max-width: 400px) { .logo-grid { --cols: 2; } }
.logo-cell {
    flex: 0 0 calc((100% - (var(--cols) - 1) * 1px) / var(--cols));
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 5 / 3; padding: 12px 14px;
    outline: 1px solid var(--line); outline-offset: 0;
    background: rgba(12, 12, 12, 0.88);
}
.logo-cell img {
    --s: 1;
    max-width: min(92%, calc(80% * var(--s)));
    max-height: min(78%, calc(62% * var(--s)));
    width: auto; height: auto;
    filter: grayscale(1) brightness(1.05);
}
@media (max-width: 600px) { .logo-cell { aspect-ratio: 4 / 3; padding: 10px; } }
@media (forced-colors: active) { .logo-cell { outline-color: CanvasText; } }
@media print { .logo-cell { background: none; outline: 1px solid #999; } .logo-cell img { filter: invert(1); } }

/* CTA band ------------------------------------------------------------------ */
.cta-band { text-align: left; }
.cta-band-inner { max-width: 820px; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.contact-big { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-big a { font-size: clamp(1.4rem, 3.2vw, 2.6rem); font-weight: 400; letter-spacing: -0.01em; color: #fff; }
.contact-big a:hover { color: var(--accent-2); }
.contact-big li { display: flex; flex-direction: column; gap: 4px; }
.contact-big .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); }

/* Contact form --------------------------------------------------------------- */
.contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.contact-grid > .reveal:first-child { position: sticky; top: 110px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > .reveal:first-child { position: static; } }
.contact-notes { margin-top: 36px; }
.contact-notes p { font-size: 15.5px; color: var(--muted); max-width: 40ch; }
.contact-form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label {
    font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.field .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px;
    font: inherit; font-size: 16px; line-height: 1.4; color: var(--text);
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); border-radius: 0;
    outline: none; transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 160px; }
.field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
    padding-right: 44px;
}
.field select option { background: var(--bg-3); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); background: rgba(255, 255, 255, 0.05); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d0463b; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 6px; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 40ch; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; margin: 0 0 22px; border: 1px solid var(--line-strong); font-size: 15.5px; }
.form-status.is-ok { border-color: var(--accent-2); color: #fff; }
.form-status.is-error { border-color: #d0463b; color: #f2b3ad; }
@media print { .contact-form { display: none; } }

/* Generic page content ------------------------------------------------------ */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-2); }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.footer-blurb { margin-top: 24px; max-width: 46ch; color: var(--text-2); }
.footer-label { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); }
.footer-nav .nav-list { flex-direction: column; gap: 10px; }
.footer-nav .nav-list a { font-size: 12.5px; }
.footer-contact p { margin: 0 0 8px; }
.footer-contact a { color: var(--text); }
.footer-contact a:hover { color: var(--accent-2); }
.spec-list { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
    margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: #fff; }

/* Reveal on scroll ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.items .reveal:nth-child(2) { transition-delay: 0.06s; }
.items .reveal:nth-child(3) { transition-delay: 0.12s; }
.items .reveal:nth-child(4) { transition-delay: 0.18s; }
.items .reveal:nth-child(5) { transition-delay: 0.24s; }
.items .reveal:nth-child(6) { transition-delay: 0.30s; }
.items .reveal:nth-child(7) { transition-delay: 0.36s; }
.items .reveal:nth-child(8) { transition-delay: 0.42s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .bg { background-attachment: scroll; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Selection, scrollbars ----------------------------------------------------- */
::selection { background: var(--accent-2); color: #0a0a0a; }

/* Hero video pause control (WCAG 2.2.2) ------------------------------------- */
.video-toggle {
    position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: rgba(10, 10, 10, 0.6); border: 1px solid var(--line-strong); color: var(--text-2);
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.video-toggle:hover { color: #fff; border-color: #fff; }
.video-toggle[hidden] { display: none; }
.video-toggle-icon { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.video-toggle[aria-pressed="true"] .video-toggle-icon { border: 0; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid currentColor; }

/* Forced colours (Windows High Contrast) ------------------------------------ */
@media (forced-colors: active) {
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after, .fid, .nav-list a::after, .spec-strip li + li::before {
        forced-color-adjust: none; background: CanvasText;
    }
    .item, .steps li { outline: 1px solid CanvasText; }
    .btn { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}

/* Print ---------------------------------------------------------------------- */
@media print {
    html, body { background: #fff; color: #000; }
    h1, h2, h3, .item h3, .steps h3 { color: #000; }
    p, .lead, .item p, .steps p, .muted, .statement p, .footer-blurb { color: #000; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .site-header, .nav-toggle, .hero-media, .hero-veil, .bg, .has-bg::before, .has-bg::after, .video-toggle, .btn-row, .footer-bottom a { display: none !important; }
    .hero, .page-hero { min-height: 0; padding: 24px 0; }
    .site-main { padding-top: 0; }
    .section { padding: 24px 0; border-top: 1px solid #999; }
    .item, .steps li { background: none; outline: 1px solid #999; break-inside: avoid; }
    a { color: #000; text-decoration: underline; }
    .site-footer { border-top: 1px solid #999; }
}
