/* ===== CUSTOM FONT ===== */
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
    --bg: #0a0a0a;
    --bg-raised: #111111;
    --bg-card: #161616;
    --border: #222222;
    --border-hover: #333333;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #ffffff;
    --font-sans: 'TheYearofHandicrafts', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
    --bg: #f5f5f0;
    --bg-raised: #ffffff;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --border-hover: #cccccc;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #999999;
    --accent: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== THREE.JS CANVAS ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* ===== NAVIGATION ===== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(20px, 5vw, 60px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease;
}

[data-theme="light"] .topnav {
    background: rgba(245, 245, 240, 0.85);
}

[data-theme="light"] .mobile-menu {
    background: var(--bg);
}

.topnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.topnav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.topnav-links {
    display: flex;
    gap: 2rem;
}

.topnav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 400;
}

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

.topnav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: var(--bg);
}

.lang-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.topnav-cta {
    font-size: 0.875rem;
    color: var(--bg);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.topnav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    flex-direction: column;
    padding: 2rem clamp(20px, 5vw, 60px);
    gap: 1.5rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.125rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    width: 100%;
}

.hero-eyebrow {
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line > span,
.hero-line {
    opacity: 0;
    transform: translateY(100%);
    animation: revealLine 1.2s var(--ease-out-expo) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.45s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }
.hero-line:nth-child(4) { animation-delay: 0.75s; }

.hero-rotate-word {
    display: inline-block;
    position: relative;
}

.rotate-words {
    position: relative;
    display: inline-block;
}

.rotate-word {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out-expo);
    color: var(--text-secondary);
    font-style: italic;
}

.rotate-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.hero-meta {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out-expo) 1s forwards;
}

.hero-name {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.hero-role {
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.3s forwards;
}

.hero-scroll span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

.hero-counter {
    position: absolute;
    bottom: 40px;
    right: clamp(20px, 5vw, 60px);
    text-align: right;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.5s forwards;
}

.counter-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    max-width: 180px;
    margin-left: auto;
}

/* ===== EXPERIENCE LIST ===== */
.exp-section {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
    border-top: 1px solid var(--border);
}

.exp-sidebar {
    position: fixed;
    left: clamp(16px, 3vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.exp-section.in-view .exp-sidebar {
    opacity: 1;
}

.exp-sidebar-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.exp-sidebar-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-sidebar-lines span {
    width: 18px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
}

.exp-sidebar-lines span:nth-child(2) { width: 12px; }
.exp-sidebar-lines span:nth-child(3) { width: 8px; }

.exp-list {
    display: flex;
    flex-direction: column;
}

.exp-item {
    position: relative;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.exp-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.exp-item:first-child {
    border-top: 1px solid var(--border);
}

.exp-big-num {
    position: absolute;
    right: 0;
    top: 2rem;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.06;
    line-height: 1;
    font-family: var(--font-mono);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.exp-item:hover .exp-big-num {
    opacity: 0.12;
}

[data-theme="light"] .exp-big-num {
    opacity: 0.08;
}

[data-theme="light"] .exp-item:hover .exp-big-num {
    opacity: 0.15;
}

.exp-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.exp-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.exp-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.exp-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.exp-item:hover .exp-title {
    color: var(--accent);
}

.exp-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.exp-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.25rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-tags span {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.exp-item:hover .exp-tags span {
    border-color: var(--border-hover);
}

.exp-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.exp-bullets li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.6;
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

.exp-closing {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.exp-footer-line {
    text-align: center;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 3rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .exp-sidebar { display: none; }

    .exp-big-num {
        font-size: 3rem;
        top: 1.5rem;
    }

    .exp-item { padding: 2.5rem 0; }
}

/* ===== SIGNAL / PHILOSOPHY CAROUSEL ===== */
.signal-section {
    position: relative;
    z-index: 1;
    padding: 100px 0 80px;
    border-top: 1px solid var(--border);
    text-align: center;
    overflow: hidden;
}

.signal-wire {
    position: relative;
    height: 80px;
    margin-bottom: 3rem;
}

.signal-svg {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 50px;
    color: var(--text-muted);
    overflow: visible;
}

.signal-path {
    stroke: var(--border);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.signal-trace {
    opacity: 0.8;
    offset-path: path("M0,20 C80,20 120,8 200,12 S320,32 400,20 S520,4 600,18 S720,28 800,20");
    animation: traceMove 5s ease-in-out infinite;
}

@keyframes traceMove {
    0% { offset-distance: 0%; opacity: 0; }
    5% { opacity: 0.9; }
    95% { opacity: 0.9; }
    100% { offset-distance: 100%; opacity: 0; }
}

.signal-nodes {
    position: absolute;
    top: 12px;
    left: 5%;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
}

.signal-node {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.6s var(--ease-out-expo);
    opacity: 0.5;
}

.signal-node::after {
    content: attr(data-num);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.4s ease;
}

.signal-node.active {
    width: 14px;
    height: 14px;
    background: var(--text-primary);
    opacity: 1;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--text-muted);
}

.signal-node.active::after {
    color: var(--text-primary);
}

.signal-node.active::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    opacity: 0;
    animation: nodePulse 2.5s ease-out infinite;
}

@keyframes nodePulse {
    0% { transform: scale(0.5); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.signal-slides {
    position: relative;
    min-height: 140px;
}

.signal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.signal-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.signal-slide h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.signal-slide p {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}


/* ===== CLIENTS / PARTNERS ===== */
.clients-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.clients-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
}

.clients-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    flex-wrap: wrap;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
    cursor: default;
}

.client-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.client-name {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.client-location {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.clients-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.clients-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.clients-dots .dot.active {
    opacity: 1;
    background: var(--text-primary);
}

/* ===== TECH STACK MARQUEE ===== */
.stack-section {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.stack-marquee {
    overflow: hidden;
    white-space: nowrap;
}

.stack-track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}

.stack-track span {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.stack-track span:hover {
    color: var(--text-primary);
}

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

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 120px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    margin-bottom: 4rem;
}

.footer-name {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.footer-email {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}

.footer-email:hover {
    border-color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-links a i {
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

@keyframes revealLine {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topnav-links,
    .topnav-right .topnav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .topnav-right {
        gap: 1rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-counter {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: left;
        margin-top: 3rem;
        padding: 0 clamp(20px, 5vw, 60px);
    }

    .counter-label {
        margin-left: 0;
    }

    .section-nav {
        display: none;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-eyebrow {
        margin-bottom: 2rem;
    }

    .hero-meta {
        margin-bottom: 2rem;
    }

    .signal-section,
    .site-footer {
        padding: 80px 0 60px;
    }

    .lang-toggle {
        display: none;
    }
}

/* ===== RTL ===== */
[dir="rtl"] body {
    font-family: 'TheYearofHandicrafts', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[dir="rtl"] .hero-headline {
    letter-spacing: 0;
}

[dir="rtl"] .hero-counter {
    right: auto;
    left: clamp(20px, 5vw, 60px);
    text-align: left;
}

[dir="rtl"] .counter-label {
    margin-left: 0;
    margin-right: auto;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .stack-track {
        animation: none;
    }
}

/* ===== PRINT ===== */
@media print {
    .topnav, .grain-overlay, .mobile-menu, .hero-scroll, .hero-counter, .stack-section, #bg-canvas {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
