:root {
    --bg: #F5F3EE;
    --bg-surface: #FAF9F6;
    --bg-alt: #EDEBE6;
    --ink: #1A1814;
    --ink-secondary: #57534E;
    --ink-muted: #78716C;
    --ink-faint: #A8A29E;
    --accent: #B45309;
    --border: rgba(26, 24, 20, 0.06);
    --border-strong: rgba(26, 24, 20, 0.12);

    /* Indian tricolor */
    --saffron: #FF9933;
    --white-tri: #FFFFFF;
    --green: #138808;

    /* Typography */
    --font-serif: 'Noto Serif Malayalam', Georgia, serif;
    --font-sans: 'Noto Sans Malayalam', -apple-system, sans-serif;
    --font-ui: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-section: clamp(72px, 10vh, 120px);

    /* Layout */
    --max-width: 1320px;
    --content-width: 640px;
    --gutter: clamp(20px, 4vw, 64px);

    /* Motion */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: auto;
    scroll-padding-top: 80px;
}

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

body:not(.is-loaded) #main-content {
    opacity: 0;
}

body.is-loaded #main-content {
    opacity: 1;
    transition: opacity 0.6s var(--ease-out);
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-smooth), visibility 0s 0.6s;
}

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

.loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader__bar {
    width: 52px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg,
            var(--saffron) 0%,
            var(--white-tri) 35%,
            var(--green) 70%,
            var(--saffron) 100%);
    background-size: 200% 100%;
    animation: loaderTricolor 2.4s ease-in-out infinite;
}

@keyframes loaderTricolor {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.loader__text {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

@media (max-width: 1024px) {
    .cursor {
        display: none;
    }
}

.cursor__dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.cursor__circle {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s var(--ease-out);
    z-index: 1;
}

.cursor--hover .cursor__dot {
    width: 0;
    height: 0;
}

.cursor--hover .cursor__circle {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.5);
}

/* NAVBAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(20px, 3vh, 32px) 0;
    transition: transform 0.4s var(--ease-smooth), background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}

.nav--scrolled {
    background: rgba(245, 243, 238, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: clamp(16px, 2.5vh, 24px) 0;
}

.nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.nav__logo:hover {
    opacity: 0.7;
}

.nav__logo-img {
    width: clamp(36px, 5vw, 48px);
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(26, 24, 20, 0.06));
}

/* Center Title */
.nav__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav--scrolled .nav__title {
    opacity: 0.6;
    color: var(--ink);
}

@media (max-width: 640px) {
    .nav__title {
        display: block;
        opacity: 1;
    }
}

/* RIGHT SECTION */
.nav__right {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
    z-index: 10;
}

/* VISITOR COUNTER BADGE */
.nav__visitor-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all 0.3s var(--ease-out);
    cursor: default;
    color: var(--ink);
}

.nav--scrolled .nav__visitor-badge {
    background: rgba(26, 24, 20, 0.04);
    border: 1px solid var(--border);
}

.nav__visitor-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav--scrolled .nav__visitor-badge:hover {
    background: rgba(26, 24, 20, 0.06);
}

.nav__visitor-badge svg {
    opacity: 0.7;
    stroke: var(--ink);
    transition: stroke 0.3s ease;
}

.nav--scrolled .nav__visitor-badge svg {
    stroke: var(--ink-secondary);
}

.nav__visitor-count {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
    transition: color 0.3s ease;
}

.nav--scrolled .nav__visitor-count {
    color: var(--ink);
}

/* Hide visitor badge on very small screens */
@media (max-width: 480px) {
    .nav__visitor-badge {
        display: none;
    }
}

/* Menu Toggle */
.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out);
}

.nav__toggle:hover {
    transform: scale(1.05);
}

.nav__toggle-line {
    width: 24px;
    height: 2px;
    background: var(--white-tri);
    transition: all 0.4s var(--ease-smooth);
    transform-origin: center;
    background: var(--ink);
}

.nav--scrolled .nav__toggle-line {
    background: var(--ink);
}

.nav__toggle.active .nav__toggle-line:first-child {
    transform: rotate(45deg) translateY(4px);
}

.nav__toggle.active .nav__toggle-line:last-child {
    transform: rotate(-45deg) translateY(-4px);
}



/* FULLSCREEN MENU */
.menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    overflow: hidden;
}

.menu.is-active {
    visibility: visible;
}

/* Background */
.menu__bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    transform: scaleY(0);
    transform-origin: top;
}

/* Container */
.menu__container {
    position: relative;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(24px, 4vh, 40px) var(--gutter);
    display: flex;
    flex-direction: column;
}

/* Header */
.menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(48px, 8vh, 80px);
    opacity: 0;
}

.menu__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu__logo img {
    width: clamp(36px, 5vw, 48px);
    height: auto;
}

.menu__logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* TRICOLOR GRADIENT FOR MENU LOGO */
.menu__logo-ml {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1;

    /* Animated Tricolor Gradient */
    background: linear-gradient(90deg,
            var(--saffron) 0%,
            var(--white-tri) 20%,
            var(--ink) 35%,
            var(--green) 50%,
            var(--ink) 65%,
            var(--white-tri) 80%,
            var(--saffron) 100%);
    background-size: 400% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: background-position;
}

.menu__logo-en {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
}

@media (max-width: 480px) {
    .menu__logo-text {
        display: none;
    }
}

/* Close Button */
.menu__close {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out);
}

.menu__close:hover {
    transform: rotate(90deg);
}

.menu__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: background 0.3s ease;
}

.menu__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.menu__close:hover span {
    background: var(--ink-secondary);
}

/* Content */
.menu__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding: clamp(20px, 4vh, 40px) 0;
}

/* Navigation Links */
.menu__nav {
    display: flex;
    flex-direction: column;
}

.menu__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: clamp(20px, 3vh, 32px) 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    transition: background 0.3s ease, padding 0.3s ease;
}

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

.menu__link:hover {
    background: var(--bg-alt);
    padding-left: clamp(16px, 2vw, 24px);
    padding-right: clamp(16px, 2vw, 24px);
}

.menu__link-text {
    font-family: var(--font-serif);
    font-size: clamp(32px, 7vw, 72px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(100%);
    transition: color 0.3s ease;
}

.menu__link:hover .menu__link-text {
    color: var(--ink-secondary);
}

.menu__link-number {
    font-family: var(--font-ui);
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    opacity: 0;
    transform: translateY(100%);
}

/* SIMPLIFIED FOOTER (NO CONTACT DETAILS) */
.menu__footer {
    padding-top: clamp(32px, 5vh, 56px);
    border-top: 1px solid var(--border);
    opacity: 0;
    text-align: center;
}

.menu__tagline {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-muted);
    letter-spacing: 0.01em;
}


/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}

.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__flag {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(100px, 12vw, 180px);
    z-index: 1;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 70%);
    mask-image: linear-gradient(to bottom, black 0%, black 25%, transparent 70%);

    opacity: 0.45;
}

.hero__flag--left {
    left: 0;
    background: linear-gradient(to right,
            #FF9933 0%,
            #FF9933 28%,
            #ffffff 44%,
            #ffffff 56%,
            #138808 72%,
            #138808 88%,
            transparent 100%);
}

.hero__flag--right {
    right: 0;
    background: linear-gradient(to left,
            #FF9933 0%,
            #FF9933 28%,
            #ffffff 44%,
            #ffffff 56%,
            #138808 72%,
            #138808 88%,
            transparent 100%);
}

@media (max-width: 480px) {
    .hero__flag {
        width: 55px;
        opacity: 0.35;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero__flag {
        width: 80px;
        opacity: 0.38;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero__flag {
        width: 110px;
        opacity: 0.42;
    }
}


/* Container */
.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(80px, 14vh, 120px) calc(var(--gutter) + clamp(8px, 1vw, 14px) + 8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero__container {
        padding: clamp(32px, 6vh, 64px) var(--gutter);
    }
}

.hero__content {
    max-width: 900px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo + Title row */
.hero__masthead {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 2.5vw, 28px);
    margin-bottom: clamp(12px, 2vh, 20px);
    width: fit-content;
}

/* Single gradient rule — full width, beneath logo+title block */
.hero__masthead::after {
    content: '';
    display: block;
    height: 3px;
    margin-top: 20px;
    background: linear-gradient(to right,
            transparent 0%,
            #FF9933 15%,
            /* saffron */
            #FFFFFF 50%,
            /* white   */
            #138808 85%,
            /* green   */
            transparent 100%);
    opacity: 0.6;
    border-radius: 2px;
}


/* Logo circle */
.hero__logo-wrap {
    flex-shrink: 0;
    width: clamp(140px, 16vw, 220px);
    height: clamp(140px, 16vw, 220px);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    /* force logo to center-align with title */
    transition: transform 0.4s var(--ease-out);
}


.hero__logo-wrap:hover {
    transform: scale(1.06);
}

.hero__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
}

/* Title */
.hero__title--masthead {
    font-family: var(--font-serif);
    font-size: clamp(72px, 9vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    color: #AA4A44;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
}

@media (max-width: 768px) {
    .hero__title--masthead {
        font-size: clamp(36px, 10vw, 72px);
    }
}

/* Stack logo above title on small screens */
@media (max-width: 480px) {
    .hero__masthead {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero__title--masthead {
        align-items: center;
        text-align: center;
        font-size: clamp(32px, 11vw, 56px);
        margin-bottom: 0;
    }
}

/* Subtitle */
.hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: clamp(24px, 5vh, 44px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

@media (max-width: 768px) {
    .hero__subtitle {
        font-size: clamp(14px, 3.5vw, 18px);
    }
}

/* CTA buttons row */
.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(14px, 3vw, 16px) clamp(24px, 5vw, 40px);
    font-family: var(--font-ui);
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 500;
    letter-spacing: 0.04em;
    background: var(--bg);
    color: var(--ink);
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        justify-content: center;
        max-width: 280px;
        padding: 14px 28px;
        font-size: 12px;
    }
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 14px 0;
    color: var(--ink-secondary);
    transition: color 0.3s ease;
}

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

/* SECTION SHARED */
.section-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
}

/* ===== FEATURED SECTION ===== */
.featured {
    padding: var(--space-section) 0;
    border-top: 1px solid var(--border);
}

.featured__wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.featured__header {
    margin-bottom: clamp(36px, 5vh, 56px);
    position: relative;
    z-index: 10;
}

.featured__header .section-label {
    color: var(--ink-secondary) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.featured__content {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

@media (max-width: 1024px) {
    .featured__content {
        grid-template-columns: 1fr;
        gap: clamp(32px, 5vh, 48px);
    }
}

.featured__image {
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .featured__image {
        order: -1;
    }
}

.magazine-cover {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(26, 24, 20, 0.06);
    transition: transform 0.6s var(--ease-out);
}

.magazine-cover:hover {
    transform: translateY(-4px);
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.magazine-cover:hover img {
    transform: scale(1.03);
}

.magazine-cover__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(8px);
    font-family: var(--font-ui);
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
}

.featured__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: clamp(18px, 3vh, 28px);
    color: var(--ink);
}

.featured__description {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: var(--ink-muted);
    margin-bottom: clamp(24px, 3vh, 32px);
    max-width: var(--content-width);
}

.featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2.5vw, 24px);
    margin-bottom: clamp(28px, 4vh, 40px);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-secondary);
}

.meta-item svg {
    opacity: 0.5;
}

.featured__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* STORIES SECTION */
.stories {
    padding: var(--space-section) 0;
    border-top: 1px solid var(--border);
}

.stories__wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.stories__header {
    margin-bottom: clamp(36px, 5vh, 56px);
}

.stories__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(24px, 3vw, 36px);
}

.story-card {
    position: relative;
}

.story-card--featured {
    grid-column: span 12;
    padding-bottom: clamp(36px, 5vh, 56px);
    margin-bottom: clamp(16px, 2vh, 24px);
    border-bottom: 1px solid var(--border);
}

.story-card--featured .story-card__link {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 1024px) {
    .story-card--featured .story-card__link {
        grid-template-columns: 1fr;
        gap: clamp(24px, 4vh, 36px);
    }
}

.story-card:not(.story-card--featured) {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .story-card:not(.story-card--featured) {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .story-card:not(.story-card--featured) {
        grid-column: span 12;
    }
}

.story-card__link {
    display: block;
}

.story-card__media {
    position: relative;
    margin-bottom: clamp(16px, 2.5vh, 24px);
    overflow: hidden;
}

.story-card--featured .story-card__media {
    margin-bottom: 0;
}

.story-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
}

.story-card--featured .story-card__image {
    aspect-ratio: 16 / 10;
}

.story-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    filter: grayscale(10%);
}

.story-card:hover .story-card__image img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.story-card__content {
    padding-top: 2px;
}

.story-card__date {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-secondary);
    margin-bottom: 10px;
}

.story-card__title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.8vw, 26px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--ink);
    transition: color 0.3s ease;
}

.story-card:hover .story-card__title {
    color: var(--ink-secondary);
}

.story-card--featured .story-card__title {
    font-size: clamp(32px, 4.5vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.story-card__excerpt {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.85;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.story-card--featured .story-card__excerpt {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.9;
}

.story-card__read {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-secondary);
    letter-spacing: 0.02em;
}

.story-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-card__arrow {
    font-size: 16px;
    color: var(--ink-faint);
    transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.story-card:hover .story-card__arrow {
    transform: translateX(4px);
    color: var(--ink);
}

/* ===== ARCHIVE SECTION ===== */
.archive {
    padding: var(--space-section) 0;
    border-top: 1px solid var(--border);
}

.archive__wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.archive__header {
    margin-bottom: clamp(36px, 5vh, 56px);
}

.archive__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3.5vw, 40px);
}

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

@media (max-width: 480px) {
    .archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.archive-item {
    transition: transform 0.5s var(--ease-out);
}

.archive-item:hover {
    transform: translateY(-4px);
}

.archive-item__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--bg-alt);
}

.archive-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    filter: grayscale(8%);
}

.archive-item:hover .archive-item__cover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.archive-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 24, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.archive-item:hover .archive-item__overlay {
    opacity: 1;
}

.archive-item__download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg);
    border-radius: 50%;
    color: var(--ink);
    transition: transform 0.3s var(--ease-out);
}

.archive-item__download:hover {
    transform: scale(1.1);
}

.archive-item__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(8px);
    font-family: var(--font-ui);
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
}

.archive-item__info h3 {
    font-family: var(--font-serif);
    font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink);
}

.archive-item__info p {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--ink-secondary);
}

/* ABOUT SECTION */
.about {
    padding: var(--space-section) 0;
    border-top: 1px solid var(--border);
}

.about__wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.about__content {
    text-align: center;
}

.about__text {
    margin-top: clamp(24px, 4vh, 36px);
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.about__text p {
    font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.9;
    color: var(--ink-secondary);
    margin-bottom: 18px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(40px, 6vw, 64px);
    margin-top: clamp(56px, 8vh, 80px);
    padding-top: clamp(48px, 7vh, 64px);
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .about__stats {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.stat-item {
    text-align: center;
}

.stat-item__number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.stat-item__suffix {
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.stat-item__label {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-secondary);
    margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
    padding: clamp(64px, 10vh, 100px) 0 clamp(32px, 5vh, 44px);
    background: var(--ink);
    color: var(--bg);
}

.footer__wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(48px, 8vw, 96px);
    margin-bottom: clamp(48px, 8vh, 72px);
}

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

.footer__brand h3 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.35;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 5vw, 48px);
}

@media (max-width: 640px) {
    .footer__links {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.footer__col h4 {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    opacity: 0.4;
}

.footer__col a {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer__col a:hover {
    opacity: 1;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: clamp(36px, 5vh, 48px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-ui);
    font-size: 12px;
    opacity: 0.25;
    letter-spacing: 0.01em;
}

@media (max-width: 640px) {
    .footer__bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

.footer__bottom .developer-link {
    position: relative;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 1) 40%,
            rgba(255, 255, 255, 0.7) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textWave 4s linear infinite;
}

.footer__bottom .developer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;

    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 1) 40%,
            rgba(255, 255, 255, 0.4) 80%);
    background-size: 200% auto;

    animation: textWave 4s linear infinite;
}

@keyframes textWave {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.footer__bottom .developer-credit {
    margin-top: 6px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.footer__bottom .divider {
    margin: 0 8px;
    opacity: 0.6;
    font-weight: 400;
}

.footer__bottom .college-link {
    text-decoration: none;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer__bottom .college-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {

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

    .loader {
        display: none;
    }
}

.keyboard-nav *:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}