/* ==========================================================================
   ENFTC — shared stylesheet, "Signal" direction
   Dark steel fields from the ENFTC logo alternating with a light technical
   ground; Barlow Condensed uppercase headlines; hairline blueprint frames.
   Self-hosted fonts, no inline styles (CSP style-src 'self'). No scripts, except the
   one self-hosted player script on /workbench.
   Pages: index, ai-governance, workbench, resume, build-story, 404
   Cache busting: every page links this file as /assets/site.css?v=YYYYMMDD (add a
   letter for a second change on the same day), and
   workbench.html links /assets/workbench-demo.js the same way. Whenever either
   file changes, bump that value (to the change date) on every page, or visitors
   who have been here before keep the old copy.
   ========================================================================== */

/* --- Fonts (Barlow, SIL Open Font License; see fonts/OFL.txt) ------------ */

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/barlow-condensed-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

/* --- Tokens --------------------------------------------------------------- */

:root {
    --bg: #f2f2f3;
    --surface: #e9e9ea;
    --text: #1d1f20;
    --text-2: #424244;
    --text-3: #5d5d60;
    --divider: rgba(29, 31, 32, 0.16);

    --steel-900: #1d2d3d;
    --steel-800: #2c455d;
    --steel-700: #416180;
    --steel-500: #749dc4;
    --steel-400: #94bce3;
    --steel-300: #b5d9fd;
    --steel-200: #d6ebff;
    --steel-100: #eef6ff;
    --nav-dark: #d4d4d7;
    --divider-dark: rgba(242, 242, 243, 0.18);
    --focus: #5980a6;

    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

    --container: 1240px;
    --gutter: clamp(20px, 5vw, 60px);
    --section-y: clamp(56px, 7vw, 104px);

    /* Blueprint frame colours; dark fields override these. */
    --color-text: var(--text);
    --color-divider: var(--divider);
}

/* --- Reset and base ------------------------------------------------------- */

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

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

/* The grid-paper field lives on the body so the header, hero, contact band
   and footer share one continuous grid. Light sections paint over it. */
body {
    margin: 0;
    background-color: var(--steel-900);
    background-image:
        linear-gradient(rgba(148, 188, 227, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 188, 227, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--steel-700);
}

a:hover {
    color: var(--steel-800);
}

strong {
    color: var(--text);
    font-weight: 700;
}

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

main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 20;
    padding: 10px 16px;
    background: var(--steel-200);
    color: var(--steel-900);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* --- Fields --------------------------------------------------------------- */

/* Text colours for anything on the dark ground (grid paper or plain band). */
.field-dark,
.band-dark {
    --color-text: #f2f2f3;
    --color-divider: var(--divider-dark);
    color: #f2f2f3;
}

.field-dark strong,
.band-dark strong {
    color: #f2f2f3;
}

.field-dark :focus-visible,
.band-dark :focus-visible {
    outline-color: var(--steel-400);
}

/* Plain dark band, no grid. */
.band-dark {
    background: var(--steel-900);
}

.light {
    background: var(--bg);
    color: var(--text);
}

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

.section {
    padding-block: var(--section-y);
}

.rule-top {
    border-top: 1px solid var(--divider);
}

/* --- Type ----------------------------------------------------------------- */

.kicker {
    color: var(--steel-700);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.field-dark .kicker,
.band-dark .kicker {
    color: var(--steel-400);
}

.label {
    color: var(--steel-700);
    font-size: 12px;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.field-dark .label,
.band-dark .label {
    color: var(--steel-400);
}

.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 0.95;
    text-transform: uppercase;
}

.h2 {
    font-size: clamp(40px, 5vw, 60px);
}

.accent {
    color: var(--steel-700);
}

.field-dark .accent,
.band-dark .accent {
    color: var(--steel-400);
}

.title {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
}

.num {
    color: var(--steel-500);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
}

.body-2 {
    color: var(--text-2);
}

.lead-dark {
    max-width: 42ch;
    color: var(--steel-100);
    font-size: 21px;
    line-height: 1.5;
}

/* --- Blueprint frame ------------------------------------------------------ */

.blueprint {
    position: relative;
    border: 1px solid var(--color-divider);
}

.blueprint > .corner {
    position: absolute;
    width: 11px;
    height: 11px;
    color: rgba(29, 31, 32, 0.55);
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.blueprint > .corner::before,
.blueprint > .corner::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.blueprint > .corner::before {
    left: 5px;
    top: 0;
    width: 1px;
    height: 100%;
}

.blueprint > .corner::after {
    top: 5px;
    left: 0;
    width: 100%;
    height: 1px;
}

.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* --- Buttons and links ---------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border: 1px solid var(--steel-200);
    background: var(--steel-200);
    color: var(--steel-900);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
}

.btn:hover {
    background: #ffffff;
    color: var(--steel-900);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 17px;
}

.btn-lg {
    padding: 16px 26px;
    font-size: 22px;
}

.link-dark {
    border-bottom: 1px solid var(--steel-700);
    color: var(--steel-400);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.link-dark:hover {
    border-bottom-color: var(--steel-400);
    color: var(--steel-200);
}

.link-dark-sm {
    font-size: 18px;
}

.link-arrow {
    color: var(--steel-700);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow::after {
    content: " →";
}

.link-arrow:hover {
    color: var(--steel-800);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

/* --- Tags ----------------------------------------------------------------- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 3px 10px;
    background: var(--steel-100);
    color: var(--steel-800);
    font-size: 12px;
    line-height: 1.5;
}

.tag-dark {
    background: var(--steel-900);
    color: #f2f2f3;
}

.tag-outline {
    padding: 4px 12px;
    border: 1px solid var(--steel-500);
    background: transparent;
    font-size: 13px;
}

/* --- Header --------------------------------------------------------------- */

.site-header .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    padding-block: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    color: #f2f2f3;
    text-decoration: none;
}

.brand:hover {
    color: #f2f2f3;
}

.brand-mark {
    flex: none;
    color: var(--steel-400);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
}

.site-nav a {
    color: var(--nav-dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--steel-400);
}

.site-nav a[aria-current="page"] {
    border-bottom: 1px solid var(--steel-400);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px 40px;
    padding-block: 28px 48px;
}

.site-footer .footer-rule {
    border-top: 1px solid rgba(242, 242, 243, 0.16);
}

.colophon {
    color: var(--steel-300);
    font-size: 14px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-nav a {
    color: var(--nav-dark);
    font-size: 14px;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--steel-400);
}

/* --- Contact band --------------------------------------------------------- */

.contact {
    padding-block: clamp(72px, 9vw, 112px) clamp(64px, 8vw, 96px);
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.contact-title {
    font-size: clamp(56px, 10vw, 132px);
    line-height: 0.92;
}

.contact-title-sm {
    font-size: clamp(56px, 9vw, 120px);
}

.contact p {
    max-width: 52ch;
    color: var(--steel-200);
    font-size: 19px;
}

/* --- Home: hero ----------------------------------------------------------- */

.hero-home {
    padding-top: clamp(40px, 6vw, 72px);
}

.hero-home .kicker {
    margin-bottom: 28px;
}

.hero-lines {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--divider-dark);
    font-weight: 600;
}

.hero-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    padding: 10px 0 6px;
    border-bottom: 1px solid var(--divider-dark);
}

.hero-line-text {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 132px);
    letter-spacing: -0.01em;
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-line-text.accent {
    color: var(--steel-400);
}

.hero-line-meta {
    flex: none;
    color: var(--steel-400);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 48px;
    align-items: start;
    padding-block: 48px 72px;
}

.hero-intro-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-aside-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
}

.hero-aside-text {
    color: var(--steel-300);
    font-size: 14px;
    line-height: 1.45;
}

.hero-aside-ruled {
    gap: 6px;
    padding-left: 24px;
    border-left: 1px solid var(--divider-dark);
}

.clients-strip {
    border-top: 1px solid rgba(242, 242, 243, 0.14);
    background: rgba(29, 45, 61, 0.85);
}

.clients-inner {
    display: flex;
    align-items: center;
    gap: 12px 36px;
    padding-block: 22px;
}

.clients-label {
    flex: none;
    color: var(--steel-400);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    color: var(--nav-dark);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* --- Home: services ------------------------------------------------------- */

.split-4-8 {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 56px;
    align-items: start;
}

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

.service-list {
    border-top: 1px solid var(--text);
}

.service-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--divider);
    color: var(--text);
    text-decoration: none;
}

a.service-row:hover {
    background: var(--surface);
    color: var(--text);
}

.service-row .num {
    font-size: 36px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.service-title-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-more {
    color: var(--steel-700);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.service-desc {
    color: var(--text-2);
    font-size: 16px;
}

/* --- Approach timeline ---------------------------------------------------- */

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 40px;
    margin-bottom: 64px;
}

.section-head-row > p {
    max-width: 40ch;
    color: var(--steel-300);
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 0;
    height: 1px;
    background: var(--steel-700);
}

.timeline li,
.steps li {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dot {
    position: relative;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--steel-400);
    box-shadow: 0 0 0 6px var(--steel-900);
}

.dot-hollow {
    border: 1.5px solid var(--steel-400);
    background: var(--steel-900);
}

.step-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.step-title.accent {
    color: var(--steel-400);
}

.step-text {
    color: var(--steel-200);
    font-size: 15px;
}

/* Steps with a top rule (AI governance, approach page). */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 40px;
    border-top: 1px solid var(--steel-700);
}

.steps li {
    gap: 14px;
    padding-top: 24px;
}

/* --- Home: workbench and about -------------------------------------------- */

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

.split-6-6 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
}

.stack-20 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workbench-title {
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.92;
}

.workbench-text {
    max-width: 56ch;
    color: var(--text-2);
}

.never-panel {
    margin-top: 40px;
    padding: 8px 28px 4px;
}

.never-panel .label {
    padding: 18px 0 10px;
}

.never-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--divider);
}

.never-list li:last-child {
    padding-bottom: 20px;
}

.never-item {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
}

.never-list .num {
    font-size: 20px;
}

.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.bio {
    max-width: 58ch;
    color: var(--text-2);
}

/* --- Shared section heads and cards (AI governance, approach) ------------ */

.head-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 24px 56px;
    align-items: end;
    margin-bottom: 48px;
}

.head-split > p {
    max-width: 52ch;
    color: var(--text-2);
}

.head-split a {
    font-weight: 600;
}

.stack-14 {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 28px;
}

.card .num {
    font-size: 40px;
}

.card-title {
    font-size: 30px;
    line-height: 1.02;
}

.card-text {
    color: var(--text-2);
    font-size: 16px;
}

.card-note {
    padding-top: 12px;
    border-top: 1px solid var(--divider);
    color: var(--text-3);
    font-size: 14px;
}

.card .tags {
    gap: 6px;
    margin-top: auto;
}

/* Shared-hairline grid: the 1px gap shows the divider-coloured ground. */
.cells {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1px;
    border: 1px solid var(--divider);
    background: var(--divider);
}

.cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    background: var(--bg);
}

.cell-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.05;
}

.cell-text {
    color: var(--text-2);
    font-size: 15px;
}

.note {
    max-width: 72ch;
    margin-top: 24px;
    color: var(--text-2);
    font-size: 15px;
}

.split-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 40px 64px;
    align-items: center;
}

.stack-16 > p,
.split-auto .stack-16 > p {
    color: var(--text-2);
}

/* --- AI governance: hero and figure --------------------------------------- */

.page-hero {
    padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px);
}

.hero-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 56px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.page-title {
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.93;
    text-wrap: balance;
}

.lead-dark-wide {
    max-width: 46ch;
    font-size: 20px;
}

.views-figure .label {
    margin-bottom: 16px;
}

.views-boxes,
.views-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.view-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
    background: var(--steel-900);
}

.view-box .num {
    color: var(--steel-400);
    font-size: 18px;
}

.view-name {
    font-family: var(--font-display);
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 600;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.view-sub {
    color: var(--steel-300);
    font-size: 13px;
    line-height: 1.4;
}

.views-links {
    height: 44px;
}

.views-links span {
    justify-self: center;
    width: 1px;
    height: 100%;
    background: var(--steel-500);
}

.evidence-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 20px;
    padding: 18px 20px;
    background: var(--steel-200);
    color: var(--steel-900);
}

.evidence-bar-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.evidence-bar-sub {
    color: var(--steel-800);
    font-size: 14px;
}

.views-figure figcaption {
    margin-top: 12px;
    color: var(--steel-300);
    font-size: 13px;
}

.expert-title {
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.92;
}

/* --- About Emre ------------------------------------------------------------ */

.page-head {
    padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px);
}

.page-head-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.name-title {
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.9;
}

.role-line-lg {
    color: var(--steel-400);
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 600;
    line-height: 1.2;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding-top: 18px;
    border-top: 1px solid var(--divider-dark);
    color: var(--nav-dark);
    font-size: 15px;
}

.contact-row a {
    border-bottom: 1px solid var(--steel-700);
    color: var(--steel-200);
    text-decoration: none;
}

.contact-row a:hover {
    border-bottom-color: var(--steel-400);
    color: #ffffff;
}

.cv-section {
    padding-top: clamp(56px, 7vw, 96px);
}

.cv-section-last {
    padding-bottom: clamp(56px, 7vw, 96px);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 32px 64px;
}

.profile-grid > .kicker {
    padding-top: 10px;
}

.profile-statement {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.15;
}

.profile-text {
    max-width: 66ch;
    color: var(--text-2);
}

.outcomes-heading {
    margin-bottom: 24px;
}

.outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 28px;
}

.outcome {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;
}

.outcome .title {
    font-size: 26px;
}

.outcome-text {
    color: var(--text-2);
    font-size: 15px;
}

.cv-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}

.print-note {
    color: var(--text-3);
    font-size: 14px;
}

.roles {
    border-top: 1px solid var(--text);
}

.role {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 8px 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--divider);
}

.role-current {
    margin-inline: -16px;
    padding: 28px 16px;
    background: var(--surface);
}

.role-when {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.role-dates {
    color: var(--steel-700);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.role-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-current .role-body {
    gap: 8px;
}

.role-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.role-current .role-name {
    font-size: 26px;
}

.role-title {
    color: var(--text-3);
    font-weight: 400;
}

.role-text {
    color: var(--text-2);
    font-size: 15px;
}

.earlier {
    margin-top: 20px;
    color: var(--text-2);
    font-size: 15px;
}

.quals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 1px;
    border: 1px solid var(--divider);
    background: var(--divider);
}

.quals li {
    padding: 18px 20px;
    background: var(--bg);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}

.quals-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 16px 48px;
    margin-top: 24px;
    color: var(--text-2);
    font-size: 15px;
}

.cta-band {
    padding-block: clamp(56px, 7vw, 88px) 64px;
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px 48px;
}

.cta-band-title {
    font-size: clamp(44px, 6vw, 80px);
    line-height: 0.92;
}

/* --- Approach page and 404 ------------------------------------------------- */

.aside-panel {
    padding: 24px 28px;
    color: var(--text-2);
}

.aside-panel strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.prose-light p + p {
    margin-top: 16px;
}

.prose-light p {
    max-width: 62ch;
    color: var(--text-2);
}

.notfound {
    padding-block: clamp(64px, 10vw, 140px);
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
    .hero-intro,
    .split-4-8,
    .split-7-5,
    .split-6-6,
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-intro {
        gap: 32px;
    }

    .split-4-8,
    .split-7-5,
    .split-6-6 {
        gap: 40px;
    }

    .never-panel {
        margin-top: 0;
    }

    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline::before {
        display: none;
    }

    .clients-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .hero-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .service-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 28px 0;
    }

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

    .views-boxes {
        gap: 10px;
    }

    .view-box {
        padding: 14px 10px;
    }
}

@media (max-width: 620px) {
    .site-nav {
        order: 3;
        width: 100%;
    }

    .site-nav ul {
        gap: 8px 22px;
    }

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

    .clients-list {
        gap: 8px 28px;
        font-size: 19px;
    }
}

/* --- Workbench demo ---------------------------------------------------------
   A guided player over eight captured screens of the Assure workbench. The
   stage radios are the single source of truth: with no script, choosing a stage
   switches the screen and caption through :has(). /assets/workbench-demo.js
   only adds autoplay, the progress bar and previous/next/pause. */

.wb-hero {
    padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px);
}

.wb-hero-split {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 32px 64px;
    align-items: end;
}

.wb-title {
    line-height: 0.95;
}

.wb-lead {
    text-wrap: pretty;
}

.hero-note {
    color: var(--steel-300);
    font-size: 14px;
}

/* Keep the header button on one line when the header wraps. */
.site-header .btn {
    white-space: nowrap;
}

.wb-demo .head-split {
    margin-bottom: 12px;
}

.wb-stack,
.wb-player {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Stepper */

.wb-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
}

.wb-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wb-group-consulting {
    flex: 6 1 600px;
}

.wb-group-audit {
    flex: 2 1 190px;
}

.wb-group-remediation,
.wb-group-live {
    flex: 1 1 100px;
}

.wb-group-label {
    color: var(--text-3);
    font-size: 12px;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Side by side, the longer audit label wraps to two lines.
   Reserve two lines on every label so the rows of stages stay level. */
@media (min-width: 769px) {
    .wb-group-label {
        min-height: 2.8em;
    }
}

.wb-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 12px 16px;
}

.wb-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 8px 12px 0;
    border-top: 1px solid var(--divider);
    cursor: pointer;
    text-align: left;
}

.wb-step:hover {
    background: var(--surface);
}

.wb-step .num {
    font-size: 22px;
}

.wb-short {
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.05;
}

/* The radio stays focusable but is not drawn; the whole cell shows focus. */
.wb-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.wb-step:has(.wb-radio:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.wb-step:has(.wb-radio:checked) {
    border-top-color: var(--text);
}

.wb-step:has(.wb-radio:checked) .num {
    color: var(--steel-700);
}

.wb-step:has(.wb-radio:checked) .wb-short {
    color: var(--text);
}

/* Progress: drawn over the active cell's top rule once the script is running. */
.wb-progress {
    display: none;
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--steel-700);
    transform-origin: 0 50%;
}

/* Longhands, not the `animation` shorthand: the shorthand resets
   animation-play-state to running, and this selector outranks the pause rule below. */
.wb-player.is-enhanced .wb-step:has(.wb-radio:checked) .wb-progress {
    display: block;
    animation-name: wbProgress;
    animation-duration: var(--wb-dur, 7s);
    animation-timing-function: linear;
    animation-fill-mode: both;
}

.wb-player.is-paused .wb-progress,
.wb-player.is-fading .wb-progress {
    animation-play-state: paused;
}

/* Screen frame */

.wb-frame {
    margin-top: 8px;
}

.wb-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--divider);
    color: var(--text-3);
    font-size: 12px;
}

.wb-dots {
    display: flex;
    gap: 6px;
}

.wb-dots span {
    width: 9px;
    height: 9px;
    border: 1px solid rgba(29, 31, 32, 0.3);
}

.wb-url {
    flex: 1;
    text-align: center;
}

.wb-fictional {
    white-space: nowrap;
}

.wb-viewport {
    position: relative;
    aspect-ratio: 1440 / 900;
    overflow: hidden;
    background: var(--bg);
}

.wb-screen {
    display: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.wb-player.is-fading .wb-screen {
    opacity: 0;
    transform: translateY(10px);
    transition-duration: 0.26s;
}

.wb-player:has(#wb-stage-1:checked) .wb-screen-1,
.wb-player:has(#wb-stage-2:checked) .wb-screen-2,
.wb-player:has(#wb-stage-3:checked) .wb-screen-3,
.wb-player:has(#wb-stage-4:checked) .wb-screen-4,
.wb-player:has(#wb-stage-5:checked) .wb-screen-5,
.wb-player:has(#wb-stage-6:checked) .wb-screen-6,
.wb-player:has(#wb-stage-7:checked) .wb-screen-7,
.wb-player:has(#wb-stage-8:checked) .wb-screen-8,
.wb-player:has(#wb-stage-9:checked) .wb-screen-9,
.wb-player:has(#wb-stage-10:checked) .wb-screen-10 {
    display: block;
}

.wb-shot {
    position: relative;
}

.wb-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Highlight ring: offset 8px outside the element, positioned in percentages
   of the screen image (measured from the captures). */
.wb-ring {
    position: absolute;
    z-index: 2;
    border: 2px solid var(--steel-700);
    pointer-events: none;
    animation:
        wbRingIn 0.5s ease-out var(--wb-ring-delay, 0.9s) both,
        wbPulse 2.2s ease-out calc(var(--wb-ring-delay, 0.9s) + 0.5s) infinite;
}

.wb-ring-1 { left: 67.847%; top: 19.101%; width: 27.639%; height: 44.939%; }
.wb-ring-2 { left: 41.176%; top: 50.042%; width: 56.046%; height: 4.361%; }
.wb-ring-3 { left: 45.578%; top: 32.429%; width: 24.676%; height: 15.602%; }
.wb-ring-4 { left: 58.379%; top: 10.253%; width: 38.842%; height: 37.990%; }
.wb-ring-5 { left: 5.069%; top: 15.790%; width: 56.898%; height: 32.160%; }
.wb-ring-6 { left: 4.583%; top: 15.806%; width: 58.796%; height: 72.762%; }
.wb-ring-7 { left: 39.351%; top: 32.401%; width: 54.260%; height: 39.237%; }
.wb-ring-8 { left: 4.514%; top: 15.734%; width: 52.054%; height: 45.558%; }
.wb-ring-9 { left: 2.778%; top: 30.667%; width: 61.111%; height: 34.667%; }
.wb-ring-10 { left: 63.042%; top: 44.361%; width: 30.278%; height: 10.333%; }

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

@keyframes wbRingIn {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes wbPulse {
    0% { box-shadow: 0 0 0 0 rgba(65, 97, 128, 0.45); }
    70% { box-shadow: 0 0 0 18px rgba(65, 97, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(65, 97, 128, 0); }
}

/* Captions */

.wb-caption {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px 48px;
    padding-top: 12px;
    align-items: start;
}

.wb-player:has(#wb-stage-1:checked) .wb-caption-1,
.wb-player:has(#wb-stage-2:checked) .wb-caption-2,
.wb-player:has(#wb-stage-3:checked) .wb-caption-3,
.wb-player:has(#wb-stage-4:checked) .wb-caption-4,
.wb-player:has(#wb-stage-5:checked) .wb-caption-5,
.wb-player:has(#wb-stage-6:checked) .wb-caption-6,
.wb-player:has(#wb-stage-7:checked) .wb-caption-7,
.wb-player:has(#wb-stage-8:checked) .wb-caption-8,
.wb-player:has(#wb-stage-9:checked) .wb-caption-9,
.wb-player:has(#wb-stage-10:checked) .wb-caption-10 {
    display: grid;
}

/* Without :has() support, show the first stage rather than an empty frame. */
@supports not selector(:has(*)) {
    .wb-screen-1 { display: block; }
    .wb-caption-1 { display: grid; }
}

.wb-caption-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wb-caption-title {
    font-size: 34px;
    line-height: 1;
    text-wrap: balance;
}

.wb-controls {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.wb-controls[hidden] {
    display: none;
}

.wb-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(29, 31, 32, 0.24);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.wb-btn:hover {
    background: rgba(29, 31, 32, 0.06);
}

.wb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--steel-700);
    border-radius: 0;
    background: var(--steel-700);
    color: #f2f2f3;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.wb-toggle:hover {
    background: var(--steel-800);
}

.wb-ico-play,
.wb-text-play,
.wb-player.is-paused .wb-ico-pause,
.wb-player.is-paused .wb-text-pause {
    display: none;
}

.wb-player.is-paused .wb-ico-play {
    display: inline;
}

.wb-player.is-paused .wb-text-play {
    display: inline;
}

.wb-btn:focus-visible,
.wb-toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.wb-desc {
    color: var(--text-2);
    font-size: 17px;
    text-wrap: pretty;
}

.wb-human {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--text);
}

.wb-human-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    text-wrap: pretty;
}

/* The site-wide reduced-motion rule shortens every animation to ~0ms. That is
   right for the ring and pan, but the progress bar is the stage timer, so it
   keeps its real duration, and a panned screen shows its final position at
   once so the highlighted element stays in view. */
@media (prefers-reduced-motion: reduce) {
    .wb-progress {
        animation-duration: var(--wb-dur, 7s) !important;
    }

    .wb-ring {
        animation-delay: 0s !important;
    }
}

/* --- Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Print (the profile page prints as a black-on-white CV) --------------- */

@page {
    margin: 13mm;
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 9.5pt;
        line-height: 1.38;
    }

    .site-header,
    .site-footer,
    .contact,
    .cta-band,
    .skip-link,
    .print-note,
    .no-print,
    .blueprint > .corner {
        display: none !important;
    }

    .field-dark,
    .band-dark,
    .light {
        --color-text: #000000;
        --color-divider: #b8b8b8;
        background: #ffffff;
        color: #000000;
    }

    .container {
        max-width: none;
        padding-inline: 0;
    }

    a,
    .contact-row a {
        border-bottom: 0;
        color: #000000;
        text-decoration: none;
    }

    strong,
    .field-dark strong,
    .accent,
    .kicker,
    .label,
    .field-dark .kicker,
    .role-line-lg,
    .role-dates,
    .role-title,
    .role-text,
    .profile-text,
    .outcome-text,
    .earlier,
    .quals-notes,
    .contact-row {
        color: #000000;
    }

    .page-head {
        padding: 0 0 6pt;
        border-bottom: 1.2pt solid #000000;
    }

    .page-head-inner {
        gap: 3pt;
    }

    .page-head .kicker {
        display: none;
    }

    .name-title {
        font-size: 22pt;
        line-height: 1;
    }

    .name-title br {
        display: none;
    }

    .role-line-lg {
        font-size: 11pt;
    }

    .contact-row {
        gap: 2pt 14pt;
        padding-top: 3pt;
        border-top: 0;
        font-size: 9pt;
    }

    .cv-section,
    .cv-section-last {
        padding: 8pt 0 0;
    }

    .profile-grid {
        display: block;
    }

    .profile-grid > .kicker {
        display: none;
    }

    .profile-statement {
        margin-bottom: 3pt;
        font-size: 12pt;
    }

    .outcomes-heading,
    .cv-head {
        margin-bottom: 4pt;
    }

    .display.h2 {
        font-size: 13pt;
    }

    .outcomes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6pt;
    }

    .outcome {
        gap: 2pt;
        padding: 5pt 7pt;
        break-inside: avoid;
    }

    .outcome .title {
        font-size: 11pt;
    }

    .roles {
        border-top: 1pt solid #000000;
    }

    .role,
    .role-current {
        grid-template-columns: 30mm minmax(0, 1fr);
        gap: 2pt 10pt;
        margin: 0;
        padding: 4pt 0;
        border-bottom: 0.5pt solid #d5d5d5;
        background: none;
        break-inside: avoid;
    }

    .role-dates {
        font-size: 9pt;
    }

    .role-when .tag {
        display: none;
    }

    .role-name,
    .role-current .role-name {
        font-size: 11pt;
    }

    .role-text {
        font-size: 9pt;
    }

    .quals {
        grid-template-columns: repeat(7, auto);
    }

    .quals li {
        padding: 3pt 5pt;
        background: #ffffff;
        font-size: 10pt;
    }

    .quals-notes {
        display: block;
        margin-top: 4pt;
        font-size: 9pt;
    }

    .profile-text {
        font-size: 9.5pt;
    }

    .outcome-text,
    .earlier {
        font-size: 9pt;
    }

    .earlier {
        margin-top: 4pt;
    }

    p,
    li {
        orphans: 2;
        widows: 2;
    }
}

/* Utility: drop the bottom padding when the next section continues the topic. */
.pb-0 {
    padding-bottom: 0;
}

.quals-heading {
    margin-bottom: 28px;
}

/* Four-up hairline grid (approach page: what you supply). */
.cells-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .cells-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .cells-4 {
        grid-template-columns: minmax(0, 1fr);
    }
}
