/* ═══════════════════════════════════════════════════════
   RHIBUSTECH — CORE STYLES
   Concept: "Bearing". Precision instrument aesthetics for
   a partner that points teams at their next move.
   Shared by index.html and every page in /services.
═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
    /* brand palette (unchanged) */
    --orange: #FB9300;
    --deep-orange: #B03200;
    --dark-accent: #510E01;
    --bright-silver: #F3F2F1;
    --light-silver: #D6D5D4;
    --mid-silver: #B4B2B2;
    --dark-silver: #8D8C8C;
    --gunmetal: #676666;
    --charcoal: #403E3F;
    --black: #110D0C;

    /* semantic roles (dark theme) */
    --bg: var(--black);
    --bg-alt: #1A1412;
    --fg: var(--bright-silver);
    --fg-soft: var(--light-silver);
    --fg-muted: var(--dark-silver);
    --surface: rgba(255, 255, 255, .03);
    --line: rgba(255, 255, 255, .12);
    --line-soft: rgba(255, 255, 255, .06);
    --line-strong: rgba(255, 255, 255, .24);
    --grid: rgba(255, 255, 255, .045);
    --accent-ink: var(--orange);
    --header-bg: rgba(17, 13, 12, .82);

    /* type */
    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    /* layout */
    /* page margin: 60px, growing on wide screens so the content column stops at 1400px */
    --gutter: max(60px, calc((100vw - 1400px) / 2));
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Light theme has its own character: warm paper and sand (not grey), warm ink,
   and an orange dark enough for small text. Large key words use a highlighter
   swipe in the true brand orange instead (see the highlight rule below). */
body.light-mode {
    --bg: #FAF6EF;
    --bg-alt: #F1E9DC;
    --fg: #1A1210;
    --fg-soft: #453A34;
    --fg-muted: #6B5F57;
    --surface: rgba(26, 18, 16, .035);
    --line: rgba(26, 18, 16, .15);
    --line-soft: rgba(26, 18, 16, .08);
    --line-strong: rgba(26, 18, 16, .32);
    --grid: rgba(120, 70, 20, .08);
    --accent-ink: #A94700;
    --header-bg: rgba(250, 246, 239, .94);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--orange);
    color: var(--black);
}

:focus-visible {
    outline: 2px solid var(--accent-ink);
    outline-offset: 3px;
}

.sr-only {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Justified copy gets hyphenation so narrow columns do not open rivers */
p {
    hyphens: manual;
    -webkit-hyphens: manual;
}

.why-body,
.section-lede {
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    gap: 20px;
    left: 0;
    padding: 0 var(--gutter);
    position: sticky;
    right: 0;
    top: 0;
    z-index: 100;
}

/* Scroll progress: the needle of the page */
.site-header::after {
    background: var(--orange);
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    min-height: var(--header-h);
}

.brand-logo {
    height: 46px;
    mix-blend-mode: screen;
    object-fit: contain;
    width: 46px;
}

body.light-mode .brand-logo,
body.light-mode .footer-logo {
    mix-blend-mode: normal;
}

.brand-name {
    color: var(--fg);
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .22em;
}

.brand-name em,
.footer-brand-name em {
    color: var(--accent-ink);
    font-style: normal;
}

.brand-tagline {
    color: var(--fg-muted);
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .08em;
    margin-top: 4px;
}

.nav {
    align-items: center;
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.nav a {
    color: var(--fg-soft);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 28px 0;
    position: relative;
    transition: color .2s;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-ink);
}

.nav a.active::after {
    background: var(--accent-ink);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 100%;
}

.nav a.nav-cta {
    border: 1px solid var(--accent-ink);
    border-radius: 3px;
    color: var(--accent-ink);
    padding: 11px 20px;
    transition: background .2s, color .2s;
}

.nav a.nav-cta:hover {
    background: var(--orange);
    color: var(--black);
}

.nav a.nav-cta::after {
    display: none;
}

.theme-toggle,
.nav-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--accent-ink);
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    transition: color .2s;
    width: 44px;
}

.theme-toggle:hover {
    color: var(--fg);
}

.theme-toggle .icon-moon {
    display: none;
}

body.light-mode .theme-toggle .icon-sun {
    display: none;
}

body.light-mode .theme-toggle .icon-moon {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    background: var(--fg);
    display: block;
    height: 2px;
    transition: transform .25s var(--ease), opacity .2s;
    width: 22px;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
    align-items: center;
    border-radius: 3px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: .08em;
    min-height: 48px;
    padding: 0 28px;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

.btn-outline {
    border: 1px solid var(--line-strong);
    color: var(--fg);
}

.btn-outline:hover {
    background: rgba(251, 147, 0, .12);
    border-color: var(--accent-ink);
}

/* ── SHARED TYPE ────────────────────────────────────── */
h1 {
    font-size: clamp(40px, 4.6vw, 66px);
    line-height: 1.06;
    margin: 0 0 22px;
}

.eyebrow {
    align-items: center;
    color: var(--accent-ink);
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 9px;
    letter-spacing: .1em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-tag {
    align-items: center;
    color: var(--accent-ink);
    display: flex;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 14px;
    letter-spacing: .14em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-tag::before {
    background: currentColor;
    content: "";
    height: 1px;
    width: 28px;
}

.section-header {
    margin-bottom: 56px;
    max-width: 720px;
}

.section-title {
    font-size: clamp(32px, 4.4vw, 64px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.04;
    margin: 0;
}

.section-title em,
.why-statement em {
    color: var(--accent-ink);
    font-style: normal;
}

/* Light theme: orange text cannot reach readable contrast at any size on paper,
   so key words stay ink-coloured and get a highlighter swipe in the true brand orange. */
body.light-mode .section-title em,
body.light-mode .why-statement em,
body.light-mode .svc-hero-inner h1 em,
body.light-mode .hero-title #cycleWord {
    background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 93%, transparent 93%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: var(--fg);
    margin: 0 -.06em;
    padding: 0 .06em;
}

.section-lede {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.75;
    margin: 24px 0 0;
    max-width: 440px;
    text-align: justify;
}

.services,
.industries,
.why,
.cta-band,
.how-we-work {
    scroll-margin-top: var(--header-h);
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    gap: 24px 40px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    isolation: isolate;
    min-height: min(calc(100vh - var(--header-h)), 880px);
    overflow: hidden;
    padding: 64px var(--gutter) 0;
    position: relative;
}

/* blueprint grid fading out from the dial */
.hero::before {
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    inset: 0;
    -webkit-mask-image: radial-gradient(ellipse at 72% 50%, #000 0%, transparent 68%);
    mask-image: radial-gradient(ellipse at 72% 50%, #000 0%, transparent 68%);
    position: absolute;
    z-index: -1;
}

/* one warm light source, low and to the right */
.hero::after {
    background: radial-gradient(ellipse at 80% 62%, rgba(176, 50, 0, .3), transparent 55%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

body.light-mode .hero::after {
    background: radial-gradient(ellipse at 80% 62%, rgba(251, 147, 0, .28), transparent 58%);
}

.hero-title {
    font-size: clamp(44px, 7.2vw, 112px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .94;
    margin: 0 0 32px;
    text-transform: uppercase;
}

.hero-line {
    display: block;
}

.cycle-wrap {
    overflow: hidden;
    padding-bottom: .04em;
}

#cycleWord {
    color: var(--accent-ink);
    display: inline-block;
}

#cycleWord.is-in {
    animation: wordIn .55s var(--ease) both;
}

#cycleWord.is-out {
    animation: wordOut .45s ease-in both;
}

@keyframes wordIn {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: none; }
}

@keyframes wordOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-100%); }
}

.hero-desc {
    color: var(--fg-soft);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 480px;
    text-align: justify;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Trust line shown under the main call to action (home and service heroes) */
.hero-cert {
    color: var(--fg-soft);
    display: block;
    font-size: 15px;
    line-height: 1.5;
    margin: 28px 0 0;
}

.hero-cert::before {
    color: var(--accent-ink);
    content: "\2B21";
    display: inline-block;
    font-size: 15px;
    margin-right: 10px;
    vertical-align: -1px;
}

.hero-cert strong {
    color: var(--fg);
    font-weight: 700;
}

.hero-visual {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.dial {
    display: block;
    height: auto;
    max-width: 560px;
    width: 100%;
}

.dial-ring {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1;
}

.dial-ring--soft {
    stroke: var(--line);
}

.dial-ticks {
    fill: none;
    stroke: var(--fg-muted);
}

.dial-ticks--major {
    stroke: var(--fg);
}

.dial-cross {
    stroke: var(--line-soft);
    stroke-width: 1;
}

.dial-label {
    dominant-baseline: middle;
    fill: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .2em;
    text-anchor: middle;
}

.dial-needle {
    filter: drop-shadow(0 0 14px rgba(251, 147, 0, .4));
}

body.light-mode .dial-needle {
    filter: drop-shadow(0 8px 12px rgba(169, 71, 0, .3));
}

.dial-pivot {
    fill: var(--bg);
    stroke: var(--orange);
    stroke-width: 2;
}

.dial-readout {
    color: var(--fg-muted);
    display: flex;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dial-readout strong {
    color: var(--accent-ink);
    font-weight: 700;
}

.hero-strip {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--fg-muted);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 10px 28px;
    grid-column: 1 / -1;
    justify-content: space-between;
    letter-spacing: .14em;
    margin-top: 24px;
    padding: 20px 0 24px;
    text-transform: uppercase;
}

.hero-strip a:hover {
    color: var(--accent-ink);
}

/* ── KPI STRIP (real numbers only, never estimates we cannot back) ── */
.kpis {
    border-bottom: 1px solid var(--line-soft);
    padding: 0 var(--gutter);
}

.kpi-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each card is a two-row grid: the number sits in a row of fixed height and never wraps,
   so every label starts on exactly the same line across the four cards. */
.kpi {
    align-content: start;
    border-left: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-rows: auto auto;
    padding: 48px 28px 48px 32px;
}

.kpi:first-child {
    border-left: 0;
    padding-left: 0;
}

.kpi-num {
    color: var(--fg);
    font-size: clamp(30px, 4.6vw, 68px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    white-space: nowrap;
}

/* tabular digits stop the numbers jittering sideways while they count up */
.kpi-num {
    font-variant-numeric: tabular-nums;
}

.kpi-num small {
    font-size: .38em;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-left: .3em;
}

.kpi-label {
    color: var(--fg-soft);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 960px) {
    .kpi-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi {
        padding: 32px 20px 32px 24px;
    }

    .kpi:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .kpi:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

/* ── SERVICES (editorial list) ──────────────────────── */
.services {
    padding: 120px var(--gutter) 110px;
}

.services-inner {
    align-items: start;
    display: grid;
    gap: 80px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.services .section-header {
    margin: 0;
    position: sticky;
    top: calc(var(--header-h) + 48px);
}

.svc-list {
    border-top: 1px solid var(--line);
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-row-link {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0 24px;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    padding: 32px 0;
    position: relative;
    transition: padding .35s var(--ease), background .25s;
}

.svc-row-link::after {
    background: var(--orange);
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
    width: 100%;
}

.svc-row-num {
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    padding-top: 10px;
    transition: color .2s;
}

.svc-row-cat {
    color: var(--accent-ink);
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.svc-row-title {
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
}

.svc-row-desc {
    color: var(--fg-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 560px;
    text-align: justify;
}

.svc-row-arrow {
    color: var(--accent-ink);
    font-size: 22px;
    line-height: 1;
    padding-top: 14px;
    text-align: right;
    transition: transform .35s var(--ease);
}

.svc-row-link:hover,
.svc-row-link:focus-visible {
    background: linear-gradient(90deg, rgba(251, 147, 0, .07), transparent 70%);
    padding-left: 14px;
}

.svc-row-link:hover::after,
.svc-row-link:focus-visible::after {
    transform: scaleX(1);
}

.svc-row-link:hover .svc-row-num {
    color: var(--accent-ink);
}

.svc-row-link:hover .svc-row-arrow {
    transform: translateX(6px);
}

/* ── INDUSTRIES (typographic) ───────────────────────── */
.industries {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
    padding: 110px var(--gutter);
}

.industries .section-header {
    max-width: 820px;
}

.ind-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ind-item {
    color: var(--fg-muted);
    cursor: default;
    font-size: clamp(26px, 4.2vw, 62px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    transition: color .2s, opacity .2s;
}

.ind-item::after {
    color: var(--accent-ink);
    content: "\2B21";
    font-size: .34em;
    margin: 0 .8em;
    vertical-align: .55em;
}

.ind-item:last-child::after {
    display: none;
}

.ind-list:hover .ind-item {
    opacity: .4;
}

.ind-list .ind-item:hover {
    color: var(--fg);
    opacity: 1;
}

/* ── HOW WE WORK ───────────────────────────────────── */
.how-we-work {
    --hw-bg: var(--bright-silver);
    --hw-fg: var(--black);
    --hw-soft: var(--charcoal);
    /* --hw-accent is always true brand orange (lines, fills, numerals, bullets).
       --hw-ink-accent is for accent TEXT: ink on the silver band, because orange
       text on near-white fails contrast. Headline words get a highlighter swipe instead. */
    --hw-accent: var(--orange);
    --hw-ink-accent: var(--hw-fg);
    --hw-line: rgba(17, 13, 12, .16);
    --hw-panel: rgba(17, 13, 12, .05);
    /* one grid shared by the column labels and every step, so rows always line up */
    --hw-cols: 120px minmax(0, 5fr) minmax(0, 4fr);
    background: var(--hw-bg);
    color: var(--hw-fg);
    padding: 120px var(--gutter);
}

/* in light mode the process band becomes a warm near-black island, like the dark theme */
body.light-mode .how-we-work {
    --hw-bg: #1A1210;
    --hw-fg: var(--bright-silver);
    --hw-soft: #CFC8C1;
    --hw-accent: var(--orange);
    --hw-ink-accent: var(--orange);
    --hw-line: rgba(255, 255, 255, .16);
    --hw-panel: rgba(255, 255, 255, .06);
}

.how-we-work .section-tag {
    color: var(--hw-ink-accent);
}

.how-we-work .section-tag::before {
    background: var(--hw-accent);
}

.hww-header {
    align-items: start;
    display: grid;
    gap: 72px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    margin-bottom: 96px;
}

.hww-title {
    color: var(--hw-fg);
    font-size: clamp(44px, 6.6vw, 104px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .96;
    margin: 0 0 28px;
}

.hww-title em {
    color: var(--hw-ink-accent);
    font-style: normal;
}

.hww-subtitle {
    color: var(--hw-soft);
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
    text-align: left;
}

/* promises: a quiet checklist rather than a block of cards */
.hww-promises-label {
    color: var(--hw-ink-accent);
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hww-promises {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hww-promise {
    border-top: 1px solid var(--hw-line);
    display: grid;
    gap: 3px 16px;
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 16px 0;
}

.hww-promise:last-child {
    border-bottom: 1px solid var(--hw-line);
}

.hww-promise::before {
    color: var(--hw-accent);
    content: "\2B21";
    font-size: 14px;
    grid-row: 1 / span 2;
    line-height: 1.45;
}

.hww-promise-title {
    color: var(--hw-fg);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.hww-promise-desc {
    color: var(--hw-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* column labels above the steps */
.hww-cols {
    border-bottom: 2px solid var(--hw-fg);
    color: var(--hw-soft);
    display: grid;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 0 40px;
    grid-template-columns: var(--hw-cols);
    letter-spacing: .14em;
    padding-bottom: 14px;
    text-transform: uppercase;
}

.hww-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hww-step {
    align-items: start;
    border-bottom: 1px solid var(--hw-line);
    display: grid;
    gap: 0 40px;
    grid-template-columns: var(--hw-cols);
    padding: 48px 0;
    position: relative;
}

/* orange line draws across the row on hover */
.hww-step::after {
    background: var(--hw-accent);
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease);
    width: 100%;
}

.hww-step:hover::after {
    transform: scaleX(1);
}

/* outlined numerals: large, quiet, and fill with colour on hover */
.hww-step-num {
    -webkit-text-stroke: 1.5px var(--hw-fg);
    color: transparent;
    font-size: clamp(56px, 6.4vw, 96px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: .85;
    transition: color .3s, -webkit-text-stroke-color .3s;
}

.hww-step:hover .hww-step-num {
    -webkit-text-stroke-color: var(--hw-accent);
    color: var(--hw-accent);
}

.hww-step-title {
    color: var(--hw-fg);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 14px;
}

.hww-step-desc {
    color: var(--hw-soft);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    max-width: 540px;
    text-align: left;
}

.hww-step-get {
    background: var(--hw-panel);
    border-left: 3px solid var(--hw-accent);
    padding: 22px 26px;
}

/* On desktop the column header already says "What you get", so the card label is
   visually hidden (still read by screen readers). Phones show it again. */
.hww-step-get-label {
    clip: rect(0 0 0 0);
    color: var(--hw-ink-accent);
    font-family: var(--font-mono);
    font-size: 11px;
    height: 1px;
    letter-spacing: .14em;
    overflow: hidden;
    position: absolute;
    text-transform: uppercase;
    white-space: nowrap;
    width: 1px;
}

.hww-step-get-text {
    color: var(--hw-fg);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* closing line: sits where the section ends and hands off to the contact band */
.hww-next {
    margin-top: 96px;
    max-width: 900px;
}

.hww-next-label {
    align-items: center;
    color: var(--hw-ink-accent);
    display: flex;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 14px;
    letter-spacing: .14em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hww-next-label::before {
    background: var(--hw-accent);
    content: "";
    height: 1px;
    width: 28px;
}

.hww-next-text {
    color: var(--hw-fg);
    font-size: clamp(26px, 3.6vw, 52px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0;
    text-align: left;
}

.hww-next-text em {
    color: var(--hw-ink-accent);
    font-style: normal;
}

/* on the silver band (dark theme) the highlighted words get the brand-orange highlighter swipe */
body:not(.light-mode) .hww-title em,
body:not(.light-mode) .hww-next-text em {
    background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 93%, transparent 93%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: var(--hw-fg);
    margin: 0 -.06em;
    padding: 0 .06em;
}

/* ── WHY ───────────────────────────────────────────── */
.why {
    background: radial-gradient(ellipse at 100% 0%, rgba(176, 50, 0, .18), transparent 55%);
    padding: 130px var(--gutter);
}

body.light-mode .why {
    background: radial-gradient(ellipse at 100% 0%, rgba(251, 147, 0, .16), transparent 55%);
}

.why-inner {
    align-items: start;
    display: grid;
    gap: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.why-statement {
    font-size: clamp(36px, 5vw, 78px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.02;
    margin: 0 0 32px;
}

.why-body {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 40px;
    max-width: 520px;
    text-align: justify;
}

.pillars {
    border-top: 1px solid var(--line);
}

.pillar {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0 24px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 28px 0;
}

.pillar-num {
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    padding-top: 4px;
}

.pillar h4 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.pillar p {
    color: var(--fg-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* ── CTA BAND (dark in both themes) ─────────────────── */
.cta-band {
    background: #1a0600;
    color: var(--bright-silver);
    isolation: isolate;
    overflow: hidden;
    padding: 150px var(--gutter);
    position: relative;
}

/* concentric range rings, cropped by the section edge */
.cta-band::before {
    background: repeating-radial-gradient(circle at 88% 115%, transparent 0 62px, rgba(251, 147, 0, .2) 62px 63px);
    content: "";
    inset: 0;
    -webkit-mask-image: radial-gradient(circle at 88% 115%, #000 0%, transparent 70%);
    mask-image: radial-gradient(circle at 88% 115%, #000 0%, transparent 70%);
    position: absolute;
    z-index: -1;
}

.cta-band::after {
    background: radial-gradient(ellipse at 88% 115%, rgba(251, 147, 0, .22), transparent 55%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.cta-inner {
    max-width: 1100px;
    position: relative;
}

.cta-tag {
    color: var(--orange);
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.cta-band h2 {
    color: var(--bright-silver);
    font-size: clamp(42px, 7.4vw, 118px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .98;
    margin: 0 0 28px;
}

.cta-band h2 em {
    color: var(--orange);
    font-style: normal;
}

.cta-band p {
    color: var(--mid-silver);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 44px;
    max-width: 500px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-band .btn-primary:hover {
    background: var(--bright-silver);
    border-color: var(--bright-silver);
    color: var(--black);
}

.cta-band .btn-outline {
    border-color: rgba(251, 147, 0, .55);
    color: var(--bright-silver);
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
}

body.light-mode footer {
    background: var(--bg-alt);
}

.footer-top {
    display: grid;
    gap: 56px;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    padding: 80px var(--gutter) 56px;
}

.footer-logo {
    height: 56px;
    mix-blend-mode: screen;
    object-fit: contain;
    width: 56px;
}

.footer-brand-name {
    color: var(--fg);
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .22em;
    margin: 14px 0 6px;
}

.footer-tagline {
    color: var(--fg-muted);
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .08em;
}

.footer-desc {
    color: var(--fg-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 18px;
    max-width: 300px;
    text-align: left;
}

.footer-col h5 {
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a,
.footer-col .is-soon {
    color: var(--fg-muted);
    font-size: 13px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--accent-ink);
}

.footer-note {
    color: var(--fg-muted);
    font-size: 13px;
}

.is-soon {
    cursor: default;
}

.is-soon::after {
    border: 1px solid var(--line);
    border-radius: 20px;
    content: "SOON";
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .1em;
    margin-left: 8px;
    padding: 2px 7px;
    vertical-align: 1px;
}

.footer-email-highlight {
    align-items: center;
    color: var(--accent-ink);
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: .04em;
    margin-top: 6px;
    transition: color .2s;
}

.footer-email-highlight:hover {
    color: var(--fg);
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid var(--line-soft);
    display: grid;
    gap: 12px 24px;
    grid-template-columns: 1fr auto 1fr;
    padding: 24px var(--gutter);
}

.footer-credit {
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-align: center;
}

.footer-credit strong {
    font-weight: 700;
}

.footer-copy,
.footer-legal .is-soon {
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
}

.footer-legal {
    display: flex;
    gap: 28px;
    justify-content: flex-end;
}

/* ── SCROLL REVEAL (only when JS is running) ────────── */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
    :root {
        --gutter: 28px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 48px;
    }

    .hero-visual {
        margin: 8px auto 0;
        max-width: 440px;
        width: 100%;
    }

    .services-inner,
    .why-inner {
        gap: 48px;
        grid-template-columns: 1fr;
    }

    .services .section-header {
        position: static;
    }

    .how-we-work {
        --hw-cols: 88px minmax(0, 1fr) minmax(0, .9fr);
    }

    .hww-header {
        gap: 48px;
        grid-template-columns: 1fr;
        margin-bottom: 72px;
    }

    .hww-step,
    .hww-cols {
        gap: 0 28px;
    }

    .footer-top {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
        padding: 56px var(--gutter) 40px;
    }

    .footer-bottom {
        gap: 14px;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 20px var(--gutter);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        margin-left: auto;
    }

    /* A blurred header becomes the containing block for fixed children, which collapsed the
       full-screen menu to nothing. On phones the header is solid instead. */
    .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--bg);
    }

    .nav {
        align-items: stretch;
        background: var(--bg);
        display: none;
        flex-direction: column;
        gap: 0;
        inset: var(--header-h) 0 0 0;
        margin: 0;
        overflow-y: auto;
        padding: 16px var(--gutter) 40px;
        position: fixed;
    }

    body.nav-open .nav {
        display: flex;
    }

    .nav a {
        border-bottom: 1px solid var(--line);
        font-size: 22px;
        padding: 22px 0;
    }

    .nav a.active::after {
        display: none;
    }

    .nav a.nav-cta {
        border: 1px solid var(--accent-ink);
        justify-content: center;
        margin-top: 28px;
        padding: 18px;
        text-align: center;
    }
}

@media (max-width: 860px) {
    .how-we-work {
        --hw-cols: 64px minmax(0, 1fr);
    }

    .hww-cols {
        display: none;
    }

    .hww-steps {
        border-top: 2px solid var(--hw-fg);
    }

    .hww-step {
        gap: 0 20px;
        padding: 36px 0;
    }

    .hww-step-num {
        font-size: 44px;
        grid-row: 1 / span 2;
    }

    .hww-step-get {
        grid-column: 2;
        margin-top: 24px;
        padding: 18px 20px;
    }

    .hww-step-get-label {
        clip: auto;
        display: block;
        height: auto;
        margin-bottom: 8px;
        overflow: visible;
        position: static;
        white-space: normal;
        width: auto;
    }

    .hww-step-get-text {
        font-size: 16px;
    }

    .hww-next {
        margin-top: 72px;
    }
}

@media (max-width: 480px) {
    .how-we-work {
        --hw-cols: 44px minmax(0, 1fr);
    }

    .hww-step {
        gap: 0 14px;
    }

    .hww-step-num {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 18px;
    }

    /* Justified text opens wide gaps in narrow columns, so phones get left-aligned copy */
    p,
    li {
        text-align: left !important;
    }

    .brand-tagline {
        display: none;
    }

    .hero {
        padding-top: 36px;
    }

    .hero-title {
        font-size: clamp(40px, 13vw, 64px);
    }

    .hero-strip {
        justify-content: flex-start;
    }

    .services,
    .industries,
    .how-we-work {
        padding-bottom: 72px;
        padding-top: 72px;
    }

    .why {
        padding-bottom: 80px;
        padding-top: 80px;
    }

    .cta-band {
        padding-bottom: 96px;
        padding-top: 96px;
    }

    .svc-row-link {
        grid-template-columns: 36px minmax(0, 1fr) 24px;
    }

    .ind-item::after {
        margin: 0 .5em;
    }

    .pillar {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .cta-row .btn {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
