:root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-card: #ffffff;
    --color-border: #d9d9d9;
    --color-border-strong: #111111;
    --color-text: #111111;
    --color-text-muted: #4f4f4f;
    --color-accent: #111111;
    --color-accent-dim: #111111;
    --color-accent-glow: rgba(17, 17, 17, 0.04);
    --color-warm: #111111;
    --font-sans: 'Fira Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Nunito', 'Inter', sans-serif;
    --nav-height: 86px;
    --section-x: clamp(1.5rem, 6vw, 6rem);
    --section-y: clamp(7rem, 12vh, 9rem);
    --content-max: 1160px;
    --copy-max: 720px;
    --focus-ring: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

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

img,
svg {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.65rem 1rem;
    color: #fff;
    background: var(--color-text);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

a,
button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
    box-shadow: var(--focus-ring);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--nav-height);
    padding: 0.9rem var(--section-x);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-logo img {
    display: block;
    height: 50px;
    width: auto;
}

.nav-logo-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    appearance: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-dots {
    --progress: 0;
    position: fixed;
    top: 50%;
    right: clamp(1rem, 2.4vw, 2.2rem);
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 34px;
    height: clamp(190px, 38vh, 340px);
    padding: 0;
}

.nav-dots::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(17, 17, 17, 0.14);
    border-radius: 999px;
}

.nav-progress-fill {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: calc(100% - 20px);
    transform: translateX(-50%) scaleY(var(--progress));
    transform-origin: top;
    background: var(--color-text);
    border-radius: 999px;
    transition: transform 0.25s ease;
    z-index: 1;
}

.nav-dot {
    appearance: none;
    width: 34px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%);
    border-radius: inherit;
    background: rgba(17, 17, 17, 0.28);
    outline: 4px solid var(--color-bg);
    transition: background 0.3s ease, height 0.3s ease, width 0.3s ease;
}

.nav-dot:hover::before,
.nav-dot:focus-visible::before {
    background: rgba(17, 17, 17, 0.55);
    width: 7px;
    height: 7px;
}

.nav-dot.active {
    transform: none;
}

.nav-dot.active::before {
    background: var(--color-text);
    width: 9px;
    height: 9px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.65rem, 1.45vw, 1.35rem);
    max-width: min(74vw, 920px);
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 0.45rem 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.18rem;
    height: 1px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link[aria-current="page"] {
    opacity: 1;
}

/* Slides Container */
.slides-container {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100svh;
    padding-top: var(--nav-height);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-padding-top: 0;
}

@supports (height: 100dvh) {
    .slides-container {
        height: 100dvh;
    }
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* Slide Base */
.slide {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
    padding: clamp(2rem, 4.5vh, 3.5rem) var(--section-x);
}

@supports (min-height: 100dvh) {
    .slide {
        min-height: calc(100dvh - var(--nav-height));
    }
}

.slide-content {
    max-width: var(--content-max);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin: 0 auto 0 0;
}

.slide-hero .slide-content {
    position: static;
    max-width: 980px;
    align-items: flex-start;
    text-align: left;
}

.hero-brand {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    line-height: 0;
    margin-bottom: 1.1rem;
    text-align: left;
}

.hero-brand img {
    display: block;
    width: clamp(22rem, 42vw, 36rem);
    height: auto;
    margin-left: 0;
    margin-right: auto;
}

.slide-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.slide-heading {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 4.7vw, 4rem);
    font-weight: 680;
    line-height: 1.12;
    margin-bottom: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: 0;
    max-width: 980px;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.highlight {
    color: var(--color-accent);
}

/* Hero Slide */
.slide-hero {
    background: var(--color-bg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.6vw, 4.7rem);
    font-weight: 440;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
    max-width: none;
    width: fit-content;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-align: left;
}

.title-line {
    display: block;
    white-space: nowrap;
}

.title-line.accent {
    color: var(--color-text);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    color: var(--color-text-muted);
    max-width: var(--copy-max);
    line-height: 1.6;
    font-weight: 400;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

/* Problem Slide */
.slide-problem {
    background: var(--color-bg);
}

.problem-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.problem-card {
    min-height: 152px;
    padding: 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-surface);
    transition: all 0.3s ease;
    box-shadow: none;
}

.problem-card:hover {
    border-color: var(--color-border-strong);
    background: #fafafa;
}

.problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1.1rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background: #fff;
}

.problem-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.problem-card:hover .problem-icon {
    border-color: var(--color-border-strong);
    background: #fafafa;
}

.problem-card p {
    font-size: 0.96rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Thesis Slide */
.slide-thesis {
    background: var(--color-bg);
    text-align: left;
}

.thesis-quote {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.15vw, 3.45rem);
    font-weight: 560;
    line-height: 1.24;
    max-width: 900px;
    margin: 0 0 3rem;
    color: var(--color-warm);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.thesis-pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

.pillar {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    background: #fff;
}

.pillar:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

/* Roles Slide */
.slide-roles {
    background: var(--color-bg);
}

.roles-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
    gap: 1rem;
    text-align: left;
}

.role-card {
    min-height: 148px;
    padding: 1.6rem;
    border-radius: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-strong);
}

.role-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.role-card h3 {
    font-size: 1.125rem;
    font-weight: 680;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.role-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* VillageOS Slide */
.slide-villageos {
    background: var(--color-bg);
}

.slide-villageos .slide-content {
    align-items: flex-start;
    text-align: left;
}

.slide-villageos .slide-label,
.slide-villageos .slide-heading,
.slide-villageos .villageos-desc {
    text-align: left;
}

.villageos-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: var(--copy-max);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.villageos-layers {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.layer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.layer-bar {
    height: 48px;
    width: var(--layer-width);
    background: var(--color-text);
    border-radius: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.layer:hover .layer-bar {
    opacity: 1;
}

.layer-label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 150px;
}

/* Pilots Slide */
.slide-pilots {
    background: var(--color-bg);
}

.pilots-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
    gap: 1rem;
    text-align: left;
}

.pilot-card {
    min-height: 320px;
    padding: 1.8rem;
    border-radius: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.pilot-card:hover {
    border-color: var(--color-border-strong);
}

.pilot-letter {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 760;
    color: var(--color-accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.pilot-card h3 {
    font-size: 1.125rem;
    font-weight: 680;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

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

.pilot-card li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-left: 1rem;
    position: relative;
    overflow-wrap: anywhere;
}

.pilot-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Integration Slide */
.slide-integration {
    background: var(--color-bg);
    text-align: left;
}

.integration-chain {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    margin: 2rem 0;
}

.chain-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chain-text {
    padding: 0.7rem 1.2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 560;
    white-space: normal;
    overflow-wrap: anywhere;
}

.chain-arrow {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.integration-note {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Roadmap Slide */
.slide-roadmap {
    background: var(--color-bg);
}

.roadmap-timeline {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    text-align: left;
}

.roadmap-phase {
    display: flex;
    gap: 2rem;
    padding: 1.2rem 0;
}

.phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.phase-line {
    width: 2px;
    flex: 1;
    background: var(--color-border);
    margin-top: 0.5rem;
}

.phase-content h3 {
    font-size: 1.125rem;
    font-weight: 680;
    margin-bottom: 0.5rem;
}

.phase-time {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-left: 0.5rem;
}

.phase-content p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Infrastructure Slide */
.slide-infra {
    background: var(--color-bg);
}

.infra-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: var(--copy-max);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.infra-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
    text-align: left;
}

.infra-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 92px;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-surface);
    transition: all 0.3s ease;
}

.infra-item:hover {
    border-color: var(--color-border-strong);
}

.infra-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.infra-item span {
    font-size: 0.94rem;
    font-weight: 560;
    overflow-wrap: anywhere;
}

/* Audience Slide */
.slide-audience {
    background: var(--color-bg);
    text-align: left;
}

.slide-audience .slide-content {
    max-width: var(--content-max);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide-audience .slide-heading {
    margin-left: 0;
    margin-right: 0;
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
}

.audience-tag {
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    background: #fff;
    text-align: center;
}

.audience-tag:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text);
    background: #fafafa;
}

/* Team Slide */
.slide-team {
    background: var(--color-bg);
    text-align: left;
}

.team-desc {
    max-width: var(--copy-max);
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.team-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    max-width: 820px;
}

.team-signal {
    padding: 0.85rem 1.35rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 560;
}

/* Social Slide */
.slide-social {
    background: var(--color-bg);
    text-align: left;
}

.slide-social .slide-content {
    max-width: var(--content-max);
}

.social-desc {
    max-width: var(--copy-max);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.2rem;
    width: 100%;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.social-link img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* CTA Slide */
.slide-cta {
    background: var(--color-bg);
    text-align: left;
    padding-bottom: clamp(4.5rem, 10vh, 6.5rem);
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2.45rem, 5vw, 4.15rem);
    font-weight: 660;
    line-height: 1.12;
    margin-bottom: 1rem;
    letter-spacing: 0;
    text-wrap: balance;
}

.cta-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
}

.btn-primary {
    background: var(--color-text);
    color: #fff;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-secondary {
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    background: #fff;
}

.btn-secondary:hover {
    border-color: var(--color-border-strong);
    color: #fff;
    background: var(--color-text);
}

.cta-footer {
    position: absolute;
    left: var(--section-x);
    right: var(--section-x);
    bottom: clamp(1.25rem, 3vh, 2rem);
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.cta-footer p {
    font-weight: 400;
}

/* Animations */
.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.no-js .slide-content {
    opacity: 1;
    transform: none;
}

.slide.visible .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
    :root {
        --section-x: 3rem;
        --section-y: 7rem;
    }

    .hero-brand {
        margin-bottom: 0.85rem;
    }

    .problem-grid,
    .roles-grid,
    .pilots-grid,
    .infra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pilot-card {
        min-height: 260px;
    }
}

@media (max-width: 900px) {
    :root {
        --section-x: 2rem;
    }

    .nav-dots {
        display: none;
    }

    .slide-content {
        padding-right: 0;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--nav-height) + 0.35rem);
        right: var(--section-x);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: min(16rem, calc(100vw - (var(--section-x) * 2)));
        max-width: none;
        max-height: calc(100svh - var(--nav-height) - 1.25rem);
        overflow-y: auto;
        padding: 0.55rem;
        border: 1px solid var(--color-border);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 45px rgba(17, 17, 17, 0.08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.45rem);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav.menu-open .nav-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 0.8rem 0.9rem;
        font-size: 0.86rem;
    }

    .nav-link::after {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.55rem;
    }

}

@media (max-width: 768px) {
    :root {
        --nav-height: 66px;
        --section-x: 1.5rem;
        --section-y: 6rem;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-logo img {
        height: 38px;
    }

    .nav-menu {
        right: var(--section-x);
        gap: 0;
        max-width: none;
        width: min(16rem, calc(100vw - (var(--section-x) * 2)));
    }

    .nav-link {
        font-size: 0.86rem;
    }

    .slide {
        min-height: calc(100svh - var(--nav-height));
        padding: clamp(1.5rem, 4vh, 2.5rem) 1.5rem;
        align-items: center;
    }

    .slide-content,
    .slide-audience .slide-content,
    .slide-social .slide-content,
    .slide-hero .slide-content {
        align-items: flex-start;
        text-align: left;
    }

    .slide-heading,
    .slide-label,
    .villageos-desc,
    .infra-desc,
    .team-desc,
    .social-desc,
    .cta-sub {
        text-align: left;
    }

    .thesis-quote {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }

    .thesis-pillars,
    .integration-chain,
    .audience-tags,
    .team-signals,
    .social-links,
    .cta-buttons {
        justify-content: flex-start;
    }

    .audience-tags {
        margin-left: 0;
        margin-right: auto;
    }

    .hero-brand {
        margin-bottom: 0.8rem;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .hero-brand img {
        width: clamp(17rem, 68vw, 25rem);
        margin-left: 0;
        margin-right: auto;
    }

    .hero-title {
        font-size: clamp(2.25rem, 9vw, 3.1rem);
        line-height: 1.02;
        max-width: none;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 32rem;
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }

    .slide-villageos .slide-label,
    .slide-villageos .slide-heading,
    .slide-villageos .villageos-desc {
        text-align: left;
    }

    .villageos-layers {
        text-align: left;
    }

    .slide-villageos .slide-content {
        align-items: flex-start;
        text-align: left;
    }

    .slide-villageos .villageos-desc,
    .slide-villageos .villageos-layers {
        margin-left: 0;
        margin-right: auto;
    }

    .problem-grid,
    .roles-grid,
    .pilots-grid,
    .infra-grid {
        grid-template-columns: 1fr;
    }

    .problem-card,
    .role-card,
    .pilot-card {
        text-align: left;
    }

    .problem-card,
    .role-card,
    .pilot-card,
    .infra-item {
        min-height: auto;
    }

    .infra-item {
        text-align: left;
    }

    .integration-chain {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .chain-arrow {
        transform: rotate(90deg);
        align-self: flex-start;
        margin-left: 1rem;
    }

    .layer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .layer-bar {
        width: var(--layer-width) !important;
        max-width: 100%;
        height: 32px;
    }

}

@media (max-width: 480px) {
    :root {
        --nav-height: 60px;
        --section-x: 1rem;
        --section-y: 5.4rem;
    }

    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-menu {
        right: var(--section-x);
        gap: 0;
        max-width: none;
        width: min(15rem, calc(100vw - (var(--section-x) * 2)));
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .slide {
        padding: clamp(1.25rem, 3.5vh, 2rem) 1rem;
    }

    .slide-heading {
        font-size: 2.1rem;
        line-height: 1.18;
        margin-bottom: 1.35rem;
    }

    .cta-heading {
        font-size: 2.35rem;
    }

    .hero-brand {
        margin-bottom: 0.65rem;
    }

    .hero-brand img {
        width: 16rem;
    }

    .hero-title {
        font-size: 2rem;
        max-width: none;
    }

    .social-desc {
        font-size: 1rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link img {
        width: 42px;
        height: 42px;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .thesis-quote {
        font-size: 2.2rem;
    }

    .slide-label {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .problem-card,
    .role-card,
    .pilot-card,
    .infra-item {
        padding: 1.2rem;
    }

    .layer-label {
        min-width: 0;
        white-space: normal;
        text-align: left;
    }

    .roadmap-phase {
        gap: 1rem;
        padding: 1rem 0;
    }

    .phase-time {
        display: block;
        margin-left: 0;
        margin-top: 0.15rem;
    }

    .audience-tags {
        gap: 0.5rem;
    }

    .audience-tag,
    .team-signal {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        padding: 0.9rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    .slides-container {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .slide-content {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 360px) {
    .hero-brand {
        margin-bottom: 0.55rem;
    }

    .hero-brand img {
        width: 13rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .slide-heading {
        font-size: 1.85rem;
    }

    .cta-heading,
    .thesis-quote {
        font-size: 2rem;
    }
}

@media (max-height: 720px) and (min-width: 769px) {
    :root {
        --nav-height: 64px;
        --section-y: 5.4rem;
    }

    .nav {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .nav-logo img {
        height: 40px;
    }

    .hero-brand {
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 4.45rem;
    }

    .slide-heading {
        font-size: 3.1rem;
        margin-bottom: 1.35rem;
    }

    .problem-card,
    .role-card,
    .pilot-card,
    .infra-item {
        padding: 1.25rem;
        min-height: auto;
    }

    .pilot-letter {
        font-size: 2rem;
    }

    .roadmap-phase {
        padding: 0.8rem 0;
    }
}
