:root {
  --red: #c71f26;
  --red-dark: #9e171d;
  --blue: #153d76;
  --blue-dark: #0e2a50;
  --ink: #172033;
  --ink-soft: #556071;
  --paper: #fffdf9;
  --ivory: #f7f1e7;
  --cream: #f1eadf;
  --line: #ddd5c8;
  --gold: #b18a4c;
  --white: #fff;
  --shadow-sm: 0 10px 30px rgba(17, 31, 50, .08);
  --shadow: 0 22px 54px rgba(17, 31, 50, .12);
  --sans: "DM Sans", "Noto Sans Malayalam", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Libre Caslon Display", "Noto Serif Malayalam", Georgia, serif;
  --ml: "Noto Sans Malayalam", "Noto Serif Malayalam", sans-serif;
  --container: 1220px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 9999; padding: 10px 16px; border-radius: 3px; background: var(--blue-dark); color: #fff; transition: top .2s ease; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #f0b94b; outline-offset: 3px; }

/* Buttons */
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 21px; border: 1px solid transparent; border-radius: 3px; font-weight: 700; font-size: .92rem; letter-spacing: .01em; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 17px; font-size: .87rem; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(199, 31, 38, .16); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; border-color: rgba(21, 61, 118, .38); color: var(--blue-dark); }
.btn-outline:hover { background: #f4f7fb; border-color: var(--blue); }
.btn-outline-dark { background: transparent; border-color: #9f998f; color: var(--ink); }
.btn-outline-dark:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-light-outline { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.58); color: #fff; }
.btn-light-outline:hover { background: #fff; border-color: #fff; color: var(--blue-dark); }
.btn-white { background: #fff; border-color: #fff; color: var(--blue-dark); }
.btn-white:hover { background: #f6efe4; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); background: rgba(255, 253, 249, .98); border-bottom: 1px solid rgba(23, 32, 51, .08); transition: height .22s ease, box-shadow .22s ease; }
@supports (backdrop-filter: blur(10px)) { .site-header { backdrop-filter: blur(12px); } }
.site-header.is-compact { --header-h: 68px; box-shadow: 0 8px 28px rgba(17, 31, 50, .08); }
.header-shell { width: min(calc(100% - 48px), var(--container)); height: 100%; margin-inline: auto; display: grid; grid-template-columns: 198px minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.brand { width: 188px; display: flex; align-items: center; min-width: 0; }
.brand img { width: 100%; height: auto; }
.desktop-nav { justify-self: center; display: flex; align-items: center; gap: clamp(22px, 2.4vw, 34px); }
.nav-link { position: relative; display: flex; align-items: center; min-height: 42px; color: #3d4858; font-size: .93rem; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--red); transition: right .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--blue-dark); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.header-actions { display: flex; gap: 9px; align-items: center; }
.menu-toggle { display: none; justify-self: end; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 12px max(24px, calc((100vw - var(--container)) / 2)); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 20px 36px rgba(17, 31, 50, .12); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 13px 2px; border-bottom: 1px solid #ebe4d9; font-weight: 600; }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; padding-bottom: 3px; }

/* Hero */
.hero { background: var(--blue-dark); }
.hero-slider { position: relative; height: clamp(540px, 43vw, 610px); min-height: 540px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); transition: transform 7s ease; }
.hero-slide.is-active .hero-media { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 23, 44, .92) 0%, rgba(10, 29, 54, .78) 38%, rgba(10, 29, 54, .34) 68%, rgba(10, 29, 54, .08) 100%); }
.hero-overlay-blue { background: linear-gradient(90deg, rgba(8, 28, 57, .93) 0%, rgba(13, 47, 82, .78) 41%, rgba(13, 47, 82, .30) 70%, rgba(13, 47, 82, .08) 100%); }
.hero-content-wrap { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; padding: 26px 0 70px; }
.hero-copy { width: min(630px, 58%); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-eyebrow { margin-bottom: 15px; color: #efd3a0; opacity: 0; transform: translateY(10px); }
.hero-copy h1, .hero-copy h2 { margin: 0; max-width: 650px; font-family: var(--serif); font-size: clamp(2.85rem, 4.2vw, 4.35rem); line-height: 1.02; font-weight: 400; letter-spacing: -.03em; text-wrap: balance; opacity: 0; transform: translateY(16px); }
.hero-copy p { max-width: 600px; margin: 20px 0 0; color: rgba(255,255,255,.84); font-size: clamp(.98rem, 1.15vw, 1.08rem); line-height: 1.72; opacity: 0; transform: translateY(16px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; opacity: 0; transform: translateY(16px); }
.hero-slide.is-active .hero-eyebrow, .hero-slide.is-active .hero-copy h1, .hero-slide.is-active .hero-copy h2, .hero-slide.is-active .hero-copy p, .hero-slide.is-active .hero-actions { animation: heroIn .58s ease forwards; }
.hero-slide.is-active .hero-copy h1, .hero-slide.is-active .hero-copy h2 { animation-delay: .08s; }
.hero-slide.is-active .hero-copy p { animation-delay: .18s; }
.hero-slide.is-active .hero-actions { animation-delay: .27s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
.hero-ui { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-pagination, .hero-arrows { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.slide-dot { width: 46px; height: 34px; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.32); background: transparent; color: rgba(255,255,255,.58); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-align: left; transition: color .2s ease, border-color .2s ease; }
.slide-dot.is-active { color: #fff; border-color: #efd3a0; }
.slider-arrow { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(8,24,45,.15); color: #fff; transition: background .2s ease, border-color .2s ease; }
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-progress { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.hero-progress span { display: block; width: 0; height: 100%; background: #d9b36e; }
.hero-progress span.is-running { animation: progress 7s linear forwards; }
.hero-slider.is-paused .hero-progress span { animation-play-state: paused; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* Heritage strip */
.heritage-strip { background: #f4eee4; border-bottom: 1px solid var(--line); }
.heritage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.heritage-item { min-height: 102px; display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; border-right: 1px solid #d8cdbd; }
.heritage-item:last-child { border-right: 0; }
.heritage-item strong { color: var(--blue-dark); font-family: var(--serif); font-size: 1.38rem; line-height: 1.2; font-weight: 400; }
.heritage-item span { margin-top: 4px; color: #696256; font-size: .82rem; }

/* Common sections */
.section { padding: 94px 0; }
.section-heading { margin-bottom: 44px; }
.heading-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); align-items: end; gap: 64px; }
.section-heading h2, .reading-copy h2, .about-copy h2, .newsletter-copy h2, .member-cta h2 { margin: 9px 0 0; color: var(--blue-dark); font-family: var(--serif); font-size: clamp(2.25rem, 3.4vw, 3.6rem); line-height: 1.06; font-weight: 400; letter-spacing: -.028em; }
.section-heading.centered { text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered .eyebrow::before { display: none; }
.section-heading.narrow { max-width: 760px; margin-inline: auto; }
.section-heading.narrow > p:last-child { color: var(--ink-soft); }
.section-lead { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.section-lead.left { max-width: 640px; margin: 16px 0 31px; }
.ml-subtitle { margin: 7px 0 0; color: var(--red-dark); font-family: var(--ml); font-size: .98rem; font-weight: 600; }

/* Publications */
.publications { background: var(--paper); }
.publication-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.publication-card { min-width: 0; }
.cover-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: #ece5d9; border: 1px solid #e2dacd; border-radius: 3px; box-shadow: var(--shadow-sm); }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.publication-card:hover .cover-wrap img { transform: scale(1.025); }
.cover-tag { position: absolute; top: 14px; left: 14px; padding: 6px 9px; border-radius: 2px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cover-tag.neutral { background: rgba(14,42,80,.9); }
.publication-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: #756d62; font-size: .71rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.publication-card h3 { margin: 13px 0 8px; color: var(--blue-dark); font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; font-weight: 400; }
.publication-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.7; }
.text-button { display: inline-flex; gap: 8px; align-items: center; margin-top: 17px; color: var(--red-dark); font-size: .86rem; font-weight: 700; }
.text-button span, .section-link span { transition: transform .2s ease; }
.text-button:hover span, .section-link:hover span { transform: translateX(4px); }
.section-link-row { margin-top: 38px; text-align: right; }
.section-link { display: inline-flex; gap: 8px; align-items: center; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--blue); background: transparent; color: var(--blue); font-weight: 700; font-size: .9rem; }

/* About */
.about-section { overflow: hidden; background: #f2ecdf; }
.about-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(54px, 6vw, 92px); align-items: center; }
.about-visual { position: relative; padding: 0 32px 36px 0; }
.about-image-frame { position: relative; border: 8px solid #fffaf3; box-shadow: var(--shadow); }
.about-image-frame::before { content: ""; position: absolute; z-index: -1; width: 42%; height: 52%; right: -32px; bottom: -34px; border: 1px solid rgba(21,61,118,.25); }
.about-image-frame img { width: 100%; aspect-ratio: 1 / .92; object-fit: cover; }
.archive-note { position: absolute; right: 0; bottom: 0; width: 168px; padding: 17px 18px; background: var(--blue-dark); color: #fff; box-shadow: 0 15px 30px rgba(14,42,80,.18); }
.archive-note span { display: block; color: #dbc99d; font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.archive-note strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1.32rem; font-weight: 400; }
.about-copy h2 { max-width: 580px; }
.editorial-rule { width: 56px; height: 2px; margin: 22px 0 24px; background: var(--red); }
.malayalam-copy { max-width: 690px; margin: 0 0 29px; color: #333a43; font-family: var(--ml); font-size: 1rem; line-height: 2.05; }

/* Subscription */
.subscription-section { position: relative; overflow: hidden; background: var(--blue-dark); color: #fff; }
.subscription-section::before { content: ""; position: absolute; inset: 0; opacity: .055; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.subscription-section .container { position: relative; }
.section-heading .light { color: #e3c78d; }
.subscription-section .section-heading h2 { color: #fff; }
.light-ml { color: #f0d9aa; }
.subscription-section .section-heading > p:last-child { color: rgba(255,255,255,.72); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 505px; padding: 29px 25px 25px; border: 1px solid rgba(255,255,255,.2); border-top: 3px solid #d6c8b5; border-radius: 4px; background: #fffdf9; color: var(--ink); transition: transform .22s ease, box-shadow .22s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 24px 45px rgba(5,15,32,.2); }
.plan-card.popular-plan { border-top-color: var(--red); }
.popular-label { position: absolute; top: 14px; right: 16px; padding: 5px 8px; border: 1px solid #efc9c6; border-radius: 99px; background: #f9e7e5; color: var(--red-dark); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.postage-plan { background: #f5f1e9; border-top-color: var(--gold); }
.postage-badge { display: inline-flex; align-self: flex-start; margin-bottom: 14px; padding: 5px 8px; border: 1px solid #ddc18a; border-radius: 2px; background: #efe2c5; color: #755a28; font-size: .63rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.plan-kicker { display: block; margin-bottom: 9px; color: var(--red-dark); font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.plan-head h3 { min-height: 52px; margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 1.52rem; line-height: 1.16; font-weight: 400; }
.price { display: flex; align-items: baseline; gap: 5px; margin-top: 21px; color: var(--ink); font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.price span { color: #687184; font-family: var(--sans); font-size: .74rem; font-weight: 600; }
.plan-ml { min-height: 42px; margin: 10px 0 0; color: #5c6574; font-family: var(--ml); font-size: .87rem; line-height: 1.55; }
.feature-list { list-style: none; padding: 20px 0 0; margin: 20px 0 24px; border-top: 1px solid #ddd6cc; }
.feature-list li { position: relative; padding: 7px 0 7px 23px; color: #414b5d; font-size: .84rem; }
.feature-list li::before { content: "✓"; position: absolute; top: 6px; left: 0; color: var(--red-dark); font-weight: 800; }
.btn-plan { margin-top: auto; background: transparent; border-color: #8492a5; color: var(--blue-dark); }
.btn-plan:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.primary-plan { background: var(--red); border-color: var(--red); color: #fff; }
.primary-plan:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Reading experience */
.reading-section { background: #fffdf9; }
.reading-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 72px; align-items: center; }
.benefit-list { border-top: 1px solid var(--line); }
.benefit-list article { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.benefit-list article > span { color: var(--red-dark); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.benefit-list h3 { margin: 0 0 4px; color: var(--blue-dark); font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.benefit-list p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.device-visual { position: relative; }
.device-visual::before { content: ""; position: absolute; z-index: 0; width: 70%; height: 70%; right: -22px; top: -22px; border: 1px solid #cfc4b4; }
.device-visual img { position: relative; z-index: 1; width: 100%; box-shadow: var(--shadow); }

/* Steps */
.steps-section { background: #f4eee4; }
.steps-timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px; max-width: 1020px; margin: 0 auto; }
.steps-timeline::before { content: ""; position: absolute; left: 13%; right: 13%; top: 29px; height: 1px; background: #c7baa6; }
.step { position: relative; text-align: center; }
.step-number { position: relative; z-index: 2; width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 19px; border: 1px solid #bcae98; border-radius: 50%; background: #f4eee4; color: var(--red-dark); font-family: var(--serif); font-size: 1.2rem; }
.step h3 { margin: 0 0 7px; color: var(--blue-dark); font-family: var(--serif); font-size: 1.48rem; font-weight: 400; }
.step p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

/* CTA */
.member-cta { padding: 66px 0; background: var(--red-dark); color: #fff; }
.member-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; }
.member-cta h2 { max-width: 720px; color: #fff; font-size: clamp(2.05rem, 3.2vw, 3.25rem); }
.member-cta p { max-width: 700px; margin: 14px 0 0; color: rgba(255,255,255,.8); }
.member-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Newsletter */
.newsletter-section { padding: 66px 0; background: #fffdf9; border-bottom: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0,.82fr) minmax(440px,1.18fr); gap: 62px; align-items: center; }
.newsletter-copy h2 { font-size: 2.25rem; }
.newsletter-copy p { margin: 10px 0 0; color: var(--ink-soft); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.newsletter-form input, .login-form input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #b9b3aa; border-radius: 3px; background: #fff; color: var(--ink); }
.newsletter-form input::placeholder { color: #8c8c8c; }
.form-message { grid-column: 1 / -1; min-height: 20px; margin: 2px 0 0; color: #2e6744; font-size: .8rem; }

/* Footer */
.site-footer { background: #101e32; color: #e9edf2; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr 1fr .9fr; gap: 48px; padding-top: 68px; padding-bottom: 56px; }
.footer-brand { max-width: 320px; }
.footer-logo { display: inline-flex; width: 245px; padding: 9px 11px; margin-bottom: 12px; border-radius: 3px; background: #fffdf9; }
.footer-logo img { width: 100%; height: auto; }
.footer-brand h2 { margin: 8px 0 7px; color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.footer-brand p, .footer-column p { margin: 0; color: #aeb9c8; font-size: .84rem; line-height: 1.75; }
.footer-column h3 { margin: 8px 0 18px; color: #fff; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-column nav { display: grid; gap: 8px; }
.footer-column nav a, .footer-contact a { color: #b8c2ce; font-size: .84rem; transition: color .18s ease; }
.footer-column nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p strong { color: #f5f7fa; font-weight: 600; }
.contact-block { display: grid; gap: 3px; margin-top: 15px; }
.contact-block > span { color: #d6bd88; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.btn-footer { margin-top: 17px; background: transparent; border-color: #617087; color: #fff; }
.btn-footer:hover { background: #fff; border-color: #fff; color: var(--blue-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.footer-bottom p { margin: 0; color: #8995a5; font-size: .75rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-legal-link { padding: 0; border: 0; background: transparent; color: #a4aebb; font-size: .73rem; }
.footer-legal-link:hover { color: #fff; }

/* Login modal + placeholder toast */
.modal-backdrop { position: fixed; z-index: 1990; inset: 0; background: rgba(8, 20, 38, .62); }
.login-modal { position: fixed; z-index: 2000; left: 50%; top: 50%; width: min(calc(100% - 32px), 470px); max-height: calc(100vh - 40px); overflow-y: auto; transform: translate(-50%, -50%); padding: 34px; border: 1px solid #e1d9cd; border-radius: 5px; background: var(--paper); box-shadow: 0 30px 80px rgba(7, 18, 35, .3); }
.login-modal h2 { margin: 9px 0 8px; color: var(--blue-dark); font-family: var(--serif); font-size: 2.15rem; font-weight: 400; line-height: 1.1; }
.login-modal > p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.modal-close { position: absolute; top: 13px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.45rem; line-height: 1; }
.login-form { display: grid; gap: 8px; margin-top: 24px; }
.login-form label { margin-top: 4px; color: #3d4653; font-size: .82rem; font-weight: 700; }
.login-form .btn { margin-top: 8px; }
.modal-note { margin-top: 15px !important; padding-top: 14px; border-top: 1px solid var(--line); color: #7a746c !important; font-size: .76rem !important; }
.site-toast { position: fixed; z-index: 2100; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 13px 16px; border: 1px solid #d7cdbf; border-radius: 4px; background: #fffdf9; color: var(--ink); box-shadow: var(--shadow); font-size: .84rem; }

/* Responsive */
@media (max-width: 1120px) {
  .header-shell { grid-template-columns: 186px minmax(0, 1fr) auto; gap: 20px; }
  .brand { width: 176px; }
  .desktop-nav { gap: 20px; }
  .desktop-actions .btn { padding-inline: 14px; }
  .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 26px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
  .plan-card { min-height: 475px; }
  .reading-grid { gap: 52px; }
  .footer-grid { grid-template-columns: 1.15fr .8fr 1fr; }
  .footer-newsletter { grid-column: 2 / 4; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .desktop-nav, .desktop-actions { display: none; }
  .menu-toggle { display: flex; }
  .header-shell { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { width: 170px; }
  .hero-slider { height: 565px; min-height: 565px; }
  .hero-copy { width: min(620px, 82%); }
  .hero-overlay, .hero-overlay-blue { background: linear-gradient(90deg, rgba(8,23,44,.94) 0%, rgba(10,29,54,.82) 58%, rgba(10,29,54,.38) 100%); }
  .heritage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heritage-item:nth-child(2) { border-right: 0; }
  .heritage-item:nth-child(-n+2) { border-bottom: 1px solid #d8cdbd; }
  .heading-split { grid-template-columns: 1fr; gap: 18px; }
  .heading-split .section-lead { max-width: 650px; }
  .about-grid, .reading-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 680px; }
  .device-visual { max-width: 700px; }
  .member-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .member-cta-actions { justify-content: flex-start; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container, .header-shell { width: min(calc(100% - 32px), var(--container)); }
  .site-header.is-compact { --header-h: 60px; }
  .brand { width: 150px; }
  .menu-toggle { width: 41px; height: 41px; }
  .mobile-menu { padding-left: 16px; padding-right: 16px; }
  .mobile-actions { grid-template-columns: 1fr 1fr; }
  .hero-slider { height: 590px; min-height: 590px; }
  .hero-media { object-position: 66% center; }
  .hero-overlay, .hero-overlay-blue { background: linear-gradient(90deg, rgba(8,23,44,.97) 0%, rgba(9,27,50,.88) 73%, rgba(9,27,50,.52) 100%); }
  .hero-content-wrap { align-items: flex-end; padding: 40px 0 112px; }
  .hero-copy { width: 100%; }
  .hero-copy h1, .hero-copy h2 { max-width: 100%; font-size: clamp(2.2rem, 10vw, 2.85rem); line-height: 1.03; }
  .hero-copy p { margin-top: 15px; font-size: .92rem; line-height: 1.62; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 286px); margin-top: 21px; }
  .hero-actions .btn { width: 100%; }
  .hero-ui { bottom: 23px; }
  .slide-dot { width: 36px; }
  .slide-dot span { font-size: .66rem; }
  .slider-arrow { width: 37px; height: 37px; }
  .heritage-grid { grid-template-columns: 1fr 1fr; }
  .heritage-item { min-height: 92px; padding: 14px 11px; }
  .heritage-item strong { font-size: 1.08rem; }
  .heritage-item span { font-size: .7rem; line-height: 1.45; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .reading-copy h2, .about-copy h2 { font-size: clamp(2.05rem, 9vw, 2.7rem); }
  .publication-grid { grid-template-columns: 1fr; gap: 40px; }
  .publication-card { width: 100%; max-width: 420px; }
  .section-link-row { text-align: left; }
  .about-visual { padding-right: 16px; padding-bottom: 28px; }
  .archive-note { width: 145px; padding: 13px 14px; }
  .malayalam-copy { font-size: .96rem; line-height: 1.95; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan-card { min-height: auto; padding: 25px 22px 22px; }
  .plan-head h3, .plan-ml { min-height: auto; }
  .steps-timeline { grid-template-columns: 1fr; gap: 31px; }
  .steps-timeline::before { left: 29px; right: auto; top: 29px; bottom: 29px; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 17px; text-align: left; align-items: start; }
  .step-number { grid-row: 1 / 3; margin: 0; }
  .step h3 { margin-top: 6px; }
  .member-cta { padding: 54px 0; }
  .member-cta h2 { font-size: 2.2rem; }
  .member-cta-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 310px); }
  .newsletter-section { padding: 56px 0; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 52px; }
  .footer-brand { max-width: none; }
  .footer-logo { width: 220px; }
  .footer-bottom-inner { padding: 18px 0; flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { justify-content: flex-start; }
  .login-modal { padding: 28px 22px 22px; }
  .site-toast { right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
}

@media (max-width: 380px) {
  .brand { width: 140px; }
  .mobile-actions { grid-template-columns: 1fr; }
  .hero-slider { height: 610px; min-height: 610px; }
  .hero-copy h1, .hero-copy h2 { font-size: 2.18rem; }
  .hero-arrows { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Premium rollover refinements */
.member-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 216, 157, .13), transparent 28%),
    linear-gradient(120deg, #7f141b 0%, #b21c22 42%, #c9292f 68%, #681c2b 100%);
}
.member-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.055) 45%, transparent 72%);
  transform: translateX(-38%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.member-cta:hover::before { transform: translateX(28%); }
.member-cta-inner { position: relative; z-index: 1; }
.member-cta .eyebrow,
.member-cta .eyebrow.light {
  color: #ffe0a4;
  text-shadow: 0 1px 12px rgba(52, 0, 8, .28);
}
.member-cta .eyebrow::before { background: currentColor; }
.member-cta h2 { text-shadow: 0 2px 18px rgba(56, 0, 10, .16); }

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(191, 37, 45, .14), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(191, 147, 73, .10), transparent 26%),
    linear-gradient(135deg, #071729 0%, #0e2746 52%, #172f4d 76%, #281c2d 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 82%);
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }
.footer-bottom { background: linear-gradient(90deg, rgba(2,10,21,.40), rgba(106,19,29,.18), rgba(2,10,21,.40)); }

@media (hover:hover) and (pointer:fine) {
  /* Header / navigation */
  .brand img { transition: transform .38s cubic-bezier(.2,.7,.2,1), filter .38s ease; }
  .brand:hover img { transform: translate(-50%,-50%) scale(1.025); filter: drop-shadow(0 8px 13px rgba(13,41,79,.12)); }
  .menu-toggle { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .menu-toggle:hover { transform: translateY(-2px); border-color: rgba(23,60,115,.4); box-shadow: 0 9px 18px rgba(21,32,51,.09); }

  /* Heritage strip */
  .heritage-item {
    position: relative;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease, box-shadow .3s ease;
  }
  .heritage-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    transition: width .35s ease;
  }
  .heritage-item:hover { transform: translateY(-4px); background: #fffaf2; box-shadow: 0 16px 30px rgba(25,38,57,.07); z-index: 2; }
  .heritage-item:hover::after { width: 100%; }
  .heritage-item strong, .heritage-item span { transition: transform .3s ease, color .3s ease; }
  .heritage-item:hover strong { transform: translateX(4px); color: var(--red-dark); }
  .heritage-item:hover span { transform: translateX(4px); color: var(--ink); }

  /* Section headings */
  .section-heading .eyebrow, .reading-copy .eyebrow, .about-copy .eyebrow, .newsletter-copy .eyebrow {
    transition: letter-spacing .28s ease, transform .28s ease;
  }
  .section-heading:hover .eyebrow, .reading-copy:hover .eyebrow, .about-copy:hover .eyebrow, .newsletter-copy:hover .eyebrow {
    letter-spacing: .175em;
    transform: translateX(3px);
  }

  /* Publications */
  .publication-card {
    transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  }
  .publication-card:hover { transform: translateY(-8px); }
  .cover-wrap { transition: box-shadow .35s ease, transform .35s ease; }
  .publication-card:hover .cover-wrap { transform: perspective(900px) rotateX(.8deg) rotateY(-1deg); box-shadow: 0 22px 42px rgba(21,32,51,.17); }
  .publication-card:hover .cover-wrap img { transform: scale(1.055); }
  .publication-meta { transition: border-color .3s ease, color .3s ease; }
  .publication-card:hover .publication-meta { border-color: rgba(200,31,36,.45); color: var(--red-dark); }
  .publication-card h3 { transition: color .25s ease, transform .25s ease; }
  .publication-card:hover h3 { color: var(--red-dark); transform: translateX(2px); }
  .section-link { transition: color .25s ease, border-color .25s ease, transform .25s ease; }
  .section-link:hover { color: var(--red-dark); border-color: var(--red-dark); transform: translateX(5px); }

  /* About */
  .about-image-frame { overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
  .about-image-frame img { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .45s ease; }
  .about-visual:hover .about-image-frame { transform: translateY(-7px) rotate(-.35deg); box-shadow: 0 28px 55px rgba(19,32,51,.16); }
  .about-visual:hover .about-image-frame img { transform: scale(1.045); filter: saturate(1.04) contrast(1.02); }
  .archive-note { transition: transform .35s ease, background .35s ease; }
  .about-visual:hover .archive-note { transform: translate(-5px,-5px); background: linear-gradient(135deg, var(--blue-dark), #173c73); }
  .editorial-rule { transition: width .35s ease, background .35s ease; }
  .about-copy:hover .editorial-rule { width: 96px; background: linear-gradient(90deg, var(--red), var(--gold)); }

  /* Subscription cards */
  .plan-card { overflow: hidden; }
  .plan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.58) 48%, transparent 66%);
    transform: translateX(-130%);
    transition: transform .7s ease;
    pointer-events: none;
  }
  .plan-card:hover { transform: translateY(-10px); box-shadow: 0 30px 56px rgba(5,15,32,.28); }
  .plan-card:hover::after { transform: translateX(130%); }
  .price, .plan-head h3 { transition: transform .3s ease, color .3s ease; }
  .plan-card:hover .price { transform: translateY(-2px); color: var(--red-dark); }
  .plan-card:hover .plan-head h3 { transform: translateX(2px); }
  .feature-list li { transition: transform .22s ease, color .22s ease; }
  .feature-list li:hover { transform: translateX(5px); color: var(--blue-dark); }

  /* Reading experience */
  .benefit-list article {
    position: relative;
    transition: transform .28s ease, padding-left .28s ease, background .28s ease, box-shadow .28s ease;
  }
  .benefit-list article::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
    background: linear-gradient(var(--red), var(--gold));
    transition: height .28s ease;
  }
  .benefit-list article:hover { transform: translateX(5px); padding-left: 15px; background: #fffaf1; box-shadow: 0 10px 24px rgba(21,32,51,.05); }
  .benefit-list article:hover::after { height: 60%; }
  .device-visual { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .device-visual img { transition: transform .5s ease, box-shadow .5s ease; }
  .device-visual:hover { transform: translateY(-8px); }
  .device-visual:hover img { transform: scale(1.018); box-shadow: 0 30px 55px rgba(19,32,51,.17); }

  /* Steps */
  .step { transition: transform .3s ease; }
  .step-number { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
  .step h3 { transition: color .3s ease; }
  .step:hover { transform: translateY(-6px); }
  .step:hover .step-number { transform: rotate(6deg) scale(1.08); background: linear-gradient(135deg, var(--red-dark), var(--red)); color: white; border-color: var(--red); box-shadow: 0 13px 27px rgba(157,23,27,.20); }
  .step:hover h3 { color: var(--red-dark); }

  /* CTA */
  .member-cta-inner > div:first-child { transition: transform .35s ease; }
  .member-cta:hover .member-cta-inner > div:first-child { transform: translateX(4px); }
  .member-cta-actions .btn { position: relative; overflow: hidden; }
  .member-cta-actions .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform .55s ease;
  }
  .member-cta-actions .btn:hover::after { transform: translateX(130%); }

  /* Newsletter */
  .newsletter-section { transition: background .4s ease; }
  .newsletter-section:hover { background: #fffaf3; }
  .newsletter-form { transition: transform .3s ease; }
  .newsletter-section:hover .newsletter-form { transform: translateY(-3px); }
  .newsletter-form input { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
  .newsletter-form input:hover, .newsletter-form input:focus { border-color: rgba(23,60,115,.65); box-shadow: 0 10px 24px rgba(23,60,115,.08); transform: translateY(-1px); }

  /* Footer */
  .footer-brand, .footer-column { transition: transform .32s ease; }
  .footer-brand:hover, .footer-column:hover { transform: translateY(-5px); }
  .footer-column h3 { position: relative; display: inline-block; }
  .footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 22px;
    height: 1px;
    background: #d6bd88;
    transition: width .3s ease;
  }
  .footer-column:hover h3::after { width: 46px; }
  .footer-column nav a, .footer-contact a { transition: color .22s ease, transform .22s ease; }
  .footer-column nav a:hover, .footer-contact a:hover { transform: translateX(4px); color: #fff; }
  .footer-logo img { transition: transform .4s ease, filter .4s ease; }
  .footer-logo:hover img { transform: translate(-50%,-50%) scale(1.025); filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)); }
}
/* WordPress portal integration */
body.admin-bar .site-header{top:32px}.portal-page-shell{max-width:1100px}.page-content{font-size:1rem;line-height:1.8;color:var(--ink-soft)}.page-content h2,.page-content h3{font-family:var(--serif);color:var(--blue-dark)}.sd-publication-detail{display:grid;grid-template-columns:minmax(240px,360px) 1fr;gap:60px;align-items:start}.sd-publication-cover img{width:100%;height:auto;box-shadow:0 22px 48px rgba(21,32,51,.16)}.sd-publication-info h1{font-family:var(--serif);font-size:clamp(2.3rem,4vw,4rem);color:var(--blue-dark);margin:.6rem 0}.footer-legal-link{color:inherit;text-decoration:none}
@media(max-width:782px){body.admin-bar .site-header{top:46px}.sd-publication-detail{grid-template-columns:1fr;gap:30px}.sd-publication-cover{max-width:340px}}
