/* ══════════════════════════════════════════════
   THEME VARIABLES
══════════════════════════════════════════════ */

/* ── LIGHT MODE (default) ── */
:root {
    --bg:     #ffffff;
    --bg2:    #f5f5f5;
    --bg3:    #ededed;
    --accent:  #2D6A4F;
    --accent2: #1F4D38;
    --accent3: #4A90A4;
    --text:    #1B3A2F;
    --muted:   rgba(27, 58, 47, 0.65);
    --border:  rgba(45, 106, 79, 0.15);
    --glow:    rgba(45, 106, 79, 0.12);
    --nav-bg:  rgba(255, 255, 255, 0.98);
    --drawer-bg: rgba(255, 255, 255, 0.99);
    --logo-text: #1B3A2F;
    --logo-stroke: #ffffff;

    --hero-card-bg: rgba(255,255,255,0.92);
    --hero-ctrl-bg: rgba(255,255,255,0.95);
    --hero-ctrl-border: rgba(45,106,79,0.25);
    --hero-text-shadow: 0 2px 12px rgba(255,255,255,0.85);

    /* ── TYPE TOKENS ── */
    --font-display: "Manrope", "Playfair Display", "Golos Text", sans-serif;
    --font-body:    "Golos Text", "Inter", sans-serif;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --bg:     #0F1A15;
    --bg2:    #16231C;
    --bg3:    #1C2C23;
    --accent:  #4CAF7D;
    --accent2: #79C99E;
    --accent3: #6FB8CC;
    --text:    #EAF3EE;
    --muted:   rgba(234, 243, 238, 0.55);
    --border:  rgba(255, 255, 255, 0.08);
    --glow:    rgba(76, 175, 125, 0.22);
    --nav-bg:  rgba(15, 26, 21, 0.98);
    --drawer-bg: rgba(15, 26, 21, 0.98);
    --logo-text: #EAF3EE;
    --logo-stroke: #0F1A15;

    --hero-card-bg: rgba(15,26,21,0.88);
    --hero-ctrl-bg: rgba(22,35,28,0.88);
    --hero-ctrl-border: rgba(255,255,255,0.1);
    --hero-text-shadow: none;
}


/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h, 64px) + 12px);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}


/* ══════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}


/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    isolation: isolate;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border);
    transition: padding 0.3s, background 0.3s;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

nav > .nav-logo {
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
    z-index: 1011;
}
.nav-right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
}
.nav-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    height: 40px;
    font-size: 15px;
}

.nav-logo span {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo svg {
    width: 100px !important;
    height: 38px !important;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    width: 100px;
    height: 38px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 280px);
    height: 100dvh;
    background: var(--drawer-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-left: 0.5px solid var(--border);
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 0.5px solid var(--border);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    display: none !important;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent2); }

/* ── HAMBURGER ── */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1010;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 48, 0.35);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nav-overlay.active { display: block; }

/* ── SVG LOGO TEXT ── */
.svg-logo-text {
    letter-spacing: 0;
    fill: var(--logo-text);
    stroke: var(--logo-stroke);
    stroke-width: 4px;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 17px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--glow);
    border-color: var(--accent);
    transform: scale(1.1);
}

.nav-actions .theme-toggle,
.nav-actions .nav-hamburger {
    flex-shrink: 0;
}

/* ── NAV: drawer → inline (1100px — fewer links after about split) ── */
@media (min-width: 1100px) {
    nav {
        padding: 0.55rem 1.5rem;
        gap: 1rem;
    }
    .nav-right {
        gap: 1rem;
    }
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        height: auto;
        min-width: 0;
        flex: 1 1 auto;
        gap: clamp(0.75rem, 1.4vw, 1.75rem);
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-left: none;
        transform: none;
        transition: none;
        overflow: visible;
    }
    .nav-links a {
        font-size: 12px;
        letter-spacing: 0.04em;
        padding: 0.35rem 0;
        width: auto;
        border-bottom: none;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav-overlay { display: none !important; }
    .nav-hamburger { display: none; }
    .nav-logo { height: 44px; }
    .nav-logo svg,
    .logo-text {
        width: 110px !important;
        height: 42px !important;
    }
    .logo-img { width: 40px; height: 40px; }
    .nav-auth-btn {
        padding: 0.4rem 0.9rem;
        font-size: 12.5px;
    }
}
@media (min-width: 1280px) {
    nav { padding: 0.6rem 2rem; }
    .nav-links { gap: clamp(1rem, 1.6vw, 2rem); }
    .nav-links a { font-size: 12.5px; }
}


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--bg);
    padding-top: var(--nav-h, 64px);
    padding-bottom: 0.5rem; /* tight handoff into Projects */
    flex-direction: column;
}

/* ── HERO: Inner layout ──
   Mobile-first: single column, text then animation stage.
   Becomes a two-column grid (text | animation) from tablet up — see
   the 768px and 1024px media query blocks below. */
.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    padding: 0 6vw;
    box-sizing: border-box;
}

/* ── HERO: Content (headline / tagline / CTA) ── */
.hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 0 0;
    z-index: 15;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0c040;
    background: rgba(240, 192, 64, 0.15);
    border: 0.5px solid rgba(240, 192, 64, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 8.5vw, 40px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 0.85rem;
    text-shadow: var(--hero-text-shadow);
    color: var(--text);
    max-width: 16ch;
}

.hero-title .accent {
    color: var(--accent);
    display: inline-block;
    transition: opacity 0.4s ease-in-out;
}

.hero-tagline {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.01em;
    line-height: 1.6;
    max-width: 42ch;
    margin-bottom: 1.3rem;
    text-shadow: var(--hero-text-shadow);
}

/* ── HERO: Visual stage (canvas + controls) ──
   A framed "stage" card with a solid backdrop, so the parts of
   the transparent WebGL canvas that aren't covered by the 3D scene show
   a deliberate themed surface instead of raw empty background — this is
   what removes the flat white gap that used to sit under the road. */
.hero-visual {
    order: 2;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    isolation: isolate;
}

.hero-stage-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(45, 106, 79, 0.08);
}

#robotCanvas {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ── HERO: Controls ──
   Sit inside the stage, anchored to its bottom edge over a soft fade so
   they read as part of the animation rather than a separate block. */
.ctrl-wrap {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    order: 3;
    z-index: 35;
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    box-sizing: border-box;
}

/* ── HERO: Float Cards ── */
.float-card {
    display: none; /* hidden — sensor card no longer shown in hero */
    position: absolute;
    z-index: 20;
    background: var(--hero-card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hero-ctrl-border);
    border-radius: 8px;
    padding: 0.8rem 1.1rem;
    animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.float-card:nth-child(2) { animation-delay: 1.4s; }
.float-card:nth-child(3) { animation-delay: 2.8s; }
.fc-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.3rem; }
.fc-val   { font-family: var(--font-body); font-size: 19px; font-weight: 800; letter-spacing: -1px; }
.fc-sub   { font-size: 11px; color: var(--muted); margin-top: 0.1rem; }
.fc1 { top: 20%; right: 4%;
    display: none;
}
.fc2 { top: 50%; right: 4%; }
.fc3 { bottom: 18%; right: 4%; }

/* ── HERO: CTA button ── */
.btn-hero {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-hero:hover,
.btn-hero:focus-visible {
    background: var(--accent2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}
.btn-hero svg {
    transition: transform 0.2s ease;
}
.btn-hero:hover svg {
    transform: translateX(3px);
}

.ctrl-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--hero-ctrl-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hero-ctrl-border);
    color: var(--muted);
    padding: 0.55rem 0.5rem;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}
.ctrl-btn:hover,
.ctrl-btn.active {
    border-color: var(--accent);
    color: var(--accent2);
}

/* ── HERO: Static image stage (homepage) ──
   Lightweight replacement for the WebGL canvas — the interactive 3D
   demo now lives on the robot_izbasar page. Pure CSS float, no JS. */
.hero-visual-img {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 1.5rem 1.5rem 2.75rem;
    box-sizing: border-box;
    animation: heroImgFloat 5s ease-in-out infinite;
}
@keyframes heroImgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-visual-tag {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--hero-ctrl-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hero-ctrl-border);
    color: var(--muted);
    padding: 0.6rem 0.9rem;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    transition: all 0.2s;
}
.hero-visual-tag:hover,
.hero-visual-tag:focus-visible {
    border-color: var(--accent);
    color: var(--accent2);
}
.hero-visual-tag .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf7d;
    animation: heroDotPulse 1.8s ease-out infinite;
}
@keyframes heroDotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(76, 175, 125, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(76, 175, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 125, 0); }
}


/* ══════════════════════════════════════════════
   SECTIONS (COMMON)
══════════════════════════════════════════════ */

section {
    padding: 2.25rem 4vw;
    scroll-margin-top: calc(var(--nav-h, 64px) + 8px);
}

.sec-eyebrow {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sec-eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--accent2);
}

.sec-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 6vw, 32px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
}

.sec-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 100%;
    margin-top: 1rem;
}


/* ══════════════════════════════════════════════
   FEATURED PROJECT
══════════════════════════════════════════════ */

.featured-section {
    padding: 1.1rem 5vw 1.75rem; /* tight Hero → Projects → Journal flow */
}

.featured-header {
    margin-bottom: 1.15rem;
}

.featured-grid {
    min-height: auto;
    border-radius: 8px;
    overflow: hidden;
    border: 0.5px solid var(--border);
    background: var(--bg2);
}

.featured-visual {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
    cursor: pointer;
}

.featured-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    cursor: pointer;
    transition:
        opacity 0.4s,
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-visual:hover .featured-img {
    opacity: 0.95;
    transform: scale(1.05);
}

/* Scrim so the badge stays legible over any photo, not just this one */
.featured-visual::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
    z-index: 1;
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-weight: 600;
}

.featured-info {
    background: var(--bg2);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 0.5px solid var(--border);
    min-height: auto;
}

/* Title now lives in .featured-header — keep override only if an
   inner title is still present in older markup */
.featured-info .sec-title {
    font-size: clamp(20px, 5vw, 28px);
    color: var(--text);
    margin-bottom: 0.35rem;
}

.feat-meta {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    padding-bottom: 0.2rem;
    border-top: 0.5px solid var(--border);
    flex-wrap: wrap;
    flex-direction: row;
}

.feat-meta-item {
    position: relative;
    padding-right: 1.6rem;
}
.feat-meta-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 0;
    width: 0.5px;
    height: 28px;
    background: var(--border);
}

.feat-meta-item .val {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--accent2);
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.feat-meta-item .key {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    white-space: nowrap;
}

.feat-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    font-size: 11px;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: rgba(45, 106, 79, 0.14);
    color: var(--accent2);
    border: 0.5px solid rgba(45, 106, 79, 0.3);
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.tag:hover {
    background: rgba(45, 106, 79, 0.3);
    transform: translateY(-2px);
}

/* ── Featured: title link reset & body text rhythm ── */
.featured-title-link {
    text-decoration: none;
    color: inherit;
}

.featured-info .sec-sub p {
    margin-bottom: 1em;
}
.featured-info .sec-sub p:last-of-type {
    margin-bottom: 0;
}

/* ── Buttons ── */
.btn-row {
    margin-top: 1.6rem;
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    flex-wrap: nowrap; /* keep both buttons on one row at every width */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1;
    /* mobile-first: share the row equally, shrink instead of wrap */
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn:focus-visible {
    outline: 2.5px solid var(--accent2);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(45, 106, 79, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--accent2);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    background: rgba(45, 106, 79, 0.08);
    border-color: var(--accent2);
    transform: translateY(-2px);
}
.btn-outline:active {
    transform: translateY(0);
}

/* ── Featured CTA row: icon + sliding arrow ── */
.btn-featured {
    padding: 0.85rem 1.4rem 0.85rem 1.6rem;
}

.btn-featured .btn-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-featured:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-outline.btn-featured svg {
    color: var(--accent2);
}

.featured-visual-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    z-index: 0;
}
.featured-visual-trigger:focus-visible {
    outline: 2.5px solid var(--accent2);
    outline-offset: -4px;
}

/* ── Play Button ── */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* ── Video Modal ── */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    border: 0.5px solid var(--border);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.close {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    color: white;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover { color: #ff0000; }

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}


/* ══════════════════════════════════════════════
   GALLERY / JOURNAL
══════════════════════════════════════════════ */

.gallery-section {
    padding: 1.75rem 0 2.5rem; /* tighter after Projects */
    overflow: hidden;
}

.gallery-header {
    padding: 0 5vw;
    margin-bottom: 1.35rem;
}

.gallery-scroll {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0 5vw 1rem;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gal-item {
    flex-shrink: 0;
    width: 240px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gal-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}
.gal-item:hover .gal-img { transform: scale(1.07); }

.gal-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(7,7,12,0.85));
    padding: 1rem;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.3s;
}
.gal-item:hover .gal-caption { transform: translateY(0); opacity: 1; }

.gallery-nav {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 5vw;
}

.gal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0.5px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.gal-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}


/* ══════════════════════════════════════════════
   JOURNAL — featured poster card + text-only archive list
   Mobile-first. Only the newest issue ever needs an image;
   every older issue is just one plain-text row underneath,
   so this scales to any number of back issues without
   needing a thumbnail for each one.
══════════════════════════════════════════════ */

.journal-layout {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 0 5vw;
}

/* Wrapper injected around the featured card by journal-render.js.
   Must stay visible on mobile (full width) and become the flex
   column on tablet/desktop — see the 768px / 1024px rules. */
#journalFeaturedSlot {
    width: 100%;
    min-width: 0;
}

/* --- Featured card (latest issue, image) ---
   aspect-ratio matches the real cover art (~9:10 portrait),
   so background-size:cover never has to crop the logo/title
   the way a short landscape box would. */
.journal-featured {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 10;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    border: 0.5px solid var(--border);
    transition: box-shadow 0.25s, transform 0.25s;
    background: var(--bg3, #ededed);
}
.journal-featured:hover,
.journal-featured:focus-visible {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.journal-featured:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

.journal-featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.6s;
}
.journal-featured:hover .journal-featured-img { transform: scale(1.04); }

.journal-featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 1.4rem;
    background: linear-gradient(180deg, transparent 42%, rgba(7,7,12,0.55) 70%, rgba(7,7,12,0.92) 100%);
}

.journal-featured-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.journal-featured-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.32;
    color: #fff;
    font-weight: 700;
}

.journal-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    opacity: 0.88;
    transition: gap 0.2s, opacity 0.2s;
}
.journal-featured:hover .journal-featured-cta { opacity: 1; gap: 0.6rem; }

/* --- Archive: plain-text link list, no thumbnails --- */
.journal-archive {
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
}

.journal-archive-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0.2rem 0.4rem 0.7rem;
}

.journal-archive-scroll {
    display: flex;
    flex-direction: column;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.journal-archive-scroll::-webkit-scrollbar { width: 6px; }
.journal-archive-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.journal-link-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 56px;
    padding: 0.7rem 0.5rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 0.5px solid var(--border);
    border-radius: 6px;
    transition: background 0.2s, padding-left 0.2s;
}
.journal-link-item:last-child { border-bottom: none; }

.journal-link-item:hover,
.journal-link-item:focus-visible {
    background: var(--bg3);
    padding-left: 0.8rem;
}
.journal-link-item:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; }

.journal-link-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg3);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent2);
    transition: background 0.2s, color 0.2s;
}
.journal-link-item:hover .journal-link-num {
    background: var(--accent);
    color: #fff;
}

.journal-link-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-link-arrow {
    flex-shrink: 0;
    font-size: 15px;
    color: var(--muted);
    transition: transform 0.2s, color 0.2s;
}
.journal-link-item:hover .journal-link-arrow,
.journal-link-item:focus-visible .journal-link-arrow {
    color: var(--accent);
    transform: translateX(3px);
}


/* ══════════════════════════════════════════════
   BRIDGE STORY
══════════════════════════════════════════════ */

.bridge-story {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}
.bridge-story > .sec-eyebrow { margin-bottom: 0.8rem; }
.bridge-story > .sec-title   { margin-bottom: 2rem; }

.bridge-problem-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.2rem 1.6rem;
    background: rgba(255, 90, 90, 0.05);
    border: 0.5px solid rgba(255, 90, 90, 0.18);
    border-radius: 8px;
    margin: 0 auto 3.5rem;
    max-width: 680px;
    flex-direction: column;
}

.bridge-problem-badge {
    flex-shrink: 0;
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff7675;
    background: rgba(255, 118, 117, 0.12);
    border: 0.5px solid rgba(255, 118, 117, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    margin-top: 0.2rem;
}
.bridge-problem-wrap p        { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.bridge-problem-wrap strong   { color: rgba(255, 160, 160, 0.85); }

/* ── Bridge Visual Layout (mobile-first, centered) ── */
.bridge-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 1rem auto 0.5rem;
    width: 100%;
    max-width: 420px;
    padding: 0;
    box-sizing: border-box;
}

/* ── Bridge Node ── */
.bridge-node {
    flex-shrink: 0;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1rem 0.95rem;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.node-science {
    border-color: rgba(45, 106, 79, 0.3);
    background: rgba(45, 106, 79, 0.05);
}
.node-market {
    border-color: rgba(74, 144, 164, 0.3);
    background: rgba(74, 144, 164, 0.05);
}
.bridge-node:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.12);
    border-color: rgba(45, 106, 79, 0.4);
}

.bridge-story.bridge-animate .node-science {
    animation: bNodeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s both;
}
.bridge-story.bridge-animate .node-market {
    animation: bNodeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}
@keyframes bNodeIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.node-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.45rem;
    line-height: 0;
}
.node-emoji svg { width: 26px; height: 26px; }
.node-letter {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin: 0 auto 0.35rem;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.node-title-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.node-desc {
    display: none;
}

/* ── Bridge Mid (centered animation stage) ── */
.bridge-mid {
    flex: 0 1 auto;
    width: 100%;
    max-width: 340px;
    height: auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0.15rem auto;
    text-align: center;
}

.bridge-galym-label {
    font-family: var(--font-display);
    font-size: clamp(28px, 8vw, 36px);
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 0.35rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.bridge-svg {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 600 / 170;
    margin: 0 auto;
}

.bridge-tagline-label {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    margin: 0.55rem auto 0;
    max-width: 22rem;
    z-index: 10;
    line-height: 1.45;
    letter-spacing: 0.02em;
    padding: 0 0.5rem;
}

/* Hide old elements */
.bridge-name-wrap { display: none !important; }
.bridge-gap-label { display: none;
    top: 22%;
    font-size: 9px;
}

/* ── Bridge SVG Paths ── */
.bridge-arch-path {
    fill: none;
    stroke: url(#bridgeGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 7px rgba(45, 106, 79, 0.55));
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}
.bridge-story.bridge-animate .bridge-arch-path {
    animation: bDraw 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.bridge-support-line {
    stroke: rgba(74, 144, 164, 0.45);
    stroke-width: 2;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}
.bridge-story.bridge-animate .bridge-support-line:nth-child(3) { animation: bDraw 0.35s ease 1.50s forwards; }
.bridge-story.bridge-animate .bridge-support-line:nth-child(4) { animation: bDraw 0.35s ease 1.65s forwards; }
.bridge-story.bridge-animate .bridge-support-line:nth-child(5) { animation: bDraw 0.35s ease 1.55s forwards; }

.bridge-road-line {
    stroke: rgba(74, 144, 164, 0.2);
    stroke-width: 4;
    stroke-dasharray: 640;
    stroke-dashoffset: 640;
}
.bridge-story.bridge-animate .bridge-road-line { animation: bDraw 0.9s ease 1.1s forwards; }

@keyframes bDraw { to { stroke-dashoffset: 0; } }

/* ── Bridge Name Wrap (animated) ── */
.bridge-story.bridge-animate .bridge-name-wrap {
    animation: bNameIn 0.7s ease 2.0s forwards;
}
@keyframes bNameIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bridge-galym-text {
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: center;
}
.bg-g, .bg-m { color: var(--accent2); text-shadow: 0 0 18px rgba(74, 144, 164, 0.7); }
.bg-a, .bg-l, .bg-y { color: var(--text); }
.bridge-tagline-text { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; margin-top: 0.3rem; }

/* ── Bridge Conclusion ── */
.bridge-conclusion {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: rgba(45, 106, 79, 0.05);
    border: 0.5px solid rgba(45, 106, 79, 0.14);
    border-radius: 8px;
}
.bridge-conclusion strong { color: var(--accent2); }
.bridge-conclusion em {
    display: block;
    font-style: normal;
    font-size: 12px;
    margin-top: 0.5rem;
    opacity: 0.65;
    letter-spacing: 0.02em;
}

/* ── Bridge Quote ── */
.bridge-quote {
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    padding: 0.85rem 0;
    margin: 1rem auto 0;
    max-width: 40rem;
    font-style: italic;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
}
.bridge-quote p { margin: 0; }


/* ══════════════════════════════════════════════
   GOALS
══════════════════════════════════════════════ */

.goals-section,
#about {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.goals-section::before,
#about::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: none;
    pointer-events: none;
    z-index: 0;
}

.goals-section .bridge-story,
.goals-section .goals-header,
.goals-section .goals-grid,
#about .bridge-story,
#about .goals-header,
#about .goals-grid {
    position: relative;
    z-index: 1;
    gap: 1rem;
}

.goals-header { margin-bottom: 3.5rem; }

.goals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.goal-card {
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.goal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.goal-card:hover::after { transform: scaleX(1); }

.goal-card:hover {
    background: var(--bg3);
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.15);
    border-color: rgba(45, 106, 79, 0.35);
}

.goal-num {
    font-family: var(--font-body);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -3px;
    background: rgba(45, 106, 79, 0.12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.goal-icon {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: rgba(45, 106, 79, 0.14);
    border: 0.5px solid rgba(45, 106, 79, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.goal-card:hover .goal-icon {
    background: rgba(45, 106, 79, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.goal-card h3 {
    font-family: var(--font-body);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}
.goal-card:hover h3 { color: var(--accent2); }

.goal-card > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
}

.goal-values {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-values li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.goal-value-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(45, 106, 79, 0.13);
    border: 0.5px solid rgba(45, 106, 79, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s;
}
.goal-card:hover .goal-value-icon {
    background: rgba(45, 106, 79, 0.25);
}

.goal-values li > div:last-child {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.goal-values li strong {
    color: var(--text);
    font-weight: 600;
}


/* ══════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════ */

.team-section {
    background: var(--bg);
}

.team-grid {
    margin-top: 2rem;
    position: relative;
    justify-content: center;
}

.team-grid.row-two {
    max-width: 100%;
    margin: 2rem 0 0;
}

.team-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}
.team-divider::after {
    content: '';
    flex: 0 1 80px;
    height: 1px;
    background: var(--border);
}

.team-card {
    background: var(--bg2);
    border-radius: 8px;
    border: 0.5px solid var(--border);
    overflow: hidden;
    transition:
        border-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}
.team-card:hover {
    border-color: rgba(45, 106, 79, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.15);
}

.team-avatar {
    height: 140px;
    background: var(--accent);
    background-size: cover;
    background-position: top center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.team-info { padding: 1rem; text-align: left; }
.team-info h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; }
.team-info .role { font-size: 11px; color: var(--accent2); margin-top: 0.2rem; }
.team-info p { font-size: 11px; color: var(--muted); margin-top: 0.6rem; line-height: 1.5; }


/* ══════════════════════════════════════════════
   ANIMATIONS (SCROLL FADE)
══════════════════════════════════════════════ */

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ══════════════════════════════════════════════
   SOCIAL BUTTONS
══════════════════════════════════════════════ */

.soc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
}

.soc-btn.telegram { background-color: #229ed9; }
.soc-btn.telegram:hover {
    background-color: #1c89bd;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

.soc-btn.youtube { background-color: #ff0000; }
.soc-btn.youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

footer {
    background: var(--bg2);
    border-top: 0.5px solid var(--border);
    padding: 2rem 4vw 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.5px solid var(--border);
}

.footer-brand .nav-logo { font-size: 20px; height: auto; }

.footer-brand .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand .logo-text,
.footer-brand .nav-logo svg {
    width: 110px !important;
    height: 42px !important;
}

.footer-brand p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 100%;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    white-space: nowrap;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 10px;
    color: var(--muted);
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--text); }


/* ══════════════════════════════════════════════
   RESPONSIVE — 1024px
══════════════════════════════════════════════ */


/* ══════════════════════════════════════════════
   MOBILE-FIRST BASE ADDITIONS
   (selectors that only existed inside old breakpoint
   overrides; promoted here as mobile defaults)
══════════════════════════════════════════════ */

.testi-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.nav-links.open {
    transform: translateX(0);
}

.slide-content {
    bottom: 6vh;
    left: 4vw;
    right: 4vw;
    max-width: 100%;
}

.slide h2 {
    font-size: clamp(22px, 5.5vw, 34px);
    margin-bottom: 0.6rem;
}

.slide p {
    font-size: 13px;
    max-width: 100%;
    margin-bottom: 0;
    line-height: 1.65;
}

.slide-btns {
    gap: 0.4rem;
    flex-direction: column;
}

.slider-controls {
    bottom: 6vh;
    right: 2vw;
    gap: 0.3rem;
    flex-direction: row;
}

.slider-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.slide-counter {
    display: none;
}

.testi-section {
    padding: 3.5rem 5vw;
}

.testi-card {
    padding: 1.2rem;
}

.testi-quote {
    font-size: 24px;
    margin-bottom: 0.6rem;
}

.testi-text {
    font-size: 13px;
}

.testi-author {
    gap: 0.6rem;
    margin-top: 1rem;
}

* {
    scroll-behavior: auto;
}

.slide-tag {
    font-size: 9px;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.8rem;
}

.slider-dots {
    bottom: 1.5vh;
}

.dot {
    width: 5px;
    height: 5px;
}

.dot.active {
    width: 20px;
}


/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (min-width: 768px)
══════════════════════════════════════════════ */
@media (min-width: 768px) {
    .btn-row {
        gap: 0.9rem;
    }
    .btn {
        flex: 0 1 auto;
        padding: 0.8rem 1.5rem;
        font-size: 14px;
    }
    .btn-featured {
        padding: 0.85rem 1.4rem 0.85rem 1.6rem;
    }
    .journal-layout {
        flex-direction: row;
        align-items: stretch;
        padding: 0 8vw;
        gap: 1.5rem;
    }
    /* Flex child is #journalFeaturedSlot (wrapper), NOT .journal-featured
       which is nested inside it by journal-render.js. Sizing the inner
       card alone left the slot collapsed and hid issue 01. */
    #journalFeaturedSlot {
        flex: 0 1 40%;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
    #journalFeaturedSlot .journal-featured {
        flex: 1 1 auto;
        width: 100%;
        /* aspect-ratio still governs height; stretch only
           affects .journal-archive, which has no aspect-ratio */
    }
    .journal-archive {
        flex: 1 1 60%;
        min-width: 0;
    }
    .journal-archive-scroll {
        flex: 1;
        max-height: none;
    }
    nav {
        padding: 1rem 3rem;
    }
    section {
        padding: 4rem 6vw;
    }
    .goals-grid {
        gap: 1.5rem;
    }
    .bridge-node {
        width: 150px;
        padding: 1.5rem 1rem;
    }
    .node-emoji {
        font-size: 30px;
    }
    .node-letter {
        font-size: 44px;
    }
    .node-title-text {
        font-size: 15px;
    }
    .node-desc {
        font-size: 11px;
    }
    .bridge-mid {
        height: 170px;
        max-width: 520px;
    }
    .bridge-galym-label {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .featured-info {
        padding: 3rem;
    }
    .team-grid {
        margin-top: 3.5rem;
    }
    .team-info {
        text-align: center;
    }
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding-bottom: 3rem;
    }
    .nav-logo {
        height: 52px;
    }
    .logo-text {
        width: 130px;
        height: 50px;
    }
    .nav-logo svg {
        width: 130px !important;
        height: 50px !important;
    }
    .logo-img {
        width: 46px;
        height: 46px;
    }
    .hero {
        align-items: stretch;
        height: auto;
        min-height: min(100vh, 720px);
        padding-top: var(--nav-h, 112px);
        padding-bottom: 1rem;
    }
    .hero-inner {
        display: grid;
        grid-template-columns: minmax(280px, 420px) 1fr;
        align-items: center;
        gap: 2rem;
        height: auto;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.5rem 6vw 0;
    }
    .hero-content {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        max-width: 420px;
        padding: 0;
        z-index: 15;
    }
    .hero-title {
        font-size: clamp(36px, 4.4vw, 58px);
        letter-spacing: -2px;
        max-width: 11ch;
    }
    .hero-tagline {
        font-size: 14px;
        max-width: 420px;
    }
    .btn-hero {
        font-size: 14.5px;
        padding: 0.95rem 1.9rem;
    }
    .hero-visual {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 100%;
        aspect-ratio: 1 / 0.82;
        align-self: center;
    }
    #robotCanvas {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .ctrl-wrap {
        position: absolute;
        bottom: 1.1rem;
        right: 1rem;
        left: auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        margin-top: 0;
        padding: 0;
        width: auto;
    }
    .ctrl-btn {
        font-size: 12px;
        padding: 0.5rem 0.9rem;
    }
    .sec-title {
        font-size: clamp(32px, 4vw, 54px);
    }
    .sec-sub {
        font-size: 15px;
        max-width: 640px;
    }
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .goal-card {
        padding: 2.5rem;
    }
    .goal-num {
        font-size: 56px;
    }
    .bridge-problem-wrap {
        gap: 1rem;
    }
    .bridge-visual {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        margin: 2.5rem 0;
    }
    .bridge-node {
        max-width: none;
    }
    .bridge-svg {
        height: 170px;
        margin-top: -20px;
    }
    .bridge-arch-path {
        stroke-width: 2.5;
    }
    .bridge-support-line {
        stroke-width: 1.5;
    }
    .bridge-road-line {
        stroke-width: 3;
    }
    .bridge-tagline-label {
        font-size: 14px;
        margin-top: 15px;
    }
    .bridge-galym-text {
        font-size: 32px;
        letter-spacing: 0.12em;
    }
    .bridge-tagline-text {
        font-size: 10px;
    }
    .featured-info .sec-title {
        font-size: clamp(22px, 2.8vw, 32px);
    }
    .featured-section {
        padding: 1.25rem 0 2rem; /* tight Hero → Projects → Journal */
    }
    .featured-header {
        margin-bottom: 1.35rem;
        padding: 0 8vw;
    }
    .featured-grid {
        margin: 0 8vw;
    }
    .feat-meta {
        gap: 2rem;
    }
    .gallery-section {
        padding: 1.75rem 0 2.75rem;
    }
    .gallery-header {
        padding: 0 8vw;
        margin-bottom: 1.5rem;
    }
    .gallery-scroll {
        padding: 0 8vw 1rem;
    }
    .gal-item {
        width: 360px;
        height: 260px;
    }
    .gallery-nav {
        padding: 1rem 8vw 0;
    }
    .team-grid.row-two {
        max-width: 60%;
        margin: 3.5rem auto 0;
    }
    .team-card {
        border-radius: 8px;
    }
    .team-avatar {
        height: 200px;
    }
    .avatar-initials {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    .team-info h3 {
        font-size: 17px;
    }
    .team-info p {
        font-size: 13px;
    }
    footer {
        padding: 4rem 8vw 2rem;
    }
    .footer-brand .nav-logo {
        font-size: 28px;
    }
    .footer-brand p {
        font-size: 14px;
        max-width: 260px;
    }
    .footer-col h5 {
        font-size: 14px;
        margin-bottom: 1.2rem;
    }
    .footer-col a {
        font-size: 13px;
    }
    .footer-bottom {
        align-items: center;
        font-size: 12px;
    }
    .sec-eyebrow {
        font-size: 11px;
        margin-bottom: 1rem;
    }
    .featured-badge {
        padding: 0.5rem 1rem;
        font-size: 11px;
    }
    .gal-caption {
        font-size: 13px;
        padding: 1.5rem 1.2rem 1rem;
    }
    .team-info {
        padding: 1.4rem;
    }
    .team-info .role {
        font-size: 12px;
    }
    .footer-col ul {
        gap: 0.7rem;
    }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — DESKTOP (min-width: 1024px)
══════════════════════════════════════════════ */
@media (min-width: 1024px) {
    #journalFeaturedSlot {
        flex-basis: 38%;
    }
    .journal-link-title {
        font-size: 14px;
    }
    nav {
        padding: 0.6rem 4rem;
    }
    section {
        padding: 5rem 8vw;
    }
    .goals-grid {
        gap: 1.5rem;
    }
    .bridge-node {
        width: 190px;
        padding: 2rem 1.5rem;
    }
    .node-emoji {
        font-size: 38px;
    }
    .node-letter {
        font-size: 54px;
    }
    .node-title-text {
        font-size: 18px;
    }
    .node-desc {
        font-size: 11px;
    }
    .bridge-mid {
        height: 290px;
        max-width: 520px;
    }
    .bridge-galym-label {
        font-size: 52px;
        margin-bottom: 18px;
    }
    .featured-grid {
        min-height: 350px;
    }
    .featured-info {
        padding: 3rem;
    }
    .team-grid {
        margin-top: 3.5rem;
    }
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
        padding-bottom: 3rem;
    }
    .nav-logo {
        height: 58px;
    }
    .logo-text {
        width: 150px;
        height: 56px;
    }
    .nav-logo svg {
        width: 150px !important;
        height: 56px !important;
    }
    .logo-img {
        width: 50px;
        height: 50px;
    }
    .hero {
        align-items: stretch;
        height: auto;
        min-height: min(100vh, 780px);
        padding-top: var(--nav-h, 112px);
        padding-bottom: 1.25rem;
    }
    .hero-inner {
        display: grid;
        grid-template-columns: minmax(340px, 460px) 1fr;
        align-items: center;
        gap: 2.5rem;
        height: auto;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.75rem clamp(24px, 4vw, 72px) 0;
    }
    .hero-content {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        max-width: 460px;
        padding: 0;
        z-index: 15;
    }
    .hero-title {
        font-size: clamp(44px, 4.2vw, 72px);
        letter-spacing: -3px;
        max-width: 11ch;
    }
    .hero-tagline {
        font-size: 15px;
        max-width: 480px;
    }
    .btn-hero {
        font-size: 15px;
        padding: 1rem 2.1rem;
    }
    .hero-visual {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 100%;
        aspect-ratio: 1 / 0.82;
        align-self: center;
    }
    #robotCanvas {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .ctrl-wrap {
        position: absolute;
        bottom: 1.4rem;
        right: 1.5rem;
        left: auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        margin-top: 0;
        padding: 0;
        width: auto;
    }
    .ctrl-btn {
        font-size: 12px;
        padding: 0.5rem 0.9rem;
    }
    .sec-title {
        font-size: clamp(32px, 4vw, 54px);
    }
    .sec-sub {
        font-size: 15px;
        max-width: 760px;
    }
    .goals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .goal-card {
        padding: 2.5rem;
    }
    .goal-num {
        font-size: 56px;
    }
    .bridge-problem-wrap {
        gap: 1rem;
    }
    .bridge-visual {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        margin: 2.5rem 0;
    }
    .bridge-node {
        max-width: none;
    }
    .bridge-svg {
        height: 170px;
        margin-top: -20px;
    }
    .bridge-arch-path {
        stroke-width: 2.5;
    }
    .bridge-support-line {
        stroke-width: 1.5;
    }
    .bridge-road-line {
        stroke-width: 3;
    }
    .bridge-tagline-label {
        font-size: 14px;
        margin-top: 15px;
    }
    .bridge-galym-text {
        font-size: 32px;
        letter-spacing: 0.12em;
    }
    .bridge-tagline-text {
        font-size: 10px;
    }
    .featured-info .sec-title {
        font-size: clamp(22px, 2.8vw, 32px);
    }
    .featured-section {
        padding: 1.25rem 0 2rem; /* tight Hero → Projects → Journal */
    }
    .featured-header {
        margin-bottom: 1.35rem;
        padding: 0 8vw;
    }
    .featured-grid {
        margin: 0 8vw;
    }
    .feat-meta {
        gap: 2rem;
    }
    .gallery-section {
        padding: 1.75rem 0 2.75rem;
    }
    .gallery-header {
        padding: 0 8vw;
        margin-bottom: 1.5rem;
    }
    .gallery-scroll {
        padding: 0 8vw 1rem;
    }
    .gal-item {
        width: 360px;
        height: 260px;
    }
    .gallery-nav {
        padding: 1rem 8vw 0;
    }
    .team-grid.row-two {
        max-width: 60%;
        margin: 3.5rem auto 0;
    }
    .team-card {
        border-radius: 8px;
    }
    .team-avatar {
        height: 200px;
    }
    .avatar-initials {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    .team-info h3 {
        font-size: 17px;
    }
    .team-info p {
        font-size: 13px;
    }
    footer {
        padding: 4rem 8vw 2rem;
    }
    .footer-brand .nav-logo {
        font-size: 28px;
    }
    .footer-brand p {
        font-size: 14px;
        max-width: 260px;
    }
    .footer-col h5 {
        font-size: 14px;
        margin-bottom: 1.2rem;
    }
    .footer-col a {
        font-size: 13px;
    }
    .footer-bottom {
        align-items: center;
        font-size: 12px;
    }
    .sec-eyebrow {
        font-size: 11px;
        margin-bottom: 1rem;
    }
    .featured-badge {
        padding: 0.5rem 1rem;
        font-size: 11px;
    }
    .gal-caption {
        font-size: 13px;
        padding: 1.5rem 1.2rem 1rem;
    }
    .team-info {
        padding: 1.4rem;
    }
    .team-info .role {
        font-size: 12px;
    }
    .footer-col ul {
        gap: 0.7rem;
    }
}
/* ══════════════════════════════════════════════
   HERO: Mobile landscape override
   Phones rotated to landscape frequently report a viewport
   WIDTH of 700–930px (e.g. 812/896/926px), which is wide
   enough to trigger the two-column desktop hero layout
   above. But their viewport HEIGHT is only ~360–430px —
   far short of the 580px minimum that layout assumes —
   so the animation stage was getting squeezed down to a
   tiny, distorted box. This block detects "landscape and
   short" regardless of width and falls back to the same
   single-column stacked layout mobile portrait already
   uses, sized to fit comfortably in the shorter viewport.
══════════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        height: auto;
        min-height: 0;
        padding-top: calc(var(--nav-h, 64px) + 0.5rem);
        padding-bottom: 0.75rem;
    }
    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
        height: auto;
        padding: 0 6vw;
    }
    .hero-content {
        position: static;
        max-width: none;
        padding: 0.25rem 0 0;
    }
    .hero-title {
        font-size: clamp(24px, 5.5vw, 34px);
        max-width: 22ch;
    }
    .hero-tagline {
        max-width: 60ch;
    }
    .hero-visual {
        width: 100%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 1 / 0.82;
        align-self: center;
        margin: 0 auto;
    }
    .ctrl-wrap {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
}


/* ══════════════════════════════════════════════
   SCIENCE NEWS (homepage teaser cards)
══════════════════════════════════════════════ */

.science-section {
    background: var(--bg);
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
}

.science-header {
    margin-bottom: 1.5rem;
}

.science-grid {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
}
.science-grid::-webkit-scrollbar { display: none; }

.news-cat-card {
    position: relative;
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 0.5px solid var(--border);
    text-decoration: none;
    color: var(--text);
    background: var(--bg2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .news-cat-card { flex-basis: 320px; }
}

.news-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.15);
    color: var(--text);
}

.news-cat-media {
    position: relative;
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg3);
    background-image: none;
    background-color: rgba(45, 106, 79, 0.45);
    overflow: hidden;
}

.news-cat-card.recycle .news-cat-media {
    background-image: none;
    background-color: #2ecc71;
}

.news-cat-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.28) 0%, transparent 45%);
}

.news-cat-media-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    opacity: 0.9;
}

.news-cat-num {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.news-cat-card.recycle .news-cat-badge {
    background: #2ecc71;
}

.news-cat-card h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.3;
    padding: 1.8rem 1.3rem 0.3rem;
}

.news-cat-card p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    padding: 0 1.3rem;
    flex: 1;
}

.news-cat-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 1.3rem 1.4rem;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent2);
}
.news-cat-card:hover .news-cat-meta { gap: 0.7rem; }

/* Science news — fixed 2-up feature layout (mobile-first) */
.science-grid--duo {
    display: grid;
    grid-template-columns: 1fr;   /* mobile: stacked, full width, no scroll */
    gap: 1.2rem;
    overflow-x: visible;
}
.science-grid--duo .news-cat-card {
    flex: none;                  /* cancel the 280px carousel sizing */
    width: 100%;
}
.science-grid--duo .news-cat-media {
    height: 180px;
}
@media (min-width: 700px) {
    .science-grid--duo {
        grid-template-columns: 1fr 1fr;   /* desktop/tablet: exactly 2 equal columns */
        gap: 1.8rem;
    }
    .science-grid--duo .news-cat-media {
        height: 220px;
    }
}



/* ══════════════════════════════════════════════
   NEWS — CATEGORY LISTING PAGE
══════════════════════════════════════════════ */

.news-page-main {
    padding-top: calc(var(--nav-h, 80px) + 2rem);
    min-height: 60vh;
}

.news-page-header {
    padding: 0 4vw;
    margin-bottom: 2.4rem;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 1rem;
}
.news-back-link:hover { color: var(--accent2); }

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 0 4vw 4rem;
}

@media (min-width: 640px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .news-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 0.5px solid var(--border);
    background: var(--bg2);
    text-decoration: none;
    color: var(--text);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.15);
    color: var(--text);
}

.news-card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg3);
    background-image: none;
    background-color: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.news-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.news-card-date {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent2);
}

.news-card-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.news-card-summary {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 11px;
    color: var(--muted);
}

.news-card-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    border: 0.5px solid var(--accent2);
    color: var(--accent2);
}

.news-empty {
    padding: 3rem 4vw;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}


/* ══════════════════════════════════════════════
   NEWS — ARTICLE READER PAGE
══════════════════════════════════════════════ */

.article-main {
    padding-top: calc(var(--nav-h, 80px) + 2rem);
    min-height: 60vh;
}

.article-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 4vw 4rem;
}

.article-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 11px;
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-body);
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
}
.article-body p { margin-bottom: 1.1rem; }

/* ══════════════════════════════════════════════
   ABOUT PAGE + CONTACT
══════════════════════════════════════════════ */

.about-page { padding-top: 0; }

.about-hero-section,
#about.about-hero-section {
    padding-top: calc(var(--nav-h, 64px) + 1.5rem);
    padding-bottom: 0.5rem !important;
}
@media (min-width: 768px) {
    .about-hero-section,
    #about.about-hero-section {
        padding-top: calc(var(--nav-h, 112px) + 2rem);
        padding-bottom: 0.75rem !important;
    }
}

.bridge-hero-header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 1.15rem;
    padding: 0 0.25rem;
}
.bridge-hero-header .sec-eyebrow { justify-content: center; }
.bridge-hero-header .sec-eyebrow::before { display: none; }
.bridge-hero-header .sec-title {
    font-size: clamp(24px, 7vw, 40px);
    margin: 0;
}
.bridge-hero-lead {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0.6rem auto 0;
    max-width: min(100%, 32rem);
    text-align: center;
}

.bridge-quote-band {
    width: 100%;
    margin: 1.25rem 0 0;
    padding: 1.15rem 4vw;
    background: linear-gradient(180deg, rgba(45, 106, 79, 0.06) 0%, rgba(45, 106, 79, 0.02) 100%);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}
.bridge-quote--hero {
    border: none;
    margin: 0 auto;
    max-width: 40rem;
    padding: 0.25rem 0;
    font-style: normal;
    text-align: center;
}
.bridge-quote--hero p {
    font-family: var(--font-display);
    font-size: clamp(16px, 3.2vw, 24px);
    font-weight: 700;
    font-style: italic;
    color: var(--text);
    line-height: 1.35;
}
.bridge-quote--hero cite {
    display: block;
    margin-top: 0.65rem;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 500;
    color: var(--accent2);
}

.bridge-problem-wrap {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}
.bridge-problem-wrap--after-bridge {
    margin: 1rem auto 0;
    padding: 0.95rem 1.1rem;
}

.about-page .bridge-story {
    margin-bottom: 0.25rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-page .bridge-visual {
    margin: 0.75rem auto 0.15rem !important;
}
.about-page .goals-section { padding-top: 1rem !important; margin-top: 0 !important; }
.about-page .goals-header { margin-bottom: 1.5rem; }
@media (min-width: 768px) {
    .about-page .goals-section { padding-top: 1.25rem !important; }
    .about-page .bridge-visual {
        max-width: 880px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        margin: 1.25rem auto 0.35rem !important;
    }
    .about-page .bridge-node {
        max-width: 160px;
        width: 160px;
        padding: 1.15rem 0.85rem;
    }
    .about-page .bridge-mid {
        flex: 1 1 auto;
        max-width: 420px;
        min-width: 0;
    }
    .about-page .bridge-svg {
        max-width: 100%;
    }
    .about-page .node-letter { font-size: 36px; }
    .about-page .node-title-text { font-size: 13.5px; }
}
@media (min-width: 1024px) {
    .about-page .bridge-visual {
        max-width: 960px;
        gap: 1.75rem;
    }
    .about-page .bridge-node {
        max-width: 180px;
        width: 180px;
        padding: 1.35rem 1rem;
    }
    .about-page .bridge-mid { max-width: 480px; }
    .about-page .node-letter { font-size: 40px; }
    .about-page .node-title-text { font-size: 14.5px; }
}

.contact-section {
    background: var(--bg2);
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}
.contact-header { margin-bottom: 1.75rem; max-width: 100%; }
.contact-header .sec-title {
    font-size: clamp(20px, 7.2vw, 42px);
    line-height: 1.15;
    white-space: normal;
}
@media (min-width: 380px) {
    .contact-header .sec-title { white-space: nowrap; }
}
.contact-lead {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 0.75rem;
    max-width: 40rem;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1.4fr 0.9fr;
        gap: 2rem;
        align-items: start;
    }
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 1.35rem 1.25rem;
}
.contact-field { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-field label { font-size: 12px; font-weight: 600; color: var(--text); }
.contact-field .optional { font-weight: 400; color: var(--muted); }
.contact-field input,
.contact-field textarea {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-submit {
    align-self: flex-start;
    margin-top: 0.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.contact-submit:hover { background: var(--accent2); }
.contact-form-note { font-size: 13px; color: var(--accent2); margin: 0.25rem 0 0; }
.contact-info-card {
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 1.35rem 1.25rem;
}
.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.contact-info-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}
.contact-info-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.contact-info-list a:hover { color: var(--accent2); }