/*
 * callcentre.co.ke — marketing site
 *
 * Blue and green carry the page. Blue is the product's own navy; green is its
 * accent, and the two meet in a gradient used on the hero, the dark bands and
 * every primary action — so the scheme reads as one idea rather than two
 * colours sitting next to each other.
 */

:root {
    /* Blue — the spine of the palette. */
    --blue-900:  #08203A;
    --blue-800:  #0C2B47;
    --blue-700:  #123F66;
    --blue-600:  #17568C;
    --blue-500:  #1B6FA8;
    --blue-200:  #BBD9EC;
    --blue-050:  #EAF3F9;

    /* Green — the accent, and half of every gradient. */
    --green-800: #0A5B4A;
    --green-700: #0F7A63;
    --green-600: #13957A;
    --green-500: #17A67F;
    --green-200: #A8E4CE;
    --green-050: #E8F7F1;

    --ink:       #08203A;
    --ink-soft:  #33566F;
    --muted:     #6A8496;

    --paper:     #F2F7FA;
    --card:      #FFFFFF;
    --rule:      #D8E5EE;

    /* Kept for one job only: something live or waiting. */
    --signal:    #E8A33D;

    --sweep:      linear-gradient(135deg, var(--blue-700) 0%, var(--green-700) 100%);
    --sweep-deep: linear-gradient(140deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--green-800) 100%);

    --measure:   68ch;
    --gutter:    clamp(20px, 5vw, 64px);
    --spine:     132px;

    --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.024em;
    line-height: 1.12;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 160ms var(--ease); }
a:hover { color: var(--blue-600); }

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

.skip { position: absolute; left: -9999px; background: var(--blue-800); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.num, .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ----------------------------------------------------------------- spine */

.spine { display: grid; grid-template-columns: var(--spine) 1fr; gap: 0 32px; }

.spine__label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-700);
    padding-top: 0.6em;
}

/* A short rule under each section label, in the gradient. Small, but it ties
   every section back to the same two colours. */
.spine__label::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    margin-top: 10px;
    background: var(--sweep);
}

@media (max-width: 820px) {
    .spine { grid-template-columns: 1fr; gap: 10px; }
    .spine__label { padding-top: 0; }
}

/* ------------------------------------------------------------------- nav */

.masthead {
    position: sticky; top: 0; z-index: 40;
    background: rgba(242, 247, 250, 0.9);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow 200ms var(--ease);
}
.masthead.is-stuck { box-shadow: 0 6px 24px rgba(8, 32, 58, 0.09); }

.masthead__in { display: flex; align-items: center; gap: 18px; padding: 13px 0; position: relative; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { display: block; transition: transform 300ms var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }

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

.nav a {
    position: relative;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 13px;
    border-radius: 6px;
    transition: color 160ms var(--ease);
}

/* The underline grows from the middle out on hover. */
.nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--sweep);
    transform: scaleX(0);
    transition: transform 240ms var(--ease);
}
.nav a:not(.btn):hover { color: var(--blue-700); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }

.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 7px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
    .nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        background: var(--card);
        border-bottom: 1px solid var(--rule);
        padding: 8px var(--gutter) 16px;
        box-shadow: 0 14px 30px rgba(8, 32, 58, 0.12);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; border-radius: 7px; }
    .nav__toggle { display: block; }
}

/* --------------------------------------------------------------- buttons */

.btn {
    position: relative;
    display: inline-block;
    background: var(--blue-700);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 13px 24px;
    font: inherit;
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
    box-shadow: 0 2px 10px rgba(18, 63, 102, 0.18);
}

/* The green half of the gradient washes across on hover. */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sweep);
    opacity: 0;
    transition: opacity 260ms var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 122, 99, 0.3); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--go { background: var(--green-700); box-shadow: 0 2px 10px rgba(15, 122, 99, 0.22); }

.btn--ghost { background: transparent; color: var(--blue-700); box-shadow: none; border: 1.5px solid var(--blue-200); }
.btn--ghost:hover { color: #fff; border-color: transparent; }

/*
 * On a dark surface the navy text disappears into the background. Scoped to
 * the surface rather than fixed per button, so a ghost button dropped onto a
 * dark band later is legible without anybody remembering this.
 */
.hero .btn--ghost,
.band--ink .btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.hero .btn--ghost::before,
.band--ink .btn--ghost::before { background: #fff; }
.hero .btn--ghost:hover,
.band--ink .btn--ghost:hover { color: var(--blue-900); border-color: transparent; }

.btn--light { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.36); box-shadow: none; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--blue-900); }

.btn--wide { display: block; text-align: center; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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

.hero {
    position: relative;
    padding: clamp(52px, 8vw, 100px) 0 clamp(64px, 8vw, 108px);
    background: var(--sweep-deep);
    color: #fff;
    overflow: hidden;
}

.hero h1 { color: #fff; }
.hero p { color: #C9E2EE; }

/* Two soft washes of colour behind the text — the only ornament on the page
   that is purely atmosphere. */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: var(--green-500); top: -170px; right: -120px; }
.hero::after  { width: 380px; height: 380px; background: var(--blue-500); bottom: -160px; left: -110px; }

@media (prefers-reduced-motion: no-preference) {
    .hero::before { animation: drift 18s ease-in-out infinite alternate; }
    .hero::after  { animation: drift 22s ease-in-out infinite alternate-reverse; }
    @keyframes drift {
        from { transform: translate3d(0, 0, 0) scale(1); }
        to   { transform: translate3d(-40px, 30px, 0) scale(1.12); }
    }
}

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--green-200);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 15px; border-radius: 100px; margin-bottom: 22px;
}

/* A live dot, because the subject is a phone system. */
.hero__eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green-500);
}
@media (prefers-reduced-motion: no-preference) {
    .hero__eyebrow::before { animation: pulse 2.4s ease-out infinite; }
    @keyframes pulse {
        0%   { box-shadow: 0 0 0 0 rgba(23, 166, 127, 0.65); }
        70%  { box-shadow: 0 0 0 11px rgba(23, 166, 127, 0); }
        100% { box-shadow: 0 0 0 0 rgba(23, 166, 127, 0); }
    }
}

.hero__lede { font-size: clamp(1.06rem, 1.9vw, 1.3rem); max-width: 56ch; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14.5px; color: #A9CEE0; }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof span::before { content: "\2713"; color: var(--green-200); font-weight: 700; }

/* Inner pages get a shorter hero with the same gradient. */
.hero--page { padding: clamp(44px, 6vw, 78px) 0 clamp(48px, 6vw, 84px); }

/* The curved edge where the hero meets the page below it. */
.hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 54px; display: block; }

/* ------------------------------------------------------------- call path */

.path {
    margin-top: 44px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 26px 22px 18px;
    backdrop-filter: blur(6px);
}
.path svg { width: 100%; height: auto; display: block; }

.path__legend {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11.5px; letter-spacing: 0.06em; color: #9DC4D8; text-transform: uppercase;
}
.path__legend span { display: inline-flex; align-items: center; gap: 7px; }
.path__legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }

@media (prefers-reduced-motion: no-preference) {
    .path__dot {
        offset-path: path("M 60 96 H 148 V 52 H 332 V 96 H 516 V 140 H 780");
        animation: travel 8s ease-in-out infinite;
    }
    @keyframes travel {
        0%   { offset-distance: 0%;   opacity: 0; }
        5%   { opacity: 1; }
        95%  { opacity: 1; }
        100% { offset-distance: 100%; opacity: 0; }
    }

    /* The line draws itself in once, then stays. */
    .path__line { stroke-dasharray: 460; stroke-dashoffset: 460; animation: draw 2.4s var(--ease) forwards; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* --------------------------------------------------------------- section */

.band { padding: clamp(54px, 7vw, 92px) 0; position: relative; }
.band--card { background: var(--card); }
.band--tint { background: linear-gradient(180deg, var(--blue-050) 0%, var(--paper) 100%); }
.band--ink { background: var(--sweep-deep); color: #fff; overflow: hidden; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink p { color: #C0DCE9; }
.band--ink .spine__label { color: var(--green-200); }
.band--ink a { color: var(--green-200); }
.band--ink a:hover { color: #fff; }

.lead-in { max-width: 62ch; font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: var(--ink-soft); }
.band--ink .lead-in { color: #C0DCE9; }

/* ------------------------------------------------------------------ grid */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.tile {
    position: relative;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 24px 22px;
    overflow: hidden;
    transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

/* A gradient edge that arrives on hover, so a card lifts into the palette
   rather than just moving. */
.tile::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--sweep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 320ms var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(8, 32, 58, 0.11); border-color: transparent; }
.tile:hover::before { transform: scaleX(1); }

.band--card .tile { background: var(--paper); }
.band--ink .tile { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.band--ink .tile:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); }

.tile h3 { margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ink-soft); margin-bottom: 0; }
.band--ink .tile p { color: #C0DCE9; }

.tile__tag { display: block; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 10px; }
.band--ink .tile__tag { color: var(--green-200); }

/* ------------------------------------------------------------------ icon */

.icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--blue-050), var(--green-050));
    color: var(--blue-700);
    transition: background 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.icon svg { width: 23px; height: 23px; display: block; }

.tile:hover .icon { background: var(--sweep); color: #fff; transform: scale(1.06) rotate(-4deg); }

.band--ink .icon { background: rgba(255, 255, 255, 0.12); color: var(--green-200); }
.band--ink .tile:hover .icon { background: var(--green-600); color: #fff; }

/* Inline icon beside a feature heading. */
.icon--inline { width: 34px; height: 34px; border-radius: 9px; margin: 0; flex: 0 0 auto; }
.icon--inline svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- feature */

.feature { border-top: 1px solid var(--rule); padding: 30px 0; transition: border-color 260ms var(--ease); }
.feature:hover { border-color: var(--green-200); }
.feature:hover .icon--inline { background: var(--sweep); color: #fff; }
.feature h3 { display: flex; align-items: center; gap: 13px; }
.feature ul { margin: 0; padding-left: 0; max-width: var(--measure); list-style: none; }
.feature li { position: relative; margin-bottom: 8px; padding-left: 27px; font-size: 15.5px; color: var(--ink-soft); }

/* A tick in the accent green instead of a bullet. */
.feature li::before {
    content: "";
    position: absolute; left: 3px; top: 9px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--green-600);
    border-bottom: 2px solid var(--green-600);
    transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- steps */

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(8, 32, 58, 0.1); }

/* Numbered because setting one up genuinely is a sequence. */
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px; letter-spacing: 0.1em;
    color: #fff;
    background: var(--sweep);
    padding: 5px 12px; border-radius: 100px;
    display: inline-block; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); margin-bottom: 0; }

/* ----------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat { padding: 20px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); }
.stat__value { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 500; color: #fff; line-height: 1.1; }
.stat__label { font-size: 13.5px; color: #A9CEE0; margin-top: 6px; }

/* ----------------------------------------------------------------- board */

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
@media (max-width: 720px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.board__cell {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--green-500);
    border-radius: 10px;
    padding: 16px 18px;
    transition: transform 240ms var(--ease), background 240ms var(--ease);
}
.board__cell:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); }
.board__cell--wait { border-left-color: var(--signal); }
.board__cell--long { border-left-color: #E0705C; }

.board__label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #9DC4D8; }
.board__value { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 500; color: #fff; line-height: 1.15; margin-top: 4px; }

/* ------------------------------------------------------------------- faq */

.qa { border-top: 1px solid var(--rule); padding: 22px 0; transition: border-color 240ms var(--ease); }
.qa:hover { border-color: var(--green-200); }
.qa h3 { margin-bottom: 8px; display: flex; align-items: flex-start; gap: 11px; }
.qa h3::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--sweep); }
.qa p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 0; }

/* --------------------------------------------------------------- contact */

.card-plain {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 28px 26px;
    transition: box-shadow 260ms var(--ease), transform 260ms var(--ease);
}
.card-plain:hover { box-shadow: 0 18px 38px rgba(8, 32, 58, 0.1); transform: translateY(-3px); }

.contact-list { margin: 0; }
.contact-row { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.contact-row:first-of-type { border-top: 0; padding-top: 0; }
.contact-row dt { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); min-width: 100px; }
.contact-row dd { margin: 0; font-size: 17px; }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--blue-900); color: #A8C4D6; padding: 58px 0 32px; font-size: 15px; position: relative; }

/* One gradient hairline along the top, tying the footer to everything else. */
.foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sweep); }

.foot h4 { color: #fff; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; margin-bottom: 14px; }
.foot a { color: #A8C4D6; text-decoration: none; transition: color 160ms var(--ease), padding-left 200ms var(--ease); }
.foot a:hover { color: var(--green-200); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot li a:hover { padding-left: 4px; }
.foot p { color: #A8C4D6; }
.foot__base { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: #7C9BB0; display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* --------------------------------------------------------------- reveal */

@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
    .reveal.is-in { opacity: 1; transform: none; }

    /* Cards arrive one after another rather than all at once. */
    .reveal.is-in .tile,
    .reveal.is-in .step { animation: rise 560ms var(--ease) both; }
    .reveal.is-in .tile:nth-child(2), .reveal.is-in .step:nth-child(2) { animation-delay: 70ms; }
    .reveal.is-in .tile:nth-child(3), .reveal.is-in .step:nth-child(3) { animation-delay: 140ms; }
    .reveal.is-in .tile:nth-child(4) { animation-delay: 210ms; }
    .reveal.is-in .tile:nth-child(5) { animation-delay: 280ms; }
    .reveal.is-in .tile:nth-child(6) { animation-delay: 350ms; }
    .reveal.is-in .tile:nth-child(7) { animation-delay: 420ms; }
    .reveal.is-in .tile:nth-child(8) { animation-delay: 490ms; }

    @keyframes rise {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: none; }
    }
}

.mt0 { margin-top: 0; }
.tight { margin-bottom: 0; }

/* ------------------------------------------------------------------ post */

/*
 * Article typography. Wider leading and a narrower measure than the marketing
 * pages, because this is text somebody reads rather than scans.
 */
.post { max-width: 68ch; }
.post h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 42px 0 14px; }
.post h2:first-child { margin-top: 0; }
.post h3 { font-size: 1.12rem; margin: 30px 0 10px; color: var(--blue-700); }
.post p { font-size: 17px; line-height: 1.75; margin-bottom: 1.15em; }
.post ul { margin: 0 0 1.3em; }
.post li { position: relative; padding-left: 27px; margin-bottom: 11px; font-size: 16.5px; line-height: 1.68; color: var(--ink-soft); }
.post li::before {
    content: "";
    position: absolute; left: 3px; top: 10px;
    width: 11px; height: 6px;
    border-left: 2px solid var(--green-600);
    border-bottom: 2px solid var(--green-600);
    transform: rotate(-45deg);
}
.post .tile { background: linear-gradient(135deg, var(--blue-050), var(--green-050)); border-color: var(--blue-200); }
.post .tile p:last-child { margin-bottom: 0; }
.post em { color: var(--ink); }

/* --------------------------------------------------------------- figures */

/*
 * Illustrations. Drawn rather than photographed, which is a deliberate choice:
 * an SVG is a few kilobytes, stays sharp on any screen, and cannot look like a
 * stock photograph of somebody else's office.
 */
.figure { margin: 34px 0; }
.figure svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: var(--measure); }

.figure--framed svg { background: var(--card); border: 1px solid var(--rule); padding: 18px; }
.band--ink .figure--framed svg { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.band--ink .figure figcaption { color: #9DC4D8; }

@media (prefers-reduced-motion: no-preference) {
    .figure--framed svg { transition: transform 400ms var(--ease); }
    .figure--framed:hover svg { transform: translateY(-3px); }
}

/* ------------------------------------------------------------ photographs */

/*
 * Aspect ratio is set here so the browser reserves the space before the file
 * arrives. Without it the text below jumps down as each image loads, which
 * Google measures directly and which feels broken on a slow connection.
 */
.shot {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-050), var(--green-050));
    aspect-ratio: 16 / 9;
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: no-preference) {
    .shot img { transition: transform 700ms var(--ease); }
    .shot:hover img { transform: scale(1.03); }
}

/* The hero photograph sits beside the headline on a wide screen and beneath
   it on a narrow one. */
.hero__split { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero__split { grid-template-columns: 1fr; } }

.hero .shot { border: 1px solid rgba(255, 255, 255, 0.2); }

/* A caption under a photograph, in the same voice as the diagram captions. */
.shot__note { margin-top: 11px; font-size: 13px; color: var(--muted); }
.band--ink .shot__note, .hero .shot__note { color: #9DC4D8; }

/* Photograph at the head of an article. */
.post__lead { margin: 0 0 34px; }
.post__lead .shot__note { margin-top: 10px; }
