/* ============================================
   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;
    color: var(--lxe-gold);
    text-shadow: 0 4px 24px rgba(152, 123, 88, 0.2);
}

.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: var(--lxe-gold);
    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: var(--lxe-gold);
    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;
    }
}

/* 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;
}

.text-block p {
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: right;
}


/* ============================================
   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;
    color: var(--lxe-gold);
    opacity: 0.85;
    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.6);
    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; }
}

/* ============================================
   EXPERTISE — MOBILE FALLBACK
   The pinned photo + percentage-positioned hotspots are
   calibrated for a wide desktop crop and a 5000px scroll-jack
   that both break down on a phone. Below 768px we swap the
   whole interaction for a photography-free, typography-led
   layout, reusing two motifs already proven elsewhere on this
   site: the oversized translucent chapter numeral from
   projects.html (.pall-ghost-num) and the numbered gold-dot
   service rows from the Process section (.process-step). No
   image means no aspect-ratio cropping, no gradient-legibility
   balancing act, and nothing for the back-to-top button to
   visually clash with.

   #expertise-section is forced back to display:block on mobile
   so it can't inherit any flexbox column-sizing quirks from
   .content-section.
   ============================================ */
.xp-mobile { display: none; }

@media screen and (max-width: 768px) {
    #scene-stage,
    #exterior-hotspots-container,
    #interior-hotspots-container,
    .xp-overlay {
        display: none;
    }

    #expertise-section {
        display: block;
        min-height: unset;
        padding: 10vh 0 8vh;
    }

    .xp-mobile {
        display: block;
        width: 100%;
    }
}

.xp-mobile-head {
    text-align: center;
    padding: 0 6vw;
    margin-bottom: 7vh;
}

.xp-mobile-head h2 {
    color: var(--lxe-gold);
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.2;
    margin-top: 1vh;
    font-weight: 400;
}

.xp-mobile-chapter {
    position: relative;
    padding: 0 6vw;
    margin-bottom: 7vh;
    overflow: hidden;
}

.xp-mobile-chapter:last-child {
    margin-bottom: 0;
}

.xp-mobile-chapter-ghost {
    position: absolute;
    top: -3vh;
    left: 3vw;
    font-size: 32vw;
    font-weight: 700;
    color: var(--lxe-gold);
    opacity: 0.05;
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.xp-mobile-chapter-label {
    position: relative;
    z-index: 1;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--lxe-gold);
    opacity: 0.85;
    padding-top: 1.5vh;
    margin-bottom: 1.5rem;
}

.xp-mobile-service-list {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
}

.xp-mobile-service-list button {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem 0.1rem;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.xp-mobile-service-list button:last-child {
    border-bottom: none;
}

.xp-mobile-service-list .xp-service-num {
    flex: 0 0 auto;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--lxe-gold);
    opacity: 0.6;
}

.xp-mobile-service-list .xp-service-name {
    flex: 1;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    transition: color 0.25s ease;
}

.xp-mobile-service-list .xp-service-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lxe-gold);
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.xp-mobile-service-list button:active .xp-service-dot {
    opacity: 1;
    transform: scale(1.6);
}

.xp-mobile-service-list button:active .xp-service-name {
    color: var(--lxe-gold);
}

/* ============================================
   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 {
    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.65rem;
    letter-spacing: 0.25em;
    color: var(--lxe-gold);
    opacity: 0.6;
    font-weight: 400;
}

.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);
}

.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(--text-dark);
    opacity: 0.72;
    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.52rem;
    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;
    }

    .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: 3.5rem 1fr;
        gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .step-body h3 { font-size: 1.25rem; }

    /* 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) {
    .hs-dot { width: 34px; height: 34px; }
    .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;
    width: auto;
    max-width: none;
}

#service-popup.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

#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; }

.fn-name {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--lxe-gold);
    margin-bottom: 0.3rem;
}

.fn-role {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--lxe-gold);
    opacity: 0.6;
}

/* ============================================
   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: proper touch targets (44px minimum) */
    .hs-dot { width: 44px; height: 44px; }

    /* 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; }
    #scene-stage { height: 100svh; }
}

@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) {
    /* Narrow phones: stack the portrait above the name so the larger
       photo has room to breathe instead of squeezing the text column. */
    .founder-id {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .founder-portrait { width: 148px; height: 182px; }
}
