/* 1a2e.art - Exact Reference Architecture */

:root {
    --bg-void: #080808;
    --text-white: #f2f1ed;
    --text-silver: #a8a7a2;
    --text-dim: #767570;
    --gold-champagne: #d5bc84;
    --glass-border: rgba(255, 255, 255, 0.14);
    --hairline: rgba(255, 255, 255, 0.18);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body.home-viewport {
    height: 100vh;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Central Organic Dark Bronze & Silk Sculpture Backdrop */
.hero-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 46% 62% at 44% 48%, rgba(118, 86, 48, 0.34) 0%, rgba(42, 31, 19, 0.22) 45%, rgba(8, 8, 8, 0.96) 78%),
        radial-gradient(circle at 52% 84%, rgba(128, 92, 50, 0.26) 0%, transparent 45%),
        #080808;
}

.silk-ribbon {
    position: absolute;
    border-radius: 48% 52% 62% 38% / 42% 58% 42% 58%;
    filter: blur(2px);
}

.silk-main {
    width: 48vw;
    height: 112vh;
    left: 24vw;
    top: -6vh;
    background:
        radial-gradient(ellipse 35% 45% at 36% 24%, rgba(168, 126, 76, 0.42), transparent 65%),
        linear-gradient(125deg, rgba(16, 15, 14, 0.95) 18%, rgba(92, 68, 40, 0.45) 44%, rgba(12, 12, 12, 0.98) 66%, rgba(132, 95, 52, 0.38) 85%);
    transform: rotate(-11deg);
    box-shadow: inset 24px 0 60px rgba(0, 0, 0, 0.85), inset -30px 0 70px rgba(0, 0, 0, 0.9);
    animation: silkBreathe 18s ease-in-out infinite alternate;
}

.silk-secondary {
    width: 34vw;
    height: 95vh;
    left: 38vw;
    top: 10vh;
    background:
        radial-gradient(ellipse 40% 35% at 55% 75%, rgba(164, 118, 64, 0.38), transparent 65%),
        linear-gradient(155deg, transparent 20%, rgba(28, 24, 20, 0.88) 48%, rgba(120, 86, 46, 0.32) 72%, rgba(8, 8, 8, 0.96) 92%);
    transform: rotate(14deg);
}

.silk-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 42% 52%, transparent 25%, rgba(6, 6, 6, 0.78) 85%);
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 26px 4.2% 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    height: 62px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    color: rgba(242, 241, 237, 0.78);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.16);
}

.experience-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: rgba(242, 241, 237, 0.85);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.experience-btn:hover {
    color: var(--gold-champagne);
}

.play-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.14), rgba(20, 20, 20, 0.8));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.experience-btn:hover .play-ring {
    transform: scale(1.08);
    border-color: var(--gold-champagne);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* Main Hero Stage */
.hero-stage {
    position: relative;
    z-index: 10;
    flex: 1;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    padding: 0 0 0 4.2%;
    gap: 24px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 12px;
}

.giant-wordmark {
    font-family: var(--font-sans);
    font-size: clamp(115px, 16.5vw, 248px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.045em;
    background: linear-gradient(180deg, #dcdbd6 0%, #9b9a95 65%, #75746f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    user-select: none;
}

.divider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.divider-row .hairline {
    flex: 1;
    height: 1px;
    background: var(--hairline);
}

.micro-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(242, 241, 237, 0.72);
    white-space: nowrap;
}

.editorial-block {
    display: flex;
    align-items: flex-start;
    gap: 26px;
}

.pillar-mark {
    width: 54px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.24);
    margin-top: 4px;
}

.pillar-mark svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-serif-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 3.35vw, 49px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.015em;
    color: #f3f2ee;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(13.5px, 1.15vw, 16.5px);
    font-weight: 300;
    color: rgba(242, 241, 237, 0.72);
    letter-spacing: 0.01em;
}

/* Right Cascading Glass Cards */
.hero-right {
    position: relative;
    height: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.glass-card {
    position: absolute;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(36, 36, 36, 0.42) 0%, rgba(14, 14, 14, 0.56) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(213, 188, 132, 0.45);
}

/* Front Card: 01 / THE UNSEEN */
.card-front {
    width: clamp(275px, 24.5vw, 370px);
    left: 2%;
    top: 44%;
    transform: translateY(-50%);
    z-index: 4;
    padding: 16px 16px 18px;
}

.card-front:hover {
    transform: translateY(calc(-50% - 8px)) scale(1.015);
}

.card-art {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #0d0d0d;
}

.card-art-1 {
    aspect-ratio: 1.15 / 1;
}

.card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .card-art img {
    transform: scale(1.05);
}

.card-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(242, 241, 237, 0.86);
}

.card-arrow {
    font-size: 15px;
    color: rgba(242, 241, 237, 0.7);
    transition: transform 0.3s ease;
}

.card-front:hover .card-arrow {
    transform: translateX(5px);
}

/* Back Card: 02 / DIGITAL FORM */
.card-back {
    width: clamp(320px, 31vw, 465px);
    left: 21%;
    top: 47%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 46px 26px 22px 155px;
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.32) 0%, rgba(16, 16, 16, 0.48) 100%);
}

.card-back:hover {
    transform: translateY(calc(-50% - 6px));
}

.card-art-2 {
    aspect-ratio: 0.76 / 1;
}

/* Far Right Edge Card Peek */
.card-peek {
    width: 180px;
    right: -115px;
    top: 47%;
    transform: translateY(-50%);
    height: 360px;
    z-index: 2;
    padding: 20px;
    opacity: 0.8;
}

.card-art-3 {
    height: 100%;
    background: radial-gradient(circle at 30% 45%, rgba(145, 112, 72, 0.35), rgba(18, 18, 18, 0.9));
}

/* Bottom Footer Strip */
.hero-footer {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 12px 4.2% 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-rule {
    flex: 1;
    height: 1px;
    background: var(--hairline);
}

.geo-stamp {
    text-align: right;
    line-height: 1.45;
}

.geo-coords {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(242, 241, 237, 0.85);
}

.geo-city {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(242, 241, 237, 0.58);
}

@keyframes silkBreathe {
    0% { transform: rotate(-11deg) scale(1); }
    100% { transform: rotate(-9deg) scale(1.04) translateY(-10px); }
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    body.home-viewport {
        height: auto;
        overflow-y: auto;
    }
    .hero-stage {
        grid-template-columns: 1fr;
        padding: 30px 6% 40px;
        gap: 48px;
    }
    .hero-right {
        min-height: 440px;
        justify-content: center;
    }
    .card-front {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }
    .card-back {
        left: 48%;
        top: 52%;
        padding-left: 110px;
    }
    .card-peek { display: none; }
}

@media (max-width: 760px) {
    .header-right {
        position: fixed;
        inset: 0;
        background: rgba(8, 8, 8, 0.97);
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }
    .header-right.open {
        opacity: 1;
        pointer-events: all;
    }
    .nav-divider { display: none; }
    .mobile-toggle { display: block; z-index: 30; }
    .card-back { display: none; }
    .pillar-mark { width: 38px; }
}


/* Inner Pages Shared Components */

:root {
    --bg-primary: #080808;
    --bg-glass: rgba(18, 18, 18, 0.54);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(213, 188, 132, 0.35);
    --text-primary: #f2f1ed;
    --text-secondary: rgba(242, 241, 237, 0.65);
    --text-muted: rgba(242, 241, 237, 0.4);
    --accent-gold: #d5bc84;
    --accent-gold-light: #edd07a;
    --font-display: 'Inter', sans-serif;
    --transition-smooth: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.ambient-bg {
    position: fixed; inset: 0; z-index: -3;
    background: radial-gradient(circle at 68% 26%, rgba(118, 86, 48, 0.22) 0%, rgba(8, 8, 8, 0.96) 70%), #080808;
}
.bg-motion-layer {
    position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -4; opacity: 0.22; pointer-events: none;
}
.grain-film { position: fixed; inset: 0; z-index: -2; opacity: 0.035; pointer-events: none; }
.glow-aura { display: none; }
.page-container {
    flex: 1; padding: 130px 4.2% 80px; max-width: 1640px; width: 100%; margin: 0 auto; position: relative; z-index: 10;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-champagne); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-champagne); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold-champagne); }
.glass-box {
    background: linear-gradient(145deg, rgba(34, 34, 34, 0.42) 0%, rgba(14, 14, 14, 0.58) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 14px;
    transition: var(--transition-smooth);
}
.glass-box:hover { border-color: var(--border-gold); box-shadow: 0 28px 65px rgba(0, 0, 0, 0.72); }
.cta-button {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 100px;
    border: 1px solid rgba(213, 188, 132, 0.35); background: rgba(213, 188, 132, 0.06);
    color: var(--text-white); text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; transition: var(--transition-smooth);
}
.cta-button:hover { border-color: var(--gold-champagne); background: var(--gold-champagne); color: #080808; }
.site-footer {
    margin-top: auto; padding: 28px 4.2%; border-top: 1px solid var(--hairline);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    font-size: 10.5px; letter-spacing: 1.8px; color: var(--text-muted); text-transform: uppercase; position: relative; z-index: 10;
}
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-champagne); }

.experience-btn:hover .play-ring { border-color: #25D366; color: #25D366; }

/* Deployment review: responsive and keyboard interaction fixes. */
:focus-visible { outline: 2px solid var(--gold-champagne); outline-offset: 5px; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { min-height: 100vh; }
body:not(.home-viewport) { display: flex; flex-direction: column; }
.hero-stage > *, .editorial-copy, .inquire-layout > * { min-width: 0; }
.box-title a { overflow-wrap: anywhere; }
.form-note { margin-bottom: 18px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.status-message a { color: inherit; text-underline-offset: 3px; }
.modal-inspect { visibility: hidden; }
.modal-inspect.active { visibility: visible; overflow-y: auto; }
.inspect-panel { max-height: calc(100dvh - 48px); overflow-y: auto; }
.gallery-item { cursor: pointer; }
@media (max-width: 1180px) and (min-width: 761px) {
    .header-right { gap: 18px; }
    .nav-link, .experience-btn { font-size: 10px; letter-spacing: 1px; }
}
@media (max-width: 760px) {
    .header-right { visibility: hidden; }
    .header-right.open { visibility: visible; }
    .hero-stage { padding-top: 40px; gap: 24px; }
    .giant-wordmark { font-size: clamp(76px, 20vw, 150px); }
    .hero-serif-title { font-size: clamp(27px, 7vw, 42px); }
    .editorial-block { gap: 18px; }
    .hero-footer { flex-wrap: wrap; gap: 16px; }
    .hero-footer > .micro-label { white-space: normal; line-height: 1.7; }
    .footer-nav { flex-wrap: wrap; gap: 16px; }
    .page-container { padding-top: 64px; padding-bottom: 56px; }
    .form-panel { padding: 24px; }
    .modal-inspect { padding: 16px; }
    .inspect-panel { padding: 24px 18px; gap: 24px; max-height: calc(100dvh - 32px); }
    .inspect-panel img { max-height: 38dvh; }
    .btn-close { top: 8px; right: 8px; background: #0e0e0e; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.bg-motion-layer { background: url("../assets/images/ambient-background.jpg") center / cover no-repeat; }

/* Home: swipeable selected projects. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.home-slider { height: auto; min-height: 100svh; overflow-y: auto; }
.home-slider .hero-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); padding: 40px 4.2%; }
.home-slider .giant-wordmark { font-size: clamp(90px, 11.5vw, 200px); }
.project-carousel { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 20px; width: 100%; min-width: 0; min-height: 0; height: auto; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; }
.project-hint { color: var(--text-silver); font-size: 10px; letter-spacing: 2px; }
.project-hint span { margin-left: 12px; color: var(--gold-champagne); font-size: 20px; }
.project-track { position: relative; display: flex; gap: 20px; width: 100%; padding: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.project-track::-webkit-scrollbar { display: none; }
.project-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.project-slide { flex: 0 0 calc(100% - 64px); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; background: linear-gradient(145deg, rgba(36,36,36,.6), rgba(14,14,14,.8)); }
.project-slide:last-child { margin-right: 64px; }
.project-link { display: block; color: var(--text-white); text-decoration: none; padding: 14px; height: 100%; }
.project-link:focus-visible { outline-offset: -5px; }
.project-cover { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #0d0d0d; }
.project-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 2px 6px; }
.project-caption h2 { margin-top: 8px; font-size: clamp(16px, 1.5vw, 23px); font-weight: 400; line-height: 1.3; }
.project-category { font-size: 9px; color: var(--gold-champagne); text-transform: uppercase; letter-spacing: 1.5px; }
.project-open { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--gold-champagne); }
.project-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 6px; }
.project-counter { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 1.5px; }
.project-total { color: var(--text-dim); }
.project-dots, .project-arrows { display: flex; align-items: center; gap: 6px; }
.project-dot { display: grid; place-items: center; width: 24px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.project-dot::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #5e5c56; transition: background .2s, width .2s; }
.project-dot.is-active::after { width: 18px; border-radius: 5px; background: var(--gold-champagne); }
.project-arrows button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--text-white); background: transparent; font-size: 21px; cursor: pointer; transition: border-color .2s, color .2s; }
.project-arrows button:hover:not(:disabled) { border-color: var(--gold-champagne); color: var(--gold-champagne); }
.project-arrows button:disabled { opacity: .25; cursor: default; }
.gallery-item[id] { scroll-margin-top: 30px; }
.gallery-item:target { border-color: var(--gold-champagne); }
@media (max-width: 1080px) {
    .home-slider .hero-stage { grid-template-columns: minmax(0, 1fr); padding: 40px 6%; gap: 46px; }
    .home-slider .giant-wordmark { font-size: clamp(100px, 16vw, 170px); }
    .project-carousel { max-width: 680px; justify-self: center; }
}
@media (max-width: 760px) {
    .home-slider .giant-wordmark { font-size: clamp(72px, 20vw, 150px); }
    .home-slider .hero-stage { padding-top: 30px; gap: 36px; }
    .project-carousel { gap: 14px; }
    .project-track { gap: 12px; }
    .project-slide { flex-basis: calc(100% - 32px); }
    .project-slide:last-child { margin-right: 32px; }
    .project-link { padding: 10px; }
    .project-caption { padding-top: 16px; }
    .project-caption h2 { font-size: 18px; }
    .project-category { font-size: 8px; letter-spacing: 1px; }
    .project-controls { gap: 8px; }
    .project-dots { gap: 0; }
    .project-dot { width: 20px; }
    .project-arrows button { width: 36px; height: 36px; }
    .project-counter { font-size: 10px; letter-spacing: 1px; }
}
