/* ES Klarheit Grotesk Mono Font */
@font-face {
    font-family: 'ES Klarheit Grotesk Mono';
    src: url('public/font/ESKlarheitGroteskMono-Rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ES Klarheit Grotesk Mono';
    src: url('public/font/ESKlarheitGroteskMono-It-Trial.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

:root {
    --bg: #d8d6c5;
    --bg-dark: #d8d6c5;
    --orange: #D96A32;
    --black: #1a1a1a;
    --text: #1a1a1a;
    --text-dim: #4a4a4a;
    --text-muted: #7a7a7a;
    --border: #1a1a1a;
    --border-width: 1px;
    --transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --font-mono: 'ES Klarheit Grotesk Mono', 'IBM Plex Mono', monospace;
    --font-sans: 'IBM Plex Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

/* Global cursor for all interactive elements */
a, button, [role="button"], input[type="submit"], input[type="button"], 
.clickable, .nav-item, .overlay-link, .social-link, .secondary-link, 
.logo-btn, .logo-img, .panel-logo, .panel-home-btn, .panel-close,
.menu-toggle, .nav-arrow, .section-cta, .index-item, .intro-skip,
.text-link, .founder-link {
    cursor: pointer;
}
body {
    font-family: var(--font-mono);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

/* ========================================
   OPENING ANIMATION - VIDEO INTRO
   ======================================== */
.intro {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #d7d5c4; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    background: #d7d5c4;
}

.intro-skip {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: var(--border-width) solid var(--black);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.5s;
    transition: background 0.3s ease, color 0.3s ease;
}
.intro-skip:hover {
    background: var(--black);
    color: var(--bg);
}
.skip-arrow {
    transition: transform 0.3s ease;
}
.intro-skip:hover .skip-arrow {
    transform: translateX(3px);
}

@keyframes fadeIn { to { opacity: 1; } }

/* ========================================
   AMBIENT LIFE - Subtle presence
   ======================================== */

/* Border traces around viewport on load */
@keyframes traceBorder {
    0% { clip-path: inset(0 100% 100% 0); }
    25% { clip-path: inset(0 0 100% 0); }
    50% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* Gentle breath for accent elements */
@keyframes breathe {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.75; }
}

/* Quiet vertical drift */
@keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Subtle pulse for orange accents */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   MAIN SITE
   ======================================== */
.site-wrapper {
    height: 100vh; width: 100vw; display: flex; flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative; overflow: hidden;
}

/* Animated border that traces around */
.site-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: var(--border-width) solid var(--black);
    pointer-events: none;
    z-index: 9999;
    clip-path: inset(0 100% 100% 0);
}

.site-wrapper.visible::before {
    animation: traceBorder 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.site-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}
.noise { display: none; }

/* Header */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 3rem; border-bottom: var(--border-width) solid var(--black);
    flex-shrink: 0; background: var(--bg); position: relative; z-index: 800;
}
.logo-btn { 
    background: none; border: none; cursor: pointer; padding: 0; 
    transition: opacity 0.3s ease;
}
.logo-btn:hover { opacity: 0.7; }
.logo-img { height: 42px; width: auto; }
.header-right { display: flex; align-items: center; gap: 2rem; }
.header-tagline {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
    letter-spacing: 0.1em; text-transform: uppercase; transition: opacity 0.3s ease;
}
.menu-toggle {
    background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.75rem;
    transition: all 0.3s ease;
}
.menu-toggle:hover .menu-text { color: var(--orange); }
.menu-text { 
    font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; 
    letter-spacing: 0.1em; color: var(--text);
    transition: color 0.3s ease;
}
.menu-icon { width: 20px; height: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.menu-icon span { 
    display: block; width: 100%; height: 1px; background-color: var(--black); 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
    transform-origin: right;
}
.menu-toggle:hover .menu-icon span:first-child { 
    transform: translateY(1px);
    width: 70%;
}
.menu-toggle:hover .menu-icon span:last-child { 
    transform: translateY(-1px);
}

/* Nav Overlay */
.nav-overlay {
    position: absolute; top: 4rem; right: 2rem; background: var(--bg);
    border: var(--border-width) solid var(--black); padding: 1rem 0; z-index: 900;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; min-width: 200px;
}
.nav-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.overlay-link {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 0.75rem 1.5rem; font-family: var(--font-sans); font-size: 1rem;
    color: var(--text); cursor: pointer; 
    transition: background 0.3s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.overlay-link:hover { 
    background: var(--black); 
    color: var(--bg); 
    padding-left: 2rem;
}
.overlay-link:hover .overlay-num { color: var(--orange); }
.overlay-num { 
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--orange); 
    margin-right: 0.5rem; 
    transition: color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}
.overlay-link:hover .overlay-num {
    transform: translateX(-3px);
}
.overlay-divider { height: 1px; background: var(--black); margin: 0.5rem 1.5rem; opacity: 0.2; }
.overlay-link-secondary { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; }
.overlay-link-secondary:hover { color: var(--bg); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; }
.page-open .main-content { transform: translateY(-5%); opacity: 0; pointer-events: none; }
.layout-grid { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1.5fr; grid-template-rows: 1fr minmax(150px, auto); }

/* Hero - Typography Hierarchy */
.cell-headline { grid-column: 1 / -1; grid-row: 1 / 2; display: flex; align-items: center; justify-content: flex-start; padding: 4rem 3rem; padding-bottom: clamp(5%, 10vh, 15%); }
.hero-message { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; }
.hero-line {
    font-family: var(--font-sans); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400;
    color: var(--text); letter-spacing: -0.03em; line-height: 1.1;
}
/* Helper message - single line, smaller, lighter */
.hero-line.accent { 
    font-style: italic;
    color: var(--text-muted); 
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: 0.75rem;
    letter-spacing: 0;
    animation: breathe 5s ease-in-out infinite 2s;
}
.hero-line.accent:first-of-type { margin-top: 1rem; }
.hero-line.accent + .hero-line.accent { margin-top: 0; }

/* Simple fade-in animation for hero text */
.hero-line .word {
    display: inline-block;
    position: relative;
}

.hero-line .word-inner {
    display: inline-block;
        opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    }

.hero-line .word-inner.revealed {
        opacity: 1;
        transform: translateY(0);
    }

/* Accent line special transform */
.hero-line.accent .word-inner {
    transform: translateX(-10px);
}
.hero-line.accent .word-inner.revealed {
    transform: translateX(0);
}

/* Navigation Dock */
.cell-nav { grid-column: 1 / 2; grid-row: 2 / 3; border-top: var(--border-width) solid var(--black); display: grid; grid-template-columns: 1fr 1fr 1fr; min-height: 150px; }
.primary-nav { display: contents; }
.nav-item {
    border-right: var(--border-width) solid var(--black); padding: 2rem;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    cursor: pointer; position: relative;
    overflow: hidden;
}
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}
.nav-item:last-child { border-right: none; }
.nav-item:hover { background-color: var(--black); }
.nav-link { width: 100%; height: 100%; padding: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; border: none; background: none; pointer-events: none; }
.nav-prefix { 
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); 
    text-transform: uppercase; letter-spacing: 0.1em; 
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0.6;
    animation: drift 6s ease-in-out infinite;
}
.nav-item:nth-child(1) .nav-prefix { animation-delay: 0s; }
.nav-item:nth-child(2) .nav-prefix { animation-delay: 2s; }
.nav-item:nth-child(3) .nav-prefix { animation-delay: 4s; }
.nav-title { 
    font-family: var(--font-sans); font-size: 1.6rem; color: var(--text); 
    letter-spacing: -0.02em; font-weight: 400;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover .nav-prefix { 
    color: var(--bg); 
    opacity: 1;
    transform: translateY(-2px);
}
.nav-item:hover .nav-title { 
    color: var(--bg); 
    transform: translateY(-3px);
}

/* Sign in link */
.secondary-link-signin { color: var(--orange); }

/* Social icons row */
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}
.social-link { 
    display: inline-flex; 
    align-items: center; 
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.social-link:hover { 
    color: var(--text); 
    transform: translateY(-2px);
}
.social-link svg { 
    width: 14px; 
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-link:hover svg {
    transform: scale(1.1);
}

/* Founder link in About */
.founder-link { 
    color: inherit; 
    text-decoration: none; 
    border-bottom: 1px solid var(--text-muted);
    transition: border-color 0.3s ease;
    cursor: pointer;
}
.founder-link:hover { border-color: var(--orange); }

/* Letter styling for About page */
.letter {
    font-family: var(--font-sans);
}

.letter p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.letter p:first-child::first-letter {
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text);
}

.letter-signature {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.signature-img {
    height: 60px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: invert(0);
}

.signature-name {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.signature-name .founder-link {
    font-weight: 500;
}

.signature-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Context Info */
.cell-info {
    grid-column: 2 / 3; grid-row: 2 / 3; border-top: var(--border-width) solid var(--black);
    border-left: var(--border-width) solid var(--black); padding: 2rem;
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right;
}
.secondary-nav { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end; }
.secondary-link { 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    transition: color 0.3s ease;
    padding: 0.25rem 0;
    position: relative;
    cursor: pointer;
}
.secondary-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.secondary-link:hover { color: var(--black); }
.secondary-link:hover::after { width: 100%; }

.est-date { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.15em; }

/* ========================================
   SECTION LAYER - RADICAL REDESIGN
   ======================================== */
.section-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg); z-index: 700; transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; padding-top: 60px;
}
.page-open .section-layer { transform: translateY(0); }
.section-content { flex: 1; display: grid; grid-template-columns: 1fr 320px; height: 100%; overflow: hidden; overflow-y: auto; }

/* Left Side - The Statement */
.section-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    border-right: var(--border-width) solid var(--black);
    overflow-y: auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--orange);
    letter-spacing: 0.1em;
    animation: pulse 4s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* The Hero Statement - Larger Typography */
.section-statement {
    flex: 1;
    display: flex;
    align-items: center;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 95%;
}

/* Footer area with description */
.section-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    padding-top: 2rem;
    border-top: var(--border-width) solid var(--black);
}

.section-desc {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 600px;
}

.section-cta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    position: relative;
    transition: color 0.2s ease;
}

.section-cta::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-cta:hover::after {
    width: 100%;
}

/* Right Side - The Index */
.section-index {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.index-header {
    padding: 3rem 2rem 1.5rem;
    border-bottom: var(--border-width) solid var(--black);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.index-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.index-item {
    padding: 1.5rem 2rem;
    border-bottom: var(--border-width) solid var(--black);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.index-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-item:hover::before,
.index-item.active::before {
    transform: scaleY(1);
}

.index-item:hover,
.index-item.active {
    background: var(--bg);
    padding-bottom: 2rem;
}

.index-num {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-item:hover .index-num,
.index-item.active .index-num {
    transform: translateX(4px);
}

.index-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.3;
    transition: margin 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-item.active .index-title,
.index-item:hover .index-title {
    margin-bottom: 0.75rem;
    transform: translateX(4px);
}

.index-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-height: 0;
        opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

.index-item:hover .index-desc,
.index-item.active .index-desc {
    max-height: 200px;
        opacity: 1;
}

/* Detail Panel - Magazine Layout */
.detail-panel {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 1000; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.detail-panel.active { opacity: 1; visibility: visible; }

.panel-content {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100vh !important;
}

.panel-left {
    width: 50% !important;
    min-width: 50% !important;
    padding: 2rem 3rem;
    border-right: var(--border-width) solid var(--black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.panel-left-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-home-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.panel-home-btn:hover .panel-logo {
    animation: subtleSpin 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes subtleSpin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

.panel-logo {
    height: 36px;
    width: auto;
    transition: transform 0.3s ease;
}

.panel-brand {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
}

.panel-hero {
    flex: 1;
    display: flex;
    align-items: center;
}

.panel-hero h2 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}

.panel-left-footer {
    padding-top: 2rem;
    border-top: var(--border-width) solid var(--black);
}

.panel-left-footer p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}

.panel-right {
    width: 50% !important;
    min-width: 50% !important;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.panel-right-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

.panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-close:hover { 
    transform: rotate(90deg);
}

.panel-close span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--black);
    transition: background 0.2s ease;
}

.panel-close:hover span {
    background: var(--orange);
}

.panel-close span:first-child { transform: rotate(45deg) translateY(5px); }
.panel-close span:last-child { transform: rotate(-45deg) translateY(-5px); }

.panel-right-content {
    flex: 1;
}

.panel-back {
    display: none;
}

.panel-content h2 {
    font-family: var(--font-sans); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400; color: var(--text); letter-spacing: -0.02em; margin-bottom: 0.75rem; line-height: 1;
}
.panel-content .tagline {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--orange); margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.1em;
}
.panel-content h3 {
    font-size: 0.6rem; font-weight: 400; color: var(--text-muted);
    margin-top: 1.5rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.15em;
    font-family: var(--font-mono);
}
.panel-content h3:first-child { margin-top: 0; }
.panel-content p {
    font-size: 0.95rem; line-height: 1.6; color: var(--text-dim); margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}
.panel-content ul { list-style: none; padding: 0; margin-top: 1rem; }
.panel-content li {
    font-size: 0.85rem; color: var(--text); padding: 0.75rem 0;
    border-bottom: var(--border-width) solid var(--black);
    font-family: var(--font-mono);
}
.panel-content li:first-child { border-top: var(--border-width) solid var(--black); }
.text-link { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--orange); transition: color 0.2s; cursor: pointer; }
.text-link:hover { color: var(--orange); }
.location-text { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 2rem; color: var(--text-muted); }

/* Contact Page - Constellation Map */
.contact-emails {
    margin-bottom: 2rem;
}

.contact-emails h3 {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}

.contact-emails h3:first-child {
    margin-top: 0;
}

.contact-emails p {
    margin-bottom: 0;
}

.office-locations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: var(--border-width) solid var(--black);
}

.office-locations h3 {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}

/* Constellation Map - Minimal Network Visualization */
.constellation-map {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.map-constellation {
    width: 100%;
    height: auto;
    max-height: 200px;
}

.constellation-line {
    stroke: var(--black);
    stroke-width: 1;
    opacity: 0.15;
    stroke-dasharray: 2 4;
}

.constellation-node .node-pulse {
    fill: transparent;
    stroke: var(--orange);
    stroke-width: 1;
    opacity: 0;
    animation: nodePulse 3s ease-in-out infinite;
}

.constellation-node:nth-child(4) .node-pulse { animation-delay: 0s; }
.constellation-node:nth-child(5) .node-pulse { animation-delay: 1s; }
.constellation-node:nth-child(6) .node-pulse { animation-delay: 2s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0; r: 4; }
    50% { opacity: 0.6; r: 12; }
}

.constellation-node .node-core {
    fill: var(--orange);
}

.constellation-node .node-label {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--text);
    text-anchor: middle;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.coord-text {
    font-family: var(--font-mono);
    font-size: 8px;
    fill: var(--text-muted);
    text-anchor: middle;
    letter-spacing: 0.05em;
}

.city-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.city-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: var(--border-width) solid var(--black);
}

.city-item:first-child {
    border-top: var(--border-width) solid var(--black);
}

.city-detail {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.city-item:first-child {
    border-top: var(--border-width) solid var(--black);
}

.city-name {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
}

.city-coords {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Section Navigation Arrows */
.section-nav-arrows {
    position: fixed;
    bottom: 2rem;
        right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 750;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-open .section-nav-arrows {
    opacity: 1;
    visibility: visible;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border: var(--border-width) solid var(--black);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text);
}

.nav-arrow:hover {
    background: var(--black);
    color: var(--bg);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:disabled:hover {
    background: var(--bg);
    color: var(--text);
}

/* Footer - Hidden */
.footer { display: none; }

/* Responsive */
/* Medium viewport heights (14" laptops) - scale proportionally */
@media (max-height: 900px) {
    .cell-headline {
        padding: 3rem 3rem;
        padding-bottom: 10%;
    }
    .hero-line {
        font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    }
    .cell-nav {
        min-height: 140px;
    }
    .nav-item {
        padding: 1.5rem 2rem;
    }
    .nav-title {
        font-size: 1.3rem;
    }
}

/* Short viewport heights - compact layout */
@media (max-height: 750px) {
    .layout-grid {
        grid-template-rows: 1fr minmax(120px, auto);
    }
    .cell-headline {
        padding: 2rem 3rem;
        padding-bottom: 5%;
    }
    .hero-line {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    .cell-nav {
        min-height: 120px;
    }
    .nav-item {
        padding: 1rem 2rem;
    }
    .nav-title {
        font-size: 1.2rem;
    }
}

/* Very short viewport - compact everything */
@media (max-height: 600px) {
    .layout-grid {
        grid-template-rows: 1fr minmax(100px, auto);
    }
    .cell-headline {
        padding: 1.5rem 2rem;
        padding-bottom: 2%;
    }
    .hero-line {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    .hero-line.accent {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
    .cell-nav {
        min-height: 100px;
    }
    .nav-item {
        padding: 0.75rem 1.5rem;
    }
    .nav-prefix {
    font-size: 0.6rem;
    }
    .nav-title {
        font-size: 1rem;
    }
}

/* Medium-large screens */
@media (max-width: 1200px) {
    .nav-title {
        font-size: 1.4rem;
    }
    .cell-nav {
        min-height: 180px;
    }
}

@media (max-width: 900px) {
    /* Navigation blocks - make responsive */
    .cell-nav {
        height: auto;
        min-height: auto;
    }
    .nav-title {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    /* Section layer - enable scrolling */
    .section-layer {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        padding-top: 60px;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    /* Section content - stack vertically, let it grow */
    .section-content { 
    display: block;
        height: auto !important;
        min-height: auto;
        overflow: visible !important;
        padding-bottom: 2rem;
    }
    
    /* Keep section-index visible, show below main content */
    .section-index { 
        border-left: none;
        border-top: var(--border-width) solid var(--black);
    }
    
    .section-main { 
        padding: 1.5rem; 
        padding-top: 2rem;
        overflow: visible !important;
        border-right: none;
        min-height: auto !important;
        height: auto !important;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-statement {
        padding: 1.5rem 0;
    }
    
    .section-subtitle { 
        font-size: clamp(1.8rem, 8vw, 3rem);
        line-height: 1.1;
    }
    
    /* Fix section footer stacking on mobile */
    .section-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        border-top: none;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
    .section-desc {
        max-width: 100%;
    width: 100%;
}

    /* About/Contact panels - full mobile layout */
.detail-panel {
        position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
        height: 100% !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }
    .panel-content { 
        display: block !important;
        height: auto !important;
        min-height: auto;
        touch-action: pan-y;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    /* Panel left - logo area on mobile */
    .panel-left { 
        width: 100% !important;
        min-width: 100% !important;
        border-right: none; 
        border-bottom: var(--border-width) solid var(--black); 
        padding: 1.5rem;
        padding-top: 1.5rem;
        height: auto !important;
        min-height: auto;
        position: relative;
    }
    
    /* Ensure logo is visible on mobile */
    .panel-left-header {
        margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    }
    
    .panel-logo {
        height: 36px;
        width: auto;
    display: block;
    }
    
    .panel-hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .panel-hero h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .panel-left-footer {
        padding-top: 1.5rem;
    }
    
    /* Panel right on mobile */
    .panel-right { 
        width: 100% !important;
        min-width: 100% !important;
        padding: 1.5rem; 
        padding-top: 3.5rem; /* Space for fixed close button */
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    /* Fix close button positioning on mobile - absolute top right */
    .panel-right-header { 
        position: fixed;
        top: 1rem;
        right: 1rem;
    background: var(--bg);
        padding: 0.5rem;
        margin-bottom: 0;
        z-index: 1001;
        border-radius: 0;
    }
    
    .panel-close {
        background: var(--bg);
    }
    
    .panel-right-content {
        padding-top: 0;
    }
    
    /* Contact page email fixes */
    .text-link {
        word-break: break-all;
    }
    .contact-emails p {
    font-size: 0.85rem;
    }
    
    /* Map adjustments */
    .constellation-map {
        padding: 1rem 0;
    }
    .map-constellation {
        max-height: 150px;
    }
    
    .section-nav-arrows { bottom: 1rem; right: 1rem; }
    .nav-arrow { width: 40px; height: 40px; }
}

@media (max-width: 768px) {
    /* Hide intro animation on mobile */
    .intro {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    .site-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Header alignment */
    .header { padding: 1rem 1.75rem; }
    
    .layout-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    
    /* Consistent padding across all sections - match hero */
    .cell-headline { padding: 2.5rem 1.75rem; }
    .cell-nav { height: auto; min-height: auto; display: flex; flex-direction: column; }
    .nav-item { border-right: none; border-bottom: var(--border-width) solid var(--black); padding: 1.25rem 1.75rem; min-height: auto; }
    .nav-title { font-size: 1.1rem; }
    .cell-info { 
        grid-column: 1; 
        grid-row: 3; 
        border-left: none; 
        align-items: flex-start; 
        text-align: left;
        padding: 1.25rem 1.75rem;
    }
    .secondary-nav { align-items: flex-start; }
    
    /* Social icons visible on mobile */
    .social-links {
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: var(--border-width) solid rgba(26, 26, 26, 0.15);
    }
    
    .hero-line { font-size: 2.5rem; }
    .logo-img { height: 32px; }
    
    /* Further mobile refinements */
    .section-main { padding: 1.25rem; padding-top: 1.5rem; overflow: visible; }
    .section-header { padding-top: 0; margin-bottom: 1rem; }
    .section-statement { padding: 1rem 0; }
    .section-subtitle { 
        font-size: clamp(1.4rem, 7vw, 2rem); 
        line-height: 1.15;
    }
    .section-footer {
        padding-top: 1rem;
    }
    .section-desc {
    font-size: 0.8rem;
        line-height: 1.6;
    }
    
    /* About/Contact panels - tighter mobile */
    .panel-left { 
        padding: 1.25rem;
    }
    .panel-right { 
        padding: 1.25rem; 
        padding-top: 3rem;
    }
    
    .panel-hero h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .panel-left-footer p {
        font-size: 0.8rem;
    }
    
    /* Logo alignment on smaller screens */
    .panel-logo {
        height: 32px;
    }
    
    /* Close button smaller screen adjustment */
    .panel-right-header {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    /* City items */
    .city-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ========================================
   FORM MODAL
   ======================================== */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-modal.active {
    opacity: 1;
    visibility: visible;
}

.form-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.85);
    cursor: pointer;
}

.form-modal-content {
    position: relative;
    background: var(--bg);
    border: var(--border-width) solid var(--black);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.form-modal.active .form-modal-content {
    transform: translateY(0);
}

.form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0;
}

.form-modal-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
}

.form-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.form-modal-close:hover {
    opacity: 0.6;
}

.form-modal-close span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--black);
}

.form-modal-close span:first-child {
    transform: rotate(45deg) translateY(5px);
}

.form-modal-close span:last-child {
    transform: rotate(-45deg) translateY(-5px);
}

.form-modal-intro {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.7;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: var(--border-width) solid var(--black);
}

.form-modal-intro:empty {
    display: none;
}

.form-modal-body {
    padding: 1.5rem;
}

/* HubSpot Form Overrides */
.form-modal-body .hs-form {
    font-family: var(--font-mono) !important;
}

.form-modal-body .hs-form-field {
    margin-bottom: 1rem;
}

.form-modal-body .hs-form-field label {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted) !important;
    margin-bottom: 0.5rem !important;
    display: block;
}

.form-modal-body .hs-form-field input,
.form-modal-body .hs-form-field textarea {
    width: 100% !important;
    padding: 0.75rem !important;
    border: var(--border-width) solid var(--black) !important;
    background: transparent !important;
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
    border-radius: 0 !important;
    transition: border-color 0.2s ease;
}

.form-modal-body .hs-form-field input:focus,
.form-modal-body .hs-form-field textarea:focus {
    outline: none !important;
    border-color: var(--orange) !important;
}

.form-modal-body .hs-form-field input::placeholder,
.form-modal-body .hs-form-field textarea::placeholder {
    color: var(--text-muted) !important;
}

.form-modal-body .hs-submit {
    margin-top: 1.5rem;
}

.form-modal-body .hs-submit input[type="submit"] {
    width: 100%;
    padding: 1rem !important;
    background: var(--black) !important;
    color: var(--bg) !important;
    border: none !important;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.form-modal-body .hs-submit input[type="submit"]:hover {
    opacity: 0.85;
}

.form-modal-body .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.form-modal-body .hs-error-msg {
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    color: var(--orange) !important;
}

/* Thank you message styling */
.form-modal-body .submitted-message {
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    color: var(--text) !important;
    line-height: 1.6;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .form-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-modal-header {
        padding: 1.25rem 1.25rem 0;
    }
    
    .form-modal-intro {
        padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
}

    .form-modal-body {
        padding: 1.25rem;
    }
}

/* ========================================
   BLOG STYLES
   ======================================== */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-post-item:hover {
    padding-left: 1rem;
    border-color: var(--orange);
}

.blog-post-item:last-child {
    border-bottom: none;
}

.blog-post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.blog-post-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post-summary {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.blog-post-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-post-author {
    color: var(--text-muted);
}

.no-posts {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dim);
    text-align: center;
    padding: 3rem 0;
}

/* Individual blog post content */
.blog-post-content {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content h1 {
    font-size: 2rem;
}

.blog-post-content h2 {
    font-size: 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.25rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content strong {
    color: var(--text);
    font-weight: 500;
}

.blog-post-content em {
    font-style: italic;
}

.blog-post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.blog-post-content a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-post-content a:hover {
    border-bottom-color: var(--orange);
}

.back-to-blog {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--orange);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
}

.back-to-blog:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 1.25rem;
    }
    
    .blog-post-summary {
        font-size: 0.9rem;
    }
}
