/* ==========================================================================
   Seriously Client Centric — landing page
   Values follow the SCC brand style guide (November 2026, CTA update).
   ========================================================================== */

:root {
    /* Core palette */
    --blue: #1D71C5;                 /* Primary Blue */
    --navy: #1A3259;                 /* Deep Navy: headings and dark text */
    --aqua: #1FBFAE;                 /* accent only */
    --soft: #F2F4F6;                 /* Soft Grey: cards and alternate sections */
    --white: #FFFFFF;

    /* Supporting neutrals, drawn from the navy */
    --text: #2F3F57;                 /* body copy */
    --muted: #56657B;
    --line: #D9E0EA;
    --tint: #E3ECF8;                 /* pale blue label wells */
    --faint: #C6D2E3;                /* card numerals at rest */

    /* Signature gradients */
    --hero-gradient: linear-gradient(115deg, #0B3059 0%, #103B6A 45%, #0B5594 75%, #1D71C5 100%);
    --navy-gradient: linear-gradient(135deg, #12233F 0%, #1A3259 45%, #2A4A78 100%);
    --accent-gradient: linear-gradient(90deg, #1FBBB6 0%, #31B99E 50%, #4BB260 100%);
    /* The same accent, deepened so a headline word passes 3:1 on white and soft grey.
       Swap for --accent-gradient to use the approved stops unchanged. */
    --accent-gradient-on-light: linear-gradient(90deg, #0E8F8A 0%, #178F78 50%, #2E8B44 100%);

    /* 45° pinstripe, 12px centre to centre, kept as a quiet background layer */
    --pinstripe: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 12px);

    /* Type */
    --font-display: "Alegreya Sans", Candara, "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;

    /* Shape and motion */
    --radius: 12px;
    --radius-lg: 20px;
    --shell: 1160px;
    --gutter: clamp(20px, 5vw, 40px);
    --section: clamp(4rem, 9vw, 7rem);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--white); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 4.6vw, 3rem); line-height: 1.06; letter-spacing: -.012em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Selected headline words carry the turquoise-to-green accent */
.accent {
    color: #31B99E;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.accent--on-light { color: #178F78; background-image: var(--accent-gradient-on-light); }

/* ── Calls to action ──────────────────────────────────────────────────── */
.cta {
    display: inline-flex; align-items: center; gap: .9rem;
    min-height: 54px; padding: .5rem .55rem .5rem 1.5rem;
    border: 1.5px solid transparent; border-radius: 999px;
    font: 700 1.125rem/1.2 var(--font-display); text-decoration: none; white-space: nowrap;
    transition: translate .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.cta i {
    flex: none; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent-gradient);
    transition: translate .25s var(--ease);
}
.cta i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta:hover { translate: 0 -2px; }
.cta:hover i { translate: 3px 0; }
.cta:active { translate: 0 0; }

/* Primary on navy or blue: white pill, navy text */
.cta--white { background: var(--white); color: var(--navy); box-shadow: 0 14px 28px -16px rgba(3, 18, 40, .8); }
.cta--white:hover { color: var(--navy); box-shadow: 0 20px 34px -16px rgba(3, 18, 40, .85); }
/* Secondary on navy or blue: clear interior, white outline */
.cta--outline { min-height: 46px; padding: .4rem 1.35rem; font-size: 1rem; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.cta--outline:hover { color: var(--white); background: rgba(255, 255, 255, .12); border-color: var(--white); }
.hero .cta:focus-visible, .panel .cta:focus-visible, .brand:focus-visible { outline-color: var(--white); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: var(--white);
    background: var(--pinstripe), var(--hero-gradient);
}
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem 1rem; }
.brand { display: inline-flex; border-radius: 50%; }
/* Large enough that the lettering around the mark stays legible */
.brand img { width: 96px; height: 96px; }

.hero-body { padding-block: clamp(2rem, 5vw, 4rem) clamp(7rem, 14vw, 11rem); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: .45rem 1rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: .875rem; font-weight: 600; letter-spacing: 2px; line-height: 1.35; text-transform: uppercase;
    color: rgba(255, 255, 255, .95);
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.hero h1 {
    margin-top: 1.75rem; max-width: 15.5em;
    color: var(--white);
    font-size: clamp(2.75rem, 6.6vw, 4.75rem);
    line-height: 1.02; letter-spacing: -.015em;
}
.hero-foot {
    display: grid; grid-template-columns: minmax(0, 38rem) auto;
    justify-content: space-between; align-items: center; gap: 1.75rem 3rem;
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
.hero-foot p { font-size: 1.25rem; line-height: 1.5; color: var(--white); }

/* The hero eases into the white section on a shallow curve */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(44px, 7vw, 96px); fill: var(--white); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }

/* Who it's for */
.who { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.who-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 1.25rem 3rem; }
.who-head p { font-size: 1.1875rem; padding-top: .45rem; }
.cards { list-style: none; margin: clamp(2rem, 5vw, 3.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card {
    position: relative; overflow: hidden;
    padding: 1.6rem 1.75rem 1.9rem;
    background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
    transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), translate .35s var(--ease);
}
/* A hairline of the accent, drawn only on the card being read */
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, var(--blue), #31B99E);
    scale: 0 1; transform-origin: left; transition: scale .45s var(--ease);
}
.card:hover { background: var(--white); border-color: #B7C8DF; box-shadow: 0 18px 30px -24px rgba(26, 50, 89, .55); translate: 0 -2px; }
.card:hover::before { scale: 1 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tag {
    display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--tint);
    font-size: .8125rem; font-weight: 600; letter-spacing: 2px; line-height: 1.35; text-transform: uppercase; color: var(--navy);
}
.num { font: 700 2.75rem/.8 var(--font-display); font-variant-numeric: lining-nums; color: var(--faint); transition: color .35s var(--ease); }
.card:hover .num { color: var(--blue); }
.card h3 { margin-top: 1.5rem; font-size: clamp(1.5rem, 2.4vw, 1.75rem); line-height: 1.15; }
.card p { margin-top: .55rem; max-width: 30rem; }

/* The experience behind the intelligence */
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 3rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.story p { font-size: 1.1875rem; }
.people { list-style: none; margin: clamp(2rem, 5vw, 3.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.person { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem 1.1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.person > img { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.person-name { display: block; font: 700 1.5rem/1.15 var(--font-display); color: var(--navy); }
.person-role { display: block; margin-top: .15rem; color: var(--muted); }
.person-link {
    flex: none; margin-left: auto; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
    transition: border-color .25s var(--ease), translate .25s var(--ease), box-shadow .25s var(--ease);
}
.person-link img { width: 24px; height: auto; }
.person-link:hover { border-color: var(--blue); translate: 0 -2px; box-shadow: 0 10px 18px -12px rgba(26, 50, 89, .6); }

/* Closing call to action: a deep navy feature panel */
.panel-wrap { padding-block: var(--section) clamp(3rem, 7vw, 5rem); }
.panel {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(2.25rem, 6vw, 4.5rem);
    color: var(--white); border-radius: var(--radius-lg);
    background: var(--pinstripe), var(--navy-gradient);
    box-shadow: 0 34px 50px -36px rgba(18, 35, 63, .8);
}
.panel h2 { color: var(--white); max-width: 14em; }
.panel p { margin-top: 1.25rem; max-width: 33rem; font-size: 1.25rem; color: var(--white); }
.panel .cta { margin-top: 2rem; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { padding-block: 0 2.75rem; font-size: 1rem; color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 3rem; }
.footer p + p { margin-top: .3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; align-content: start; }
.footer a { color: var(--navy); }
.footer a:hover { color: var(--blue); }

/* ── Motion ───────────────────────────────────────────────────────────────
   Content is only ever hidden once the browser is drawing frames to reveal it. */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
html.anim .enter { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
html.anim .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--ease) calc(var(--i, 0) * 80ms), transform .9s var(--ease) calc(var(--i, 0) * 80ms); }
html.anim .reveal.in { opacity: 1; transform: none; }
/* Cards move on hover too, so their reveal must not swallow those transitions */
html.anim .card.reveal {
    transition:
        opacity .8s var(--ease) calc(var(--i, 0) * 80ms), transform .9s var(--ease) calc(var(--i, 0) * 80ms),
        background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), translate .35s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.anim .enter { animation: none; }
    html.anim .reveal { opacity: 1; transform: none; transition: none; }
    .cta, .cta i, .card, .card::before, .person-link { transition: none; }
    .cta:hover, .cta:hover i, .card:hover, .person-link:hover { translate: none; }
}

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .hero-foot { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .who-head, .story { grid-template-columns: minmax(0, 1fr); }
    .who-head p { padding-top: 0; }
    .cards, .people { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    body { font-size: 1.0625rem; }
    .hero-bar { padding-block: 1.25rem .5rem; }
    .brand img { width: 76px; height: 76px; }
    .eyebrow { font-size: .75rem; letter-spacing: 1.5px; border-radius: 14px; }
    .hero-foot p, .panel p { font-size: 1.125rem; }
    .who-head p, .story p { font-size: 1.0625rem; }
    /* Long labels wrap inside the pill instead of pushing past the screen edge */
    .cta { white-space: normal; text-wrap: balance; }
    .cta--white { font-size: 1.0625rem; padding-left: 1.25rem; }
    .card { padding: 1.35rem 1.35rem 1.6rem; }
    .person { gap: 1rem; padding: 1rem; }
    .person > img { width: 68px; height: 68px; }
    .person-name { font-size: 1.3125rem; }
    .person-link { width: 44px; height: 44px; }
}
