/* ============================================================
   ELENOS — page styles
   Home, Work, Services, About, Contact, Products
   ============================================================ */

/* ============================================================
   HOME — hero
   ============================================================ */

.home-hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + var(--sp-8)) var(--pad-x) var(--sp-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max);
    margin: 0 auto;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: var(--sp-6);
}

.home-hero-title {
    max-width: 16ch;
    margin-bottom: var(--sp-6);
}
.home-hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}
.home-hero-title .line > span {
    display: inline-block;
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-6);
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    color: var(--ink-3);
    text-transform: uppercase;
    text-align: center;
}
.home-hero-meta > div { display: flex; flex-direction: column; gap: 0.3rem; }
.home-hero-meta b { color: var(--ink); font-weight: 500; }

.home-hero-sub {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--sp-8);
    align-items: end;
    margin-bottom: var(--sp-8);
}
.home-hero-actions {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--sp-6);
}

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--sp-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.24em;
    color: var(--ink-4);
    text-transform: uppercase;
}
.scroll-indicator::after {
    content: "";
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   HOME — manifesto
   ============================================================ */

.manifesto {
    padding: var(--sp-10) var(--pad-x);
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}
.manifesto-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sp-7);
}
.manifesto-lines {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    max-width: 24ch;
    font-weight: 380;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.manifesto-lines p {
    margin-bottom: var(--sp-5);
    color: var(--ink-4);
    transition: color 1.2s var(--ease-out);
}
.manifesto-lines p.lit { color: var(--ink); }
.manifesto-lines em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: inherit;
}

/* ============================================================
   HOME — capabilities (orbit)
   ============================================================ */

.caps {
    padding: var(--sp-10) var(--pad-x);
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}
.caps-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    align-items: end;
    margin-bottom: var(--sp-8);
}
.caps-head h2 { max-width: 18ch; }
.caps-head p { color: var(--ink-3); max-width: 44ch; }

/* Editorial numbered index — each discipline is a full-width row */
.disciplines {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.discipline {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr 64px;
    gap: var(--sp-7);
    padding: var(--sp-7) 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    overflow: hidden;
    transition: background 0.6s var(--ease-out);
}

/* Purple hairline that extends across the row on hover */
.discipline::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.8s var(--ease-out);
    z-index: 1;
}
.discipline:hover::before { width: 100%; }
.discipline:hover {
    background: linear-gradient(90deg, rgba(162, 0, 255, 0.055), rgba(162, 0, 255, 0) 70%);
}

.d-meta {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-top: 0.75rem;
}
.d-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: var(--ink-4);
    transition: color 0.45s var(--ease-out);
}
.discipline:hover .d-num { color: var(--accent-2); }
.d-lane {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.d-lane::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--ink-4);
    display: inline-block;
    transition: background 0.4s, width 0.4s var(--ease-out);
}
.discipline:hover .d-lane::before { background: var(--accent); width: 28px; }

.d-body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    max-width: 720px;
}
.d-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 380;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.d-title em {
    font-style: italic;
    color: var(--ink-3);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    transition: color 0.55s var(--ease-out);
}
.discipline:hover .d-title em { color: var(--accent-2); }

.d-desc {
    color: var(--ink-3);
    font-size: var(--fs-sm);
    line-height: 1.6;
    max-width: 62ch;
}

.d-tags {
    display: flex;
    gap: var(--sp-5);
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: var(--sp-2);
}
.d-tags span {
    position: relative;
    padding-left: 0.95rem;
    transition: color 0.35s;
}
.d-tags span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--accent-2);
}
.discipline:hover .d-tags span { color: var(--ink-3); }

.d-arrow {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--ink-4);
    align-self: start;
    padding-top: 0.75rem;
    text-align: right;
    transition: color 0.35s, transform 0.45s var(--ease-out);
}
.discipline:hover .d-arrow {
    color: var(--ink);
    transform: translate(6px, -6px);
}

/* ============================================================
   HOME — selected work
   ============================================================ */

.selected {
    padding: var(--sp-10) var(--pad-x);
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}
.selected-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    align-items: end;
    margin-bottom: var(--sp-8);
}
.selected-head h2 { max-width: 16ch; }

.selected-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-5);
}
.project {
    grid-column: span 6;
    position: relative;
    aspect-ratio: 16 / 11;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-1);
    transition: transform 0.6s var(--ease-out), border-color 0.3s;
    cursor: pointer;
    display: block;
}
.project:nth-child(3) { grid-column: span 7; }
.project:nth-child(4) { grid-column: span 5; }
.project:hover { transform: translateY(-4px); border-color: var(--line-3); }

.project-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-1);
    z-index: 0;
    --iframe-scale: 0.35;
}
.project-preview iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1440px;
    height: 900px;
    border: 0;
    pointer-events: none;
    background: var(--bg-1);
    transform: translateX(-50%) scale(var(--iframe-scale));
    transform-origin: top center;
    opacity: 0;
    transition: opacity 0.8s var(--ease-out);
}
.project-preview iframe[data-loaded="true"] { opacity: 1; }

.project[data-iframe-align="left"] .project-preview iframe {
    left: 0;
    transform: scale(var(--iframe-scale));
    transform-origin: 0 0;
}

.project-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease-out), opacity 0.4s;
    opacity: 0.7;
}
.project:hover .project-bg { transform: scale(1.04); opacity: 0.9; }
.project-tint {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.88) 100%);
    z-index: 1;
    transition: background 0.5s var(--ease-out);
}
.project:hover .project-tint {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.82) 100%);
}
.project-meta {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: var(--sp-5) var(--sp-5);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--sp-4);
}
.project-name {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 400;
    line-height: 1;
}
.project-tag {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: var(--sp-2);
}
.project-arrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    flex-shrink: 0;
}
.project:hover .project-arrow { color: var(--accent-2); }

/* individual project tints */
.project-edthestatman { background: radial-gradient(circle at 30% 30%, #0a3a2a 0%, #02100a 70%); }
.project-ironbound { background: radial-gradient(circle at 70% 20%, #3a1a0a 0%, #100502 70%); }
.project-sr71 { background: radial-gradient(circle at 50% 50%, #1a1a24 0%, #050507 70%); }
.project-acuityiq { background: radial-gradient(circle at 40% 40%, #2a0042 0%, #08000e 70%); }

.selected-cta {
    margin-top: var(--sp-8);
    display: flex;
    justify-content: center;
}

/* ============================================================
   HOME — principles
   ============================================================ */

.principles {
    padding: var(--sp-10) var(--pad-x);
    max-width: var(--max);
    margin: 0 auto;
}
.principles-head { margin-bottom: var(--sp-8); max-width: 40ch; }

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}
.principle {
    padding: var(--sp-6) 0 0 0;
    border-top: 1px solid var(--line);
    position: relative;
}
.principle-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--accent-2);
    margin-bottom: var(--sp-4);
}
.principle h3 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--sp-4);
}
.principle p { color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.6; }

/* ============================================================
   HOME — final CTA
   ============================================================ */

.final-cta {
    padding: var(--sp-10) var(--pad-x) var(--sp-9);
    text-align: center;
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
}
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 {
    margin-top: var(--sp-5);
    margin-bottom: var(--sp-5);
}
.final-cta p { color: var(--ink-3); max-width: 40ch; margin: 0 auto var(--sp-7); }
.final-cta .btn { margin: 0 auto; }

.final-cta-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 600px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

/* ============================================================
   WORK — portfolio showpiece
   ============================================================ */

.work-intro {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + var(--sp-8)) var(--pad-x) var(--sp-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max);
    margin: 0 auto;
    z-index: 2;
}
.work-intro h1 { max-width: 14ch; margin: var(--sp-5) 0 var(--sp-6); }
.work-intro .lede { max-width: 40ch; }
.work-intro-meta {
    margin-top: var(--sp-7);
    display: flex;
    gap: var(--sp-7);
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    color: var(--ink-3);
    text-transform: uppercase;
}
.work-intro-meta b { color: var(--ink); font-weight: 500; }
.work-intro .scroll-indicator { bottom: var(--sp-6); }

.work-journey {
    position: relative;
    z-index: 2;
}

.work-section {
    min-height: 120vh;
    padding: var(--sp-8) var(--pad-x);
    display: flex;
    align-items: center;
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
}

.work-panel {
    max-width: 520px;
    width: 100%;
    padding: var(--sp-7) var(--sp-6);
    background: transparent;
    border: 0;
    position: relative;
    z-index: 2;
}
/* Soft radial "ink pool" behind the text — dark enough for legibility,
   fades to fully transparent at the edges so the 3D breathes through. */
.work-panel::before {
    content: "";
    position: absolute;
    inset: -30px -60px;
    background: radial-gradient(
        ellipse at center,
        rgba(3, 2, 8, 0.82) 0%,
        rgba(3, 2, 8, 0.62) 35%,
        rgba(3, 2, 8, 0.28) 65%,
        transparent 92%
    );
    z-index: -1;
    pointer-events: none;
    filter: blur(2px);
}

.work-section[data-side="right"] { justify-content: flex-end; }
.work-section[data-side="left"] { justify-content: flex-start; }

.work-transmission {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.24em;
    color: var(--accent-2);
    margin-bottom: var(--sp-5);
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--line);
}
.work-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--sp-3);
}
.work-panel .tagline {
    color: var(--ink-2);
    font-size: var(--fs-md);
    margin-bottom: var(--sp-5);
    line-height: 1.4;
}
.work-panel .description {
    color: var(--ink-3);
    font-size: var(--fs-sm);
    line-height: 1.65;
    margin-bottom: var(--sp-5);
}
.spec-list {
    margin-bottom: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.spec-list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--sp-4);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li span:first-child { color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.2em; }
.spec-list li span:last-child { color: var(--ink); }

.work-actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* ----- Per-section orb → live preview ----- */

.work-preview {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(320px, 42vw, 620px);
    aspect-ratio: 16 / 10;
    pointer-events: none;
    z-index: 2;
    --iframe-scale: 0.4;
}
.work-preview.open { pointer-events: auto; }
.work-section[data-side="left"] .work-preview {
    right: clamp(1rem, 4vw, 4.5rem);
}
.work-section[data-side="right"] .work-preview {
    left: clamp(1rem, 4vw, 4.5rem);
}

.work-preview-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #e8cbff 30%, var(--accent) 70%, rgba(162, 0, 255, 0.8) 100%);
    box-shadow:
        0 0 10px var(--accent),
        0 0 22px var(--accent),
        0 0 48px rgba(162, 0, 255, 0.55);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    overflow: hidden;
    transition:
        width 1.1s cubic-bezier(0.76, 0, 0.18, 1),
        height 1.1s cubic-bezier(0.76, 0, 0.18, 1),
        border-radius 0.9s cubic-bezier(0.76, 0, 0.18, 1),
        background 0.7s ease-out,
        box-shadow 0.45s ease-out,
        opacity 0.5s ease-out,
        transform 0.35s var(--ease-out);
}

.work-preview.visible .work-preview-frame {
    opacity: 1;
    animation: orbPulse 1.1s ease-in-out;
}

.work-preview.open .work-preview-frame {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #02010a;
    box-shadow:
        0 28px 80px -22px rgba(162, 0, 255, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.07) inset,
        0 0 0 1px rgba(162, 0, 255, 0.22);
    animation: none;
}

/* Hover-to-interact: enable iframe + visual lift */
.work-preview.open:hover iframe {
    pointer-events: auto;
}
.work-preview.open:hover .work-preview-frame {
    transform: translate(-50%, -50%) scale(1.015);
    box-shadow:
        0 38px 100px -18px rgba(162, 0, 255, 0.55),
        0 0 0 1px rgba(162, 0, 255, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        inset 0 0 0 1px rgba(162, 0, 255, 0.15);
}

@keyframes orbPulse {
    0%   { transform: translate(-50%, -50%) scale(1);   }
    35%  { transform: translate(-50%, -50%) scale(1.6); }
    70%  { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1);   }
}

.work-preview-chrome {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 24px;
    background: rgba(5, 3, 10, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 5px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s 0.55s var(--ease-out);
}
.work-preview.open .work-preview-chrome { opacity: 1; }

.work-preview-chrome .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.work-preview-chrome .dot:nth-child(1) { background: rgba(255, 95, 86, 0.6); }
.work-preview-chrome .dot:nth-child(2) { background: rgba(255, 189, 46, 0.6); }
.work-preview-chrome .dot:nth-child(3) { background: rgba(39, 201, 63, 0.6); }

.work-preview-chrome .url {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    text-transform: lowercase;
}

/* Live indicator — recording-style green dot in chrome */
.work-preview-chrome::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27c93f;
    margin-left: auto;
    opacity: 0.35;
    transition: opacity 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.work-preview.open:hover .work-preview-chrome::after {
    opacity: 1;
    box-shadow: 0 0 8px #27c93f, 0 0 16px rgba(39, 201, 63, 0.55);
    animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink {
    50% { opacity: 0.6; }
}

.work-preview-iframe-wrap {
    position: absolute;
    top: 24px;
    left: 0; right: 0; bottom: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.55s 0.7s var(--ease-out);
    background: #02010a;
}
.work-preview.open .work-preview-iframe-wrap { opacity: 1; }

.work-preview-iframe-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(162, 0, 255, 0.08) 50%, transparent 80%);
    animation: previewShimmer 1.8s infinite;
    pointer-events: none;
    z-index: 1;
}
.work-preview.loaded .work-preview-iframe-wrap::before { display: none; }

@keyframes previewShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
}

.work-preview iframe {
    position: absolute;
    top: 0; left: 0;
    width: 1440px;
    height: 900px;
    border: 0;
    pointer-events: none;
    background: #02010a;
    transform: scale(var(--iframe-scale));
    transform-origin: 0 0;
}

/* Mobile: stack preview under panel instead of absolute positioning */
@media (max-width: 1000px) {
    .work-preview {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: var(--sp-6);
        aspect-ratio: 16 / 10;
    }
    .work-section[data-side="left"] .work-preview,
    .work-section[data-side="right"] .work-preview {
        right: auto; left: auto;
    }
    .work-section[data-side="left"],
    .work-section[data-side="right"] {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: var(--sp-6);
    }
    /* SR-71 preview is skipped on mobile (WebGL crash) — hide the empty box */
    .work-section[data-preview-host="sr-71"] .work-preview { display: none; }
    .work-section[data-preview-host="sr-71"] { gap: 0; }
}

.work-final {
    min-height: 100vh;
    padding: var(--sp-9) var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}
.work-final h2 {
    max-width: 18ch;
    margin: var(--sp-5) auto;
}
.work-final p { color: var(--ink-2); max-width: 40ch; margin: 0 auto var(--sp-7); font-size: var(--fs-md); }

/* journey progress ring (top right) */
.journey-progress {
    position: fixed;
    top: calc(var(--nav-h) + var(--sp-4));
    right: var(--pad-x);
    z-index: 20;
    width: 56px;
    height: 56px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}
.journey-progress svg { position: absolute; inset: 0; }
.journey-progress.visible { opacity: 1; }
.journey-progress svg { transform: rotate(-90deg); }
.journey-progress circle {
    fill: none;
    stroke-width: 1.5;
}
.journey-progress .track { stroke: var(--line-2); }
.journey-progress .prog {
    stroke: var(--accent);
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.2s linear;
}
.journey-progress .label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--ink);
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-hero {
    position: relative;
    min-height: 80vh;
    padding: calc(var(--nav-h) + var(--sp-8)) var(--pad-x) var(--sp-8);
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.services-hero h1 { max-width: 18ch; margin: var(--sp-5) 0 var(--sp-6); }

.services-list {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--sp-8) var(--pad-x) var(--sp-10);
}
.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 200px;
    gap: var(--sp-6);
    padding: var(--sp-7) 0;
    border-top: 1px solid var(--line);
    align-items: start;
    transition: background 0.4s var(--ease-out);
    position: relative;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { background: linear-gradient(90deg, rgba(162, 0, 255, 0.05), transparent); }

.service-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--ink-4);
    padding-top: 0.6rem;
}
.service-title h3 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: var(--sp-4);
}
.service-title .tagline {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.service-body p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.service-body ul { margin-top: var(--sp-4); }
.service-body ul li {
    padding: 0.35rem 0;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--line);
}
.service-body ul li:last-child { border-bottom: 0; }
.service-cta { text-align: right; padding-top: 0.4rem; }

/* ============================================================
   ABOUT
   ============================================================ */

.about-hero {
    position: relative;
    min-height: 80vh;
    padding: calc(var(--nav-h) + var(--sp-8)) var(--pad-x) var(--sp-8);
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-hero h1 { max-width: 14ch; margin: var(--sp-5) 0 var(--sp-6); }

.about-story {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--sp-9) var(--pad-x);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 1.9rem);
    line-height: 1.38;
    color: var(--ink-4);
    letter-spacing: -0.005em;
    font-weight: 380;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.about-story p { margin-bottom: var(--sp-5); transition: color 1.2s var(--ease-out); }
.about-story p.lit { color: var(--ink); }
.about-story em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: inherit;
}

.founders {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--sp-9) var(--pad-x);
}
.founders-head { margin-bottom: var(--sp-7); }
.founders-head h2 { margin-top: var(--sp-4); max-width: 20ch; }
.founder {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--sp-7);
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-7);
}
.founder-portrait {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line-2);
    flex-shrink: 0;
}
.founder-portrait picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
.founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.6s var(--ease-out);
}
.founder-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--accent-2);
    background: radial-gradient(circle at 30% 30%, rgba(120, 140, 200, 0.18), transparent 70%), var(--surface-1, #0b0d14);
    z-index: 1;
    user-select: none;
}
.founder:hover .founder-portrait img {
    filter: grayscale(0) contrast(1);
}
.founder-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.3rem;
}
.founder-name {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 400;
    line-height: 1;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.founder-role {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-top: 0.35rem;
    margin-bottom: var(--sp-4);
}
.founder-bio {
    color: var(--ink-3);
    font-size: var(--fs-sm);
    line-height: 1.65;
    max-width: 48ch;
    margin-bottom: var(--sp-4);
}
.founder-socials {
    display: flex;
    gap: var(--sp-4);
}
.founder-socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--ink-3);
    font-size: 0.85rem;
    transition: color 0.25s, border-color 0.25s;
}
.founder-socials a:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

.values {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--sp-9) var(--pad-x);
}
.values-head { margin-bottom: var(--sp-7); max-width: 40ch; }
.values-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}
.value-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--sp-7);
    padding: var(--sp-7) 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.5s var(--ease-out);
    position: relative;
}
.value-row::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.7s var(--ease-out);
}
.value-row:hover::before { width: 100%; }
.value-row:hover {
    background: linear-gradient(90deg, rgba(162, 0, 255, 0.04), transparent 60%);
}
.value-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: var(--ink-4);
    padding-top: 0.55rem;
    transition: color 0.4s;
}
.value-row:hover .value-num { color: var(--accent-2); }
.value-content { max-width: 620px; }
.value-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 380;
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 80;
    margin-bottom: var(--sp-3);
}
.value-title em {
    font-style: italic;
    color: var(--ink-3);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    transition: color 0.5s;
}
.value-row:hover .value-title em { color: var(--accent-2); }
.value-content p {
    color: var(--ink-3);
    font-size: var(--fs-sm);
    line-height: 1.65;
    max-width: 56ch;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-wrap {
    min-height: 100vh;
    padding: calc(var(--nav-h) + var(--sp-7)) var(--pad-x) var(--sp-8);
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: center;
}
.contact-left h1 { max-width: 12ch; margin: var(--sp-5) 0 var(--sp-5); }
.contact-left .lede { margin-bottom: var(--sp-6); }
.contact-points {
    margin-top: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.contact-point {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.contact-point:last-child { border-bottom: 1px solid var(--line); }
.contact-point .label { color: var(--ink-4); min-width: 120px; }
.contact-point .value { color: var(--ink); }
.contact-point a { color: var(--accent-2); transition: color 0.25s; }
.contact-point a:hover { color: var(--ink); }

.contact-right {
    position: relative;
    padding: var(--sp-7);
    background: linear-gradient(180deg, rgba(10, 6, 20, 0.6), rgba(5, 3, 10, 0.85));
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.contact-right::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px;
    width: 60px; height: 60px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    pointer-events: none;
}
.contact-right::after {
    content: "";
    position: absolute;
    bottom: -1px; right: -1px;
    width: 60px; height: 60px;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    pointer-events: none;
}
.contact-right h3 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--sp-4);
}
.contact-right > p { color: var(--ink-3); margin-bottom: var(--sp-5); font-size: var(--fs-sm); }

.contact-cta-block {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-5);
}
.contact-cta-block .btn { width: 100%; justify-content: center; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.contact-form label {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-4);
    display: block;
    margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    border-radius: 2px;
    transition: border-color 0.25s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin: var(--sp-5) 0;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-4);
}
.contact-divider::before,
.contact-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ============================================================
   PRODUCTS
   ============================================================ */

.products-hero {
    position: relative;
    min-height: 80vh;
    padding: calc(var(--nav-h) + var(--sp-8)) var(--pad-x) var(--sp-8);
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.products-hero h1 { max-width: 14ch; margin: var(--sp-5) 0 var(--sp-6); }

.products-list {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--sp-8) var(--pad-x) var(--sp-10);
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg-1);
    position: relative;
    transition: border-color 0.3s;
}
.product-card:hover { border-color: var(--line-2); }
.product-card.reversed { direction: rtl; }
.product-card.reversed > * { direction: ltr; }

.product-visual {
    aspect-ratio: 4 / 3;
    position: relative;
    background: radial-gradient(circle at 40% 40%, var(--accent-faint), transparent 70%);
    overflow: hidden;
    min-height: 220px;
    display: grid;
    place-items: center;
}
.product-visual::before {
    content: attr(data-fallback);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.45);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0 1rem;
    text-align: center;
    pointer-events: none;
}
.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    opacity: 1;
}
.product-visual img:invalid {
    display: none;
}

.product-visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-visual-icon i {
    font-size: clamp(4rem, 8vw, 6.5rem);
    color: var(--accent-2);
    filter: drop-shadow(0 0 20px var(--accent)) drop-shadow(0 0 50px rgba(162, 0, 255, 0.4));
    animation: iconFloat 4s var(--ease-in-out) infinite;
}
@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

.product-body {
    padding: var(--sp-7);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    align-self: flex-start;
    margin-bottom: var(--sp-4);
}
.product-status.live {
    color: #6cffaf;
    border-color: rgba(108, 255, 175, 0.4);
}
.product-status.live::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #6cffaf;
    box-shadow: 0 0 10px #6cffaf;
    animation: statusPulse 2s infinite;
}
.product-status.soon::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.product-name {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 400;
    line-height: 0.95;
    margin-bottom: var(--sp-3);
}
.product-tagline {
    color: var(--ink-2);
    font-size: var(--fs-md);
    margin-bottom: var(--sp-5);
}
.product-description { color: var(--ink-3); line-height: 1.6; margin-bottom: var(--sp-5); }

/* ============================================================
   RESPONSIVE — pages
   ============================================================ */

@media (max-width: 1000px) {
    .home-hero-sub { grid-template-columns: 1fr; }
    .caps-head, .selected-head { grid-template-columns: 1fr; }
    .discipline {
        grid-template-columns: 60px 1fr;
        gap: var(--sp-4);
        padding: var(--sp-6) 0;
    }
    .d-meta { flex-direction: row; align-items: baseline; gap: var(--sp-3); padding-top: 0; }
    .d-lane { display: none; }
    .d-arrow { grid-column: 2; align-self: end; padding-top: var(--sp-4); text-align: left; }
    .d-title { font-size: clamp(1.75rem, 6vw, 2.4rem); }
    .d-tags { gap: var(--sp-3); }
    .selected-grid .project,
    .selected-grid .project:nth-child(3),
    .selected-grid .project:nth-child(4) { grid-column: span 12; }
    .principle-grid { grid-template-columns: 1fr; }
    .value-row { grid-template-columns: 50px 1fr; gap: var(--sp-4); }
    .service-row { grid-template-columns: 60px 1fr; }
    .service-body, .service-cta { grid-column: 1 / -1; padding-left: 60px; }
    .service-cta { text-align: left; }
    .founder { grid-template-columns: 100px 1fr; gap: var(--sp-5); }
    .founder-portrait { width: 100px; height: 100px; }
    .contact-wrap { grid-template-columns: 1fr; gap: var(--sp-6); }
    .product-card { grid-template-columns: 1fr; }
    .product-card.reversed { direction: ltr; }
    .work-section { min-height: auto; padding: var(--sp-8) var(--pad-x); }
    .work-section[data-side="right"],
    .work-section[data-side="left"] { justify-content: center; }
    .work-panel { max-width: 100%; }
    .home-hero-meta { gap: var(--sp-4); }
    .home-hero-meta > div { flex: 1 1 45%; }
    .scroll-indicator { display: none; }

    /* Mobile iframe guard — heavy scroll-driven previews (e.g. SR-71)
       must not capture page-scroll gestures. pointer-events:none is
       already set; touch-action:none forbids the iframe from claiming
       any gesture, and content-visibility:auto lets the browser skip
       painting the preview when it's off-screen. */
    .project-preview iframe,
    .work-preview iframe {
        touch-action: none;
    }
    .project,
    .work-preview {
        content-visibility: auto;
        contain-intrinsic-size: 320px 220px;
    }
}

@media (max-width: 600px) {
    .home-hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
    .contact-form-row { grid-template-columns: 1fr; }
    .journey-progress { top: calc(var(--nav-h) + var(--sp-2)); right: var(--sp-4); width: 44px; height: 44px; }
    .founder { grid-template-columns: 1fr; justify-items: start; }
    .founder-portrait { width: 96px; height: 96px; }
    .founder-initials { font-size: 2.4rem; }
    .founder-info { padding-top: 0; }
}
