/* ==========================================================
   StapeTech — Light world, the "daylight reference" look
   Tall condensed capitals with calligraphic accent words, full-bleed
   photography graded in StapeTech blue, sharp rectangles that overlap
   text and each other, domes only as scene changes. Brand first: the
   blues (#428bca, #3273a8, #263746), #f5f9fc and the logo cyan carry
   every place the reference uses its own colours.
   Every rule is scoped to .theme-light.
   ========================================================== */

/* The condensed cut of Noto Serif Display: locking the width range makes
   every element that asks for the serif get the tall, narrow letters. */
@font-face {
    font-family: "StapeSerif";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62.5%;
    font-display: swap;
    src: url("../fonts/noto-serif-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.theme-light {
    --font-serif: "StapeSerif", "Noto Serif Display", "Times New Roman", serif;
    --font-script: "Pinyon Script", "Snell Roundhand", cursive;
    --era-ink: #0f1c27;
    --era-blue: #428bca;
    --era-blue-deep: #1a4470;
    --era-ice: #bfe3ff;
}

/* ---------- Type ---------- */
.theme-light main :is(h1, h2, .section-title, .page-hero__title, .article-hero__title, .cta-band__title, .error-page__code) {
    font-weight: 500;
    letter-spacing: 0;
    line-height: 0.92;
}

.theme-light main :is(h1, h2, .section-title) {
    text-transform: uppercase;
}

/* The accent words: copperplate script in StapeTech blue, set a little larger and
   tucked into the line above, as the reference does with its place names */
.theme-light :is(.t-accent, .text-gradient, .reach__title em) {
    display: inline-block;
    font-family: var(--font-script);
    font-size: 1.28em;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.75;
    text-transform: none;
    color: var(--era-blue);
    -webkit-text-fill-color: currentColor;
    background: none;
    padding-right: 0.06em;
    padding-bottom: 0.3em;
}

/* ---------- Photos: sharp rectangles, graded toward StapeTech blue ---------- */
.theme-light .daylight,
.theme-light .daylight--arch,
.theme-light .daylight--cover,
.theme-light .daylight--frame,
.theme-light .daylight--circle,
.theme-light .daylight--panel,
.theme-light .daylight--wide,
.theme-light .team-card__photo,
.theme-light .post-row__thumb,
.theme-light .article-cover img,
.theme-light .showcase__item .daylight {
    border-radius: 0;
}

.theme-light .daylight--circle {
    border: 0;
}

.theme-light .daylight img,
.theme-light .hero__photo,
.theme-light .results__photo img,
.theme-light .team-card__photo img,
.theme-light .post-row__thumb img {
    filter: saturate(1.14) contrast(1.03);
}

/* A thin veil of brand blue ties very different photos together */
.theme-light .daylight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 93, 137, 0) 45%, rgba(26, 68, 112, 0.22) 100%);
    pointer-events: none;
}

/* ==========================================================
   Header over a photo: white until the page scrolls
   ========================================================== */
.theme-light:has(.hero, .page-hero:not(.page-hero--compact)) .site-header:not(.is-scrolled) {
    color: #ffffff;
}

.theme-light:has(.hero, .page-hero:not(.page-hero--compact)) .site-header:not(.is-scrolled) .brand__name span {
    color: var(--era-ice);
}

.theme-light:has(.hero, .page-hero:not(.page-hero--compact)) .site-header:not(.is-scrolled) .theme-switch__label {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.theme-light:has(.hero, .page-hero:not(.page-hero--compact)) .site-header:not(.is-scrolled) .nav-toggle {
    background: rgba(255, 255, 255, 0.14);
}

.theme-light .nav__link {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ==========================================================
   Home hero: the photo fills the screen, the title is centred
   ========================================================== */
.theme-light .hero {
    --scrim: #1a4470;
    --text: rgba(255, 255, 255, 0.9);
    --heading: #ffffff;
    --accent: var(--era-ice);
    align-items: center;
    text-align: center;
    background: var(--era-blue-deep);
}

.theme-light .hero.night {
    --scrim: #07121d;
    --accent: #8fd3f4;
}

.theme-light .hero__scrim {
    background:
        linear-gradient(180deg, rgba(14, 40, 72, 0.74) 0%, rgba(22, 60, 102, 0.6) 32%, rgba(22, 60, 102, 0.56) 62%, rgba(10, 30, 56, 0.76) 100%);
}

.theme-light .hero__photo {
    object-position: 62% 52%;
}

.theme-light .hero__content {
    max-width: 1180px;
    margin-inline: auto;
}

.theme-light .hero__eyebrow {
    justify-content: center;
    color: var(--era-ice);
    letter-spacing: 0.22em;
}

.theme-light .hero__eyebrow::before {
    display: none;
}

.theme-light .hero__title {
    margin-bottom: 2rem;
    font-size: clamp(2.8rem, min(1rem + 7.6vw, 12.5vh), 9.6rem);
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 0 6px 40px rgba(10, 30, 54, 0.35);
    text-wrap: balance;
}

.theme-light .hero__title :is(.text-gradient) {
    color: var(--era-ice);
    font-size: 1.1em;
    margin-top: 0.12em;
    margin-bottom: 0.18em;
}

.theme-light .hero__lead {
    max-width: 52ch;
    margin: 0 auto 2rem;
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 20px rgba(10, 30, 54, 0.4);
}

.theme-light .hero__actions {
    justify-content: center;
    margin-bottom: 0;
}

.theme-light .hero .btn--outline-light {
    --btn-fg: #ffffff;
    --btn-border: rgba(255, 255, 255, 0.6);
    --btn-bg: rgba(255, 255, 255, 0.08);
}

.theme-light .hero .btn--primary {
    --btn-bg: #ffffff;
    --btn-fg: var(--era-blue-deep);
    box-shadow: 0 14px 34px -14px rgba(10, 30, 54, 0.7);
}

.theme-light .hero__scroll {
    border-color: rgba(255, 255, 255, 0.5);
}

.theme-light .hero__scroll span {
    background: #ffffff;
}

@media (max-width: 899px) {
    .theme-light .hero {
        background: var(--era-blue-deep);
        padding-top: calc(var(--header-h) + 3rem);
    }

    .theme-light .hero__photos {
        bottom: 0;
    }

    .theme-light .hero__scrim {
        background: linear-gradient(180deg, rgba(14, 40, 72, 0.74) 0%, rgba(22, 60, 102, 0.6) 32%, rgba(22, 60, 102, 0.56) 62%, rgba(10, 30, 56, 0.76) 100%);
    }

    .theme-light .hero__title {
        font-size: clamp(3.2rem, 14vw, 5.4rem);
    }
}

/* ==========================================================
   Inner page heroes: a full-bleed photo opens from a window,
   the title sits in the middle
   ========================================================== */
.theme-light .page-hero {
    --hero-size: clamp(3.4rem, 1rem + 8.2vw, 10rem);
    isolation: isolate;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    background: var(--era-blue-deep);
    padding-bottom: 5rem;
}

.theme-light .page-hero--xl { --hero-size: clamp(4.4rem, min(1rem + 15vw, 24vh), 14rem); }
.theme-light .page-hero--lg { --hero-size: clamp(3.6rem, min(1rem + 10.4vw, 19vh), 11rem); }
.theme-light .page-hero--md { --hero-size: clamp(3rem, min(1rem + 7.4vw, 14.5vh), 8.4rem); }
.theme-light .page-hero--sm { --hero-size: clamp(2.7rem, min(1rem + 5.6vw, 11vh), 6.4rem); }

.theme-light .page-hero .page-hero__inner {
    position: static;
    display: block;
    max-width: 1280px;
}

.theme-light .page-hero .page-hero__text {
    max-width: 1100px;
    margin-inline: auto;
}

.theme-light .page-hero .page-hero__title {
    margin-bottom: 2.6rem;
    color: #ffffff;
    text-shadow: 0 6px 40px rgba(10, 30, 54, 0.4);
    text-wrap: balance;
}

.theme-light .page-hero :is(.t-accent) {
    color: var(--era-ice);
}

.theme-light .page-hero .page-hero__lead {
    max-width: 52ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 20px rgba(10, 30, 54, 0.4);
}

.theme-light .page-hero .eyebrow {
    justify-content: center;
    color: var(--era-ice);
    letter-spacing: 0.22em;
}

.theme-light .page-hero .eyebrow::before {
    display: none;
}

.theme-light .page-hero .breadcrumbs ol {
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.theme-light .page-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.78);
}

.theme-light .page-hero .breadcrumbs a:hover {
    color: #ffffff;
}

.theme-light .page-hero .breadcrumbs [aria-current] {
    color: var(--era-ice);
}

/* The photo is the hero's background */
.theme-light .page-hero .page-hero__station {
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0;
}

.theme-light .page-hero .page-hero__station::before {
    display: none;
}

.theme-light .page-hero .page-hero__station .daylight--arch {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.theme-light .page-hero .page-hero__station::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 40, 72, 0.74) 0%, rgba(22, 60, 102, 0.6) 32%, rgba(22, 60, 102, 0.56) 62%, rgba(10, 30, 56, 0.76) 100%);
}

.theme-light .page-hero .daylight::after {
    display: none;
}

/* The same photo in the "dark" station slot never shows; no photo = a deep blue field */
.theme-light .page-hero--bare .page-hero__station {
    display: none;
}

.theme-light .page-hero--bare {
    background:
        radial-gradient(90% 120% at 50% 0%, #2d6ea8 0%, #1a4470 55%, #133454 100%);
}

.theme-light .page-hero--bare .page-hero__station::after {
    display: none;
}

.theme-light .page-hero--bare .page-hero__text {
    grid-column: auto;
}

/* Reading pages (legal): a quiet paper-white hero with ink type */
.theme-light .page-hero--compact {
    background: var(--page-bg);
    color: var(--c-text);
    min-height: min(60svh, 560px);
}

.theme-light .page-hero--compact .page-hero__station {
    display: none;
}

.theme-light .page-hero--compact .page-hero__title {
    color: var(--era-ink);
    text-shadow: none;
}

.theme-light .page-hero--compact :is(.t-accent) {
    color: var(--era-blue);
}

.theme-light .page-hero--compact .page-hero__lead {
    color: var(--c-muted);
    text-shadow: none;
}

.theme-light .page-hero--compact .eyebrow {
    color: var(--c-brand-600);
}

.theme-light .page-hero--compact .breadcrumbs ol,
.theme-light .page-hero--compact .breadcrumbs a {
    color: var(--c-muted);
}

.theme-light .page-hero--compact .breadcrumbs [aria-current] {
    color: var(--c-brand-600);
}

/* Foot: scroll cue and index in white over the photo */
.theme-light .page-hero__foot {
    color: rgba(255, 255, 255, 0.78);
}

.theme-light .page-hero--compact .page-hero__foot {
    color: var(--c-muted);
}

@media (max-width: 899px) {
    .theme-light .page-hero {
        min-height: min(88svh, 700px);
    }

    .theme-light .page-hero .page-hero__station .daylight--arch {
        max-width: none;
        height: 100%;
    }
}

/* ==========================================================
   Photo frames: rectangles that wipe open upward
   (the arch survives only in the hero's opening window)
   ========================================================== */
.theme-light .daylight--arch,
.theme-light .daylight--circle,
.theme-light .daylight--cover,
.theme-light .daylight--frame {
    clip-path: inset(100% 0 0 0);
}

.theme-light .daylight--arch.is-in,
.theme-light .daylight--circle.is-in,
.theme-light .daylight--cover.is-in,
.theme-light .daylight--frame.is-in {
    clip-path: inset(0 0 0 0);
}

.theme-light .page-hero .daylight--arch {
    clip-path: none;
}

/* ==========================================================
   Studio: one giant word across a full-screen team photo
   ========================================================== */
.theme-light .studio {
    position: relative;
    isolation: isolate;
    display: grid;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    background: var(--era-blue-deep);
}

.theme-light .studio__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.25) contrast(1.04);
}

.theme-light .studio::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 40, 72, 0.74) 0%, rgba(22, 60, 102, 0.6) 32%, rgba(22, 60, 102, 0.56) 62%, rgba(10, 30, 56, 0.76) 100%);
}

.theme-light .studio__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 1.5rem) clamp(2.5rem, 6vh, 4.5rem);
}

.theme-light .studio__word {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(6rem, 1rem + 21.5vw, 24rem);
    font-weight: 500;
    line-height: 0.8;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.97);
    text-shadow: 0 10px 60px rgba(10, 30, 54, 0.35);
}

.theme-light .studio__text {
    max-width: 38ch;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 0.9rem + 1.5vw, 2.2rem);
    font-weight: 500;
    line-height: 1.12;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(10, 30, 54, 0.5);
}

/* ==========================================================
   Why: the three reasons announced on an arc
   ========================================================== */
.theme-light .why__arc {
    display: block;
    width: min(920px, 94%);
    margin: 0 auto clamp(1rem, 3vw, 2.5rem);
    overflow: visible;
}

.theme-light .why__arc text {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    fill: var(--era-ink);
}

/* ==========================================================
   Shapes from the first pass, now in the same language
   ========================================================== */
.theme-light .aside-card--accent {
    padding: 2rem;
    border-radius: 0;
    background: linear-gradient(172deg, var(--c-brand) 0%, var(--era-blue-deep) 100%);
    text-align: left;
}

.theme-light .aside-card--accent p {
    margin-inline: 0;
    max-width: none;
}

/* Numbers and small flourishes use the script, not a slanted serif */
.theme-light .feature::before,
.theme-light .process__num {
    font-family: var(--font-script);
    font-style: normal;
    font-size: clamp(2.8rem, 1.6rem + 2.8vw, 4.4rem);
    font-weight: 400;
    line-height: 0.9;
    color: var(--era-blue);
}

.theme-light .marquee__track span:nth-child(even) {
    font-family: var(--font-script);
    font-style: normal;
    font-size: 1.6em;
    line-height: 0.8;
    text-transform: none;
}

.theme-light .aside-links a.is-active,
.theme-light .filter-bar__item.is-active {
    font-family: var(--font-script);
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
}

.theme-light .team-card__initials,
.theme-light .stat-band strong,
.theme-light .result__value {
    font-weight: 400;
}

.theme-light .result__value sup {
    font-family: var(--font-script);
    font-style: normal;
    font-size: 0.3em;
}

/* Statement: the two small photos are overlapping rectangles in the corners */
.theme-light .statement__accent--a {
    width: clamp(150px, 17vw, 270px);
    height: clamp(210px, 24vw, 380px) !important;
    box-shadow: 0 30px 60px -30px rgba(15, 28, 39, 0.45);
}

.theme-light .statement__accent--b {
    width: clamp(150px, 16vw, 250px);
    height: clamp(120px, 12vw, 190px);
    box-shadow: 0 30px 60px -30px rgba(15, 28, 39, 0.45);
}

.theme-light .statement__text {
    font-weight: 500;
    line-height: 1.08;
}

/* The reach title keeps its script "to the" */
.theme-light main .reach__title {
    font-weight: 500;
    line-height: 0.88;
}

/* Services journey and work showcase titles: tall serif, calm weight */
.theme-light .journey__title,
.theme-light .showcase__caption strong,
.theme-light .showcase__more span {
    font-weight: 500;
}

.theme-light .showcase__word {
    font-weight: 500;
    line-height: 0.82;
}

/* Contact: the number is the centre of the page, in white over the photo */
.theme-light .page-hero--phone .page-hero__title {
    font-size: clamp(2.6rem, 1rem + 4.6vw, 5.8rem);
    margin-bottom: 1.6rem;
}

.theme-light .page-hero__phone {
    display: block;
    margin: 2.2rem auto 0;
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 0.4rem + 11.4vw, 13rem);
    font-weight: 500;
    line-height: 0.95;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 8px 50px rgba(10, 30, 54, 0.5);
}

.theme-light .page-hero__phone:hover,
.theme-light .page-hero__phone:focus-visible {
    color: var(--era-ice);
}

@media (max-width: 767px) {
    .theme-light .page-hero__phone {
        font-size: 12.4vw;
    }
}

/* ==========================================================
   The woven-ring ornament: the brand's own "cut-out", overlapping
   corners and photos the way the reference's flowers do
   ========================================================== */
.theme-light .statement::before,
.theme-light .cta-band::after {
    content: "";
    position: absolute;
    z-index: 0;
    aspect-ratio: 1;
    background: url("../img/brand/rosette.svg") center / contain no-repeat;
    pointer-events: none;
    animation: rosette-turn 160s linear infinite;
}

.theme-light .statement::before {
    left: -16vw;
    top: -18vw;
    width: 46vw;
    opacity: 0.55;
}

.theme-light .cta-band {
    overflow: hidden;
}

.theme-light .cta-band::after {
    right: -14vw;
    bottom: -22vw;
    left: auto;
    width: 56vw;
    opacity: 0.16;
    filter: brightness(0) invert(1);
}

@keyframes rosette-turn {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   Cookie notice: a small white card with a script heading,
   bottom right, as in the reference
   ========================================================== */
.theme-light .cookie-banner {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    display: block;
    width: min(340px, calc(100vw - 2.5rem));
    max-width: none;
    margin: 0;
    padding: 1.4rem 1.5rem 1.3rem;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 30px 70px -30px rgba(15, 28, 39, 0.5);
}

.theme-light .cookie-banner::before {
    content: "Cookies";
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-script);
    font-size: 2.7rem;
    line-height: 1;
    color: var(--era-ink);
}

.theme-light .cookie-banner__text {
    display: block;
}

.theme-light .cookie-banner__text .icon {
    display: none;
}

.theme-light .cookie-banner__text p {
    font-size: 0.82rem;
    line-height: 1.5;
}

.theme-light .cookie-banner__actions {
    justify-content: flex-start;
    margin-top: 1rem;
}

.theme-light .cookie-banner .btn {
    min-height: 36px;
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-light .cookie-dialog {
    border-radius: 0;
}

@media (max-width: 599px) {
    .theme-light .cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }
}

/* Script accents over photos get a soft shadow so they stay legible on bright areas */
.theme-light :is(.hero__title, .page-hero__title) :is(.t-accent, .text-gradient) {
    text-shadow: 0 2px 26px rgba(10, 30, 54, 0.55);
}

/* Results: the photo under each number is a straight band that wipes up (no dome) */
.theme-light .results__photo {
    clip-path: inset(100% 0 0 0);
}

.theme-light .results__photo.is-active {
    clip-path: inset(0 0 0 0);
}

/* Reading pages: a calm, normal-sized heading and no scroll cue (people are here to read, not to be impressed) */
.theme-light .page-hero.page-hero--compact {
    --hero-size: clamp(3rem, 1rem + 6.4vw, 6rem);
    min-height: 0;
    padding-bottom: 3.5rem;
}

.theme-light .page-hero--compact .page-hero__foot {
    display: none;
}

/* ==========================================================
   Contrast (WCAG AA): white text sits on the deeper StapeTech blue (#3273a8, 5:1),
   small labels on paper use that same blue instead of the logo cyan (2:1).
   ========================================================== */
.theme-light .btn--primary {
    --btn-bg: var(--c-brand-600);
}

.theme-light .btn--primary:hover {
    --btn-bg: var(--c-brand-700);
}

.theme-light .hero .btn--primary:hover {
    --btn-bg: #ffffff;
}

.theme-light .index-label,
.theme-light .results__head,
.theme-light .journey__index {
    color: var(--c-brand-600);
}

.theme-light .page-hero--compact .t-accent {
    color: var(--c-brand-600);
}
/* Small text over photos: pure white with a soft shadow, so it holds up on any photo the owner uploads */
.theme-light .hero__eyebrow,
.theme-light .page-hero:not(.page-hero--compact) .eyebrow,
.theme-light .page-hero:not(.page-hero--compact) .breadcrumbs ol,
.theme-light .page-hero:not(.page-hero--compact) .breadcrumbs a,
.theme-light .page-hero:not(.page-hero--compact) .breadcrumbs [aria-current] {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(8, 24, 44, 0.55);
}

/* The decorative badge would float over the first words of every line on reading pages: leave it off there */
.theme-light:has(main .prose) .chrome__badge {
    display: none;
}

/* While a hero photo loads (and for tools that cannot see through images) the hero's ground is the deep brand blue, never paper */
.theme-light .page-hero:not(.page-hero--compact) .daylight,
.theme-light .hero .daylight {
    background: var(--era-blue-deep);
}

/* Our results: a pinned stepper, but only as long as four short steps need */
.theme-light .results {
    height: 340vh;
}

/* Illustrated pictures (assets/img/art) are already deep blue and calm in the middle, so the blue grade
   over them is lighter than over a photo, and they sit on their bottom edge so the people stay in view. */
.theme-light .page-hero--art .page-hero__station::after,
.theme-light .studio--art::before {
    background: linear-gradient(180deg, rgba(10, 30, 56, 0.34) 0%, rgba(10, 30, 56, 0.04) 38%, rgba(10, 30, 56, 0.04) 72%, rgba(10, 30, 56, 0.3) 100%);
}

.theme-light .page-hero--art .daylight img,
.theme-light .studio--art .studio__bg {
    object-position: 50% 100%;
}
/* Phones: the home photo sits behind more text per screen, so the blue grade is a little deeper */
@media (max-width: 899px) {
    .theme-light .hero__scrim {
        background: linear-gradient(180deg, rgba(14, 40, 72, 0.78) 0%, rgba(22, 60, 102, 0.68) 32%, rgba(22, 60, 102, 0.66) 62%, rgba(10, 30, 56, 0.8) 100%);
    }
}

/* A picture with a phone-shaped twin is wrapped in <picture>; let the image size itself against the frame */
.theme-light .daylight picture {
    display: contents;
}

/* Type-only heroes (service and project pages): the lead can run to two lines, so no scroll cue to collide with it */
.theme-light .page-hero--bare .page-hero__foot {
    display: none;
}

/* ==========================================================
   Clean layout (light): no heading ever sits under a picture
   ========================================================== */

/* "StapeTech in numbers": a calm band instead of a pinned stepper with changing pictures.
   The dark world keeps its own particle version (.results). */
.theme-light .results {
    display: none;
}

.numbers {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
    background: linear-gradient(172deg, #285d89 0%, var(--era-blue-deep) 100%);
    color: #ffffff;
}

.numbers__eyebrow {
    margin: 0 0 clamp(2rem, 4vw, 3.2rem);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--era-ice);
}

.numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.numbers__item {
    padding: 0.4rem clamp(1rem, 2.2vw, 2.2rem);
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.numbers__item:first-child {
    border-left: 0;
    padding-left: 0;
}

.numbers__value {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(3.6rem, 1.8rem + 4.8vw, 7rem);
    font-weight: 500;
    line-height: 0.95;
    color: #ffffff;
}

.numbers__label {
    margin: 1rem 0 0.55rem;
    padding-top: 0.9rem;
    border-top: 2px solid var(--era-ice);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--era-ice);
}

.numbers__text {
    max-width: 30ch;
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1023px) {
    .numbers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.6rem;
    }

    .numbers__item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 559px) {
    .numbers__grid {
        grid-template-columns: 1fr;
        row-gap: 2.2rem;
    }

    .numbers__item {
        padding-left: 0;
        border-left: 0;
    }
}

/* Services: the title stays in its own column, never over the picture */
@media (min-width: 900px) {
    .theme-light .journey__item:nth-child(odd) .journey__title,
    .theme-light .journey__item:nth-child(even) .journey__title {
        margin-inline: 0;
    }
}

.theme-light .journey__content {
    position: relative;
    z-index: 3;
}

.theme-light .journey__title {
    font-size: clamp(2.4rem, 1.4rem + 2.6vw, 4rem);
    line-height: 1;
}

/* Work: three clean columns with the captions beneath, nothing overlapping */
.theme-light .showcase__word {
    margin: 0 0 1.4rem;
    line-height: 0.9;
}

@media (min-width: 900px) {
    .theme-light .showcase__stage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: clamp(1.4rem, 3vw, 2.6rem);
    }

    .theme-light .showcase__item--1 { grid-column: 1; grid-row: 1; margin-top: 0; }
    .theme-light .showcase__item--2 { grid-column: 2; grid-row: 1; margin-top: 3.2rem; }
    .theme-light .showcase__item--3 { grid-column: 3; grid-row: 1; margin-top: 6.4rem; }

    .theme-light .showcase__item .daylight,
    .theme-light .showcase__item--3 .daylight {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* Project pages: the category word stands above the cover, fully readable */
.theme-light .project-cover__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.theme-light .project-cover__word {
    position: static;
    transform: none;
    font-size: clamp(3rem, 1rem + 8vw, 8rem);
}

/* Intro statement: a narrower column, and the two small photos only where there is room beside it */
.theme-light .statement__inner {
    max-width: 820px;
}

.theme-light .statement__accent--a {
    left: 1.5%;
    width: clamp(120px, 13vw, 210px);
    height: clamp(170px, 18vw, 300px) !important;
}

.theme-light .statement__accent--b {
    right: 1.5%;
    width: clamp(120px, 13vw, 210px);
    height: clamp(100px, 10vw, 160px);
}

@media (max-width: 1199px) {
    .theme-light .statement__accent {
        display: none !important;
    }
}
/* "From Kumasi to the world" needs air above it now that it follows the numbers band */
.theme-light .reach {
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

/* ------------------------------------------------------------------
   Notification invitation and share card (light)
   ------------------------------------------------------------------ */
.theme-light .push-card {
    border: 1px solid rgba(26, 68, 112, 0.2);
    background: #ffffff;
    color: var(--era-ink, #14283a);
    box-shadow: 0 24px 50px -22px rgba(26, 68, 112, 0.45);
}

.theme-light .push-card__icon {
    background: var(--era-blue-deep);
}

.theme-light .push-card__text {
    color: #3d5163;
}

.theme-light .push-card__badge {
    background: #e6f0f9;
    color: #1a4470;
}

.theme-light .push-card__status,
.theme-light .push-card__link {
    color: #1a4470;
}

.theme-light .push-card__link:hover {
    color: #0f2f50;
}

.theme-light .push-card .btn--ghost {
    color: #1a4470;
    border-color: rgba(26, 68, 112, 0.4);
}

.theme-light .push-card .btn--ghost:hover {
    background: #eef4fa;
}

/* ------------------------------------------------------------------
   The site's own offers: pop-up and corner card (light)
   ------------------------------------------------------------------ */
.theme-light .promo {
    border: 1px solid rgba(26, 68, 112, 0.2);
    background: #ffffff;
    color: var(--era-ink, #14283a);
    box-shadow: 0 30px 70px -26px rgba(26, 68, 112, 0.5);
}

.theme-light .promo__image {
    background: #eef4fa;
}

.theme-light .promo__text {
    color: #3d5163;
}

.theme-light .promo__deadline {
    color: #1a4470;
}

.theme-light .promo .btn--ghost {
    color: #1a4470;
    border-color: rgba(26, 68, 112, 0.4);
}

.theme-light .promo .btn--ghost:hover {
    background: #eef4fa;
}

/* ---------- Clients (light world): quiet band, sharp white plates, serif title ---------- */
.theme-light .clients-band {
    border-bottom: 1px solid rgba(26, 68, 112, 0.12);
    background: #ffffff;
}

.theme-light .clients-band .clients-band__title {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--era-ink, #14283a);
}

.theme-light .logo-strip__item {
    border: 1px solid rgba(26, 68, 112, 0.16);
    border-radius: 0;
    background: #f7fafc;
    box-shadow: none;
}

.theme-light .client-card {
    border: 1px solid rgba(26, 68, 112, 0.16);
    border-radius: 0;
    background: #ffffff;
}

.theme-light .client-card__logo {
    border: 0;
    border-radius: 0;
    background: #f1f6fb;
}

.theme-light .client-card .client-card__name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--era-ink, #14283a);
}

.theme-light .client-card__what {
    color: #3d5163;
}

.theme-light .client-card__link {
    color: #1a4470;
}

/* ==========================================================
   Headings over blue and pictures: built to stay readable
   White type on a blue picture can melt into bright windows, screens and clouds, and thin script letters
   disappear first. Every heading that sits on blue or a picture gets the same four helps:
   a heavier weight, a crisp dark edge, a soft dark glow, and (for the big words) a thin dark outline
   behind the letters. The text keeps its colour; only its edges get defended.
   ========================================================== */
.theme-light {
    --legible-edge: rgba(7, 26, 50, 0.96);
    --legible-halo: rgba(7, 26, 50, 0.82);
    --legible-shadow:
        0 1px 0 var(--legible-edge),
        0 3px 0 rgba(7, 26, 50, 0.55),
        0 6px 14px rgba(7, 26, 50, 0.55),
        0 16px 48px rgba(7, 26, 50, 0.6);
    --legible-text-shadow: 0 1px 2px rgba(7, 26, 50, 0.95), 0 2px 18px rgba(7, 26, 50, 0.75);
}

/* The big words */
.theme-light .hero__title,
.theme-light .page-hero:not(.page-hero--compact) .page-hero__title,
.theme-light .cta-band__title,
.theme-light main .cta-contact__title,
.theme-light .credentials__line {
    color: #ffffff;
    font-weight: 600;
    text-shadow: var(--legible-shadow);
    -webkit-text-stroke: 0.03em var(--legible-halo);
    paint-order: stroke fill;
}

/* The giant decorative words are already huge: a lighter edge keeps them clean */
.theme-light .studio__word,
.theme-light .daylight__word,
.theme-light .project-cover__word,
.theme-light .page-hero__phone {
    color: #ffffff;
    text-shadow: var(--legible-shadow);
    -webkit-text-stroke: 0.012em var(--legible-halo);
    paint-order: stroke fill;
}

/* The script accents ("grow your business", "move your business forward"): thin letters, so the outline is heavier */
.theme-light .hero__title .text-gradient,
.theme-light .page-hero:not(.page-hero--compact) .page-hero__title .t-accent,
.theme-light .cta-band__title .t-accent,
.theme-light main .cta-contact__title .t-accent {
    color: #f4faff;
    -webkit-text-stroke: 0.062em var(--legible-halo);
    paint-order: stroke fill;
    text-shadow: var(--legible-shadow);
}

/* The lines of small text that sit under them */
.theme-light .hero__lead,
.theme-light .studio__text,
.theme-light .page-hero:not(.page-hero--compact) .page-hero__lead,
.theme-light .cta-band p,
.theme-light .cta-contact__meta,
.theme-light .cta-contact__meta a {
    color: #ffffff;
    font-weight: 500;
    text-shadow: var(--legible-text-shadow);
}

.theme-light .cta-contact__eyebrow,
.theme-light .page-hero:not(.page-hero--compact) .eyebrow,
.theme-light .hero__eyebrow {
    color: #ffffff;
    font-weight: 700;
    text-shadow: var(--legible-text-shadow);
}

/* A soft dark pool of colour behind the words, so the picture never fights them */
.theme-light .hero__content,
.theme-light .page-hero:not(.page-hero--compact) .page-hero__text,
.theme-light .cta-contact {
    position: relative;
    isolation: isolate;
}

.theme-light .hero__content::before,
.theme-light .page-hero:not(.page-hero--compact) .page-hero__text::before {
    content: "";
    position: absolute;
    inset: -14% -10%;
    z-index: -1;
    background: radial-gradient(60% 58% at 50% 50%, rgba(7, 26, 50, 0.5), rgba(7, 26, 50, 0) 72%);
    pointer-events: none;
}

/* People who ask their device for more contrast get the strongest version: solid backing, sturdy letters */
@media (prefers-contrast: more) {
    .theme-light .hero__content,
    .theme-light .page-hero:not(.page-hero--compact) .page-hero__text,
    .theme-light .cta-contact {
        padding: clamp(1rem, 3vw, 2rem);
        border-radius: 0;
        background: rgba(7, 26, 50, 0.9);
    }

    .theme-light .hero__content::before,
    .theme-light .page-hero:not(.page-hero--compact) .page-hero__text::before {
        display: none;
    }

    .theme-light .hero__title .text-gradient,
    .theme-light .page-hero:not(.page-hero--compact) .page-hero__title .t-accent,
    .theme-light .cta-band__title .t-accent,
    .theme-light main .cta-contact__title .t-accent {
        font-family: var(--font-serif);
        font-style: italic;
        font-weight: 700;
        color: #ffffff;
        -webkit-text-stroke: 0;
        font-size: 1em;
        line-height: 1;
    }
}

/* Breadcrumbs and small labels over the hero pictures get the same defended edge */
.theme-light .page-hero:not(.page-hero--compact) .breadcrumbs ol,
.theme-light .page-hero:not(.page-hero--compact) .breadcrumbs a,
.theme-light .page-hero:not(.page-hero--compact) .breadcrumbs [aria-current] {
    font-weight: 700;
    text-shadow: var(--legible-text-shadow);
}

/* The menu sits on the picture until the page scrolls: its words get the same defended edge */
.theme-light:has(.hero, .page-hero:not(.page-hero--compact)) .site-header:not(.is-scrolled) {
    text-shadow: 0 1px 2px rgba(7, 26, 50, 0.85), 0 2px 14px rgba(7, 26, 50, 0.6);
}

.theme-light:has(.hero, .page-hero:not(.page-hero--compact)) .site-header:not(.is-scrolled) :is(.btn, .theme-switch, .menu-toggle) {
    text-shadow: none;
}

/* "THE WORK" stands on pale paper, so it is set in deep brand blue, never white */
.theme-light .showcase__word {
    color: var(--era-blue-deep);
    font-weight: 600;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
