/* ==========================================================================
   QuadOrigin — site stylesheet
   --------------------------------------------------------------------------
   One file, no build step, no framework. Organised as:
     1. Fonts
     2. Tokens
     3. Reset & base
     4. Layout primitives
     5. Typography blocks
     6. Components
     7. Page-specific blocks
     8. Footer
     9. Responsive
   ========================================================================== */


/* 1. Fonts =============================================================== */
/*
   The display face is a stand-in for GardensC, chosen to match the logo's
   geometric, round-terminal construction. When you have the licensed
   GardensC web files, drop the .woff2 into assets/fonts/ and uncomment the
   @font-face block below: it is already first in --font-display, so the
   swap needs no other change.
*/

/*
@font-face {
    font-family: 'GardensC';
    src: url('../fonts/gardensc-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GardensC';
    src: url('../fonts/gardensc-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*/

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/quicksand-latin-500-normal.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/quicksand-latin-600-normal.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/quicksand-latin-700-normal.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}


/* 2. Tokens ============================================================== */

:root {
    /* Brand teal, built around #105B63 */
    --teal-900: #062A2F;
    --teal-800: #0A3B41;
    --teal-700: #105B63;
    --teal-600: #146E78;
    --teal-500: #1C8994;
    --teal-300: #7FBCC2;
    --teal-200: #B4D7DA;
    --teal-100: #DCEBEC;
    --teal-50:  #EFF6F6;

    /* Warm neutrals — the "natural" half of the palette */
    --paper:    #FBF9F5;
    --paper-2:  #F4F0E8;
    --white:    #FFFFFF;
    --line:     #E4DED1;
    --line-soft:#EFEAE0;

    --ink:      #13272B;
    --ink-soft: #3B5257;
    /* --muted is the lightest text allowed on --paper / --paper-2. Anything
       lighter fails WCAG AA (4.5:1) at the sizes it is used. Measured:
       5.57 on --paper, 5.16 on --paper-2, 5.86 on white. */
    --muted:    #55686C;

    /* --sand is decorative only: rules, dots, borders. It is far too light for
       text (2.7:1). Use --sand-ink for the small ochre labels — 4.98 on
       --paper, 4.61 on --paper-2. */
    --sand:     #C09154;
    --sand-ink: #8F6420;
    --sand-soft:#EADFCB;

    /* Type */
    --font-display: 'GardensC', 'Quicksand', 'Century Gothic', 'Futura', ui-rounded, system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --step--1: 0.875rem;
    --step-0:  1.0625rem;
    --step-1:  1.1875rem;
    --step-2:  clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
    --step-3:  clamp(1.6rem, 1.35rem + 1.1vw, 2.15rem);
    --step-4:  clamp(1.85rem, 1.4rem + 2.1vw, 2.85rem);
    --step-5:  clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

    /* Space */
    --shell:     1180px;
    --gutter:    clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(3.75rem, 7vw, 7rem);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(6, 42, 47, .05), 0 2px 8px rgba(6, 42, 47, .04);
    --shadow:    0 2px 4px rgba(6, 42, 47, .05), 0 12px 28px -12px rgba(6, 42, 47, .16);
    --shadow-lg: 0 24px 60px -28px rgba(6, 42, 47, .35);

    --ease: cubic-bezier(.22, .61, .36, 1);
}


/* 3. Reset & base ======================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 3px;
    border-radius: 3px;
}

::selection { background: var(--teal-200); color: var(--teal-900); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 200;
    padding: .7rem 1.1rem;
    background: var(--teal-700);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

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


/* 4. Layout primitives =================================================== */

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

.section {
    position: relative;
    padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--paper { background: var(--paper-2); }

.section--dark {
    background: var(--teal-800);
    color: #E8F1F1;
    background-image:
        radial-gradient(120% 90% at 85% -10%, rgba(28, 137, 148, .38), transparent 60%),
        radial-gradient(90% 70% at 5% 110%, rgba(6, 42, 47, .55), transparent 60%);
}
.section--dark .section__title { color: #fff; }
.section--dark .section__lede { color: #BBD6D8; }

.section__head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section__head--tight { margin-bottom: 2rem; }

.section__title { font-size: var(--step-4); }
.section__lede {
    margin-top: 1rem;
    font-size: var(--step-1);
    color: var(--ink-soft);
    line-height: 1.6;
    text-wrap: pretty;
}

.section__foot { margin-top: clamp(2rem, 3.5vw, 3rem); }
.section__foot--muted { color: var(--muted); font-size: var(--step--1); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.split__lead { position: sticky; top: 7rem; }
.split__body > * + * { margin-top: 1.15rem; }


/* 5. Typography blocks =================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal-600);
}
.eyebrow--dot::before {
    content: '';
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: var(--sand);
    flex: none;
}
.eyebrow--light { color: var(--teal-300); }

.prose {
    color: var(--ink-soft);
    line-height: 1.72;
    text-wrap: pretty;
}
.prose--lead {
    font-size: var(--step-1);
    color: var(--ink);
    line-height: 1.62;
}
.section--dark .prose { color: #C4DCDE; }
.section--dark .prose--lead { color: #EAF4F4; }

.ticks { margin-top: 1.75rem; display: grid; gap: .85rem; }
.ticks--two { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .85rem 2rem; }
.ticks li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    color: var(--ink-soft);
    font-size: var(--step--1);
    line-height: 1.55;
}
.ticks .icon {
    width: 1.15rem; height: 1.15rem;
    margin-top: .18rem;
    color: var(--teal-600);
    stroke-width: 2.1;
    flex: none;
}

.icon { width: 1.25rem; height: 1.25rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--teal-700);
    text-decoration: none;
    border-bottom: 2px solid var(--teal-200);
    padding-bottom: .15rem;
    transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: var(--teal-600); gap: .75rem; }
.link-arrow .icon { width: 1.05rem; height: 1.05rem; }

.disclaimer {
    margin-top: 2.5rem;
    padding: 1.1rem 1.25rem;
    border-left: 3px solid var(--sand);
    background: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted);
    font-size: var(--step--1);
    line-height: 1.6;
}

.editor-note {
    margin-block: 1.5rem 0;
    padding: .9rem 1.1rem;
    background: #FFF6E2;
    border: 1px solid #E8CE9A;
    border-radius: var(--radius-sm);
    color: #6C4C12;
    font-size: var(--step--1);
    line-height: 1.55;
}
.editor-note code { font-size: .95em; background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 4px; }


/* 6. Components ========================================================== */

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: .005em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), transform .2s var(--ease),
                box-shadow .2s var(--ease);
}
.btn .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--teal-700);
    color: #fff;
    box-shadow: 0 1px 2px rgba(6,42,47,.18), 0 10px 22px -14px rgba(6,42,47,.9);
}
.btn--primary:hover { background: var(--teal-600); }

.btn--ghost {
    background: transparent;
    color: var(--teal-800);
    border-color: var(--teal-200);
}
.btn--ghost:hover { border-color: var(--teal-600); background: var(--teal-50); }

.btn--light {
    background: #fff;
    color: var(--teal-800);
}
.btn--light:hover { background: var(--teal-50); }

.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 245, .82);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header[data-scrolled] {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -20px rgba(6,42,47,.6);
    background: rgba(251, 249, 245, .93);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.75rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
/* The logo is an <img> pointing at an SVG, so its colour is baked into
   assets/img/logo.svg (brand teal) and logo-light.svg (white). */
.brand__mark { width: auto; height: 1.85rem; }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(.35rem, 1.4vw, 1.25rem);
}
.site-nav__link {
    display: inline-block;
    position: relative;
    padding: .5rem .25rem;
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .18s var(--ease);
}
.site-nav__link::after {
    content: '';
    position: absolute;
    left: .25rem; right: .25rem; bottom: .18rem;
    height: 2px;
    border-radius: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
}
.site-nav__link:hover { color: var(--teal-700); }
.site-nav__link:hover::after,
.site-nav__link.is-current::after { transform: scaleX(1); }
.site-nav__link.is-current { color: var(--teal-800); }
.site-nav__cta { margin-left: .6rem; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 1.15rem; }
.nav-toggle__bars span {
    display: block; height: 2px; border-radius: 2px;
    background: var(--teal-800);
    transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* --- Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(75% 60% at 12% 0%, var(--teal-50), transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--paper-2) 100%);
}
.hero__rings {
    position: absolute;
    top: 50%; right: -14%;
    width: min(46rem, 62vw);
    aspect-ratio: 1;
    transform: translateY(-50%);
    color: var(--teal-300);
    opacity: .3;
    pointer-events: none;
}
.hero__rings svg { width: 100%; height: 100%; }

.hero__inner { position: relative; }
.hero__title {
    max-width: 18ch;
    font-size: var(--step-5);
    letter-spacing: -0.025em;
}
.hero__lede {
    max-width: 46ch;
    margin-top: 1.5rem;
    font-size: clamp(1.0625rem, 1rem + .45vw, 1.3rem);
    line-height: 1.6;
    color: var(--ink-soft);
    text-wrap: pretty;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.25rem;
}

.proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
    gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
    max-width: 46rem;
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    padding-top: clamp(1.75rem, 3vw, 2.25rem);
    border-top: 1px solid var(--line);
}
/* Narrower track and tighter gap: this variant lives inside a half-width
   column, where the hero's sizing would drop it to two-plus-one. */
.proof--inline {
    grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
    gap: 1.25rem 1.75rem;
    margin-top: 2.25rem;
    border-top-color: rgba(180, 215, 218, .25);
}
/* Column layout with the label pushed down, so labels sit on a shared
   baseline whether or not a value wrapped to two lines. */
.proof__item { display: flex; flex-direction: column; }
.proof__value {
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: 700;
    color: var(--teal-700);
    line-height: 1.1;
}
.proof__label {
    margin: 0;
    margin-top: auto;
    padding-top: .4rem;
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--muted);
}
.section--dark .proof__value { color: #fff; }
.section--dark .proof__label { color: var(--teal-300); }


/* --- Page hero ---------------------------------------------------------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(70% 100% at 90% 0%, var(--teal-50), transparent 65%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero__rings {
    position: absolute;
    top: -30%; right: -8%;
    width: min(30rem, 50vw);
    aspect-ratio: 1;
    color: var(--teal-300);
    opacity: .26;
    pointer-events: none;
}
.page-hero__inner { position: relative; }
.page-hero__title { max-width: 20ch; font-size: var(--step-4); letter-spacing: -0.022em; }
.page-hero__lede {
    max-width: 58ch;
    margin-top: 1.25rem;
    font-size: var(--step-1);
    line-height: 1.62;
    color: var(--ink-soft);
    text-wrap: pretty;
}


/* --- Cards -------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.cards--two { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }

.card {
    position: relative;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--teal-200);
}
.card--plain:hover { transform: none; box-shadow: var(--shadow-sm); }

.card__icon {
    display: grid;
    place-items: center;
    width: 2.75rem; height: 2.75rem;
    margin-bottom: 1.15rem;
    border-radius: 12px;
    background: var(--teal-50);
    color: var(--teal-700);
}
.card__icon .icon { width: 1.4rem; height: 1.4rem; }

.card__title { font-size: var(--step-1); letter-spacing: -0.01em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card:hover .card__title { color: var(--teal-700); }

.card__body {
    margin-top: .65rem;
    font-size: var(--step--1);
    line-height: 1.62;
    color: var(--ink-soft);
    text-wrap: pretty;
}


/* --- Platforms (home strip) --------------------------------------------- */

.platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 100%), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.platform {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    background: var(--white);
    transition: background-color .2s var(--ease);
}
.platform:hover { background: var(--teal-50); }
.platform--muted { background: var(--paper); }
.platform__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--teal-800);
    letter-spacing: -0.01em;
}
/* Pushed to the bottom so the second line stays on one baseline across the
   strip, whether or not the platform name wrapped to two lines. */
.platform__kind {
    margin-top: auto;
    padding-top: .35rem;
    font-size: .8125rem;
    color: var(--muted);
}


/* --- Chips / stack ------------------------------------------------------ */

.stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stack__heading {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .9rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    padding: .38rem .75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
}
.chips--sm .chip { padding: .28rem .6rem; font-size: .75rem; }
.section--dark .chip {
    background: rgba(255,255,255,.06);
    border-color: rgba(180,215,218,.25);
    color: #CFE4E5;
}


/* --- CTA band ----------------------------------------------------------- */

.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5rem);
    background: var(--teal-700);
    background-image: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 55%, var(--teal-900) 100%);
    color: #fff;
}
.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-band__text { max-width: 38rem; }
.cta-band__title { font-size: var(--step-3); color: #fff; }
.cta-band__body { margin-top: .75rem; color: #B9D6D9; line-height: 1.6; text-wrap: pretty; }
.cta-band__actions { display: grid; gap: .75rem; justify-items: start; }
.cta-band__mail { font-size: .8125rem; color: #9FC7CB; text-decoration: none; border-bottom: 1px solid rgba(159,199,203,.4); }
.cta-band__mail:hover { color: #fff; border-color: #fff; }
.cta-band__mark {
    position: absolute;
    right: -3rem; bottom: -5rem;
    width: 20rem; height: 20rem;
    opacity: .07;
    pointer-events: none;
}


/* --- Notices & forms ---------------------------------------------------- */

.notice {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    margin-bottom: 1.75rem;
}
.notice--success {
    border-color: var(--teal-200);
    background: var(--teal-50);
}
.notice--error {
    border-color: #E3B6AC;
    background: #FDF2EF;
}
.notice__title { font-size: var(--step-2); color: var(--teal-800); }
.notice__body { margin-top: .5rem; color: var(--ink-soft); line-height: 1.6; }
.notice--error .notice__body { color: #8A3E29; margin-top: 0; }
.notice__actions { margin-top: 1.25rem; }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1.25rem; }

.field { display: grid; gap: .4rem; }
.field__label {
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    color: var(--ink);
}
.field__label span[aria-hidden] { color: var(--sand-ink); }
.field__hint { font-weight: 500; color: var(--muted); font-size: .8125rem; }

.field__input {
    width: 100%;
    padding: .8rem .95rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: var(--step--1);
    line-height: 1.5;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field__input::placeholder { color: #76898D; }
.field__input:hover { border-color: var(--teal-200); }
.field__input:focus {
    outline: none;
    border-color: var(--teal-600);
    box-shadow: 0 0 0 3px rgba(16, 91, 99, .13);
}
.field__input--area { resize: vertical; min-height: 9rem; }
.field__input--select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23647A7E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .95rem center;
    padding-right: 2.75rem;
}
.field--invalid .field__input { border-color: #C96A4C; background: #FEF8F6; }
.field__error { font-size: .8125rem; color: #A9492C; }

.field--check { gap: .3rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; cursor: pointer; }
.check input {
    width: 1.15rem; height: 1.15rem;
    margin-top: .22rem;
    accent-color: var(--teal-700);
    flex: none;
}
.check span { font-size: .875rem; line-height: 1.55; color: var(--ink-soft); }

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: .5rem;
}
.form__note { font-size: .8125rem; color: var(--muted); max-width: 28rem; line-height: 1.5; }

/* Honeypot: off-screen, never focusable, never announced. */
.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}


/* 7. Page-specific blocks =============================================== */

/* --- Services ----------------------------------------------------------- */

.jumpnav {
    position: sticky;
    top: 4.75rem;
    z-index: 50;
    background: rgba(251, 249, 245, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.jumpnav__list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-block: .9rem;
    scrollbar-width: none;
}
.jumpnav__list::-webkit-scrollbar { display: none; }
.jumpnav__list a {
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s var(--ease);
}
.jumpnav__list a:hover { color: var(--teal-700); }

.service { padding-block: clamp(3rem, 5.5vw, 5rem); }
.service--paper { background: var(--paper-2); }
.service__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.75rem, 5vw, 5rem);
    align-items: start;
}
.service__lead { position: sticky; top: 8.5rem; }
.service__icon {
    display: grid;
    place-items: center;
    width: 3rem; height: 3rem;
    border-radius: 14px;
    background: var(--teal-700);
    color: #fff;
    margin-bottom: 1.25rem;
}
.service__icon .icon { width: 1.5rem; height: 1.5rem; }
.service__number {
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--sand-ink);
    margin-bottom: .5rem;
}
.service__title { font-size: var(--step-3); }
.service__summary {
    margin-top: .9rem;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: var(--step--1);
    text-wrap: pretty;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 1px;
    background: rgba(180, 215, 218, .22);
    border: 1px solid rgba(180, 215, 218, .22);
    border-radius: var(--radius);
    overflow: hidden;
}
.step { padding: clamp(1.5rem, 2.5vw, 2rem); background: rgba(6, 42, 47, .25); }
.step__n {
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--teal-300);
    margin-bottom: .85rem;
}
.step__title { font-size: var(--step-1); color: #fff; }
.step__body { margin-top: .6rem; font-size: .875rem; line-height: 1.65; color: #B4D0D2; text-wrap: pretty; }


/* --- Integrations ------------------------------------------------------- */

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.platform-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--teal-700);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.platform-card--muted { border-top-color: var(--sand); background: var(--paper); }
.platform-card__kind {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.platform-card__name { margin-top: .35rem; font-size: var(--step-2); }
.platform-card__body {
    margin-top: .8rem;
    flex: 1;
    font-size: var(--step--1);
    line-height: 1.65;
    color: var(--ink-soft);
    text-wrap: pretty;
}
.platform-card .chips { margin-top: 1.25rem; }

/* Flow diagram */
.flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2.25rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.flow__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: .85rem;
}
.flow__label--core { color: #fff; text-align: center; }
.flow__nodes { display: grid; gap: .5rem; }
.flow__nodes li {
    padding: .7rem .9rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(180,215,218,.28);
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    color: #DCEBEC;
    text-align: center;
}

.flow__core {
    position: relative;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(180,215,218,.35);
    border-radius: var(--radius);
}
.flow__core::before,
.flow__core::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(.6rem, 2vw, 1.6rem);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-300));
}
.flow__core::before { right: 100%; }
.flow__core::after {
    left: 100%;
    background: linear-gradient(90deg, var(--teal-300), transparent);
}

.flow__stages { display: grid; gap: .5rem; }
.flow__stages li {
    position: relative;
    padding: .7rem .95rem;
    background: rgba(6, 42, 47, .4);
    border: 1px solid rgba(180,215,218,.2);
    border-radius: 10px;
}
.flow__stages li + li::before {
    content: '';
    position: absolute;
    left: 50%; top: -.42rem;
    width: 1px; height: .34rem;
    background: var(--teal-300);
    opacity: .6;
}
.flow__stages span {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9375rem;
    color: #fff;
}
.flow__stages small { display: block; margin-top: .1rem; font-size: .75rem; color: var(--teal-300); }
.flow__trace {
    margin-top: .85rem;
    text-align: center;
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--teal-300);
}

.legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(180,215,218,.22);
}
.legend__title { font-size: var(--step-0); color: #fff; }
.legend__body { margin-top: .45rem; font-size: .8125rem; line-height: 1.6; color: #A9C7CA; text-wrap: pretty; }


/* --- Customers ---------------------------------------------------------- */

.cases { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.case {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.case__meta { border-left: 3px solid var(--teal-200); padding-left: 1.1rem; }
.case__sector { font-family: var(--font-display); font-weight: 700; color: var(--teal-800); line-height: 1.3; }
.case__region { margin-top: .2rem; font-size: .8125rem; color: var(--muted); }
.case__stack { margin-top: 1rem; }

.case__title { font-size: var(--step-2); }
.case__block { margin-top: 1.35rem; }
.case__block p { color: var(--ink-soft); line-height: 1.68; font-size: var(--step--1); text-wrap: pretty; }
.case__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
    font-family: var(--font-body);
}
.case__block--outcome {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--teal-50);
    border-radius: var(--radius-sm);
}
.case__block--outcome .case__label { color: var(--teal-700); }
.case__block--outcome p { color: var(--teal-900); }


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

/* Two columns on desktop so the four values form a clean 2x2 rather than
   3 + 1 orphan. */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.value { padding-top: 1.25rem; border-top: 2px solid var(--teal-200); }
.value__n {
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--sand-ink);
    margin-bottom: .6rem;
}
.value__title { font-size: var(--step-1); }
.value__body { margin-top: .6rem; font-size: var(--step--1); line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }

.roles {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem clamp(1.25rem, 2.5vw, 1.75rem);
    border-bottom: 1px solid var(--line-soft);
}
.role:last-child { border-bottom: 0; }
.role__title { font-size: var(--step-1); }
.role__detail { margin-top: .25rem; font-size: .875rem; color: var(--muted); }


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

.contact {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.contact__title { font-size: var(--step-3); margin-bottom: 1.5rem; }
.contact__aside-title { font-size: var(--step-2); margin-bottom: 1.25rem; }
.contact__aside {
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.details { display: grid; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: start;
    font-size: var(--step--1);
    line-height: 1.55;
    color: var(--ink-soft);
}
.detail__icon { color: var(--teal-600); margin-top: .1rem; }
.detail a { color: var(--teal-700); font-weight: 500; }

.faq { display: grid; gap: 1.25rem; padding-top: 1.5rem; }
.faq__q { font-size: .9375rem; color: var(--teal-800); }
.faq__a { margin-top: .35rem; font-size: .8125rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }


/* --- Legal & error ------------------------------------------------------ */

.legal { max-width: 46rem; }
.legal__title { font-size: var(--step-4); }
.legal__updated { margin-top: .5rem; font-size: .8125rem; color: var(--muted); margin-bottom: 2rem; }
.legal__section { margin-top: 2.25rem; }
.legal__heading { font-size: var(--step-2); margin-bottom: .6rem; }
.legal a { color: var(--teal-700); }

.error-page {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 10vw, 9rem);
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.error-page__rings {
    position: absolute;
    top: 50%; left: 50%;
    width: min(40rem, 85vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    color: var(--teal-300);
    opacity: .17;
    pointer-events: none;
}
.error-page__inner { position: relative; text-align: center; }
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--teal-200);
}
.error-page__title { margin-top: .75rem; font-size: var(--step-4); }
.error-page__lede {
    max-width: 44ch;
    margin: 1rem auto 0;
    color: var(--ink-soft);
    line-height: 1.6;
    text-wrap: pretty;
}
.error-page .hero__actions { justify-content: center; }


/* 8. Footer ============================================================== */

.site-footer {
    background: var(--teal-900);
    color: #A9C7CA;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    font-size: .875rem;
}
.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(169, 199, 202, .18);
}
/* Same file as the header logo, rendered white. */
.site-footer__logo { width: auto; height: 1.7rem; filter: brightness(0) invert(1); opacity: .92; }
.site-footer__tagline { margin-top: 1.1rem; max-width: 28ch; line-height: 1.6; color: #8FB3B7; }
.site-footer__meta { margin-top: 1rem; font-size: .8125rem; color: #6E9599; }

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
    gap: 2rem;
}
.site-footer__heading {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}
.site-footer__list { display: grid; gap: .6rem; }
.site-footer__list a { text-decoration: none; color: #A9C7CA; transition: color .18s var(--ease); }
.site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer__plain { color: #6E9599; font-size: .8125rem; }

.site-footer__social { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.1rem; }
.site-footer__social a { font-size: .8125rem; color: var(--teal-300); text-decoration: none; border-bottom: 1px solid rgba(127,188,194,.35); }
.site-footer__social a:hover { color: #fff; border-color: #fff; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    font-size: .8125rem;
    color: #6E9599;
}
.site-footer__legal { display: flex; gap: 1.25rem; }
.site-footer__legal a { color: #6E9599; text-decoration: none; }
.site-footer__legal a:hover { color: #fff; }


/* 9. Responsive ========================================================== */

@media (max-width: 1024px) {
    .split,
    .service__inner,
    .case,
    .contact,
    .site-footer__top {
        grid-template-columns: minmax(0, 1fr);
    }
    .split__lead,
    .service__lead { position: static; }
    .case__meta {
        border-left: 0;
        border-top: 3px solid var(--teal-200);
        padding-left: 0;
        padding-top: 1rem;
    }
    .flow { grid-template-columns: minmax(0, 1fr); }
    .flow__core::before, .flow__core::after { display: none; }
    .flow__nodes { grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); display: grid; }
}

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

    .site-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .site-nav[data-open] { display: block; }
    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .75rem var(--gutter) 1.5rem;
    }
    .site-nav__list li { border-bottom: 1px solid var(--line-soft); }
    .site-nav__list li:last-child { border-bottom: 0; }
    .site-nav__link { display: block; padding: .95rem .25rem; font-size: 1.05rem; }
    .site-nav__link::after { display: none; }
    .site-nav__cta { margin: 1rem 0 0; }
    .site-nav__cta .btn { width: 100%; padding-block: .85rem; }

    .jumpnav { top: 4.75rem; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    :root { --step-0: 1rem; }
    .hero__rings { right: -30%; opacity: .22; }
    .proof { gap: 1.25rem; }
    .role { flex-direction: column; align-items: flex-start; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media print {
    .site-header, .site-footer, .cta-band, .jumpnav, .nav-toggle, .hero__rings, .page-hero__rings { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding-block: 1.5rem; }
}


/* 10. Added blocks ======================================================= */

/* --- Engagement models (services page) ---------------------------------- */

.models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.model {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--teal-700);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.model:nth-child(2) { border-top-color: var(--teal-500); }
.model:nth-child(3) { border-top-color: var(--sand); }
.model__title { font-size: var(--step-2); }
.model__body {
    margin-top: .75rem;
    font-size: var(--step--1);
    line-height: 1.65;
    color: var(--ink-soft);
    text-wrap: pretty;
}
/* Push the tick list to the card foot so the three cards align. */
.model .ticks { margin-top: auto; padding-top: 1.5rem; }

/* --- Client logo wall (customers page) ---------------------------------- */
/* Only renders when customers.logos has entries — which needs each client's
   written permission. See the note in config/content.php. */

.logo-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4.5rem);
}
/* A fixed height with width:auto, not max-height: a replaced element sized
   only by max-height inside a nested flex container resolves to 0x0 in
   Chromium, which silently hides the whole wall. */
.logo-wall__item img {
    width: auto;
    height: 2.25rem;
    max-width: 11rem;
    object-fit: contain;
    object-position: center;
    /* Desaturated so a wall of competing brand colours does not shout over
       the page. Full colour on hover. */
    filter: grayscale(1);
    opacity: .62;
    transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logo-wall__item img:hover { filter: grayscale(0); opacity: 1; }
.logo-wall__note {
    margin-top: 1.75rem;
    text-align: center;
    font-size: .8125rem;
    color: var(--muted);
}
