/* ============================================================
   GNANA JOTHI FOUNDATION — Landing Page
   Theme  : Warm White Editorial Luxury
   Fonts  : Fraunces (display serif) + Instrument Sans (body)
            + Libre Baskerville (accent italic)
   Palette: Warm ivory #faf8f4 · Ink #2d2416 · Gold #c9a84c
            Sage #7a9e7e · Blush #e8c4b2
   Concept: Newspaper/magazine editorial layout with ink bleed
            blobs, grain texture, ruled lines, and a magnetic
            two-panel magazine entry experience
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --ivory:      #faf8f4;
  --ivory-2:    #f4f0e8;
  --ivory-3:    #ede8dc;
  --ink:        #2d2416;
  --ink-lt:     #5c4f3a;
  --ink-xlt:    #8c7e68;
  --gold:       #c9a84c;
  --gold-lt:    #e2c87a;
  --gold-dk:    #9a7a28;
  --gold-wash:  rgba(201,168,76,.12);
  --sage:       #4a8c5c;
  --sage-lt:    #7db892;
  --sage-wash:  rgba(74,140,92,.12);
  --blush:      #c97a6c;
  --blush-lt:   #e8b4a8;
  --blush-wash: rgba(201,122,108,.10);
  --rule:       rgba(45,36,22,.10);
  --rule-strong:rgba(45,36,22,.20);
  /* NEW accent colours */
  --terracotta: #c0522a;
  --terracotta-wash: rgba(192,82,42,.10);
  --sky:        #2e7db5;
  --sky-wash:   rgba(46,125,181,.10);
  --wine:       #8b2252;
  --wine-wash:  rgba(139,34,82,.08);

  /* Fonts */
  --ff-display:  'Fraunces', 'Georgia', serif;
  --ff-body:     'Instrument Sans', system-ui, sans-serif;
  --ff-accent:   'Libre Baskerville', Georgia, serif;

  /* Layout */
  --max-w: 1340px;
}

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Grain texture overlay ──────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025;
  mix-blend-mode: multiply;
}

/* ── Ink bleed blobs ────────────────────────────────────────── */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: blobDrift var(--bd,20s) ease-in-out infinite var(--bdl,0s) alternate;
}

.blob-gold  { width:700px;height:600px; top:-120px; left:-150px; background:radial-gradient(circle,rgba(201,168,76,.28),rgba(192,82,42,.08),transparent 70%);  --bd:22s;--bdl:0s; }
.blob-sage  { width:600px;height:500px; bottom:-60px;right:-120px;background:radial-gradient(circle,rgba(74,140,92,.22),rgba(46,125,181,.08),transparent 70%); --bd:18s;--bdl:4s; }
.blob-blush { width:500px;height:400px; top:38%;    left:35%;    background:radial-gradient(circle,rgba(201,122,108,.16),rgba(139,34,82,.06),transparent 70%); --bd:25s;--bdl:8s; }

@keyframes blobDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,30px) scale(1.08); }
}

/* ── Ruled paper lines ──────────────────────────────────────── */
.ruled-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 47px,
    var(--rule) 47px,
    var(--rule) 48px
  );
  opacity: .5;
}

/* ── Header ─────────────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 0 48px;
}

.lp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.foundation-mark {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}

.mark-emblem { flex-shrink: 0; }

.mark-text { display: flex; flex-direction: column; gap: 1px; }
.mark-name {
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--ink); line-height: 1.1;
  letter-spacing: -.01em;
}
.mark-sub {
  font-size: .62rem; font-weight: 500;
  color: var(--ink-xlt); letter-spacing: .12em; text-transform: uppercase;
}

.header-nav {
  display: flex; align-items: center; gap: 16px;
}
.header-nav-item {
  font-size: .70rem; color: var(--ink-xlt);
  letter-spacing: .10em; text-transform: uppercase; font-weight: 500;
}
.header-nav-sep { color: var(--rule-strong); font-size: .80rem; }
.header-nav-cta {
  font-size: .70rem; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--gold-dk); text-decoration: none;
  padding: 7px 18px; border: 1px solid var(--gold);
  border-radius: 2px; background: var(--gold-wash);
  transition: all .25s ease;
}
.header-nav-cta:hover { background: var(--gold); color: var(--ivory); }

/* ── Editorial Hero ─────────────────────────────────────────── */
.editorial-hero {
  position: relative; z-index: 1;
  padding: 80px 48px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

/* Left column */
.editorial-left {}

.ed-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-xlt); margin-bottom: 32px;
}
.eyebrow-rule {
  display: block; width: 48px; height: 1px; background: var(--rule-strong);
}

.ed-headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  line-height: .95;
}

.hl-thin {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  color: var(--ink-lt);
  letter-spacing: -.03em;
  line-height: .92;
}
.hl-italic {
  font-family: var(--ff-display);
  font-size: clamp(3.8rem, 7.5vw, 7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: .9;
}
.hl-bold {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.04em;
  line-height: .9;
}
.hl-accent {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--gold-dk);
  letter-spacing: -.04em;
  line-height: .88;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(201,168,76,.35);
  text-underline-offset: 6px;
}

.ed-lead {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--ink-lt); font-weight: 400;
  max-width: 480px; margin-bottom: 40px;
}

/* Stats row */
.ed-stats-row {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #2d2416 0%, #4a3620 100%);
  border: 1px solid rgba(201,168,76,.25);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  margin-bottom: 36px;
  width: fit-content;
  box-shadow: 0 8px 32px rgba(45,36,22,.18);
}
.ed-stat { display: flex; flex-direction: column; gap: 3px; }
.es-num {
  font-family: var(--ff-display);
  font-size: 2.1rem; font-weight: 700;
  color: var(--gold-lt); line-height: 1;
  letter-spacing: -.03em;
}
.es-num sup { font-size: .55em; vertical-align: super; }
.es-lbl {
  font-size: .60rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.es-div { width: 1px; height: 40px; background: rgba(255,255,255,.12); flex-shrink: 0; }

/* Scroll button */
.ed-scroll-btn {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: gap .3s ease;
}
.ed-scroll-btn:hover { gap: 20px; }
.scroll-btn-text { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.scroll-btn-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-2);
  transition: all .3s ease;
  flex-shrink: 0;
}
.ed-scroll-btn:hover .scroll-btn-circle {
  background: var(--ink); color: var(--ivory);
  border-color: var(--ink);
  transform: translateY(4px);
}

/* Right column */
.editorial-right {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 20px;
}

.ed-big-num {
  font-family: var(--ff-display);
  font-size: 11rem; font-weight: 700; line-height: .85;
  color: var(--ivory-3);
  letter-spacing: -.06em;
  margin-bottom: -16px;
  user-select: none;
  transition: color .4s ease;
}
.editorial-right:hover .ed-big-num { color: rgba(201,168,76,.15); }

.ed-years-label {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dk); line-height: 1.5;
  padding-left: 4px;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.ed-quote {
  padding: 20px 20px 20px 24px;
  border-left: 3px solid var(--terracotta);
  background: linear-gradient(135deg, rgba(192,82,42,.07), rgba(201,168,76,.05));
  margin-top: 8px;
  border-radius: 0 4px 4px 0;
}
.ed-quote p {
  font-family: var(--ff-accent);
  font-size: .95rem; font-style: italic;
  color: var(--ink-lt); line-height: 1.65;
  margin-bottom: 10px;
}
.ed-quote cite {
  font-family: var(--ff-body);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-xlt); font-style: normal;
}

.ed-cert-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase;
  color: #fff; padding: 9px 16px;
  border: 1px solid var(--sage);
  background: var(--sage);
  border-radius: 2px; width: fit-content;
  box-shadow: 0 4px 16px rgba(74,140,92,.30);
}


/* ── Section label ──────────────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 16px;
  padding: 0 48px;
  max-width: var(--max-w); margin: 8px auto 40px;
  width: 100%;
  position: relative; z-index: 1;
}
.sl-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold-dk), transparent); }
.sl-text {
  font-size: .60rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dk); white-space: nowrap; flex-shrink: 0;
  padding: 4px 16px; background: var(--gold-wash);
  border: 1px solid rgba(201,168,76,.20); border-radius: 2px;
}


/* ── Magazine school entries ────────────────────────────────── */
.schools-magazine {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 48px 64px;
  width: 100%;
  position: relative; z-index: 1;
}

/* Spine */
.mag-spine {
  display: flex; flex-direction: column;
  align-items: center; padding: 0 28px;
}
.spine-top-line, .spine-bottom-line {
  width: 1px; flex: 1;
  background: var(--rule-strong);
}
.spine-emblem {
  padding: 10px 0; flex-shrink: 0;
}
.spine-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: .52rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dk); padding: 8px 0;
}

/* Entry base */
.mag-entry {
  position: relative;
  display: flex; flex-direction: column;
  padding: 44px 44px 40px;
  text-decoration: none; color: var(--ink);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ivory);
  transition: box-shadow .45s ease, transform .45s ease, border-color .35s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 6px;
}

.mag-entry:hover {
  box-shadow:
    0 24px 70px rgba(45,36,22,.15),
    0 4px 20px rgba(45,36,22,.08);
  border-color: var(--rule-strong);
}

/* School 1 — gold */
.mag-entry-1 {
  background: linear-gradient(160deg, #fffdf5 0%, #faf5e4 60%, #f5edcc 100%);
  border-top: 4px solid var(--gold);
}
.mag-entry-1:hover {
  box-shadow: 0 24px 70px rgba(201,168,76,.20), 0 4px 20px rgba(45,36,22,.08);
}

/* School 2 — sage green */
.mag-entry-2 {
  background: linear-gradient(160deg, #f4fbf6 0%, #e8f6ec 60%, #d4edda 100%);
  border-top: 4px solid var(--sage);
}
.mag-entry-2:hover {
  box-shadow: 0 24px 70px rgba(74,140,92,.18), 0 4px 20px rgba(45,36,22,.08);
}

/* Background wash (hover reveal) */
.mag-wash {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.mag-entry:hover .mag-wash { opacity: 1; }
.mag-wash-1 { background: linear-gradient(145deg, rgba(201,168,76,.10) 0%, rgba(192,82,42,.04) 100%); }
.mag-wash-2 { background: linear-gradient(145deg, rgba(74,140,92,.10) 0%, rgba(46,125,181,.04) 100%); }

/* Issue number watermark */
.mag-issue {
  position: absolute; top: 20px; right: 28px;
  font-family: var(--ff-display);
  font-size: 5.5rem; font-weight: 700;
  line-height: 1; letter-spacing: -.06em;
  color: rgba(45,36,22,.04);
  user-select: none; pointer-events: none;
  transition: color .4s ease;
}
.mag-entry:hover .mag-issue { color: rgba(45,36,22,.06); }

/* Meta bar */
.mag-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.mag-meta-tag {
  font-size: .60rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 1px;
}
.mag-entry-1 .mag-meta-tag { color: #fff; background: var(--gold-dk); border: 1px solid var(--gold-dk); box-shadow: 0 2px 8px rgba(154,122,40,.25); }
.mag-entry-2 .mag-meta-tag { color: #fff; background: var(--sage);    border: 1px solid var(--sage);    box-shadow: 0 2px 8px rgba(74,140,92,.25); }

.mag-meta-loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .62rem; color: var(--ink-xlt); font-weight: 500;
}

/* Title block */
.mag-title-block { margin-bottom: 28px; }

.mag-school-name {
  display: flex; flex-direction: column;
  margin-bottom: 6px; line-height: .92;
}

.msn-serif {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: -.03em; line-height: .9;
}
.msn-italic {
  font-style: italic; font-weight: 300;
  color: var(--ink-lt);
}

.mag-school-type {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-xlt); margin-top: 8px;
}

/* Thick rule */
.mag-thick-rule { height: 3px; margin-bottom: 28px; border-radius: 2px; }
.mag-rule-1 { background: linear-gradient(to right, var(--gold-dk), var(--gold-lt), transparent); }
.mag-rule-2 { background: linear-gradient(to right, var(--sage), var(--sage-lt), transparent); }

/* Features list */
.mag-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 12px; margin-bottom: 40px;
}
.mag-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; color: var(--ink-lt);
  line-height: 1.4;
}
.mf-bullet {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  transition: transform .3s ease;
}
.mag-entry:hover .mf-bullet { transform: scale(1.5); }
.mf-bullet-1 { background: var(--gold-dk); box-shadow: 0 0 6px rgba(154,122,40,.40); }
.mf-bullet-2 { background: var(--sage); box-shadow: 0 0 6px rgba(74,140,92,.40); }

/* CTA */
.mag-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: auto; padding: 14px 0;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border-top: 1px solid var(--rule);
  width: 100%; justify-content: space-between;
  transition: all .3s ease;
}
.mag-cta svg {
  transform: translateX(0);
  transition: transform .3s ease;
}
.mag-entry:hover .mag-cta svg { transform: translateX(8px); }

.mag-cta-1 { color: var(--gold-dk); font-weight: 700; }
.mag-cta-2 { color: var(--sage); font-weight: 700; }
.mag-entry-1 .mag-cta { border-top-color: rgba(201,168,76,.30); }
.mag-entry-2 .mag-cta { border-top-color: rgba(74,140,92,.25); }

/* Corner fold */
.mag-fold {
  position: absolute; bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  transition: all .35s ease;
}
.mag-fold-1 { border-color: transparent transparent var(--gold-dk) transparent; border-width: 0 0 36px 36px; opacity: 0; }
.mag-fold-2 { border-color: transparent transparent var(--sage) transparent; border-width: 0 0 36px 36px; opacity: 0; }
.mag-entry:hover .mag-fold-1,
.mag-entry:hover .mag-fold-2 { opacity: 1; }


/* ── Ticker / marquee ───────────────────────────────────────── */
.ticker-wrap {
  position: relative; z-index: 1;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  background: linear-gradient(135deg, #2d2416 0%, #3d3020 50%, #2d2416 100%);
  padding: 14px 0;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(45,36,22,.20), 0 -2px 0 rgba(201,168,76,.30);
}

.ticker-track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: tickerScroll 38s linear infinite;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.60);
}
.ticker-dot { color: var(--gold); font-size: .55rem; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }


/* ── Footer ─────────────────────────────────────────────────── */
.lp-footer {
  position: relative; z-index: 1;
  border-top: none;
  background: linear-gradient(135deg, #1e1710 0%, #2d2416 100%);
  padding: 32px 48px;
  margin-top: auto;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto;
  flex-wrap: wrap; gap: 12px;
}

.footer-copy {
  font-size: .70rem; color: rgba(255,255,255,.55);
  font-weight: 500; line-height: 1.5;
}
.footer-copy-sub { font-size: .60rem; color: rgba(255,255,255,.25); }

.footer-nav { display: flex; align-items: center; gap: 20px; }
.footer-link {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.40); text-decoration: none;
  transition: color .2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-link:hover { color: var(--gold-lt); border-color: var(--gold); }


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .editorial-grid { grid-template-columns: 1fr 300px; gap: 40px; }
  .schools-magazine { grid-template-columns: 1fr 48px 1fr; }
  .mag-spine { padding: 0 12px; }
}

@media (max-width: 860px) {
  .lp-header, .editorial-hero, .section-label, .schools-magazine, .lp-footer {
    padding-left: 24px; padding-right: 24px;
  }
  .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
  .editorial-right { position: static; }
  .ed-big-num { font-size: 7rem; }
  .schools-magazine { grid-template-columns: 1fr; }
  .mag-spine {
    flex-direction: row; align-items: center;
    padding: 16px 0;
  }
  .spine-top-line, .spine-bottom-line { flex: none; width: 40px; height: 1px; }
  .spine-label { writing-mode: horizontal-tb; padding: 0 12px; }
  .header-nav { display: none; }
}

@media (max-width: 520px) {
  .lp-header { padding: 0 16px; }
  .lp-header-inner { height: 60px; }
  .editorial-hero { padding: 48px 16px 40px; }
  .section-label  { padding: 0 16px; }
  .schools-magazine { padding: 0 16px 48px; }
  .lp-footer { padding: 22px 16px; }
  .mag-entry { padding: 28px 24px 24px; }
  .hl-thin, .hl-italic, .hl-bold { font-size: 2.8rem; }
  .hl-accent { font-size: 3.2rem; }
  .ed-stats-row { flex-wrap: wrap; gap: 16px; }
  .es-div { display: none; }
  .msn-serif { font-size: 2.2rem; }
  .footer-inner { flex-direction: column; gap: 16px; }
}
