/* ================================================
   THE WORDSPRING INITIATIVE — STYLESHEET
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Gentium+Plus:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:wght@300;400;500;600&display=swap');

/* ── Design Tokens ───────────────────────────── */

:root {
    --brown-deep:  #0d0401;
    --brown-nav:   #762b0d;
    --brown-rich:  #5a1f08;
    --gold:        #d4af86;
    --gold-dim:    #b8935d;
    --cream-deep:  #ede0c8;
    --cream:       #f5e8d0;
    --cream-light: #fdf2de;
    --text-primary: #2a0f04;
    --text-body:    #5a3b28;
    --text-muted:   #8b6b52;

    --ff-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
    --ff-body:    'EB Garamond', 'Book Antiqua', Georgia, serif;
    --ff-label:   'Raleway', 'Trebuchet MS', system-ui, sans-serif;
    /* Gentium Plus is designed for linguistic transcription — full Lakota glyph coverage */
    --ff-lakota:  'Gentium Plus', 'Charis SIL', 'EB Garamond', 'Palatino Linotype', Georgia, serif;

    --nav-height: 78px;
}

/* ── Reset ───────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    font-size: 18px;
    background: var(--brown-nav);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay — subtle magazine feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Utilities ───────────────────────────────── */

.eyebrow {
    display: block;
    font-family: var(--ff-label);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow-muted {
    color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: var(--ff-label);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.6rem;
    border-radius: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--cream-light);
    color: var(--brown-nav);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--cream-light);
    border-color: rgba(253, 242, 222, 0.38);
}

.btn-ghost:hover {
    border-color: rgba(253, 242, 222, 0.8);
    background: rgba(253, 242, 222, 0.07);
    transform: translateY(-2px);
}

.btn-ghost-light {
    background: transparent;
    color: var(--cream-light);
    border-color: rgba(253, 242, 222, 0.45);
}

.btn-ghost-light:hover {
    background: rgba(253, 242, 222, 0.1);
    border-color: rgba(253, 242, 222, 0.85);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--brown-nav);
    color: var(--cream-light);
}

.btn-dark:hover {
    background: var(--brown-rich);
    transform: translateY(-2px);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--brown-nav);
    border-color: rgba(118, 43, 13, 0.4);
}

.btn-ghost-dark:hover {
    border-color: var(--brown-nav);
    background: rgba(118, 43, 13, 0.05);
    transform: translateY(-2px);
}

/* ── Navigation ──────────────────────────────── */

nav {
    background: var(--brown-nav);
    padding: 0.8rem 2rem;
    position: relative;
    z-index: 100;
}

/* Home page nav floats over the hero image */
body.home nav {
    background: transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-wordspring {
    height: 55px;
    width: auto;
    max-width: 280px;
    margin: -0.3rem 0;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links a {
    font-family: var(--ff-label);
    color: rgba(248, 224, 199, 0.85);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    padding: 0.8rem 1.4rem;
    display: block;
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.4rem;
    right: 1.4rem;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    background: none !important;
    background-image: none !important;
    border: none;
    color: var(--cream-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 2px;
    transition: none !important;
    transform: none !important;
    overflow: visible !important;
}

.mobile-menu-toggle::before { display: none !important; content: none !important; }
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {
    background: none !important;
    color: var(--cream-light) !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
}

/* ════════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════════ */

/* Hero */


.hero {
    position: relative;
    min-height: calc(99vh + 1rem);
    margin-top: calc(-1 * var(--nav-height));
    padding-top: calc(var(--nav-height) + 4rem);
    background:
        linear-gradient(
            to bottom,
            rgba(10, 3, 1, 0.70) 0%,
            rgba(18, 6, 1, 0.30) 45%,
            rgba(10, 3, 1, 0.80) 100%
        ),
        url('main-image.jpeg') center 35% / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-inner {
    max-width: 900px;
    position: relative;
}

.hero .eyebrow {
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.display-title {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    font-weight: 300;
    line-height: 0.94;
    color: var(--cream-light);
    letter-spacing: -1px;
    margin-bottom: 2.8rem;
}

.display-title em {
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
    display: block;
}

.hero-copy {
    font-family: var(--ff-body);
    font-size: 1.15rem;
    line-height: 1.95;
    color: rgba(253, 242, 222, 0.7);
    max-width: 500px;
    margin: 0 auto 3.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Languages band */

.languages-band {
    background: var(--cream-light);
    border-top: 1px solid rgba(118, 43, 13, 0.1);
    border-bottom: 1px solid rgba(118, 43, 13, 0.1);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.lang-col {
    padding: 3.5rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(118, 43, 13, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.25s ease;
}

.lang-col:last-child {
    border-right: none;
}

.lang-col:hover {
    background: rgba(118, 43, 13, 0.025);
}

.lang-label {
    font-family: var(--ff-label);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lang-word {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--brown-nav);
    line-height: 1.3;
}

.lang-gloss {
    font-family: var(--ff-body);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Spotlight section (currently hidden) */

.spotlight-section {
    padding: 0;
    background: var(--cream-light);
}

.spotlight-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 2px;
    background:
        linear-gradient(135deg, rgba(118, 43, 13, 0.96) 0%, rgba(84, 29, 9, 0.98) 55%, rgba(37, 18, 9, 0.98) 100%);
    color: var(--cream-light);
    border: 1px solid rgba(212, 175, 134, 0.25);
    box-shadow: 0 24px 60px rgba(58, 24, 9, 0.24);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.spotlight-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 134, 0.22), transparent 35%),
        radial-gradient(circle at bottom left, rgba(253, 242, 222, 0.08), transparent 30%);
    pointer-events: none;
}

.spotlight-copy, .spotlight-card { position: relative; z-index: 1; }

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 134, 0.3);
    background: rgba(253, 242, 222, 0.08);
    color: #f1cf9d;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 1.2rem;
    font-family: var(--ff-label);
}

.spotlight-copy h2 {
    font-family: var(--ff-display);
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--cream-light);
}

.spotlight-copy p {
    color: rgba(253, 242, 222, 0.82);
    line-height: 1.75;
    font-family: var(--ff-body);
    font-size: 1rem;
}

.spotlight-lead {
    font-size: 1.1rem !important;
    color: #fff6e6 !important;
    margin-bottom: 1rem;
}

.spotlight-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.spotlight-link {
    color: #f1cf9d;
    text-decoration: none;
    border-bottom: 1px solid rgba(241, 207, 157, 0.45);
    padding-bottom: 0.15rem;
    transition: color 0.25s ease, border-color 0.25s ease;
    font-family: var(--ff-label);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.spotlight-link:hover {
    color: #fff6e6;
    border-color: rgba(255, 246, 230, 0.8);
}

.spotlight-card {
    background: rgba(253, 242, 222, 0.96);
    color: var(--brown-nav);
    border-radius: 2px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 134, 0.32);
}

.spotlight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(118, 43, 13, 0.1);
}

.spotlight-card-label {
    font-family: var(--ff-label);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.spotlight-card-model {
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--brown-nav);
}

.spotlight-example {
    padding: 1rem 1.1rem;
    border-radius: 2px;
    background: #fffaf1;
    border: 1px solid rgba(118, 43, 13, 0.08);
}

.spotlight-example-output { background: #f7ecdb; }

.spotlight-example-label {
    font-family: var(--ff-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.spotlight-example-text {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--brown-nav);
}

.spotlight-arrow {
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    padding: 0.7rem 0;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.spotlight-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(118, 43, 13, 0.07);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--ff-label);
    letter-spacing: 0.04em;
}

/* Pillars band */

.pillars-band {
    background: var(--cream-light);
    padding: 2.5rem 4rem 5rem;
}

.band-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.band-header {
    margin-bottom: 2.5rem;
}

.band-header .eyebrow-muted {
    margin-bottom: 1.2rem;
}

.band-header h2 {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--brown-nav);
    line-height: 1.06;
    letter-spacing: -0.3px;
}

.pillars {
    display: flex;
    flex-direction: column;
}

.pillar {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 3.5rem;
    padding: 2.8rem 0;
    border-top: 1px solid rgba(118, 43, 13, 0.12);
    align-items: start;
}

.pillar:last-child {
    border-bottom: 1px solid rgba(118, 43, 13, 0.12);
}

.pillar-num {
    font-family: var(--ff-label);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold-dim);
    padding-top: 0.8rem;
}

.pillar-body h3 {
    font-family: var(--ff-display);
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--brown-nav);
    margin-bottom: 1.2rem;
    letter-spacing: 0.1px;
}

.pillar-body p {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--text-body);
    max-width: 620px;
}

/* Statement band */

.statement-band {
    background: #642512;
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.statement-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 134, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.statement-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.statement-text {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--cream-light);
    line-height: 1.3;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Shared footer */

footer {
    background: var(--brown-nav);
    padding: 2.6rem 2rem;
    border-top: 1px solid rgba(212, 175, 134, 0.18);
    color: var(--cream-light);
}

.footer-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-line {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--cream-light);
    opacity: 0.85;
    margin: 0;
    letter-spacing: 0.2px;
}

.contact {
    font-family: var(--ff-label);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(253, 242, 222, 0.55);
}

.footer-legal {
    margin-top: 0.6rem;
    font-family: var(--ff-label);
    font-size: 0.7rem;
    line-height: 1.75;
    letter-spacing: 0.04em;
    color: rgba(253, 242, 222, 0.42);
    max-width: 540px;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 134, 0.3);
    padding-bottom: 0.1rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}

footer a:hover {
    color: var(--cream-light);
    border-bottom-color: rgba(253, 242, 222, 0.65);
}

/* ════════════════════════════════════════════════
   ABOUT PAGE — Essay layout (distinct from home pillars)
   ════════════════════════════════════════════════ */

.about-page {
    background: var(--cream);
    flex: 1;
    color: var(--text-body);
}

/* Shared ornament (also used by research under-construction) */

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 0 auto;
}

.ornament-line {
    display: block;
    width: 70px;
    height: 1px;
    background: var(--gold-dim);
    opacity: 0.55;
}

.ornament-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--gold-dim);
    opacity: 0.7;
    transform: rotate(45deg);
    border-radius: 1px;
}

.about-v2-inner {
    max-width: 880px;
    margin: 0 auto;
}

/* Intro / manifesto: a single weighty paragraph, no heading */

.about-intro {
    padding: 6rem 2rem 4rem;
    background: var(--cream-light);
    border-bottom: 1px solid rgba(118, 43, 13, 0.08);
}

.about-intro-inner {
    max-width: 820px;
    margin: 0 auto;
}

.about-intro .eyebrow {
    color: var(--gold-dim);
    margin-bottom: 2rem;
}

.about-manifesto {
    font-family: var(--ff-display);
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 400;
    line-height: 1.32;
    color: var(--brown-nav);
    letter-spacing: -0.2px;
    max-width: 760px;
}

/* Shared section header for about-v2 sections */

.about-v2-header {
    margin-bottom: 2.6rem;
}

.about-v2-header .eyebrow-muted {
    color: var(--gold-dim);
    display: block;
    margin-bottom: 1rem;
}

.about-v2-header h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--brown-nav);
    letter-spacing: -0.2px;
}

/* Principles section */

.about-how {
    padding: 5rem 2rem;
    background: var(--cream);
}

.principle {
    padding: 2.2rem 0;
    border-top: 1px solid rgba(118, 43, 13, 0.18);
    max-width: 720px;
}

.principle:last-of-type {
    border-bottom: 1px solid rgba(118, 43, 13, 0.18);
}

.principle h3 {
    font-family: var(--ff-display);
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--brown-nav);
    margin-bottom: 0.7rem;
    letter-spacing: 0.1px;
}

.principle p {
    font-family: var(--ff-body);
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-body);
}

/* In motion / Now list */

.about-now {
    padding: 5rem 2rem;
    background: #f6e1bf;
    border-top: 1px solid rgba(118, 43, 13, 0.08);
    border-bottom: 1px solid rgba(118, 43, 13, 0.08);
}

.now-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

@media (min-width: 720px) {
    .now-list {
        grid-template-columns: 1fr 1fr;
    }
}

.now-list li {
    background: rgba(255, 251, 244, 0.85);
    border: 1px solid rgba(118, 43, 13, 0.12);
    padding: 1.6rem 1.6rem 1.5rem;
    position: relative;
}

.now-status {
    display: inline-block;
    font-family: var(--ff-label);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    margin-bottom: 0.9rem;
}

.status-live { background: rgba(118, 43, 13, 0.12); color: var(--brown-nav); }
.status-dev  { background: rgba(184, 147, 93, 0.22); color: #7a5926; }
.status-plan { background: rgba(118, 43, 13, 0.06); color: var(--text-muted); }

.now-list h3 {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brown-nav);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.now-list p {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* Working with us */

.about-collab {
    padding: 5rem 2rem 6rem;
    background: var(--cream);
}

.collab-intro {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-body);
    max-width: 720px;
    margin-bottom: 2rem;
}

.collab-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.4rem;
    max-width: 720px;
}

.collab-list li {
    font-family: var(--ff-body);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-body);
    padding: 1.1rem 0;
    border-top: 1px solid rgba(118, 43, 13, 0.12);
}

.collab-list li:last-child {
    border-bottom: 1px solid rgba(118, 43, 13, 0.12);
}

.collab-list strong {
    color: var(--brown-nav);
    font-weight: 600;
}

.about-collab-cta {
    margin-top: 0.4rem;
}

/* Mobile */

@media (max-width: 720px) {
    .about-intro { padding: 4rem 1.5rem 3rem; }
    .about-how { padding: 3.5rem 1.5rem; }
    .about-now { padding: 3.5rem 1.5rem; }
    .about-collab { padding: 3.5rem 1.5rem 4.5rem; }
    .principle p, .now-list p, .collab-list li { font-size: 1rem; }
}

/* ════════════════════════════════════════════════
   UNDER CONSTRUCTION (Research placeholder)
   ════════════════════════════════════════════════ */

.under-construction {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(212, 175, 134, 0.18), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(118, 43, 13, 0.06), transparent 55%),
        var(--cream-light);
    min-height: calc(100vh - var(--nav-height) - 320px);
}

.under-construction-inner {
    max-width: 620px;
}

.under-construction .eyebrow {
    color: var(--gold-dim);
    margin-bottom: 2rem;
}

.under-construction-title {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--brown-nav);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 1.6rem;
    font-style: italic;
}

.under-construction-lead {
    font-family: var(--ff-body);
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    max-width: 480px;
}

.under-construction .ornament {
    margin-bottom: 2.8rem;
}

.under-construction-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════
   RESEARCH PAGE
   ════════════════════════════════════════════════ */

.research-page .about-container {
    max-width: 740px;
}

.research-content {
    display: flex;
    flex-direction: column;
}

.research-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(118, 43, 13, 0.08);
}

.research-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.research-title {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--brown-nav);
    margin-bottom: 1.6rem;
}

.research-text p {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--text-body);
    margin-bottom: 1.3rem;
}

.research-text p:last-child { margin-bottom: 0; }

.research-text strong {
    color: var(--brown-nav);
    font-weight: 600;
}

.research-text a {
    color: var(--brown-nav);
    border-bottom: 1px solid rgba(118, 43, 13, 0.35);
    padding-bottom: 0.1rem;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.research-text a:hover {
    border-color: var(--brown-nav);
}

/* ════════════════════════════════════════════════
   TRANSLATOR PAGE
   ════════════════════════════════════════════════ */

/* Translator page layout */
.translator-page {
    background: rgba(253, 242, 222, 0.95);
    min-height: calc(100vh - 120px);
    padding: 4rem 2rem 5rem;
}

.translator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.translator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.translator-header h1 {
    font-size: 2.5rem;
    color: var(--brown-nav);
    margin-bottom: 1rem;
    font-weight: 400;
}

.translator-header .subtitle {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Translator interface */
.translator-interface {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(139, 111, 71, 0.2);
    position: relative;
}

.language-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem;
    background: #fefbf5;
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
    gap: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    background: white;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 2px;
    font-size: 1rem;
    color: var(--brown-nav);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--ff-display);
    transition: border-color 0.2s ease;
}

.dropdown-selected:hover { border-color: #999; }

.dropdown-arrow {
    font-size: 0.8rem;
    color: var(--brown-nav);
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow { transform: rotate(180deg); }

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 2px 2px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.custom-dropdown.active .dropdown-options { display: block; }
.custom-dropdown.active .dropdown-selected {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--brown-nav);
    font-family: var(--ff-display);
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.dropdown-option:hover { background-color: #f5f5f5; }
.dropdown-option.selected { background-color: #ebebeb; font-weight: 500; }

.swap-languages {
    background: none;
    border: none;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.25s ease;
    color: var(--brown-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.swap-languages:hover { background: rgba(118, 43, 13, 0.1); }
.swap-languages.flipped { transform: rotate(180deg); }
.swap-icon { font-size: 1.5rem; display: block; }

.translation-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    position: relative;
}

.input-panel, .output-panel {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-panel { border-right: 1px solid rgba(139, 111, 71, 0.1); }

.input-panel textarea {
    flex: 1;
    border: none;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.65;
    resize: none;
    background: transparent;
    color: var(--brown-nav);
    font-family: var(--ff-lakota);
    font-weight: 400;
}

.input-panel textarea:focus { outline: none; }

.translation-result {
    flex: 1;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--brown-nav);
    background: #ffffff;
    font-family: var(--ff-lakota);
    font-weight: 400;
}

.translation-result .placeholder {
    color: #aaa;
    font-style: italic;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.translation-result .error {
    color: #c62828;
    font-style: italic;
    margin: 0;
}

.input-actions, .output-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: #ffffff;
    border-top: 1px solid rgba(139, 111, 71, 0.1);
    height: 72px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

.clear-btn, .copy-btn {
    background: none;
    border: none;
    color: var(--brown-nav);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transition: background 0.2s ease;
    font-size: 1rem;
    font-family: var(--ff-display);
    font-weight: 500;
    outline: none;
    box-shadow: none;
}

.clear-btn:hover, .copy-btn:hover {
    background: rgba(118, 43, 13, 0.08);
}

#translate-button {
    background: var(--brown-nav);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: var(--ff-display);
}

#translate-button:hover {
    background: var(--brown-rich);
    transform: translateY(-1px);
}

#translate-button:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

#translate-button:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Loading overlay */
.translator-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 72px;
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.translator-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    padding: 3.5rem;
    background: transparent;
}

.spinner {
    border: 4px solid rgba(139, 111, 71, 0.2);
    border-top: 4px solid #8b6f47;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes simpleFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.translation-result.animate p {
    opacity: 0;
    animation: simpleFade 1.2s ease-out forwards;
}

.loading-spinner p {
    font-family: var(--ff-display);
    color: var(--brown-nav);
    font-style: italic;
    font-size: 0.95rem;
}

/* Legacy result section */
.result-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 2px;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.result-section h2 {
    font-family: var(--ff-display);
    color: var(--brown-nav);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 400;
}

.translation-container {
    position: relative;
    background: rgba(139, 111, 71, 0.07);
    padding: 1.3rem;
    border-radius: 2px;
    border-left: 2px solid #8b6f47;
    margin-bottom: 1rem;
}

#translation {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0;
    color: var(--brown-nav);
}

.copy-button {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(139, 111, 71, 0.1);
    border: 1px solid rgba(139, 111, 71, 0.3);
    padding: 0.4rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 1rem;
}

.copy-button:hover {
    background: rgba(139, 111, 71, 0.2);
    transform: scale(1.1);
}

.references-details {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.references-details summary {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #8b6f47 0%, #6b4e3d 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.25s ease;
    position: relative;
    font-family: var(--ff-display);
}

.references-details summary:hover {
    background: linear-gradient(135deg, #6b4e3d 0%, #5a3f32 100%);
}

.references-details summary::after {
    content: '▼';
    position: absolute;
    right: 2rem;
    transition: transform 0.3s ease;
}

.references-details[open] summary::after { transform: rotate(180deg); }

#references {
    list-style: none;
    padding: 1.5rem;
    background: #f8f9fa;
}

#references li {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    margin-bottom: 0.8rem;
    background: white;
    transition: background 0.2s ease, transform 0.2s ease;
}

#references li:hover {
    background: rgba(139, 111, 71, 0.05);
    transform: translateY(-2px);
}

#references li:last-child { margin-bottom: 0; }

/* Legacy container */
.container {
    flex: 1;
    max-width: 900px;
    width: 95%;
    margin: 1rem auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    border: none;
}

.input-section { padding: 0; background: transparent; }

.description {
    text-align: center;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: var(--ff-body);
}

form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { position: relative; }

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    font-family: var(--ff-label);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: var(--ff-display);
    transition: border-color 0.25s ease;
    background: white;
}

select:focus, textarea:focus {
    border-color: #8b6f47;
    outline: none;
}

textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* Translator button override (global button style) */
button {
    background: linear-gradient(135deg, #8b6f47 0%, #6b4e3d 100%);
    color: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

button:hover::before { left: 100%; }
button:hover { transform: translateY(-2px); }
button:active { transform: translateY(0); }

.button-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

button:hover .button-icon { transform: translateX(4px); }

/* ════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════ */

.contact-page {
    flex: 1;
    background: var(--cream);
    color: var(--text-body);
}

.contact-hero {
    padding: 5rem 2rem 3.5rem;
    background: var(--cream-light);
    border-bottom: 1px solid rgba(118, 43, 13, 0.08);
}

.contact-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}

.contact-hero .eyebrow {
    color: var(--gold-dim);
    margin-bottom: 1.4rem;
}

.contact-title {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    color: var(--brown-nav);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 1.4rem;
}

.contact-lead {
    font-family: var(--ff-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 620px;
}

.contact-body {
    padding: 5rem 2rem 6rem;
}

/* Thank-you state shown after the contact endpoint redirects with ?sent=1 */
.contact-success {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem 4.5rem;
    background: var(--cream-light);
    border: 1px solid rgba(118, 43, 13, 0.12);
    box-shadow: 0 14px 38px rgba(67, 29, 12, 0.06);
}

.contact-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(118, 43, 13, 0.08);
    color: var(--brown-nav);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.contact-success h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--brown-nav);
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
}

.contact-success p {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.contact-success strong {
    color: var(--brown-nav);
    font-weight: 600;
}

@media (max-width: 600px) {
    .contact-success { padding: 3rem 1.4rem 3.5rem; }
}

.contact-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 920px) {
    .contact-grid {
        grid-template-columns: 280px 1fr;
        gap: 5rem;
    }
}

/* Left column: contact info */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-info-label {
    font-family: var(--ff-label);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.5rem;
}

.contact-info-block a {
    font-family: var(--ff-body);
    font-size: 1.05rem;
    color: var(--brown-nav);
    text-decoration: none;
    border-bottom: 1px solid rgba(118, 43, 13, 0.25);
    padding-bottom: 0.1rem;
    transition: border-color 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.contact-info-block a:hover {
    border-bottom-color: var(--brown-nav);
}

.contact-info-block p {
    font-family: var(--ff-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* Form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    background: var(--cream-light);
    padding: 2.5rem;
    border: 1px solid rgba(118, 43, 13, 0.1);
    box-shadow: 0 14px 38px rgba(67, 29, 12, 0.06);
}

.contact-form-title {
    font-family: var(--ff-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--brown-nav);
    margin-bottom: 0.4rem;
    letter-spacing: -0.1px;
}

.contact-error {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(118, 43, 13, 0.28);
    border-radius: 4px;
    background: #fff5f0;
    color: var(--brown-nav);
    font-size: 0.95rem;
    line-height: 1.45;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(118, 43, 13, 0.12);
}

.form-group-label {
    font-family: var(--ff-label);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field label {
    font-family: var(--ff-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-body);
}

.req {
    color: #b3261e;
    font-weight: 700;
    margin-left: 0.2rem;
    font-size: 0.85rem;
    line-height: 0;
    vertical-align: -0.05em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(118, 43, 13, 0.22);
    border-radius: 2px;
    background: #fffdf8;
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--brown-nav);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brown-nav);
    background: #ffffff;
}

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

.contact-form input[type="file"] {
    font-family: var(--ff-label);
    font-size: 0.85rem;
    color: var(--text-body);
    padding: 0 0;
}

.contact-form input[type="file"]::file-selector-button {
    font-family: var(--ff-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: transparent;
    color: var(--brown-nav);
    border: 1px solid rgba(118, 43, 13, 0.4);
    padding: 0.55rem 1.1rem;
    border-radius: 2px;
    cursor: pointer;
    margin-right: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-form input[type="file"]::file-selector-button:hover {
    background: rgba(118, 43, 13, 0.06);
    border-color: var(--brown-nav);
}

.contact-form input[type="file"]::file-selector-button:focus,
.contact-form input[type="file"]::file-selector-button:active {
    background: transparent;
    color: var(--brown-nav);
    border-color: rgba(118, 43, 13, 0.4);
    outline: none;
}

.field-hint {
    font-family: var(--ff-body);
    font-size: 0.72rem;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-left: 0.4rem;
}

/* Block the legacy global `button` shimmer/gradient from leaking
   into the contact form. The contact submit uses .btn .btn-dark. */
.contact-form button,
.contact-form button:hover,
.contact-form button:active,
.contact-form button:focus {
    background: var(--brown-nav);
    color: var(--cream-light);
    border: none;
    display: inline-block;
}

.contact-form button:hover {
    background: var(--brown-rich);
    transform: translateY(-2px);
}

.contact-form button::before {
    display: none !important;
    content: none !important;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
    .field-row.triple {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.contact-submit {
    align-self: flex-start;
    margin-top: 0.6rem;
    border: none;
}

/* Honeypot, kept invisible to humans */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 600px) {
    .contact-hero { padding: 4rem 1.5rem 3rem; }
    .contact-body { padding: 3.5rem 1.5rem 4.5rem; }
    .contact-form { padding: 1.8rem 1.4rem; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
    /* Nav */
    .mobile-menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--brown-nav);
        flex-direction: column;
        padding: 0.5rem 0;
        z-index: 200;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active { display: flex; }
    .nav-links a { padding: 1rem 2rem; }
    .nav-links a.active::after { display: none; }
    .logo-wordspring { content: url('wordspring.png'); }

    /* Hero */
    .hero {
        min-height: 99vh;
        background-attachment: scroll;
        padding-top: calc(var(--nav-height) + 3rem);
        padding-bottom: 3rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Languages: 3 columns */
    .languages-grid { grid-template-columns: repeat(3, 1fr); }

    .lang-col { border-bottom: 1px solid rgba(118, 43, 13, 0.1); }
    .lang-col:nth-child(3n) { border-right: none; }
    .lang-col:nth-child(n+4) { border-bottom: none; }

    /* Pillars */
    .pillars-band { padding: 6rem 2.5rem; }
    .pillar { grid-template-columns: 3.5rem 1fr; gap: 2rem; }

    /* Statement */
    .statement-band { padding: 6rem 2.5rem; }

    /* Footer home */
    .footer-home { flex-direction: column; text-align: center; gap: 1.5rem; }

    /* Translator */
    .translation-area { grid-template-columns: 1fr; }
    .input-panel { border-right: none; border-bottom: 1px solid rgba(139, 111, 71, 0.1); }
    .language-selector { gap: 0.5rem; }

    /* Spotlight */
    .spotlight-shell { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
    .display-title { letter-spacing: -0.5px; }
    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 2rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Languages: 2 columns */
    .languages-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-col { padding: 2.5rem 1rem; }
    .lang-col:nth-child(3n) { border-right: 1px solid rgba(118, 43, 13, 0.1); }
    .lang-col:nth-child(2n) { border-right: none; }
    .lang-col:nth-child(n+4) { border-bottom: 1px solid rgba(118, 43, 13, 0.1); }
    .lang-col:nth-child(n+5) { border-bottom: none; }

    /* Pillars */
    .pillars-band { padding: 5rem 1.5rem; }
    .pillar { grid-template-columns: 1fr; gap: 0.75rem; padding: 3rem 0; }
    .pillar-num { padding-top: 0; }
    .band-header { margin-bottom: 3.5rem; }

    /* Statement */
    .statement-band { padding: 5rem 1.5rem; }

    /* Translator */
    .translator-page { padding: 2.5rem 1rem 4rem; }
    .translator-header h1 { font-size: 1.8rem; }

    .language-selector {
        grid-template-columns: 1fr auto 1fr !important;
        gap: 0.4rem !important;
        padding: 0.75rem !important;
        align-items: center !important;
    }

    .swap-languages {
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem !important;
        min-height: 2.5rem !important;
        flex-shrink: 0 !important;
    }

    .input-actions, .output-actions { padding: 0.75rem 0.75rem; }
    #translate-button { padding: 0.7rem 1.2rem; font-size: 0.9rem; }

    /* Research page */
    .research-section { padding: 3rem 0; }
}
