@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-0FDFF, U+FE70-FEFF, U+200C, U+0030-0039, U+0020-007E;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-0FDFF, U+FE70-FEFF, U+200C, U+0030-0039, U+0020-007E;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-0FDFF, U+FE70-FEFF, U+200C, U+0030-0039, U+0020-007E;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-0FDFF, U+FE70-FEFF, U+200C, U+0030-0039, U+0020-007E;
}

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

:root {
    --accent: #00B6F0;
    --accent-dark: #02527f;
    --accent-ink: #06121a;
    --accent-glow: rgba(0, 182, 240, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-sans: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Vazirmatn", sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.2s var(--ease-std);
    --t-swap: 0.45s var(--ease-expo);
    --t-slow: 0.65s var(--ease-expo);
}

[data-theme="light"] {
    --bg: #f6eef2;
    --bg2: #fffaf5;
    --surface: rgba(255, 250, 245, 0.88);
    --surface-solid: #ffffff;
    --border: rgba(20, 20, 31, 0.13);
    --border-strong: rgba(20, 20, 31, 0.28);
    --text: #14141f;
    --text2: #3d3d52;
    --muted: #52526b;
    --card: rgba(255, 255, 255, 0.82);
    --card-hover: #ffffff;
    --shadow: rgba(20, 20, 31, 0.09);
    --nav-bg: rgba(246, 238, 242, 0.82);
    --hero-veil: rgba(246, 238, 242, 0.22);
    --hero-scrim-top: rgba(12, 14, 24, 0.42);
    --hero-scrim-mid: rgba(12, 14, 24, 0.36);
    --gate-bg: #f6eef2;
    --menu-bg: #fffaf5;
    --accent-dark: #02527f;
    --error: #b91c1c;
    --success: #15803d;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0a0a14;
    --bg2: #10101f;
    --surface: rgba(18, 18, 31, 0.84);
    --surface-solid: #12121f;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.28);
    --text: #e8ecf5;
    --text2: #b9c0d4;
    --muted: #949bb3;
    --card: rgba(18, 18, 31, 0.84);
    --card-hover: #171728;
    --shadow: rgba(0, 0, 0, 0.45);
    --nav-bg: rgba(10, 10, 20, 0.84);
    --hero-veil: rgba(10, 10, 20, 0.34);
    --hero-scrim-top: rgba(8, 9, 18, 0.52);
    --hero-scrim-mid: rgba(8, 9, 18, 0.44);
    --gate-bg: #0a0a14;
    --menu-bg: #0c0c18;
    --accent-dark: #00B6F0;
    --error: #f87171;
    --success: #4ade80;

    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

html[lang="fa"] body {
    font-family: "Vazirmatn", var(--font-sans);
}

[data-theme="dark"] body {
    letter-spacing: 0.005em;
}

html[lang="fa"] [data-theme="dark"] body,
html[lang="fa"] body {
    letter-spacing: 0;
}

.serif-i {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

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

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -4rem;
    inset-inline-start: 1.25rem;
    z-index: 9999;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--t-fast);
}

.skip-link:focus {
    top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2.5px solid var(--accent);
    outline-offset: 3px;
}

main,
footer,
.site-header {
    position: relative;
    z-index: 2;
}

.section-band {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: 1280px;
    margin: 0 auto;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 1.5rem 3rem;
    align-items: end;
    margin-bottom: 3rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.section-head-left {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.section-index {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    text-wrap: balance;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 58ch;
    justify-self: end;
    text-align: end;
}

.glass-surface {
    background: var(--surface);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px var(--shadow);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    text-shadow: none;
    overflow: hidden;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.btn-pill,
.btn-primary,
.btn-pill:hover,
.btn-primary:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-ghost,
.btn-ghost:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-swap {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    line-height: 1.25;
}

.btn-swap-primary,
.btn-swap-clone {
    display: inline-block;
    transition: transform var(--t-swap);
}

.btn-swap-clone {
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    font-family: var(--font-serif);
    font-style: italic;
}

.btn:hover .btn-swap-primary {
    transform: translateY(-115%);
}

.btn:hover .btn-swap-clone {
    transform: translateY(-100%);
}

.split-link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.25rem;
    text-decoration: none;
    transition: color var(--t-fast);
}

.split-link:hover {
    color: var(--text);
}

.split-link-bar {
    position: relative;
    width: 100%;
    height: 1px;
    margin-top: 0.3rem;
    overflow: hidden;
}

.split-link-bar span {
    position: absolute;
    top: 0;
    width: 50%;
    height: 1px;
    background: currentcolor;
    transition: transform 0.25s ease-out;
}

.split-link-bar span:first-child {
    left: 0;
}

.split-link-bar span:last-child {
    right: 0;
}

.split-link:hover .split-link-bar span:first-child {
    transform: translateX(-105%);
}

.split-link:hover .split-link-bar span:last-child {
    transform: translateX(105%);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--t-fast);
}

.arrow-link-glyph {
    display: inline-block;
    transition: transform var(--t-swap);
}

.arrow-link:hover {
    color: var(--accent-dark);
}

.arrow-link:hover .arrow-link-glyph {
    transform: translateX(4px);
}

[dir="rtl"] .arrow-link:hover .arrow-link-glyph {
    transform: translateX(-4px);
}

.reveal,
.float-in-left,
.float-in-right {
    opacity: 0;
    transition: opacity 0.65s var(--ease-expo), transform 0.65s var(--ease-expo);
}

.reveal {
    transform: translateY(18px);
}

.float-in-left {
    transform: translateX(-18px);
}

.float-in-right {
    transform: translateX(18px);
}

[dir="rtl"] .float-in-left {
    transform: translateX(18px);
}

[dir="rtl"] .float-in-right {
    transform: translateX(-18px);
}

.reveal.visible,
.float-in-left.visible,
.float-in-right.visible {
    opacity: 1;
    transform: none;
}

.gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--gate-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.15rem;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: opacity 0.55s var(--ease-expo), visibility 0.55s var(--ease-expo);
}

.gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-seen .gate {
    display: none;
}

.gate-stage {
    perspective: 28rem;
    margin-bottom: 0.5rem;
}

.gate-cube {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    animation: gateSpin 6s cubic-bezier(0.34, 1.35, 0.64, 1) infinite;
}

.gate-cube span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    backface-visibility: visible;
}

.gate-cube span:nth-child(1) { transform: rotateY(0deg) translateZ(2.25rem); }
.gate-cube span:nth-child(2) { transform: rotateY(-90deg) translateZ(2.25rem); }
.gate-cube span:nth-child(3) { transform: rotateX(-90deg) rotate(-90deg) translateZ(2.25rem); }
.gate-cube span:nth-child(4) { transform: rotateX(180deg) rotate(-90deg) translateZ(2.25rem); }
.gate-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(2.25rem); }
.gate-cube span:nth-child(6) { transform: rotateY(90deg) rotate(90deg) translateZ(2.25rem); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@keyframes gateSpin {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    20% { transform: rotateY(90deg) rotateX(0deg); }
    40% { transform: rotateY(90deg) rotateX(0deg) rotate(90deg); }
    60% { transform: rotateY(180deg) rotateX(-90deg) rotate(90deg); }
    80% { transform: rotateY(270deg) rotateX(-90deg) rotate(90deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

.gate-brand {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.28em;
    padding-inline-start: 0.28em;
    color: var(--text);
}

.gate-eyebrow {
    color: var(--muted);
    font-size: 0.9rem;
}

.gate-title {
    font-size: clamp(2.2rem, 6vw, 4.1rem);
    line-height: 1.06;
    text-wrap: balance;
}

.gate-sub {
    max-width: 54ch;
    color: var(--text2);
    font-size: 0.98rem;
}

.gate-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.4rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem clamp(1.1rem, 3.5vw, 2.5rem);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.35s var(--ease-expo), background 0.4s ease;
}

.site-header.nav-hidden {
    transform: translateY(-100%);
}

.site-header.nav-hidden:focus-within {
    transform: none;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.025em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo .serif-i {
    color: var(--accent-dark);
}

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

.nav-center a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: var(--text2);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 0.25rem 0.1rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--t-fast);
}

.nav-link-text,
.nav-link-hover {
    display: block;
    transition: transform var(--t-swap), opacity var(--t-swap);
}

.nav-link-hover {
    position: absolute;
    inset-inline-start: 0.1rem;
    top: 100%;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text);
    opacity: 0;
}

.nav-center a:hover .nav-link-text,
.nav-center a:focus-visible .nav-link-text {
    transform: translateY(-115%);
}

.nav-center a:hover .nav-link-hover,
.nav-center a:focus-visible .nav-link-hover {
    transform: translateY(-100%);
    opacity: 1;
}

.nav-center a.active {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--accent);
}

.nav-center a.active .nav-link-text {
    font-family: var(--font-serif);
    font-style: italic;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 40px;
    min-width: 40px;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.nav-icon-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--text);
    transform: scale(0.01);
    opacity: 0;
    transition: transform 0.35s var(--ease-expo), opacity 0.25s ease;
    z-index: 0;
}

.nav-icon-btn > * {
    position: relative;
    z-index: 1;
}

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

.nav-icon-btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

.nav-icon-btn.is-on {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.nav-icon-btn.is-on:hover {
    color: var(--bg);
    border-color: var(--text);
}

.nav-icon-btn .music-state {
    font-size: 0.78rem;
}

.menu-dots {
    width: 40px;
    padding: 0;
    letter-spacing: 0.08em;
}

.fullscreen-menu {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--menu-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(4.5rem, 8vh, 6rem) clamp(1.5rem, 6vw, 5.5rem) 2.5rem;
    overflow-y: auto;
    animation: menuIn 0.35s var(--ease-expo);
}

.fullscreen-menu[hidden] {
    display: none;
}

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

.menu-close {
    position: fixed;
    top: 0.9rem;
    inset-inline-end: clamp(1.1rem, 3.5vw, 2.5rem);
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.menu-close:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.menu-grid {
    max-width: 1120px;
    width: 100%;
    margin: auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
    gap: 2.5rem 4rem;
    align-items: end;
}

.menu-list {
    list-style: none;
    width: 100%;
}

.menu-list a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    padding: 0.95rem 0;
    color: var(--text);
    text-decoration: none;
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 600;
    line-height: 1.1;
    border-bottom: 1px solid var(--border);
    transition: color var(--t-fast), padding-inline-start var(--t-swap);
}

.menu-list a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--t-swap);
}

.menu-list a:hover,
.menu-list a.active {
    color: var(--accent-dark);
    padding-inline-start: 0.75rem;
}

.menu-list a:hover::after,
.menu-list a.active::after {
    width: 100%;
}

.menu-list a:hover .menu-label,
.menu-list a.active .menu-label {
    font-family: var(--font-serif);
    font-style: italic;
}

.menu-num {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: var(--font-sans);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    min-width: 1.75rem;
}

.menu-aside {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.menu-aside-name {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text);
}

.menu-aside-note {
    color: var(--text2);
    font-size: 0.95rem;
}

.menu-foot {
    max-width: 1120px;
    margin: 2rem 0 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.menu-foot a {
    color: var(--text2);
    text-decoration: none;
    transition: color var(--t-fast);
}

.menu-foot a::before,
.menu-socials a::before {
    content: "⮡ ";
    color: var(--accent-dark);
}

.menu-foot a:hover {
    color: var(--accent-dark);
}

.menu-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.hero {
    position: relative;
    height: 300vh;
    height: 300svh;
    padding: 0;
    max-width: none;
}

.hero-frames {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 4rem;
}

.hero-frames picture {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.32s linear;
    will-change: transform, opacity;
}

.hero-frame.is-active {
    opacity: 1;
}

.hero-frames::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        var(--hero-scrim-top) 0%,
        var(--hero-scrim-mid) 44%,
        rgba(12, 14, 24, 0.25) 72%,
        var(--bg) 97%
    );
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hero-copy {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 0.75rem;
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
}

.hero-kicker-rule {
    width: 2.4rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.8rem, 8.2vw, 6.4rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    max-width: 14ch;
    text-wrap: balance;
}

.hero-unexpected {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-editorial-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-top: clamp(1.5rem, 3.5vh, 2.75rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-meta-copy {
    max-width: 52ch;
}

.hero-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.hero-sub {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.hero-cta .btn-ghost,
.hero-cta .btn-ghost:hover {
    background: rgba(12, 16, 28, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .hero-cta .btn-ghost,
[data-theme="light"] .hero-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    border-color: rgba(20, 20, 31, 0.22);
}

.hero-bottom {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem clamp(1.25rem, 4vw, 3rem) 1.15rem;
    color: var(--text);
    font-size: 0.85rem;
}

.hero-bottom-left {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    justify-self: start;
}

.hero-frame-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.scroll-hint {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.hero-world-link {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid var(--border-strong);
    transition: color var(--t-fast), border-color var(--t-fast);
}

.world-orb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: var(--surface-solid);
    color: var(--text);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-swap);
}

.hero-world-link:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

.hero-world-link:hover .world-orb {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    transform: rotate(35deg);
}

.hero-bottom-cr {
    justify-self: end;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.about-section {
    position: relative;
    padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
    max-width: none;
}

.about-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.about-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.about-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, transparent 28%, transparent 72%, var(--bg) 100%);
}

.about-spread {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(2rem, 4.5vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    gap: 2.5rem 3.5rem;
    align-items: start;
}

.about-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent-dark);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-body .section-kicker {
    margin-bottom: 0.1rem;
}

.about-body .section-title {
    margin-bottom: 0.5rem;
}

.about-body p {
    color: var(--text2);
    max-width: 62ch;
}

.arsenal {
    border-top: 1px solid var(--border);
    margin-bottom: 3.5rem;
}

.arsenal-row {
    display: grid;
    grid-template-columns: 170px 140px 1fr 56px;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--t-fast);
}

.arsenal-row:hover {
    background: var(--surface);
}

.arsenal-name {
    font-weight: 700;
    font-size: 1rem;
}

.arsenal-level {
    font-size: 0.9rem;
    color: var(--muted);
    font-family: var(--font-serif);
    font-style: italic;
}

.arsenal-bar {
    height: 3px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.arsenal-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.85s var(--ease-expo);
}

.arsenal-pct {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: end;
    color: var(--text2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
}

.skill-column {
    min-width: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.skill-group-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.skill-tags {
    color: var(--text2);
    font-size: 0.92rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.skill-sep {
    color: var(--muted);
    margin: 0 0.2rem;
}

.stack-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2.25rem;
}

.stack-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.stack-filter:hover {
    border-color: var(--text);
    color: var(--text);
}

.stack-filter.is-active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.stack-wrap {
    width: 100%;
}

.stack {
    display: grid;
    perspective: 1400px;
}

.stack-card {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.45s var(--ease-expo), transform 0.5s var(--ease-expo), visibility 0s linear 0.45s;
}

.stack-card.is-active,
.stack-card.is-next {
    visibility: visible;
    transition-delay: 0s;
}

.stack-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    z-index: 2;
}

.stack-card.is-next {
    opacity: 0.35;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
    z-index: 1;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 18px 50px var(--shadow);
    transition: border-color var(--t-fast);
}

.project-card:hover {
    border-color: var(--accent-dark);
}

.project-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg2);
}

.project-image picture,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-expo);
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.project-meta-top {
    font-size: 0.82rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.project-name {
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 0.45rem 0 0.75rem;
    color: var(--text);
}

.project-desc {
    color: var(--text2);
    font-size: 0.96rem;
    line-height: 1.65;
}

.project-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.project-tags {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.project-tag-sep {
    margin: 0 0.2rem;
}

.project-cta-inline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
}

.stack-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
}

.stack-controls {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.stack-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface-solid);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.stack-arrow:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: scale(1.05);
}

.stack-counter {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 3.5rem;
    text-align: center;
}

.project-index-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.project-index-btn {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 0;
    width: 100%;
    text-align: start;
    background: none;
    border: 0;
    padding: 0.55rem 0.25rem;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.project-index-btn[hidden] {
    display: none;
}

.project-index-btn:hover {
    color: var(--text);
}

.project-index-btn.is-current {
    color: var(--text);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.project-index-num {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.project-index-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journey-teaser {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem 3rem;
    padding: clamp(2rem, 4vw, 3.25rem);
}

.journey-teaser-years {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--accent-dark);
    font-variant-numeric: tabular-nums;
}

.journey-teaser p {
    color: var(--text2);
    max-width: 48ch;
}

.page-head {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(6.5rem, 11vw, 8.5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.page-head .section-kicker {
    margin-bottom: 0.7rem;
}

.page-head .section-subtitle {
    text-align: start;
    justify-self: start;
    margin-top: 0.85rem;
}

.page-head .reveal {
    opacity: 1;
    transform: none;
}

.page-head + .section-band {
    padding-top: 1.5rem;
}

.timeline {
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.timeline-year {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--accent-dark);
    font-variant-numeric: tabular-nums;
}

.timeline-item h2 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.timeline-item p {
    color: var(--text2);
    max-width: 62ch;
}

.timeline-tags {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.back-home {
    margin-top: 2.75rem;
}

.world-stage {
    text-align: center;
}

.world-stage .section-kicker {
    justify-content: center;
}

.world-stage .section-subtitle {
    margin-inline: auto;
    text-align: center;
}

.globe-wrap {
    position: relative;
    max-width: 480px;
    margin: 0.75rem auto 2rem;
}

#globeCanvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    cursor: grab;
    touch-action: pan-y;
    display: block;
}

#globeCanvas:active {
    cursor: grabbing;
}

.globe-hint {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.35rem;
}

.world-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
    margin-top: 2.5rem;
    text-align: start;
}

.world-tile {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    background: var(--surface-solid);
    box-shadow: 0 12px 32px var(--shadow);
    transition: transform var(--t-swap), border-color var(--t-fast);
}

.world-tile:nth-child(even) {
    transform: translateY(1.75rem);
}

.world-tile:hover {
    transform: translateY(-4px);
    border-color: var(--accent-dark);
}

.world-tile:nth-child(even):hover {
    transform: translateY(calc(1.75rem - 4px));
}

.world-tile img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s var(--ease-expo);
}

.world-tile:hover img {
    transform: scale(1.03);
}

.world-tile-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.98rem;
}

.world-cta {
    margin-top: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.contact-info > p {
    color: var(--text2);
    max-width: 48ch;
}

.contact-links-vertical {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--t-fast), padding-inline-start var(--t-fast);
}

a.contact-link-item:hover {
    border-bottom-color: var(--accent-dark);
    padding-inline-start: 0.45rem;
}

.contact-link-text {
    min-width: 0;
}

.contact-link-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.contact-link-text p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    unicode-bidi: plaintext;
    overflow-wrap: anywhere;
}

.contact-link-arrow {
    color: var(--muted);
    transition: transform var(--t-fast), color var(--t-fast);
}

a.contact-link-item:hover .contact-link-arrow {
    color: var(--accent-dark);
    transform: translateX(3px);
}

[dir="rtl"] a.contact-link-item:hover .contact-link-arrow {
    transform: translateX(-3px);
}

.contact-form {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    color: var(--text2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.95rem;
    font: inherit;
    color: var(--text);
    transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-dark);
}

.form-group select option {
    background-color: var(--surface-solid);
    color: var(--text);
}

.form-group input[type="email"] {
    direction: ltr;
    text-align: start;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-block {
    width: 100%;
}

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

#formStatus {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--muted);
    min-height: 1.3em;
}

#formStatus.is-error {
    color: var(--error);
}

#formStatus.is-ok {
    color: var(--success);
}

footer {
    border-top: 1px solid var(--border);
    padding: 2.25rem clamp(1.25rem, 4vw, 3rem);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-socials a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--t-fast);
}

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

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

.error-card {
    max-width: 640px;
    margin: 2rem auto 4rem;
    padding: 3rem 2rem;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 11vw, 7rem);
    line-height: 1;
    color: var(--accent-dark);
    margin-bottom: 1.25rem;
}

.back-to-top {
    position: fixed;
    bottom: 1.4rem;
    inset-inline-end: 1.4rem;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface-solid);
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: opacity 0.3s ease, visibility 0.3s ease, background var(--t-fast), color var(--t-fast);
}

.back-to-top:hover {
    background: var(--text);
    color: var(--bg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.noscript-msg {
    padding: 1rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
    max-width: 600px;
    margin: 1rem auto;
}

html[lang="fa"] .serif-i,
html[lang="fa"] .nav-link-hover,
html[lang="fa"] .nav-center a.active .nav-link-text,
html[lang="fa"] .menu-list a:hover .menu-label,
html[lang="fa"] .menu-list a.active .menu-label,
html[lang="fa"] .arsenal-level,
html[lang="fa"] .btn-swap-clone {
    font-family: "Vazirmatn", var(--font-sans);
    font-style: normal;
}

html[lang="fa"] .hero-title {
    line-height: 1.18;
}

html[lang="fa"] .section-kicker,
html[lang="fa"] .section-title,
html[lang="fa"] .hero-title,
html[lang="fa"] .hero-unexpected,
html[lang="fa"] .journey-teaser-years,
html[lang="fa"] .nav-logo,
html[lang="fa"] .scroll-hint {
    letter-spacing: 0;
}

.no-js .reveal,
.no-js .float-in-left,
.no-js .float-in-right {
    opacity: 1;
    transform: none;
}

.no-js .gate {
    display: none;
}

.no-js .arsenal-fill[data-pct="20"] { width: 20%; }
.no-js .arsenal-fill[data-pct="50"] { width: 50%; }
.no-js .arsenal-fill[data-pct="60"] { width: 60%; }
.no-js .arsenal-fill[data-pct="70"] { width: 70%; }
.no-js .arsenal-fill[data-pct="80"] { width: 80%; }
.no-js .arsenal-fill[data-pct="100"] { width: 100%; }

@media (max-width: 1024px) {
    .section-head,
    .about-spread,
    .project-card,
    .contact-grid,
    .journey-teaser,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        text-align: start;
        justify-self: start;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-index-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nav-center {
        display: none;
    }

    .nav-icon-btn .music-state {
        display: none;
    }

    .nav-icon-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .hero-bottom {
        grid-template-columns: auto 1fr;
    }

    .hero-bottom-cr {
        display: none;
    }

    .hero-world-link {
        justify-self: end;
    }

    .arsenal-row {
        grid-template-columns: 115px 1fr 48px;
        gap: 0.6rem 1rem;
    }

    .arsenal-level {
        grid-column: 1 / -1;
        order: 3;
    }

    .arsenal-bar {
        grid-column: 2;
    }

    .skills-grid,
    .world-tiles,
    .project-index-strip {
        grid-template-columns: 1fr;
    }

    .world-tile:nth-child(even),
    .world-tile:nth-child(even):hover {
        transform: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 720px), (pointer: coarse) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-frames {
        position: relative;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }
}

@media (max-height: 700px) {
    .hero-frames {
        padding-top: 3.7rem;
    }

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

    .hero-title {
        font-size: clamp(2.1rem, 6.4vw, 4.1rem);
    }

    .hero-editorial-row {
        margin-top: 1rem;
        padding-top: 0.85rem;
    }

    .hero-cta .btn {
        padding: 0.7rem 1.45rem;
    }

    .hero-bottom {
        padding: 0.6rem clamp(1.25rem, 4vw, 3rem) 0.8rem;
    }
}

@media (max-height: 540px) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-frames {
        position: relative;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .menu-list a {
        font-size: 1.6rem;
    }
}

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

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

    .reveal,
    .float-in-left,
    .float-in-right {
        opacity: 1;
        transform: none;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-frames {
        position: relative;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-frame {
        transform: none !important;
    }

    .gate-cube {
        animation: none;
    }
}

@media (prefers-reduced-data: reduce) {
    .hero-frame,
    .stack-card {
        animation: none !important;
        transition: none !important;
    }

    .hero-grain {
        display: none !important;
    }

    .reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
