/* Shibolett Security Consulting. Self-hosted Source Serif 4. No scripts, no external requests.
   Shares type and structure with the other Shibolett sites; dark arrival and its own devices on purpose. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-ext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-ext-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Security's own look, unlike Operations (white header and hero, gold, ruled columns):
   a dark header and arrival, light reading sections with dark bands for emphasis,
   boxed panels with a short red bar, red bars over section titles, a brick-red contact band.

   Colours come from the band a component sits in. Light bands (the default):
   navy text 18:1, grey text 6.4:1, brick red 8.7:1 on white.
   Dark bands: white 18:1, body text 13.4:1, muted text 7.8:1 on #111628;
   brand red is ~2:1 there, so it only fills behind white text, and decoration uses a lifted red. */
:root {
    --navy: #111628;
    --navy-deep: #0B0F1C;
    --navy-raised: #1A2036;
    --grey-panel: #F1F2F5;
    --red: #8A2821;
    --red-lift: #B3392E;
    --white: #FFFFFF;
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --page: 1200px;
    --gutter: clamp(20px, 5vw, 64px);
    --strip-pad: clamp(64px, 8vw, 104px);
    --stack: clamp(32px, 4vw, 48px);

    /* Light band tokens */
    --ink: #111628;
    --ink-body: #111628;
    --ink-muted: #5C6070;
    --line: #D9DBE1;
    --line-strong: #5C6070;
    --panel: #FFFFFF;
    --deco: #8A2821;
}

/* Dark band tokens */
.practices-bar,
.masthead,
.intro,
.page-head,
.strip-dark,
.strip-deep,
.strip-red,
.page-footer {
    --ink: #FFFFFF;
    --ink-body: rgba(255, 255, 255, 0.86);
    --ink-muted: rgba(255, 255, 255, 0.64);
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.36);
    --panel: var(--navy-raised);
    --deco: var(--red-lift);
    color: var(--ink-body);
}

.strip-deep {
    --panel: var(--navy);
}

/* White on brick red, 8.7:1 */
.strip-red {
    --ink-body: rgba(255, 255, 255, 0.84);
    --deco: var(--white);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Dark beyond the page edges, matching the header and footer when a page is pulled past its ends */
html {
    background: var(--navy-deep);
}

body {
    background: var(--white);
    color: var(--ink-body);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    display: block;
}

/* Navy ring on light bands, white on dark ones */
a:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

::selection {
    background: var(--red);
    color: var(--white);
}

/* ---------- Layout ---------- */
/* content-box so the 1200px measure excludes the gutters */
.wrap {
    box-sizing: content-box;
    max-width: var(--page);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.icon {
    display: block;
    flex: 0 0 auto;
}

/* Title on the left, text on the right, from 860px; stacked below */
.split {
    display: grid;
    gap: 24px clamp(40px, 6vw, 96px);
    align-items: start;
}

@media (min-width: 860px) {
    .split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

/* ---------- Practices bar: the same strip on both practice sites ---------- */
.practices-bar {
    background: #0B0F1C;
    border-bottom: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 12px;
    line-height: 20px;
}

.practices-bar-row,
.practices-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 clamp(10px, 3vw, 20px);
}

.practices-list {
    list-style: none;
}

/* A small dot before each practice, drawn rather than typed so screen readers skip it */
.practices-list li {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
}

.practices-list li::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ink-muted);
}

.practices-bar a {
    display: inline-block;
    padding: 8px 0;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.practices-bar .practices-home {
    font-weight: 600;
    color: var(--ink);
}

.practices-bar a:hover,
.practices-bar a[aria-current] {
    color: var(--ink);
}

.practices-bar a[aria-current] {
    text-decoration: underline;
    text-decoration-color: var(--deco);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

@media (min-width: 600px) {
    .practices-bar {
        font-size: 13px;
    }
}

/* ---------- Header ---------- */
.masthead {
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line);
}

.masthead-bar {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 32px;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.wordmark-inline {
    display: inline-flex;
}

/* The mark is a navy drawing; this turns it white on the dark header and footer */
/* margin-bottom matches the 5px gap + 3px rule under the practice name, so the mark
   centres on the letters rather than on the letters plus the rule (it sat 4px low) */
.wordmark-mark {
    display: block;
    width: 22px;
    height: auto;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
}

/* Smaller on narrow phones so "Shibolett Security Consulting" stays on one line at 320px */
.wordmark-text {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.wordmark-firm {
    font-weight: 600;
}

.wordmark-practice {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.wordmark-rule {
    display: block;
    width: 36px;
    height: 3px;
    background: var(--deco);
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 20px;
}

.topnav a {
    padding: 12px 0;
    color: var(--ink-body);
    text-decoration: none;
}

.topnav .topnav-button {
    padding: 11px 16px;
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

/* Pinned from 760px, where the header fits on one row (it fits from 690px) */
@media (min-width: 760px) {
    .masthead {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(11, 15, 28, 0.94);
        -webkit-backdrop-filter: saturate(1.2) blur(10px);
        backdrop-filter: saturate(1.2) blur(10px);
    }

    section[id] {
        scroll-margin-top: 73px;
    }
}

/* ---------- Hero (dark) ---------- */
.intro {
    padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 104px);
    background:
        radial-gradient(48% 70% at 78% 46%, rgba(255, 255, 255, 0.05), transparent 72%),
        var(--navy);
}

.intro-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px clamp(40px, 5vw, 80px);
}

.intro-copy {
    flex: 5 1 480px;
    min-width: 0;
}

.intro-title {
    margin: 0;
    max-width: 14em;
    font-weight: 400;
    font-size: clamp(40px, 4.6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.intro-sub {
    margin: 32px 0 0;
    max-width: 34em;
    font-size: clamp(19px, 1.6vw, 23px);
    line-height: 1.5;
}

.intro-actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    font-family: var(--sans);
    font-size: 16px;
}

/* Brick red fill with white text, 8.7:1 */
.button-red {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 22px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
}

.link-more {
    padding: 12px 0;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--deco);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.link-more > span {
    display: inline-block;
}

/* Hero figure: the layered-defense rings from the About page's approach */
.layers {
    flex: 4 1 360px;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.layers-svg {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    overflow: visible;
}

.ring {
    fill: none;
}

.ring-outer,
.ring-middle,
.ring-inner {
    stroke: var(--ink);
}

.ring-outer {
    stroke-opacity: 0.55;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 0.5 8;
}

.ring-middle {
    stroke-opacity: 0.7;
    stroke-width: 1.5;
    stroke-dasharray: 16 9;
}

.ring-inner {
    stroke-opacity: 0.9;
    stroke-width: 1.5;
}

.core-halo {
    fill: none;
    stroke: var(--deco);
    stroke-width: 2;
}

.core {
    fill: var(--red);
}

.core-lock {
    fill: none;
    stroke: var(--white);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The layer names, as text beside a sample of each ring's line */
.layers-key {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.4;
}

.layers-key li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.key-line {
    display: block;
    flex: 0 0 auto;
    overflow: visible;
}

.layers-caption {
    max-width: 30em;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
    text-align: center;
}

/* ---------- Inner page heading (dark) ---------- */
.page-head {
    padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 64px);
    background:
        radial-gradient(50% 120% at 85% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
        var(--navy);
}

.kicker {
    margin: 0 0 20px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.page-title {
    margin: 0;
    max-width: 20em;
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.page-standfirst {
    margin: 24px 0 0;
    max-width: 34em;
    font-size: clamp(19px, 1.6vw, 23px);
    line-height: 1.5;
    color: var(--ink-muted);
}

.page-byline {
    margin: 24px 0 0;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink-muted);
}

/* ---------- Sections ---------- */
.strip {
    padding: var(--strip-pad) 0;
}

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

.strip-grey {
    background: var(--grey-panel);
}

.strip-dark {
    background: var(--navy);
}

.strip-deep {
    background: var(--navy-deep);
}

.strip-red {
    background: var(--red);
}

/* Short red bar above every section title, echoing the rule under the wordmark */
.section-title {
    margin: 0;
    font-weight: 400;
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.section-title::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-bottom: 22px;
    background: var(--deco);
    transform-origin: left;
}

.section-title-small {
    font-size: clamp(24px, 2.4vw, 30px);
}

.prose {
    font-size: 19px;
    line-height: 1.6;
}

.prose p + p {
    margin-top: 1em;
}

.lede {
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.55;
}

.num {
    margin: 0 0 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
}

.pull-quote {
    margin: 32px 0;
    padding-left: 24px;
    border-left: 2px solid var(--deco);
}

.pull-quote p {
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.35;
    color: var(--ink);
}

/* ---------- Panels ---------- */
.card-grid {
    margin-top: var(--stack);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.card-grid-dense {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.card-grid-pair {
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Boxed panels with a short red bar at the top left */
.card {
    position: relative;
    padding: clamp(24px, 2.4vw, 32px);
    background: var(--panel);
    border: 1px solid var(--line);
}

.card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 36px;
    height: 3px;
    background: var(--deco);
    transform-origin: left;
}

.card-icon {
    margin-bottom: 18px;
    color: var(--ink);
}

.card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.card-text {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.6;
}

.card-grid-dense .card-title {
    font-size: 19px;
}

.card-grid-dense .card-text {
    font-size: 16px;
}

.ticks {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.ticks li {
    position: relative;
    padding: 9px 0 9px 22px;
    border-top: 1px solid var(--line);
    font-size: 17px;
    line-height: 1.45;
}

.ticks li:first-child {
    border-top: 0;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(9px + 0.5em);
    width: 7px;
    height: 7px;
    background: var(--deco);
}

/* ---------- Pricing ---------- */
.price {
    margin: 12px 0 0;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.price-unit {
    margin-left: 4px;
    font-family: var(--sans);
    font-size: 15px;
    letter-spacing: 0;
    color: var(--ink-muted);
}

.price-label {
    margin: 24px 0 0;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

/* White on brick red, 8.7:1 */
.badge {
    display: inline-block;
    margin: 0;
    padding: 3px 8px;
    background: var(--red);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

/* ---------- Services ---------- */
.service-index {
    list-style: none;
    margin: var(--stack) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 0 clamp(32px, 4vw, 56px);
}

.service-jump {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.service-jump .num {
    margin: 0;
}

.service-jump-title {
    flex: 1;
    font-size: 19px;
    line-height: 1.35;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s ease;
}

.service-jump-arrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink-muted);
}

/* ---------- Resource lists ---------- */
.doc-list {
    list-style: none;
    margin: var(--stack) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.doc-item {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
}

.doc-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 22px 24px;
    color: var(--ink);
    text-decoration: none;
}

.doc-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s ease;
}

.doc-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.doc-arrow {
    display: inline-block;
    flex: 0 0 auto;
    font-family: var(--sans);
    font-size: 18px;
}

/* ---------- Contact band and page ---------- */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px clamp(40px, 6vw, 96px);
}

.contact-text {
    flex: 1 1 480px;
    min-width: 0;
}

.contact-title {
    font-size: clamp(32px, 3.8vw, 52px);
}

.contact-note {
    margin: 16px 0 0;
    max-width: 32em;
    font-size: 19px;
    line-height: 1.5;
}

/* White button on the red band: navy text 18:1 */
.button-light {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 56px;
    padding: 0 24px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-family: var(--sans);
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---------- Long-form pages (policies, resources) ---------- */
.post-body {
    max-width: 40em;
    padding: clamp(40px, 5vw, 64px) 0 var(--strip-pad);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.7;
}

.post-body p,
.post-body ul,
.post-body dl {
    margin: 0 0 1em;
}

.post-body ul {
    padding-left: 1.2em;
}

.post-body li + li {
    margin-top: 0.4em;
}

.post-body li::marker {
    color: var(--deco);
}

.post-body h2 {
    margin: 44px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: clamp(20px, 2vw, 23px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.post-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.post-body h3 {
    margin: 28px 0 10px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.post-body a {
    color: var(--ink);
    text-decoration-color: var(--deco);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.post-body .checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 32px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 3px;
}

.roles div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.roles dt {
    min-width: 11em;
    font-weight: 600;
    color: var(--ink);
}

.roles dd {
    color: var(--ink-muted);
}

/* ---------- Footer (dark) ---------- */
.page-footer {
    padding: 56px 0 28px;
    background: var(--navy-deep);
    font-size: 15px;
    color: var(--ink-muted);
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 36px clamp(32px, 4vw, 56px);
}

.footer-lead {
    flex: 2 1 280px;
    min-width: 0;
}

.footer-about {
    margin: 14px 0 0;
    max-width: 26em;
    line-height: 1.55;
}

/* 160px lets the brand column and four link columns share one row at full width */
.footer-group {
    flex: 1 1 160px;
    min-width: 0;
}

.footer-heading {
    margin: 0 0 6px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

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

.footer-link {
    display: inline-block;
    padding: 8px 0;
    line-height: 1.4;
    color: var(--ink-body);
    text-decoration: none;
}

.footer-base {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    font-family: var(--sans);
    font-size: 13px;
}

.footer-base > * {
    padding: 12px 0;
}

.footer-base > span {
    margin-left: auto;
}

.footer-base a {
    color: var(--ink-body);
    text-decoration: none;
}

/* ---------- Hover and current page ---------- */
/* Red underline that slides in from the left; decoration only, the text keeps its colour */
.topnav a:not(.topnav-button),
.footer-link,
.footer-base a {
    background-image: linear-gradient(var(--deco), var(--deco));
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.topnav a:not(.topnav-button) {
    background-position: 0 calc(100% - 10px);
}

.footer-link {
    background-position: 0 calc(100% - 5px);
}

.footer-base a {
    background-position: 0 calc(100% - 9px);
}

.topnav a:not(.topnav-button):hover,
.topnav a:not(.topnav-button):focus-visible,
.topnav a[aria-current="page"]:not(.topnav-button),
.footer-link:hover,
.footer-link:focus-visible,
.footer-base a:hover,
.footer-base a:focus-visible {
    background-size: 100% 2px;
    color: var(--ink);
}

.topnav-button {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topnav .topnav-button:hover,
.topnav .topnav-button[aria-current="page"] {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.button-red,
.button-light,
.contact-email,
.doc-item {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button-red:hover,
.contact-email:hover {
    background: color-mix(in srgb, var(--red) 85%, var(--white));
}

.button-light:hover {
    background: color-mix(in srgb, var(--white) 88%, var(--red));
}

.link-more {
    transition: text-decoration-color 0.2s ease;
}

.link-more:hover {
    text-decoration-color: var(--ink);
}

.doc-item:hover {
    border-color: var(--line-strong);
}

.doc-link:hover .doc-title,
.service-jump:hover .service-jump-title {
    text-decoration-color: var(--deco);
}

/* ---------- 404: a file whose details have been redacted ---------- */
.lost {
    padding: clamp(56px, 8vw, 120px) 0;
    /* The entrance animations start rotated or oversized; clip so they never cause sideways scrolling */
    overflow-x: clip;
}

.lost-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px clamp(40px, 5vw, 80px);
}

.lost-copy {
    flex: 5 1 420px;
    min-width: 0;
}

/* The error comes first and large, so nobody mistakes the page for content; the joke follows */
.lost-code {
    margin: 0;
    font-size: clamp(96px, 13vw, 168px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.lost-code::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 20px;
    background: var(--deco);
}

.lost-title {
    margin: 24px 0 0;
    font-weight: 400;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.lost-quip {
    margin: 12px 0 0;
    max-width: 22em;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.35;
    color: var(--ink-body);
}

.lost-text {
    margin: 20px 0 0;
    max-width: 32em;
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* A sheet of paper on the dark page: grey labels 6.4:1 on white, the stamp in brick red 8.7:1 */
.dossier {
    position: relative;
    flex: 4 1 300px;
    min-width: 0;
    max-width: 440px;
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    background: var(--white);
    color: var(--navy);
    font-family: var(--sans);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
    transform: rotate(-1.5deg);
}

.dossier-head {
    padding-bottom: 14px;
    border-bottom: 1px solid #D9DBE1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5C6070;
}

.dossier-fields div {
    display: grid;
    grid-template-columns: 8.5em 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #D9DBE1;
}

.dossier-fields dt {
    font-size: 13px;
    color: #5C6070;
}

/* On narrow screens each label sits above its bar, so the redactions run the full width */
@media (max-width: 520px) {
    .dossier-fields div {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.redact {
    display: block;
    height: 14px;
    background: var(--navy);
    transform-origin: left;
}

.redact-1 { width: 92%; }
.redact-2 { width: 48%; }
.redact-3 { width: 76%; }
.redact-4 { width: 62%; }

.dossier-stamp {
    position: absolute;
    right: 20px;
    bottom: 26px;
    padding: 5px 12px;
    border: 2.5px solid var(--red);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(255, 255, 255, 0.85);
    transform: rotate(-12deg);
}

/* Plays once, in under three seconds: the file lands, each field is blacked out, the stamp comes down */
@keyframes dossier-in {
    from {
        opacity: 0;
        transform: translateY(24px) rotate(-5deg);
    }
}

@keyframes redact {
    from {
        transform: scaleX(0);
    }
}

@keyframes stamp {
    from {
        opacity: 0;
        transform: rotate(-12deg) scale(1.8);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lost-code,
    .lost-title,
    .lost-quip,
    .lost-text { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .lost-title { animation-delay: 0.1s; }
    .lost-quip { animation-delay: 0.2s; }
    .lost-text { animation-delay: 0.3s; }
    .dossier { animation: dossier-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
    .redact { animation: redact 0.45s ease-out 0.8s both; }
    .redact-2 { animation-delay: 1s; }
    .redact-3 { animation-delay: 1.2s; }
    .redact-4 { animation-delay: 1.4s; }
    .dossier-stamp { animation: stamp 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) 1.95s both; }
}

/* ==========================================================================
   Motion. Off for anyone whose device asks for reduced motion.
   No JavaScript (the CSP allows none): load sequences are timed CSS animations,
   and reveals use scroll-driven animations where the browser supports them.
   Nothing loops on its own, so no pause control is needed.
   ========================================================================== */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

@keyframes ring-in {
    from {
        opacity: 0;
        transform: scale(0.82);
    }
}

@keyframes pop {
    from {
        transform: scale(0);
    }
}

@keyframes draw {
    from {
        stroke-dashoffset: 111;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes bar {
    from {
        transform: scaleX(0);
    }
}

@keyframes progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes lift {
    from {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
    }
}

@keyframes turn {
    to {
        transform: rotate(50deg);
    }
}

@keyframes turn-back {
    to {
        transform: rotate(-35deg);
    }
}

@media (prefers-reduced-motion: no-preference) {

    /* ---------- Hover movement ---------- */
    .button-red,
    .contact-email {
        transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .button-red:hover,
    .contact-email:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9);
    }

    .link-more > span,
    .doc-arrow,
    .service-jump-arrow {
        transition: transform 0.25s ease;
    }

    .link-more:hover > span,
    .doc-link:hover .doc-arrow {
        transform: translateX(5px);
    }

    .service-jump:hover .service-jump-arrow {
        transform: translateY(3px);
    }

    /* ---------- On load: hero copy settles, then the rings build outwards ---------- */
    .intro-title,
    .intro-sub,
    .intro-actions,
    .layers-key,
    .layers-caption,
    .page-head .kicker,
    .page-title,
    .page-standfirst,
    .page-byline {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .intro-sub,
    .page-title { animation-delay: 0.1s; }
    .intro-actions,
    .page-standfirst { animation-delay: 0.2s; }
    .page-byline { animation-delay: 0.3s; }
    .layers-key { animation-delay: 1.15s; }
    .layers-caption { animation-delay: 1.3s; }

    .layer {
        transform-box: fill-box;
        transform-origin: center;
        animation: ring-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .layer-core { animation: pop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 0.3s both; }
    .layer-3 { animation-delay: 0.55s; }
    .layer-2 { animation-delay: 0.75s; }
    .layer-1 { animation-delay: 0.95s; }
}

/* ---------- Tied to scrolling ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {

        .strip .section-title,
        .card,
        .doc-item,
        .service-index li,
        .pull-quote,
        .contact-row > .button-light {
            animation: rise linear both;
            animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
            animation-timeline: view();
            animation-range: cover 0% cover 22%;
        }

        .card:nth-child(2),
        .doc-item:nth-child(2),
        .service-index li:nth-child(2) {
            animation-range: cover 4% cover 26%;
        }

        .card:nth-child(3),
        .doc-item:nth-child(3),
        .service-index li:nth-child(3) {
            animation-range: cover 8% cover 30%;
        }

        .card:nth-child(4) {
            animation-range: cover 12% cover 34%;
        }

        /* The red bars draw in from the left as their panel or heading arrives */
        .card,
        .section-title {
            view-timeline: --item block;
        }

        .card::before,
        .strip .section-title::before {
            animation: bar linear both;
            animation-timeline: --item;
            animation-range: cover 6% cover 24%;
        }

        /* Line icons draw themselves; the dashed node in one icon keeps its dashes */
        .card-icon *:not([stroke-dasharray]) {
            stroke-dasharray: 110;
            animation: draw linear both;
            animation-timeline: --item;
            animation-range: cover 4% cover 32%;
        }

        /* Hero rings turn slowly against each other as the page scrolls */
        .layers-svg .ring-outer,
        .layers-svg .ring-middle {
            transform-box: fill-box;
            transform-origin: center;
            animation: turn linear both;
            animation-timeline: scroll(root block);
        }

        .layers-svg .ring-middle {
            animation-name: turn-back;
        }

        /* Red line tracking progress down the page: under the pinned header,
           or along the top of the screen where the header is not pinned */
        .masthead::after {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 30;
            height: 2px;
            background: var(--red-lift);
            transform: scaleX(0);
            transform-origin: left;
            animation: progress linear both;
            animation-timeline: scroll(root block);
        }

        @media (min-width: 760px) {
            .masthead {
                animation: lift linear both;
                animation-timeline: scroll(root block);
                animation-range: 0px 160px;
            }

            .masthead::after {
                position: absolute;
                top: auto;
                bottom: -1px;
            }
        }
    }
}
