/* ==========================================================================
   latticeWorks — Main Stylesheet
   Dark editorial aesthetic with refined typography and a single electric accent.
   ========================================================================== */

:root {
    /* Color tokens */
    --bg:           #0a0b0d;
    --bg-elev:      #101216;
    --bg-card:      #14161b;
    --border:       rgba(255, 255, 255, 0.06);
    --border-2:     rgba(255, 255, 255, 0.12);
    --text:         #f0efeb;
    --text-dim:     #8a8d92;
    --text-faint:   #4a4d52;
    --accent:       #c6ff3d;          /* electric chartreuse */
    --accent-dim:   #8fb82c;
    --accent-glow:  rgba(198, 255, 61, 0.18);

    /* Typography */
    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-sans:    'Geist', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* Sizing */
    --container:    1280px;
    --container-wide: 1480px;
    --gutter:       clamp(1.25rem, 4vw, 2.5rem);

    /* Motion */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast:     0.3s;
    --dur:          0.6s;
    --dur-slow:     1.2s;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    background: var(--bg);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Lenis required styles */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Atmospheric grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.display em,
.display .italic {
    font-style: italic;
    color: var(--accent);
}

h1, .h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
}

h2, .h2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
}

h3, .h3 {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

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

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text);
    line-height: 1.55;
    max-width: 56ch;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container-wide {
    max-width: var(--container-wide);
}

section {
    position: relative;
    padding-block: clamp(5rem, 12vw, 9rem);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: backdrop-filter var(--dur) var(--ease-out),
                background var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out),
                padding var(--dur) var(--ease-out);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(10, 11, 13, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom-color: var(--border);
    padding: 0.875rem 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.site-brand:hover {
    color: var(--text);
}

.site-brand__mark {
    width: 22px;
    height: 22px;
    display: inline-block;
    color: var(--accent);
}

.site-brand__name em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--text);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-size: 0.9375rem;
    color: var(--text-dim);
    position: relative;
    padding: 0.25rem 0;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-fast) var(--ease-out);
}

.primary-nav a:hover {
    color: var(--text);
}

.primary-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    padding: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}

.btn:hover {
    color: var(--bg);
    border-color: var(--accent);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn--primary::before {
    background: var(--text);
}

.btn--primary:hover {
    color: var(--bg);
    border-color: var(--text);
}

.btn__arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 5rem;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, var(--bg) 85%),
        linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__title {
    max-width: 16ch;
    margin-bottom: 1.5rem;
}

.hero__title .word {
    display: inline-block;
    overflow: hidden;
    line-height: 1;
    vertical-align: bottom;
}

.hero__title .word > span {
    display: inline-block;
    transform: translateY(110%);
    animation: heroWordRise 1s var(--ease-out) forwards;
}

.hero__title .word:nth-child(1) > span { animation-delay: 0.1s; }
.hero__title .word:nth-child(2) > span { animation-delay: 0.18s; }
.hero__title .word:nth-child(3) > span { animation-delay: 0.26s; }
.hero__title .word:nth-child(4) > span { animation-delay: 0.34s; }
.hero__title .word:nth-child(5) > span { animation-delay: 0.42s; }
.hero__title .word:nth-child(6) > span { animation-delay: 0.5s; }

@keyframes heroWordRise {
    to { transform: translateY(0); }
}

.hero__meta {
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero__lead {
    max-width: 50ch;
    color: var(--text);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.85s forwards;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__scrollcue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1.4s forwards;
}

.hero__scrollcue::after {
    content: "";
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollCue 2s var(--ease-in-out) infinite;
}

@keyframes scrollCue {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__corner {
    position: absolute;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    pointer-events: none;
}

.hero__corner--tl { top: 6rem; left: var(--gutter); }
.hero__corner--tr { top: 6rem; right: var(--gutter); text-align: right; }
.hero__corner--br { bottom: 2rem; right: var(--gutter); text-align: right; }

.hero__corner span {
    display: block;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* Hero lattice mark — replaces location label in TL corner */
.hero__mark {
    width: 56px;
    height: 64px;
    color: var(--text);
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--dur) var(--ease-out);
}

.hero__mark-back {
    transform-origin: center;
    animation: markRotate 24s linear infinite;
}

@keyframes markRotate {
    0%   { opacity: 0.35; }
    50%  { opacity: 0.55; }
    100% { opacity: 0.35; }
}

.hero__mark-pulse {
    transform-origin: 28px 32px;
    animation: markPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes markPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.8);
        opacity: 0.4;
    }
}

.hero__mark-status {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim) !important;
    margin-top: 0 !important;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__mark-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2s var(--ease-in-out) infinite;
    display: inline-block;
}

/* ==========================================================================
   Reveal animations (Intersection Observer)
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"].is-visible { transition-delay: 0.1s; }
[data-reveal-delay="2"].is-visible { transition-delay: 0.2s; }
[data-reveal-delay="3"].is-visible { transition-delay: 0.3s; }
[data-reveal-delay="4"].is-visible { transition-delay: 0.4s; }
[data-reveal-delay="5"].is-visible { transition-delay: 0.5s; }

/* ==========================================================================
   Sections — Capabilities
   ========================================================================== */

.section-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: end;
}

.section-header__title {
    max-width: 14ch;
}

.section-header__lead {
    max-width: 52ch;
    color: var(--text);
}

@media (max-width: 768px) {
    .section-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
}

.capabilities {
    background: var(--bg);
    position: relative;
}

.capabilities::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cap-grid { grid-template-columns: 1fr; }
}

.cap {
    background: var(--bg);
    padding: 2.5rem 2rem;
    transition: background var(--dur) var(--ease-out);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.cap:hover {
    background: var(--bg-elev);
}

.cap__num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.cap__icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.cap__title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.cap__desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.cap__more {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}

.cap:hover .cap__more {
    color: var(--accent);
    gap: 0.75rem;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
    overflow: hidden;
    background: var(--bg);
}

.marquee__track {
    display: flex;
    gap: 3.5rem;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text);
    flex-shrink: 0;
}

.marquee__item::after {
    content: "✦";
    color: var(--accent);
    font-style: normal;
    font-size: 0.7em;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
    background: var(--bg);
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.process-item {
    display: grid;
    grid-template-columns: 80px 1fr 1.5fr 80px;
    gap: 2rem;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    transition: padding var(--dur) var(--ease-out);
    position: relative;
}

.process-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
    pointer-events: none;
}

.process-item:hover::after {
    opacity: 1;
}

.process-item:hover {
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .process-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    .process-item__desc, .process-item__meta {
        grid-column: 2;
    }
}

.process-item__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
}

.process-item__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1;
    color: var(--text);
}

.process-item__desc {
    color: var(--text-dim);
    font-size: 0.975rem;
    line-height: 1.6;
    margin: 0;
}

.process-item__meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-faint);
    text-align: right;
}

@media (max-width: 768px) {
    .process-item__meta { text-align: left; }
}

/* ==========================================================================
   Work / Showcase
   ========================================================================== */

.work {
    background: var(--bg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.work-item {
    grid-column: span 6;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color var(--dur) var(--ease-out);
}

.work-item:nth-child(3) { grid-column: span 5; }
.work-item:nth-child(4) { grid-column: span 7; }

@media (max-width: 768px) {
    .work-item,
    .work-item:nth-child(3),
    .work-item:nth-child(4) {
        grid-column: span 12;
    }
}

.work-item:hover {
    border-color: var(--accent);
}

.work-item__visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.work-item__visual svg {
    width: 100%;
    height: 100%;
    transition: transform 1.2s var(--ease-out);
}

.work-item:hover .work-item__visual svg {
    transform: scale(1.05);
}

.work-item__overlay {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 11, 13, 0.85) 100%);
}

.work-item__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.work-item__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text);
    line-height: 1;
    margin: 0;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-block: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat {
    background: var(--bg);
    padding: 1.5rem;
    text-align: center;
}

.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.stat__num em {
    font-style: italic;
    color: var(--accent);
}

.stat__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    background: var(--bg);
    text-align: center;
    padding-block: clamp(6rem, 14vw, 10rem);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin: 0 auto 2rem;
    position: relative;
}

.cta__title em {
    font-style: italic;
    color: var(--accent);
}

.cta__lead {
    max-width: 50ch;
    margin: 0 auto 3rem;
    color: var(--text);
    position: relative;
}

.cta__actions {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    max-width: 32ch;
}

.footer-brand__name {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-brand__name em { font-style: italic; color: var(--accent); }

.footer-brand__desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-col__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.625rem;
}

.footer-col a {
    color: var(--text-dim);
    font-size: 0.925rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-faint);
}

.footer-bottom__signal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom__dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2s var(--ease-in-out) infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ==========================================================================
   Single Post / Page
   ========================================================================== */

.page-header {
    padding: 10rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.page-header__title {
    max-width: 18ch;
}

.entry-content {
    max-width: 72ch;
    margin-inline: auto;
    padding-block: 5rem;
}

.entry-content > * {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    margin-top: 2em;
}

.entry-content a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-dim);
}

.entry-content blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.3;
    padding: 1rem 0 1rem 2rem;
    border-left: 2px solid var(--accent);
    color: var(--text);
    margin: 2rem 0;
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.125em 0.375em;
    background: var(--bg-elev);
    border-radius: 3px;
    border: 1px solid var(--border);
}

.entry-content pre {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 1.5rem;
    overflow-x: auto;
    border-radius: 4px;
}

.entry-content pre code {
    background: none;
    border: 0;
    padding: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .primary-nav ul { display: none; }
    .menu-toggle { display: inline-flex; }
    .hero__corner--tl,
    .hero__corner--tr,
    .hero__corner--br { display: none; }
    .hero { padding: 7rem 0 4rem; min-height: 90svh; }
    .hero__actions { flex-direction: column; align-items: flex-start; }
    .hero__actions .btn { width: auto; }
}

/* ==========================================================================
   Accessibility — reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee__track { animation: none; }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   WordPress core compatibility
   ========================================================================== */

.alignleft   { float: left; margin: 0 1.5em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide   { width: 100%; max-width: var(--container-wide); margin-inline: auto; }
.alignfull   { width: 100vw; margin-inline: calc(50% - 50vw); }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
