/* =============================
   THEME & TYPOGRAPHY SYSTEM
   Persian Traditional Music Aesthetic
   ============================= */
:root {
    /* Core palette */
    --color-umber: #5a3b27;
    /* deep wood (oud / setar) */
    --color-teal: #356e62;
    /* oxidized copper green */
    --color-teal-strong: #245d52;
    --color-saffron: #d99c23;
    /* warm accent (zar) */
    --color-pomegranate: #a43131;
    /* restrained highlight */
    --color-parchment: #f4ecde;
    /* manuscript paper */
    --color-ivory: #fbf8f3;
    /* elevated surface */
    --color-smoke: #746055;
    /* secondary text */
    --color-shadow: rgba(24, 16, 10, .15);
    --color-shadow-strong: rgba(24, 16, 10, .28);

    /* Legacy mapping (keep existing references working) */
    --primary: var(--color-umber);
    --secondary: var(--color-teal);
    --accent: var(--color-saffron);
    --light: var(--color-parchment);
    --dark: #2c2320;
    --white: #ffffff;

    /* Semantic tokens */
    --bg-page: var(--color-parchment);
    --bg-surface: var(--color-ivory);
    --bg-alt: var(--color-parchment);
    /* was gradient */
    --text-main: #2c2320;
    --text-soft: var(--color-smoke);
    --text-inverse: #ffffff;
    --border-soft: rgba(90, 59, 39, .15);
    --border-strong: rgba(90, 59, 39, .3);
    --focus-ring: 0 0 0 3px rgba(217, 156, 35, .45);

    /* Radius & spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --space-1: .35rem;
    --space-2: .65rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.25rem;
    --space-6: 3.25rem;

    /* Fluid typography scale */
    --font-sans: 'Noto Naskh Arabic', 'Vazirmatn', 'iranyekan', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif-latin: 'Crimson Text', 'Georgia', serif;
    --font-display-fa: 'Vazirmatn', serif;
    /* placeholder for a Nastaliq display if added */
    --fs--2: clamp(.72rem, .69rem + .15vw, .78rem);
    --fs--1: clamp(.84rem, .80rem + .25vw, .95rem);
    --fs-0: clamp(.95rem, .90rem + .35vw, 1.05rem);
    --fs-1: clamp(1.15rem, 1.05rem + .65vw, 1.35rem);
    --fs-2: clamp(1.4rem, 1.25rem + .9vw, 1.9rem);
    --fs-3: clamp(1.9rem, 1.55rem + 1.8vw, 2.7rem);
    --fs-4: clamp(2.4rem, 1.95rem + 2.4vw, 3.4rem);
    --fs-hero: clamp(2.8rem, 2.2rem + 4vw, 4.2rem);

    --transition: .3s cubic-bezier(.4, .2, .2, 1);

    /* Navbar variables */
    --nav-bg: rgba(45, 34, 30, .55);
    --nav-border: rgba(255, 255, 255, .08);
    --nav-bg-scrolled: var(--primary);
    /* flat primary */
    --nav-blur: 14px;

    /* Font variables for Persian */
    --font-fa-body: 'Noto Naskh Arabic', 'Vazirmatn', 'iranyekan', system-ui, sans-serif;
    --font-fa-display: 'Noto Naskh Arabic', 'Vazirmatn', serif;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-0);
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

body.en {
    direction: ltr;
    font-family: var(--font-sans);
}

body:not(.en) {
    font-family: var(--font-fa-body);
}

body:not(.en) h2,
body:not(.en) h3 {
    font-family: var(--font-fa-display);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display-fa);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--primary);
}

body.en h1,
body.en h2,
body.en h3,
body.en h4,
body.en h5,
body.en h6 {
    font-family: var(--font-serif-latin);
    font-weight: 600;
}

h1 {
    font-size: var(--fs-4);
}

h2 {
    font-size: var(--fs-3);
}

h3 {
    font-size: var(--fs-2);
}

h4 {
    font-size: var(--fs-1);
}

h5 {
    font-size: var(--fs-0);
}

h6 {
    font-size: var(--fs--1);
}

p,
li {
    max-width: 70ch;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

button {
    font-family: inherit;
}

::selection {
    background: var(--secondary);
    color: var(--text-inverse);
}

/* Navbar */
.navbar {
    font-family: 'Vazirmatn', serif;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    transition: background-color var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--color-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 16px -4px var(--color-shadow-strong);
    border-bottom-color: transparent;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0 1.5rem;
}

.navbar a {
    color: var(--text-inverse);
    font-weight: 500;
    font-size: 1.05rem;
    padding: .5rem 0;
    position: relative;
    letter-spacing: .5px;
    transition: color var(--transition);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.navbar a:hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    margin-inline-start: -10px;
}

.menu-toggle .bar,
.menu-toggle .bar::before,
.menu-toggle .bar::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform .3s ease, opacity .2s ease;
}

.menu-toggle .bar {
    top: 50%;
}

.menu-toggle .bar::before {
    top: -8px;
}

.menu-toggle .bar::after {
    top: 8px;
}

.navbar.open .menu-toggle .bar {
    transform: translateX(-50%) rotate(45deg);
}

.navbar.open .menu-toggle .bar::before {
    transform: translateX(-50%) rotate(-90deg);
    top: 0;
}

.navbar.open .menu-toggle .bar::after {
    opacity: 0;
    transform: translateX(-50%);
}

.lang-toggle {
    font-family: 'Vazirmatn', serif;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    padding: .5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.lang-toggle:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-inverse);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* stretch over entire hero */
    background: rgba(0, 0, 0, .3);
    z-index: -1;
    /* sits above slides (-2) and below content (>=0/1) */
    pointer-events: none;
    /* don't block interactions */
}

.hero-content {
    font-family: 'Vazirmatn', serif;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero h1 {
    font-family: 'Vazirmatn', serif;
    font-size: var(--fs-hero);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.hero-subtitle {
    font-family: 'Vazirmatn', serif;
    font-size: var(--fs-1);
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-ivory) !important;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all var(--transition);
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Sections */
.section {
    padding: 5rem 5%;
    padding-bottom: 2rem;
    padding-top: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: var(--fs-2);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Bio */
.bio-section {
    background: var(--bg-alt);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--color-shadow);
    margin-bottom: 2rem;
}

.bio-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.bio-image {
    flex: 1;
    text-align: center;
}

.bio-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: 0 14px 34px -6px var(--color-shadow);
}

.bio-text {
    flex: 2;
}

.bio-text h3 {
    font-size: var(--fs-1);
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.bio-text p {
    font-size: var(--fs-0);
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: .9rem;
}

.bio-btn,
.readmore-btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--text-inverse);
    padding: .65rem 1.4rem;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    margin-top: .75rem;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: .5px;
    box-shadow: 0 6px 18px -6px var(--color-shadow);
}

.readmore-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -6px var(--color-shadow-strong);
}

.readmore-btn:active {
    transform: translateY(-1px);
}

.bio-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -6px var(--color-shadow-strong);
}

.bio-btn:active {
    transform: translateY(-1px);
}

/* Classes */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.class-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(107, 142, 94, .2);
    cursor: pointer;
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--color-shadow-strong);
}

.class-header {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, .15);
}

.class-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.class-content {
    padding: 1.5rem;
}

.class-desc {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.class-img {
    height: 250px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    border-radius: 20px 20px 0 0;
}

.class-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: all var(--transition);
    position: relative;
    border: 1px solid rgba(107, 142, 94, .2);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--color-shadow-strong);
    border-color: var(--primary);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--text-inverse);
    padding: .5rem;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    min-width: 60px;
}

.event-day {
    display: block;
}

.event-month {
    font-size: .9rem;
}

.event-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .8rem;
}

.event-desc {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.event-location,
.event-time {
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
}

.event-location i,
.event-time i {
    margin-left: .5rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: all var(--transition);
    position: relative;
    border: 1px solid rgba(212, 165, 116, .3);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--color-shadow-strong);
    border-color: var(--accent);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--text-inverse);
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .8rem;
}

.news-desc {
    color: var(--text-soft);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-date {
    font-size: .9rem;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-left: .5rem;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: .5rem;
    transition: all var(--transition);
}

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

.news-link i {
    margin-right: .5rem;
}

/* Albums */
albums-grid {
    display: grid;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.album-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: all var(--transition);
    position: relative;
    border: 1px solid rgba(212, 165, 116, .3);
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--color-shadow-strong);
    border-color: var(--accent);
}

.album-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .8rem;
}

.album-desc {
    font-size: .95rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.album-year {
    font-size: .9rem;
    font-weight: 500;
}

.album-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--text-inverse);
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
}

/* Research */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.research-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--color-shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(107, 142, 94, .2);
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--color-shadow-strong);
    border-color: var(--primary);
}

.research-img {
    height: 250px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    border-radius: 20px 20px 0 0;
}

.research-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.research-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.research-desc {
    color: var(--text-soft);
    flex-grow: 1;
}

/* Quote */
.quote-section {
    background: var(--bg-surface);
    border-radius: 30px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid var(--border-soft);
}

.quote-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .1;
    z-index: 0;
    border-radius: 30px;
}

.quote-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: var(--fs-1);
    line-height: 2;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
}

.quote-text:lang(en) {
    font-family: 'Georgia', serif;
    font-style: normal;
    font-weight: 400;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    opacity: .35;
}

.quote-text::before {
    top: -20px;
    right: -20px;
}

.quote-text::after {
    bottom: -40px;
    left: -20px;
}

.quote-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--text-inverse);
    padding: 3rem 5%;
    box-shadow: 0 -6px 22px -8px var(--color-shadow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: var(--fs-1);
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.footer-section p,
.footer-section a {
    color: #ddd;
    margin-bottom: .65rem;
    display: block;
    text-decoration: none;
    transition: color var(--transition);
    font-size: var(--fs--1);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

copyright {
    display: block;
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .9rem;
    color: var(--color-ivory);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(3px);
}

.modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 5vh auto;
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 50px -10px var(--color-shadow-strong);
    overflow-y: auto;
    max-height: 90vh;
    border: 1px solid var(--border-soft);
    /* Keep layout flexible so the close button can align to the top-right and stay sticky */
    display: flex;
    flex-direction: column;
    /* Hide scrollbars while preserving scrollability */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.modal-dialog::-webkit-scrollbar { /* Chrome/Safari/Edge */
    width: 0;
    height: 0;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.modal-text {
    line-height: 1.9;
    margin-bottom: 1rem;
    color: var(--text-soft);
    font-size: 1.05rem;
    white-space: pre-line;
}

.modal-close {
    /* Keep the close button always visible at the top while content scrolls */
    position: sticky;
    top: 12px;
    align-self: flex-end;
    z-index: 2;
    margin-bottom: .5rem;

    /* Visual style */
    /* Make container invisible, keep large hit area */
    background: transparent;
    color: transparent; /* hide text label; icon shown via <i> */
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    position: sticky; /* ensure positioned for pseudo-element stacking */
}

/* no visual container/halo; icon handles contrast */

.modal-close:hover {
    transform: translateY(-1px) scale(1.03);
}

/* removed hover halo */

.modal-close:active {
    transform: translateY(0) scale(.98);
}

.modal-close i {
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
    transition: color var(--transition), transform var(--transition), opacity var(--transition), filter var(--transition);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)) drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

.modal-close:hover i {
    color: #fff;
    opacity: 1;
    transform: translateZ(0);
}

.modal-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 156, 35, .35);
}

/* Press card override */
.press-card {
    border: 1px solid var(--border-strong);
}

.press-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--text-inverse);
    padding: .35rem .9rem;
    border-radius: 18px;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px var(--color-shadow);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }

    .navbar {
        gap: .5rem;
    }

    .navbar ul {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--primary);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: .75rem 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        box-shadow: 0 10px 25px var(--color-shadow-strong);
        border-radius: 0 0 16px 16px;
    }

    .navbar.open ul {
        display: flex;
        max-height: 60vh;
    }

    .navbar li {
        margin: .25rem 0;
    }

    .navbar a {
        padding: .75rem .5rem;
        font-size: 1rem;
    }

    .lang-toggle {
        margin-inline-start: auto;
        z-index: 1;
    }

    .hero {
        margin-top: .25rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 1.8rem + 4vw, 3rem);
    }

    .hero-subtitle {
        font-size: var(--fs-0);
    }

    .section {
        padding: 3rem 3%;
    }
    /* Avoid overlap on small screens */
    .modal-dialog {
        padding-top: 3.25rem; /* create space for sticky close button */
    }

    .modal-close {
        top: 8px;
        width: 40px;
        height: 40px;
    }

    .modal-close i {
        font-size: 20px;
    }

    .bio-content {
        flex-direction: column;
    }

    .quote-text {
        font-size: var(--fs-0);
    }
}