/* ========================================================================================================== */
/* IMPORTS */
/* ========================================================================================================== */
/* The site sets its type in Verdana, which is a system-installed font on every target platform, */
/* so there is no web font to import. This layer is kept in place for when one is added. */


/* ========================================================================================================== */
/* RESET */
/* ========================================================================================================== */
/* modern-normalize, pasted in directly so the site remains a single stylesheet with no runtime */
/* dependency on a second file. */

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

html {
    font-family:
        system-ui,
        'Segoe UI',
        Roboto,
        Helvetica,
        Arial,
        sans-serif,
        'Apple Color Emoji',
        'Segoe UI Emoji';
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    margin: 0;
}

hr {
    height: 0;
    color: inherit;
}

abbr[title] {
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        'Liberation Mono',
        Menlo,
        monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
select {
    text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
}

legend {
    padding: 0;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

[hidden] {
    display: none !important;
}


/* ========================================================================================================== */
/* VARIABLES */
/* ========================================================================================================== */
* {
    /* Page and surfaces, darkest to lightest */
    --color-page-background-rgb: 21, 13, 17;
    --color-surface-recessed-rgb: 29, 20, 20;
    --color-surface-window-rgb: 36, 26, 26;
    --color-surface-raised-rgb: 46, 34, 34;

    --color-outline-rgb: 59, 48, 46;
    --color-outline-strong-rgb: 90, 72, 68;
    --color-outline-hover-rgb: 198, 90, 34;
    --color-scrollbar-thumb-hover-rgb: 110, 89, 85;
    --color-focus-ring-rgb: 233, 166, 59;

    /* Text, brightest to dimmest */
    --color-text-heading-rgb: 196, 189, 184;
    --color-text-body-rgb: 163, 158, 155;
    /* Lightened from 138,126,124 so it clears 4.5:1 contrast against both card (window) */
    /* and tile (raised) surfaces, not just the page background it started out tuned for. */
    --color-text-muted-rgb: 154, 142, 140;

    /* Accents, in the order the home tiles step through them */
    --color-accent-green-rgb: 47, 203, 46;
    --color-accent-blue-rgb: 58, 209, 242;
    --color-accent-purple-rgb: 169, 108, 208;
    --color-accent-purple-hover-rgb: 188, 133, 221;
    --color-accent-red-rgb: 227, 107, 92;
    --color-accent-amber-rgb: 233, 166, 59;
    --color-accent-amber-hover-rgb: 242, 180, 87;
    --color-accent-lime-rgb: 102, 218, 101;

    /* Background atmosphere */
    --color-circuit-blue-rgb: 29, 121, 211;
    --color-circuit-amber-rgb: 198, 90, 34;
    --color-glow-purple-rgb: 127, 67, 186;

    /* Overlay and shadow */
    --color-veil-rgb: 10, 7, 9;
    --color-shadow-rgb: 0, 0, 0;
}


/* ========================================================================================================== */
/* DEFAULTS */
/* ========================================================================================================== */
body {
    background-color: rgb(var(--color-page-background-rgb));
    color: rgb(var(--color-text-body-rgb));
    font: 400 15px/1.6 Verdana, Geneva, sans-serif;
}

a {
    color: rgb(var(--color-accent-amber-rgb));
    text-decoration: none;
}

a:hover {
    color: rgb(var(--color-accent-amber-hover-rgb));
}

h1,
h2,
h3,
p {
    margin: 0;
}

/* Visually hides content while keeping it in the accessibility tree and readable by search
   engines and screen readers — used for semantic headings that would be redundant on screen. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ========================================================================================================== */
/* ANIMATIONS */
/* ========================================================================================================== */
@keyframes circuit-trace {
    0% {
        stroke-dashoffset: 1000;
    }

    30% {
        stroke-dashoffset: 0;
    }

    58% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1000;
    }
}

@keyframes circuit-fill {
    0% {
        stroke-dashoffset: 1000;
    }

    30% {
        stroke-dashoffset: 1000;
    }

    58% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1000;
    }
}

@keyframes veil-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes veil-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes window-rise-in {
    0% {
        transform: translateY(46%);
        opacity: 0.25;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes window-rise-out {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(46%);
        opacity: 0;
    }
}

/* ========================================================================================================== */
/* SHARED COMPONENTS */
/* ========================================================================================================== */

/* ---------------------------------------------------------------------------------------------------------- */
/* GRADIENT PAIRS */
/* ---------------------------------------------------------------------------------------------------------- */
/* Each pair sets the two channels every gradient in the site composes from, plus the single */
/* accent colour taken from the start of the pair. Applied alongside .gradient-text or */
/* .gradient-background, and to a window so its corner brackets pick the same accent up. */
.gradient-green-blue {
    --gradient-start-rgb: var(--color-accent-green-rgb);
    --gradient-end-rgb: var(--color-accent-blue-rgb);
}

.gradient-blue-purple {
    --gradient-start-rgb: var(--color-accent-blue-rgb);
    --gradient-end-rgb: var(--color-accent-purple-rgb);
}

.gradient-purple-red {
    --gradient-start-rgb: var(--color-accent-purple-rgb);
    --gradient-end-rgb: var(--color-accent-red-rgb);
}

.gradient-red-amber {
    --gradient-start-rgb: var(--color-accent-red-rgb);
    --gradient-end-rgb: var(--color-accent-amber-rgb);
}

.gradient-amber-lime {
    --gradient-start-rgb: var(--color-accent-amber-rgb);
    --gradient-end-rgb: var(--color-accent-lime-rgb);
}

.gradient-lime-blue {
    --gradient-start-rgb: var(--color-accent-lime-rgb);
    --gradient-end-rgb: var(--color-accent-blue-rgb);
}

.gradient-text {
    background-image: linear-gradient(
        120deg,
        rgb(var(--gradient-start-rgb)),
        rgb(var(--gradient-end-rgb))
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-background {
    background-image: linear-gradient(
        120deg,
        rgb(var(--gradient-start-rgb)),
        rgb(var(--gradient-end-rgb))
    );
}


/* ---------------------------------------------------------------------------------------------------------- */
/* CARD */
/* ---------------------------------------------------------------------------------------------------------- */
.card {
    background-color: rgb(var(--color-surface-window-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 14px;
}

.card--recessed {
    background-color: rgb(var(--color-surface-recessed-rgb));
    border-color: rgb(var(--color-outline-strong-rgb));
}


/* ---------------------------------------------------------------------------------------------------------- */
/* EYEBROW AND SECTION LABEL */
/* ---------------------------------------------------------------------------------------------------------- */
.eyebrow {
    font: 700 11px Verdana, Geneva, sans-serif;
    letter-spacing: 0.18em;
    color: rgb(var(--color-accent-amber-rgb));
}

.section-label {
    font: 700 13px Verdana, Geneva, sans-serif;
    letter-spacing: 0.18em;
    color: rgb(var(--color-accent-amber-rgb));
}

.section-label--blue {
    color: rgb(var(--color-accent-blue-rgb));
}

.section-label--purple {
    color: rgb(var(--color-accent-purple-rgb));
}

.section-label--red {
    color: rgb(var(--color-accent-red-rgb));
}


/* ---------------------------------------------------------------------------------------------------------- */
/* BUTTON */
/* ---------------------------------------------------------------------------------------------------------- */
.button {
    font: 700 12px Verdana, Geneva, sans-serif;
    letter-spacing: 0.09em;
    border: 0;
    border-radius: 8px;
    padding: 14px 22px;
    cursor: pointer;
}

.button--primary {
    color: rgb(var(--color-page-background-rgb));
    background-color: rgb(var(--color-accent-purple-rgb));
}

.button--primary:hover {
    background-color: rgb(var(--color-accent-purple-hover-rgb));
}

.button--quiet {
    font: 400 12.5px Verdana, Geneva, sans-serif;
    letter-spacing: normal;
    color: rgb(var(--color-text-muted-rgb));
    background: none;
    padding: 0;
    text-decoration: underline;
}

.button--quiet:hover {
    color: rgb(var(--color-accent-amber-rgb));
}

.button--icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    font: 400 14px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    background-color: rgb(var(--color-page-background-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 9px;
}

.button--icon:hover {
    border-color: rgb(var(--color-outline-hover-rgb));
    color: rgb(var(--color-accent-amber-rgb));
}


/* ---------------------------------------------------------------------------------------------------------- */
/* TAG */
/* ---------------------------------------------------------------------------------------------------------- */
.tag {
    font: 700 12.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-page-background-rgb));
    border-radius: 999px;
    padding: 7px 14px;
}


/* ---------------------------------------------------------------------------------------------------------- */
/* FORM FIELDS */
/* ---------------------------------------------------------------------------------------------------------- */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field-label {
    font: 500 10px Verdana, Geneva, sans-serif;
    letter-spacing: 0.14em;
    color: rgb(var(--color-text-muted-rgb));
}

.form-field-name {
    font: 700 13.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

.form-field-hint {
    font: 400 13px/1.55 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.text-input {
    width: 100%;
    background-color: rgb(var(--color-surface-recessed-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 8px;
    padding: 12px 13px;
    font: 400 14px/1.55 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    outline: none;
}

.text-input:focus {
    border-color: rgb(var(--color-accent-amber-rgb));
    box-shadow: 0 0 0 3px rgba(var(--color-focus-ring-rgb), 0.35);
}

.checkbox-input:focus-visible {
    outline: 2px solid rgb(var(--color-focus-ring-rgb));
    outline-offset: 2px;
}

.resource-link:focus-visible,
.video-list-item:focus-visible,
.button:focus-visible,
a:focus-visible {
    outline: 2px solid rgb(var(--color-focus-ring-rgb));
    outline-offset: 2px;
}

.text-input--narrow {
    width: 130px;
}

.text-input--multiline {
    resize: vertical;
}

.checkbox-input {
    width: 17px;
    height: 17px;
    accent-color: rgb(var(--color-accent-purple-rgb));
    color-scheme: dark;
    cursor: pointer;
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 26px;
    background: transparent;
    cursor: pointer;
}

.range-input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background-color: rgb(var(--color-outline-rgb));
}

.range-input::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background-color: rgb(var(--color-outline-rgb));
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    border: 0;
    background-color: rgb(var(--color-accent-amber-rgb));
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 0;
    background-color: rgb(var(--color-accent-amber-rgb));
}

.range-input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(var(--color-accent-amber-rgb), 0.28);
}

.range-value {
    font: 400 13px/1.55 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}


/* ---------------------------------------------------------------------------------------------------------- */
/* SCROLL AREA */
/* ---------------------------------------------------------------------------------------------------------- */
.scroll-area {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--color-outline-strong-rgb)) rgb(var(--color-surface-recessed-rgb));
}

.scroll-area::-webkit-scrollbar {
    width: 9px;
}

.scroll-area::-webkit-scrollbar-track {
    background-color: rgb(var(--color-surface-recessed-rgb));
    border-radius: 9px;
}

.scroll-area::-webkit-scrollbar-thumb {
    background-color: rgb(var(--color-outline-strong-rgb));
    border: 2px solid rgb(var(--color-surface-recessed-rgb));
    border-radius: 9px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: rgb(var(--color-scrollbar-thumb-hover-rgb));
}


/* ---------------------------------------------------------------------------------------------------------- */
/* MODAL WINDOW */
/* ---------------------------------------------------------------------------------------------------------- */
.modal-veil {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 56px);
    background-color: rgba(var(--color-veil-rgb), 0.72);
    animation: veil-fade-in 260ms ease both;
}

.modal-veil--closing {
    animation: veil-fade-out 260ms ease both;
}

.modal-window {
    position: relative;
    width: min(1180px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 34px 40px 32px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(var(--color-shadow-rgb), 0.9);
    animation: window-rise-in 520ms cubic-bezier(0.16, 1.06, 0.3, 1) both;
}

.modal-window--narrow {
    width: min(840px, 100%);
}

.modal-veil--closing .modal-window {
    animation: window-rise-out 300ms cubic-bezier(0.4, 0, 0.7, 0.3) both;
}

.modal-corners {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.modal-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 0 solid rgb(var(--gradient-start-rgb));
}

.modal-corner--top-left {
    left: -1px;
    top: -1px;
    border-left-width: 3px;
    border-top-width: 3px;
    border-radius: 14px 0 0 0;
}

.modal-corner--top-right {
    right: -1px;
    top: -1px;
    border-right-width: 3px;
    border-top-width: 3px;
    border-radius: 0 14px 0 0;
}

.modal-corner--bottom-left {
    left: -1px;
    bottom: -1px;
    border-left-width: 3px;
    border-bottom-width: 3px;
    border-radius: 0 0 0 14px;
}

.modal-corner--bottom-right {
    right: -1px;
    bottom: -1px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-radius: 0 0 14px 0;
}

.modal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.modal-title {
    margin: 14px 0;
    font: 900 clamp(30px, 3.6vw, 40px)/1.05 Verdana, Geneva, sans-serif;
    letter-spacing: -0.02em;
}

.modal-kicker {
    margin-bottom: 20px;
    font: 400 13.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Applied to <body> while any modal is open, so the page behind the veil can't be scrolled */
/* by touch or wheel input while it's covered and (via inert) unreachable by keyboard. */
.body-scroll-locked {
    overflow: hidden;
}

.modal-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-paragraph {
    font: 400 16px/1.62 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    text-wrap: pretty;
}


/* ========================================================================================================== */
/* BACKGROUND ATMOSPHERE */
/* ========================================================================================================== */
.page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.page-glow {
    position: absolute;
    top: -440px;
    right: -420px;
    width: 1000px;
    height: 1000px;
    pointer-events: none;
    background: radial-gradient(
        closest-side,
        rgba(var(--color-glow-purple-rgb), 0.34),
        rgba(var(--color-glow-purple-rgb), 0.11) 45%,
        rgba(var(--color-glow-purple-rgb), 0)
    );
}

.circuit-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circuit-path {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* Keeps the path at its 0% keyframe (fully hidden — see circuit-trace/circuit-fill below) */
    /* for the whole positive animation-delay stagger below, so nothing is drawn until each */
    /* lane's animation actually starts. Without this, a delayed animation renders at the */
    /* browser's default stroke-dashoffset (0, i.e. fully drawn) until the delay elapses. */
    animation-fill-mode: backwards;
}

.circuit-path--blue {
    stroke: rgb(var(--color-circuit-blue-rgb));
    animation-name: circuit-trace;
    opacity: var(--lane-opacity);
}

/* The amber pass runs brighter than the resting blue trace so the fill-in and, especially, */
/* the erase that follows it stay legible instead of fading below the eye's threshold — at */
/* the blue trace's own low opacity the erase reads as an abrupt vanish rather than a wipe. */
.circuit-path--amber {
    stroke: rgb(var(--color-circuit-amber-rgb));
    animation-name: circuit-fill;
    opacity: calc(var(--lane-opacity) * 2.6);
}

/* Lanes differ in tempo and in when their first pass starts, so the six routes never travel */
/* in lockstep. Delays are positive (a wait before the first trace-in) rather than negative, */
/* so every lane begins from nothing and draws itself in on load instead of appearing already */
/* mid-cycle. */
.circuit-lane--one {
    --lane-opacity: 0.085;
    animation-duration: 14s;
    animation-delay: 0.2s;
}

.circuit-lane--two {
    --lane-opacity: 0.055;
    animation-duration: 19s;
    animation-delay: 2.6s;
}

.circuit-lane--three {
    --lane-opacity: 0.085;
    animation-duration: 16s;
    animation-delay: 1.3s;
}

.circuit-lane--four {
    --lane-opacity: 0.055;
    animation-duration: 20s;
    animation-delay: 4.1s;
}

.circuit-lane--five {
    --lane-opacity: 0.085;
    animation-duration: 13s;
    animation-delay: 0.7s;
}

.circuit-lane--six {
    --lane-opacity: 0.055;
    animation-duration: 18s;
    animation-delay: 3.4s;
}


/* ========================================================================================================== */
/* HOME PAGE */
/* ========================================================================================================== */
.home-page {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    padding: 44px clamp(12px, 3.4vw, 48px) 26px;
}

/* ---------------------------------------------------------------------------------------------------------- */
/* HOME HEADER */
/* ---------------------------------------------------------------------------------------------------------- */
.home-header {
    align-self: start;
    position: relative;
    z-index: 2;
    text-align: center;
}

.home-header-lockup {
    width: 742px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.home-header-mark {
    width: 168px;
    height: 168px;
    margin: 0 auto;
    display: none;
}

/* Below the lockup's natural width the wordmark and tagline give way to the element mark alone. */
@media (max-width: 799px) {
    .home-header-lockup {
        display: none;
    }

    .home-header-mark {
        display: block;
    }
}

/* ---------------------------------------------------------------------------------------------------------- */
/* HOME TILES */
/* ---------------------------------------------------------------------------------------------------------- */
.home-tiles-section {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.home-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.home-tile {
    width: 168px;
    height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 14px 16px;
    background-color: rgb(var(--color-surface-raised-rgb));
    border: 1px solid rgb(var(--color-outline-strong-rgb));
    border-radius: 10px;
    color: rgb(var(--color-text-body-rgb));
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}

.home-tile:hover,
.home-tile:focus-visible {
    border-color: rgb(var(--color-outline-hover-rgb));
    box-shadow: 0 0 32px -8px rgba(var(--color-outline-hover-rgb), 0.75);
    transform: translateY(-3px);
}

.home-tile-index {
    font: 400 11px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.home-tile-symbol {
    font: 700 46px Verdana, Geneva, sans-serif;
    text-align: center;
}

.home-tile-name {
    font: 500 10.5px Verdana, Geneva, sans-serif;
    letter-spacing: 0.14em;
    color: rgb(var(--color-text-body-rgb));
}

/* ---------------------------------------------------------------------------------------------------------- */
/* HOME FOOTER */
/* ---------------------------------------------------------------------------------------------------------- */
.home-footer,
.site-footer {
    align-self: end;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.site-footer {
    padding-top: 30px;
}

.home-footer-legal,
.site-footer-legal {
    font: 400 11.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    text-align: center;
}

.home-footer-link,
.site-footer-link {
    font: 400 11.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}


/* ========================================================================================================== */
/* HOME PANEL CONTENT */
/* ========================================================================================================== */

/* ---------------------------------------------------------------------------------------------------------- */
/* SPECIALISMS */
/* ---------------------------------------------------------------------------------------------------------- */
.specialisms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 0 10px;
    border-top: 1px solid rgb(var(--color-outline-rgb));
}

.specialisms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 8px 0 10px;
}

.specialisms-note {
    font: 400 15px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

/* ---------------------------------------------------------------------------------------------------------- */
/* SERVICE GROUPS */
/* ---------------------------------------------------------------------------------------------------------- */
.service-groups-heading {
    display: block;
    padding-top: 28px;
    border-top: 1px solid rgb(var(--color-outline-rgb));
}

.service-group {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(var(--color-outline-rgb));
}

.service-group-label {
    font: 500 10.5px/1.6 Verdana, Geneva, sans-serif;
    letter-spacing: 0.13em;
    color: rgb(var(--color-text-muted-rgb));
}

.service-group-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-item-name {
    font: 700 16px/1.35 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

.service-item-description {
    margin-top: 4px;
    font: 400 15px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    max-width: 72ch;
    text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------------------- */
/* CASE STUDIES */
/* ---------------------------------------------------------------------------------------------------------- */
.case-study {
    display: grid;
    grid-template-columns: 44px 1fr 1fr;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(var(--color-outline-rgb));
}

.case-study-label {
    font: 500 11px/1.5 Verdana, Geneva, sans-serif;
    letter-spacing: 0.13em;
    color: rgb(var(--color-text-muted-rgb));
}

.case-study-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-study-heading {
    font: 700 13px Verdana, Geneva, sans-serif;
    letter-spacing: 0.16em;
}

.case-study-heading--problem {
    color: rgb(var(--color-accent-red-rgb));
}

.case-study-heading--solution {
    color: rgb(var(--color-accent-amber-rgb));
}

.case-study-text {
    font: 400 14.5px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    text-wrap: pretty;
}

@media (max-width: 799px) {
    .case-study {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ---------------------------------------------------------------------------------------------------------- */
/* RESOURCE LINKS */
/* ---------------------------------------------------------------------------------------------------------- */
.resource-link {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px 22px;
    background-color: rgb(var(--color-surface-recessed-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 12px;
}

.resource-link:hover {
    border-color: rgb(var(--color-outline-hover-rgb));
}

.resource-link-name {
    font: 700 16px/1.35 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-accent-amber-rgb));
}

.resource-link-text {
    font: 400 15px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

/* ---------------------------------------------------------------------------------------------------------- */
/* ENQUIRY FORM */
/* ---------------------------------------------------------------------------------------------------------- */
.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.enquiry-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.enquiry-form-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    font: 400 13px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

.enquiry-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.enquiry-form-note {
    font: 400 11.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.enquiry-form-privacy-note {
    grid-column: 1 / -1;
    font: 400 11.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

@media (max-width: 599px) {
    .enquiry-form {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================================================== */
/* RESOURCE PAGES */
/* ========================================================================================================== */
.resource-page {
    padding: 44px clamp(16px, 3.4vw, 48px) 34px;
}

.resource-page-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.resource-page-back-link {
    font: 500 11px Verdana, Geneva, sans-serif;
    letter-spacing: 0.14em;
    color: rgb(var(--color-text-muted-rgb));
}

.resource-page-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resource-page-title {
    font: 900 clamp(30px, 4.4vw, 44px)/1.05 Verdana, Geneva, sans-serif;
    letter-spacing: -0.02em;
}

.resource-page-introduction {
    font: 400 16px/1.62 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    max-width: 82ch;
    text-wrap: pretty;
}

.resource-page-introduction--secondary {
    font-size: 15px;
    line-height: 1.6;
}


/* ========================================================================================================== */
/* PRIVACY POLICY PAGE */
/* ========================================================================================================== */
.policy-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 82ch;
    padding: clamp(24px, 3vw, 36px);
}

.policy-meta {
    font: 400 12.5px Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.policy-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgb(var(--color-outline-rgb));
}

.policy-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.policy-heading {
    font: 700 19px/1.3 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-heading-rgb));
}

.policy-list {
    margin: 4px 0 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.policy-list li {
    font: 400 15.5px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    text-wrap: pretty;
}

.policy-list .policy-list {
    margin-top: 6px;
}

.policy-subheading {
    font: 700 15px/1.4 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-heading-rgb));
}

.policy-code {
    display: inline-block;
    padding: 3px 10px;
    font: 400 13.5px/1.5 ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    color: rgb(var(--color-text-heading-rgb));
    background-color: rgb(var(--color-surface-recessed-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 6px;
}


/* ========================================================================================================== */
/* RETURN ON INVESTMENT CALCULATOR */
/* ========================================================================================================== */
.calculator-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    align-items: start;
}

.calculator-inputs {
    padding: clamp(20px, 2.6vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---------------------------------------------------------------------------------------------------------- */
/* ESTIMATE */
/* ---------------------------------------------------------------------------------------------------------- */
.estimate-panel {
    position: relative;
    padding: clamp(20px, 2.6vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.estimate-lead {
    font: 400 15px/1.5 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.estimate-headline {
    margin-top: -14px;
    font: 900 clamp(28px, 3.6vw, 40px)/1.1 Verdana, Geneva, sans-serif;
    letter-spacing: -0.02em;
}

.estimate-summary {
    font: 400 15.5px/1.62 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

.estimate-emphasis {
    color: rgb(var(--color-text-heading-rgb));
}

.estimate-mistakes {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 20px;
    border-top: 1px solid rgb(var(--color-outline-rgb));
}

.estimate-mistakes-text {
    font: 400 15px/1.62 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}

.estimate-disclaimer {
    font: 400 12.5px/1.55 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.estimate-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.calculator-assumptions {
    font: 400 13px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
    max-width: 82ch;
}


/* ========================================================================================================== */
/* VIDEO LIBRARY */
/* ========================================================================================================== */
.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
}

.video-player {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgb(var(--color-surface-recessed-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 14px;
    overflow: hidden;
}

.video-player-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-details-title {
    font: 700 20px/1.3 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-heading-rgb));
}

.video-details-meta {
    font: 500 11px Verdana, Geneva, sans-serif;
    letter-spacing: 0.14em;
    color: rgb(var(--color-text-muted-rgb));
}

.video-details-text {
    margin-top: 6px;
    font: 400 15px/1.62 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
    max-width: 74ch;
}

.video-details-link {
    margin-top: 6px;
    font: 400 13px Verdana, Geneva, sans-serif;
}

.video-list {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 70vh;
}

.video-list-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background-color: rgb(var(--color-surface-recessed-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 10px;
    padding: 14px 15px;
    cursor: pointer;
    transition: border-color 160ms;
}

.video-list-item:hover {
    border-color: rgb(var(--color-outline-hover-rgb));
}

.video-list-item--active {
    background-color: rgb(var(--color-surface-raised-rgb));
    border-color: rgb(var(--color-outline-strong-rgb));
}

.video-list-item-index {
    font: 400 10.5px Verdana, Geneva, sans-serif;
    letter-spacing: 0.14em;
    color: rgb(var(--color-text-muted-rgb));
}

.video-list-item-title {
    font: 700 14px/1.4 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-heading-rgb));
}

.video-list-item-meta {
    font: 400 12.5px/1.5 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

@media (max-width: 899px) {
    .video-layout {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================================================== */
/* RESOURCES INDEX PAGE */
/* ========================================================================================================== */
.resource-categories {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.resource-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background-color: rgb(var(--color-surface-recessed-rgb));
    border: 1px solid rgb(var(--color-outline-rgb));
    border-radius: 12px;
    transition: border-color 160ms, transform 160ms;
}

.resource-card:hover,
.resource-card:focus-visible {
    border-color: rgb(var(--color-outline-hover-rgb));
    transform: translateY(-2px);
}

.resource-card-tag {
    font: 700 10px Verdana, Geneva, sans-serif;
    letter-spacing: 0.14em;
    color: rgb(var(--color-text-muted-rgb));
}

.resource-card-name {
    font: 700 16px/1.35 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-accent-amber-rgb));
}

.resource-card-text {
    font: 400 15px/1.6 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-body-rgb));
}


/* ========================================================================================================== */
/* SECURE NOTE TOOL */
/* ========================================================================================================== */
.note-tool,
.note-result,
.note-reveal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(20px, 3vw, 30px);
}

.note-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

.note-composer-row {
    display: flex;
    flex-direction: column;
}

.note-expiry-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-expiry-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.note-expiry-select {
    flex: 1 1 220px;
}

.note-create-button {
    flex: 0 0 auto;
}

.note-tool-note {
    font: 400 13px/1.55 Verdana, Geneva, sans-serif;
    color: rgb(var(--color-text-muted-rgb));
}

.note-tool-note--warning {
    color: rgb(var(--color-accent-red-rgb));
}

.note-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.note-link-input {
    flex: 1 1 320px;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13.5px;
}

.note-result-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.note-tool-unavailable {
    padding: 22px 24px;
}

@media (max-width: 599px) {
    .note-expiry-controls {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ========================================================================================================== */
/* REDUCED MOTION */
/* ========================================================================================================== */
/* The circuit background loops forever and the modal window rises/blurs into place on every */
/* open. Both are purely decorative, so anyone who has asked their system for reduced motion */
/* gets a static background and near-instant, non-blurred transitions instead. */
@media (prefers-reduced-motion: reduce) {

    .circuit-path {
        animation: none;
        opacity: 0;
    }

    .modal-veil,
    .modal-veil--closing {
        animation-duration: 1ms;
    }

    .modal-window,
    .modal-veil--closing .modal-window {
        animation: none;
    }

}
