/* ------------------------------
   Google Fonts
--------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ------------------------------
   Design Tokens — Dark Industrial-Tech
--------------------------------*/
:root {
    --primary: #F5C400;          /* Signature yellow */
    --primary-bright: #FFD60A;   /* Hover / glow highlight */
    --primary-soft: rgba(245, 196, 0, 0.14);

    --bg: #0a0a0b;               /* Page canvas */
    --bg-2: #101013;             /* Bands / raised sections */
    --bg-3: #17171b;             /* Cards / panels */
    --bg-4: #1e1e23;             /* Inputs / spec cells */
    --bg-veil: #08080a;          /* Boot splash veil, one step darker than --bg */
    --chevron-dim: #3a3a44;      /* Recessive ">" chevron in the wordmark */

    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --grid: rgba(255, 255, 255, 0.05);          /* fine graph lines */
    --grid-major: rgba(255, 255, 255, 0.09);    /* bolder line every 5 cells */

    --text: #ececf0;             /* Primary light text */
    --text-muted: #9a9aa4;       /* Secondary text */
    --text-dim: #626270;         /* Meta / faint */

    --dark: #0a0a0b;             /* Text color on yellow surfaces */
    --white: #ffffff;

    --glow: 0 0 24px rgba(245, 196, 0, 0.30);
    --glow-strong: 0 0 32px rgba(245, 196, 0, 0.45);

    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ------------------------------
   Base
--------------------------------*/
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    position: relative;
    min-height: 100vh;
    /* Sticky footer: body stacks header/main/footer vertically and main
       grows to fill leftover space, so footer sits at the bottom of the
       viewport on short pages instead of riding up under the content. */
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Blueprint graph paper — fine grid + bolder lines every 5 cells.
   Absolutely positioned (not fixed) so the paper scrolls with the page. */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(var(--grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
}

/* Full-viewport overlay: CRT scanlines + soft yellow ambient glow up top */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(ellipse 120% 70% at 50% -20%, rgba(245, 196, 0, 0.07), transparent 60%);
}

/* Light trails: each is a short pulse that travels the full length of ONE
   grid line, then removes itself. The layer is document-anchored (absolute),
   so trails scroll WITH the grid and stay locked to their line — no snapping.
   site.js spawns them on lines within the current viewport. */
.grid-trails {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-trail {
    position: absolute;
    opacity: 0;
    border-radius: 2px;
    will-change: transform, opacity;
}

.grid-trail.h {
    left: 0;
    height: 2px;
    width: 220px;
    background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.12), var(--primary-bright));
    box-shadow: 0 0 10px 1px rgba(245, 196, 0, 0.5);
    animation: trail-h linear forwards;
}

.grid-trail.v {
    top: 0;
    width: 2px;
    height: 220px;
    background: linear-gradient(180deg, transparent, rgba(245, 196, 0, 0.12), var(--primary-bright));
    box-shadow: 0 0 10px 1px rgba(245, 196, 0, 0.5);
    animation: trail-v linear forwards;
}

@keyframes trail-h {
    0%   { transform: translateX(-260px); opacity: 0; }
    12%  { opacity: 0.85; }
    85%  { opacity: 0.85; }
    100% { transform: translateX(var(--travel, 100vw)); opacity: 0; }
}

@keyframes trail-v {
    0%   { transform: translateY(-260px); opacity: 0; }
    12%  { opacity: 0.85; }
    85%  { opacity: 0.85; }
    100% { transform: translateY(var(--travel, 100vh)); opacity: 0; }
}

main {
    max-width: 960px;
    margin: 48px auto;
    padding: 0 24px;
    position: relative;
    flex: 1 0 auto;
}

section {
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: none; }

::selection {
    background: var(--primary);
    color: var(--dark);
}

/* HUD scrollbar */
html {
    scrollbar-color: var(--bg-4) var(--bg); /* Firefox */
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--bg-4);
    border: 1px solid rgba(245, 196, 0, 0.35);
}
::-webkit-scrollbar-thumb:hover { background: rgba(245, 196, 0, 0.45); }

/* ------------------------------
   Header + Navigation
--------------------------------*/
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Solid (near-opaque) instead of backdrop-filter blur: blurring the
       continuously-animating grid/trails behind the header forced a re-blur
       every frame and made weak renderers hang. Visually near-identical. */
    background: rgb(12, 12, 14);
    border-bottom: 1px solid var(--line);
}

/* Glowing hairline accent under the header */
header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.5), transparent);
    opacity: 0.7;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 13px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.wordmark {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    text-transform: none;
    margin-right: 8px;
}

.wordmark-line1 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--primary);
    text-shadow: 0 0 18px rgba(245, 196, 0, 0.35);
}

.wordmark-line1 .chevron { color: var(--text-dim); }

.wordmark-sub {
    margin-top: 2px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.56rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    position: relative;
    transition: color 0.2s ease;
}

nav a:not(.quote-btn):not(.wordmark):not(.social-pill)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--glow);
    transition: width 0.25s ease;
}

nav a:not(.quote-btn):not(.social-pill):hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

.nav-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    padding: 8px 14px;
    border: 1px solid rgba(245, 196, 0, 0.5);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-pill svg { display: block; width: 16px; height: 16px; }

.social-pill:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

/* Cyberpunk cut-corner button silhouette (top-left + bottom-right notch).
   Glow uses drop-shadow, not box-shadow — box-shadow gets clipped away.
   Hover INVERTS (filled -> outline) instead of just brightening the fill —
   a plain "brighter yellow" hover made the text (previously colliding with
   nav a:hover's color rule) disappear into the button.
   IMPORTANT: a plain `border` does NOT follow clip-path's diagonal notch
   cuts (it only strokes the original rectangle's straight edges), so with
   a transparent fill the notches rendered with no color at all. Fixed by
   dropping `border` and outlining with `drop-shadow(0 0 <blur> color)`
   instead — drop-shadow traces the true (already-clipped) alpha silhouette,
   so it correctly follows the notches too. That needs an OPAQUE fill to
   trace, so hover uses a dark panel color instead of fully transparent. */
.quote-btn {
    background: var(--primary);
    color: var(--dark);
    padding: 9px 18px;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    filter: drop-shadow(0 0 10px rgba(245, 196, 0, 0.35));
    transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.quote-btn:hover {
    background: var(--bg-2);
    color: var(--primary);
    filter: drop-shadow(0 0 1.5px var(--primary)) drop-shadow(0 0 14px rgba(245, 196, 0, 0.6));
    transform: translateY(-2px);
}

/* Mobile hamburger toggle (created by site.js; hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------
   Typography
--------------------------------*/
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-top: 40px;
}

h1 { font-size: 2.4rem; font-weight: 700; }

h2 {
    font-size: 1.7rem;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    box-shadow: -1px 0 16px -6px rgba(245, 196, 0, 0.7);
}

h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--text-muted); }

a { color: var(--primary); }

/* Mono eyebrow label */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

/* ------------------------------
   Hero
--------------------------------*/
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 80px 28px;
    text-align: center;
    margin-bottom: 8px;
}

/* Animated perspective-ish grid inside the hero */
.hero::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(245, 196, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 196, 0, 0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse at center, black, transparent 62%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 62%);
    animation: grid-drift 22s linear infinite;
}

@keyframes grid-drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(38px, 38px); }
}

.hero > * { position: relative; z-index: 1; }

/* HUD corner brackets framing the hero */
.hero::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
    background:
        linear-gradient(var(--primary), var(--primary)) left 0 top 0 / 20px 2px,
        linear-gradient(var(--primary), var(--primary)) left 0 top 0 / 2px 20px,
        linear-gradient(var(--primary), var(--primary)) right 0 top 0 / 20px 2px,
        linear-gradient(var(--primary), var(--primary)) right 0 top 0 / 2px 20px,
        linear-gradient(var(--primary), var(--primary)) left 0 bottom 0 / 20px 2px,
        linear-gradient(var(--primary), var(--primary)) left 0 bottom 0 / 2px 20px,
        linear-gradient(var(--primary), var(--primary)) right 0 bottom 0 / 20px 2px,
        linear-gradient(var(--primary), var(--primary)) right 0 bottom 0 / 2px 20px;
    background-repeat: no-repeat;
}

.hero h1 {
    margin: 0 auto;
    max-width: 15ch;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
}

/* Resting glow via filter (not text-shadow) so the glitch animation's calm
   keyframes can safely reset text-shadow to none. */
.hero h1 .accent {
    display: inline-block;
    color: var(--primary);
    filter: drop-shadow(0 0 24px rgba(245, 196, 0, 0.5));
    animation: glitch 3.5s infinite;
}

/* Attention-grabbing glitch, applied to major titles. Each category uses a
   slightly different (co-prime-ish) duration so they drift out of sync and
   never twitch in unison. A brief RGB-split twitch + a small aftershock. */
.page-header h1,
main > h1 {
    display: inline-block;
    animation: glitch 4.3s infinite;
}

.post-header h1 {
    display: inline-block;
    animation: glitch 4.9s infinite;
}

main > section > h2,
.post section h2 {
    display: inline-block;
    animation: glitch 5.5s infinite;
}

@keyframes glitch {
    0%, 86%, 100% { transform: none; text-shadow: none; }
    87%   { transform: translate(2px, -1px) skewX(-6deg);
            text-shadow: -3px 0 rgba(255, 255, 255, 0.85), 3px 0 rgba(245, 196, 0, 0.95); }
    89%   { transform: translate(-2px, 1px) skewX(5deg);
            text-shadow: 3px 0 rgba(255, 255, 255, 0.85), -3px 0 rgba(245, 196, 0, 0.95); }
    90.5% { transform: none; text-shadow: none; }
    91.5% { transform: translateX(1px);
            text-shadow: -2px 0 rgba(255, 255, 255, 0.6), 2px 0 rgba(245, 196, 0, 0.8); }
    93%   { transform: none; text-shadow: none; }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 20px auto 34px;
}

.hero .btn {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 15px 32px;
    border-radius: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    filter: drop-shadow(0 0 12px rgba(245, 196, 0, 0.4));
    transition: background 0.25s ease, filter 0.25s ease, transform 0.2s ease;
}

.hero .btn:hover {
    background: var(--primary-bright);
    filter: drop-shadow(0 0 18px rgba(245, 196, 0, 0.6));
    transform: translateY(-3px);
}

/* ------------------------------
   Lists
--------------------------------*/
ul { padding-left: 20px; }

li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

li::marker { color: var(--primary); }

li strong { color: var(--text); }

/* ------------------------------
   Generic content sections / service blocks
--------------------------------*/
.service-block {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    padding: 28px 30px;
    margin: 24px 0;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    border-color: var(--line-strong);
    border-left-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}

.service-block h2 {
    margin-top: 0;
    border: none;
    box-shadow: none;
    padding-left: 0;
    font-size: 1.35rem;
}

/* ------------------------------
   Footer
--------------------------------*/
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 40px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-top: 72px;
}

footer p { margin: 0; color: var(--text-dim); }

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ------------------------------
   Card Grid
--------------------------------*/
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    position: relative;
    background: var(--bg-3);
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 10px;
    color: var(--text);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(245, 196, 0, 0.5);
    box-shadow: 0 10px 40px -20px rgba(245, 196, 0, 0.35);
    transform: translateY(-4px);
}

/* Yellow accent bar */
.card::before {
    content: "";
    display: block;
    height: 3px;
    width: 40px;
    background: var(--primary);
    box-shadow: var(--glow);
    margin-bottom: 14px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.25rem;
}

.card p { color: var(--text-muted); margin-bottom: 16px; }

/* Post Date / mono meta */
.post-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.post-header .post-date { color: var(--primary); }

.card ul { margin: 0; padding-left: 20px; }

/* ------------------------------
   Featured Project (homepage)
--------------------------------*/
.featured-project {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
}

/* Thumbnail scales with the viewport: fluid width + fixed aspect ratio
   instead of a fixed pixel box. */
.featured-project-media {
    display: block;
    flex: 1 1 46%;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.featured-project-media:hover {
    border-color: rgba(245, 196, 0, 0.5);
    box-shadow: 0 0 30px -8px rgba(245, 196, 0, 0.4);
}

.featured-project-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.featured-project-body {
    flex: 1 1 50%;
    min-width: 0;
}

.featured-project-body h3 {
    margin: 10px 0 12px;
    color: var(--primary);
    font-size: 1.6rem;
}

.featured-project-body p {
    color: var(--text-muted);
    margin: 0 0 6px;
}

.projects-more {
    text-align: center;
    margin-top: 32px;
}

@media (max-width: 700px) {
    .featured-project {
        flex-direction: column;
        padding: 24px;
    }
}

/* ------------------------------
   Active Nav State
--------------------------------*/
.nav-active { color: var(--primary) !important; }

.nav-active::after { width: 100% !important; }

/* Static header override — post pages */
.header--static { position: relative; }

/* ------------------------------
   Blog Archive
--------------------------------*/
.page-header {
    padding: 48px 0 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
    position: relative;
}

.page-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 3px;
    background: var(--primary);
    box-shadow: var(--glow);
}

.page-header h1 {
    margin: 0 0 12px;
    font-size: 2.2rem;
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.blog-grid { display: flex; flex-direction: column; }

.blog-card {
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
}

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

.blog-card-link {
    display: flex;
    gap: 28px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.blog-card-link:hover .read-more { color: var(--primary); }
.blog-card-link:hover h2 { color: var(--primary); }

.blog-card-thumb {
    width: 210px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #000;
    border: 1px solid var(--line);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-link:hover .blog-card-thumb {
    border-color: rgba(245, 196, 0, 0.5);
    box-shadow: 0 0 30px -8px rgba(245, 196, 0, 0.4);
}

.blog-card-body { flex: 1; }

.blog-card-body h2 {
    margin: 8px 0 12px;
    font-size: 1.4rem;
    border: none;
    box-shadow: none;
    padding: 0;
    transition: color 0.2s ease;
}

.blog-card-body p {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.read-more {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

/* ------------------------------
   Homepage projects band
--------------------------------*/
section#projects {
    position: relative;
    background: var(--bg-2);
    margin: 0 -24px;
    padding: 64px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

section#projects h2 {
    color: var(--text);
    text-align: center;
    border-left: none;
    box-shadow: none;
    padding-left: 0;
}

section#projects h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--primary);
    box-shadow: var(--glow);
}

/* ------------------------------
   Blog Post
--------------------------------*/
.post-main {
    max-width: 760px;
    margin: 48px auto;
    padding: 0 24px;
}

.back-link {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--primary); }

.post-header { margin-bottom: 30px; }

.post-header h1 {
    margin: 10px 0 18px;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.post-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.post-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 32px 0;
    background: #000;
    border: 1px solid var(--line);
    display: block;
}

/* Specs box — technical readout */
.specs-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    overflow: hidden;
    margin: 32px 0;
}

.spec-item {
    background: var(--bg-3);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.25s ease;
}

.spec-item:hover { background: var(--bg-4); }

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    font-weight: 500;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
}

/* Photo gallery */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.post-gallery img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
    border: 1px solid var(--line);
    display: block;
    cursor: zoom-in;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.post-gallery img:hover {
    border-color: rgba(245, 196, 0, 0.5);
    box-shadow: 0 0 30px -8px rgba(245, 196, 0, 0.45);
    transform: translateY(-2px);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 24px;
    animation: lb-fade-in 0.15s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
    cursor: default;
    box-shadow: 0 0 60px rgba(245, 196, 0, 0.15), 0 8px 40px rgba(0, 0, 0, 0.7);
}

/* Prev / Next nav */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.post-nav-link {
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.post-nav-link:hover { color: var(--primary); }

/* ------------------------------
   Inline arrow / read-more links
--------------------------------*/
.arrow-link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-mono);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.arrow-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* ------------------------------
   Contact Form
--------------------------------*/
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 580px;
    margin-top: 24px;
}

/* Labels read like shell commands: "$ name" */
.contact-form label {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    margin-top: 18px;
}

.contact-form label::before {
    content: "> ";
    color: var(--primary);
    font-weight: 700;
}

/* Terminal-style text boxes — site-wide, so any future typeable field
   automatically gets the same treatment. */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: #050505;
    color: var(--text);
    caret-color: var(--primary);   /* yellow blinking cursor */
    caret-shape: block;            /* block cursor where supported */
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    font-family: var(--font-mono);
    color: var(--text-dim);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.35), 0 0 18px -6px rgba(245, 196, 0, 0.5);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

/* Terminal window chrome (wraps the contact form) — a monochrome CRT
   readout embedded in the page. Was green-phosphor (Pip-Boy style); now
   mapped to the site's yellow so the whole site reads as one palette. */
.terminal {
    --pip: #F5C400;
    --pip-dim: rgba(245, 196, 0, 0.65);
    --pip-glow: rgba(245, 196, 0, 0.45);
    position: relative;
    max-width: 620px;
    margin-top: 24px;
    background: #0a0a0b;
    border: 1px solid rgba(245, 196, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.7),
        0 0 40px -8px var(--pip-glow),
        0 24px 70px -35px rgba(0, 0, 0, 0.9);
}

/* CRT scanlines + a subtle irregular flicker over the whole screen */
.terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(245, 196, 0, 0.05) 0px,
        rgba(245, 196, 0, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: pip-flicker 5s infinite;
}

@keyframes pip-flicker {
    0%, 100% { opacity: 0.9; }
    50%      { opacity: 1; }
    52%      { opacity: 0.75; }
    54%      { opacity: 1; }
    76%      { opacity: 0.85; }
    78%      { opacity: 1; }
}

.terminal-bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: #17171b;
    border-bottom: 1px solid rgba(245, 196, 0, 0.3);
}

/* Single pulsing status light, instead of macOS-style traffic-light dots
   (out of place for a Pip-Boy-style readout). */
.terminal-status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pip);
    box-shadow: 0 0 8px 1px var(--pip-glow);
    animation: pip-pulse 1.8s ease-in-out infinite;
}

@keyframes pip-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.terminal-title {
    margin-left: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pip-dim);
    text-shadow: 0 0 6px var(--pip-glow);
}

.terminal-body {
    position: relative;
    z-index: 3;
    padding: 8px 24px 26px;
}

.terminal .contact-form { margin-top: 0; max-width: none; }

/* Green phosphor overrides for every field/label/button inside the terminal */
.terminal .contact-form label { color: var(--pip-dim); }

.terminal .contact-form label::before {
    color: var(--pip);
    text-shadow: 0 0 6px var(--pip-glow);
}

.terminal input,
.terminal textarea {
    background: #050505;
    border-color: rgba(245, 196, 0, 0.3);
    color: var(--pip);
    caret-color: var(--pip);
    text-shadow: 0 0 4px rgba(245, 196, 0, 0.35);
}

/* #F5C400 on #050505 needs higher opacity than the old green did to clear
   WCAG AA (4.5:1) for placeholder text — 0.35 measured well under that. */
.terminal input::placeholder,
.terminal textarea::placeholder { color: rgba(245, 196, 0, 0.6); }

.terminal input:focus,
.terminal textarea:focus {
    border-color: var(--pip);
    box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.4), 0 0 18px -4px var(--pip-glow);
}

.terminal .form-btn {
    background: var(--pip);
    color: #0a0a0b;
    filter: drop-shadow(0 0 10px var(--pip-glow));
}

/* Same clip-path/border issue as .quote-btn — drop-shadow outline instead,
   which follows the notches (border does not). Needs an opaque hover fill
   to trace, hence --bg-2-ish dark green rather than fully transparent. */
.terminal .form-btn:hover {
    background: #101013;
    color: var(--pip);
    filter: drop-shadow(0 0 1.5px var(--pip)) drop-shadow(0 0 14px var(--pip-glow));
}

.terminal .form-status { color: var(--pip-dim); }
.terminal .form-status.is-ok { color: var(--pip); text-shadow: 0 0 6px var(--pip-glow); }

/* Boot log + sequential field reveal (site.js progressively un-hides
   .term-hidden elements; without JS everything stays visible by default —
   see .term-hidden below, which only ever gets ADDED by script). */
.term-boot {
    margin: 0 0 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--pip-dim);
    text-shadow: 0 0 6px var(--pip-glow);
    white-space: pre-wrap;
}

.term-boot:empty { display: none; }

.term-hidden { display: none; }

.term-field--done input { opacity: 0.6; }

.term-hint {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(245, 196, 0, 0.4);
}

/* Transient "analyzing" line shown between field reveals — reuses pip-pulse
   (defined earlier for the status dot) for a bit of "working" motion. */
.term-processing {
    margin: 6px 0 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--pip-dim);
    text-shadow: 0 0 6px var(--pip-glow);
    animation: pip-pulse 0.9s ease-in-out infinite;
}

.term-error {
    display: block;
    min-height: 1em;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #ff6b6b;
}

.terminal input.term-input-error:focus,
.terminal input.term-input-error {
    border-color: #ff6b6b;
    animation: term-shake 0.35s ease;
}

@keyframes term-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* Transmit log (shown while a message is sending) */
.term-transmit {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--pip-dim);
    text-shadow: 0 0 6px var(--pip-glow);
    white-space: pre-wrap;
}

/* Success screen (the terminal "minimizes" down to this) */
.term-success {
    padding: 14px 0 6px;
    text-align: center;
    animation: term-success-in 0.4s ease both;
}

@keyframes term-success-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.term-success-title {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--pip);
    text-shadow: 0 0 12px var(--pip-glow);
}

.term-success-msg {
    margin: 0 0 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--pip-dim);
}

.term-reset-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--pip-dim);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(245, 196, 0, 0.3);
    transition: color 0.2s ease;
}

.term-reset-btn:hover {
    color: var(--pip);
    text-shadow: 0 0 6px var(--pip-glow);
}

.form-btn {
    align-self: flex-start;
    margin-top: 26px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 14px 30px;
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(245, 196, 0, 0.35));
    transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.form-btn:hover {
    background: var(--primary-bright);
    filter: drop-shadow(0 0 16px rgba(245, 196, 0, 0.55));
    transform: translateY(-2px);
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    filter: none;
}

.form-status {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 16px 0 0;
    min-height: 1.2em;
    color: var(--text-muted);
}

.form-status.is-ok { color: var(--primary); }
.form-status.is-error { color: #ff6b6b; }

/* ------------------------------
   Partner Org Tree (Partners page)
--------------------------------*/
.partner-feature {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 40px 32px 48px;
    margin-top: 24px;
}

.partner-feature h2 {
    margin-top: 6px;
}

.partner-feature > p {
    max-width: 65ch;
}

.org-tree {
    margin: 48px auto 0;
    max-width: 900px;
}

.org-tree-root {
    display: flex;
    justify-content: center;
    position: relative;
    padding-bottom: 32px;
}

.org-tree-root::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 32px;
    background: var(--line-strong);
}

.org-node {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.org-node-root {
    background: var(--primary);
    color: var(--dark);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 11px 26px;
    border-radius: 8px;
    box-shadow: var(--glow);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.org-node-root:hover {
    background: var(--primary-bright);
    box-shadow: var(--glow-strong);
    transform: translateY(-2px);
}

/* Root logo sits directly on the yellow fill (dark ink reads fine there),
   so — unlike the leaf logos — it doesn't need its own white backing chip. */
.org-node-root-logo {
    display: block;
    height: 42px;
    width: auto;
}

.org-tree-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Horizontal bus spanning the center of column 1 to the center of column 3.
   3 equal columns with a 24px gap (2 gaps = 48px total) — plain percentages
   can't express this on a fluid-width grid, so the center of column 1 is
   (100% - 48px)/6 and the span to column 3's center is (100% - 48px)*2/3 + 48px. */
.org-tree-branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100% - 48px) / 6);
    width: calc((100% - 48px) * 2 / 3 + 48px);
    height: 1px;
    background: var(--line-strong);
}

.org-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
}

.org-branch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 24px;
    background: var(--line-strong);
}

.org-node-branch {
    color: var(--text);
    background: var(--bg-3);
    border: 1px solid rgba(245, 196, 0, 0.4);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 18px;
    border-radius: 6px;
}

.org-leaves {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.org-node-leaf {
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
}

.org-node-leaf:hover {
    border-color: rgba(245, 196, 0, 0.5);
    color: var(--primary);
    box-shadow: 0 0 20px -8px rgba(245, 196, 0, 0.4);
    transform: translateY(-2px);
}

/* Leaf awaiting a confirmed URL — dashed, muted, not clickable (it's a
   <span>, not a link), so it doesn't look broken or misleadingly tappable. */
.org-node-leaf--pending {
    border-style: dashed;
    color: var(--text-dim);
    cursor: default;
}

.org-node-leaf--pending:hover {
    border-color: var(--line-strong);
    color: var(--text-dim);
    box-shadow: none;
    transform: none;
}

/* Leaf with a company logo: white chip so any logo's own colors read
   clearly against the dark tree, with the name as a small caption below. */
.org-node-leaf--logo {
    padding: 10px;
}

.org-node-logo {
    display: block;
    width: 100%;
    height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 5px 8px;
    box-sizing: border-box;
}

/* For "reverse" logos drawn in light ink (e.g. bright yellow/green) meant
   to sit on a dark background — the default white chip makes those colors
   nearly disappear. */
.org-node-logo--dark {
    background: #0a0a0b;
}

.org-node-logo-name {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .org-tree-branches {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .org-tree-branches::before { display: none; }
}

/* ------------------------------
   Boot splash (initBootSplash() in site.js builds this from script —
   see the comment there for why it never exists in markup)
--------------------------------*/
.boot-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 46px;
    background: var(--bg-veil);
    animation: boot-veil-fade 2900ms ease forwards;
}

.boot-splash-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 60% at 50% 50%, rgba(245, 196, 0, 0.08), transparent 65%);
}

.boot-splash-word,
.boot-splash-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: boot-rise-in 500ms ease both;
}

.boot-splash-line1 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 3.4rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 44px rgba(245, 196, 0, 0.4);
}

.boot-splash-line1 .chevron { color: var(--chevron-dim); }

.boot-splash-sub {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.boot-loader-track {
    width: 260px;
    height: 2px;
    background: rgba(245, 196, 0, 0.16);
}

.boot-loader-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(245, 196, 0, 0.7);
    animation: boot-loader-fill 2600ms ease-out forwards;
}

.boot-splash-caption {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

@keyframes boot-rise-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes boot-loader-fill {
    from { width: 0%; }
    to   { width: 100%; }
}

@keyframes boot-veil-fade {
    0%, 82% { opacity: 1; }
    100%    { opacity: 0; }
}

/* ------------------------------
   Arrival page (site/index.html)
--------------------------------*/
.arrival-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 118px 40px 0;
}

/* Load-time rise-in, staggered — reuses the boot splash's rise-in keyframe.
   Runs every time the arrival loads, independent of the boot splash's
   once-per-session gate. */
.arrival-body .eyebrow {
    margin-bottom: 14px;
    animation: boot-rise-in 500ms ease 180ms both;
}

.arrival-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 20ch;
    margin: 0 0 10px;
    animation: boot-rise-in 500ms ease 260ms both;
}

.arrival-headline .accent {
    display: inline-block;
    color: var(--primary);
    filter: drop-shadow(0 0 24px rgba(245, 196, 0, 0.45));
    animation: glitch 4.3s infinite;
}

.arrival-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 58ch;
    margin: 0 0 30px;
    animation: boot-rise-in 500ms ease 320ms both;
}

.door-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.door-grid .door-card:nth-child(1) { animation: boot-rise-in 500ms ease 400ms both; }
.door-grid .door-card:nth-child(2) { animation: boot-rise-in 500ms ease 480ms both; }
.door-grid .door-card:nth-child(3) { animation: boot-rise-in 500ms ease 560ms both; }

.door-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 226px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-top: 3px solid rgba(245, 196, 0, 0.45);
    padding: 24px 24px 22px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.door-card--primary { border-top-color: var(--primary); }

.door-card:hover {
    border-color: rgba(245, 196, 0, 0.5);
    background: var(--bg-3);
}

.door-number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}

.door-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.door-body {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.door-action {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
}

.door-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.door-actions a {
    color: var(--primary);
    text-decoration: none;
}

.door-actions .sep { color: var(--text-dim); }

/* ------------------------------
   Bio — "who's behind this" (arrival)
   Lives inside .arrival-body so it lines up with the door grid above it,
   and so it isn't a `main > section` (which site.js would scroll-reveal,
   fighting the rise-in animation below).
--------------------------------*/
.bio {
    margin-top: 62px;
    padding: 34px 0 64px;
    border-top: 1px solid var(--line);
    animation: boot-rise-in 500ms ease 640ms both;
}

.bio .eyebrow { margin-bottom: 12px; }

.bio-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 4px;
}

.bio-role {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 20px;
}

.bio p {
    max-width: 68ch;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 14px;
}

.bio p a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 196, 0, 0.35);
}

.bio p a:hover { border-bottom-color: var(--primary); }

.bio .arrow-link { margin-top: 8px; }

/* ------------------------------
   Partner band (bottom of the arrival)
--------------------------------*/
.partner-band {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 20px 40px 22px;
    transition: background 0.2s ease;
    animation: boot-rise-in 500ms ease 640ms both;
}

.partner-band:hover { background: var(--bg-3); }

.partner-band-label {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.partner-band-label .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}

.partner-band-label .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.partner-band-label .see-all {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text);
    white-space: nowrap;
}

.partner-band-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-band-logos .ta-chip {
    display: block;
    height: 34px;
    object-fit: contain;
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
}

.partner-band-divider {
    width: 1px;
    height: 30px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
}

.partner-band-logos .brand-chip {
    display: block;
    height: 30px;
    width: 92px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
}

.partner-band-logos .brand-chip--dark { background: #0a0a0b; }

@media (max-width: 1100px) {
    .brand-chip--collapse { display: none; }
}

@media (max-width: 700px) {
    .arrival-main { padding: 100px 20px 0; }
    .arrival-headline { font-size: clamp(2rem, 7vw, 2.6rem); }
    .door-grid { grid-template-columns: 1fr; }
    .partner-band { padding: 16px 20px 18px; }

    .bio { margin-top: 44px; padding: 28px 0 48px; }
    .bio-name { font-size: 1.55rem; }
    .bio p { font-size: 0.96rem; }

    /* The label's two nowrap ends don't both fit on a phone, and body
       overflow-x:hidden was silently clipping "See all partners". Shrink
       them to fit, and allow a wrap as the safety net on the narrowest
       screens rather than clipping again. */
    .partner-band-label {
        flex-wrap: wrap;
        gap: 4px 10px;
        margin-bottom: 12px;
    }

    .partner-band-label .tag {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .partner-band-label .rule { display: none; }

    .partner-band-label .see-all {
        font-size: 0.66rem;
        margin-left: auto;
    }

    .partner-band-logos { gap: 8px; }

    .partner-band-logos .ta-chip,
    .partner-band-logos .brand-chip { height: 26px; }

    .partner-band-logos .brand-chip {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .partner-band-divider { height: 22px; }
}

/* ------------------------------
   Scroll-reveal (added by site.js)
--------------------------------*/
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ------------------------------
   Responsive
--------------------------------*/
@media (max-width: 700px) {
    .hero { padding: 56px 20px; }
    main { margin: 32px auto; }
    section { padding: 48px 0; }
}

/* Collapsed mobile navigation */
@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    nav > a:not(.wordmark),
    nav > .nav-socials {
        display: none;
        flex-basis: 100%;
    }

    .nav-socials { margin-left: 0; gap: 14px; }

    header.nav-open nav > a:not(.wordmark) {
        display: flex;
        align-items: center;
        padding: 10px 2px;
        border-top: 1px solid var(--line);
    }

    header.nav-open nav > .nav-socials {
        display: flex;
        padding: 14px 2px 0;
        border-top: 1px solid var(--line);
    }

    header.nav-open nav > a.quote-btn {
        justify-content: center;
        margin-top: 14px;
        padding: 13px;
        border-top: none;
    }

    header.nav-open nav { padding-bottom: 18px; }

    /* Keep the hover-underline from mispositioning while stacked */
    header.nav-open nav > a:not(.wordmark)::after { display: none; }
}

/* Footer stacks and centers on narrow viewports */
@media (max-width: 500px) {
    footer { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
    .blog-card-link { flex-direction: column; }

    .blog-card-thumb {
        width: 100%;
        height: 190px;
    }
}

/* ------------------------------
   Reduced motion
--------------------------------*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero::before { animation: none; }
}
