/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 10vw 10vh;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 10rem);
    line-height: 1;
    padding-bottom: 0.15em;
    letter-spacing: -0.02em;
    overflow: hidden;
    max-width: 12ch;
    /* Champagne rather than the page gold: this sits on night photography,
       where #987B58 loses most of its contrast. */
    color: #E9D7B8;
    text-shadow: 0 2px 28px rgba(10, 8, 5, 0.45);
}

.hero-title span { 
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    will-change: opacity, transform;
}

.hero-title span.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scroll-cue {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 4vh;
    opacity: 0;
    transition: opacity 0.8s ease 1s;
}

.hero-scroll-cue.visible {
    opacity: 1;
}

.hero-scroll-line {
    display: block;
    width: 40px;
    height: 1px;
    background-color: rgba(233, 215, 184, 0.7);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--lxe-dark-gold);
    animation: scrollLineMove 1.5s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

.hero-scroll-cue p {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: #E9D7B8;
    text-transform: uppercase;
}

/* ============================================
   SECTION TEXTURES - thematic low-opacity backgrounds
   ============================================ */

/* Founder: rotating wireframe sphere is rendered by js/sphere.js
   onto a canvas injected as the section's first child. */
.lxe-sphere-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Process: blueprint technical grid */
#process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cg%20fill='none'%20stroke='%23987B58'%3E%3Cpath%20d='M120%200H0V120'%20stroke-width='0.7'/%3E%3Cpath%20d='M30%200v120M60%200v120M90%200v120M0%2030h120M0%2060h120M0%2090h120'%20stroke-width='0.18'/%3E%3Cpath%20d='M55%2060h10M60%2055v10'%20stroke-width='0.6'/%3E%3Cpath%20d='M-5%200h10M0%20-5v10M115%200h10M120%20-5v10M-5%20120h10M0%20115v10M115%20120h10M120%20115v10'%20stroke-width='0.6'/%3E%3Ccircle%20cx='60'%20cy='60'%20r='1'%20fill='%23987B58'%20stroke='none'%20opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    background-repeat: repeat;
}

/* Portfolio: topographic contour map */
.portfolio-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20900%20640%22%20width=%22900%22%20height=%22640%22%3E%3Cg%20fill=%22none%22%20stroke=%22%23987B58%22%20stroke-linecap=%22round%22%3E%3Cpath%20stroke-width=%221.6%22%20d=%22M450%2040%20C620%2046%20780%20120%20812%20250%20C842%20372%20760%20520%20590%20570%20C430%20618%20220%20590%20130%20480%20C48%20380%2070%20220%20190%20130%20C280%2062%20360%2037%20450%2040%20Z%22/%3E%3Cpath%20stroke-width=%220.8%22%20d=%22M452%2078%20C598%2084%20736%20148%20764%20258%20C790%20362%20716%20486%20570%20530%20C428%20572%20246%20548%20168%20454%20C96%20366%20116%20232%20218%20156%20C296%2098%20372%2074%20452%2078%20Z%22/%3E%3Cpath%20stroke-width=%220.8%22%20d=%22M455%20116%20C580%20122%20692%20176%20716%20268%20C738%20354%20674%20454%20550%20490%20C424%20526%20272%20504%20206%20426%20C144%20352%20162%20244%20248%20182%20C314%20134%20380%20112%20455%20116%20Z%22/%3E%3Cpath%20stroke-width=%221.4%22%20d=%22M458%20156%20C562%20162%20648%20206%20668%20280%20C686%20348%20632%20424%20530%20452%20C424%20482%20300%20462%20246%20400%20C194%20340%20210%20256%20280%20208%20C334%20170%20390%20152%20458%20156%20Z%22/%3E%3Cpath%20stroke-width=%220.8%22%20d=%22M460%20196%20C544%20202%20606%20236%20622%20292%20C636%20344%20592%20396%20512%20418%20C424%20442%20328%20424%20286%20376%20C246%20330%20260%20268%20314%20232%20C358%20204%20404%20192%20460%20196%20Z%22/%3E%3Cpath%20stroke-width=%220.8%22%20d=%22M462%20238%20C524%20242%20566%20266%20578%20304%20C588%20340%20554%20374%20494%20388%20C426%20404%20358%20390%20328%20356%20C300%20322%20312%20280%20350%20256%20C382%20246%20416%20236%20462%20238%20Z%22/%3E%3Cpath%20stroke-width=%220.8%22%20d=%22M462%20278%20C504%20282%20528%20296%20536%20318%20C542%20340%20520%20358%20480%20366%20C434%20374%20392%20366%20374%20344%20C358%20324%20366%20300%20392%20288%20C412%20280%20434%20276%20462%20278%20Z%22/%3E%3Cpath%20stroke-width=%221.2%22%20d=%22M180%20120%20C250%2096%20330%20116%20352%20168%20C372%20216%20330%20268%20254%20278%20C182%20288%20112%20254%20104%20200%20C98%20156%20126%20138%20180%20120%20Z%22/%3E%3Cpath%20stroke-width=%220.7%22%20d=%22M196%20148%20C246%20130%20304%20144%20320%20180%20C334%20214%20302%20250%20246%20256%20C192%20262%20142%20238%20138%20200%20C134%20168%20156%20162%20196%20148%20Z%22/%3E%3Cpath%20stroke-width=%220.7%22%20d=%22M212%20176%20C244%20164%20280%20174%20290%20196%20C298%20216%20278%20238%20242%20240%20C208%20242%20178%20226%20176%20204%20C174%20188%20186%20186%20212%20176%20Z%22/%3E%3Cpath%20stroke-width=%221.2%22%20d=%22M700%20420%20C766%20406%20830%20432%20838%20482%20C846%20528%20796%20568%20726%20566%20C662%20564%20610%20528%20616%20480%20C620%20442%20650%20430%20700%20420%20Z%22/%3E%3Cpath%20stroke-width=%220.7%22%20d=%22M706%20448%20C752%20438%20796%20456%20802%20490%20C806%20520%20772%20546%20724%20544%20C680%20542%20646%20518%20650%20486%20C654%20460%20672%20454%20706%20448%20Z%22/%3E%3Cpath%20stroke-width=%220.7%22%20d=%22M712%20476%20C740%20470%20764%20482%20768%20500%20C770%20518%20750%20532%20722%20530%20C696%20528%20678%20514%20682%20496%20C684%20482%20692%20480%20712%20476%20Z%22/%3E%3Cpath%20stroke-width=%220.6%22%20opacity=%220.8%22%20d=%22M340%2096%20C300%2072%20240%2062%20190%2078%22%20stroke-dasharray=%222%206%22/%3E%3Cpath%20stroke-width=%220.6%22%20opacity=%220.8%22%20d=%22M636%20552%20C600%20578%20548%20592%20500%20588%22%20stroke-dasharray=%222%206%22/%3E%3Cg%20fill=%22%23987B58%22%20stroke=%22none%22%20opacity=%220.7%22%3E%3Ccircle%20cx=%22452%22%20cy=%22322%22%20r=%222.5%22/%3E%3Ccircle%20cx=%22232%22%20cy=%22204%22%20r=%222.2%22/%3E%3Ccircle%20cx=%22724%22%20cy=%22500%22%20r=%222.2%22/%3E%3C/g%3E%3Cg%20fill=%22%23987B58%22%20stroke=%22none%22%20font-family=%22Helvetica,%20Arial,%20sans-serif%22%20font-size=%2212%22%20letter-spacing=%222%22%20opacity=%220.6%22%3E%3Ctext%20x=%22462%22%20y=%22318%22%3E%2B128.40%3C/text%3E%3Ctext%20x=%22242%22%20y=%22200%22%3E%2B96.20%3C/text%3E%3Ctext%20x=%22734%22%20y=%22496%22%3E%2B84.60%3C/text%3E%3C/g%3E%3Cg%20fill=%22%23987B58%22%20stroke=%22none%22%20font-family=%22Helvetica,%20Arial,%20sans-serif%22%20font-size=%2210%22%20letter-spacing=%221.5%22%20opacity=%220.55%22%3E%3Ctext%20x=%22436%22%20y=%2246%22%3E120%3C/text%3E%3Ctext%20x=%22440%22%20y=%22160%22%3E115%3C/text%3E%3Ctext%20x=%22444%22%20y=%22242%22%3E110%3C/text%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 90%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   FOUNDER SECTION & GLASS CONTAINERS
   ============================================ */
#founder-section, .content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 10vw;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Inherits from base.css - no duplicate needed here */

/* Isolated text-block sizing specifically for the founder section */
#founder-section {
    justify-content: center;
    align-items: flex-start;
}

#founder-section .glass-container {
    max-width: 620px;
    margin: 0 0 0 8vw;
    padding: 3.5rem 4rem;
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 1024px) {
    #founder-section .glass-container {
        max-width: 680px;
        margin: 0 auto;
    }
}

/* Tablets: centre the card. The `margin: 0` on `#founder-section .text-block`
   below has the same specificity and comes later, so it was silently
   cancelling the `margin: 0 auto` above and leaving the card hard left. */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #founder-section .glass-container.text-block { margin: 0 auto; }
}

/* Left-align the entire text block in the founder section */
#founder-section .text-block {
    text-align: left;
    margin: 0; /* Removes auto-centering of the block itself if needed */
}

#founder-section .subtitle {
    text-align: left;
    margin-right: 0;
}

.text-block h2 {
    color: var(--lxe-gold);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin: 2.5vh 0;
    line-height: 1.2;
}

/* Body copy only. This used to be `.text-block p`, which also matched the
   eyebrow, the founder name and the role label - out-specifying their own
   rules and rendering the eyebrow and role label at ~2x size. */
.text-block .body-text {
    color: var(--lxe-dark-gold);
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.95;
    text-align: left;
}


/* ============================================
   EXPERTISE - SCROLLYTELLING OVERLAY
   Services present themselves one-by-one over the
   pinned photo stage, driven by js/scene.js.
   ============================================ */
#expertise-section {
    position: relative;
}

.xp-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.xp-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Header: eyebrow + chapter ─────────────── */
.xp-head {
    position: absolute;
    top: 14vh;
    left: 6vw;
}

.xp-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    /* Over photography the page gold (#987B58) is too dark to read; a
       lighter champagne keeps the brand tone with real contrast. */
    color: #D9C3A0;
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0,0,0,0.45);
    margin-bottom: 1.1rem;
}

.xp-chapter {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    color: #F5EFE6;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.xp-chapter-line {
    display: block;
    width: 44px;
    height: 1px;
    background: var(--lxe-gold);
    opacity: 0.8;
}

#xp-chapter-label {
    display: inline-block;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

#xp-chapter-label.switching {
    opacity: 0;
    transform: translateY(10px);
}

/* ── Scroll hint ───────────────────────────── */
.xp-hint {
    position: absolute;
    bottom: 5vh;
    left: 6vw;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.88);
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    transition: opacity 0.6s ease;
}

.xp-hint-line {
    display: block;
    width: 34px;
    height: 1px;
    background: rgba(245, 239, 230, 0.4);
}

.xp-hint.faded { opacity: 0; }

/* ── Mobile: panel becomes a bottom sheet ──── */
@media screen and (max-width: 768px) {
    .xp-head { top: 12vh; left: 6vw; right: 6vw; }
    .xp-hint { bottom: 4vh; }

    /* .xp-overlay is position:fixed;inset:0 (see above), which by default
       sizes against the LARGE mobile viewport (as if the browser's
       address/toolbar were hidden) even while it's actually showing -
       so .xp-hint's bottom:4vh could land underneath that bar instead of
       above it. An explicit small-viewport height forces the fixed box's
       bottom edge to the safe, toolbar-aware line, matching #scene-stage
       below. */
    .xp-overlay { height: 100svh; }
}

/* ============================================
   EXPERTISE - MOBILE CARD STAGE
   Same pinned-scroll choreography as desktop (js/scene.js runs
   the identical GSAP timeline on every viewport now), but the
   photo itself is presented as an inset square card rather than
   full-bleed. Full-bleed object-fit:cover on a 9:19 phone
   viewport would crop these wide architectural shots down to a
   ~20%-wide sliver of the original frame, destroying both the
   composition and every hand-placed hotspot. A taller 4:5 card
   was tried first and was still too tight (only 37-46% of either
   photo visible) - square (see MOBILE_CARD_RATIO in scene.js)
   shows substantially more of each photo while still reading as
   a deliberate inset card. object-position is tuned per photo
   (see #scene-exterior/#scene-interior img below) to keep the
   calibrated hotspot targets in frame.

   Hotspot coordinates differ from desktop here because the
   visible crop window is a different shape and position: each
   .lxe-hotspot carries data-m-left/data-m-top (mobile-specific
   percentages, relative to this card) alongside its desktop
   style="left/top" attributes; js/scene.js swaps them in when
   isMobile is true.

   Sizing: .scene-layer and .hs-container both need to land on
   the EXACT same box so the hotspot percentages line up with the
   photo beneath them. That used to be width:90vw + aspect-ratio:
   4/5 + max-height:70svh, centered with margin:auto - but that
   combination is unreliable on real iOS Safari (it rendered
   noticeably squarer than 4:5 in testing, throwing off the whole
   crop and every hotspot position calibrated against it). Sizing
   is now done in JS (sizeMobileStage() in js/scene.js), which sets
   explicit pixel width/height on both elements - CSS here only
   handles centering (inset:0;margin:auto, which needs no
   aspect-ratio math and isn't sensitive to that bug) and the
   card's visual styling.

   .scene-backdrop is a full-bleed blurred/darkened copy of the
   same photo, sitting behind the card so the whole screen still
   reads as "a photograph" instead of a card on the plain page
   background - it also fixes a real contrast problem: the
   chapter-label text above the card is a near-white cream color
   designed to sit on a dark photo, which is invisible against
   the flat cream page background it would otherwise be sitting
   on. js/scene.js crossfades it in lockstep with the crisp card.
   ============================================ */
.scene-backdrop { display: none; }

@media screen and (max-width: 768px) {
    .scene-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        background-size: cover;
        background-position: center;
        filter: blur(36px) brightness(0.42) saturate(1.2);
        opacity: 0;
        pointer-events: none;
        will-change: opacity;
    }

    .scene-layer {
        z-index: 2;
        inset: 0;
        margin: auto;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(152, 123, 88, 0.35);
        box-shadow: 0 24px 60px rgba(10, 8, 5, 0.5);
    }

    .hs-container {
        inset: 0;
        margin: auto;
    }

    /* Drop the base scale(1.06). That zoom exists only to give the
       desktop mouse-parallax room to move without exposing the photo's
       edges, and parallax is disabled on touch anyway - but it was
       silently cropping another 3% off every side here, so the window
       actually on screen was NOT plain object-fit:cover and every
       hotspot calibrated against that assumption sat a few percent off.
       Without it the visible crop is exactly cover + object-position. */
    .scene-layer img { transform: translate(-50%, -50%); }

    #scene-exterior img { object-position: 30% center; }
    #scene-interior img { object-position: 68% center; }
}

/* ============================================
   PORTFOLIO / FEATURED PROJECTS SECTION (Aesthetic Grid)
   ============================================ */
.portfolio-section {
    padding: 12vh 10vw 10vh;
    position: relative;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        rgba(245, 239, 230, 0) 0%,
        rgba(245, 239, 230, 0.97) 15%,
        rgba(245, 239, 230, 1) 100%
    );
}

.portfolio-header {
    margin-bottom: 6vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-align: center;
}

.portfolio-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-track {
    display: grid;
    /* FIXED: 2-column grid creates a perfect staggered masonry look for 4 items */
    grid-template-columns: repeat(2, 1fr); 
    gap: 6vw 4vw;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    text-decoration: none;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    transform: scale(1.04);
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.07);
}

.project-info {
    padding: 1.5rem 0;
    text-align: left;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--lxe-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   PORTFOLIO EXPLORE BUTTON
   ============================================ */
.portfolio-explore {
    display: flex;
    justify-content: center;
    margin-top: 8vh;
}

.portfolio-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3.5rem;
    border: 1px solid var(--lxe-gold);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: background 0.4s ease, color 0.4s ease, gap 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-explore-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lxe-gold);
    transform: translateX(-101%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.portfolio-explore-btn span,
.portfolio-explore-btn svg {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.portfolio-explore-btn:hover::before {
    transform: translateX(0);
}

.portfolio-explore-btn:hover {
    color: #0A0A0A;
    gap: 1.5rem;
    box-shadow: 0 12px 40px rgba(152, 123, 88, 0.22);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background-color: transparent;
    padding: 15vh 10vw;
    position: relative;
    z-index: 10;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--lxe-gold);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-details a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    width: max-content;
}

.contact-details a:hover {
    color: var(--lxe-gold);
}

.contact-form {
    background: rgba(245, 239, 230, 0.72);
    padding: 4rem 3rem;
    border-radius: 24px;
    border: 1px solid rgba(152, 123, 88, 0.28);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(152, 123, 88, 0.3);
    color: var(--text-dark);
    padding: 1rem 0;
    margin-bottom: 2.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dark);
    opacity: 0.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--lxe-gold);
}

.contact-form button {
    background: var(--lxe-gold);
    color: #fff;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: none;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background: var(--lxe-dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(152, 123, 88, 0.2);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-text, .reveal-image {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-text.visible, .reveal-image.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-header {
    padding: 0 10vw 6vh;
    max-width: 1600px;
    margin: 0 auto;
}

.process-header h2,
.portfolio-header h2 {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    color: var(--lxe-gold);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 300;
    margin-top: 1.5rem;
}

.process-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10vw;
}

/* Vertical connecting line */
.process-timeline::before {
    content: '';
    position: absolute;
    left: calc(10vw + 3.2rem);
    top: 1.2rem;
    bottom: 1.2rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--lxe-gold) 8%,
        var(--lxe-gold) 92%,
        transparent
    );
    opacity: 0.3;
}

.process-step {
    display: grid;
    grid-template-columns: 6.4rem 1fr;
    gap: 3.5rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    align-items: start;
}

.process-step:last-child {
    border-bottom: none;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.2rem;
}

.step-num {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--lxe-dark-gold);
    opacity: 0.9;
    font-weight: 500;
}

.step-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lxe-gold);
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.process-step:hover .step-dot {
    opacity: 1;
    transform: scale(1.4);
}

/* A left-rail timeline reads down the rail: the body inherited
   text-align:center from .content-section, leaving every step floating
   with ragged edges on both sides. */
.step-body { text-align: left; }

.step-body h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: var(--lxe-gold);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    transition: letter-spacing 0.4s ease;
}

.process-step:hover .step-body h3 {
    letter-spacing: 0.01em;
}

.step-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--lxe-dark-gold);
    opacity: 0.92;
    max-width: 58ch;
}

/* ============================================
   FOOTER
   ============================================ */
.lxe-footer {
    background: #0F0D0A;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8vh 10vw 4vh;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 5vw;
    padding-bottom: 6vh;
    border-bottom: 1px solid rgba(152, 123, 88, 0.18);
    margin-bottom: 3.5vh;
}

.footer-logo {
    font-size: 4.5rem;
    color: var(--lxe-gold);
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: 0.85;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--lxe-gold);
    opacity: 0.55;
    margin-bottom: 2rem;
    display: block;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: rgba(245, 239, 230, 0.45);
    line-height: 1.75;
    max-width: 32ch;
}

.footer-col h4 {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--lxe-gold);
    opacity: 0.6;
    margin-bottom: 1.8rem;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.95rem;
    color: rgba(245, 239, 230, 0.55);
    text-decoration: none;
    margin-bottom: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--lxe-gold);
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.footer-social a {
    display: inline !important;
    margin-bottom: 0 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.15em;
    opacity: 0.5;
    border-bottom: 1px solid transparent;
    transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.footer-social a:hover {
    opacity: 1 !important;
    color: var(--lxe-gold) !important;
    border-bottom-color: var(--lxe-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(245, 239, 230, 0.28);
    letter-spacing: 0.06em;
}

.footer-cta {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lxe-gold) !important;
    text-decoration: none;
    opacity: 0.75;
    border-bottom: 1px solid rgba(152, 123, 88, 0.4);
    padding-bottom: 3px;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.footer-cta:hover {
    opacity: 1;
    border-bottom-color: var(--lxe-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 5vh 8vw;
    }

    .process-timeline::before {
        left: calc(10vw + 3rem);
    }
}

@media screen and (max-width: 768px) {
    .project-track {
        grid-template-columns: 1fr;
        gap: 7vh;
    }

    /* .portfolio-section isn't part of .content-section, so it never
       picked up the mobile padding reduction below - it was still using
       desktop's 12vh 10vw 10vh, out of step with every section around it.
       .project-info also had its own bottom padding stacking on top of
       the grid gap above, making the space between stacked cards feel
       uneven; a single top-only padding plus one clean gap value reads
       much more deliberate. */
    .portfolio-section {
        padding: 10vh 6vw 8vh;
    }

    .project-info {
        padding: 1.2rem 0 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 14vw, 6rem);
    }

    .content-section, #founder-section {
        padding: 8vh 6vw;
    }

    /* Process timeline mobile */
    .process-header { padding: 0 6vw 4vh; }

    .process-timeline {
        padding: 0 6vw;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        grid-template-columns: 2.2rem 1fr;
        gap: 1rem;
        padding: 2.2rem 0;
    }

    .step-body h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
    .step-body p { font-size: 0.98rem; line-height: 1.75; }

    /* Footer mobile */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 4vh;
    }

    .footer-logo { font-size: 3.5rem; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* ============================================
   HOTSPOTS v2 - numbered markers with labels
   ============================================ */
.hs-container {
    position: fixed;
    inset: 0;
    z-index: 22;
    pointer-events: none;
}

.lxe-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: none;      /* enabled by JS when its photo is live */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lxe-hotspot.hs-visible {
    opacity: 1;
    pointer-events: auto;
}

.hs-dot {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 13, 10, 0.38);
    border: 1px solid rgba(245, 239, 230, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(152, 123, 88, 0.15);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

/* Breathing halo - one refined ring, not a strobing pulse */
.hs-dot::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(245, 239, 230, 0.35);
    animation: hsBreathe 3.2s ease-in-out infinite;
}

@keyframes hsBreathe {
    0%, 100% { transform: scale(1);    opacity: 0.55; }
    50%      { transform: scale(1.18); opacity: 0.15; }
}

.hs-plus {
    position: relative;
    width: 12px;
    height: 12px;
    display: block;
    transition: transform 0.35s ease;
}

.hs-plus::before,
.hs-plus::after {
    content: '';
    position: absolute;
    background: #F5EFE6;
    transition: background 0.3s ease;
}
.hs-plus::before { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.hs-plus::after  { top: 50%; left: 0; height: 1.5px; width: 100%; transform: translateY(-50%); }

.hs-label {
    white-space: nowrap;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #F5EFE6;
    background: rgba(15, 13, 10, 0.42);
    border: 1px solid rgba(245, 239, 230, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 0.55rem 1.1rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    pointer-events: none;
}

/* Labels reveal on hover (desktop); JS shows them briefly on entry */
.lxe-hotspot:hover .hs-label,
.lxe-hotspot:focus-visible .hs-label,
.lxe-hotspot.hs-intro .hs-label {
    opacity: 1;
    transform: translateX(0);
}

.lxe-hotspot:hover .hs-dot,
.lxe-hotspot:focus-visible .hs-dot {
    background: rgba(152, 123, 88, 0.55);
    border-color: #F5EFE6;
    transform: scale(1.08);
}

.lxe-hotspot:hover .hs-plus { transform: rotate(90deg); }

/* Left-anchored labels flip for markers near the right edge */
.lxe-hotspot.hs-flip { flex-direction: row-reverse; }
.lxe-hotspot.hs-flip .hs-label { transform: translateX(8px); }
.lxe-hotspot.hs-flip:hover .hs-label,
.lxe-hotspot.hs-flip.hs-intro .hs-label { transform: translateX(0); }

@media screen and (max-width: 768px) {
    /* Dot size is set once, later in this file, at the proper 44px touch
       target (see MOBILE REFINEMENT PASS) - no need to duplicate it here. */
    .hs-label { display: none; }   /* mobile: dots only, tap opens full card */
}

/* ============================================
   SERVICE POPUP v2 - dark glass card
   (fully overrides the legacy base.css styling)
   ============================================ */
#service-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    min-height: 0;
    margin: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    background: rgba(10, 9, 7, 0.62);
    backdrop-filter: blur(16px) saturate(115%);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    transform: none;
    border: none;
    box-shadow: none;
    /* No trailing `width: auto` here: it used to sit at the end of this
       block, overriding the 100vw above, so the fixed backdrop shrink-
       wrapped its content - a 704px dimmed strip with a hard edge, and the
       card off-centre instead of in the middle of the screen. */
    inset: 0;
}

#service-popup.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    /* Visible at once on open: an animated visibility is still "hidden" on
       its first frame, so focus() on the close button silently failed and
       keyboard focus stayed behind the dialog on the hotspot. */
    transition: opacity 0.35s ease, visibility 0s;
}

#service-popup.hidden { visibility: hidden; }

.sp-card {
    position: relative;
    width: min(560px, 92vw);
    background: linear-gradient(160deg, rgba(22, 18, 13, 0.92), rgba(15, 13, 10, 0.88));
    border: 1px solid rgba(152, 123, 88, 0.35);
    border-radius: 20px;
    padding: 3rem 3.2rem 2.8rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(245, 239, 230, 0.07);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#service-popup.active .sp-card {
    transform: translateY(0) scale(1);
}

.sp-ghost {
    position: absolute;
    top: -2rem;
    right: 0.8rem;
    font-size: 9.5rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(152, 123, 88, 0.25);
    user-select: none;
    pointer-events: none;
}

.sp-index {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--lxe-gold);
    margin-bottom: 1.2rem;
}

.sp-index em { font-style: normal; opacity: 0.5; }

#service-popup h3 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: #F5EFE6;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 1.1rem;
}

#service-popup #popup-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(245, 239, 230, 0.72);
    margin-bottom: 1.7rem;
}

#popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.popup-feature {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lxe-gold);
    border: 1px solid rgba(152, 123, 88, 0.4);
    border-radius: 40px;
    padding: 0.45rem 1rem;
    white-space: nowrap;
    background: rgba(152, 123, 88, 0.08);
}

#close-popup {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: none;
    border: 1px solid rgba(152, 123, 88, 0.4);
    color: var(--lxe-gold);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

#close-popup:hover {
    border-color: var(--lxe-gold);
    color: #F5EFE6;
    background: rgba(152, 123, 88, 0.15);
}

@media screen and (max-width: 768px) {
    .sp-card { padding: 2.2rem 1.8rem 2rem; }
    .sp-ghost { font-size: 6.5rem; top: -1.4rem; }
}

/* ============================================
   FOUNDER PORTRAIT
   ============================================ */
.founder-id {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 2rem 0 0.6rem;
}

.founder-portrait {
    position: relative;
    flex: 0 0 auto;
    width: 156px;
    height: 192px;
    border-radius: 999px 999px 14px 14px;   /* architectural arch */
    overflow: hidden;
    border: 1px solid rgba(152, 123, 88, 0.5);
    box-shadow: 0 12px 36px rgba(152, 123, 88, 0.22), inset 0 0 0 3px rgba(240, 232, 218, 0.55);
    background: linear-gradient(165deg, rgba(152, 123, 88, 0.16), rgba(152, 123, 88, 0.05));
}

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

.founder-portrait .founder-monogram {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    letter-spacing: 0.12em;
    color: var(--lxe-gold);
}

.founder-portrait.no-photo img { display: none; }
.founder-portrait.no-photo .founder-monogram { display: flex; }

/* Scoped under .founder-name: the generic `.text-block p` rule (font-size
   1.2rem, text-align right) is more specific than a lone class, and was
   silently overriding both of these - the role label rendered at twice its
   intended size, wrapping across two lines, and the whole block sat
   right-aligned against a left-aligned heading. */
.founder-name .fn-name {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-align: left;
    color: var(--lxe-gold);
    opacity: 1;
    margin-bottom: 0.45rem;
}

.founder-name .fn-role {
    font-size: 0.64rem;
    line-height: 1.6;
    letter-spacing: 0.26em;
    text-align: left;
    text-transform: uppercase;
    color: var(--lxe-dark-gold);
    opacity: 0.85;
}

/* Body copy reads left-aligned under a left-aligned heading; ragged-left
   paragraphs are hard to scan. */
/* The founder quote is a full sentence, so it sits a step below the
   section-heading scale to keep it to a few calm lines. */
#founder-section .text-block h2.founder-quote {
    font-size: clamp(1.55rem, 2.3vw, 2.35rem);
    line-height: 1.3;
}

@media screen and (max-width: 480px) {
    #founder-section .text-block h2.founder-quote { font-size: 1.4rem; }
}

#founder-section .text-block .body-text {
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ============================================
   MOBILE REFINEMENT PASS
   ============================================ */
html, body { overflow-x: hidden; }

@media screen and (max-width: 768px) {
    /* Founder panel breathes on small screens */
    #founder-section .glass-container {
        max-width: none;
        margin: 0 5vw;
        padding: 2.2rem 1.6rem;
    }

    .founder-id { gap: 1.3rem; margin-top: 1.6rem; }
    .founder-portrait { width: 116px; height: 142px; }

    /* Expertise header clears the nav, chapter stays readable */
    .xp-head { top: 11vh; }
    .xp-eyebrow { font-size: 0.58rem; margin-bottom: 0.8rem; }
    .xp-chapter { font-size: 1.15rem; gap: 0.7rem; }
    .xp-chapter-line { width: 28px; }

    /* Hotspots: dots were bumped to the 44px touch-target minimum, but
       that looked oversized/dominant against a card that's only ~340px
       wide (44px is barely smaller than a desktop dot shown against a
       1920px-wide viewport, proportionally far bigger here). Shrink the
       visible dot back down, but add invisible padding on the button
       itself so the actual tap target still meets the 44px minimum -
       the dot looks smaller without touch usability shrinking with it. */
    .lxe-hotspot { padding: 8px; }
    .hs-dot { width: 28px; height: 28px; }
    .hs-dot::before { inset: -4px; }
    .hs-plus { width: 9px; height: 9px; }

    /* Popup card: comfortable thumb-reach spacing */
    #service-popup { padding: 4vh 4vw; }
    #close-popup { top: 0.9rem; right: 0.9rem; }

    /* Mobile browser chrome: real viewport heights */
    #hero-section, #founder-section { min-height: 100svh; }
    /* Large viewport: the stage (blurred backdrop) runs all the way under
       Safari's bottom toolbar instead of stopping above it and leaving a
       cream strip behind the floating bar. The card itself is placed in the
       visible band by sizeMobileStage() in js/scene.js. */
    #scene-stage { height: 100vh; height: 100lvh; }
}

@media screen and (max-width: 380px) {
    #founder-section .glass-container { padding: 1.8rem 1.2rem; }
    .xp-chapter { font-size: 1rem; }
}

@media screen and (max-width: 480px) {
    /* Phones: the whole founder card fits in one screen. Sizes scale with
       svh (the height left visible with Safari's toolbars showing), so a
       short iPhone SE tightens further than a Pro Max. The portrait sits
       beside the name rather than above it, which saves ~150px. */
    /* Each svh value is preceded by a fixed fallback for iOS < 15.4, which
       has no svh and would otherwise drop the whole declaration. */
    #founder-section {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: 106px;
        padding-top: calc(100px + 1svh);   /* clears the glass nav (~100px) */
        padding-bottom: 12px;
        padding-bottom: 2svh;
        padding-left: 0;
        padding-right: 0;
    }
    /* 5vw gutters (was 6vw section padding + 4vw card margin): a wider
       text column means fewer lines, which is what lets it fit. */
    #founder-section .glass-container {
        margin: 0 5vw;
        padding: 1.4rem clamp(1.1rem, 5vw, 1.4rem);
        padding: clamp(1.1rem, 3.2svh, 1.6rem) clamp(1.1rem, 5vw, 1.4rem);
    }
    #founder-section .text-block h2.founder-quote {
        font-size: 1.2rem;
        font-size: clamp(1rem, 3svh, 1.32rem);
        line-height: 1.32;
        margin: 0.8rem 0;
        margin: 1.6svh 0;
    }
    .founder-id {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin: 0.9rem 0 0;
        margin: 1.8svh 0 0;
    }
    .founder-portrait {
        width: 84px;
        width: clamp(60px, 13.5svh, 100px);
        height: auto;
        aspect-ratio: 156 / 192;
    }
    .founder-portrait .founder-monogram { font-size: 1.6rem; }
    /* Lets the role break as "Founder & / Principal Architect" rather
       than stranding "Architect" on a line of its own. */
    .founder-name .fn-role { text-wrap: balance; letter-spacing: 0.22em; }
    #founder-section .text-block .body-text {
        font-size: 0.9rem;
        font-size: clamp(0.8rem, 2.2svh, 0.95rem);
        line-height: 1.6;
        margin-top: 1rem !important;   /* beats the inline 3vh */
        margin-top: 2svh !important;
        margin-bottom: 0;
    }
}

/* Tablets and desktop: the section used to pad its top by 8-10vh, less than
   the 100px glass nav, so on laptops the top of the card slid under the bar.
   Reserve the nav's height and centre the card in the band beneath it. */
@media screen and (min-width: 481px) {
    #founder-section {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: calc(100px + 1vh);
        padding-top: calc(100px + 1svh);
        padding-bottom: 2vh;
        padding-bottom: 2svh;
    }
}

/* Desktop: scale the card with the window's height so it fits whole on short
   laptop screens (1366x768 leaves ~650px inside the browser). At 900px+ these
   resolve to the original sizes, so tall screens look exactly as before. */
@media screen and (min-width: 769px) {
    #founder-section .glass-container {
        padding: clamp(1.6rem, 6.2vh, 3.5rem) clamp(2rem, 4vw, 4rem);
    }
    #founder-section .text-block h2.founder-quote {
        font-size: clamp(1.55rem, min(2.3vw, 4vh), 2.35rem);
    }
    .founder-id { margin: clamp(1rem, 3.6vh, 2rem) 0 0.6rem; }
    .founder-portrait {
        width: auto;
        height: clamp(110px, 21.4vh, 192px);
        aspect-ratio: 156 / 192;
    }
}

/* Very short phones (4-inch iPhone SE: ~460px visible with Safari's bars).
   Media-query height on iOS is the small viewport, the same band svh uses. */
@media screen and (max-width: 480px) and (max-height: 520px) {
    #founder-section .glass-container { padding: 0.9rem 1rem; }
    #founder-section .subtitle { margin-bottom: 0.4rem; }
    #founder-section .text-block h2.founder-quote { font-size: 0.98rem; margin: 0.5rem 0; }
    .founder-id { gap: 0.8rem; margin-top: 0.5rem; }
    .founder-portrait { width: 52px; }
    #founder-section .text-block .body-text {
        font-size: 0.78rem;
        line-height: 1.5;
        margin-top: 0.6rem !important;
    }
}

/* Popup call to action: every service ends with a route to an enquiry. */
.sp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.95rem 1.7rem;
    border: 1px solid rgba(152, 123, 88, 0.6);
    border-radius: 999px;
    color: #E9D7B8;
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, gap 0.35s ease;
}
.sp-cta svg { transition: transform 0.35s ease; }
.sp-cta:hover,
.sp-cta:focus-visible {
    background-color: #987B58;
    border-color: #987B58;
    color: #0F0D0A;
}
.sp-cta:hover svg,
.sp-cta:focus-visible svg { transform: translateX(4px); }

@media screen and (max-width: 768px) {
    .sp-cta { width: 100%; justify-content: center; margin-top: 1.6rem; }
}
