/* ==========================================================
   StapeTech — Light world, pass 2: the inner pages
   Same editorial language as the home page (light.css): tall serif
   headlines, arch frames, stacked scenes, huge numbers. Loaded after
   every other sheet; every rule is scoped to .theme-light, so the
   dark world is never touched. Motion lives in motion.js.
   ========================================================== */

/* ---------- Chrome: badge + rail (fixed details from the reference) ---------- */
.chrome {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

.chrome__badge {
    --inset: clamp(1rem, 2vw, 1.75rem);
    position: absolute;
    left: var(--inset);
    bottom: var(--inset);
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(247, 250, 252, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px -16px rgba(15, 28, 39, 0.45);
    transition: opacity 0.5s ease, transform 0.7s var(--ease);
}

.chrome.is-end .chrome__badge {
    opacity: 0;
    transform: scale(0.82);
}

.chrome__ring,
.chrome__spin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.chrome__track,
.chrome__progress {
    fill: none;
    stroke-width: 1.6;
}

.chrome__track {
    stroke: rgba(38, 55, 70, 0.14);
}

.chrome__progress {
    stroke: var(--c-brand-600);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1; /* chrome.js sets the real value as you scroll */
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.chrome__spin {
    animation: chrome-spin 30s linear infinite;
}

.chrome__spin text {
    font-family: var(--font-sans);
    font-size: 8.2px;
    font-weight: 600;
    text-transform: uppercase;
    fill: var(--c-heading);
}

.chrome__mark {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

@keyframes chrome-spin {
    to { transform: rotate(360deg); }
}

.chrome__rail {
    position: absolute;
    left: clamp(1.4rem, 2.4vw, 2.2rem);
    top: 50%;
    width: 1px;
    height: 140px;
    margin-top: -70px;
    background: rgba(38, 55, 70, 0.18);
}

.chrome__rail {
    transition: opacity 0.5s ease;
}

.chrome.is-end .chrome__rail {
    opacity: 0;
}

.chrome__thumb {
    position: absolute;
    left: -3px;
    top: calc(var(--p, 0) * (100% - 7px));
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-brand-600);
}

/* On phones the badge would sit on top of text and form fields */
@media (max-width: 767px) {
    .chrome__badge {
        display: none;
    }
}

@media (max-width: 1199px) {
    .chrome__rail {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chrome__spin {
        animation: none;
    }
}

/* ---------- Page hero: the structure every inner page shares.
   Its look (full-bleed photo, colours, sizes) is in light-era.css ---------- */
.theme-light .page-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(100svh, 980px);
    padding: calc(var(--header-h) + 2rem) 0 5.5rem;
    border-bottom: 0;
    overflow: hidden;
}

.theme-light .page-hero .page-hero__text {
    position: relative;
    z-index: 3;
    animation: rise 1.1s var(--ease) 0.25s both;
}

.theme-light .page-hero .page-hero__title {
    max-width: none;
    font-size: var(--hero-size);
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
}

.theme-light .page-hero .page-hero__lead {
    margin: 0;
    font-size: var(--fs-lg);
    line-height: 1.55;
}

.theme-light .page-hero .breadcrumbs ol {
    margin-bottom: 2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Scroll cue */
.theme-light .page-hero__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
    pointer-events: none;
}

.theme-light .page-hero__cue {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
}

.theme-light .page-hero__cue::after {
    content: "";
    width: 1px;
    height: 44px;
    background: currentColor;
    transform-origin: top;
    animation: cue-line 2.2s var(--ease) infinite;
}

@keyframes cue-line {
    0% { transform: scaleY(0); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 899px) {
    .theme-light .page-hero {
        min-height: auto;
        padding-bottom: 4.5rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    .theme-light .page-hero .page-hero__text,
    .theme-light .page-hero__cue::after {
        animation: none;
    }
}

/* ==========================================================
   About
   ========================================================== */

/* ---------- Story: tall arch with a circle, big opening line ---------- */
.theme-light .story__media > img {
    display: none;
}

.theme-light .story__media {
    position: relative;
    min-height: clamp(360px, 46vw, 620px);
}

.theme-light .story__arch {
    width: 74%;
    height: clamp(360px, 44vw, 600px);
}

.theme-light .story__dot {
    position: absolute !important;
    right: 0;
    bottom: -5%;
    width: 46%;
    border: 8px solid var(--page-bg);
    box-shadow: 0 30px 60px -30px rgba(15, 28, 39, 0.45);
}

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

.theme-light .story__content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.theme-light .story__content h2 + p {
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 1rem + 1.5vw, 2.3rem);
    line-height: 1.18;
    color: var(--c-heading);
}

.theme-light .story__content p {
    max-width: 46ch;
}

@media (min-width: 900px) {
    .theme-light .story__layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: clamp(3rem, 7vw, 7rem);
    }
}

@media (max-width: 899px) {
    .theme-light .story__media {
        min-height: 0;
        margin-bottom: 3rem;
    }

    .theme-light .story__arch {
        width: 78%;
        height: clamp(300px, 80vw, 460px);
    }

    .theme-light .story__dot {
        width: 40%;
        bottom: -8%;
    }
}

/* ---------- Stats: giant numerals divided by hairlines ---------- */
.theme-light .stats {
    gap: clamp(2rem, 6vw, 5rem);
}

.theme-light .stat-band {
    gap: 0;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .stat-band li {
    padding: clamp(1.5rem, 3.4vw, 3rem) 1rem;
    border-bottom: 1px solid var(--c-border);
}

.theme-light .stat-band strong {
    font-family: var(--font-serif);
    font-size: clamp(3.6rem, 1rem + 7.6vw, 9rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.theme-light .stat-band span {
    display: block;
    margin-top: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-muted);
}

@media (min-width: 768px) {
    .theme-light .stat-band li {
        border-bottom: 0;
        border-right: 1px solid var(--c-border);
    }

    .theme-light .stat-band li:last-child {
        border-right: 0;
    }
}

@media (max-width: 767px) {
    .theme-light .stat-band li:nth-child(odd) {
        border-right: 1px solid var(--c-border);
    }
}

/* ---------- Marquee: big words that slide as you scroll ---------- */
.theme-light .marquee {
    overflow: hidden;
    padding-block: 0.4rem;
}

.theme-light .marquee__track {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    width: max-content;
    white-space: nowrap;
    will-change: translate;
}

.theme-light .marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    font-family: var(--font-serif);
    font-size: clamp(3.4rem, 1rem + 8.4vw, 8.6rem);
    line-height: 1.02;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--c-brand-600);
}

.theme-light .marquee__track span:nth-child(even) {
    font-style: italic;
    text-transform: none;
    color: var(--c-brand);
    -webkit-text-stroke: 0;
}

.theme-light .marquee__track span::after {
    content: "";
    width: 0.2em;
    height: 0.2em;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c-brand-600);
    opacity: 0.55;
}

/* ---------- Values: large serif lines ---------- */
.theme-light .values .section-head {
    max-width: none;
    margin-inline: 0;
    text-align: left;
}

.theme-light .value-grid {
    display: block;
    counter-reset: value;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .value {
    counter-increment: value;
    display: grid;
    align-items: baseline;
    gap: 0.5rem 2rem;
    padding: clamp(1.1rem, 2.4vw, 2rem) 0;
    border: 0;
    border-bottom: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
}

.theme-light .value::before {
    content: counter(value, decimal-leading-zero);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-brand-600);
}

.theme-light .value .icon {
    display: none;
}

.theme-light .value h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.theme-light .value p {
    max-width: 36ch;
    margin: 0;
}

.theme-light .value:hover h3 {
    color: var(--c-brand-600);
}

@media (min-width: 900px) {
    .theme-light .value {
        grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr);
    }
}

/* ---------- Team: portraits in arch frames ---------- */
.theme-light .team .section-head {
    max-width: none;
    margin-inline: 0;
    text-align: left;
}

.theme-light .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
}

.theme-light .team-card {
    width: min(300px, 100%);
    padding: 0;
    text-align: left;
}

.theme-light .team-card__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 0 1.25rem;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(160deg, var(--c-brand) 0%, var(--c-brand-700) 100%);
    box-shadow: 0 30px 60px -34px rgba(15, 28, 39, 0.5);
}

.theme-light .team-card__initials {
    font-family: var(--font-serif);
    font-size: clamp(3.4rem, 2rem + 4vw, 5.4rem);
    font-weight: 400;
}

.theme-light .team-card__name {
    margin-bottom: 0.3rem;
    font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem);
    line-height: 1;
}

.theme-light .team-card__role {
    margin-bottom: 0.75rem;
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-brand-600);
}

@media (min-width: 768px) {
    .theme-light .team-card:nth-child(even) {
        margin-top: 3.5rem;
    }
}

/* ==========================================================
   Shared helpers
   ========================================================== */

/* Dark-only markup (the light world shows an editorial version instead) */
.theme-light .dark-only {
    display: none !important;
}

/* ==========================================================
   Detail pages: services and projects
   ========================================================== */
.theme-light .detail-layout {
    gap: clamp(2.5rem, 6vw, 6rem);
}

@media (min-width: 900px) {
    .theme-light .detail-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

/* Body text: a big opening line, then calm reading text */
.theme-light .detail-main .prose > p:first-child {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
    line-height: 1.16;
    color: var(--c-heading);
}

.theme-light .detail-main .prose h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
    font-weight: 400;
    line-height: 1;
}

.theme-light .prose h3 {
    margin-top: 2.2rem;
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-brand-600);
}

.theme-light .prose blockquote {
    position: relative;
    margin-block: 2.2rem;
    padding: 1.2rem 0 1.2rem 3.2rem;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 1rem + 1.3vw, 2.1rem);
    font-style: italic;
    line-height: 1.2;
    color: var(--c-brand-600);
}

.theme-light .prose blockquote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -0.05em;
    font-size: 4.4rem;
    font-style: normal;
    line-height: 1;
    color: var(--c-brand);
    opacity: 0.4;
}

.theme-light .prose a {
    color: var(--c-brand-600);
}

.theme-light .detail-subtitle {
    margin: clamp(3rem, 6vw, 5rem) 0 2rem;
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

/* Features: numbered editorial blocks, the second column stepped down */
.theme-light .feature-grid {
    counter-reset: feature;
    gap: 0 clamp(2rem, 4vw, 4rem);
}

.theme-light .feature {
    counter-increment: feature;
    padding: 1.4rem 0 1.8rem;
    border: 0;
    border-top: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
}

.theme-light .feature::before {
    content: counter(feature, decimal-leading-zero);
    display: block;
    margin-bottom: 0.7rem;
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 1.4rem + 2.4vw, 3.8rem);
    font-style: italic;
    line-height: 1;
    color: var(--c-brand);
}

.theme-light .feature__icon {
    display: none;
}

.theme-light .feature h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.005em;
}

.theme-light .feature p {
    max-width: 34ch;
}

@media (min-width: 640px) {
    .theme-light .feature:nth-child(even) {
        margin-top: 3.5rem;
    }
}

/* Aside: an arch-topped contact card, services as a serif list */
.theme-light .detail-aside {
    gap: 2rem;
}

.theme-light .aside-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.theme-light .aside-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 400;
}

.theme-light .aside-card--accent {
    padding: clamp(4.5rem, 12vw, 5.5rem) 2rem 2rem;
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
    background: linear-gradient(172deg, var(--c-brand) 0%, var(--c-brand-700) 100%);
    text-align: center;
    box-shadow: 0 30px 60px -34px rgba(40, 93, 137, 0.7);
}

.theme-light .aside-card--accent h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(2rem, 1.4rem + 1.4vw, 2.7rem);
}

.theme-light .aside-card--accent p {
    max-width: 24ch;
    margin-inline: auto;
}

.theme-light .aside-links a {
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--c-heading);
}

.theme-light .aside-links a:hover,
.theme-light .aside-links a.is-active {
    background: none;
    color: var(--c-brand-600);
}

.theme-light .aside-links a.is-active {
    font-style: italic;
}

.theme-light .aside-links .icon {
    color: var(--c-brand);
}

/* ==========================================================
   Work: list and project pages
   ========================================================== */

/* Filters as a row of serif words with a drawn underline */
.theme-light .filter-bar {
    gap: 0.3rem clamp(1.2rem, 3vw, 2.4rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border-strong);
}

.theme-light .filter-bar__item {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--c-muted);
}

.theme-light .filter-bar__item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15em;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.theme-light .filter-bar__item:hover {
    border: 0;
    color: var(--c-brand-600);
}

.theme-light .filter-bar__item:hover::after,
.theme-light .filter-bar__item.is-active::after {
    transform: scaleX(1);
}

.theme-light .filter-bar__item.is-active {
    border: 0;
    background: none;
    font-style: italic;
    color: var(--c-heading);
}

/* Project list rows: numbered, they slide aside on hover */
.theme-light .showcase__more {
    counter-reset: more;
}

.theme-light .showcase__more li {
    counter-increment: more;
}

.theme-light .showcase__more a {
    transition: padding 0.5s var(--ease), color 0.3s ease;
}

.theme-light .showcase__more a:hover {
    padding-left: 1.2rem;
}

.theme-light .showcase__more span::before {
    content: counter(more, decimal-leading-zero);
    margin-right: 1.4rem;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    vertical-align: middle;
    color: var(--c-brand-600);
}

/* ---------- Photo variants for projects ---------- */
.theme-light .daylight--cover {
    width: min(100%, 720px);
    height: min(76svh, 720px);
    margin-inline: auto;
    border-radius: 999px 999px 0 0;
    clip-path: inset(42% 14% 0 14% round 999px 999px 0 0);
}

.theme-light .daylight--cover.is-in {
    clip-path: inset(0 0 0 0 round 0);
}

.theme-light .daylight--frame {
    width: min(100%, 640px);
    height: min(70svh, 640px);
    border-radius: var(--radius-xl);
    clip-path: inset(100% 0 0 0);
}

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

/* ---------- Project: cover scene ---------- */
.theme-light .project-cover {
    display: grid;
    place-items: center;
    padding-block: calc(var(--header-h) + 1rem) 3rem;
    background: linear-gradient(180deg, #e8f0f7 0%, var(--page-bg) 100%);
}

/* The category as a huge outline word, with the arch standing in front of it */
.theme-light .project-cover__inner {
    position: relative;
    display: grid;
    place-items: center;
}

.theme-light .project-cover__word {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    margin: 0;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: clamp(5.5rem, 2rem + 17vw, 17rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px var(--c-brand-600);
    pointer-events: none;
}

.theme-light .project-cover .daylight {
    position: relative;
    z-index: 1;
}

/* ---------- Project: key features as large type ---------- */
.theme-light .project-features {
    padding-block: var(--space-section);
}

.theme-light .project-features .eyebrow {
    margin-bottom: 1.5rem;
    color: var(--c-brand-600);
}

.theme-light .project-features__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pf;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .project-features__list li {
    counter-increment: pf;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding: clamp(1rem, 2.4vw, 1.9rem) 0;
    border-bottom: 1px solid var(--c-border-strong);
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 1rem + 3.4vw, 4rem);
    line-height: 1.02;
    color: var(--c-heading);
}

.theme-light .project-features__list li::before {
    content: counter(pf, decimal-leading-zero);
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-brand-600);
}

/* ---------- Project: gallery, one pinned scene per screenshot ---------- */
.theme-light .gallery-scene {
    display: grid;
    align-items: center;
    padding-block: calc(var(--header-h) + 1.5rem) 3rem;
}

.theme-light .gallery-scene__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.theme-light .gallery-scene__index {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(4.6rem, 2rem + 11vw, 11rem);
    line-height: 0.85;
    color: var(--c-brand);
}

.theme-light .gallery-scene__index span {
    color: var(--c-heading);
}

.theme-light .gallery-scene__index small {
    display: block;
    max-width: 22ch;
    margin-top: 1.1rem;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--c-muted);
}

.theme-light .gallery-scene__link {
    display: block;
    justify-self: center;
    width: min(100%, 640px);
}

.theme-light .gallery-scene__frame {
    width: 100%;
    height: min(72svh, 640px);
    box-shadow: 0 40px 80px -40px rgba(15, 28, 39, 0.45);
}

@media (min-width: 900px) {
    .theme-light .gallery-scene__inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .theme-light .gallery-scene--right .gallery-scene__index {
        order: 2;
        text-align: right;
    }

    .theme-light .gallery-scene--right .gallery-scene__index small {
        margin-left: auto;
    }

    .theme-light .gallery-scene--right .gallery-scene__link {
        order: 1;
    }
}

@media (max-width: 899px) {
    .theme-light .gallery-scene__frame {
        height: min(66svh, 520px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-light .daylight--cover,
    .theme-light .daylight--frame {
        clip-path: none;
    }
}

/* ==========================================================
   Blog: editorial index and article
   ========================================================== */
.theme-light .post-index {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .post-index li {
    border-bottom: 1px solid var(--c-border-strong);
}

.theme-light .post-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-areas:
        "meta thumb"
        "main thumb";
    gap: 0.6rem 1.25rem;
    align-items: center;
    padding: clamp(1.3rem, 3vw, 2.4rem) 0;
    color: inherit;
    text-decoration: none;
}

.theme-light .post-row__num {
    display: none;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-brand-600);
}

.theme-light .post-row__meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.theme-light .post-row__meta span {
    color: var(--c-brand-600);
}

.theme-light .post-row__main {
    grid-area: main;
    display: block;
    transition: translate 0.6s var(--ease);
}

.theme-light .post-row__title {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 1rem + 3.2vw, 4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--c-heading);
    transition: color 0.4s ease;
}

.theme-light .post-row__excerpt {
    display: block;
    max-width: 56ch;
    margin-top: 0.9rem;
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--c-muted);
}

.theme-light .post-row__thumb {
    grid-area: thumb;
    display: block;
    width: 88px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 999px 999px 0 0;
    background: var(--c-brand-50);
}

.theme-light .post-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.theme-light .post-row:hover .post-row__title,
.theme-light .post-row:focus-visible .post-row__title {
    color: var(--c-brand-600);
}

.theme-light .post-row:hover .post-row__main {
    translate: 0.8rem 0;
}

.theme-light .post-row:hover .post-row__thumb img {
    transform: scale(1.1);
}

@media (min-width: 900px) {
    .theme-light .post-row {
        grid-template-columns: 3.5rem 10.5rem minmax(0, 1fr) 150px;
        grid-template-areas: "num meta main thumb";
        gap: 1.5rem;
    }

    .theme-light .post-row__num {
        display: block;
        grid-area: num;
    }

    .theme-light .post-row__meta {
        flex-direction: column;
    }

    .theme-light .post-row__thumb {
        width: 150px;
    }
}

/* Pagination as quiet text links */
.theme-light .pagination {
    margin-top: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.theme-light .pagination a {
    color: var(--c-heading);
}

.theme-light .pagination a:hover {
    color: var(--c-brand-600);
}

/* ---------- Article: a narrow reading column, calm type ---------- */
.theme-light .article-hero {
    padding: calc(var(--header-h) + 3rem) 0 clamp(2rem, 4vw, 3.5rem);
    border-bottom: 0;
}

.theme-light .article-hero__title {
    margin-bottom: 1.4rem;
    font-size: clamp(2.6rem, 1rem + 4.8vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.theme-light .article-hero__meta {
    gap: 0.5rem 1.6rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.theme-light .article-hero .breadcrumbs ol {
    margin-bottom: 1.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.theme-light .article-cover {
    margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.theme-light .article-cover img {
    border-radius: 220px 220px var(--radius-xl) var(--radius-xl);
    box-shadow: 0 40px 80px -40px rgba(15, 28, 39, 0.45);
}

.theme-light .prose--article {
    font-size: 1.1875rem;
    line-height: 1.8;
}

.theme-light .prose--article > p:first-child {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
    line-height: 1.2;
    color: var(--c-heading);
}

.theme-light .prose--article h2 {
    margin-top: 2.4em;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.2rem + 2.2vw, 3.2rem);
    font-weight: 400;
    line-height: 1.02;
}

.theme-light .prose--article li::marker {
    color: var(--c-brand);
}

.theme-light .share span {
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theme-light .share a {
    background: none;
    border: 1px solid var(--c-border-strong);
    color: var(--c-heading);
}

.theme-light .share a:hover {
    border-color: var(--c-brand);
    background: var(--c-brand);
    color: var(--c-white);
}

/* ==========================================================
   Careers
   ========================================================== */
.theme-light .careers-values__layout {
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.theme-light .careers-values__media {
    position: relative;
    min-height: clamp(340px, 44vw, 580px);
}

.theme-light .careers-values__arch {
    width: 76%;
    height: clamp(340px, 44vw, 560px);
    margin-left: auto;
}

.theme-light .careers-values__dot {
    position: absolute !important;
    left: 0;
    bottom: -5%;
    width: 44%;
    border: 8px solid var(--page-bg);
    box-shadow: 0 30px 60px -30px rgba(15, 28, 39, 0.45);
}

@media (min-width: 900px) {
    .theme-light .careers-values__layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    /* The rows sit in a narrower column here: number, title, text stacked */
    .theme-light .careers-values .value {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .theme-light .careers-values .value p {
        grid-column: 2;
    }
}

@media (max-width: 899px) {
    .theme-light .careers-values__media {
        min-height: 0;
    }

    .theme-light .careers-values__arch {
        width: 78%;
        height: clamp(300px, 80vw, 460px);
    }
}

/* Open roles: a numbered list that slides on hover */
.theme-light .roles__title {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    font-size: clamp(2.4rem, 1rem + 5vw, 6rem);
    line-height: 0.95;
    text-transform: uppercase;
}

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

.theme-light .roles__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: role;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .roles__list li {
    counter-increment: role;
    border-bottom: 1px solid var(--c-border-strong);
}

.theme-light .roles__list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.6rem) 0;
    color: var(--c-heading);
    text-decoration: none;
    transition: padding 0.5s var(--ease), color 0.3s ease;
}

.theme-light .roles__list span {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem);
    line-height: 1.02;
}

.theme-light .roles__list span::before {
    content: counter(role, decimal-leading-zero);
    margin-right: 1.4rem;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    vertical-align: middle;
    color: var(--c-brand-600);
}

.theme-light .roles__list small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-muted);
}

.theme-light .roles__list a:hover {
    padding-left: 1.2rem;
    color: var(--c-brand-600);
}

.theme-light .roles__list a:hover small {
    color: var(--c-brand-600);
}

/* Forms: serif headings, otherwise left calm and static */
.theme-light .form-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem);
    font-weight: 400;
    line-height: 1;
}

.theme-light .form-card {
    box-shadow: 0 40px 80px -50px rgba(15, 28, 39, 0.4);
}

/* ==========================================================
   Contact: the number is the centre of the page
   ========================================================== */
.theme-light .page-hero--phone .page-hero__foot {
    display: none;
}

.theme-light .page-hero--phone {
    padding-bottom: 3rem;
}

.theme-light .page-hero__phone {
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-decoration: none;
}

/* Contact details as a ruled list: label left, value in serif */
.theme-light .contact-info > h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem);
    font-weight: 400;
    line-height: 1;
}

.theme-light .contact-cards {
    gap: 0;
    margin-top: 1.8rem;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .contact-cards li {
    padding: 1.1rem 0;
    border: 0;
    border-bottom: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
}

.theme-light .contact-cards__icon {
    display: none;
}

.theme-light .contact-cards li > div {
    display: grid;
    flex: 1;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: baseline;
}

.theme-light .contact-cards h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-brand-600);
}

.theme-light .contact-cards a,
.theme-light .contact-cards p {
    grid-column: 2;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--c-heading);
    overflow-wrap: anywhere;
}

.theme-light .contact-cards a:hover {
    color: var(--c-brand-600);
}

/* ==========================================================
   Legal pages, thank-you and error pages: light styling, calm motion
   ========================================================== */
.theme-light .page-hero--compact {
    min-height: min(64svh, 640px);
    padding-bottom: 4rem;
}

.theme-light .legal-toc {
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
}

.theme-light .legal-toc__title {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-brand-600);
}

.theme-light .legal-toc a {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--c-heading);
}

.theme-light .legal-toc a:hover {
    color: var(--c-brand-600);
}

.theme-light .legal h2 {
    margin-top: 2.4em;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.8rem);
    font-weight: 400;
    line-height: 1.05;
}

.theme-light .legal h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.005em;
    text-transform: none;
    color: var(--c-heading);
}

.theme-light .section--center {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 3rem);
}

.theme-light .section--center h1 {
    font-size: clamp(2.4rem, 1rem + 4vw, 5rem);
    text-transform: uppercase;
}

.theme-light .error-page__code {
    position: relative;
    z-index: 2;
    margin-top: -3.5rem;
    font-size: clamp(8rem, 3rem + 20vw, 22rem);
    line-height: 0.85;
}

.theme-light .section--center .daylight--small {
    position: relative;
    z-index: 1;
    width: min(240px, 56vw);
    height: 280px;
}

/* ==========================================================
   Home: the older sections, brought to the same editorial language
   ========================================================== */

/* Process: numbered steps with hairlines instead of boxed cards */
.theme-light .hud::before,
.theme-light .hud::after {
    display: none;
}

.theme-light .process {
    gap: 0 clamp(1.5rem, 3vw, 3rem);
}

.theme-light .process__step {
    padding: 1.4rem 0 1.8rem;
    border: 0;
    border-top: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
}

.theme-light .process__num {
    position: static;
    display: block;
    margin-bottom: 0.8rem;
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 1.4rem + 2.6vw, 4rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--c-brand);
}

.theme-light .process__step .icon {
    display: none;
}

.theme-light .process__step h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.05;
}

/* Why us: ruled rows, the icon as a plain mark */
.theme-light .why__list {
    gap: 0;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .why__item {
    padding: 1.5rem 0;
    border: 0;
    border-bottom: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
}

.theme-light .why__item:hover {
    border-color: var(--c-border-strong);
    background: none;
}

.theme-light .why__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--c-brand);
}

.theme-light .why__item h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.05;
}

/* FAQ: a ruled accordion with serif questions */
.theme-light .faq-list {
    gap: 0;
    border-top: 1px solid var(--c-border-strong);
}

.theme-light .faq {
    border: 0;
    border-bottom: 1px solid var(--c-border-strong);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.theme-light .faq summary {
    padding: 1.4rem 0;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.theme-light .faq summary:hover,
.theme-light .faq[open] summary {
    color: var(--c-brand-600);
}

.theme-light .faq p {
    max-width: 62ch;
    padding: 0 0 1.6rem;
}

/* ==========================================================
   Footer: a giant wordmark closes the page
   ========================================================== */
.theme-light .footer-wordmark {
    margin: 0;
    padding-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    font-family: var(--font-serif);
    font-size: clamp(4.4rem, 1rem + 20.5vw, 18rem);
    line-height: 0.8;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.08);
    user-select: none;
}

.theme-light .footer-wordmark::before {
    content: "Stape";
}

.theme-light .footer-wordmark::after {
    content: "Tech";
    font-style: italic;
    color: rgba(34, 196, 239, 0.22);
}

/* ---------- Mobile menu: serif links, like the rest of the world ---------- */
@media (max-width: 1023px) {
    .theme-light .nav__link {
        padding-block: 0.7rem;
        font-family: var(--font-serif);
        font-size: clamp(2rem, 8vw, 2.8rem);
        font-weight: 400;
        line-height: 1.05;
    }

    .theme-light .nav__mobile-contact a {
        font-size: var(--fs-base);
    }
}

/* Local time in the contact ending (the line stays on one row, wider than the band's 560px) */
.theme-light .cta-contact__meta {
    max-width: none;
}

.theme-light .cta-contact__time {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.75);
}

/* Without JavaScript the photo frames cannot open on scroll, so they simply show */
html:not(.js) .theme-light .daylight {
    clip-path: none !important;
}

html:not(.js) .theme-light .daylight img,
html:not(.js) .theme-light .daylight__word {
    opacity: 1;
    transform: none;
}

/* ---------- Contact ending: rising arches, the site's shape language as a pattern ---------- */
.theme-light .cta-band {
    background:
        repeating-radial-gradient(circle at 50% 132%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 72px),
        radial-gradient(120% 90% at 50% 0%, #2d6ea8 0%, #1a4470 55%, #133454 100%);
}
