/* ========================================
   CLARITI — SCROLL-DRIVEN CANVAS EXPERIENCE
   ======================================== */

/* ========== TOKENS ========== */
:root {
    --accent:       #a5cdd2;
    --accent-dark:  #7ab5be;
    --bg-light:     #fafaf8;
    --bg-dark:      #0f0f0f;
    --text-light:   #1a1a1a;
    --text-dark:    #f2f2f0;
    /* Proxima Nova: load via Adobe Fonts kit for authentic version; Montserrat is the visual stand-in */
    --font-display: proxima-nova, 'Montserrat', sans-serif;
    --font-body:    'Leitura Sans', 'Leitura News', Georgia, serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Lenis handles smooth scroll, no CSS scroll-behavior */
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========== LOADER ========== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-brand {
    line-height: 1;
}

.loader-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.9;
}

#loader-bar {
    width: 260px;
    height: 1px;
    background: rgba(165, 205, 210, 0.15);
    position: relative;
    overflow: hidden;
}

#loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.15s ease;
}

#loader-percent {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.6;
}

/* ========== FIXED HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.75rem 5vw 1.75rem 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: screen; /* blends entire header against canvas — black bg disappears, white stays */
}

/* Light mode: hero image is visible — disable screen blend so logo/nav show on white bg */
.site-header.on-light {
    mix-blend-mode: normal;
}
.site-header.on-light .logo {
    filter: none;
}
.site-header.on-light nav a {
    color: rgba(30, 45, 55, 0.5);
}
.site-header.on-light nav a:hover {
    color: var(--accent-dark);
}

/* Logo: favicon mark — hidden until hero scrolls away, fades in at About section */
.site-header .logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: grayscale(1) invert(1) brightness(3);
    opacity: 0;
    transition: opacity 0.4s ease;
    background-image: url('../Brand_Assets/Clariti_FaviCon.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.site-header nav {
    display: flex;
    gap: 3rem;
}

.site-header nav a {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header nav a:hover {
    color: var(--accent);
}

/* Header right group: sound button + logo */
.header-end {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sound-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.75;
    flex-shrink: 0;
}

.sound-btn:hover {
    color: var(--accent);
    opacity: 1;
}

/* Default: show ON icon, hide OFF icon */
.sound-btn .icon-sound-off { display: none; }
.sound-btn .icon-sound-on  { display: block; }

/* Muted state: show OFF icon, hide ON icon */
.sound-btn.is-muted .icon-sound-on  { display: none; }
.sound-btn.is-muted .icon-sound-off { display: block; }

/* Inherit header on-light adjustments */
.site-header.on-light .sound-btn {
    color: rgba(30, 45, 55, 0.5);
}
.site-header.on-light .sound-btn:hover {
    color: var(--accent-dark);
}

/* ========== HERO — canvas scroll with transparent brand overlay ========== */
.hero-standalone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    background: transparent;   /* canvas (z-index 0) shows through */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    will-change: opacity;
}

/* Hero logo — purple sky band at top, smoke blob aligned over volcano peak */
#hero-logo {
    position: fixed;
    top: -3vh;
    left: 57%;
    transform: translateX(-50%);
    z-index: 1;
    width: 50vw;
    mix-blend-mode: multiply;
    pointer-events: none;
    will-change: opacity;
}

#hero-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.15) 0%,
        rgba(15, 15, 15, 0.05) 45%,
        rgba(15, 15, 15, 0.35) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
    align-items: flex-end;
    padding: 0 5vw 3rem;
    width: 100%;
    will-change: opacity, transform;
}

/* Canvas — fixed fullscreen, always visible from load */
canvas#canvas {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 0;
}

canvas#cloud-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-tagline {
    font-size: clamp(0.82rem, 1.25vw, 1.05rem);
    color: #a3cbd0;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.scroll-indicator {
    color: rgba(242, 242, 240, 0.45);
    font-size: 1rem;
    animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(10px); }
}

/* ========== DARK OVERLAY ========== */
#dark-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg-dark);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

/* ========== MOUNTAIN SCENE (footer background) ========== */
#mountain-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
}

#mountain-scene canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ========== SCROLL CONTAINER ========== */
#scroll-container {
    position: relative;
    height: 900vh;
    z-index: 5;
}

/* ========== SCROLL SECTIONS ========== */
.scroll-section {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.scroll-section.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Side zones */
.align-left {
    padding-left: 5vw;
    padding-right: 55vw;
}

.align-right {
    padding-left: 55vw;
    padding-right: 5vw;
}

.align-left  .section-inner,
.align-right .section-inner {
    max-width: 40vw;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 15, 0.92) 0%,
        rgba(20, 32, 34, 0.88) 50%,
        rgba(15, 15, 15, 0.82) 100%
    );
    padding: 3rem 2.5rem;
    border-radius: 3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(165, 205, 210, 0.07);
}

/* Center exception for Contact CTA */
.align-center {
    justify-content: center;
    padding: 0 5vw;
}

.align-center .section-inner {
    max-width: 680px;
    text-align: center;
    background: linear-gradient(
        160deg,
        rgba(15, 15, 15, 0.97) 0%,
        rgba(20, 35, 37, 0.93) 55%,
        rgba(15, 15, 15, 0.92) 100%
    );
    padding: 4rem 3.5rem;
    border-radius: 3px;
    border: 1px solid rgba(165, 205, 210, 0.08);
}

/* ========== SECTION TYPOGRAPHY ========== */
.section-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.section-subheading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.section-body {
    font-size: 0.975rem;
    line-height: 1.85;
    color: rgba(242, 242, 240, 0.65);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

/* ========== SERVICE LIST ========== */
.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-list li {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: var(--text-dark);
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(165, 205, 210, 0.12);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.service-list li:first-child {
    border-top: 1px solid rgba(165, 205, 210, 0.12);
}

/* ========== STATS SECTION ========== */
.section-stats {
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    text-align: center;
    padding: 0 5vw;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-dark);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(242, 242, 240, 0.4);
    font-weight: 500;
}


/* ========== WORK — FULL-SCREEN SECTION ========== */
.section-work-full {
    padding: 0;
    align-items: stretch;
}

.work-full-inner {
    position: relative; /* anchor for arrow buttons */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.97) 0%,
        rgba(15, 26, 28, 0.95) 60%,
        rgba(10, 10, 10, 0.97) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(165, 205, 210, 0.08);
    border-bottom: 1px solid rgba(165, 205, 210, 0.08);
    padding: 4vh 0 3vh;
    min-height: 100vh;
}

.work-full-header {
    padding: 0 6vw 3vh;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.work-full-header .section-label {
    margin-bottom: 0;
}

.work-full-header .section-heading {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4rem);
}

/* ========== WORK SCROLL GALLERY ========== */
.work-scroll-area {
    position: relative;
    overflow: hidden;
}

.work-scroll-track {
    display: flex;
    gap: 3vw;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3vh 6vw 3vh;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.work-scroll-track::-webkit-scrollbar {
    display: none;
}

/* First card: margin pushes it away from the left clip edge */
.work-scroll-track .work-card:first-child {
    margin-left: 2vw;
}

/* Each card: ~48vw so ~2 are visible, hinting more to scroll */
.work-card {
    flex: 0 0 auto;
    width: clamp(300px, 48vw, 780px);
    margin: 0;
    position: relative;
    border-radius: 12px;
    padding: 1rem;

    /* Spotlight glow variables — updated by JS on pointermove */
    --glow-hue:    186;
    --glow-spread: 50;
    --glow-size:   480;
    --glow-border: 1px;
    --hue: calc(var(--glow-hue) + (var(--xp, 0) * var(--glow-spread)));
    --spot: calc(var(--glow-size) * 1px);

    /* Spotlight fill — radial gradient centred on cursor, relative to this card */
    background-image: radial-gradient(
        var(--spot) var(--spot) at
        calc(var(--x, -999) * 1px)
        calc(var(--y, -999) * 1px),
        hsl(var(--hue) 33% 73% / 0.11),
        transparent 100%
    );
    transition: background-image 0.05s;
}

/* Glowing border — only the border edge lights up (mask trick) */
.work-card::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    border: var(--glow-border) solid transparent;
    background-image: radial-gradient(
        calc(var(--spot) * 0.6) calc(var(--spot) * 0.6) at
        calc(var(--x, -999) * 1px)
        calc(var(--y, -999) * 1px),
        hsl(var(--hue) 33% 73% / 0.85),
        transparent 100%
    );
    background-size: calc(100% + 2px) calc(100% + 2px);
    background-position: 50% 50%;
    /* clip gradient to the border strip only */
    mask:
        linear-gradient(transparent, transparent),
        linear-gradient(white, white);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    -webkit-mask:
        linear-gradient(#0000, #0000),
        linear-gradient(#fff, #fff);
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    filter: brightness(1.6);
    z-index: 0;
}

.work-card-img-wrap {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    position: relative;
}

/* Subtle gradient overlay on each card */
.work-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(10, 10, 10, 0.55) 100%
    );
    border-radius: 4px;
}

.work-card-img-wrap img,
.work-card-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Digital Campaign card — contain so full video shows without cropping */
.work-card--video .work-card-img-wrap {
    border: 1px solid rgba(165, 205, 210, 0.35);
    background: #000;
}
.work-card--video .work-card-img-wrap video {
    object-fit: contain;
    object-position: center center;
}

/* Brand Re-design card — border + contain so full video shows */
.work-card--brand .work-card-img-wrap {
    border: 1px solid rgba(165, 205, 210, 0.35);
    background: #000;
}
.work-card--brand .work-card-img-wrap video {
    object-fit: contain;
    object-position: center center;
}

.work-card:hover .work-card-img-wrap img,
.work-card:hover .work-card-img-wrap video {
    transform: scale(1.06);
}

.work-card figcaption {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-top: 1rem;
}

.work-card-num {
    font-size: 0.58rem;
    color: var(--accent);
    opacity: 0.65;
    font-weight: 600;
    letter-spacing: 0.12em;
    flex-shrink: 0;
}

.work-card-title {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.1vw, 1.1rem);
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.015em;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-card-cat {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(242, 242, 240, 0.35);
    font-weight: 500;
    flex-shrink: 0;
}

/* Custom scrollbar */
.work-scroll-bar-track {
    position: relative;
    height: 6px;
    background: rgba(165, 205, 210, 0.12);
    margin: 0 6vw 0.5vh;
    border-radius: 3px;
    /* Expand click target above and below the visible bar */
    padding: 8px 0;
    background-clip: content-box;
}

.work-scroll-bar-thumb {
    position: absolute;
    top: 8px;
    left: 0;
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    min-width: 40px; /* never too narrow to grab */
}

.work-scroll-area:hover .work-scroll-bar-thumb {
    opacity: 1;
}

/* Arrow nav buttons — positioned on work-full-inner (not inside overflow:hidden area) */
.work-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: auto !important; /* override any parent pointer-events:none */
    background: rgba(15, 15, 15, 0.75);
    border: 1px solid rgba(165, 205, 210, 0.3);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
    padding: 0;
    user-select: none;
}

.work-arrow:hover {
    background: rgba(165, 205, 210, 0.18);
    border-color: rgba(165, 205, 210, 0.6);
}

.work-arrow--left  { left:  3vw; }
.work-arrow--right { right: 3vw; }

.work-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mouse-zone hints: subtle left/right gradient edges */
.work-scroll-area::before,
.work-scroll-area::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 2rem; /* stop above the scrollbar */
    width: 8vw;
    pointer-events: none;
    z-index: 2;
}
.work-scroll-area::before {
    left: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.75), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.work-scroll-area.is-scrolled::before {
    opacity: 1;
}
.work-scroll-area::after {
    right: 0;
    background: linear-gradient(to left, rgba(10,10,10,0.6), transparent);
}

/* ========== CTA BUTTON ========== */
.cta-button {
    display: inline-block;
    padding: 0.9rem 2.75rem;
    background: transparent;
    border: 1px solid rgba(165, 205, 210, 0.5);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 1.5rem;
}

.cta-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg-dark);
    color: var(--text-dark);
    padding: 4rem 5vw;
    text-align: center;
    border-top: 1px solid rgba(165, 205, 210, 0.06);
    position: relative;
    z-index: 6;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Footer logo: SVG viewBox 0 0 112.5 75, scale=1.6 → 180×120px
   Logo content spans viewBox x≈9-111, y≈19-44 → container 163×40px */
.footer-brand {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-brand-logo {
    display: block;
    width: 163px;
    height: 42px;
    filter: grayscale(1) invert(1) brightness(3);
    mix-blend-mode: screen;
    opacity: 0.75;
    background-image: url('../Brand_Assets/Clariti_Logo.svg');
    background-size: 180px 120px;
    background-position: -14px -29px;
    background-repeat: no-repeat;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: rgba(242, 242, 240, 0.45);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(165, 205, 210, 0.06);
    font-size: 0.75rem;
    color: rgba(242, 242, 240, 0.3);
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    #scroll-container {
        height: 550vh;
    }

    /* Mobile: container=550vh, formula: P×450+50 vh */
    #about    { top: 122vh !important; }  /* 0.16×450+50 */
    #services { top: 203vh !important; }  /* 0.34×450+50 */
    .scroll-section:nth-child(3) { top: 275vh !important; }  /* 0.50×450+50, Approach */
    #work     { top: 356vh !important; }  /* 0.68×450+50, Work — earlier + longer window */
    .section-stats { top: 437vh !important; }  /* 0.86×450+50, Stats — visible on mobile */
    #contact  { top: 473vh !important; }  /* 0.94×450+50 */

    /* Collapse side zones */
    .align-left,
    .align-right {
        padding-left: 5vw;
        padding-right: 5vw;
        align-items: flex-start;
    }

    .align-left  .section-inner,
    .align-right .section-inner {
        max-width: 100%;
        background: linear-gradient(
            135deg,
            rgba(15, 15, 15, 0.95) 0%,
            rgba(20, 32, 34, 0.90) 50%,
            rgba(15, 15, 15, 0.88) 100%
        );
        padding: 2rem 1.75rem;
        border-radius: 3px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
    }

    .hero-heading {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }

    /* Hero logo: centered and full-width on mobile portrait */
    #hero-logo {
        width: 100vw;
        top: 18vh;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Tagline: single line on mobile — no wrap */
    .hero-tagline {
        font-size: clamp(0.58rem, 2.6vw, 0.8rem);
        white-space: nowrap;
        text-align: right;
    }

    .hero-content {
        padding: 0 4vw 2rem;
        gap: 1.5rem;
    }

    .site-header {
        padding: 1.25rem 4vw 1.25rem 6vw;
    }

    .site-header nav {
        gap: 1rem;
    }

    .header-end {
        margin-left: auto;
        padding-left: 0;
        gap: 0.75rem;
    }

    .site-header nav a {
        font-size: 0.65rem;
    }

    /* Logo: mobile — square favicon mark, smaller than desktop */
    .site-header .logo {
        width: 20px;
        height: 20px;
    }

    footer {
        padding: 3rem 5vw;
    }

}
