/* ==========================================================================
   Ramesh Mofleh Hussaini: black & white edition
   Inter Tight (display/text) + Instrument Serif (italic accents)
   ========================================================================== */
@view-transition { navigation: auto; }

:root {
  --bg: #FFFFFF;
  --paper: #F4F4F1;
  --ink: #0B0B0B;
  --ink-2: #1A1A1A;
  --grey: #6E6E6E;
  --grey-2: #9A9A9A;
  --line: rgba(11, 11, 11, .12);
  --line-light: rgba(255, 255, 255, .16);
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --fa: "Noto Naskh Arabic", "Vazirmatn", Tahoma, serif;
  --fa-ui: "Vazirmatn", "Noto Naskh Arabic", Tahoma, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --sec: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
[lang="fa"] { font-family: var(--fa); letter-spacing: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
main { position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), 860px); }
.center { text-align: center; }
.small { font-size: .85rem; color: var(--grey); }

/* ---------- Scroll progress + cursor ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); z-index: 60; mix-blend-mode: difference; pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 150; transform: translate3d(var(--x, -100px), var(--y, -100px), 0) translate(-50%, -50%) scale(var(--s, 1)); transition: transform .25s var(--ease-out); display: none; }
.has-cursor .cursor { display: block; }
.cursor.hover { --s: 4; }

/* ---------- Type ---------- */
.display, .h-title { font: 500 clamp(2.5rem, 5.6vw, 5rem)/1 var(--sans); letter-spacing: -.035em; }
.display em, .h-title em { font-size: 1.08em; letter-spacing: -.01em; }
.display.xl { font-size: clamp(3.2rem, 8.4vw, 7.6rem); letter-spacing: -.045em; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--grey); max-width: 40em; }
.kicker, .h-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 500 .85rem/1 var(--sans); color: var(--grey); }
.kicker.center, .h-kicker.center { justify-content: center; }
.kicker-num { font: 500 .8rem/1 var(--sans); color: var(--ink); padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; }
.h-kicker.light { color: rgba(255, 255, 255, .6); }
.h-title.light { color: #fff; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lede { margin-top: 22px; }
.sec-head.center { text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; overflow: hidden; isolation: isolate; font: 500 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: color .4s var(--ease), border-color .4s, transform .3s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn::before { content: ""; position: absolute; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; border-radius: 50%; translate: -50% 0; z-index: -1; background: var(--fill, #fff); transition: top .55s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { top: -20%; }
.btn:hover { color: var(--ink); }
.btn:hover svg { transform: translateX(3px) rotate(-45deg); }
.btn:active { transform: scale(.97); }
.btn-outline, .btn-line { background: transparent; color: var(--ink); --fill: var(--ink); }
.btn-outline:hover, .btn-line:hover { color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; --fill: var(--ink); }
.btn-white:hover { color: #fff; border-color: #fff; }
.btn-outline-light, .btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); --fill: #fff; }
.btn-outline-light:hover, .btn-ghost-light:hover { color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .85rem; }
.btn.full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link-arrow, .link-line { display: inline-flex; align-items: center; gap: 10px; font: 500 1rem/1 var(--sans); text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.link-arrow svg, .link-line svg { width: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover svg, .link-line:hover svg { transform: translateX(6px); }
.link-line.light { color: #fff; }
.round-btn { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; transition: background .3s, color .3s; }
.round-btn svg { width: 20px; }
.round-btn:hover { background: #fff; color: var(--ink); }
.tag { display: inline-block; font: 500 .8rem/1 var(--sans); color: var(--grey); margin-bottom: 14px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px var(--gutter); pointer-events: none; transition: transform .6s var(--ease); }
.site-header .bar { pointer-events: auto; max-width: 1400px; margin-inline: auto; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 99px; border: 1px solid transparent; transition: background .5s, border-color .5s, box-shadow .5s; }
.site-header.is-scrolled .bar { background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.site-header.is-hidden { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: italic 400 1.3rem/1 var(--serif); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 .98rem/1.1 var(--sans); letter-spacing: -.02em; }
.brand-fa { font: 400 .78rem/1.4 var(--fa); color: var(--grey); text-align: left; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; font: 500 .9rem/1 var(--sans); text-decoration: none; padding: 10px 14px; border-radius: 99px; transition: background .3s, color .3s; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.menu-toggle i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle i:first-of-type { top: 19px; } .menu-toggle i:last-of-type { top: 26px; }
.menu-open .menu-toggle i:first-of-type { top: 22.5px; transform: rotate(45deg); }
.menu-open .menu-toggle i:last-of-type { top: 22.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: #fff; display: flex; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out), visibility 0s .8s; visibility: hidden; }
.menu:not([hidden]) { display: flex; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-out); }
.menu-inner { width: 100%; padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font: 500 clamp(2.2rem, 10vw, 3.4rem)/1.05 var(--sans); letter-spacing: -.04em; text-decoration: none; transform: translateY(105%); transition: transform .8s var(--ease-out); transition-delay: calc(.1s + var(--i) * .04s); }
.menu-links a[aria-current="page"] { font-family: var(--serif); font-style: italic; font-weight: 400; }
.menu-open .menu-links a { transform: none; }
.menu-links .num { font: 400 .75rem/1 var(--sans); color: rgba(255, 255, 255, .5); }
.menu-foot { display: grid; gap: 8px; margin-top: 36px; }
.menu-foot a:not(.btn) { text-decoration: none; color: rgba(255, 255, 255, .7); }
.menu-foot .btn { margin-top: 12px; justify-self: start; background: #fff; color: var(--ink); border-color: #fff; --fill: var(--ink); }
.menu-foot .btn:hover { color: #fff; }
.menu-fa { font: 400 1.5rem/1.4 var(--fa); margin: 0 0 6px; text-align: left; color: rgba(255, 255, 255, .7); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header .bar { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }
body.menu-open .brand-mark { background: #fff; color: var(--ink); }
body.menu-open .brand-fa { color: rgba(255, 255, 255, .6); }
body.menu-open .menu-toggle { background: #fff; }
body.menu-open .menu-toggle i { background: var(--ink); }

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */
.h-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px 0 0; overflow: hidden; }
.h-grain { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size: 5px 5px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.h-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.h-label { margin: 0; font: 500 .95rem/1.3 var(--sans); }
.h-label i { font-style: normal; color: var(--grey-2); margin: 0 .35em; }
.h-fa { margin: 0; font: 400 1.6rem/1 var(--fa); }
.h-name { margin: clamp(20px, 3vw, 40px) 0 0; font: 600 clamp(4rem, 15.4vw, 15.5rem)/.84 var(--sans); letter-spacing: -.065em; }
.h-name .row { display: block; overflow: hidden; padding-bottom: .05em; }
.h-name .r2 { font-size: .5em; letter-spacing: -.05em; line-height: .95; }
.h-name em { font-weight: 400; letter-spacing: -.02em; font-size: 1.14em; }
.h-name .ch { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; animation-delay: var(--d); }
@keyframes rise { to { transform: none; } }
.h-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; padding: clamp(30px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); }
.h-role { margin: 0; font: 500 clamp(1.6rem, 3.2vw, 2.8rem)/1.1 var(--sans); letter-spacing: -.035em; }
.rotator { position: relative; display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.2em; }
.rotator span { grid-area: 1 / 1; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.rotator span.is-on { transform: none; }
.rotator span.is-out { transform: translateY(-110%); }
.h-intro p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--grey); max-width: 34em; margin: 0; }
.hero-in { opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease-out) forwards; animation-delay: var(--d); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.h-marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.h-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.h-marquee:hover .h-track { animation-play-state: paused; }
.h-track span { display: flex; align-items: center; }
.h-track b { font: 500 clamp(1.4rem, 2.4vw, 2rem)/1 var(--sans); letter-spacing: -.03em; padding: 0 26px; white-space: nowrap; }
.h-track b:nth-child(4n+3) { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.h-track b[lang="fa"] { font-family: var(--fa); }
.h-track i { font-style: normal; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* hero portrait, right half */
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(30px, 4vw, 70px); align-items: stretch; }
.h-hero-grid .h-name { font-size: clamp(3.4rem, 10.4vw, 11rem); }
.h-hero-grid .h-bottom { grid-template-columns: 1fr; gap: 26px; }
.h-portrait { position: relative; margin: 0 0 clamp(40px, 5vw, 64px); min-height: 480px; }
/* no frame: the photo bleeds to the screen edge and melts into the page */
.hp-img { position: absolute; z-index: 1; top: -130px; bottom: calc(-1 * clamp(40px, 5vw, 64px)); left: -4%; right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 10px), 0); transition: transform 1s var(--ease-out); }
.hp-move { position: absolute; inset: 0; overflow: hidden; animation: hpDrift 16s ease-in-out 2.6s infinite alternate; }
.hp-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; filter: blur(14px); transform: scale(1.18) translate3d(4%, 0, 0); animation: hpZoom 2.4s var(--ease-out) .3s forwards; }
@keyframes hpZoom { to { opacity: 1; filter: blur(0); transform: scale(1.02); } }
@keyframes hpDrift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.5%, -1%, 0); } }
@keyframes fadeIn { to { opacity: 1; } }
.hp-badge { position: absolute; z-index: 2; width: clamp(96px, 9vw, 130px); top: 16%; left: 6%; font: 600 10.5px/1 var(--sans); fill: var(--ink); background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .35); opacity: 0; animation: fadeIn .8s ease 1.6s forwards, spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp-badge .hp-badge-r { font: italic 400 26px/1 var(--serif); }
.hp-chip { position: absolute; z-index: 2; right: 0; bottom: 14%; display: grid; gap: 2px; padding: 14px 20px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .4); opacity: 0; animation: fadeUp .9s var(--ease-out) 1.9s forwards, float 6s ease-in-out 2.8s infinite alternate; }
.hp-chip b { font: italic 400 1.35rem/1.1 var(--serif); }
.hp-chip span { font: 500 .8rem/1.3 var(--sans); color: var(--grey); }
@keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (max-width: 860px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-hero-grid .h-name { font-size: clamp(3.4rem, 17vw, 8rem); }
  .h-portrait { min-height: 0; height: 66svh; max-height: 600px; margin: 0 0 30px; order: 2; }
  .hp-img { top: 0; bottom: 0; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 74%, transparent 100%); }
  .hp-badge { left: 0; top: 10%; }
  .hp-chip { right: 0; bottom: 18%; }
}
@media (prefers-reduced-motion: reduce) { .hp-img img { transform: none; opacity: 1; filter: none; } .hp-badge, .hp-chip { opacity: 1; } }
.h-statement { padding: var(--sec) 0; }
/* homepage: moving shelf of book cards */
.shelf { position: relative; overflow: hidden; padding: 24px 0 10px; margin-top: clamp(20px, 3vw, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.shelf-track { display: flex; gap: 22px; width: max-content; padding: 0 11px; animation: shelfMove 70s linear infinite; }
.shelf:hover .shelf-track, .shelf:focus-within .shelf-track { animation-play-state: paused; }
@keyframes shelfMove { to { transform: translateX(-50%); } }
.shelf-card { position: relative; flex: none; width: 260px; display: flex; flex-direction: column; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .5s var(--ease-out), box-shadow .5s; }
/* each card tinted with its own cover */
.shelf-card { overflow: hidden; isolation: isolate; }
.shelf-card::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--cv) center / cover; filter: blur(22px) saturate(1.5); transform: scale(1.1); transition: transform 1.2s var(--ease-out); }
.shelf-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, .62) 52%, rgba(255, 255, 255, .78) 100%); }
.shelf-card:hover::before { transform: scale(1.25); }
.shelf-card .shelf-cover { background: rgba(255, 255, 255, .22); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.shelf-card .shelf-genre { color: rgba(11, 11, 11, .7); }
.shelf-card .shelf-sub { color: rgba(11, 11, 11, .72); }
.shelf-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .35); }
.shelf-new { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 0 5px rgba(11, 11, 11, .12); }
.shelf-cover { display: grid; place-items: center; height: 250px; border-radius: 14px; background: var(--paper); margin-bottom: 20px; }
.shelf-cover img { height: 216px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .55); transition: transform .6s var(--ease-out); }
.shelf-card:hover .shelf-cover img { transform: translateY(-6px) rotate(-2deg) scale(1.04); }
.shelf-genre { margin: 0 0 8px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.shelf-title { margin: 0; font: 600 1.15rem/1.2 var(--sans); letter-spacing: -.02em; text-transform: uppercase; }
.shelf-title [lang="fa"] { font: 600 1.3rem/1.5 var(--fa); text-transform: none; }
.shelf-sub { margin: 6px 0 18px; font: italic 400 1rem/1.3 var(--serif); color: var(--grey); }
.shelf-btn { margin-top: auto; display: block; text-align: center; padding: 14px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .3s, transform .3s; }
.shelf-btn:hover { background: #333; transform: scale(1.03); }
@media (max-width: 600px) { .shelf-card { width: 220px; } .shelf-cover { height: 220px; } .shelf-cover img { height: 186px; } .shelf-track { animation-duration: 55s; } }
@media (prefers-reduced-motion: reduce) { .shelf { overflow-x: auto; } .shelf-track { animation: none; } }
/* who she is: photo under the label, edges melting into the page, text below */
.who-photo { position: relative; width: min(440px, 82vw); aspect-ratio: 415 / 739; margin: 10px auto clamp(40px, 5vw, 70px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.who-move { position: absolute; inset: 0; animation: hpDrift 14s ease-in-out infinite alternate; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; }
.js .who-photo[data-reveal] { opacity: 0; transform: translateY(60px) scale(.94); filter: blur(12px); transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out), filter 1.4s var(--ease-out); }
.js .who-photo[data-reveal].in { opacity: 1; transform: none; filter: none; }
.scrub.big { font: 500 clamp(1.8rem, 4.2vw, 3.8rem)/1.1 var(--sans); letter-spacing: -.035em; margin: 0; max-width: 22em; }
.scrub .w { opacity: .12; transition: opacity .3s linear; }
.scrub .w.on { opacity: 1; }

/* horizontal story */
.h-story { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.h-story-pin { position: relative; z-index: 1; padding: var(--sec) 0; }
/* From Kabul to New York cover, sharp, behind the whole journey section */
.story-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.story-bg i { position: absolute; inset: 0; background-size: cover; background-position: center 38%; animation: storyBg 30s ease-in-out infinite alternate; }
@keyframes storyBg { from { transform: scale(1.02); background-position: center 30%; } to { transform: scale(1.1); background-position: center 48%; } }
.story-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 11, .62) 0%, rgba(11, 11, 11, .25) 50%, rgba(11, 11, 11, .1) 100%), linear-gradient(0deg, rgba(11, 11, 11, .55) 0%, transparent 45%); }
/* cards alternate: Kabul side of the cover (warm sand) / New York side (cool slate) */
.h-story .chapter:nth-child(odd) { --c1: rgba(201, 149, 98, .94); --c2: rgba(120, 78, 42, .94); }
.h-story .chapter:nth-child(even) { --c1: rgba(104, 132, 164, .94); --c2: rgba(30, 50, 74, .94); }
.h-story .chapter, .h-story .chapter.active { background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.h-story .chapter:not(.active) { opacity: .78; }
.h-story .chapter:not(.active):hover { opacity: 1; }
.h-story .chapter.active { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .35); }
.h-story .chapter .ch-n, .h-story .chapter.active .ch-n { color: rgba(255, 255, 255, .7); }
.h-story .chapter p:last-child, .h-story .chapter.active p:last-child { color: rgba(255, 255, 255, .85); }
.h-story .chapter.end .btn { background: #fff; color: var(--ink); border-color: #fff; --fill: var(--ink); }
.h-story .chapter.end .btn:hover { color: #fff; }
.h-story .story-btn { background: rgba(11, 11, 11, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.h-story .h-title, .h-story .h-kicker { text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.h-story-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(30px, 5vh, 56px); }
.h-story-head .h-kicker { width: 100%; margin-bottom: 6px; }
.story-ctrl { display: flex; align-items: center; gap: 10px; }
.story-count { font: italic 400 1.5rem/1 var(--serif); color: rgba(255, 255, 255, .5); margin-right: 8px; font-variant-numeric: tabular-nums; }
.story-count b { font-weight: 400; color: #fff; }
.story-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; color: #fff; font: 500 1rem/1 var(--sans); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease-out); }
.story-btn:hover { background: #fff; color: var(--ink); transform: scale(1.06); }
.story-btn { display: inline-grid; place-items: center; }
.h-story-track { position: relative; display: flex; gap: 20px; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-right: var(--gutter); transition: transform 1.1s var(--ease); will-change: transform; touch-action: pan-y; }
.chapter { flex: none; width: clamp(280px, 30vw, 420px); min-height: clamp(320px, 46vh, 440px); padding: 30px; border: 1px solid var(--line-light); border-radius: var(--r); display: flex; flex-direction: column; cursor: pointer; opacity: .42; transform: scale(.92) translateY(14px); transform-origin: left center; transition: background .7s, color .7s, opacity .8s, transform 1.1s var(--ease), border-color .7s; }
.chapter:hover { opacity: .75; }
.chapter.active { opacity: 1; transform: none; background: #fff; color: var(--ink); border-color: #fff; cursor: default; }
.ch-n { font: 400 .85rem/1 var(--sans); color: rgba(255, 255, 255, .45); }
.chapter.active .ch-n { color: var(--grey); }
.ch-when { margin: auto 0 10px; font: italic 400 clamp(2.4rem, 4vw, 3.6rem)/1 var(--serif); }
.chapter h3 { font: 500 1.5rem/1.15 var(--sans); letter-spacing: -.025em; margin-bottom: 12px; }
.chapter p:last-child { margin: 0; color: rgba(255, 255, 255, .62); font-size: .98rem; }
.chapter.active p:last-child { color: var(--grey); }
/* text inside the active card rises in, staggered */
.chapter .ch-when, .chapter h3, .chapter p:last-child, .chapter .btn { transition: transform .9s var(--ease-out), opacity .9s, color .7s; }
.chapter:not(.active) .ch-when, .chapter:not(.active) h3, .chapter:not(.active) p:last-child, .chapter:not(.active) .btn { transform: translateY(16px); }
.chapter.active .ch-when { transition-delay: .25s; }
.chapter.active h3 { transition-delay: .35s; }
.chapter.active p:last-child, .chapter.active .btn { transition-delay: .45s; }
.chapter.active .ch-when { animation: whenIn 1s var(--ease-out) .2s both; }
@keyframes whenIn { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.chapter.end { justify-content: flex-end; }
.chapter.end .btn { align-self: flex-start; margin-top: 16px; background: var(--ink); color: #fff; border-color: var(--ink); --fill: #fff; }
.chapter.end .btn:hover { color: var(--ink); }
.story-dots { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: clamp(30px, 5vh, 50px) auto 0; display: flex; gap: 8px; }
.sdot { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.sdot::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line-light); }
.sdot span { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #fff; transform-origin: left; transform: scaleX(0); }

/* numbers */
.h-numbers { padding: var(--sec) 0 0; }
.h-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.num { padding: 28px 24px 0 0; display: grid; gap: 12px; align-content: start; }
.num + .num { padding-left: 24px; border-left: 1px solid var(--line); }
.num b { font: 500 clamp(3.4rem, 7vw, 6.4rem)/.9 var(--sans); letter-spacing: -.06em; }
.num span { color: var(--grey); font-size: .95rem; max-width: 16em; }

/* different */
.h-diff { padding: var(--sec) 0; }
.h-sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.h-sec-head.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.h-sec-lede { color: var(--grey); font-size: 1.1rem; margin: 0; }
.diff-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.diff { grid-column: span 2; position: relative; padding: 30px; min-height: 300px; border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; overflow: hidden; transition: background .5s var(--ease), color .5s; }
.diff.d1 { grid-column: span 3; background: var(--ink); color: #fff; }
.diff.d2 { grid-column: span 3; }
.diff:hover { background: var(--ink); color: #fff; }
.diff.d1:hover { background: var(--ink-2); }
.diff-n { font: 400 .85rem/1 var(--sans); opacity: .55; }
.diff h3 { margin-top: auto; font: 500 clamp(1.6rem, 2.4vw, 2.2rem)/1.05 var(--sans); letter-spacing: -.035em; margin-bottom: 12px; }
.diff p { margin: 0; opacity: .7; max-width: 30em; }
.diff::after { content: "↗"; position: absolute; top: 24px; right: 26px; font-size: 1.3rem; opacity: 0; transform: translate(-8px, 8px); transition: all .5s var(--ease); }
.diff:hover::after { opacity: 1; transform: none; }

/* books list */
.h-books { padding: 0 0 var(--sec); }
/* the books heading sits on a moving wall of every cover */
.hb-head { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: #0B0B0B; color: #fff; padding: clamp(110px, 13vw, 180px) 0 clamp(70px, 8vw, 110px); }
.hb-head > .wrap, .hb-head > .shelf { position: relative; z-index: 2; }
.h-books:has(.hb-head) { padding-bottom: 0; }
.hb-head .shelf-card { color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); border-color: rgba(255, 255, 255, .2); }
.hb-head .h-sec-head { margin-bottom: 0; }
.hb-head .h-kicker { color: rgba(255, 255, 255, .7); }
.hb-head .h-title { color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.hb-head .h-sec-lede { color: rgba(255, 255, 255, .82); text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.hb-wall { inset: -12% -10%; }
.hb-wall .cw-plane { justify-content: space-around; }
.hb-wall .cw-row { opacity: 1; transform: none; animation: none; }
.hb-head .cw-shade { background: linear-gradient(90deg, rgba(11, 11, 11, .8) 0%, rgba(11, 11, 11, .5) 50%, rgba(11, 11, 11, .62) 100%); }
.h-books .shelf { margin-top: clamp(40px, 5vw, 70px); }
.book-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.bk { border-bottom: 1px solid var(--line); }
.bk summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 4.5rem 1fr 14rem 4.5rem 44px; align-items: center; gap: 16px; padding: 26px 0; position: relative; transition: padding .5s var(--ease), color .4s; isolation: isolate; }
.bk summary::-webkit-details-marker { display: none; }
.bk summary::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.bk summary:hover { color: #fff; padding-left: 20px; }
.bk summary:hover::before { transform: scaleY(1); }
.bk-n { font: 400 .9rem/1 var(--sans); opacity: .55; }
.bk-t { display: grid; gap: 4px; font: 500 clamp(1.5rem, 3vw, 2.6rem)/1.05 var(--sans); letter-spacing: -.035em; }
.bk-t [lang="fa"] { font: 500 clamp(1.4rem, 2.6vw, 2.2rem)/1.5 var(--fa); text-align: left; letter-spacing: 0; }
.bk-t small { font: italic 400 1.1rem/1.2 var(--serif); letter-spacing: 0; opacity: .7; }
.bk-g, .bk-y { font-size: .92rem; opacity: .7; }
.bk-y { text-align: right; }
.bk-x { position: relative; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; }
.bk-x::before, .bk-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .4s var(--ease); }
.bk-x::after { transform: rotate(90deg); }
.bk details[open] .bk-x::after { transform: rotate(0); }
.bk details[open] summary { color: var(--ink); padding-left: 0; }
.bk details[open] summary::before { transform: scaleY(0); }
.bk-body { display: grid; grid-template-columns: 4.5rem 1fr 1fr; column-gap: 16px; padding: 0 0 40px; animation: fadeUp .6s var(--ease-out); }
.bk-body > * { grid-column: 2 / 4; }
.bk-hook { font: italic 400 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--serif); margin-bottom: 14px; max-width: 30em; }
.bk-body > p:not(.bk-hook) { color: var(--grey); max-width: 46em; }
.bk-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 40px; margin: 10px 0 0; }
.bk-meta dt { font-size: .8rem; color: var(--grey); }
.bk-meta dd { margin: 0; font-weight: 500; }

/* poetry */
.h-poetry { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.verse-slider { position: relative; max-width: 1060px; margin: 0 auto 50px; display: grid; grid-template-columns: minmax(0, 1fr); }
.verse { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.verse.is-active { opacity: 1; visibility: visible; transition: opacity .6s; }
.verse blockquote { margin: 0 0 30px; font: 400 clamp(2rem, 4.6vw, 4rem)/1.12 var(--serif); letter-spacing: -.01em; }
.verse[lang="fa"] blockquote { font: 400 clamp(1.7rem, 3.4vw, 2.8rem)/1.9 var(--fa); }
.v-line { display: block; }
.v-line .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.3em); transition: opacity .9s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--wi) * 55ms); }
.is-active .v-line .w, .ink-in .v-line .w { opacity: 1; filter: none; transform: none; }
.verse figcaption { font-size: .95rem; color: rgba(255, 255, 255, .6); }
.verse figcaption a { color: #fff; }
.verse-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; color: #fff; }
.verse-dots { display: flex; gap: 6px; }
.verse-dots button { width: 34px; height: 24px; position: relative; }
.verse-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .25); }
.verse-dots button::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.verse-dots button[aria-current="true"]::after { animation: progressbar 7s linear forwards; }
/* homepage "Her words": tulip field frames a box with the book's cover, the matching paper card inside */
.hp-tulips { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.hpt-bg { position: absolute; inset: -3%; z-index: -1; background-size: cover; background-position: center 60%; animation: phPhoto 30s ease-in-out infinite alternate; }
.hpt-bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 11, .25); }
.hp-tulips .h-kicker { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.verse-box { max-width: 1100px; border-radius: 28px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .25); background: #0B0B0B; }
.verse-box .verse { position: relative; padding: clamp(36px, 5vw, 64px) 20px 30px; display: grid; justify-items: center; transition: opacity 1s, visibility 0s 1s; }
.verse-box .verse.is-active { transition: opacity 1s; }
.vb-bg { position: absolute; inset: -40px; z-index: 0; background-size: cover; background-position: center 35%; filter: blur(10px) saturate(1.1) brightness(.75); transform: scale(1.05); transition: transform 9s ease-out; }
.verse.is-active .vb-bg { transform: scale(1.15); }
.verse-box .paper-card { z-index: 1; width: min(100%, 400px); transform: rotate(-1.2deg); }
.verse-box .paper-card blockquote { margin: 0; text-align: center; }
.js .verse-box .ph-l { clip-path: inset(-10% 100% -10% 0); opacity: .15; }
.js .verse-box blockquote.fa .ph-l { clip-path: inset(-10% 0 -10% 100%); }
.verse-box .verse.is-active .ph-l { animation: phWrite 1.5s cubic-bezier(.45, .05, .3, 1) both; animation-delay: calc(.6s + var(--k) * 1.3s); }
.verse-box figcaption { position: relative; z-index: 1; margin-top: 22px; padding: 8px 18px; border-radius: 99px; background: rgba(11, 11, 11, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: rgba(255, 255, 255, .8); }
.verse-box .verse-nav { position: relative; z-index: 2; grid-area: 2 / 1; margin: 0; padding: 0 0 30px; }
.verse-box .verse-dots button[aria-current="true"]::after { animation-duration: var(--vdur, 6s); }
.verse-box .verse, .verse-box .verse.is-active { transition-duration: .5s; }
.hp-tulips .link-line { text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .js .verse-box .ph-l { clip-path: none; opacity: 1; } }
.verse-slider.paused .verse-dots button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes progressbar { to { transform: scaleX(1); } }

/* education */
.h-edu { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: var(--sec) 0; background: linear-gradient(180deg, #fff 0%, #eef3fb 45%, #e6eef9 100%); }
.h-edu > .wrap { position: relative; z-index: 1; }
/* drifting education symbols: caps, books, pencils, letters in English & Dari */
.edu-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.edu-sky::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, rgba(61, 110, 196, .16), transparent 65%); animation: eduGlow 9s ease-in-out infinite alternate; }
@keyframes eduGlow { to { transform: translate3d(-6vw, 6vw, 0) scale(1.15); } }
.edu-sky span { position: absolute; left: var(--x); bottom: -80px; width: var(--s); height: var(--s); color: rgba(46, 91, 168, .32); display: grid; place-items: center; animation: eduFloat var(--d) linear var(--dl) infinite; }
.edu-sky span:nth-child(3n) { color: rgba(46, 91, 168, .2); }
.edu-sky svg { width: 100%; height: 100%; }
.edu-sky b { font: italic 400 calc(var(--s) * 1.1)/1 var(--serif); }
.edu-sky b[lang="fa"] { font: 600 calc(var(--s) * .95)/1 var(--fa); font-style: normal; }
@keyframes eduFloat { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate3d(28px, -55vh, 0) rotate(calc(var(--r) * .5)); } 90% { opacity: 1; } 100% { transform: translate3d(-12px, -115vh, 0) rotate(var(--r)); opacity: 0; } }
/* school promo card under the heading */
.edu-promo { display: grid; gap: 10px; justify-items: start; margin-top: clamp(30px, 4vw, 50px); max-width: 520px; padding: clamp(24px, 3vw, 34px); border-radius: 26px; background: #fff; border: 1px solid rgba(46, 91, 168, .18); box-shadow: 0 40px 80px -40px rgba(30, 60, 120, .45); text-decoration: none; color: var(--ink); transition: transform .6s var(--ease-out), box-shadow .6s; }
.edu-promo:hover { transform: translateY(-6px); box-shadow: 0 50px 90px -40px rgba(30, 60, 120, .6); }
.edu-logo { justify-self: center; width: min(100%, 300px); margin-bottom: 6px; }
.edu-logo img { width: 100%; height: auto; mix-blend-mode: multiply; animation: logoFloat 6s ease-in-out infinite alternate; }
@keyframes logoFloat { to { transform: translateY(-8px) rotate(-1deg); } }
.edu-badge { padding: 7px 14px; border-radius: 99px; background: #2e5ba8; color: #fff; font: 600 .74rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.edu-promo strong { font: 600 clamp(1.4rem, 2.2vw, 1.8rem)/1.15 var(--sans); letter-spacing: -.03em; }
.edu-fa { font: 400 1.25rem/1.5 var(--fa); color: #2e5ba8; }
.edu-pitch { color: #4a5568; font-size: 1rem; line-height: 1.6; }
.edu-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.edu-points span { padding: 8px 13px; border-radius: 99px; border: 1px solid rgba(46, 91, 168, .25); color: #2e5ba8; font: 500 .82rem/1 var(--sans); background: rgba(46, 91, 168, .06); }
.edu-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 .9rem/1 var(--sans); }
.edu-cta svg { width: 16px; transition: transform .4s var(--ease-out); }
.edu-promo:hover .edu-cta svg { transform: translateX(4px); }
.h-edu .tags li { background: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .edu-sky span { animation: none; opacity: .5; bottom: auto; top: calc(var(--x) * .8); } }
.h-edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.h-edu-body .lead { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.35 var(--sans); letter-spacing: -.02em; }
.h-edu-body > p:not(.lead) { color: var(--grey); }
.tags { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: .92rem; transition: background .3s, color .3s; }
.tags li:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* heritage */
.h-heritage { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: var(--sec) 0; color: #fff; }
.h-heritage > .wrap { position: relative; z-index: 1; }
/* three panels, in journey order: Kabul | Herat | New York */
.her-bg { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: 29.5fr 41.5fr 29fr; background: #0B0B0B; }
.her-p { position: relative; overflow: hidden; font-style: normal; }
.her-bg { gap: 6px; }
.her-p { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.her-p b { position: absolute; inset: 0; background-size: cover; animation: phPhoto 28s ease-in-out infinite alternate; }
.p1 b { background-position: 50% 60%; }
.p2 b { background-position: 50% 45%; animation-delay: -9s; }
.p3 b { background-position: 50% 40%; animation-delay: -18s; }
@media (max-width: 600px) { .her-bg { grid-template-columns: 1fr 1fr 1fr; } }
.her-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 11, .72) 0%, rgba(11, 11, 11, .45) 45%, rgba(11, 11, 11, .78) 100%); }
.h-heritage .h-kicker { color: rgba(255, 255, 255, .78); }
.h-heritage .h-title { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.h-heritage .h-cols p { color: rgba(255, 255, 255, .88); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.h-heritage .h-cols a { color: #fff; }
.h-heritage .route-line { background: rgba(255, 255, 255, .35); }
.h-heritage .route-line span { background: #fff; }
.h-heritage .stop::before { background: transparent; border-color: #fff; }
.h-heritage .route.in .stop::before { background: #fff; }
.h-heritage .stop b, .h-heritage .stop i { white-space: nowrap; }
.h-heritage .stop b { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.h-heritage .stop i { color: rgba(255, 255, 255, .75); }
.route { position: relative; height: 150px; margin: clamp(40px, 6vw, 80px) 0 50px; }
.route-line { position: absolute; left: 4%; right: 4%; top: 30px; height: 1px; background: var(--line); }
.route-line span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease-out) .2s; }
.route.in .route-line span { transform: scaleX(1); }
.stop { position: absolute; left: var(--x); top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 2px; padding-top: 50px; }
.stop::before { content: ""; position: absolute; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); transition: background .5s 1s; z-index: 1; }
.route.in .stop::before { background: var(--ink); }
.stop b { font: 500 clamp(1.3rem, 2.4vw, 2rem)/1 var(--sans); letter-spacing: -.03em; }
.stop i { font-style: normal; color: var(--grey); font-size: .95rem; }
.stop:first-child { translate: -10% 0; justify-items: start; }
.stop.end { translate: -90% 0; justify-items: end; }
.h-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); color: var(--grey); font-size: 1.08rem; }
.h-cols a { color: var(--ink); }

/* media */
.h-media { padding: 0 0 var(--sec); }
.h-media-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.invite { background: var(--ink); color: #fff; border-radius: var(--r); padding: clamp(30px, 4vw, 56px); }
.invite > p { color: rgba(255, 255, 255, .7); }
.invite .h-title { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 20px; }
.topics-mini { list-style: none; padding: 0; margin: 20px 0 0; }
.topics-mini li { padding: 12px 0; border-top: 1px solid var(--line-light); font-size: 1.05rem; }
.record { list-style: none; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--paper); border-radius: var(--r); display: grid; align-content: start; }
.record li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.record li:last-child { border-bottom: 0; }
.record span { font: italic 400 1.2rem/1.2 var(--serif); color: var(--grey); }
.record b { display: block; font: 500 1.25rem/1.25 var(--sans); letter-spacing: -.02em; margin-bottom: 2px; color: var(--ink); }
.record div { color: var(--grey); font-size: .95rem; }

/* ---------- Newsletter ---------- */
.letters { background: var(--ink); color: #fff; padding: clamp(90px, 10vw, 140px) 0; }
.letters .display { color: #fff; }
.letters .kicker { color: rgba(255, 255, 255, .6); }
.letters .kicker-num { color: #fff; border-color: var(--line-light); }
.letters-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.letters .lede { color: rgba(255, 255, 255, .65); margin-top: 20px; }
.letters-form { display: grid; gap: 18px; }
.letters-form .btn { justify-self: start; background: #fff; color: var(--ink); border-color: #fff; --fill: var(--ink); }
.letters-form .btn:hover { color: #fff; }
.field { display: grid; gap: 8px; }
.field span { font: 500 .82rem/1 var(--sans); color: var(--grey); }
.field input, .field textarea { width: 100%; font: 400 1.1rem/1.5 var(--sans); color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; transition: border-color .3s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: currentColor; }
.letters .field span { color: rgba(255, 255, 255, .55); }
.letters .field input { border-color: rgba(255, 255, 255, .25); }
.field.invalid input, .field.invalid textarea { border-color: #C0392B; }
.form-note { font-size: .85rem; color: var(--grey); margin: 0; }
.letters .form-note { color: rgba(255, 255, 255, .5); }
.form-note.ok { color: inherit; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: clamp(60px, 7vw, 100px) 0 30px; border-top: 1px solid var(--line-light); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer-name { font: 500 2.4rem/1 var(--sans); letter-spacing: -.04em; color: #fff; margin-bottom: 6px; }
.footer-name em { font-size: 1.08em; }
.footer-fa { font: 400 1.3rem/1.6 var(--fa); color: rgba(255, 255, 255, .6); text-align: left; }
.footer-brand p:not(.footer-name):not(.footer-fa) { max-width: 26em; }
.footer-brand .btn { margin-top: 10px; font-family: var(--fa-ui); }
.footer-col h2 { font: 500 .85rem/1 var(--sans); color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .82rem; color: rgba(255, 255, 255, .45); }
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; padding: clamp(150px, 19vh, 210px) 0 clamp(60px, 8vw, 100px); }
.page-hero .lede { margin-top: 26px; }
.page-hero .filters { margin-top: 40px; }
.girih, .shelf-sky { display: none; }
/* books page: animated wall of every cover */
.books-hero { background: #0B0B0B; color: #fff; overflow: hidden; min-height: min(92svh, 900px); display: flex; align-items: flex-end; isolation: isolate; }
.books-hero > .wrap { position: relative; z-index: 2; }
.books-hero .lede { color: rgba(255, 255, 255, .78); max-width: 620px; }
.books-hero .kicker { color: rgba(255, 255, 255, .7); }
.books-hero .kicker-num { color: #fff; border-color: rgba(255, 255, 255, .3); }
.books-hero h1 { color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.books-hero .filters button { border-color: rgba(255, 255, 255, .25); color: #fff; background: rgba(11, 11, 11, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.books-hero .filters button:hover { border-color: #fff; }
.books-hero .filters button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.cover-wall { position: absolute; inset: -18% -12%; z-index: 0; perspective: 1600px; pointer-events: none; }
.cw-plane { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; transform-style: preserve-3d;
  transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -18px), 0) rotateX(calc(16deg + var(--my, 0) * 3deg)) rotateY(calc(var(--mx, 0) * 4deg)) rotateZ(-9deg) scale(1.08);
  transition: transform 1.2s var(--ease-out); }
.cw-row { opacity: 0; transform: translateY(60px); animation: cwIn 1.6s var(--ease-out) calc(.15s + var(--i) * .14s) forwards; }
.cw-track { display: flex; width: max-content; animation: cwMove var(--d, 80s) linear infinite; }
.cw-row.rev .cw-track { animation-direction: reverse; }
.cw-track img { width: clamp(120px, 11vw, 196px); aspect-ratio: 2 / 3; object-fit: cover; margin-right: 22px; border-radius: 6px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); filter: saturate(.9) brightness(.82); animation: cwGlow 9s ease-in-out infinite; animation-delay: calc(var(--i) * -2.3s); }
.cw-track img:nth-child(3n) { animation-delay: calc(var(--i) * -2.3s - 3s); }
.cw-track img:nth-child(3n+1) { animation-delay: calc(var(--i) * -2.3s - 6s); }
@keyframes cwMove { to { transform: translateX(-50%); } }
@keyframes cwIn { to { opacity: 1; transform: none; } }
@keyframes cwGlow { 0%, 100% { filter: saturate(.85) brightness(.72); } 50% { filter: saturate(1.05) brightness(1); } }
.cw-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, #0B0B0B 4%, rgba(11, 11, 11, .82) 34%, rgba(11, 11, 11, .2) 70%, rgba(11, 11, 11, .55) 100%), linear-gradient(90deg, rgba(11, 11, 11, .78) 0%, rgba(11, 11, 11, .35) 55%, rgba(11, 11, 11, 0) 100%); }
/* books page: book-by-book slideshow, each slide on its own cover */
.bk-show { position: relative; background: #0B0B0B; color: #fff; padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 9vw, 130px); }
.bks-list { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: grid; gap: clamp(22px, 3vw, 40px); }
.bks-slide { position: relative; overflow: hidden; color: #fff; border-radius: calc(var(--r) + 8px); border: 1px solid rgba(255, 255, 255, .12); background: #121212; min-height: clamp(560px, 46vw, 680px); display: flex; align-items: center; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.bks-slide.is-hidden { display: none; }
.js .bks-slide[data-reveal] { transform: translateY(60px) scale(.97); transition-delay: 0s; }
.js .bks-slide[data-reveal].in { transform: none; }
.bks-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2) brightness(.42); }
/* the cover itself, sharp and whole, filling the card's height on the right */
.bks-art { position: absolute; top: 0; right: 0; height: 100%; width: auto; aspect-ratio: 2 / 3; max-width: 62%; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); transform: scale(1.04); transform-origin: right center; transition: transform 9s linear; }
.bks-slide.in .bks-art { transform: scale(1.1); }
.bks-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 11, .96) 0%, rgba(11, 11, 11, .86) 38%, rgba(11, 11, 11, .2) 66%, rgba(11, 11, 11, 0) 100%); }
.bks-grid { position: relative; padding: clamp(32px, 5vw, 70px); max-width: 720px; }
.bks-no { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font: italic 400 1.4rem/1 var(--serif); color: rgba(255, 255, 255, .55); }
.bks-no b { font-weight: 400; color: #fff; }
.bks-no span { font: 500 .78rem/1 var(--sans); font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; color: rgba(255, 255, 255, .8); }
.bks-title { margin: 0; font: 500 clamp(2.6rem, 5.4vw, 5rem)/.98 var(--sans); letter-spacing: -.045em; }
.bks-title.fa { font: 600 clamp(2.4rem, 5vw, 4.4rem)/1.3 var(--fa); letter-spacing: 0; }
.bks-sub { margin: 12px 0 0; font: italic 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--serif); color: rgba(255, 255, 255, .75); }
.bks-hook { margin: 24px 0 0; font: italic 400 clamp(1.25rem, 1.9vw, 1.6rem)/1.35 var(--serif); color: #fff; max-width: 640px; padding-left: 18px; border-left: 2px solid #fff; }
.bks-desc { margin-top: 20px; max-width: 640px; }
.bks-desc p { margin: 0 0 12px; color: rgba(255, 255, 255, .72); font-size: 1rem; line-height: 1.65; }
.bks-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 28px; }
.bks-meta li { font: 500 .82rem/1 var(--sans); padding: 9px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
/* entrance choreography for the active slide */
.js .bks-slide .bks-copy > * { opacity: 0; transform: translateY(30px); }
.js .bks-slide.in .bks-copy > * { animation: bksUp .9s var(--ease-out) both; }
.js .bks-slide.in .bks-copy > :nth-child(2) { animation-delay: .1s; }
.js .bks-slide.in .bks-copy > :nth-child(3) { animation-delay: .18s; }
.js .bks-slide.in .bks-copy > :nth-child(4) { animation-delay: .26s; }
.js .bks-slide.in .bks-copy > :nth-child(5) { animation-delay: .34s; }
.js .bks-slide.in .bks-copy > :nth-child(6) { animation-delay: .42s; }
.js .bks-slide.in .bks-copy > :nth-child(7) { animation-delay: .5s; }
@keyframes bksUp { from { opacity: 0; transform: translateY(30px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* book page: buy strip */
.buy-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.buy-strip p { margin: 0; }
.buy-strip p.buy-k { font: 500 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.buy-strip p.buy-t { margin-top: 10px; font: italic 400 1.9rem/1.1 var(--serif); color: var(--ink); }
.buy-strip p.buy-f { margin-top: 8px; font: 400 .9rem/1.3 var(--sans); color: var(--grey); }
@media (max-width: 860px) {
  .bks-slide { min-height: 0; display: block; }
  .bks-art { top: 0; left: 0; right: 0; width: 100%; max-width: none; height: 380px; aspect-ratio: auto; object-position: center 20%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); transform-origin: center top; }
  .bks-shade { background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0, rgba(11, 11, 11, .15) 200px, rgba(11, 11, 11, .92) 360px, rgba(11, 11, 11, .97) 100%); }
  .bks-grid { padding: 300px 22px 26px; }
}
body:has(.books-hero) .site-header .bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 11px 18px; border-radius: 99px; border: 1px solid var(--line); font: 500 .9rem/1 var(--sans); transition: all .3s; }
.filters button sup { font-size: .65rem; margin-left: 3px; opacity: .6; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.book3d { --w: 180px; --t: 20px; position: relative; display: block; width: var(--w); aspect-ratio: 2 / 3; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.book3d > span { position: absolute; display: block; }
.b-front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 1px 4px 4px 1px; overflow: hidden; }
.b-front img { width: 100%; height: 100%; object-fit: cover; }
.b-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.3) 0, rgba(255,255,255,.2) 1.2%, rgba(0,0,0,.08) 3%, transparent 7%); pointer-events: none; }
.b-back { inset: 0; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: var(--spine); }
.b-spine { top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t); transform: rotateY(-90deg); background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.14) 40%, rgba(0,0,0,.25)), var(--spine); }
.b-pages { top: 3px; bottom: 3px; right: calc(var(--t) / -2 + 3px); width: calc(var(--t) - 2px); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f6f6f3 0 1px, #dcdcd8 1px 2px); }
.book3d.xl { --w: clamp(220px, 28vw, 360px); }

.library { padding: 0 0 var(--sec); }
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 50px 24px; }
.lib-item.is-hidden { display: none; }
.lib-link { display: grid; gap: 22px; text-decoration: none; }
.lib-book { display: grid; place-items: center; padding: 44px 0 34px; background: var(--paper); border-radius: var(--r); perspective: 1200px; overflow: hidden; transition: background .5s; }
.lib-link:hover .lib-book { background: var(--ink); }
.lib-book .book3d { --w: 160px; transform: rotateY(-18deg) rotateX(2deg); }
.lib-link:hover .book3d { transform: rotateY(-34deg) rotateX(4deg) translateY(-8px) scale(1.04); }
.lib-info { display: grid; gap: 6px; position: relative; padding-left: 40px; }
.lib-no { position: absolute; left: 0; top: 4px; font-size: .85rem; color: var(--grey); }
.lib-genre { font-size: .82rem; color: var(--grey); }
.lib-title { font: 500 1.7rem/1.1 var(--sans); letter-spacing: -.03em; }
.lib-title [lang="fa"] { font: 500 1.45rem/1.6 var(--fa); }
.lib-sub { font: italic 400 1.1rem/1.3 var(--serif); color: var(--grey); }
.lib-hook { color: var(--grey); font-size: .96rem; }
.lib-meta { font-size: .8rem; color: var(--grey); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }

.book-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: clamp(120px, 15vh, 160px) 0 clamp(60px, 8vw, 100px); background: #0B0B0B; color: #fff; overflow: hidden; isolation: isolate; }
.book-hero > .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
/* full-screen 3D cover background */
.book-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bhb-fill { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.2) brightness(.35); }
.bhb-stage { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% 40%; }
.bhb-plane { position: absolute; inset: 7% 2% 2% 6%; transform-style: preserve-3d; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0) rotateX(calc(7deg + var(--my, 0) * -6deg)) rotateY(calc(-16deg + var(--mx, 0) * 10deg)) rotateZ(-1.5deg);
  transition: transform 1.1s var(--ease-out); box-shadow: 0 80px 160px -40px #000; animation: bhbIn 2s var(--ease-out) backwards; }
.bhb-plane img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(1.08) brightness(.9); animation: bhbFloat 16s ease-in-out infinite alternate; }
.bhb-glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); background-size: 250% 100%; animation: bhbGlare 7s ease-in-out 1.2s infinite; mix-blend-mode: screen; }
@keyframes bhbIn { from { opacity: 0; transform: translate3d(0, 60px, -400px) rotateX(24deg) rotateY(-30deg) rotateZ(-4deg) scale(1.2); } }
@keyframes bhbFloat { from { transform: scale(1) translateY(0); } to { transform: scale(1.07) translateY(-2%); } }
@keyframes bhbGlare { 0% { background-position: 150% 0; } 55%, 100% { background-position: -60% 0; } }
.bhb-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 11, .15) 0%, rgba(11, 11, 11, .3) 42%, rgba(11, 11, 11, .78) 100%), linear-gradient(0deg, #0B0B0B 0%, transparent 22%); }
@media (max-width: 860px) {
  .bhb-plane { inset: 4% -10% 42% -10%; }
  .bhb-shade { background: linear-gradient(0deg, #0B0B0B 46%, rgba(11, 11, 11, .7) 58%, rgba(11, 11, 11, .25) 80%, rgba(11, 11, 11, .15) 100%); }
}
.book-hero .crumbs, .book-hero .bh-by, .book-hero .bh-formats { color: rgba(255, 255, 255, .65); }
.book-hero .crumbs a { color: #fff; }
.book-hero .bh-sub { color: rgba(255, 255, 255, .78); }
.book-hero .bh-title, .book-hero .bh-hook { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.book-hero .btn-gold { background: #fff; border-color: #fff; color: var(--ink); --fill: var(--ink); }
.book-hero .btn-gold:hover { color: #fff; }
.book-hero .bh-visual::after { background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .75), transparent 70%); }
body:has(.book-hero) .site-header .bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.book-hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.bh-visual { display: grid; place-items: center; perspective: 1600px; position: relative; padding: 20px 0; }
.bh-visual::after { content: ""; position: absolute; left: 22%; right: 18%; bottom: 0; height: 30px; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.35), transparent 70%); filter: blur(8px); }
.bh-visual .book3d { --rx: 0deg; --ry: 0deg; transform: rotateY(calc(-22deg + var(--rx))) rotateX(var(--ry)); transition: transform .6s var(--ease-out); }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--grey); margin-bottom: 22px; }
.crumbs a { color: var(--ink); }
.bh-title { font: 500 clamp(2.8rem, 6vw, 5.4rem)/.98 var(--sans); letter-spacing: -.045em; }
.bh-title.fa { font: 500 clamp(2.4rem, 5vw, 4.2rem)/1.5 var(--fa); text-align: left; letter-spacing: 0; }
.bh-alt { font: 400 1.8rem/1.6 var(--fa); margin: 6px 0 0; text-align: left; }
.bh-sub { font: italic 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.2 var(--serif); color: var(--grey); margin: 12px 0 0; }
.bh-by { font-size: .95rem; color: var(--grey); margin: 22px 0 18px; }
.bh-hook { font: 400 clamp(1.2rem, 1.7vw, 1.45rem)/1.45 var(--sans); letter-spacing: -.015em; max-width: 30em; }
.bh-formats { margin-top: 18px; font-size: .88rem; color: var(--grey); }
.book-body { padding: var(--sec) 0; }
.book-body-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.book-synopsis p { font-size: 1.15rem; line-height: 1.75; color: #2a2a2a; }
.dropcap::first-letter { float: left; font: 400 5.4em/.78 var(--serif); padding: .06em .1em 0 0; }
.book-facts { position: sticky; top: 100px; background: var(--paper); padding: 28px; border-radius: var(--r); }
.book-facts h2 { font: 500 1rem/1 var(--sans); margin-bottom: 16px; }
.book-facts dl { margin: 0 0 22px; }
.book-facts dl div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.book-facts dt { color: var(--grey); }
.book-facts dd { margin: 0; font-weight: 500; }
.book-excerpt { position: relative; background: var(--ink); color: #fff; padding: clamp(120px, 16vw, 200px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.book-excerpt > .wrap { position: relative; }
/* the lower half of the same cover (the hero shows the upper part), mirrored 3D tilt */
.bx-bg { position: absolute; inset: 0; z-index: -1; perspective: 1300px; }
.bx-plane { position: absolute; inset: 6% 6% 6% 2%; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 80px 160px -40px #000;
  transform: rotateX(calc(-6deg + var(--bp, 0) * 6deg)) rotateY(14deg) rotateZ(1.2deg); transition: transform .3s linear; }
.bx-plane img { width: 100%; height: 130%; object-fit: cover; object-position: center 100%; transform: translateY(calc(var(--bp, 0) * -18%)); filter: saturate(1.05) brightness(.85); }
.bx-shade { position: absolute; inset: 0; background: radial-gradient(60% 62% at 50% 50%, rgba(11, 11, 11, .86), rgba(11, 11, 11, .5) 70%, rgba(11, 11, 11, .22) 100%), linear-gradient(0deg, #0B0B0B 0%, transparent 18%, transparent 82%, #0B0B0B 100%); }
.book-excerpt .excerpt, .book-excerpt .excerpt-note, .book-excerpt .excerpt-src { text-shadow: 0 2px 24px rgba(0, 0, 0, .8); }
@media (max-width: 860px) { .bx-plane { inset: 4% -12%; } }
.book-excerpt .kicker { color: rgba(255, 255, 255, .6); }
.book-excerpt .kicker-num { color: #fff; border-color: var(--line-light); }
.excerpt { margin: 0 0 24px; font: 400 clamp(1.9rem, 3.8vw, 3.2rem)/1.2 var(--serif); }
.excerpt.fa { font: 400 clamp(1.6rem, 3vw, 2.4rem)/2 var(--fa); }
.excerpt-note { font: italic 400 1.2rem/1.5 var(--serif); max-width: 34em; margin-inline: auto; opacity: .8; }
.excerpt-src { font-size: .85rem; opacity: .55; }
.related { padding: var(--sec) 0; }
.related .display { margin-bottom: 44px; }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-grid a { display: grid; justify-items: center; gap: 8px; padding: 40px 20px 30px; background: var(--paper); border-radius: var(--r); text-decoration: none; text-align: center; perspective: 1200px; transition: background .5s, color .5s; }
.related-grid a:hover { background: var(--ink); color: #fff; }
.related-grid .book3d { --w: 130px; transform: rotateY(-18deg); margin-bottom: 16px; }
.r-genre { font-size: .82rem; opacity: .6; }
.r-title { font: 500 1.35rem/1.15 var(--sans); letter-spacing: -.025em; }
.r-title [lang="fa"], .fa-books .r-title { font-family: var(--fa); font-size: 1.2rem; line-height: 1.6; }
.book-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); }
.book-pager a { text-decoration: none; display: grid; gap: 6px; font: 500 1.25rem/1.2 var(--sans); letter-spacing: -.02em; }
.book-pager a.r { text-align: right; justify-items: end; }
.book-pager small { display: inline-flex; align-items: center; gap: 6px; font: 400 .85rem/1 var(--sans); color: var(--grey); }
.book-pager small svg { width: 14px; }
.book-pager .pager-all { font-size: .9rem; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 99px; }

.about-hero-grid, .fa-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 90px); align-items: end; }
/* about: every photo of her, full-screen, slow cinematic motion */
.about-full { min-height: 100svh; display: flex; align-items: flex-end; background: #0B0B0B; color: #fff; overflow: hidden; isolation: isolate; padding-bottom: clamp(50px, 7vw, 90px); }
.about-full > .wrap { position: relative; z-index: 2; }
.reel-imgs { position: absolute; inset: 0; z-index: 0; }
/* moving photo wall: tilted columns of her photos, scrolling up / down */
.about-full { align-items: center; background: radial-gradient(120% 100% at 75% 40%, #2a2a2a 0%, #111 55%, #0B0B0B 100%); }
.about-full-grid { grid-template-columns: 1fr; }
.about-full-copy { max-width: 600px; }
.pw { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pw-plane { position: absolute; top: -30%; bottom: -30%; left: 36%; right: -8%; display: flex; gap: 18px; transform: rotate(8deg); }
.pw-col { flex: 1; min-width: 0; overflow: hidden; }
.pw-track { display: flex; flex-direction: column; gap: 18px; animation: pwUp var(--d) linear infinite; }
.pw-col.down .pw-track { animation-name: pwDown; }
.about-full:hover .pw-track { animation-play-state: paused; }
@keyframes pwUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes pwDown { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
.pw figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); background: #222; }
.pw img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--ease-out); }
.pw figure:hover img { transform: scale(1.08); }
.about-full .reel-shade { background: linear-gradient(90deg, rgba(11, 11, 11, .97) 0%, rgba(11, 11, 11, .9) 30%, rgba(11, 11, 11, .35) 52%, rgba(11, 11, 11, .05) 75%), linear-gradient(0deg, rgba(11, 11, 11, .5) 0%, transparent 25%); }
@media (max-width: 860px) {
  .pw-plane { left: -10%; right: -10%; }
  .about-full .reel-shade { background: linear-gradient(0deg, rgba(11, 11, 11, .97) 0%, rgba(11, 11, 11, .85) 45%, rgba(11, 11, 11, .3) 75%); }
}
@media (prefers-reduced-motion: reduce) { .pw-track { animation: none; } }
/* about bio: each chapter framed by colourful doodles about its heading */
.bio-ch { position: relative; isolation: isolate; padding: 10px 0 30px; }
.doodles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.doodles svg { position: absolute; left: var(--x); top: var(--y); width: clamp(44px, 5vw, 70px); fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; transform: rotate(var(--r)); animation: doodleBob 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.8s); }
.doodles svg path, .doodles svg rect, .doodles svg circle { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 2.2s var(--ease-out); transition-delay: calc(var(--i) * .15s); }
.bio-ch.drawn .doodles svg path, .bio-ch.drawn .doodles svg rect, .bio-ch.drawn .doodles svg circle { stroke-dashoffset: 0; }
.doodles svg path[stroke-dasharray] { stroke-dashoffset: 0; }
/* "A daughter of Herat": her clearest portrait behind the whole passage */
.bio-photo { padding: clamp(28px, 4vw, 48px); margin: 0 0 30px; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); }
.bio-photo .doodles { z-index: 1; }
.bio-photo { background: #fbfaf7; }
.bp-bg { position: absolute; inset: 0; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 62%); mask-image: linear-gradient(90deg, transparent 38%, #000 62%); background-size: auto 175%; background-repeat: no-repeat; background-position: right 0 top 20%; animation: phPhoto 24s ease-in-out infinite alternate; }
@media (max-width: 860px) { .bp-bg { background-size: cover; background-position: 50% 20%; -webkit-mask-image: none; mask-image: none; } }
.bp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .86) 52%, rgba(255, 255, 255, .35) 80%, rgba(255, 255, 255, .1) 100%); }
.bio-photo .bio-h, .bio-photo p { position: relative; z-index: 2; max-width: 62%; }
.bio-photo .doodles svg { opacity: .9; }
@media (max-width: 860px) {
  .bp-bg::after { background: linear-gradient(0deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .88) 70%, rgba(255, 255, 255, .5) 100%); }
  .bio-photo .bio-h, .bio-photo p { max-width: none; }
}
/* "Economist, professor…": teacher illustration at the board, animated */
.teach-fig { position: relative; float: right; width: min(40%, 340px); margin: 0 0 16px 26px; shape-outside: margin-box; opacity: 0; transform: translateX(80px) rotate(6deg); transition: opacity 1s var(--ease-out), transform 1.2s cubic-bezier(.34, 1.56, .64, 1); }
.bio-ch.drawn .teach-fig { opacity: 1; transform: none; }
.teach-fig img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; transform-origin: 40% 95%; animation: teachSway 4s ease-in-out 1.4s infinite alternate; }
@keyframes teachSway { from { transform: rotate(-1.2deg) translateY(0); } to { transform: rotate(1.2deg) translateY(-4px); } }
/* chalk lines rewrite themselves across the board, line after line */
.chalk { position: absolute; left: 53%; width: 31.5%; top: 6.8%; height: 24%; pointer-events: none; }
.chalk i { position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: #fdf7c8; box-shadow: 0 0 6px rgba(253, 247, 200, .8); transform-origin: left; transform: scaleX(0); }
.chalk i:nth-child(1) { top: 0; } .chalk i:nth-child(2) { top: 20%; } .chalk i:nth-child(3) { top: 40%; } .chalk i:nth-child(4) { top: 60%; } .chalk i:nth-child(5) { top: 80%; } .chalk i:nth-child(6) { top: 100%; }
.bio-ch.drawn .chalk i { animation: chalkW 7s ease-in-out infinite; }
.bio-ch.drawn .chalk i:nth-child(2) { animation-delay: .7s; } .bio-ch.drawn .chalk i:nth-child(3) { animation-delay: 1.4s; } .bio-ch.drawn .chalk i:nth-child(4) { animation-delay: 2.1s; } .bio-ch.drawn .chalk i:nth-child(5) { animation-delay: 2.8s; } .bio-ch.drawn .chalk i:nth-child(6) { animation-delay: 3.5s; }
@keyframes chalkW { 0% { transform: scaleX(0); opacity: 1; } 12% { transform: scaleX(1); } 70% { transform: scaleX(1); opacity: 1; } 85%, 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 600px) { .teach-fig { float: none; width: 78%; margin: 0 auto 18px; } }
@media (prefers-reduced-motion: reduce) { .teach-fig { opacity: 1; transform: none; } .teach-fig img, .chalk i { animation: none !important; } }
/* "From Kabul to New York": animated planes-around-the-world GIF behind the passage */
/* boxed chapters, same card as "A daughter of Herat" */
.bio-travel, .bio-teach { padding: clamp(28px, 4vw, 48px); margin: 0 0 30px; border-radius: 24px; overflow: hidden; background: #fbfaf7; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); }
.bio-travel .doodles, .bio-teach .doodles { z-index: 1; }
/* "A daughter of Herat": colours from her portrait + black-ink hearts */
.bio-photo { background: linear-gradient(120deg, #f7e7dc 0%, #efd6c6 45%, #c9d9b4 100%); }
.bio-photo .bp-bg::after { background: linear-gradient(90deg, rgba(247, 231, 220, .94) 0%, rgba(240, 216, 200, .82) 50%, rgba(214, 196, 170, .3) 78%, rgba(201, 217, 180, 0) 100%); }
.bio-photo .doodles svg { stroke: #141414; opacity: .38; width: clamp(30px, 3.2vw, 46px); stroke-width: 2; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(1) { left: 2%; top: 4%; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(2) { left: 30%; top: 6%; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(3) { left: 52%; top: 3%; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(4) { left: 3%; top: 48%; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(5) { left: 56%; top: 52%; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(6) { left: 8%; top: 88%; }
.bio-photo .doodles:nth-of-type(1) svg:nth-child(7) { left: 40%; top: 90%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(1) { left: 18%; top: 24%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(2) { left: 44%; top: 30%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(3) { left: 22%; top: 70%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(4) { left: 92%; top: 6%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(5) { left: 90%; top: 84%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(6) { left: 62%; top: 92%; }
.bio-photo .doodles:nth-of-type(2) svg:nth-child(7) { left: 36%; top: 50%; }
/* travel box: navy-ink travel doodles spread over the sky */
.bio-travel .doodles svg { stroke: #1f4f8f; opacity: .42; width: clamp(34px, 3.8vw, 54px); }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(1) { left: 62%; top: 52%; }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(2) { left: 72%; top: 36%; width: clamp(60px, 7vw, 100px); }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(3) { left: 60%; top: 34%; }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(4) { left: 88%; top: 30%; }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(5) { left: 64%; top: 84%; }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(6) { left: 2%; top: 4%; }
.bio-travel .doodles:nth-of-type(1) svg:nth-child(7) { left: 92%; top: 92%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(1) { left: 88%; top: 58%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(2) { left: 74%; top: 72%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(3) { left: 82%; top: 86%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(4) { left: 40%; top: 4%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(5) { left: 2%; top: 94%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(6) { left: 54%; top: 60%; }
.bio-travel .doodles:nth-of-type(2) svg:nth-child(7) { left: 28%; top: 95%; }
/* "Education as a life's work": light cream box, graduation photo on the side, school doodles */
.bio-edu { padding: clamp(28px, 4vw, 48px); margin: 0 0 30px; border-radius: 24px; overflow: hidden; background: linear-gradient(150deg, #fdf8ee 0%, #f3eedf 100%); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); }
.bio-edu .doodles { z-index: 1; }
.bio-edu .doodles svg { stroke: #2f6b55; opacity: .32; width: clamp(34px, 3.6vw, 52px); }
.bio-edu .doodles:nth-of-type(1) svg:nth-child(1) { left: 2%; top: 3%; } .bio-edu .doodles:nth-of-type(1) svg:nth-child(2) { left: 30%; top: 5%; }
.bio-edu .doodles:nth-of-type(1) svg:nth-child(3) { left: 52%; top: 4%; } .bio-edu .doodles:nth-of-type(1) svg:nth-child(4) { left: 3%; top: 50%; }
.bio-edu .doodles:nth-of-type(1) svg:nth-child(5) { left: 50%; top: 88%; } .bio-edu .doodles:nth-of-type(1) svg:nth-child(6) { left: 92%; top: 90%; }
.bio-edu .doodles:nth-of-type(1) svg:nth-child(7) { left: 20%; top: 92%; } .bio-edu .doodles:nth-of-type(2) svg:nth-child(1) { left: 90%; top: 4%; }
.bio-edu .doodles:nth-of-type(2) svg:nth-child(2) { left: 70%; top: 92%; } .bio-edu .doodles:nth-of-type(2) svg:nth-child(3) { left: 40%; top: 48%; }
.bio-edu .doodles:nth-of-type(2) svg:nth-child(4) { left: 8%; top: 76%; } .bio-edu .doodles:nth-of-type(2) svg:nth-child(5) { left: 70%; top: 4%; }
.bio-edu .doodles:nth-of-type(2) svg:nth-child(6) { left: 34%; top: 92%; } .bio-edu .doodles:nth-of-type(2) svg:nth-child(7) { left: 58%; top: 50%; }
.bio-edu .edu-pic { float: right; width: min(46%, 380px); margin: 6px 0 16px 28px; position: relative; z-index: 2; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5); }
.bio-edu .edu-pic img { display: block; width: 100%; height: auto; animation: hpDrift 14s ease-in-out infinite alternate; }
.bio-edu .bio-h, .bio-edu > p, .bio-edu .pull { position: relative; z-index: 2; }
.bio-edu .pull { clear: both; }
@media (max-width: 600px) { .bio-edu .edu-pic { float: none; width: 100%; margin: 0 0 18px; } }
/* pull quotes: each on its own book's cover theme */
.bio-body > .pull.pull-cover { margin: 10px 0 40px; }
.pull.pull-cover { position: relative; z-index: 2; isolation: isolate; overflow: hidden; border: 0; border-radius: 20px; padding: clamp(28px, 4vw, 44px); color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); max-width: none !important; }
.pull.pull-cover::before { content: ""; position: absolute; inset: -30px; z-index: -2; background: var(--cv) center 35% / cover; filter: blur(3px) saturate(1.15); transform: scale(1.05); animation: phPhoto 20s ease-in-out infinite alternate; }
.pull.pull-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 11, .78) 0%, rgba(11, 11, 11, .5) 60%, rgba(11, 11, 11, .3) 100%); }
.pull.pull-cover blockquote { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.pull.pull-cover figcaption, .pull.pull-cover figcaption a { color: rgba(255, 255, 255, .85); }
/* "A late, abundant literary career": the 7 linked covers as diagonal strips */
.bio-career { padding: clamp(32px, 4.5vw, 54px); margin: 0 0 30px; border-radius: 24px; overflow: hidden; background: #0B0B0B; color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.cs-bg { position: absolute; inset: 0 -10% 0 2%; z-index: -2; display: flex; transform: skewX(-24deg); }
.cs-bg i { flex: 1; position: relative; overflow: hidden; border-right: 4px solid #0B0B0B; }
.cs-bg b { position: absolute; inset: 0 -60%; background-size: cover; background-position: center 30%; transform: skewX(24deg); filter: saturate(1.1); animation: csDrift 18s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -2.5s); }
@keyframes csDrift { from { background-position: center 22%; } to { background-position: center 48%; } }
.js .bio-career .cs-bg i { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i) * .12s); }
.js .bio-career.drawn .cs-bg i { clip-path: inset(0); }
.bio-career::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 11, .74) 0%, rgba(11, 11, 11, .58) 100%); }
.bio-career .bio-h, .bio-career > p { position: relative; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.bio-ch.bio-career > p, .bio-ch.bio-career > p.dropcap { color: rgba(255, 255, 255, .92); }
.bio-career a { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
@media (prefers-reduced-motion: reduce) { .js .bio-career .cs-bg i { clip-path: none; } .cs-bg b { animation: none; } }
/* media page: a wall of live screens */
.media-hero { min-height: 92svh; display: flex; align-items: center; background: #04060c; color: #fff; overflow: hidden; isolation: isolate; }
.media-hero > .wrap { position: relative; z-index: 2; }
.mw { position: absolute; inset: 0; z-index: 0; }
.mw-img { position: absolute; inset: -6%; background-size: cover; background-position: center; animation: mwPan 26s ease-in-out infinite alternate; filter: saturate(1.15) contrast(1.05); }
@keyframes mwPan { from { transform: scale(1.04) translate3d(1.5%, 0, 0) rotate(-.4deg); } to { transform: scale(1.14) translate3d(-2%, -1.5%, 0) rotate(.4deg); } }
.mw-live { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.mw-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4px); animation: mwScan 6s linear infinite; mix-blend-mode: overlay; }
@keyframes mwScan { to { background-position: 0 120px; } }
.mw-sweep { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(120, 200, 255, .18) 48%, transparent 60%); background-size: 260% 100%; animation: mwSweep 7s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes mwSweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
.mw-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 6, 12, .9) 0%, rgba(4, 6, 12, .66) 45%, rgba(4, 6, 12, .25) 100%), linear-gradient(0deg, rgba(4, 6, 12, .8) 0%, transparent 35%); }
.media-hero .kicker { color: rgba(255, 255, 255, .75); }
.media-hero .kicker-num { color: #fff; border-color: rgba(255, 255, 255, .3); }
.media-hero .lede { color: rgba(255, 255, 255, .82); }
.media-hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .5); --fill: #fff; }
.media-hero .btn-line:hover { color: var(--ink); }
.media-hero .btn-navy { background: #fff; color: var(--ink); border-color: #fff; --fill: var(--ink); }
.media-hero .btn-navy:hover { color: #fff; }
body:has(.media-hero) .site-header .bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .mw-img, .mw-scan, .mw-sweep { animation: none; } }
/* media: "What she speaks about" box with shaded, animated speaking illustrations */
.speak-box { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 36px; padding: clamp(28px, 4vw, 48px); padding-right: clamp(28px, 34%, 300px); border-radius: 26px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #ff6f91 0%, transparent 45%), radial-gradient(100% 120% at 0% 100%, #00b4d8 0%, transparent 50%), linear-gradient(135deg, #5b2a86 0%, #7b2cbf 45%, #3a0ca3 100%); box-shadow: 0 40px 70px -36px rgba(58, 12, 163, .7); }
.speak-box .kicker { color: rgba(255, 255, 255, .8); }
.speak-box .kicker-num { color: #fff; border-color: rgba(255, 255, 255, .4); }
.speak-box .display { color: #fff; }
.speak-grid .speak-box > p { color: rgba(255, 255, 255, .92); position: relative; z-index: 1; text-shadow: 0 1px 10px rgba(40, 0, 80, .4); }
.sk-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sk { position: absolute; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); animation: skFloat 5s ease-in-out infinite alternate; }
.sk-mic { right: 7%; top: 14%; width: clamp(70px, 9vw, 120px); animation-duration: 6s; }
.sk-head { right: 22%; top: 6%; width: clamp(70px, 8vw, 110px); animation-delay: -1.5s; transform: rotate(-10deg); }
.sk-bub1 { right: 4%; top: 54%; width: clamp(70px, 8vw, 110px); animation: skPop 4s ease-in-out infinite; transform-origin: 20% 100%; }
.sk-bub2 { right: 3%; bottom: 4%; width: clamp(70px, 8vw, 110px); animation: skPop 4s ease-in-out -2s infinite; transform-origin: 80% 100%; }
.sk-radio { right: 22%; bottom: 4%; width: clamp(80px, 9vw, 130px); animation-delay: -3s; }
.sk-pod { right: 3%; top: 2%; width: clamp(46px, 5vw, 66px); animation: skSpin 9s linear infinite; }
.sk-wave { left: 4%; right: 40%; bottom: 3%; width: 50%; opacity: .28; filter: none; animation: none; }
.sk-wave rect { transform-origin: center; transform-box: fill-box; animation: skEq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
@keyframes skFloat { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes skPop { 0%, 100% { transform: scale(.85) rotate(-3deg); opacity: .85; } 50% { transform: scale(1.05) rotate(2deg); opacity: 1; } }
@keyframes skSpin { to { transform: rotate(360deg); } }
@keyframes skEq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 860px) { .speak-box { padding-right: clamp(28px, 4vw, 48px); padding-bottom: 200px; } .sk-mic { top: auto; bottom: 30px; } .sk-head { top: auto; bottom: 100px; right: 35%; } .sk-pod { top: auto; bottom: 150px; right: 6%; } .sk-bub1 { top: auto; bottom: 160px; right: 30%; } }
@media (prefers-reduced-motion: reduce) { .sk, .sk-wave rect { animation: none; } }
/* teacher box: light green with golden education doodles */
.bio-teach { background: linear-gradient(150deg, #eef8ec 0%, #dff0da 100%); }
.bio-teach .doodles svg { --c: #c9a227; stroke: #c9a227; opacity: .45; width: clamp(38px, 4vw, 56px); }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(1) { left: 2%; top: 3%; }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(2) { left: 40%; top: 4%; }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(3) { left: 86%; top: 3%; }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(4) { left: 50%; top: 50%; }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(5) { left: 2%; top: 52%; }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(6) { left: 92%; top: 88%; }
.bio-teach .doodles:nth-of-type(1) svg:nth-child(7) { left: 44%; top: 90%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(1) { left: 22%; top: 22%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(2) { left: 28%; top: 70%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(3) { left: 10%; top: 86%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(4) { left: 55%; top: 24%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(5) { left: 62%; top: 80%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(6) { left: 76%; top: 94%; }
.bio-teach .doodles:nth-of-type(2) svg:nth-child(7) { left: 34%; top: 44%; }
.bio-travel { background: linear-gradient(160deg, #e8f6ff 0%, #c4e6fc 45%, #8ccbf3 100%); }
/* GIF shown at its own size (never stretched), on the right; the rest is sky blue */
.bt-bg { position: absolute; z-index: -2; right: 3%; top: clamp(28px, 4vw, 48px); width: min(553px, 42%); aspect-ratio: 553 / 309; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(20, 70, 130, .55); animation: btFloat 6s ease-in-out infinite alternate; }
@keyframes btFloat { to { transform: translateY(-10px); } }
.bt-bg::after { content: none; }
/* full title written over the clip's own "From" */
.bt-title { position: absolute; left: 50%; top: 4%; translate: -50% 0; white-space: nowrap; padding: .15em .9em .25em; font: italic 400 clamp(1rem, 2.1vw, 1.75rem)/1 var(--serif); color: #12226b; text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  background: radial-gradient(closest-side, rgba(150, 205, 245, .97) 70%, rgba(150, 205, 245, 0) 100%); }
.bt-title::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f2c14e, transparent); }
@media (max-width: 860px) { .bt-title { font-size: clamp(1rem, 5vw, 1.5rem); } }
.bio-ch.bio-travel .bio-h, .bio-ch.bio-travel > p, .bio-ch.bio-travel .pull { max-width: 50%; }
.bio-travel .bio-h, .bio-travel > p, .bio-travel .pull, .bio-teach .bio-h, .bio-teach > p { position: relative; z-index: 2; max-width: 60%; }
/* teacher illustration as the box background, on the right */
.bio-teach .teach-fig { position: absolute; z-index: -1; float: none; margin: 0; right: 2%; top: 50%; width: min(42%, 400px); translate: 0 -50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
@media (max-width: 860px) {
  .bt-bg { position: relative; right: auto; top: auto; translate: none; width: 100%; margin-bottom: 20px; }
  .bio-ch.bio-travel .bio-h, .bio-ch.bio-travel > p, .bio-ch.bio-travel .pull { max-width: none; }
  .bio-travel .bio-h, .bio-travel > p, .bio-travel .pull, .bio-teach .bio-h, .bio-teach > p { max-width: none; }
  .bio-teach .teach-fig { position: relative; translate: none; right: auto; top: auto; width: 80%; margin: 0 auto 16px; -webkit-mask-image: none; mask-image: none; }
}
@keyframes doodleBob { to { transform: rotate(calc(var(--r) * -1)) translateY(-8px); } }
@media (max-width: 860px) { .doodles svg { width: 38px; opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .doodles svg { animation: none; } .doodles svg * { stroke-dashoffset: 0 !important; } }
.reel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.reel-slide.on { opacity: 1; z-index: 1; }
/* the same photo, blurred, fills the screen, so the background always matches the picture */
.reel-blur { position: absolute; inset: -80px; background-size: cover; background-position: center 30%; filter: blur(46px) saturate(1.35) brightness(.78); transform: scale(1.1); }
.reel-slide.on .reel-blur, .reel-slide.out .reel-blur { animation: reelBlur 9s ease-in-out both; }
@keyframes reelBlur { from { transform: scale(1.25) rotate(-2deg); } to { transform: scale(1.1) rotate(1deg); } }
/* the photo itself, whole and sharp, on the right, drifting in */
.reel-slide img { position: absolute; top: 0; bottom: 0; right: 5%; height: 100%; width: auto; max-width: 56%; object-fit: cover; object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(0deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.reel-slide.wide img { right: 0; max-width: 72%; }
.reel-slide.on img, .reel-slide.out img { animation: reelA 7.5s linear both; }
.reel-slide:nth-child(even).on img, .reel-slide:nth-child(even).out img { animation-name: reelB; }
@keyframes reelA { from { transform: scale(1.1) translate3d(3%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
@keyframes reelB { from { transform: scale(1) translate3d(-2%, 0, 0); } to { transform: scale(1.08) translate3d(1%, -1%, 0); } }
.reel-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 11, 11, .55) 0%, rgba(11, 11, 11, .25) 45%, rgba(11, 11, 11, 0) 70%), linear-gradient(0deg, rgba(11, 11, 11, .6) 0%, transparent 40%), linear-gradient(180deg, rgba(11, 11, 11, .3) 0%, transparent 18%); }
.about-full h1, .about-full .lede { text-shadow: none; }
.about-full-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; width: min(100% - 2 * var(--gutter), var(--wrap)); }
.about-full-copy { max-width: 760px; }
.about-full .kicker { color: rgba(255, 255, 255, .75); }
.about-full .kicker-num { color: #fff; border-color: rgba(255, 255, 255, .3); }
.about-full .lede { color: rgba(255, 255, 255, .82); }
.reel-ui { width: min(320px, 100%); }
.reel-cap { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 12px; font: italic 400 1.35rem/1.2 var(--serif); }
.reel-cap span:first-child { transition: opacity .5s; }
.reel-cap.swap span:first-child { opacity: 0; }
.reel-n { font: 500 .8rem/1.6 var(--sans); font-style: normal; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.reel-n b { color: #fff; font-weight: 500; }
.reel-bar { display: flex; gap: 5px; }
.reel-bar button { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.reel-bar button::before, .reel-bar span { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .25); }
.reel-bar span { background: #fff; transform-origin: left; transform: scaleX(0); }
body:has(.about-full) .site-header .bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
@media (max-width: 860px) {
  .about-full-grid { grid-template-columns: 1fr; }
  .reel-shade { background: linear-gradient(0deg, rgba(11, 11, 11, .78) 0%, rgba(11, 11, 11, .45) 50%, rgba(11, 11, 11, .05) 75%), linear-gradient(180deg, rgba(11, 11, 11, .3) 0%, transparent 20%); }
  .reel-slide img, .reel-slide.wide img { right: 0; left: 0; margin: 0 auto; max-width: 100%; height: 62%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
}
.about-portrait { margin: 0; }
.about-portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; width: 100%; border-radius: var(--r); filter: grayscale(1); transition: filter .8s; }
.about-portrait:hover img { filter: none; }
.bio { padding: clamp(30px, 5vw, 70px) 0 var(--sec); }
.bio-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.bio-aside { position: sticky; top: 100px; padding: 26px; background: var(--paper); border-radius: var(--r); }
.fact-list { margin: 0 0 24px; }
.fact-list div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.fact-list div:first-child { border-top: 0; padding-top: 0; }
.fact-list dt { font-size: .8rem; color: var(--grey); }
.fact-list dd { margin: 0; font: 500 1.05rem/1.35 var(--sans); }
.bio-body p { font-size: 1.1rem; line-height: 1.75; color: #2a2a2a; }
.bio-h { font: 500 clamp(1.7rem, 2.8vw, 2.4rem)/1.05 var(--sans); letter-spacing: -.035em; margin: 54px 0 18px; }
.bio-h:first-child { margin-top: 0; }
.pull { margin: 44px 0; padding: 32px 0; border-block: 1px solid var(--ink); }
.pull blockquote { margin: 0 0 12px; font: italic 400 clamp(1.7rem, 3vw, 2.5rem)/1.2 var(--serif); }
.pull figcaption { font-size: .9rem; color: var(--grey); }
.timeline-sec { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.timeline-sec .display { color: #fff; }
.timeline-sec .kicker { color: rgba(255,255,255,.6); }
.timeline-sec .kicker-num { color: #fff; border-color: var(--line-light); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.timeline li { padding: 28px 28px 32px 0; border-top: 1px solid var(--line-light); position: relative; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.tl-when { font: italic 400 1.5rem/1.1 var(--serif); }
.timeline h3 { font: 500 1.4rem/1.15 var(--sans); letter-spacing: -.025em; margin: 10px 0; }
.timeline p { color: rgba(255,255,255,.62); font-size: .96rem; margin: 0; }

.poetry-fa { font: 400 1.8rem/1.6 var(--fa); margin-top: 20px; }
.anthology { padding: 0 0 var(--sec); }
.poetry-page .anthology { padding-top: var(--sec); }
/* poetry hero: animated night scene + her poems written out one by one */
.poetry-hero { min-height: 100svh; display: flex; align-items: center; background: radial-gradient(120% 90% at 30% 10%, #1b1b1f 0%, #0B0B0B 60%); color: #fff; overflow: hidden; isolation: isolate; }
.poetry-hero > .wrap { position: relative; z-index: 2; }
.ph-scene { position: absolute; inset: 0; z-index: 0; }
.ph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* tulip field at sunrise, slow drift + breathing sun glow */
.ph-photo { position: absolute; inset: -3%; background-size: cover; background-position: center 60%; filter: saturate(1.1); animation: phPhoto 30s ease-in-out infinite alternate; }
@keyframes phPhoto { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.ph-sun { position: absolute; left: 32%; top: 34%; width: 40vw; height: 40vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 190, .55), rgba(255, 210, 150, .18) 40%, transparent 68%); mix-blend-mode: screen; animation: phSun 7s ease-in-out infinite alternate; }
@keyframes phSun { from { opacity: .55; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.ph-moon { position: absolute; width: clamp(220px, 30vw, 460px); aspect-ratio: 1; left: 38%; top: 6%; border-radius: 50%; object-fit: cover; filter: grayscale(1) brightness(1.05) contrast(1.05); opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 70%);
  animation: phMoon 22s ease-in-out infinite alternate; }
.ph-moon::after { content: none; }
@keyframes phMoon { from { transform: translate3d(0, 0, 0) rotate(0); opacity: .42; } to { transform: translate3d(-30px, 26px, 0) rotate(8deg); opacity: .58; } }
.ph-fog i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.ph-fog i:nth-child(1) { width: 70vw; height: 40vh; left: -20vw; bottom: -6vh; animation: phFog 26s ease-in-out infinite alternate; }
.ph-fog i:nth-child(2) { width: 60vw; height: 35vh; right: -20vw; bottom: 10vh; animation: phFog 32s ease-in-out -8s infinite alternate-reverse; }
.ph-fog i:nth-child(3) { width: 50vw; height: 30vh; left: 30vw; top: 40vh; opacity: .3; animation: phFog 38s ease-in-out -14s infinite alternate; }
@keyframes phFog { from { transform: translate3d(-6vw, 0, 0) scale(1); } to { transform: translate3d(8vw, -4vh, 0) scale(1.2); } }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 11, .9) 0%, transparent 30%), linear-gradient(90deg, rgba(11, 11, 11, .72) 0%, rgba(11, 11, 11, .42) 50%, rgba(11, 11, 11, .2) 100%); }
.poetry-hero .lede, .poetry-hero .poetry-fa { text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.poetry-hero .ph-poem { background: rgba(11, 11, 11, .45); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.ph-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(40px, 6vw, 100px); align-items: center; }
.poetry-hero .kicker { color: rgba(255, 255, 255, .7); }
.poetry-hero .kicker-num { color: #fff; border-color: rgba(255, 255, 255, .3); }
.poetry-hero .lede { color: rgba(255, 255, 255, .75); }
.poetry-hero .poetry-fa { color: rgba(255, 255, 255, .85); margin-bottom: 30px; text-align: left; }
/* the writing panel */
.ph-poem { position: relative; padding: clamp(28px, 3vw, 44px); border-radius: calc(var(--r) + 6px); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px #000; }
.ph-poem::before { content: "\201C"; position: absolute; top: -28px; left: 26px; font: italic 400 7rem/1 var(--serif); color: rgba(255, 255, 255, .25); }
.ph-poem-k { display: flex; justify-content: space-between; margin: 0 0 22px; font: 500 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ph-poem-k b { color: #fff; font-weight: 500; }
.ph-stage { display: grid; min-height: 300px; align-items: center; }
.ph-p { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.ph-p.on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.ph-p blockquote { margin: 0; font: italic 400 clamp(1.5rem, 2.3vw, 2.05rem)/1.35 var(--serif); }
.ph-p blockquote.fa { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.9 var(--fa); text-align: right; }
.ph-l { display: block; clip-path: inset(-10% 100% -10% 0); opacity: .2; }
.ph-p blockquote.fa .ph-l { clip-path: inset(-10% 0 -10% 100%); }
/* each line "writes" itself from the pen's side, one after another */
.ph-p.on .ph-l { animation: phWrite 1.6s cubic-bezier(.45, .05, .3, 1) both; animation-delay: calc(.5s + var(--k) * 1.5s); }
@keyframes phWrite { to { clip-path: inset(-10% 0 -10% 0); opacity: 1; } }
.ph-p figcaption { margin-top: 22px; font: 500 .9rem/1.4 var(--sans); color: rgba(255, 255, 255, .6); opacity: 0; }
.ph-p.on figcaption { animation: bksUp .8s var(--ease-out) both; animation-delay: calc(.6s + var(--n) * 1.5s); }
.ph-p figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.ph-p figcaption a:hover { color: #fff; border-color: #fff; }
.ph-p figcaption em { font-family: var(--serif); }
.ph-dots { display: flex; gap: 6px; margin-top: 26px; }
.ph-dots button { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.ph-dots button::before, .ph-dots span { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .2); }
.ph-dots span { background: #fff; transform-origin: left; transform: scaleX(0); }
/* each poem written inside the floral paper */
.poetry-hero .ph-poem { container-type: inline-size; justify-self: center; width: min(100%, 450px); aspect-ratio: 365 / 547; display: flex; flex-direction: column; padding: 25% 12% 33% 12%;
  background-position: center; background-size: 100% 100%; background-repeat: no-repeat; background-color: #f8e9e1; border: 0; border-radius: 6px; backdrop-filter: none; -webkit-backdrop-filter: none; color: #3a2622;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .25); transform: rotate(-1.2deg); animation: paperIn 1.4s var(--ease-out) .2s both; }
@keyframes paperIn { from { opacity: 0; transform: translateY(50px) rotate(4deg) scale(.94); } }
.poetry-hero .ph-poem::before { content: none; }
.poetry-hero .ph-poem-k { justify-content: center; gap: 10px; margin-bottom: 2cqw; font-size: max(.62rem, 2.5cqw); color: rgba(58, 38, 34, .6); }
.poetry-hero .ph-poem-k span:first-child::after { content: " ·"; }
.poetry-hero .ph-poem-k b { color: #3a2622; }
.poetry-hero .ph-stage { flex: 1; min-height: 0; align-items: center; }
.poetry-hero .ph-p blockquote { font-size: clamp(1rem, 6.4cqw, 1.8rem); line-height: 1.32; text-align: center; color: #3a2622; }
.poetry-hero .ph-p blockquote.fa { font-size: clamp(1rem, 6.4cqw, 1.8rem); line-height: 1.8; text-align: center; }
.poetry-hero .ph-p figcaption { margin-top: 4cqw; text-align: center; font-size: max(.7rem, 2.9cqw); color: rgba(58, 38, 34, .7); }
.poetry-hero .ph-p figcaption a { border-color: rgba(58, 38, 34, .3); }
.poetry-hero .ph-p figcaption a:hover { color: #3a2622; border-color: #3a2622; }
.poetry-hero .ph-p { transition: opacity .9s var(--ease), visibility 0s .9s, transform .9s var(--ease); }
.poetry-hero .ph-p:not(.on) { transform: translateY(-10px); }
.poetry-hero .ph-dots { position: absolute; left: 6%; right: 6%; bottom: -34px; margin: 0; }
.poetry-hero .ph-dots button::before { background: rgba(255, 255, 255, .35); }
body:has(.poetry-hero) .site-header .bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
@media (max-width: 860px) {
  .ph-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .ph-moon { left: auto; right: -14%; top: 4%; }
  .ph-stage { min-height: 250px; }
}
@media (prefers-reduced-motion: reduce) { .ph-l { clip-path: none !important; opacity: 1 !important; } .ph-p figcaption { opacity: 1; } }
.poem { padding: clamp(60px, 7vw, 100px) 0; border-bottom: 1px solid var(--line); text-align: center; }
.poem-no { font: italic 400 1.4rem/1 var(--serif); color: var(--grey); }
.poem .excerpt-note { color: var(--grey); }
/* every poem in the collection, written on the floral paper */
.paper-poem { position: relative; isolation: isolate; border-bottom: 0; padding: clamp(70px, 8vw, 120px) 0; }
.poetry-page .anthology { overflow-x: clip; }
/* that book's own cover, lightly blurred, full width behind its poem */
.pp-bg { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; overflow: hidden; }
.pp-bg i { position: absolute; inset: -30px; background-size: cover; background-position: center 30%; filter: blur(9px) saturate(1.1); transform: scale(1.08); transition: transform 8s ease-out; }
.paper-poem.in .pp-bg i { transform: scale(1.18); }
.pp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .2) 22%, rgba(255, 255, 255, .2) 78%, rgba(255, 255, 255, .55) 100%); }
.paper-poem .poem-src { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .6); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.paper-poem .poem-src:hover { background: var(--ink); }
.paper-card { container-type: inline-size; position: relative; width: min(100%, 520px); aspect-ratio: 365 / 547; margin: 0 auto;
  background-color: #f8e9e1; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 6px; color: #3a2622;
  box-shadow: 0 40px 80px -36px rgba(40, 20, 15, .45), 0 0 0 1px rgba(58, 38, 34, .08); transform: rotate(-1.5deg); transition: transform .8s var(--ease-out), box-shadow .8s; }
.paper-poem.tilt-r .paper-card { transform: rotate(1.5deg); }
/* recolour the paper to each book's palette (keeps the paper's texture, frame and flowers) */
.paper-card { isolation: isolate; background-color: var(--tone, #f8e9e1); color: var(--ink-c, #3a2622); }
.paper-img, .paper-tint { position: absolute; inset: 0; border-radius: inherit; }
.paper-img { background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.paper-tint { background: var(--tone); mix-blend-mode: color; opacity: .8; }
.paper-card.dark .paper-img { filter: brightness(.36) contrast(1.15) saturate(.8); }
.paper-card.dark .paper-tint { opacity: .95; }
.paper-card.dark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 55% at 50% 45%, rgba(255, 255, 255, .07), transparent 70%); pointer-events: none; }
.paper-card.dark { box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .14); }
.paper-card blockquote { color: var(--ink-c, #3a2622); }
.paper-card .poem-no, .paper-card .excerpt-note { color: var(--ink-c, #3a2622); opacity: .62; }
.paper-card.dark blockquote { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.paper-in { z-index: 1; }
.paper-in { position: absolute; inset: 15% 11% 23% 11%; display: flex; flex-direction: column; justify-content: center; }
.paper-card:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 60px 100px -40px rgba(40, 20, 15, .55), 0 0 0 1px rgba(58, 38, 34, .08); }
.paper-card .poem-no { margin: 0 0 4cqw; font-size: max(.9rem, 4.4cqw); }
.paper-card blockquote { margin: 0; font: italic 400 clamp(1.05rem, 8.2cqw, 2.1rem)/1.3 var(--serif); }
.paper-card blockquote.fa { font: 400 clamp(1.05rem, 7.6cqw, 2rem)/1.8 var(--fa); }
.paper-card .excerpt-note { margin: 4cqw 0 0; font-size: max(.7rem, 3cqw); line-height: 1.45; }
.js .paper-poem .ph-l { clip-path: inset(-10% 100% -10% 0); opacity: .15; }
.js .paper-poem blockquote.fa .ph-l { clip-path: inset(-10% 0 -10% 100%); }
.js .paper-poem.in .ph-l { animation: phWrite 1.6s cubic-bezier(.45, .05, .3, 1) both; animation-delay: calc(.7s + var(--k) * 1.4s); }
.paper-poem .poem-src { margin-top: 34px; }
@media (prefers-reduced-motion: reduce) { .js .paper-poem .ph-l { clip-path: none !important; opacity: 1 !important; } }
.poem-src { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; text-align: left; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: 99px; margin-top: 16px; transition: background .4s, color .4s; }
.poem-src:hover { background: var(--ink); color: #fff; }
.poem-src img { width: 36px; border-radius: 3px; }
.poem-src span { display: grid; font: 500 1.05rem/1.25 var(--sans); }
.poem-src small { font-size: .78rem; opacity: .6; font-weight: 400; }
.poem-src em { font-size: .95rem; opacity: .7; }
.poem-src [lang="fa"] { font-family: var(--fa); }
.poem-src svg { width: 18px; }
.forms-note { margin-top: 80px; padding: clamp(28px, 4vw, 50px); background: var(--paper); border-radius: var(--r); }
.forms-note h2 { font: 500 1.9rem/1.1 var(--sans); letter-spacing: -.03em; margin-bottom: 20px; }
.forms-note dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.forms-note dt { font: 500 1.15rem/1.3 var(--sans); }
.forms-note dt span { font-family: var(--fa); color: var(--grey); margin-left: 6px; }
.forms-note dd { margin: 6px 0 0; color: var(--grey); font-size: .96rem; }

.speak { padding: clamp(30px, 5vw, 70px) 0 var(--sec); }
.speak-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.speak-img { margin: 0; position: sticky; top: 100px; }
.speak-img img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.speak p { color: var(--grey); }
.topics { list-style: none; padding: 0; margin: 30px 0 34px; }
.topics li { display: grid; grid-template-columns: 3em 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.topics li > span { font: italic 400 1.3rem/1.2 var(--serif); color: var(--grey); }
.topics h3 { font: 500 1.45rem/1.2 var(--sans); letter-spacing: -.025em; margin-bottom: 6px; }
.topics p { margin: 0; font-size: .96rem; }
/* magazine card with the education picture behind it */
.arc-card.arc-pic { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #04121f; }
.arc-card.arc-pic::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ap) center 35% / cover; transition: transform 1.2s var(--ease-out); animation: phPhoto 18s ease-in-out infinite alternate; }
.arc-card.arc-pic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 18, 31, .45) 0%, rgba(4, 18, 31, .72) 45%, rgba(4, 18, 31, .93) 100%); }
.arc-card.arc-pic h3, .arc-card.arc-pic .arc-go { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.arc-card.arc-pic p, .arc-card.arc-pic .arc-type { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
/* media: podcast video */
.podcast { position: relative; padding: var(--sec) 0; color: #fff; background: radial-gradient(80% 90% at 85% 10%, rgba(255, 70, 110, .35), transparent 60%), radial-gradient(70% 80% at 10% 90%, rgba(0, 180, 216, .3), transparent 60%), #0b0716; overflow: hidden; }
.pod-head { max-width: 760px; margin-bottom: 36px; }
.podcast .display { color: #fff; }
.podcast .kicker { color: rgba(255, 255, 255, .75); }
.podcast .kicker-num { color: #fff; border-color: rgba(255, 255, 255, .35); }
.podcast .lede { color: rgba(255, 255, 255, .78); }
.podcast .lede a { color: #fff; }
.pod-player { position: relative; border-radius: 26px; padding: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 50px 100px -40px rgba(255, 60, 120, .5), 0 0 0 1px rgba(255, 255, 255, .05); }
.pod-player::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 28px; background: conic-gradient(from 0deg, #ff4d8d, #7b2cbf, #00b4d8, #ffbe0b, #ff4d8d); filter: blur(18px); opacity: .45; animation: podGlow 8s linear infinite; }
@keyframes podGlow { to { transform: rotate(360deg); } }
.pod-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.pod-frame { background-size: cover; background-position: center; }
.pod-frame:not(.is-thumb) { background-image: none !important; }
.pod-frame.is-thumb { animation: podKen 14s ease-in-out infinite alternate; }
@keyframes podKen { from { background-size: 100%; } to { background-size: 110%; } }
.pod-thumb { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45)); }
.pod-play { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: podPulse 1.8s ease-out infinite; transition: transform .3s; }
.pod-thumb:hover .pod-play { transform: scale(1.1); }
@keyframes podPulse { to { box-shadow: 0 0 0 28px rgba(229, 57, 53, 0); } }
.pod-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pod-live { position: absolute; z-index: 2; top: 26px; left: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: #e53935; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.pod-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: podDot 1.2s ease-in-out infinite; }
@keyframes podDot { 50% { opacity: .2; } }
.pod-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 8px 6px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.pod-bar .btn { margin-left: auto; }
.pod-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.pod-eq i { width: 4px; height: 100%; border-radius: 2px; background: #ff4d8d; transform-origin: bottom; animation: skEq .9s ease-in-out infinite alternate; }
.pod-eq i:nth-child(2) { animation-delay: -.3s; background: #ffbe0b; } .pod-eq i:nth-child(3) { animation-delay: -.6s; background: #00b4d8; } .pod-eq i:nth-child(4) { animation-delay: -.15s; background: #7b2cbf; } .pod-eq i:nth-child(5) { animation-delay: -.45s; }
@media (max-width: 600px) { .pod-bar .btn { margin-left: 0; width: 100%; } }
/* each speaking topic on its own picture + colour */
.topics-pic { display: grid; gap: 14px; }
.topics-pic li { position: relative; isolation: isolate; overflow: hidden; border: 0; border-radius: 20px; padding: 26px 26px; color: #fff; box-shadow: 0 24px 44px -26px rgba(var(--tc), .8); transition: transform .5s var(--ease-out); }
.topics-pic li::before { content: ""; position: absolute; inset: -10px; z-index: -2; background: var(--tp) center / cover; transition: transform 1.2s var(--ease-out); }
.topics-pic li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--tc), .94) 0%, rgba(var(--tc), .8) 55%, rgba(var(--tc), .45) 100%); }
.topics-pic li:hover { transform: translateY(-4px); }
.topics-pic li:hover::before { transform: scale(1.08); }
.topics-pic li > span { color: rgba(255, 255, 255, .75); font-size: 1.6rem; }
.topics-pic h3 { color: #fff; }
.speak-grid .topics-pic p { color: rgba(255, 255, 255, .88); }
.archive { padding: var(--sec) 0; background: var(--paper); }
.archive .display { margin-bottom: 44px; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arc-card { display: flex; flex-direction: column; text-align: left; padding: 28px; background: var(--bg); border-radius: var(--r); text-decoration: none; min-height: 260px; width: 100%; transition: background .5s, color .5s; }
.arc-card:hover { background: var(--ink); color: #fff; }
.arc-type { display: flex; align-items: center; gap: 8px; font-size: .82rem; opacity: .6; margin-bottom: 20px; }
.arc-type svg { width: 15px; }
.arc-card h3 { font: 500 1.5rem/1.1 var(--sans); letter-spacing: -.03em; margin-bottom: 10px; }
.arc-card p { opacity: .65; font-size: .95rem; }
.arc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; }
.arc-go svg { width: 16px; }
.press-kit { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.press-kit .display { color: #fff; }
.press-kit .kicker { color: rgba(255,255,255,.6); }
.press-kit .kicker-num { color: #fff; border-color: var(--line-light); }
.press-kit .lede { color: rgba(255,255,255,.65); margin-top: 20px; }
.kit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); }
.kit-body { display: grid; gap: 40px; }
.kit-body h3 { font: 500 .9rem/1 var(--sans); color: rgba(255,255,255,.6); margin-bottom: 14px; }
.kit-body h3 span { opacity: .7; }
.kit-bio p { font: 400 1.4rem/1.45 var(--sans); letter-spacing: -.015em; }
.kit-photos ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kit-photos a { position: relative; display: block; overflow: hidden; border-radius: 12px; text-decoration: none; }
.kit-photos img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease-out); }
.kit-photos a:hover img { transform: scale(1.06); }
.kit-photos span { position: absolute; left: 10px; bottom: 10px; padding: 7px 12px; border-radius: 99px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 500; }
.kit-facts { margin: 0; }
.kit-facts div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-light); }
.kit-facts dt { color: rgba(255,255,255,.55); }
.kit-facts dd { margin: 0; }

.school-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.school-hero-logo { margin: 0; display: grid; gap: 16px; }
.school-hero-logo > img { width: 100%; border-radius: var(--r); }
.school-hero-logo figcaption { display: flex; align-items: center; gap: 14px; font: 400 1.05rem/1.6 var(--fa); }
.school-hero-logo figcaption img { width: 90px; border: 1px solid var(--line); border-radius: 8px; }
.mission { padding: var(--sec) 0; background: var(--paper); }
.mission-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 100px); }
.mission-text p { font-size: 1.1rem; line-height: 1.75; color: #2a2a2a; }
.aims { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: aim; }
.aims li { counter-increment: aim; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); position: relative; font: 500 1.15rem/1.4 var(--sans); letter-spacing: -.015em; }
.aims li::before { content: counter(aim, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-size: .85rem; color: var(--grey); font-weight: 400; }
.subjects { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.subjects .display { color: #fff; margin-bottom: 44px; }
.subjects .kicker { color: rgba(255,255,255,.6); }
.subjects .kicker-num { color: #fff; border-color: var(--line-light); }
.subject-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.subject-grid li { padding: 30px; border: 1px solid var(--line-light); border-radius: var(--r); transition: background .5s, color .5s; }
.subject-grid li:hover { background: #fff; color: var(--ink); }
.subject-grid span { font-size: .85rem; opacity: .55; }
.subject-grid h3 { font: 500 1.55rem/1.15 var(--sans); letter-spacing: -.03em; margin: 16px 0 8px; }
.subject-grid p { opacity: .65; margin: 0; font-size: .96rem; }
.programs { padding: var(--sec) 0; }
.programs-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.program { padding: clamp(28px, 3.5vw, 46px); background: var(--paper); border-radius: var(--r); }
.program h3 { font: 500 clamp(1.7rem, 2.6vw, 2.2rem)/1.05 var(--sans); letter-spacing: -.035em; margin-bottom: 14px; }
.program p { color: var(--grey); }
.program ul { padding-left: 1.1em; margin: 0 0 18px; }
.program li { padding: 3px 0; }
.program.uni { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; background: var(--ink); color: #fff; }
.program.uni p { color: rgba(255,255,255,.65); }
.program.uni .tag { color: rgba(255,255,255,.55); }
.program.uni img { border-radius: 50%; }
.cols { columns: 2; }
.faq { padding: var(--sec) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 100px); }
.faq-grid p { color: var(--grey); margin-top: 20px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 1.3rem/1.25 var(--sans); letter-spacing: -.02em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { position: relative; width: 16px; height: 16px; flex: none; }
.accordion summary i::before, .accordion summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0); }
.acc-body p { margin: 0 0 22px; color: var(--grey); max-width: 40em; }
.enrol { background: var(--ink); color: #fff; padding: var(--sec) 0; }
.enrol .display { color: #fff; }
.enrol .kicker { color: rgba(255,255,255,.6); }
.enrol .kicker-num { color: #fff; border-color: var(--line-light); }
.enrol .lede { color: rgba(255,255,255,.65); margin-top: 20px; }
.enrol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.contact-lines svg { width: 20px; }
.contact-lines a { text-decoration: none; }
.form { display: grid; gap: 22px; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .btn { justify-self: start; }
.form.light .field span { color: rgba(255,255,255,.55); }
.form.light .field input, .form.light .field textarea { border-color: rgba(255,255,255,.25); }
.form.light .form-note { color: rgba(255,255,255,.5); }
.form.light .btn { background: #fff; color: var(--ink); border-color: #fff; --fill: var(--ink); }
.form.light .btn:hover { color: #fff; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .85rem; color: var(--grey); margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; transition: all .3s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-cards li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font: 500 1.2rem/1.3 var(--sans); letter-spacing: -.015em; }
.contact-cards li > span:first-child { font-size: .85rem; font-weight: 400; color: var(--grey); }
.contact-cards a { text-decoration: none; }
.contact-hero .form { background: var(--paper); padding: clamp(26px, 4vw, 48px); border-radius: var(--r); }
.gallery-full { padding: 0 0 var(--sec); }
.masonry { columns: 3 260px; column-gap: 16px; }
.masonry-item { position: relative; display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.masonry-item img { width: 100%; height: auto; filter: grayscale(1); transition: filter .7s, transform 1.2s var(--ease-out); }
.masonry-item:hover img { filter: none; transform: scale(1.04); }
.masonry-item.is-hidden { display: none; }
.m-cap { position: absolute; left: 14px; bottom: 14px; right: 14px; text-align: left; color: #fff; font: italic 400 1.1rem/1.2 var(--serif); opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); z-index: 1; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.masonry-item:hover .m-cap { opacity: 1; transform: none; }
.fa-page { font-family: var(--fa-ui); }
.fa-page .display, .fa-display { font-family: var(--fa); font-weight: 500; line-height: 1.5; letter-spacing: 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.fa-page .lede, .fa-page p { font-family: var(--fa-ui); line-height: 2.1; }
.fa-page .kicker { font-family: var(--fa); font-size: 1.05rem; }
.fa-page .btn { font-family: var(--fa-ui); }
.fa-page .brand-fa, .fa-page .footer-fa, .fa-page .menu-fa { text-align: right; }
.fa-page .nav a, .fa-page .site-footer, .fa-page .menu { font-family: var(--sans); }
.fa-page .site-header .bar, .fa-page .site-footer .wrap, .fa-page .menu-inner { direction: ltr; }
.fa-page .about-portrait img { filter: grayscale(1); }
.fa-books { padding: var(--sec) 0; }
.fa-books .display { margin-bottom: 40px; }
.prose h2 { font: 500 1.7rem/1.2 var(--sans); letter-spacing: -.03em; margin: 40px 0 12px; }
.prose p { color: #2a2a2a; }
.nf { min-height: 80vh; display: grid; place-items: center; }

.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(0, 0, 0, .94); color: #fff; display: none; grid-template-columns: 80px 1fr 80px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox:not([hidden]) { display: grid; }
.lightbox.open { pointer-events: auto; }
[hidden] { display: none !important; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: 4px; transform: scale(.96); transition: transform .6s var(--ease-out); }
.lightbox.open img { transform: none; }
.lightbox figcaption { font: italic 400 1.2rem/1.4 var(--serif); text-align: center; opacity: .8; padding: 0 16px; }
.lb-close { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.lb-close svg, .lb-nav svg { width: 22px; }
.lb-nav { justify-self: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.lb-nav:hover, .lb-close:hover { background: #fff; color: #000; }
.lightbox.single .lb-nav { visibility: hidden; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .sw > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--wi) * 60ms); }
.js [data-split].in .sw > span { transform: none; }
.js .masonry-item[data-reveal] { transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out), opacity .3s; }
.js .masonry-item[data-reveal].in { clip-path: inset(0 0 0 0); opacity: 1; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 1024px) {
  .h-bottom, .h-edu-grid, .h-media-grid, .h-cols, .h-sec-head.split, .letters-inner, .kit-grid, .enrol-grid, .faq-grid, .mission-grid, .bio-grid, .speak-grid, .book-body-grid, .programs-grid { grid-template-columns: 1fr; }
  .h-num-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .num { padding-bottom: 28px; }
  .diff, .diff.d1, .diff.d2 { grid-column: span 3; }
  .diff.d5 { grid-column: span 6; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .bio-aside, .speak-img, .book-facts { position: static; }
  .speak-img { max-width: 420px; }
  .bk summary { grid-template-columns: 3rem 1fr 4rem 40px; }
  .bk-g { display: none; }
  .bk-body { grid-template-columns: 3rem 1fr 1fr; }
}
@media (max-width: 860px) {
  .about-hero-grid, .fa-grid, .school-hero-grid, .contact-grid, .book-hero-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
  .related-grid { grid-template-columns: 1fr; max-width: 360px; }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .bh-visual .book3d { --w: min(62vw, 260px); }
  .forms-note dl { grid-template-columns: 1fr; }
  .program.uni { grid-template-columns: 1fr; }
  .program.uni img { width: 150px; }
  .h-story-track { gap: 14px; }
  .chapter { width: min(82vw, 380px); min-height: 360px; padding: 24px; }
  .story-ctrl { width: 100%; }
  .story-count { margin-right: auto; }
  .route { height: 120px; }
}
@media (max-width: 600px) {
  :root { --sec: 84px; --r: 14px; }
  .brand-name { font-size: .88rem; }
  .h-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .h-name { font-size: clamp(3.6rem, 19vw, 5rem); }
  .btn-row .btn { flex: 1 1 100%; }
  .diff, .diff.d1, .diff.d2, .diff.d5 { grid-column: span 6; min-height: 220px; }
  .h-num-grid { grid-template-columns: 1fr; }
  .num + .num { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .bk summary { grid-template-columns: 2.2rem 1fr 36px; gap: 10px; padding: 20px 0; }
  .bk-y { display: none; }
  .bk-x { width: 36px; height: 36px; }
  .bk-body { grid-template-columns: 1fr; }
  .bk-body > * { grid-column: 1; }
  .bk-meta { grid-template-columns: 1fr 1fr; }
  .archive-grid, .subject-grid, .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .book-pager { grid-template-columns: 1fr 1fr; }
  .book-pager .pager-all { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 70px); } .lb-next { right: calc(50% - 70px); }
  .kit-facts div, .contact-cards li, .book-facts dl div { grid-template-columns: 1fr; gap: 2px; }
  .record li { grid-template-columns: 1fr; gap: 4px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .verse-dots button { width: 20px; }
  .round-btn { width: 46px; height: 46px; }
  .stop b { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .h-name .ch, .hero-in { transform: none; opacity: 1; }
  .js [data-reveal], .js [data-split] .sw > span, .v-line .w { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .scrub .w { opacity: 1; }
  .h-track { animation: none; }
  @view-transition { navigation: none; }
}
.arc-card.arc-gold::after { background: linear-gradient(180deg, rgba(40, 22, 8, .35) 0%, rgba(40, 22, 8, .6) 45%, rgba(30, 16, 6, .9) 100%); }
.arc-card.arc-gold::before { background-position: center 30%; }
/* publications cards: alive */
.archive-grid { perspective: 1200px; }
.js .archive-grid .arc-card[data-reveal] { opacity: 0; transform: translateY(70px) rotateX(18deg) scale(.94); transition: opacity 1s var(--ease-out), transform 1.2s cubic-bezier(.22, 1.4, .36, 1); }
.js .archive-grid .arc-card[data-reveal].in { opacity: 1; transform: none; }
.archive-grid .arc-card:nth-child(2) { transition-delay: .12s; } .archive-grid .arc-card:nth-child(3) { transition-delay: .24s; } .archive-grid .arc-card:nth-child(4) { transition-delay: .36s; }
.archive-grid .arc-card.in { animation: arcBob 6s ease-in-out infinite alternate; }
.archive-grid .arc-card:nth-child(2).in { animation-delay: -1.5s; } .archive-grid .arc-card:nth-child(3).in { animation-delay: -3s; } .archive-grid .arc-card:nth-child(4).in { animation-delay: -4.5s; }
@keyframes arcBob { from { translate: 0 0; } to { translate: 0 -10px; } }
.archive-grid .arc-card { transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .5s; }
.archive-grid .arc-card.in:hover { animation-play-state: paused; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(1.03); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); }
/* backgrounds: slow drifting pan + zoom, each card on its own rhythm */
.arc-card.arc-pic::before { animation: arcPan 16s ease-in-out infinite alternate !important; }
.archive-grid .arc-card:nth-child(2)::before { animation-duration: 19s !important; animation-direction: alternate-reverse !important; }
.archive-grid .arc-card:nth-child(3)::before { animation-duration: 22s !important; }
.archive-grid .arc-card:nth-child(4)::before { animation-duration: 17s !important; animation-direction: alternate-reverse !important; }
@keyframes arcPan { 0% { transform: scale(1.08) translate3d(-3%, 2%, 0); } 50% { transform: scale(1.18) translate3d(2%, -2%, 0); } 100% { transform: scale(1.1) translate3d(3%, 1%, 0); } }
/* a light beam sweeps across each card */
.arc-card.arc-pic .arc-go { position: relative; }

@keyframes arcShine { 0% { background-position: 140% 0; } 50%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .archive-grid .arc-card, .arc-card.arc-pic::before { animation: none !important; } }

.arc-shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 48%, transparent 60%); background-size: 260% 100%; animation: arcShine 6s ease-in-out infinite; }
.archive-grid .arc-card:nth-child(2) .arc-shine { animation-delay: -1.5s; } .archive-grid .arc-card:nth-child(3) .arc-shine { animation-delay: -3s; } .archive-grid .arc-card:nth-child(4) .arc-shine { animation-delay: -4.5s; }
/* podcast: continuously animated background */
.podcast { isolation: isolate; }
.podcast > .wrap { position: relative; z-index: 1; }
.pod-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pb-glow { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(70px); opacity: .55; }
.pb-glow.g1 { background: #ff2e7e; left: -15vw; top: -20vw; animation: pbG1 16s ease-in-out infinite alternate; }
.pb-glow.g2 { background: #6a2cff; right: -20vw; top: 10%; animation: pbG2 19s ease-in-out infinite alternate; }
.pb-glow.g3 { background: #00b4d8; left: 20%; bottom: -30vw; opacity: .4; animation: pbG3 22s ease-in-out infinite alternate; }
@keyframes pbG1 { to { transform: translate3d(30vw, 25vw, 0) scale(1.2); } }
@keyframes pbG2 { to { transform: translate3d(-35vw, 15vw, 0) scale(.85); } }
@keyframes pbG3 { to { transform: translate3d(25vw, -20vw, 0) scale(1.25); } }
.pb-beam { position: absolute; top: -10%; width: 22vw; height: 140%; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 75%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
.pb-beam.b1 { left: 8%; animation: pbBeam 9s ease-in-out infinite alternate; }
.pb-beam.b2 { left: 42%; animation: pbBeam 11s ease-in-out -3s infinite alternate-reverse; }
.pb-beam.b3 { left: 74%; animation: pbBeam 10s ease-in-out -6s infinite alternate; }
@keyframes pbBeam { from { transform: rotate(-22deg); opacity: .5; } to { transform: rotate(22deg); opacity: .9; } }
.pb-spark { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 180, 220, .8); animation: pbSpark var(--d) linear var(--dl) infinite; }
@keyframes pbSpark { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: .8; } 100% { transform: translate3d(30px, -110vh, 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pod-bg i { animation: none !important; } }
/* speaking topics: backgrounds always moving */
.topics-pic li::before { animation: tpPan 14s ease-in-out infinite alternate; }
.topics-pic li:nth-child(2)::before { animation-duration: 17s; animation-direction: alternate-reverse; }
.topics-pic li:nth-child(3)::before { animation-duration: 15s; animation-delay: -5s; }
.topics-pic li:nth-child(4)::before { animation-duration: 19s; animation-direction: alternate-reverse; }
.topics-pic li:nth-child(5)::before { animation-duration: 16s; animation-delay: -8s; }
@keyframes tpPan { 0% { transform: scale(1.06) translate3d(-3%, 2%, 0); } 50% { transform: scale(1.2) translate3d(3%, -3%, 0); } 100% { transform: scale(1.1) translate3d(-1%, 3%, 0); } }
.topics-pic li { background-image: none; }
.topics-pic li > div { position: relative; }
.topics-pic li::after { background: linear-gradient(90deg, rgba(var(--tc), .94) 0%, rgba(var(--tc), .8) 55%, rgba(var(--tc), .45) 100%), linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .2) 50%, transparent 60%); background-size: 100% 100%, 260% 100%; background-repeat: no-repeat; animation: tpShine 7s ease-in-out infinite; }
.topics-pic li:nth-child(2)::after { animation-delay: -1.4s; } .topics-pic li:nth-child(3)::after { animation-delay: -2.8s; } .topics-pic li:nth-child(4)::after { animation-delay: -4.2s; } .topics-pic li:nth-child(5)::after { animation-delay: -5.6s; }
@keyframes tpShine { 0% { background-position: 0 0, 140% 0; } 50%, 100% { background-position: 0 0, -60% 0; } }
@media (prefers-reduced-motion: reduce) { .topics-pic li::before, .topics-pic li::after { animation: none; } }
/* publications cards: zoom in on hover */
.archive-grid .arc-card { scale: 1; transition: scale .45s cubic-bezier(.22, 1.2, .36, 1), box-shadow .45s, opacity 1s var(--ease-out), transform 1.2s cubic-bezier(.22, 1.4, .36, 1); }
.archive-grid .arc-card:hover, .archive-grid .arc-card:focus-visible { scale: 1.07; z-index: 2; box-shadow: 0 45px 80px -30px rgba(0, 0, 0, .65); }
.archive-grid .arc-card.in:hover { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); }
/* speak box + 5 topics: entrance, float, hover zoom */
.speak-box, .topics-pic li { scale: 1; transition: scale .45s cubic-bezier(.22, 1.2, .36, 1), box-shadow .45s, opacity 1s var(--ease-out), transform 1.1s cubic-bezier(.22, 1.4, .36, 1); }
.js .speak-box[data-reveal] { opacity: 0; transform: translateY(50px) scale(.95); }
.js .speak-box[data-reveal].in { opacity: 1; transform: none; animation: arcBob 7s ease-in-out infinite alternate; }
.js .topics-pic li[data-reveal] { opacity: 0; transform: translateX(60px) rotate(1.5deg); }
.js .topics-pic li[data-reveal].in { opacity: 1; transform: none; animation: arcBob 6s ease-in-out infinite alternate; }
.topics-pic li:nth-child(2) { transition-delay: .1s; animation-delay: -1.2s !important; } .topics-pic li:nth-child(3) { transition-delay: .2s; animation-delay: -2.4s !important; }
.topics-pic li:nth-child(4) { transition-delay: .3s; animation-delay: -3.6s !important; } .topics-pic li:nth-child(5) { transition-delay: .4s; animation-delay: -4.8s !important; }
.speak-box:hover { scale: 1.03; box-shadow: 0 50px 90px -36px rgba(58, 12, 163, .85); }
.topics-pic li:hover { scale: 1.05; z-index: 2; box-shadow: 0 34px 60px -26px rgba(var(--tc), .95); transition-delay: 0s; }
.topics-pic li.in:hover, .speak-box.in:hover { transform: none; }
.topics-pic { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .speak-box, .topics-pic li { animation: none !important; } }
/* press kit: "ready to publish" scene behind the whole section, gently alive */
.press-kit.rtp { position: relative; isolation: isolate; overflow: hidden; }
.press-kit.rtp > .wrap { position: relative; z-index: 1; }
.rtp-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rtp-img { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: rtpCam 26s ease-in-out infinite alternate; }
@keyframes rtpCam { 0% { transform: scale(1.04) translate3d(1.5%, 0, 0); } 100% { transform: scale(1.14) translate3d(-2%, -1.5%, 0); } }
.rtp-sun { position: absolute; left: 6%; top: 30%; width: 46vw; height: 46vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .55), rgba(255, 190, 100, .15) 45%, transparent 70%); mix-blend-mode: screen; animation: phSun 6s ease-in-out infinite alternate; }
/* glowing light runs along the step path toward the PUBLISHED book */
.rtp-path { position: absolute; left: 14%; top: 40%; width: 58%; height: 30%; background: radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(255, 200, 120, .4) 40%, transparent 75%); background-size: 16% 60%; background-repeat: no-repeat; mix-blend-mode: screen; transform: rotate(-17deg); animation: rtpRun 4.5s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes rtpRun { 0% { background-position: -10% 90%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { background-position: 110% 10%; opacity: 0; } }
.rtp-motes i { position: absolute; left: var(--x); bottom: -8px; width: 4px; height: 4px; border-radius: 50%; background: #ffe7b0; box-shadow: 0 0 10px 3px rgba(255, 210, 130, .7); animation: pbSpark var(--d) linear var(--dl) infinite; }
.rtp-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 11, .84) 0%, rgba(11, 11, 11, .74) 40%, rgba(11, 11, 11, .78) 100%); }
.press-kit.rtp .lede, .press-kit.rtp p, .press-kit.rtp dt { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .rtp-bg * { animation: none !important; } }
.rtp-img { inset: 0; background-size: 100% auto; background-position: center top; background-repeat: no-repeat; animation: rtpCam2 22s ease-in-out infinite alternate; transform-origin: 70% 30%; }
@keyframes rtpCam2 { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1%, 0, 0); } }
.rtp-bg { background: #120c07; }
.rtp-shade { background: linear-gradient(90deg, rgba(18, 12, 7, .86) 0%, rgba(18, 12, 7, .62) 42%, rgba(18, 12, 7, .45) 70%, rgba(18, 12, 7, .55) 100%), linear-gradient(180deg, transparent 45%, rgba(18, 12, 7, .9) 72%, #120c07 85%); }
@media (max-width: 860px) { .rtp-img { background-size: cover; background-position: 75% center; } .rtp-shade { background: rgba(18, 12, 7, .78); } }
.rtp-img { filter: blur(2px) saturate(1.15); }
.rtp-shade { background: linear-gradient(90deg, rgba(18, 12, 7, .86) 0%, rgba(18, 12, 7, .7) 42%, rgba(18, 12, 7, .72) 100%), linear-gradient(180deg, transparent 45%, rgba(18, 12, 7, .9) 72%, #120c07 85%); }
@media (max-width: 860px) { .rtp-shade { background: rgba(18, 12, 7, .8); } }

/* school logos always in original colour */
.school-page img[src*="/school/"], img[src*="clinton-logo"], img[src*="university-logo"] { filter: none !important; }

/* =================== CLINTON ONLINE SCHOOL: stand-alone site =================== */
.co { --navy: #0a2559; --blue: #1f6feb; --sky: #eaf3ff; --gold: #f5b301; --rose: #ff5d8f; --ink2: #13224a; color: var(--ink2); background: #fff; overflow-x: clip; }
.co-wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.co-sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.co-kick { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.co-kick::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.co-kick.center { display: flex; justify-content: center; }
.co-kick.light { color: #9cc4ff; }
.co-h2 { margin: 0 0 18px; font: 700 clamp(2.2rem, 4.6vw, 4rem)/1.04 var(--sans); letter-spacing: -.04em; color: var(--navy); }
.co-h2 em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; color: var(--blue); }
.co-h2.light { color: #fff; } .co-h2.light em { color: #ffd166; }
.co-h2.center, .co-sub.center { text-align: center; margin-inline: auto; }
.co-sub { max-width: 620px; font-size: 1.12rem; line-height: 1.6; color: #4a5a80; margin: 0 0 28px; }
.co-sub.light { color: rgba(255, 255, 255, .8); }
.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 99px; background: var(--blue); color: #fff; font: 700 .92rem/1 var(--sans); text-decoration: none; border: 2px solid var(--blue); cursor: pointer; transition: transform .3s cubic-bezier(.22, 1.4, .36, 1), box-shadow .3s, background .3s; box-shadow: 0 12px 26px -12px rgba(31, 111, 235, .8); }
.co-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 34px -12px rgba(31, 111, 235, .9); }
.co-btn svg { width: 18px; }
.co-btn.big { padding: 17px 30px; font-size: 1rem; }
.co-btn.full { width: 100%; }
.co-btn.ghost { background: transparent; color: var(--navy); border-color: rgba(10, 37, 89, .25); box-shadow: none; }
.co-btn.ghost:hover { border-color: var(--navy); }
.co-btn.gold { background: var(--gold); border-color: var(--gold); color: #2a1c00; box-shadow: 0 14px 30px -12px rgba(245, 179, 1, .8); }
.co-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid #cfe0ff; font: 600 .85rem/1.2 var(--sans); color: var(--navy); box-shadow: 0 8px 20px -14px rgba(31, 111, 235, .6); }
.co-pill i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: coPing 1.8s infinite; }
.co-pill.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
@keyframes coPing { to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.co-ic { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* school's own sticky nav */
.co-nav { position: sticky; top: 0; z-index: 40; padding: 10px var(--gutter); background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid #e3ecfb; margin-top: 88px; }
.co-nav-in { max-width: 1240px; margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.co-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; font: 800 1rem/1.1 var(--sans); }
.co-brand img { width: 54px; height: auto; mix-blend-mode: multiply; }
.co-brand small { display: block; font: 400 .72rem/1.4 var(--fa); color: #5a6b90; }
.co-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.co-nav ul a { display: block; padding: 9px 13px; border-radius: 99px; text-decoration: none; color: var(--navy); font: 600 .88rem/1 var(--sans); transition: background .3s, color .3s; }
.co-nav ul a:hover { background: var(--sky); color: var(--blue); }
body.co-page .site-header.is-scrolled { transform: translateY(-120%); }

/* hero */
.co-hero { position: relative; overflow: hidden; padding: clamp(60px, 7vw, 100px) 0 0; background: radial-gradient(70% 70% at 85% 20%, #d7e8ff 0%, transparent 60%), radial-gradient(50% 60% at 5% 90%, #ffe3ec 0%, transparent 60%), linear-gradient(180deg, #f5f9ff, #fff); }
.co-sky { position: absolute; inset: 0; pointer-events: none; }
.co-sky span { position: absolute; left: var(--x); bottom: -70px; width: var(--s); height: var(--s); color: rgba(31, 111, 235, .22); animation: eduFloat var(--d) linear var(--dl) infinite; }
.co-sky span:nth-child(3n) { color: rgba(255, 93, 143, .22); } .co-sky span:nth-child(4n) { color: rgba(245, 179, 1, .3); }
.co-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.co-h1 { margin: 0 0 22px; font: 800 clamp(2.6rem, 5.8vw, 5.2rem)/1 var(--sans); letter-spacing: -.045em; color: var(--navy); }
.co-h1 em { font: italic 400 1.04em/1.05 var(--serif); letter-spacing: -.01em; background: linear-gradient(90deg, var(--blue), var(--rose), var(--gold), var(--blue)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: coShine 8s linear infinite; }
@keyframes coShine { to { background-position: 300% 0; } }
.co-lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: #43547c; max-width: 560px; margin: 0 0 30px; }
.co-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.co-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; }
.co-trust li { font-size: .92rem; color: #5a6b90; }
.co-trust b { display: block; font: 800 1.5rem/1.1 var(--sans); color: var(--navy); }
.co-hero-art { position: relative; min-height: 460px; }
.co-screen { position: absolute; inset: 30px 10px 60px 30px; border-radius: 22px; background: #0d1b3e; box-shadow: 0 50px 90px -40px rgba(10, 37, 89, .7), 0 0 0 10px #fff, 0 0 0 11px #dbe7fb; transform: rotate(-2deg); animation: coFloat 6s ease-in-out infinite alternate; overflow: hidden; }
@keyframes coFloat { to { translate: 0 -12px; } }
.co-screen-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #13254f; color: #9db6e8; font: 600 .78rem/1 var(--sans); }
.co-screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .co-screen-bar i:nth-child(2) { background: #febc2e; } .co-screen-bar i:nth-child(3) { background: #28c840; }
.co-screen-bar span { margin-left: 10px; } .co-screen-bar span::before { content: "● "; color: #ff4d4d; animation: podDot 1.2s infinite; }
.co-screen-body { padding: 18px; display: grid; gap: 16px; }
.co-board { min-height: 130px; border-radius: 12px; background: linear-gradient(160deg, #1d5c3a, #134a2d); border: 6px solid #8a5a2b; padding: 18px; display: grid; place-items: center; font: italic 400 clamp(1.1rem, 1.8vw, 1.5rem)/1.3 var(--serif); color: #f6f1d0; text-align: center; }
.co-type::after { content: "|"; animation: podDot 1s infinite; margin-left: 2px; }
.co-faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-faces i { aspect-ratio: 4 / 3; border-radius: 10px; background: #1a2d5c; display: grid; place-items: center; position: relative; overflow: hidden; }
.co-faces b { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 26px 0 6px var(--c); translate: 0 -10%; animation: coNod 3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.5s); }
@keyframes coNod { to { transform: translateY(3px) rotate(4deg); } }
.co-faces i:nth-child(2)::after { content: ""; position: absolute; inset: 0; border: 2px solid #22c55e; border-radius: 10px; animation: podDot 2s infinite; }
.co-hero-logo { position: absolute; right: -6px; top: -16px; width: clamp(130px, 13vw, 180px); padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 24px 40px -20px rgba(10, 37, 89, .5); animation: coFloat 5s ease-in-out -2s infinite alternate; }
.co-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -18px rgba(10, 37, 89, .5); font-size: .8rem; color: #5a6b90; animation: coFloat 5.5s ease-in-out infinite alternate; }
.co-chip .co-ic { width: 34px; height: 34px; padding: 6px; border-radius: 10px; color: #fff; background: var(--blue); }
.co-chip b { display: block; color: var(--navy); font-size: .95rem; }
.co-chip.c1 { left: -10px; bottom: 20px; } .co-chip.c2 { right: 0; bottom: -4px; animation-delay: -2.5s; } .co-chip.c2 .co-ic { background: var(--rose); }
.co-ticker { position: relative; margin-top: clamp(50px, 6vw, 80px); background: var(--navy); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.03); }
.co-ticker div { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 36s linear infinite; font: 700 1.25rem/1 var(--sans); }
.co-ticker i { color: var(--gold); font-style: normal; } .co-ticker [lang="fa"] { font-family: var(--fa); }

/* why */
.co-why { background: linear-gradient(180deg, #fff, var(--sky)); }
.co-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.co-stats > div { padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -40px rgba(10, 37, 89, .45); border-top: 5px solid var(--blue); }
.co-stats > div:nth-child(2) { border-color: var(--rose); } .co-stats > div:nth-child(3) { border-color: var(--gold); }
.co-stats b { font: 800 clamp(3rem, 6vw, 4.6rem)/1 var(--sans); letter-spacing: -.05em; color: var(--navy); }
.co-stats span { font: 800 2.4rem/1 var(--sans); color: var(--blue); }
.co-stats p { margin: 12px 0 0; color: #4a5a80; }
.co-src { margin: 14px 0 0; font-size: .82rem; color: #7a89aa; }
.co-big-quote { margin: clamp(50px, 6vw, 80px) auto 0; max-width: 900px; text-align: center; font: italic 400 clamp(1.6rem, 3vw, 2.5rem)/1.25 var(--serif); color: var(--navy); }
.co-big-quote cite { display: block; margin-top: 18px; font: 600 .85rem/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

/* story + timeline */
.co-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.co-story-copy { position: sticky; top: 170px; }
.co-story-copy p { color: #43547c; font-size: 1.05rem; line-height: 1.7; }
.co-story-copy a { color: var(--blue); }
.co-founder { display: flex; gap: 16px; align-items: center; margin-top: 26px; padding: 16px; border-radius: 20px; background: var(--sky); }
.co-founder img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 3px solid #fff; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.co-founder b { display: block; color: var(--navy); } .co-founder span { font-size: .82rem; color: var(--blue); font-weight: 700; }
.co-founder p { margin: 6px 0 0; font: italic 400 1.05rem/1.35 var(--serif); color: var(--navy); }
.co-timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.co-timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--rose), var(--gold)); }
.co-timeline li { position: relative; margin-bottom: 18px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid #e3ecfb; box-shadow: 0 20px 40px -32px rgba(10, 37, 89, .5); transition: transform .4s cubic-bezier(.22, 1.4, .36, 1), box-shadow .4s; }
.co-timeline li:hover { transform: translateX(6px) scale(1.02); box-shadow: 0 30px 50px -30px rgba(10, 37, 89, .55); }
.co-dot { position: absolute; left: -33px; top: 24px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.co-timeline li:last-child .co-dot { border-color: var(--gold); animation: coPing2 1.8s infinite; }
@keyframes coPing2 { 0% { box-shadow: 0 0 0 0 rgba(245, 179, 1, .6); } 100% { box-shadow: 0 0 0 12px rgba(245, 179, 1, 0); } }
.co-when { margin: 0 0 4px; font: 700 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.co-timeline h3 { margin: 0 0 6px; font: 700 1.2rem/1.2 var(--sans); color: var(--navy); }
.co-timeline p:last-child { margin: 0; color: #5a6b90; font-size: .95rem; }

/* courses */
.co-courses { background: var(--sky); }
.co-course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.co-course { position: relative; overflow: hidden; padding: 28px 24px; border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -36px rgba(10, 37, 89, .5); transition: transform .45s cubic-bezier(.22, 1.4, .36, 1), box-shadow .45s; }
.co-course::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: var(--cc); opacity: .12; transition: transform .6s, opacity .6s; }
.co-course:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 40px 60px -30px color-mix(in srgb, var(--cc) 60%, transparent); }
.co-course:hover::before { transform: scale(3.5); opacity: .1; }
.co-course-ic { display: grid; place-items: center; width: 60px; height: 60px; padding: 12px; border-radius: 18px; background: var(--cc); color: #fff; margin-bottom: 18px; box-shadow: 0 14px 24px -12px var(--cc); transition: transform .5s; }
.co-course:hover .co-course-ic { transform: rotate(-8deg) scale(1.1); }
.co-course h3 { margin: 0 0 8px; font: 700 1.15rem/1.2 var(--sans); color: var(--navy); }
.co-course p { margin: 0; color: #5a6b90; font-size: .94rem; line-height: 1.55; }

/* wins */
.co-wins { background: radial-gradient(60% 80% at 100% 0%, #2a5bd7 0%, transparent 60%), var(--navy); color: #fff; }
.co-wins-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.co-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.co-checks li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font: 600 1.05rem/1.3 var(--sans); transition: background .3s, transform .3s; }
.co-checks li:hover { background: rgba(255, 255, 255, .13); transform: translateX(6px); }
.co-checks svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #22c55e; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.co-checks path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s ease calc(.3s + var(--i) * .12s); }
.co-checks li.in path { stroke-dashoffset: 0; }

/* GED */
.co-ged-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; padding: clamp(34px, 5vw, 64px); border-radius: 32px; color: #fff; background: radial-gradient(70% 90% at 100% 100%, rgba(255, 93, 143, .55), transparent 60%), radial-gradient(60% 80% at 0% 0%, rgba(31, 111, 235, .7), transparent 60%), #0d1b4a; box-shadow: 0 60px 100px -50px rgba(10, 37, 89, .8); }
.co-ged-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .1) 50%, transparent 60%); background-size: 260% 100%; animation: arcShine 6s ease-in-out infinite; pointer-events: none; }
.co-ged-copy p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; line-height: 1.6; max-width: 560px; }
.co-ged-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-ged-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.co-ged-list .co-ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #ffd166; }
.co-ged-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-ged-facts div { padding: 20px 14px; border-radius: 20px; text-align: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); animation: coFloat 5s ease-in-out infinite alternate; }
.co-ged-facts div:nth-child(2) { animation-delay: -1.2s; } .co-ged-facts div:nth-child(3) { animation-delay: -2.4s; } .co-ged-facts div:nth-child(4) { animation-delay: -3.6s; }
.co-ged-facts b { display: block; font: 800 2.2rem/1 var(--sans); color: #ffd166; }
.co-ged-facts span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .75); }

/* university */
.co-uni { background: linear-gradient(160deg, #0a2559, #13306f 60%, #1b3d8a); color: #fff; overflow: hidden; }
.co-uni::before { content: ""; position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 209, 102, .25), transparent 60%); animation: eduGlow 10s ease-in-out infinite alternate; }
.co-uni-head { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 50px); align-items: center; }
.co-uni-head img { width: clamp(120px, 13vw, 180px); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 30px 60px -20px #000; animation: coSpinSlow 30s linear infinite; }
@keyframes coSpinSlow { to { transform: rotate(360deg); } }
.co-uni-count { text-align: center; padding: 26px 30px; border-radius: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.co-uni-count b { font: 800 3.6rem/1 var(--sans); color: #ffd166; } .co-uni-count span { font: 800 2.4rem/1 var(--sans); color: #ffd166; }
.co-uni-count p { margin: 6px 0 0; color: rgba(255, 255, 255, .75); }
.co-fac-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.co-fac-grid article { padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: transform .45s cubic-bezier(.22, 1.4, .36, 1), background .4s; }
.co-fac-grid article:hover { transform: translateY(-8px) scale(1.03); background: rgba(255, 255, 255, .12); }
.co-fac-grid .co-ic { width: 52px; height: 52px; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #ffd166, #f59e0b); color: #2a1c00; margin-bottom: 14px; }
.co-fac-grid h3 { margin: 0 0 6px; font: 700 1.15rem/1.2 var(--sans); }
.co-fac-grid p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* departments */
.co-dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.co-dept { display: grid; gap: 12px; padding: 22px 18px; border-radius: 20px; background: #fff; border: 1px solid #e3ecfb; text-align: center; justify-items: center; transition: transform .45s cubic-bezier(.22, 1.4, .36, 1), box-shadow .45s, border-color .3s; }
.co-dept:hover { transform: translateY(-6px) scale(1.05); border-color: var(--blue); box-shadow: 0 30px 50px -30px rgba(31, 111, 235, .7); }
.co-dept .co-ic { width: 54px; height: 54px; padding: 11px; border-radius: 50%; background: var(--sky); color: var(--blue); transition: background .3s, color .3s; }
.co-dept:hover .co-ic { background: var(--blue); color: #fff; }
.co-dept h3 { margin: 0 0 4px; font: 700 1rem/1.2 var(--sans); color: var(--navy); }
.co-dept p { margin: 0; font-size: .84rem; color: #5a6b90; line-height: 1.45; }

/* promise */
.co-promise { background: linear-gradient(180deg, #fff, #fff7e6); }
.co-promise-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.co-promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-promise-list li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -30px rgba(120, 80, 0, .5); color: #43547c; line-height: 1.5; transition: transform .4s cubic-bezier(.22, 1.4, .36, 1); }
.co-promise-list li:hover { transform: scale(1.04); }
.co-promise-list span { flex: none; font: 800 1.4rem/1 var(--sans); color: var(--gold); }

/* voices */
.co-voices { background: radial-gradient(70% 80% at 0% 100%, rgba(255, 93, 143, .35), transparent 60%), radial-gradient(60% 70% at 100% 0%, rgba(31, 111, 235, .45), transparent 60%), #0b1836; color: #fff; }
.co-voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.co-voice-grid figure { margin: 0; padding: 32px; border-radius: 26px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: transform .45s cubic-bezier(.22, 1.4, .36, 1), background .4s; }
.co-voice-grid figure:hover { transform: translateY(-6px) scale(1.03); background: rgba(255, 255, 255, .12); }
.co-voice-grid .v2 { background: linear-gradient(135deg, rgba(255, 209, 102, .2), rgba(255, 93, 143, .15)); }
.co-voice-grid blockquote { margin: 0 0 20px; font: italic 400 clamp(1.25rem, 2vw, 1.6rem)/1.35 var(--serif); }
.co-voice-grid blockquote::before { content: "\201C"; display: block; font: 400 4rem/.6 var(--serif); color: #ffd166; margin-bottom: 8px; }
.co-voice-grid blockquote { quotes: none; }
.co-voice-grid figcaption { font-size: .85rem; color: rgba(255, 255, 255, .7); }
.co-voice-grid figcaption b { display: block; color: #fff; font-size: 1rem; }

/* magazine */
.co-mag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.co-mags { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; perspective: 1000px; }
.co-mag-card { position: relative; overflow: hidden; display: grid; align-content: end; gap: 6px; aspect-ratio: 3 / 4; padding: 22px; border-radius: 10px 22px 22px 10px; color: #fff; text-decoration: none; box-shadow: -8px 0 0 rgba(0, 0, 0, .15) inset, 0 30px 60px -30px rgba(10, 37, 89, .7); transform: rotateY(-12deg); transition: transform .6s cubic-bezier(.22, 1.4, .36, 1); }
.co-mag-card:hover { transform: rotateY(0) scale(1.05); }
.co-mag-card.m1 { background: linear-gradient(160deg, #1f6feb, #0a2559); } .co-mag-card.m2 { background: linear-gradient(160deg, #ff5d8f, #7c2d5a); }
.co-mag-card::before { content: "Clinton Online School · Monthly Magazine"; position: absolute; top: 22px; left: 22px; right: 22px; font: 700 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.co-mag-no { font: 700 .8rem/1 var(--sans); color: #ffd166; letter-spacing: .1em; text-transform: uppercase; }
.co-mag-card b { font: 800 1.8rem/1.05 var(--sans); }
.co-mag-card > span:last-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.co-mag-card svg { width: 14px; }

/* rules */
.co-rules { background: var(--sky); }
.co-rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.co-rule { padding: 24px; border-radius: 20px; background: #fff; transition: transform .45s cubic-bezier(.22, 1.4, .36, 1), box-shadow .45s; }
.co-rule:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 30px 50px -30px rgba(10, 37, 89, .45); }
.co-rule span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; }
.co-rule h3 { margin: 0 0 6px; font: 700 1.05rem/1.2 var(--sans); color: var(--navy); }
.co-rule p { margin: 0; color: #5a6b90; font-size: .92rem; }

/* faq */
.co-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.co-acc details { border-radius: 18px; background: #fff; border: 1px solid #e3ecfb; margin-bottom: 10px; transition: box-shadow .3s, border-color .3s; }
.co-acc details[open] { border-color: var(--blue); box-shadow: 0 20px 40px -28px rgba(31, 111, 235, .6); }
.co-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 700 1.05rem/1.3 var(--sans); color: var(--navy); }
.co-acc summary::-webkit-details-marker { display: none; }
.co-acc summary i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); transition: background .3s, transform .4s; }
.co-acc summary i::before, .co-acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue); translate: -50% -50%; }
.co-acc summary i::after { rotate: 90deg; transition: rotate .4s; }
.co-acc details[open] summary i { background: var(--blue); transform: rotate(180deg); } .co-acc details[open] summary i::before, .co-acc details[open] summary i::after { background: #fff; } .co-acc details[open] summary i::after { rotate: 0deg; }
.co-acc p { margin: 0; padding: 0 22px 22px; color: #4a5a80; line-height: 1.6; }

/* support */
.co-support { background: radial-gradient(70% 90% at 100% 50%, rgba(245, 179, 1, .3), transparent 60%), linear-gradient(135deg, #3b0f2e, #7c2d5a 55%, #b8456e); color: #fff; overflow: hidden; }
.co-support-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.co-needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-needs li { padding: 24px 20px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); transition: transform .45s cubic-bezier(.22, 1.4, .36, 1), background .3s; }
.co-needs li:hover { transform: translateY(-6px) scale(1.05); background: rgba(255, 255, 255, .18); }
.co-needs .co-ic { display: block; width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: #ffd166; color: #3b0f2e; margin-bottom: 12px; }
.co-needs b { display: block; font-size: 1.05rem; } .co-needs span { font-size: .88rem; color: rgba(255, 255, 255, .8); }

/* enrol */
.co-enrol { background: linear-gradient(180deg, var(--sky), #fff); }
.co-enrol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.co-steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.co-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 99px; background: #fff; border: 1px solid #dbe7fb; font-weight: 600; color: var(--navy); }
.co-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; }
.co-enrol .contact-lines a { color: var(--navy); }
.co-form { padding: clamp(26px, 4vw, 40px); border-radius: 28px; background: #fff; box-shadow: 0 50px 90px -50px rgba(10, 37, 89, .55); border: 1px solid #e3ecfb; }
.co-form h3 { margin: 0 0 20px; font: 800 1.5rem/1.2 var(--sans); color: var(--navy); }
.co-form .field span { color: #5a6b90; }
.co-form .field input, .co-form .field textarea { border-radius: 14px; border: 1.5px solid #dbe7fb; background: #f8fbff; transition: border-color .3s, box-shadow .3s; }
.co-form .field input:focus, .co-form .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 235, .15); outline: none; }

/* reveal motion for school cards */
.js .co [data-reveal] { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .9s var(--ease-out), transform 1s cubic-bezier(.22, 1.3, .36, 1); transition-delay: calc(var(--i, 0) * .07s); }
.js .co [data-reveal].in { opacity: 1; transform: none; }
.js .co .co-course[data-reveal].in:hover, .js .co .co-dept[data-reveal].in:hover, .js .co .co-rule[data-reveal].in:hover, .js .co .co-fac-grid article[data-reveal].in:hover, .js .co .co-needs li[data-reveal].in:hover, .js .co .co-voice-grid figure[data-reveal].in:hover, .js .co .co-promise-list li[data-reveal].in:hover { transition-delay: 0s; }
.js .co .co-course[data-reveal].in:hover { transform: translateY(-8px) scale(1.04); }
.js .co .co-dept[data-reveal].in:hover { transform: translateY(-6px) scale(1.05); }
.js .co .co-rule[data-reveal].in:hover, .js .co .co-fac-grid article[data-reveal].in:hover { transform: translateY(-6px) scale(1.04); }
.js .co .co-needs li[data-reveal].in:hover { transform: translateY(-6px) scale(1.05); }
.js .co .co-voice-grid figure[data-reveal].in:hover { transform: translateY(-6px) scale(1.03); }
.js .co .co-promise-list li[data-reveal].in:hover { transform: scale(1.04); }
.js .co .co-timeline li[data-reveal].in:hover { transform: translateX(6px) scale(1.02); }
.js .co .co-mag-card[data-reveal] { transform: rotateY(-30deg) translateY(40px); }
.js .co .co-mag-card[data-reveal].in { transform: rotateY(-12deg); }
.js .co .co-mag-card[data-reveal].in:hover { transform: rotateY(0) scale(1.05); }

/* responsive */
@media (max-width: 1100px) { .co-nav ul { display: none; } .co-course-grid { grid-template-columns: repeat(2, 1fr); } .co-dept-grid { grid-template-columns: repeat(3, 1fr); } .co-rule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .co-nav { margin-top: 76px; }
  .co-hero-grid, .co-story-grid, .co-wins-grid, .co-ged-card, .co-promise-grid, .co-mag-grid, .co-faq-grid, .co-support-grid, .co-enrol-grid, .co-voice-grid { grid-template-columns: 1fr; }
  .co-story-copy { position: static; }
  .co-hero-art { min-height: 400px; }
  .co-stats, .co-fac-grid { grid-template-columns: 1fr; }
  .co-uni-head { grid-template-columns: 1fr; text-align: left; }
  .co-promise-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .co-course-grid, .co-dept-grid, .co-rule-grid, .co-needs, .co-ged-list { grid-template-columns: 1fr; }
  .co-brand span { font-size: .85rem; } .co-brand small { display: none; }
  .co-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .co *, .co *::before, .co *::after { animation: none !important; } }
.co-story-copy .co-kick { color: var(--blue); }
.co-uni-head img { animation: coFloat 5s ease-in-out infinite alternate; }
/* school hero photo with moving objects */
.co-hero-art { min-height: 0; }
.co-photo { position: relative; width: calc(100% + max(var(--gutter), (100vw - 1240px) / 2)); aspect-ratio: 1672 / 941; border-radius: 28px 0 0 28px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(10, 37, 89, .6); animation: coFloat 7s ease-in-out infinite alternate; }
.co-photo-base { position: absolute; inset: 0; background-size: 100% 100%; }
.co-obj { position: absolute; display: block; background-repeat: no-repeat; will-change: transform; }
.o-book { animation: oBook 4s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px rgba(255, 210, 100, .9)); z-index: 3; }
@keyframes oBook { from { transform: translateY(4px) scale(1); } to { transform: translateY(-10px) scale(1.05); } }
.o-cap { animation: oCap 5s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
@keyframes oCap { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(-8px, -10px) rotate(6deg); } }
.o-globe { animation: oCap 6s ease-in-out -2s infinite alternate-reverse; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.o-atom { animation: oSpin 8s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
@keyframes oSpin { to { transform: rotate(360deg); } }
.o-flask { animation: oFlask 2.6s ease-in-out infinite alternate; transform-origin: 50% 90%; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
@keyframes oFlask { from { transform: rotate(-8deg); } to { transform: rotate(8deg) translateY(-4px); } }
.o-mini { animation: oCap 4.5s ease-in-out -1s infinite alternate; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.o-world { animation: oWorld 6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes oWorld { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.o-flag { animation: oFlag 3.5s ease-in-out infinite alternate; transform-origin: 0 50%; }
@keyframes oFlag { from { transform: skewY(0deg) scaleX(1); } to { transform: skewY(-1.4deg) scaleX(1.015); } }
.co-glow { position: absolute; left: 50%; top: 2%; width: 26%; aspect-ratio: 1; translate: -38% 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 150, .7), rgba(255, 200, 90, .2) 45%, transparent 70%); mix-blend-mode: screen; animation: phSun 2.8s ease-in-out infinite alternate; z-index: 2; }
.co-sparks { position: absolute; left: 57.4%; top: 13%; z-index: 4; }
.co-sparks b { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff6d0; box-shadow: 0 0 10px 3px rgba(255, 220, 130, .9); animation: oSpark var(--d) ease-out var(--dl) infinite; }
@keyframes oSpark { 0% { transform: rotate(var(--a)) translateX(0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: rotate(var(--a)) translateX(140px) scale(1); opacity: 0; } }
.co-hero-art .co-chip.c1 { left: -18px; bottom: -22px; } .co-hero-art .co-chip.c2 { right: 6%; bottom: -26px; }
@media (max-width: 860px) { .co-photo { width: calc(100% + var(--gutter)); } .co-sparks b { animation-name: oSparkS; } @keyframes oSparkS { 0% { transform: rotate(var(--a)) translateX(0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: rotate(var(--a)) translateX(70px); opacity: 0; } } }
@media (prefers-reduced-motion: reduce) { .co-obj, .co-glow, .co-sparks b { animation: none !important; } }
.co-obj { filter: none !important; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.o-flag { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent), linear-gradient(0deg, transparent, #000 15%); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.o-book { -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent 100%); mask-image: radial-gradient(closest-side, #000 75%, transparent 100%); }
.co-hero-grid { grid-template-columns: .92fr 1.08fr; }
/* story timeline in Afghan flag colours: black, red, green */
.co-timeline::before { background: linear-gradient(#1a1a1a 0%, #1a1a1a 30%, #c8102e 36%, #c8102e 64%, #007a36 70%, #007a36 100%); width: 4px; }
.co-timeline li { --fc: #141414; --fc2: #2d2d2d; border: 0; color: #fff; background: linear-gradient(135deg, var(--fc2), var(--fc)); box-shadow: 0 24px 44px -26px var(--fc); }
.co-timeline li:nth-child(3n+2) { --fc: #a50d26; --fc2: #d7263d; }
.co-timeline li:nth-child(3n) { --fc: #00612b; --fc2: #0a9a48; }
.co-timeline li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); background-size: 260% 100%; animation: arcShine 6s ease-in-out infinite; pointer-events: none; }
.co-timeline li:nth-child(2)::after { animation-delay: -.8s; } .co-timeline li:nth-child(3)::after { animation-delay: -1.6s; } .co-timeline li:nth-child(4)::after { animation-delay: -2.4s; } .co-timeline li:nth-child(5)::after { animation-delay: -3.2s; } .co-timeline li:nth-child(6)::after { animation-delay: -4s; } .co-timeline li:nth-child(7)::after { animation-delay: -4.8s; }
.co-timeline .co-when { color: rgba(255, 255, 255, .75); }
.co-timeline h3 { color: #fff; }
.co-story-grid .co-timeline li p:last-child { color: rgba(255, 255, 255, .88); }
.co-timeline .co-dot { border-color: var(--fc2); background: #fff; }
.co-timeline li:hover { box-shadow: 0 34px 56px -24px var(--fc); }
/* waving Afghan flag behind the school hero heading */
.co-hero-copy { position: relative; isolation: isolate; }
.co-flag { position: absolute; z-index: -1; left: -6%; top: 2%; width: 112%; height: 78%; perspective: 900px; pointer-events: none; opacity: .2; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 45% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at 45% 50%, #000 55%, transparent 100%); }
.co-flag-cloth { position: absolute; inset: 0; display: flex; transform-origin: 0 50%; animation: flagSway 6s ease-in-out infinite alternate; border-radius: 6px; overflow: hidden; }
.co-flag-cloth i { flex: 1; } .co-flag-cloth i:nth-child(1) { background: #000; } .co-flag-cloth i:nth-child(2) { background: #d32011; } .co-flag-cloth i:nth-child(3) { background: #007a36; }
/* moving folds: light and shadow bands travelling across the cloth */
.co-flag-cloth b { position: absolute; top: 0; bottom: 0; left: calc(var(--k) * 12% - 20%); width: 14%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); animation: flagFold 3s ease-in-out infinite; animation-delay: calc(var(--k) * -.3s); }
@keyframes flagFold { 0%, 100% { transform: translateX(0) scaleY(1); opacity: .6; } 50% { transform: translateX(30%) scaleY(1.03); opacity: 1; } }
@keyframes flagSway { from { transform: rotateY(-8deg) skewY(-1.5deg); } to { transform: rotateY(6deg) skewY(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .co-flag-cloth, .co-flag-cloth b { animation: none; } }
.co-flag { opacity: .28; }
@media (max-width: 860px) { .co-hero-grid { grid-template-columns: 1fr; } .co-flag { opacity: .22; width: 100%; left: 0; } }
/* flag: full-strength, behind the entire school hero */
.co-hero { isolation: isolate; background: #0b0b0b; }
.co-hero-copy { position: static; }
.co-hero .co-flag { position: absolute; z-index: -1; inset: -4% -6%; width: auto; height: auto; left: -6%; top: -4%; opacity: 1; -webkit-mask-image: none; mask-image: none; perspective: 1400px; }
.co-hero .co-flag-cloth { border-radius: 0; }
.co-hero .co-flag-cloth i:nth-child(1) { background: #0d0d0d; } .co-hero .co-flag-cloth i:nth-child(2) { background: #c8102e; } .co-hero .co-flag-cloth i:nth-child(3) { background: #00843d; }
.co-hero .co-flag-cloth b { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16), rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)); }
.co-hero .co-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .1) 100%); }
.co-hero .co-sky { z-index: 0; } .co-hero .co-sky span { color: rgba(255, 255, 255, .18) !important; }
.co-hero .co-hero-grid { z-index: 1; }
.co-hero .co-h1 { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.co-hero .co-h1 em { background: linear-gradient(90deg, #fff, #ffd166, #fff, #ffd166); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-hero .co-lead { color: rgba(255, 255, 255, .92); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.co-hero .co-trust li { color: rgba(255, 255, 255, .8); } .co-hero .co-trust b { color: #fff; }
.co-hero .co-btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.co-hero .co-btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.co-hero .co-photo { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .9); }
.co-hero .co-flag { inset: -16% -14%; left: -14%; top: -16%; }
/* in-site PDF viewer */
.pdfv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 3vh 3vw; background: rgba(6, 12, 30, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.pdfv[hidden] { display: none !important; }
.pdfv.open { opacity: 1; }
.pdfv-panel { width: min(1100px, 100%); height: 100%; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 50px 120px -30px #000; transform: translateY(30px) scale(.97); transition: transform .5s cubic-bezier(.22, 1.3, .36, 1); }
.pdfv.open .pdfv-panel { transform: none; }
.pdfv-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; background: #0a2559; color: #fff; }
.pdfv-title { margin-right: auto; font: 700 .98rem/1.2 var(--sans); }
.pdfv-dl { padding: 9px 16px; border-radius: 99px; background: #f5b301; color: #2a1c00; font: 700 .85rem/1 var(--sans); text-decoration: none; }
.pdfv-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pdfv-x:hover { background: rgba(255, 255, 255, .3); }
.pdfv-frame { flex: 1; width: 100%; border: 0; background: #525659; }
.co-hero .co-ticker { z-index: 3; margin-bottom: 26px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); border-top: 2px solid #ffd166; border-bottom: 2px solid #ffd166; }
.co-hero { background: linear-gradient(90deg, #0d0d0d 0 33.4%, #c8102e 33.4% 66.6%, #00843d 66.6%); } .co-hero .co-sky { opacity: .6; }
/* ===== illustrated course cards ===== */
.co-course { min-height: 320px; padding: 0; display: flex; }
.co-course::before { display: none; }
.cc-txt { position: relative; z-index: 2; padding: 26px 22px; width: 62%; background: linear-gradient(90deg, #fff 70%, rgba(255, 255, 255, 0)); }
.cc-art { position: absolute; inset: 0 0 0 30%; z-index: 1; overflow: hidden; color: var(--cc); background: radial-gradient(120% 100% at 80% 70%, color-mix(in srgb, var(--cc) 22%, #fff), color-mix(in srgb, var(--cc) 6%, #fff) 70%); transition: transform .8s cubic-bezier(.22, 1.2, .36, 1); }
.co-course:hover .cc-art { transform: scale(1.08); }
.cc-art > * { position: absolute; }
.cc-art svg { width: 100%; height: 100%; }
@keyframes aBob { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes aSpin { to { rotate: 360deg; } }
@keyframes aTilt { from { rotate: -6deg; } to { rotate: 6deg; } }
/* languages */
.a-globe { right: 10%; top: 10%; width: 44%; aspect-ratio: 1; animation: aSpin 14s linear infinite; opacity: .9; }
.a-spines { right: 6%; bottom: 8%; width: 66%; display: grid; gap: 4px; }
.a-spines b { display: block; padding: 7px 10px; border-radius: 4px 8px 8px 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c) 25%, var(--c) 85%, color-mix(in srgb, var(--c) 70%, #000)); color: #f6e7b8; font: italic 600 .95rem/1 var(--serif); text-align: center; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); transform: translateX(calc(var(--k) * 4px - 6px)); animation: aBob 3s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.4s); }
.a-spines b[lang="fa"] { font: 700 1rem/1 var(--fa); font-style: normal; }
/* science */
.a-dna { right: 34%; top: 6%; width: 30%; height: 70%; }
.a-dna i { position: absolute; left: 0; right: 0; top: calc(var(--k) * 12%); height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cc), #7dd3fc); animation: aDna 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -.3s); }
.a-dna i::before, .a-dna i::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); } .a-dna i::before { left: -4px; } .a-dna i::after { right: -4px; background: #7dd3fc; }
@keyframes aDna { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.15); } }
.a-atom { right: 6%; top: 8%; width: 30%; aspect-ratio: 1; animation: aSpin 6s linear infinite; }
.a-flask { right: 12%; bottom: 6%; width: 36%; aspect-ratio: 1; animation: aTilt 2.6s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.a-bubble { position: absolute; left: 44%; bottom: 30%; width: 9px; height: 9px; border-radius: 50%; background: var(--cc); animation: aBub 2s ease-in infinite; } .a-bubble.b2 { left: 56%; animation-delay: -1s; width: 6px; height: 6px; }
@keyframes aBub { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
/* maths */
.a-board { right: 6%; top: 10%; width: 78%; height: 52%; border: 6px solid #8a5a2b; border-radius: 6px; background: #1f4a37; color: #f6f1d0; display: grid; align-content: center; gap: 4px; padding: 8px 10px; font: italic 400 1.05rem/1.1 var(--serif); }
.a-board span { white-space: nowrap; animation: aChalk 4s steps(18) infinite; overflow: hidden; width: 0; }
.a-board span:nth-child(2) { animation-delay: 1.2s; } .a-board .pi { position: absolute; right: 10px; top: 6px; font-size: 1.8rem; width: auto; animation: aBob 2s ease-in-out infinite alternate; }
@keyframes aChalk { 0% { width: 0; } 50%, 100% { width: 100%; } }
.a-calc { right: 30%; bottom: 7%; width: 32%; height: 30%; padding: 6px; border-radius: 8px; background: #2b2f3a; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: rotate(-8deg); }
.a-calc i { border-radius: 3px; background: #9aa3b5; animation: aKey 3s infinite; } .a-calc i:nth-child(4n) { background: var(--cc); animation-delay: -1s; } .a-calc i:nth-child(5) { animation-delay: -2s; }
@keyframes aKey { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .3; } }
/* psychology */
.a-head { right: 10%; top: 8%; width: 62%; aspect-ratio: 1; }
.a-brain { position: absolute; left: 30%; top: 22%; width: 38%; aspect-ratio: 1.2; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 40%, #fff, color-mix(in srgb, var(--cc) 70%, #fff) 50%, var(--cc)); box-shadow: 0 0 24px 6px color-mix(in srgb, var(--cc) 55%, transparent); animation: phSun 2s ease-in-out infinite alternate; }
.a-sprout { right: 8%; bottom: 6%; width: 30%; aspect-ratio: 1; color: #22a35a; animation: aTilt 3s ease-in-out infinite alternate; transform-origin: 20% 90%; }
/* computer */
.a-net { right: 4%; top: 4%; width: 46%; aspect-ratio: 1; opacity: .7; animation: aSpin 18s linear infinite; }
.a-laptop { right: 10%; bottom: 10%; width: 72%; animation: aBob 3s ease-in-out infinite alternate; }
.a-scr { position: relative; aspect-ratio: 16 / 10; border: 5px solid #2b2f3a; border-radius: 8px 8px 0 0; background: linear-gradient(160deg, #0f1f45, #1b3a7a); display: grid; place-items: center; overflow: hidden; }
.a-scr span { font: 800 1.6rem/1 var(--sans); color: #7dd3fc; text-shadow: 0 0 12px #38bdf8; }
.a-scr i { position: absolute; left: 10%; height: 3px; border-radius: 3px; background: rgba(125, 211, 252, .5); width: 40%; animation: aCode 2.4s steps(10) infinite; }
.a-scr i:nth-of-type(1) { top: 16%; } .a-scr i:nth-of-type(2) { top: 26%; animation-delay: .6s; width: 30%; } .a-scr i:nth-of-type(3) { bottom: 16%; animation-delay: 1.2s; }
@keyframes aCode { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.a-base { height: 8px; margin: 0 -8%; border-radius: 0 0 8px 8px; background: #9aa3b5; }
/* creative writing */
.a-book { right: 8%; bottom: 12%; width: 78%; height: 44%; display: flex; transform: perspective(300px) rotateX(28deg); }
.a-book .pg { flex: 1; background: #fffdf5; padding: 10px 8px; display: grid; align-content: start; gap: 6px; box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .5); }
.a-book .l { border-radius: 6px 0 0 6px; } .a-book .r { border-radius: 0 6px 6px 0; border-left: 1px solid #e5dcc3; }
.a-book i { height: 3px; border-radius: 2px; background: #9fb3d9; transform-origin: left; animation: aWrite 4s ease-in-out infinite; }
.a-book .r i { animation-delay: 1.8s; } .a-book i:nth-child(2) { animation-delay: .3s; } .a-book i:nth-child(3) { animation-delay: .6s; } .a-book i:nth-child(4) { animation-delay: .9s; } .a-book i:nth-child(5) { animation-delay: 1.2s; width: 60%; }
@keyframes aWrite { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
.a-quill { right: 10%; top: 6%; width: 38%; aspect-ratio: 1; animation: aQuill 2s ease-in-out infinite alternate; }
@keyframes aQuill { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(-10px, 6px) rotate(4deg); } }
/* persian poetry */
.a-arch { right: 8%; top: 6%; width: 52%; height: 84%; border-radius: 999px 999px 8px 8px; border: 5px solid #c9a227; background: repeating-conic-gradient(from 45deg, #1e3a8a 0 25%, #2563eb 0 50%) 0 0 / 16px 16px, #1e3a8a; box-shadow: inset 0 0 0 6px #1e3a8a; animation: aGlow 3s ease-in-out infinite alternate; }
@keyframes aGlow { from { filter: brightness(.9); } to { filter: brightness(1.25); } }
.a-quill.q2 { right: 30%; top: 22%; width: 34%; color: #fff; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.a-ink { right: 38%; bottom: 8%; width: 16%; aspect-ratio: 1; border-radius: 40% 40% 30% 30%; background: radial-gradient(circle at 35% 30%, #6b8fd6, #1e3a8a); }
/* drawing & calligraphy */
.a-easel { right: 8%; top: 6%; width: 56%; height: 70%; border-bottom: 5px solid #8a5a2b; animation: aBob 4s ease-in-out infinite alternate; }
.a-canvas { height: 86%; background: #fff; border: 4px solid #c8a46a; border-radius: 4px; padding: 6px; color: #555; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); }
.a-canvas svg { stroke-dasharray: 160; animation: aDraw 5s ease-in-out infinite; }
@keyframes aDraw { 0% { stroke-dashoffset: 160; } 50%, 100% { stroke-dashoffset: 0; } }
.a-callig { right: 30%; bottom: 6%; font: 700 2rem/1 var(--fa); color: #1f2937; transform: rotate(-8deg); animation: aBob 2.5s ease-in-out infinite alternate; }
.a-brush { right: 4%; bottom: 8%; width: 24%; aspect-ratio: 1; color: #8a5a2b; animation: aTilt 1.8s ease-in-out infinite alternate; }

/* ===== illustrated classroom-code cards ===== */
.co-rule { position: relative; overflow: hidden; padding-top: 150px; }
.cr-art { position: absolute; left: 0; right: 0; top: 0; height: 130px; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 100%, #dbe9ff, #f2f7ff 70%); color: var(--blue); }
.cr-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.co-rule > span { position: absolute; top: 14px; left: 14px; z-index: 2; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.co-rule:hover .cr-art > * { transform: scale(1.12); }
.cr-art > * { transition: transform .6s cubic-bezier(.22, 1.3, .36, 1); }
.cr-art svg { width: 100%; height: 100%; }
.r-clock { width: 74px; height: 74px; border-radius: 50%; border: 6px solid #f5b301; background: #fff; position: relative; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.r-clock i { position: absolute; left: 50%; bottom: 50%; width: 4px; border-radius: 4px; background: var(--navy); transform-origin: 50% 100%; translate: -50% 0; }
.r-clock .h { height: 20px; animation: aSpin 12s linear infinite; } .r-clock .m { height: 28px; background: var(--rose); animation: aSpin 2s linear infinite; }
.r-chat { display: grid; gap: 8px; } .r-chat span { padding: 8px 14px; border-radius: 14px 14px 14px 4px; background: #fff; font-weight: 700; color: var(--navy); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .4); animation: aBob 2s ease-in-out infinite alternate; }
.r-chat .b { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--blue); color: #fff; font-family: var(--fa); animation-delay: -1s; }
.r-check { position: relative; width: 80px; height: 80px; } .r-check b { position: absolute; right: -10px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; background: #22c55e; color: #fff; padding: 4px; animation: phSun 1.6s ease-in-out infinite alternate; }
.r-call { width: 110px; padding: 8px; border-radius: 12px; background: #1b2a4a; box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .5); }
.r-face { height: 58px; border-radius: 8px; background: radial-gradient(circle at 50% 42%, #f2c9a0 0 18%, transparent 19%), radial-gradient(ellipse at 50% 110%, #1e3a8a 0 45%, transparent 46%), linear-gradient(#8fb3e8, #5b86c9); animation: aBob 2.4s ease-in-out infinite alternate; }
.r-btns { display: flex; justify-content: center; gap: 6px; margin-top: 6px; } .r-btns i { width: 12px; height: 12px; border-radius: 50%; background: #3b82f6; } .r-btns i:last-child { background: #ef4444; animation: podDot 1.4s infinite; }
.r-shield { width: 80px; height: 80px; color: var(--navy); animation: aGlow 2s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px rgba(31, 111, 235, .5)); }
.r-family { position: relative; width: 120px; height: 80px; color: var(--rose); } .r-family svg { position: absolute; width: 40px; height: 40px; left: 40px; top: -6px; animation: phSun 1.4s ease-in-out infinite alternate; }
.r-family span { position: absolute; bottom: 0; width: 34px; height: 46px; border-radius: 17px 17px 6px 6px; background: radial-gradient(circle at 50% 28%, #f2c9a0 0 30%, transparent 31%), linear-gradient(transparent 50%, #1e3a8a 50%); animation: aBob 2s ease-in-out infinite alternate; }
.r-family span:nth-of-type(1) { left: 2px; background: radial-gradient(circle at 50% 28%, #f2c9a0 0 30%, transparent 31%), linear-gradient(transparent 50%, #c8a46a 50%); } .r-family span:nth-of-type(2) { left: 43px; height: 38px; animation-delay: -.6s; } .r-family span:nth-of-type(3) { right: 2px; background: radial-gradient(circle at 50% 28%, #e8b88a 0 30%, transparent 31%), linear-gradient(transparent 50%, #6b4a2b 50%); animation-delay: -1.2s; }
.r-help { position: relative; width: 80px; height: 80px; color: var(--navy); } .r-help span { position: absolute; right: -26px; top: -8px; padding: 2px 10px 8px; border-radius: 12px; background: #fff; font: 800 1.2rem/1 var(--sans); color: var(--blue); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .4); animation: aBob 1.2s ease-in-out infinite alternate; }
@media (max-width: 600px) { .cc-txt { width: 70%; } .co-course { min-height: 280px; } }
@media (prefers-reduced-motion: reduce) { .cc-art *, .cr-art * { animation: none !important; } }
.r-chat { width: 150px; gap: 6px; margin-top: -10px; } .r-chat span { white-space: nowrap; justify-self: start; padding: 7px 14px; } .r-chat .b { justify-self: end; padding: 7px 16px 10px; }
.co-rule .cr-art span { width: auto; height: auto; display: block; margin: 0; } .co-rule .r-chat span { background: #fff; color: var(--navy); border-radius: 14px 14px 14px 4px; } .co-rule .r-chat .b { background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; } .co-rule .r-help span { background: #fff; color: var(--blue); }
.co-rule .r-family span { position: absolute; display: block; bottom: 0; width: 34px; height: 46px; } .co-rule .r-family span:nth-of-type(2) { height: 38px; }
/* faculty boxes: picture backgrounds (faculty-1..6.jpg), animated */
.co-fac-grid article { position: relative; isolation: isolate; overflow: hidden; }
.co-fac-grid article.has-pic { min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; }
.co-fac-grid article.has-pic::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--fp) center / cover; animation: arcPan 16s ease-in-out infinite alternate; }
.co-fac-grid article.has-pic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 37, 89, .15) 0%, rgba(10, 37, 89, .55) 45%, rgba(10, 37, 89, .94) 100%); }
.co-fac-grid article.has-pic:nth-child(2)::before { animation-duration: 19s; animation-direction: alternate-reverse; }
.co-fac-grid article.has-pic:nth-child(3)::before { animation-duration: 21s; } .co-fac-grid article.has-pic:nth-child(4)::before { animation-duration: 17s; animation-direction: alternate-reverse; }
.co-fac-grid article.has-pic:nth-child(5)::before { animation-duration: 20s; } .co-fac-grid article.has-pic:nth-child(6)::before { animation-duration: 18s; animation-direction: alternate-reverse; }
.co-fac-grid article.has-pic p { color: rgba(255, 255, 255, .9); }
.co-fac-grid article { min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; }
/* voices: each quote on its own colour + animated scene */
.co-voice-grid figure { position: relative; isolation: isolate; overflow: hidden; min-height: 280px; border: 0; }
.co-voice-grid figure.v1 { background: linear-gradient(135deg, #1a1446 0%, #4b2a8c 55%, #f08a3c 130%); }
.co-voice-grid figure.v2 { background: linear-gradient(135deg, #0a2559 0%, #1f6feb 60%, #ff5d8f 140%); }
.co-voice-grid figure.v3 { background: linear-gradient(135deg, #7a1f3d 0%, #d6456b 55%, #ffb36b 130%); }
.co-voice-grid figure.v4 { background: linear-gradient(135deg, #0c3b33 0%, #13806a 55%, #e0b04a 130%); }
.vc-art { position: absolute; right: 0; bottom: 0; width: 62%; height: 100%; z-index: -1; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.vc-art svg { width: 100%; height: 100%; }
.co-voice-grid figure::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); background-size: 260% 100%; animation: arcShine 7s ease-in-out infinite; pointer-events: none; }
.co-voice-grid figure.v2::after { animation-delay: -1.7s; } .co-voice-grid figure.v3::after { animation-delay: -3.4s; } .co-voice-grid figure.v4::after { animation-delay: -5.1s; }
.vc-sun { animation: vcRise 6s ease-in-out infinite alternate; filter: drop-shadow(0 0 18px #ffd166); }
@keyframes vcRise { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(-16px); opacity: 1; } }
.vc-heart { transform-origin: 305px 150px; animation: vcBeat 1.2s ease-in-out infinite; filter: drop-shadow(0 0 12px #ff5d8f); }
@keyframes vcBeat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } 40% { transform: scale(1); } 60% { transform: scale(1.1); } }
.vc-wifi path { animation: vcWifi 2.4s ease-in-out infinite; } .vc-wifi path:nth-child(2) { animation-delay: .3s; } .vc-wifi path:nth-child(3) { animation-delay: .6s; }
@keyframes vcWifi { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.vc-pulse { stroke-dasharray: 500; animation: vcPulse 3s linear infinite; }
@keyframes vcPulse { from { stroke-dashoffset: 500; } to { stroke-dashoffset: -500; } }
.vc-step { opacity: 0; animation: vcStep 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * .5s); }
@keyframes vcStep { 0% { opacity: 0; } 15%, 60% { opacity: .75; } 85%, 100% { opacity: 0; } }
.vc-flower { animation: aSpin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
.vc-wheat > g { animation: vcSway 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; animation-delay: calc(var(--k) * -.7s); }
@keyframes vcSway { from { rotate: -5deg; } to { rotate: 5deg; } }
.vc-quill { animation: aQuill 2.2s ease-in-out infinite alternate; transform-box: fill-box; }
.co-voice-grid blockquote, .co-voice-grid figcaption { position: relative; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.co-voice-grid figure:hover .vc-art { transform: scale(1.06); transition: transform .8s; }
@media (prefers-reduced-motion: reduce) { .vc-art * { animation: none !important; } }
.vc-art { width: 46%; height: 72%; opacity: .75; } .co-voice-grid figure { padding-bottom: 46px; }
/* faculty boxes: drawn animated scenes on the right */
.co-fac-grid article > :not(.fa-art) { position: relative; z-index: 1; }
.fa-art { position: absolute; inset: 0 0 0 42%; z-index: 0; color: #ffd166; --cc: #ffd166; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); transition: transform .8s cubic-bezier(.22, 1.2, .36, 1); }
.co-fac-grid article:hover .fa-art { transform: scale(1.08); }
.fa-art > * { position: absolute; }
.f-bars { right: 10%; bottom: 14%; width: 52%; height: 58%; display: flex; align-items: flex-end; gap: 8%; }
.f-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(#ffd166, #f59e0b); transform-origin: bottom; animation: fBar 3s ease-in-out infinite alternate; animation-delay: calc(var(--k) * .2s); }
@keyframes fBar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.f-arrow { right: 8%; top: 10%; width: 58%; fill: none; stroke: #7dd3fc; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; animation: aDraw 3.5s ease-in-out infinite; filter: drop-shadow(0 0 6px #38bdf8); }
.f-coins { right: 64%; bottom: 14%; width: 30px; display: flex; flex-direction: column-reverse; }
.f-coins i { height: 8px; margin-top: -2px; border-radius: 50%; background: linear-gradient(#ffe08a, #c9921a); box-shadow: 0 1px 0 #8a5a00; animation: fCoin 4s ease-in-out infinite; }
.f-coins i:nth-child(2) { animation-delay: .3s; } .f-coins i:nth-child(3) { animation-delay: .6s; } .f-coins i:nth-child(4) { animation-delay: .9s; } .f-coins i:nth-child(5) { animation-delay: 1.2s; }
@keyframes fCoin { 0% { transform: translateY(-40px); opacity: 0; } 20%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.f-book { right: 8%; bottom: 14%; width: 70%; height: 44%; }
.f-quill { right: 6%; top: 8%; width: 34%; aspect-ratio: 1; }
.f-lap { right: 10%; bottom: 16%; width: 66%; }
.f-chip { right: 6%; top: 12%; width: 46px; height: 46px; border-radius: 8px; background: #1e3a8a; border: 3px solid #7dd3fc; box-shadow: 0 0 0 6px rgba(125, 211, 252, .15), 0 0 24px #38bdf8; animation: phSun 1.6s ease-in-out infinite alternate; }
.f-chip i { position: absolute; inset: 12px; border-radius: 3px; background: #7dd3fc; }
.f-sun { right: 18%; top: 14%; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #fff3b0, #ffb703 60%, transparent 72%); animation: vcRise 6s ease-in-out infinite alternate; }
.f-field { right: 0; bottom: 0; width: 100%; height: 36%; background: linear-gradient(#3f8f3a, #23602a); clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
.f-field i { position: absolute; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .25); top: calc(30% + var(--n, 0) * 12%); }
.f-field i:nth-child(1) { --n: 0; } .f-field i:nth-child(2) { --n: 1; } .f-field i:nth-child(3) { --n: 2; } .f-field i:nth-child(4) { --n: 3; } .f-field i:nth-child(5) { --n: 4; } .f-field i:nth-child(6) { --n: 5; }
.f-sprout { right: 28%; bottom: 18%; width: 64px; height: 64px; color: #86efac; }
.f-ecg { right: 6%; top: 34%; width: 80%; fill: none; stroke: #4ade80; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 260; animation: vcPulse 2.2s linear infinite; filter: drop-shadow(0 0 6px #4ade80); }
.f-cross { right: 12%; top: 10%; width: 46px; height: 46px; background: #ef4444; clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); animation: vcBeat 1.2s ease-in-out infinite; filter: drop-shadow(0 0 10px #ef4444); }
@media (prefers-reduced-motion: reduce) { .fa-art * { animation: none !important; } }
/* faculty scenes: keep to the top-right, text stays clear below */
.fa-art { inset: 0 0 46% 36%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(0deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.co-fac-grid article { min-height: 250px; }
/* ten departments: animated scene strip on top */
.co-dept { position: relative; overflow: hidden; padding-top: 138px; }
.dp-art { height: 120px; }
.dp-art > * { position: relative; }
.d-school { width: 70px; height: 70px; color: var(--navy); animation: aBob 3s ease-in-out infinite alternate; }
.d-school svg { width: 100%; height: 100%; }
.d-flag { position: absolute; left: 50%; top: -2px; width: 14px; height: 9px; background: #c8102e; transform-origin: left; animation: oFlag .8s ease-in-out infinite alternate; }
.d-book { position: relative !important; right: auto !important; bottom: auto !important; width: 120px; height: 60px; }
.d-quill { position: absolute !important; right: 18% !important; top: 6% !important; width: 46px; color: var(--blue); }
.d-notes { width: 64px; height: 64px; color: var(--blue); }
.d-notes svg { width: 100%; height: 100%; animation: aTilt 1.6s ease-in-out infinite alternate; }
.d-notes b { position: absolute; color: var(--rose); font-size: 1.4rem; animation: dNote 3s ease-out infinite; } .d-notes b:last-child { left: 70%; animation-delay: 1.5s; color: #f59e0b; }
@keyframes dNote { 0% { transform: translate(40px, 30px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(70px, -30px); opacity: 0; } }
.d-head { position: relative !important; right: auto !important; top: auto !important; width: 80px; color: var(--blue); --cc: #ef4f8b; }
.d-spines { position: relative !important; right: auto !important; bottom: auto !important; width: 130px; }
.d-flask { position: relative !important; right: auto !important; bottom: auto !important; width: 60px; color: #10b39b; --cc: #10b39b; }
.d-atom { position: absolute !important; right: 18% !important; top: 12% !important; width: 40px; color: #7c5cff; }
.d-stars { width: 70px; height: 70px; color: #f5b301; }
.d-stars svg { width: 100%; height: 100%; animation: aSpin 6s linear infinite; filter: drop-shadow(0 0 8px rgba(245, 179, 1, .7)); }
.d-stars i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: oSpark 2s ease-out infinite; --a: 0deg; left: 30px; top: 30px; }
.d-stars i:nth-of-type(2) { --a: 120deg; background: var(--blue); animation-delay: .6s; } .d-stars i:nth-of-type(3) { --a: 240deg; background: #22c55e; animation-delay: 1.2s; }
.co-dept:hover .dp-art > * { transform: scale(1.12); }
.f-lap { bottom: 8%; width: 54%; right: 22%; } .d-spines { width: 110px; transform: scale(.78); margin-top: -6px; } .co-dept .r-chat .b { font-family: var(--sans); }
/* colourful boxes: promise, faq, wins - every box a different colour */
.co-promise-list li:nth-child(1), .co-acc details:nth-child(1), .co-checks li:nth-child(1) { --pc: #2f7cf6; }
.co-promise-list li:nth-child(2), .co-acc details:nth-child(2), .co-checks li:nth-child(2) { --pc: #ef4f8b; }
.co-promise-list li:nth-child(3), .co-acc details:nth-child(3), .co-checks li:nth-child(3) { --pc: #10b39b; }
.co-promise-list li:nth-child(4), .co-acc details:nth-child(4), .co-checks li:nth-child(4) { --pc: #f59e0b; }
.co-promise-list li:nth-child(5), .co-acc details:nth-child(5), .co-checks li:nth-child(5) { --pc: #7c5cff; }
.co-promise-list li:nth-child(6), .co-acc details:nth-child(6), .co-checks li:nth-child(6) { --pc: #e86a3a; }
.co-promise-list li:nth-child(7), .co-acc details:nth-child(7), .co-checks li:nth-child(7) { --pc: #0ea5e9; }
.co-promise-list li:nth-child(8), .co-acc details:nth-child(8), .co-checks li:nth-child(8) { --pc: #22a35a; }
.co-promise-list li:nth-child(9), .co-acc details:nth-child(9), .co-checks li:nth-child(9) { --pc: #c026d3; }
.co-promise-list li { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 88%, #fff), color-mix(in srgb, var(--pc) 70%, #000)); color: #fff; box-shadow: 0 20px 40px -24px var(--pc); position: relative; overflow: hidden; }
.co-promise-list li span { color: rgba(255, 255, 255, .9); }
.co-promise-list li::after, .co-checks li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); background-size: 260% 100%; animation: arcShine 7s ease-in-out infinite; pointer-events: none; }
.co-promise-list li:nth-child(2n)::after { animation-delay: -2s; } .co-promise-list li:nth-child(3n)::after { animation-delay: -4s; }
.co-acc details { background: color-mix(in srgb, var(--pc) 10%, #fff); border: 1.5px solid color-mix(in srgb, var(--pc) 35%, #fff); border-left: 6px solid var(--pc); }
.co-acc summary { color: color-mix(in srgb, var(--pc) 55%, #0a2559); }
.co-acc summary i { background: color-mix(in srgb, var(--pc) 20%, #fff); }
.co-acc summary i::before, .co-acc summary i::after { background: var(--pc); }
.co-acc details[open] { background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 70%, #000)); border-color: var(--pc); box-shadow: 0 24px 44px -26px var(--pc); }
.co-acc details[open] summary, .co-acc details[open] p { color: #fff; }
.co-acc details[open] summary i { background: rgba(255, 255, 255, .25); }
.co-checks li { position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 80%, transparent), color-mix(in srgb, var(--pc) 45%, transparent)); border-color: color-mix(in srgb, var(--pc) 60%, #fff); }
.co-checks svg { background: #fff; stroke: var(--pc); }
.co-checks li:hover { background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 60%, transparent)); }
.f-mic { right: 34%; top: 8%; width: 58px; height: 58px; color: #ffd166; animation: aBob 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 8px rgba(255, 209, 102, .6)); }
.f-waves { right: 18%; top: 14%; width: 40px; height: 44px; }
.f-waves i { position: absolute; left: 0; top: 50%; width: calc(14px + var(--n) * 12px); aspect-ratio: 1; border: 3px solid #7dd3fc; border-color: transparent #7dd3fc transparent transparent; border-radius: 50%; translate: -50% -50%; animation: vcWifi 1.8s ease-in-out infinite; }
.f-waves i:nth-child(1) { --n: 0; } .f-waves i:nth-child(2) { --n: 1; animation-delay: .25s; } .f-waves i:nth-child(3) { --n: 2; animation-delay: .5s; }
.f-news { right: 6%; bottom: 10%; width: 92px; padding: 8px; border-radius: 4px; background: #f8f4ea; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .6); transform: rotate(-6deg); animation: aTilt 3s ease-in-out infinite alternate; }
.f-news b { display: block; font: 900 .8rem/1 var(--serif); color: #1f2937; letter-spacing: .1em; margin-bottom: 5px; border-bottom: 2px solid #1f2937; padding-bottom: 3px; }
.f-news i { display: block; height: 3px; margin: 4px 0; border-radius: 2px; background: #9aa3b5; transform-origin: left; animation: aWrite 3.5s ease-in-out infinite; } .f-news i:nth-of-type(2) { width: 80%; animation-delay: .3s; } .f-news i:nth-of-type(3) { width: 60%; animation-delay: .6s; }
/* support needs: animated scenes, top-right of each box */
.co-needs li { position: relative; overflow: hidden; min-height: 190px; }
.co-needs li > :not(.nd-art) { position: relative; z-index: 1; }
.nd-art { position: absolute; right: 0; top: 0; width: 55%; height: 62%; z-index: 0; transition: transform .7s; }
.co-needs li:hover .nd-art { transform: scale(1.1); }
.nd-art > * { position: absolute; }
.n-wifi { right: 22px; top: 22px; width: 60px; height: 50px; }
.n-wifi i { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; width: calc(16px + var(--n) * 18px); aspect-ratio: 1; border: 4px solid #ffd166; border-color: #ffd166 transparent transparent transparent; border-radius: 50%; animation: vcWifi 1.8s infinite; }
.n-wifi i:nth-child(1) { --n: 0; } .n-wifi i:nth-child(2) { --n: 1; animation-delay: .3s; } .n-wifi i:nth-child(3) { --n: 2; animation-delay: .6s; }
.n-wifi b { position: absolute; left: 50%; bottom: 0; width: 9px; height: 9px; translate: -50% 0; border-radius: 50%; background: #ffd166; }
.n-phone { right: 92px; top: 30px; width: 26px; height: 44px; border-radius: 6px; border: 3px solid #fff; background: linear-gradient(#7dd3fc, #1f6feb); animation: aBob 2.4s ease-in-out infinite alternate; }
.n-bulb { right: 30px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff8d0, #ffd166 60%); box-shadow: 0 0 0 0 rgba(255, 209, 102, .6); animation: nGlow 1.6s ease-in-out infinite alternate; }
.n-bulb::after { content: ""; position: absolute; left: 13px; top: 40px; width: 18px; height: 12px; border-radius: 0 0 4px 4px; background: #c7c7c7; }
@keyframes nGlow { from { box-shadow: 0 0 10px 2px rgba(255, 209, 102, .4); opacity: .7; } to { box-shadow: 0 0 40px 14px rgba(255, 209, 102, .7); opacity: 1; } }
.n-bat { right: 96px; top: 30px; width: 40px; height: 22px; border: 3px solid #fff; border-radius: 5px; }
.n-bat::after { content: ""; position: absolute; right: -7px; top: 5px; width: 4px; height: 8px; border-radius: 0 2px 2px 0; background: #fff; }
.n-bat i { position: absolute; left: 2px; top: 2px; bottom: 2px; border-radius: 2px; background: #4ade80; animation: nCharge 2.5s ease-in-out infinite; }
@keyframes nCharge { from { width: 4px; } to { width: calc(100% - 4px); } }
.n-board { right: 18px; top: 18px; width: 92px; height: 54px; border: 4px solid #8a5a2b; border-radius: 4px; background: #1f4a37; display: grid; place-items: center; }
.n-board span { font: italic 400 1rem/1 var(--serif); color: #f6f1d0; overflow: hidden; white-space: nowrap; animation: aChalk 3s steps(6) infinite; width: 0; }
.n-cap { right: 92px; top: 6px; width: 40px; height: 40px; color: #ffd166; animation: oCap 3s ease-in-out infinite alternate; }
.n-cap svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; }
.n-books { right: 22px; top: 22px; display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.n-books i { width: 13px; border-radius: 3px; animation: aBob 2s ease-in-out infinite alternate; }
.n-books i:nth-child(1) { height: 52px; background: #ffd166; } .n-books i:nth-child(2) { height: 44px; background: #7dd3fc; animation-delay: -.5s; } .n-books i:nth-child(3) { height: 56px; background: #fff; animation-delay: -1s; } .n-books i:nth-child(4) { height: 40px; background: #86efac; animation-delay: -1.5s; transform: rotate(10deg); }
.n-flask { right: 104px; top: 18px; width: 40px; height: 44px; color: #fff; animation: aTilt 2.2s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.n-flask svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .nd-art * { animation: none !important; } }
/* gallery: framed photo slideshow, frame tinted to each photo */
.gal-show { position: relative; padding: 20px 0 clamp(60px, 7vw, 100px); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tone, #888) 14%, #fff) 30%, #fff); transition: background 1s; }
.gs-track { display: grid; width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.gs-slide { grid-area: 1 / 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s, visibility 0s .9s; }
.gs-slide.on { opacity: 1; visibility: visible; transition: opacity .9s; }
.gs-frame { justify-self: center; padding: clamp(16px, 2vw, 26px); border-radius: 10px; background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 85%, #fff), var(--tone) 50%, color-mix(in srgb, var(--tone) 70%, #000)); box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--tone) 80%, #000), inset 0 0 0 2px rgba(255, 255, 255, .25), inset 0 0 22px rgba(0, 0, 0, .35); transform: rotate(-1.5deg) translateY(30px) scale(.95); transition: transform 1.1s cubic-bezier(.22, 1.3, .36, 1); }
.gs-slide.on .gs-frame { transform: rotate(-1.5deg); }
.gs-mat { padding: clamp(10px, 1.4vw, 18px); background: color-mix(in srgb, var(--tone) 18%, #fffaf2); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .25); }
.gs-mat img { display: block; width: auto; max-width: 100%; max-height: min(64vh, 560px); object-fit: cover; }
.gs-slide.on .gs-mat img { animation: gsZoom 7s ease-out both; }
@keyframes gsZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.gs-mat { overflow: hidden; }
.gs-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .9s cubic-bezier(.22, 1.2, .36, 1); }
.gs-slide.on .gs-copy > * { opacity: 1; transform: none; }
.gs-slide.on .gs-copy > :nth-child(2) { transition-delay: .12s; } .gs-slide.on .gs-copy > :nth-child(3) { transition-delay: .24s; }
.gs-no { margin: 0 0 14px; font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--tone) 70%, #000); }
.gs-copy h2 { margin: 0 0 18px; font: italic 400 clamp(2rem, 3.6vw, 3.2rem)/1.05 var(--serif); color: var(--ink); }
.gs-copy p:last-child { margin: 0; max-width: 34em; font-size: 1.12rem; line-height: 1.7; color: #4a4a4a; padding-left: 18px; border-left: 3px solid var(--tone); }
.gs-ctrl { display: flex; align-items: center; gap: 14px; margin-top: clamp(30px, 4vw, 50px); }
.gal-show .story-btn { color: var(--ink); border-color: var(--line); background: #fff; }
.gal-show .story-btn:hover { background: var(--ink); color: #fff; }
.gs-dots { flex: 1; display: flex; gap: 6px; }
.gs-dots button { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.gs-dots button::before, .gs-dots span { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.gs-dots span { background: var(--ink); transform-origin: left; transform: scaleX(0); }
.gallery-full .kicker { margin-bottom: 26px; }
@media (max-width: 860px) { .gs-slide { grid-template-columns: 1fr; } .gs-mat img { max-height: 52vh; } }
/* photo pages (like book pages) */
.photo-hero .bhb-plane img { object-position: center 25%; }
.photo-hero .bhb-fill { filter: blur(50px) saturate(1.2) brightness(.4); }
.ph-visual { display: grid; place-items: center; perspective: 1400px; }
.ph-visual .gs-frame { transform: rotate(-2deg); transition: transform .6s var(--ease-out); animation: phIn 1.4s cubic-bezier(.22, 1.3, .36, 1) both; }
@keyframes phIn { from { opacity: 0; transform: translateY(60px) rotate(6deg) scale(.9); } }
.ph-visual .gs-mat img { max-height: 68vh; }
.ph-no { margin: 0 0 12px; font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.photo-hero .ph-title { font: italic 400 clamp(2.6rem, 5vw, 4.4rem)/1.02 var(--serif); letter-spacing: -.01em; }
.photo-hero .ph-bio { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; max-width: 32em; padding-left: 18px; border-left: 3px solid color-mix(in srgb, var(--tone) 60%, #fff); }
.photo-hero .bh-by { margin: 14px 0 22px; }
.ph-more { padding: clamp(50px, 6vw, 80px) 0; }
.ph-pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.ph-pn-card { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 60%, #000)); transition: transform .45s cubic-bezier(.22, 1.3, .36, 1); }
.ph-pn-card:hover { transform: scale(1.04); }
.ph-pn-card.next { justify-content: flex-end; text-align: right; }
.ph-pn-card img { width: 70px; height: 90px; object-fit: cover; border-radius: 10px; }
.ph-pn-card span { display: grid; gap: 4px; font: italic 400 1.25rem/1.15 var(--serif); }
.ph-pn-card small { font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .8; font-style: normal; }
.ph-pn-all { padding: 14px 22px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
/* gallery grid cards link to photo pages, in colour, tinted caption */
.ph-card img { filter: none !important; transition: transform 1s var(--ease-out); }
.ph-card:hover img { transform: scale(1.06); }
.ph-card .m-cap { background: linear-gradient(0deg, color-mix(in srgb, var(--tone) 90%, #000), transparent); display: grid; gap: 4px; }
.ph-card .m-cap small { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
@media (max-width: 860px) { .ph-pn { grid-template-columns: 1fr; } .ph-pn-all { justify-self: center; } }
/* gallery: every photo in its own frame, stacked one below another */
.gal-list { padding: 10px 0 var(--sec); }
.gal-list .wrap { display: grid; gap: clamp(26px, 3.5vw, 44px); }
.gal-row { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 5vw, 70px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; color: #fff; background: color-mix(in srgb, var(--tone) 55%, #000); box-shadow: 0 50px 90px -50px color-mix(in srgb, var(--tone) 80%, #000); }
.gal-row.is-hidden { display: none; }
.gal-row.flip { grid-template-columns: 1.15fr .85fr; }
.gal-row.flip .gr-frame { order: 2; }
.gr-bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center 30%; filter: blur(34px) saturate(1.2) brightness(.55); transform: scale(1.1); animation: arcPan 22s ease-in-out infinite alternate; }
.gr-frame { justify-self: center; display: block; transform: rotate(-2deg); transition: transform .7s cubic-bezier(.22, 1.3, .36, 1); }
.gal-row.flip .gr-frame { transform: rotate(2deg); }
.gal-row:hover .gr-frame { transform: rotate(0) scale(1.03); }
.gr-frame .gs-mat img { max-height: min(62vh, 540px); transition: transform 1.2s var(--ease-out); }
.gal-row:hover .gr-frame .gs-mat img { transform: scale(1.05); }
.gr-copy .gs-no { color: rgba(255, 255, 255, .7); }
.gr-copy h2 { margin: 0 0 18px; font: italic 400 clamp(2.2rem, 4vw, 3.6rem)/1.03 var(--serif); color: #fff; }
.gr-bio { margin: 0 0 28px; max-width: 32em; font-size: 1.1rem; line-height: 1.7; color: rgba(255, 255, 255, .88); padding-left: 18px; border-left: 3px solid color-mix(in srgb, var(--tone) 50%, #fff); }
.js .gal-row[data-reveal] { opacity: 0; transform: translateY(60px) scale(.97); transition: opacity 1s var(--ease-out), transform 1.1s cubic-bezier(.22, 1.2, .36, 1); }
.js .gal-row[data-reveal].in { opacity: 1; transform: none; }
.js .gal-row .gr-frame { opacity: 0; } .js .gal-row.in .gr-frame { opacity: 1; animation: phIn 1.3s cubic-bezier(.22, 1.3, .36, 1) both; }
@media (max-width: 860px) { .gal-row, .gal-row.flip { grid-template-columns: 1fr; } .gal-row.flip .gr-frame { order: 0; } }
/* gallery heading inside a full-screen landscape picture frame */
.gal-hero { min-height: 100svh; display: flex; padding: 100px clamp(14px, 2.4vw, 34px) clamp(14px, 2.4vw, 34px); background: #efe9df; }
.gh-frame { flex: 1; display: flex; padding: clamp(16px, 2.2vw, 30px); border-radius: 8px; background: linear-gradient(135deg, #a47a4c 0%, #6e4a26 30%, #b88a55 55%, #5a3a1c 80%, #8c6236 100%); box-shadow: 0 50px 90px -40px rgba(60, 35, 10, .7), inset 0 0 0 3px rgba(255, 230, 190, .35), inset 0 0 30px rgba(0, 0, 0, .45); animation: ghIn 1.4s cubic-bezier(.22, 1.2, .36, 1) both; }
@keyframes ghIn { from { opacity: 0; transform: scale(.94); } }
.gh-mat { position: relative; flex: 1; display: flex; align-items: center; overflow: hidden; background: #fbf7ef; box-shadow: inset 0 4px 14px rgba(0, 0, 0, .3), 0 0 0 clamp(10px, 1.4vw, 18px) #f3ece0; margin: clamp(10px, 1.4vw, 18px); }
.gh-photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); opacity: .16; pointer-events: none; }
.gh-photos i { background-size: cover; background-position: center 25%; filter: grayscale(.3); animation: ghFade 9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.8s); }
@keyframes ghFade { from { opacity: .5; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
.gh-photos::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 30% 50%, #fbf7ef 30%, rgba(251, 247, 239, .55) 75%); }
.gh-in { position: relative; z-index: 1; width: min(100% - 2 * clamp(20px, 4vw, 60px), 1180px); }
@media (max-width: 600px) { .gh-photos { grid-template-columns: repeat(3, 1fr); } }
.gh-photos { opacity: 1; gap: 4px; background: #f3ece0; }
.gh-photos i { filter: none; }
@keyframes ghFade { from { transform: scale(1); } to { transform: scale(1.06); } }
.gh-photos i { overflow: hidden; }
.gh-photos::after { background: linear-gradient(90deg, rgba(251, 247, 239, .96) 0%, rgba(251, 247, 239, .9) 38%, rgba(251, 247, 239, .45) 62%, rgba(251, 247, 239, .05) 85%); }
@media (max-width: 860px) { .gh-photos::after { background: rgba(251, 247, 239, .82); } }
/* ===== contact page: warm theme, floating letters, colourful cards & form ===== */
.ct { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 100% 0%, #ffd9e4 0%, transparent 60%), radial-gradient(60% 70% at 0% 100%, #d7ecff 0%, transparent 60%), linear-gradient(160deg, #fff8f0, #fdf1f6 55%, #eef5ff); }
.ct > .wrap { position: relative; z-index: 1; }
.ct-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ct-f { position: absolute; left: var(--x); top: var(--y); width: 46px; height: 46px; animation: ctFloat var(--d) ease-in-out var(--dl) infinite alternate; opacity: .55; }
.ct-f svg { width: 100%; height: 100%; }
.ct-env, .ct-plane { color: #2f7cf6; } .ct-heart { color: #ef4f8b; } .ct-quill { color: #7c5cff; } .ct-star { color: #f59e0b; } .ct-book { color: #10b39b; }
.ct-env i { position: absolute; inset: 8px 2px; border-radius: 4px; background: #fff; border: 2px solid #ef4f8b; box-shadow: 0 8px 16px -8px rgba(239, 79, 139, .6); }
.ct-env i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; background: linear-gradient(to bottom right, transparent 49%, #ef4f8b 50%, transparent 53%), linear-gradient(to bottom left, transparent 49%, #ef4f8b 50%, transparent 53%); }
.ct-plane { animation-name: ctFly; }
@keyframes ctFloat { from { transform: translate(0, 0) rotate(var(--r)); } to { transform: translate(14px, -22px) rotate(calc(var(--r) * -1)); } }
@keyframes ctFly { from { transform: translate(-20px, 10px) rotate(-10deg); } to { transform: translate(40px, -30px) rotate(8deg); } }
/* contact info cards */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-cards li { --cc: #2f7cf6; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 18px 20px 76px; border: 0; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 65%, #000)); box-shadow: 0 22px 40px -24px var(--cc); font-size: 1.02rem; transition: transform .45s cubic-bezier(.22, 1.3, .36, 1); }
.contact-cards li:hover { transform: translateY(-5px) scale(1.04); }
.contact-cards li.cc1 { --cc: #ef4f8b; } .contact-cards li.cc2 { --cc: #10b39b; } .contact-cards li.cc3 { --cc: #f59e0b; } .contact-cards li.cc4 { --cc: #7c5cff; }
.contact-cards li > span:first-of-type { font-size: .78rem; color: rgba(255, 255, 255, .8); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.contact-cards a { color: #fff; word-break: break-all; }
.cc-ic { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.cc-mail i { width: 26px; height: 18px; border: 2.5px solid #fff; border-radius: 3px; position: relative; animation: aBob 1.6s ease-in-out infinite alternate; }
.cc-mail i::after { content: ""; position: absolute; left: 2px; right: 2px; top: -1px; height: 10px; border-bottom: 2.5px solid #fff; border-left: 2.5px solid transparent; transform: skewY(0); background: linear-gradient(to bottom right, transparent 45%, #fff 46%, #fff 55%, transparent 56%), linear-gradient(to bottom left, transparent 45%, #fff 46%, #fff 55%, transparent 56%); border: 0; }
.cc-phone i:first-child { width: 16px; height: 26px; border: 2.5px solid #fff; border-radius: 4px; animation: ccRing 1.8s ease-in-out infinite; }
.cc-phone i:last-child { position: absolute; right: 6px; top: 8px; width: 10px; height: 10px; border: 2px solid #fff; border-color: #fff #fff transparent transparent; border-radius: 0 10px 0 0; animation: vcWifi 1.2s infinite; }
@keyframes ccRing { 0%, 60%, 100% { rotate: 0deg; } 65% { rotate: -14deg; } 75% { rotate: 14deg; } 85% { rotate: -8deg; } }
.cc-pin i { width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: #fff; rotate: -45deg; animation: ccDrop 1.8s ease-in-out infinite alternate; }
.cc-pin i::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
@keyframes ccDrop { from { translate: 0 -4px; } to { translate: 0 3px; } }
.cc-lang { grid-template-columns: 1fr 1fr; gap: 0; } .cc-lang i { font: 700 1.1rem/1 var(--sans); font-style: normal; color: #fff; animation: aBob 1.4s ease-in-out infinite alternate; } .cc-lang i[lang="fa"] { font-family: var(--fa); animation-delay: -.7s; }
/* form: colourful card */
.ct .form { position: relative; overflow: hidden; background: #fff; border-radius: 28px; box-shadow: 0 50px 90px -50px rgba(124, 92, 255, .55); border: 1px solid #efe6ff; }
.ct .form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #ef4f8b, #f59e0b, #10b39b, #2f7cf6, #7c5cff); background-size: 200% 100%; animation: coShine 6s linear infinite; }
.ct .chips label:nth-child(2) span { --ch: #ef4f8b; } .ct .chips label:nth-child(3) span { --ch: #2f7cf6; } .ct .chips label:nth-child(4) span { --ch: #f59e0b; } .ct .chips label:nth-child(5) span { --ch: #10b39b; } .ct .chips label:nth-child(6) span { --ch: #7c5cff; }
.ct .chips span { border: 1.5px solid color-mix(in srgb, var(--ch) 40%, #fff); background: color-mix(in srgb, var(--ch) 9%, #fff); color: color-mix(in srgb, var(--ch) 70%, #000); }
.ct .chips input:checked + span { background: var(--ch); border-color: var(--ch); color: #fff; box-shadow: 0 10px 20px -10px var(--ch); }
.ct .field input, .ct .field textarea { border: 1.5px solid #ece4fb; border-radius: 14px; background: #fbf9ff; padding: 14px 16px; transition: border-color .3s, box-shadow .3s; }
.ct .field input:focus, .ct .field textarea:focus { outline: none; border-color: #7c5cff; box-shadow: 0 0 0 4px rgba(124, 92, 255, .15); }
.ct .form .btn { background: linear-gradient(90deg, #ef4f8b, #7c5cff); border: 0; }
.ct h1 em { background: linear-gradient(90deg, #ef4f8b, #7c5cff, #2f7cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ct * { animation: none !important; } }
.contact-cards { grid-template-columns: 1fr 1fr; } .contact-cards li.cc1 { grid-column: 1 / -1; } .contact-cards a { word-break: normal; overflow-wrap: anywhere; } .contact-cards li.cc4 { white-space: nowrap; } .contact-cards li.cc4 > span:last-child { display: inline; }
.contact-cards li.cc4 { grid-column: 1 / -1; } .contact-cards .cc-val { font-style: normal; }
.contact-cards .cc-val { font: 500 1.02rem/1.3 var(--sans); letter-spacing: -.015em; color: #fff; } .contact-cards .cc-val [lang="fa"] { font-family: var(--fa); }
/* homepage hero: moving rows of her photos (left, right, left, right) instead of one portrait */
.h-hero { isolation: isolate; }
.h-hero .h-portrait { display: none; }
.h-hero-grid { grid-template-columns: 1fr; }
.h-hero-grid .h-name { font-size: clamp(4rem, 14vw, 14rem); }
.h-hero-grid .h-bottom { grid-template-columns: 1fr 1fr; }
.hm-rows { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 10px; padding: 90px 0 70px; overflow: hidden; }
.hm-row { overflow: hidden; }
.hm-track { display: flex; gap: 10px; height: 100%; width: max-content; animation: hmLeft var(--d) linear infinite; }
.hm-row.rt .hm-track { animation-name: hmRight; }
.hm-track img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; border-radius: 14px; }
@keyframes hmLeft { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
@keyframes hmRight { from { transform: translateX(calc(-50% - 5px)); } to { transform: translateX(0); } }
.hm-rows::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 45%, rgba(255, 255, 255, .55) 75%, rgba(255, 255, 255, .35) 100%), linear-gradient(0deg, #fff 0%, transparent 18%); }
@media (max-width: 860px) { .h-hero-grid .h-bottom { grid-template-columns: 1fr; } .hm-rows::after { background: rgba(255, 255, 255, .82); } }
@media (prefers-reduced-motion: reduce) { .hm-track { animation: none; } }
.h-hero-grid .h-bottom { grid-template-columns: 1fr; max-width: 640px; gap: 22px; } .hm-rows::after { background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.5) 72%, rgba(255,255,255,.25) 100%), linear-gradient(0deg, #fff 0%, transparent 16%); } @media (max-width: 860px) { .hm-rows::after { background: rgba(255,255,255,.86); } }
/* who she is: three framed photos side by side, statement in a matching box */
.who-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); margin: 10px 0 clamp(30px, 4vw, 50px); }
.who-pic { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px; box-shadow: 0 34px 60px -34px rgba(60, 70, 40, .6); border: 6px solid #fff; transition: transform .6s cubic-bezier(.22, 1.3, .36, 1); }
.who-pic.p1 { transform: rotate(-2deg) translateY(16px); } .who-pic.p3 { transform: rotate(2deg) translateY(16px); }
.who-pic:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.who-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; animation: hpDrift 14s ease-in-out infinite alternate; }
.who-pic.p2 img { animation-delay: -5s; } .who-pic.p3 img { animation-delay: -9s; }
.js .who-pic[data-reveal] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s cubic-bezier(.22, 1.3, .36, 1); transition-delay: calc(var(--i) * .15s); }
.js .who-pic[data-reveal]:not(.in) { transform: translateY(60px) scale(.94); }
.js .who-pic[data-reveal].in { opacity: 1; }
.who-box { padding: clamp(28px, 4vw, 54px); border-radius: 28px; background: linear-gradient(135deg, #eef2e2 0%, #e6dccb 55%, #d9e6d0 100%); box-shadow: 0 40px 80px -50px rgba(70, 80, 40, .55); }
.who-box .scrub.big { max-width: none; }
@media (max-width: 600px) { .who-trio { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .who-pic { border-width: 3px; border-radius: 12px; } }
/* journey: flags background; cards in its colours (Afghan red/green/black, US blue/red, sunset gold) */
.story-bg i { background-position: center 40%; }
.story-bg::after { background: linear-gradient(90deg, rgba(10, 8, 20, .7) 0%, rgba(10, 8, 20, .35) 50%, rgba(10, 8, 20, .25) 100%), linear-gradient(0deg, rgba(10, 8, 20, .6) 0%, transparent 45%); }
.h-story .chapter:nth-child(4n+1) { --c1: rgba(200, 30, 45, .92); --c2: rgba(110, 10, 20, .94); }
.h-story .chapter:nth-child(4n+2) { --c1: rgba(40, 70, 170, .92); --c2: rgba(15, 25, 85, .94); }
.h-story .chapter:nth-child(4n+3) { --c1: rgba(0, 140, 70, .9); --c2: rgba(0, 70, 35, .94); }
.h-story .chapter:nth-child(4n+4) { --c1: rgba(235, 150, 50, .92); --c2: rgba(150, 70, 15, .94); }
/* heritage: single flags + world map background */
.her-bg.her-one { display: block; background-size: cover; background-position: center 45%; animation: phPhoto 30s ease-in-out infinite alternate; }
.her-bg.her-one::after { background: linear-gradient(180deg, rgba(10, 20, 40, .55) 0%, rgba(10, 20, 40, .25) 45%, rgba(10, 20, 40, .7) 100%); }
/* "more than a writer": colourful boxes + matching section background */
.h-diff { background: radial-gradient(60% 70% at 0% 0%, #ffe1e9 0%, transparent 60%), radial-gradient(60% 70% at 100% 100%, #dcecff 0%, transparent 60%), linear-gradient(160deg, #fff8ef, #f7f1ff); }
.diff { --dc: #2f7cf6; isolation: isolate; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--dc) 92%, #fff), color-mix(in srgb, var(--dc) 68%, #000)); box-shadow: 0 30px 60px -34px var(--dc); transition: transform .5s cubic-bezier(.22, 1.3, .36, 1), box-shadow .5s; }
.diff.d1 { --dc: #c8102e; background: linear-gradient(140deg, #e23a4f, #7a0a1c); } .diff.d2 { --dc: #7c5cff; } .diff.d3 { --dc: #f08a24; } .diff.d4 { --dc: #10a37f; } .diff.d5 { --dc: #2f6feb; }
.diff:hover, .diff.d1:hover { background: linear-gradient(140deg, color-mix(in srgb, var(--dc) 92%, #fff), color-mix(in srgb, var(--dc) 68%, #000)); transform: translateY(-6px) scale(1.02); box-shadow: 0 40px 70px -30px var(--dc); }
.diff p { opacity: .9; } .diff-n { opacity: .8; }
.diff::before { content: ""; position: absolute; right: -40px; top: -40px; z-index: -1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); animation: eduGlow 7s ease-in-out infinite alternate; }
.diff .dfx { position: absolute; right: 26px; top: 22px; width: 76px; height: 76px; color: rgba(255, 255, 255, .85); animation: aBob 3s ease-in-out infinite alternate; }
.diff .dfx svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.diff:hover .dfx { transform: scale(1.12) rotate(-6deg); transition: transform .5s; }
/* invite + record + education tags: colourful */
.topics-mini li:nth-child(1), .record li:nth-child(1), .h-edu .tags li:nth-child(1) { --tc: #ef4f8b; }
.topics-mini li:nth-child(2), .record li:nth-child(2), .h-edu .tags li:nth-child(2) { --tc: #2f7cf6; }
.topics-mini li:nth-child(3), .record li:nth-child(3), .h-edu .tags li:nth-child(3) { --tc: #10a37f; }
.topics-mini li:nth-child(4), .record li:nth-child(4), .h-edu .tags li:nth-child(4) { --tc: #f08a24; }
.topics-mini li:nth-child(5), .record li:nth-child(5), .h-edu .tags li:nth-child(5) { --tc: #7c5cff; }
.topics-mini li:nth-child(6), .record li:nth-child(6), .h-edu .tags li:nth-child(6) { --tc: #e23a4f; }
.topics-mini li:nth-child(7), .record li:nth-child(7), .h-edu .tags li:nth-child(7) { --tc: #0ea5e9; }
.topics-mini li:nth-child(8), .record li:nth-child(8), .h-edu .tags li:nth-child(8) { --tc: #22a35a; }
.invite { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(70% 80% at 100% 0%, rgba(255, 77, 141, .55), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(0, 180, 216, .45), transparent 60%), linear-gradient(140deg, #2a1452, #4b1d7a 55%, #1b2a6b); }
.topics-mini li { border: 0; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 85%, transparent), color-mix(in srgb, var(--tc) 30%, transparent)); font-weight: 600; transition: transform .4s cubic-bezier(.22, 1.3, .36, 1); }
.topics-mini li:hover { transform: translateX(8px) scale(1.02); }
.record { background: linear-gradient(160deg, #fff6ec, #fdeef5 50%, #eef4ff); box-shadow: 0 40px 70px -46px rgba(124, 92, 255, .5); }
.record li { border: 0; margin-bottom: 10px; padding: 16px 18px; border-radius: 18px; background: #fff; border-left: 6px solid var(--tc); box-shadow: 0 16px 30px -24px var(--tc); transition: transform .4s cubic-bezier(.22, 1.3, .36, 1); }
.record li:last-child { border-left: 6px solid var(--tc); }
.record li:hover { transform: translateX(6px) scale(1.02); }
.record span { color: var(--tc); font-weight: 600; }
.record a { text-decoration-color: var(--tc); }
.h-edu .tags li { border: 0; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 65%, #000)); box-shadow: 0 10px 22px -12px var(--tc); transition: transform .35s cubic-bezier(.22, 1.4, .36, 1); }
.h-edu .tags li:hover { background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 65%, #000)); transform: translateY(-3px) scale(1.06); }
.h-edu-body > p:not(.lead) { color: #43547c; }
.h-edu .btn-row .btn:not(.btn-outline) { background: linear-gradient(90deg, #1f6feb, #7c5cff); border-color: transparent; }
.h-edu .btn-row .btn-outline { border-color: #7c5cff; color: #5b3fd8; --fill: #7c5cff; }
.h-edu .btn-row .btn-outline:hover { color: #fff; }
/* newsletter: floating letters background + form in a box */
.lt { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 100% 0%, rgba(239, 79, 139, .35), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(47, 124, 246, .3), transparent 60%), #0e0a1a; }
.lt > .wrap { position: relative; z-index: 1; }
.lt-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lt-f { position: absolute; left: var(--x); bottom: -60px; animation: ltRise var(--d) linear var(--dl) infinite; }
@keyframes ltRise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .9; } 90% { opacity: .7; } 100% { transform: translate(40px, -115vh) rotate(var(--r)); opacity: 0; } }
.lt-env i { display: block; width: 46px; height: 32px; border-radius: 4px; background: #fdf3e6; position: relative; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.lt-env i::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49%, #e9b44c 50%, transparent 54%), linear-gradient(to bottom left, transparent 49%, #e9b44c 50%, transparent 54%); background-size: 100% 60%; background-repeat: no-repeat; }
.lt-env i::after { content: ""; position: absolute; left: 50%; top: 40%; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: #c8102e; }
.lt-page i { display: block; width: 34px; height: 44px; border-radius: 3px; background: repeating-linear-gradient(#fff 0 7px, #c9d4ee 7px 8px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.lt-heart { color: #ff5d8f; font-size: 1.6rem; } .lt-star { color: #ffd166; font-size: 1.3rem; }
.lt-box { position: relative; padding: clamp(26px, 3.5vw, 42px); border-radius: 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); overflow: hidden; }
.lt-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #ef4f8b, #f59e0b, #10b39b, #2f7cf6, #7c5cff); background-size: 200% 100%; animation: coShine 6s linear infinite; }
.lt-box-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin-bottom: 18px; }
.lt-stamp { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #ef4f8b, #7c5cff); color: #fff; font-size: 1.5rem; animation: aBob 2.4s ease-in-out infinite alternate; }
.lt-box-head b { color: #fff; font: 700 1.25rem/1.2 var(--sans); }
.lt-box-head small { color: rgba(255, 255, 255, .6); font-size: .85rem; }
.lt-box .field input { background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 14px 16px; color: #fff; }
.lt-box .field input:focus { outline: none; border-color: #ef4f8b; box-shadow: 0 0 0 4px rgba(239, 79, 139, .2); }
.lt-box .btn { background: linear-gradient(90deg, #ef4f8b, #7c5cff); border: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) { .lt-f, .lt-stamp { animation: none; } }

/* =================== COLOUR EDITION: replaces the black & white theme =================== */
:root {
  --bg: #fffaf5;            /* warm off-white instead of pure white */
  --paper: #f6efe6;         /* warm cream instead of grey paper */
  --ink: #1c1640;           /* deep indigo instead of black */
  --ink-2: #2a2160;
  --grey: #5d5878;          /* soft plum-slate instead of grey */
  --grey-2: #8e88a8;
  --line: rgba(60, 40, 120, .14);
  --accent: #d6336c;        /* rose, from the covers and the flags */
  --accent-2: #6d4aff;      /* violet */
  --gold: #e8a33d;
}
body { background: linear-gradient(180deg, #fffaf5, #fdf6fb 50%, #f6f8ff); background-attachment: fixed; }
::selection { background: #d6336c; color: #fff; }

/* headings: bold and clear everywhere */
h1, h2, h3, .display, .h-title, .co-h2, .co-h1 { font-weight: 700; }
.display, .h-title { letter-spacing: -.03em; }
.display em, .h-title em, h1 em, h2 em { font-weight: 400; color: var(--accent); }
.light .display em, .h-title.light em, .letters .display em, .ct-hero h1 em, .hb-head .h-title em, .h-story .h-title em, .h-heritage .h-title em, .invite .h-title em { color: #ffd166; }
.ct h1 em { color: transparent; }

/* section labels (no dash): bold, coloured, easy to see */
.kicker, .h-kicker { font: 800 .82rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kicker.light, .h-kicker.light, .letters .kicker, .h-story .h-kicker, .h-heritage .h-kicker, .hb-head .h-kicker, .media-hero .kicker, .poetry-hero .kicker, .about-full .kicker, .books-hero .kicker, .podcast .kicker, .press-kit .kicker, .invite .h-kicker, .photo-hero .kicker { color: #ffd166; }
.kicker-num { color: #fff; background: linear-gradient(135deg, #d6336c, #6d4aff); border: 0; font-weight: 700; }

/* body text: plum-slate instead of grey */
.lede, .h-intro p, .h-sec-lede, p { color: inherit; }
.lede, .h-intro p, .h-sec-lede { color: var(--grey); }

/* buttons: from black to rose-violet */
.btn { background: linear-gradient(90deg, #d6336c, #6d4aff); border-color: transparent; color: #fff; --fill: #1c1640; }
.btn-outline, .btn-line { background: transparent; color: var(--ink); border-color: rgba(109, 74, 255, .45); --fill: #6d4aff; }
.btn-outline:hover, .btn-line:hover { color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-gold { background: linear-gradient(90deg, #e8a33d, #f2c14e); color: #2a1c00; border-color: transparent; }

/* header pill + active nav */
.nav a[aria-current="page"] { background: linear-gradient(90deg, #d6336c, #6d4aff); color: #fff; }
.nav a:hover { background: #f3e9ff; }
.brand-mark { background: linear-gradient(135deg, #d6336c, #6d4aff); }
.nav-cta { background: linear-gradient(90deg, #1c1640, #3b2a8a); }

/* the old pure-black blocks become deep indigo / plum */
.h-marquee { background: linear-gradient(90deg, #1c1640, #4b1d7a, #1c1640); }
.h-track i { color: #ffd166; opacity: 1; }
.site-footer, footer.site-footer { background: linear-gradient(160deg, #1c1640, #2a1452 60%, #3b1240); }
.menu { background: linear-gradient(160deg, #1c1640, #4b1d7a); }

/* soft paper boxes get a warm tint */
.bio-aside, .book-facts, .buy-strip { background: linear-gradient(160deg, #fff4ea, #f8eefc); }
.scrub .w { color: var(--ink); }
.progress { background: linear-gradient(90deg, #d6336c, #6d4aff, #e8a33d); mix-blend-mode: normal; height: 3px; }
/* nav "Explore Books" text visible */
.nav-cta, .nav-cta:hover { color: #fff !important; }
/* in-text automatic links */
.autolink { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: .2em; font-weight: 600; transition: color .3s; }
.autolink:hover { color: var(--accent-2); text-decoration-color: currentColor; }
.h-story .autolink, .h-heritage .autolink, .invite .autolink, .bio-career .autolink, .co-wins .autolink, .co-uni .autolink, .co-voices .autolink, .co-support .autolink, .h-poetry .autolink, .book-hero .autolink, .photo-hero .autolink, .letters .autolink, .press-kit .autolink, .podcast .autolink { color: #ffd166; }

/* ===== footer on every page: colourful night with floating book covers and twinkling stars ===== */
.ft { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(60% 80% at 100% 0%, rgba(214, 51, 108, .45), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(47, 124, 246, .4), transparent 60%), linear-gradient(160deg, #1c1640 0%, #2a1452 55%, #3b1240 100%) !important; }
.ft::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #000 0 33%, #d32011 33% 66%, #007a36 66%); opacity: .9; }
.ft > *:not(.ft-art) { position: relative; z-index: 1; }
.ft-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ft-covers { position: absolute; right: -40px; top: 50%; translate: 0 -50%; display: flex; gap: 16px; transform: rotate(-12deg); opacity: .28; }
.ft-covers img { width: 70px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 16px 30px -12px #000; animation: ftBob 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.6s); }
@keyframes ftBob { from { transform: translateY(-14px); } to { transform: translateY(14px); } }
.ft-star { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 209, 102, .8); animation: ftTw var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes ftTw { from { opacity: .15; transform: scale(.6); } to { opacity: 1; transform: scale(1.3); } }
.ft .footer-name { color: #fff; } .ft .footer-name em { color: #ffd166; }
.ft .footer-col h2 { color: #ffd166 !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.ft a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .3s, padding .3s; }
.ft .footer-col a:hover { color: #ff8fb3; padding-left: 6px; }
.ft p, .ft li { color: rgba(255, 255, 255, .75); }
.ft .btn, .ft .btn-outline, .ft .btn-ghost-light { background: linear-gradient(90deg, #d6336c, #6d4aff); border-color: transparent; color: #fff; }
.ft hr, .ft .footer-base { border-color: rgba(255, 255, 255, .15) !important; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; }
.soc { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff !important; transition: transform .35s cubic-bezier(.22, 1.4, .36, 1), background .3s; }
.soc svg { width: 20px; height: 20px; }
.soc:hover { transform: translateY(-4px) scale(1.12); padding: 0 !important; }
.soc-facebook:hover { background: #1877f2; } .soc-instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .soc-youtube:hover { background: #ff0000; } .soc-x:hover { background: #000; } .soc-tiktok:hover { background: #111; } .soc-linkedin:hover { background: #0a66c2; } .soc-whatsapp:hover { background: #25d366; } .soc-goodreads:hover { background: #8a5a2b; }
@media (max-width: 860px) { .ft-covers { right: -120px; opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .ft-art * { animation: none !important; } }
.ft-covers { opacity: .16; top: 62%; }
/* site-wide faint education doodles behind every plain background */
.bg-doodles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-doodles svg { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .16; transform: rotate(var(--r)); animation: bgdFloat var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes bgdFloat { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(calc(var(--r) * -1)) translateY(-14px); } }
@media (max-width: 600px) { .bg-doodles svg:nth-child(2n) { display: none; } .bg-doodles svg { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .bg-doodles svg { animation: none; } }
/* school page section labels: no leading line, bigger & bolder */
.co-kick::before { content: none !important; display: none !important; }
.co-kick { font: 800 clamp(.95rem, 1.3vw, 1.15rem)/1.2 var(--sans); letter-spacing: .14em; gap: 0; }
.co-h2 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); }
/* signature logo */
.brand-logo { display: block; height: 46px; width: auto; }
.footer-logo { display: block; width: min(300px, 80%); height: auto; filter: drop-shadow(0 4px 18px rgba(214, 51, 108, .35)); }
.menu .brand-logo, .menu-open .brand-logo { filter: brightness(0) invert(1); }
@media (max-width: 600px) { .brand-logo { height: 38px; } }
.brand-logo { height: 56px; margin: -6px 0; } @media (max-width: 600px) { .brand-logo { height: 46px; } }

/* =========================================================================
   BLACK & GOLD EDITION (client request): replaces the colourful theme.
   The school page keeps its own blue identity (it is a site of its own).
   ========================================================================= */
:root { --bg: #ffffff; --paper: #f7f2e7; --ink: #0b0b0b; --ink-2: #1c1c1c; --grey: #5e5a52; --grey-2: #8f897c; --line: rgba(11, 11, 11, .12); --accent: #a87b22; --accent-2: #c9a24a; --gold: #c9a24a; --gold-l: #e7c977; }
body { background: #fff; }
::selection { background: #c9a24a; color: #0b0b0b; }
.bg-doodles svg { stroke: #b8892b !important; opacity: .13; }
.display em, .h-title em, h1 em, h2 em { color: var(--accent); }
.kicker, .h-kicker { color: var(--accent); }
.kicker-num { background: #0b0b0b; color: #e7c977; }
.btn { background: #0b0b0b; border-color: #0b0b0b; color: #fff; --fill: #b8892b; }
.btn-outline, .btn-line { background: transparent; color: #0b0b0b; border-color: rgba(11, 11, 11, .35); --fill: #0b0b0b; }
.btn-white { background: #fff; color: #0b0b0b; border-color: #fff; --fill: #c9a24a; }
.btn-gold { background: linear-gradient(90deg, #b8892b, #e7c977); color: #1a1205; border-color: transparent; }
.nav a[aria-current="page"] { background: #0b0b0b; color: #e7c977; }
.nav a:hover { background: #f5eedc; }
.nav-cta { background: #0b0b0b; color: #e7c977 !important; }
.brand-logo { filter: brightness(0); }
.progress { background: linear-gradient(90deg, #8c6a1d, #e7c977, #8c6a1d); }
.autolink { color: #8c6a1d; text-decoration-color: rgba(140, 106, 29, .45); }
.autolink:hover { color: #0b0b0b; }
.h-marquee { background: #0b0b0b; }
.h-track i { color: #c9a24a; }
.menu { background: #0b0b0b; }
/* footer: black & gold, no flag stripe */
.ft { background: radial-gradient(60% 80% at 100% 0%, rgba(201, 162, 74, .22), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(201, 162, 74, .12), transparent 60%), #0b0b0b !important; }
.ft::before { background: linear-gradient(90deg, transparent, #c9a24a, transparent) !important; height: 2px; }
.ft .footer-col h2, .ft .footer-name em { color: #e7c977 !important; }
.ft .footer-col a:hover { color: #e7c977; }
.ft .btn, .ft .btn-outline, .ft .btn-ghost-light { background: transparent; border: 1px solid #c9a24a; color: #e7c977; }
.footer-logo { filter: drop-shadow(0 4px 18px rgba(201, 162, 74, .35)); }
/* homepage: journey cards black / gold */
/* "more than a writer" boxes */
.h-diff { background: linear-gradient(180deg, #fff, #faf6ec); }
.diff.d1, .diff.d3, .diff.d5 { --dc: #1a1a1a; background: linear-gradient(140deg, #2a2a2a, #0b0b0b); }
.diff.d2, .diff.d4 { --dc: #b8892b; background: linear-gradient(140deg, #d9b25a, #8c6a1d); }
.diff .dfx { color: #e7c977; } .diff.d2 .dfx, .diff.d4 .dfx { color: #fff; }
.who-box { background: linear-gradient(135deg, #faf5e8, #f1e6cb); }
/* education (home) */
.h-edu { background: linear-gradient(180deg, #fff, #faf6ec) !important; }
.edu-sky span, .edu-sky span:nth-child(3n), .edu-sky span:nth-child(4n) { color: rgba(184, 137, 43, .3) !important; }
.edu-sky::before { background: radial-gradient(circle, rgba(201, 162, 74, .2), transparent 65%); }
.edu-promo { border-color: rgba(184, 137, 43, .3); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35); }
.edu-badge { background: #0b0b0b; color: #e7c977; }
.edu-fa { color: #8c6a1d; }
.edu-points span { color: #8c6a1d; border-color: rgba(184, 137, 43, .35); background: rgba(201, 162, 74, .08); }
.edu-cta { background: #0b0b0b; color: #e7c977; }
.h-edu .tags li:nth-child(odd) { --tc: #1a1a1a; } .h-edu .tags li:nth-child(even) { --tc: #b8892b; }
.h-edu .btn-row .btn:not(.btn-outline) { background: #0b0b0b; }
.h-edu .btn-row .btn-outline { border-color: #0b0b0b; color: #0b0b0b; --fill: #0b0b0b; }
/* invite + record */
.invite { background: radial-gradient(70% 80% at 100% 0%, rgba(201, 162, 74, .35), transparent 60%), linear-gradient(140deg, #1a1a1a, #0b0b0b); }
.topics-mini li:nth-child(odd) { --tc: #c9a24a; } .topics-mini li:nth-child(even) { --tc: #3a3a3a; }
.record { background: linear-gradient(160deg, #fffdf8, #f6eedb); }
.record li:nth-child(odd) { --tc: #b8892b; } .record li:nth-child(even) { --tc: #0b0b0b; }
/* newsletter */
.lt { background: radial-gradient(60% 70% at 100% 0%, rgba(201, 162, 74, .28), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(201, 162, 74, .12), transparent 60%), #0b0b0b; }
.lt-box::before { background: linear-gradient(90deg, #8c6a1d, #e7c977, #8c6a1d); }
.lt-stamp { background: linear-gradient(135deg, #b8892b, #e7c977); color: #1a1205; }
.lt-box .btn { background: linear-gradient(90deg, #b8892b, #e7c977); color: #1a1205; }
.lt-box .field input:focus { border-color: #c9a24a; box-shadow: 0 0 0 4px rgba(201, 162, 74, .2); }
/* about boxes */
.bio-teach, .bio-travel { background: linear-gradient(150deg, #fffbf2, #f3e8cf) !important; }
.bio-travel .doodles svg { stroke: #b8892b; }
.bio-edu .doodles svg { stroke: #b8892b; }
/* media page */
.speak-box { background: radial-gradient(120% 120% at 100% 0%, rgba(201, 162, 74, .45), transparent 50%), linear-gradient(135deg, #1c1c1c, #0b0b0b); box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .7); }
.topics-pic li { --tc: 18, 18, 18 !important; }
.topics-pic li:nth-child(even) { --tc: 140, 104, 34 !important; }
.podcast { background: radial-gradient(80% 90% at 85% 10%, rgba(201, 162, 74, .25), transparent 60%), #0b0b0b; }
.pb-glow.g1 { background: #b8892b; } .pb-glow.g2 { background: #5a4313; } .pb-glow.g3 { background: #e7c977; opacity: .2; }
.pod-player::before { background: conic-gradient(from 0deg, #8c6a1d, #e7c977, #8c6a1d, #e7c977, #8c6a1d); }
.pod-eq i, .pod-eq i:nth-child(n) { background: #e7c977; }
.pb-spark { box-shadow: 0 0 10px 2px rgba(231, 201, 119, .8); }
/* contact page */
.ct { background: linear-gradient(160deg, #fffdf8, #faf3e2); }
.ct-f, .ct-env, .ct-plane, .ct-heart, .ct-quill, .ct-star, .ct-book { color: #b8892b !important; }
.ct-env i { border-color: #b8892b; } .ct-env i::before { background: linear-gradient(to bottom right, transparent 49%, #b8892b 50%, transparent 53%), linear-gradient(to bottom left, transparent 49%, #b8892b 50%, transparent 53%); }
.contact-cards li.cc1, .contact-cards li.cc3 { --cc: #1a1a1a; } .contact-cards li.cc2, .contact-cards li.cc4 { --cc: #a87b22; }
.ct .chips label span { --ch: #a87b22 !important; }
.ct .form::before { background: linear-gradient(90deg, #8c6a1d, #e7c977, #8c6a1d); }
.ct .form .btn { background: #0b0b0b; }
.ct h1 em { background: linear-gradient(90deg, #8c6a1d, #e7c977); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct .field input:focus, .ct .field textarea:focus { border-color: #c9a24a; box-shadow: 0 0 0 4px rgba(201, 162, 74, .18); }

/* ===== school page: back to its original look (no flag, no Afghan colours) ===== */
.co-hero { background: radial-gradient(70% 70% at 85% 20%, #d7e8ff 0%, transparent 60%), radial-gradient(50% 60% at 5% 90%, #ffe3ec 0%, transparent 60%), linear-gradient(180deg, #f5f9ff, #fff) !important; }
.co-hero .co-h1 { color: var(--navy); text-shadow: none; }
.co-hero .co-h1 em { background: linear-gradient(90deg, var(--blue), var(--rose), var(--gold), var(--blue)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-hero .co-lead { color: #43547c; text-shadow: none; }
.co-hero .co-trust li { color: #5a6b90; } .co-hero .co-trust b { color: var(--navy); }
.co-hero .co-btn.ghost { color: var(--navy); border-color: rgba(10, 37, 89, .25); }
.co-hero .co-sky { opacity: 1; } .co-hero .co-sky span { color: rgba(31, 111, 235, .22) !important; }
.co-hero .co-ticker { border: 0; box-shadow: none; margin-bottom: 0; }
.co-hero-art { min-height: 460px; }
.co-hero-art .co-chip.c1 { left: -10px; bottom: 20px; } .co-hero-art .co-chip.c2 { right: 0; bottom: -4px; }
.co-timeline::before { background: linear-gradient(var(--blue), var(--rose), var(--gold)); width: 3px; }
.co-timeline li { background: #fff; color: var(--ink2); border: 1px solid #e3ecfb; box-shadow: 0 20px 40px -32px rgba(10, 37, 89, .5); }
.co-timeline li::after { content: none; }
.co-timeline .co-when { color: var(--blue); }
.co-timeline h3 { color: var(--navy); }
.co-story-grid .co-timeline li p:last-child { color: #5a6b90; }
.co-timeline .co-dot { border-color: var(--blue); }

/* ===== one text size for all content writing ===== */
main :is(p, li, dd):not(.h-role, .scrub, .kicker, .h-kicker, .co-kick, .gs-no, .ph-no, .bks-no, .nb-meta, .co-pill, .co-when, .ch-when, .ph-poem-k, .poem-no, .h-fa, .poetry-fa, .bh-alt, .bks-sub, .nb-sub, .bh-sub, .h-label, .lib-sub, .story-count, .reel-cap, .tags li, .co-steps li, .footer-name):not(blockquote *, .paper-card *, .verse *, .ph-poem *, .co-stats *, .h-num-grid *, .co-ticker *, .h-marquee *, .shelf-card *, .co-nav *, .co-trust *, .crumbs *, .co-ged-facts *, .co-uni-count *) { font-size: 1.0625rem !important; line-height: 1.7; }

/* ===== homepage: new books ===== */
.nb { padding: var(--sec) 0 calc(var(--sec) * .7); background: linear-gradient(180deg, #fff, #faf6ec); }
.nb-head { margin-bottom: clamp(30px, 4vw, 50px); }
.nb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.nb-box { position: relative; height: 470px; border-radius: 22px; overflow: hidden; background: #0b0b0b; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 162, 74, .35); }
.nb-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, #2a2414, #0b0b0b); transition: transform 1.1s cubic-bezier(.7, 0, .3, 1), opacity 1.1s; }
.nb-cover img { height: 86%; width: auto; border-radius: 4px 10px 10px 4px; box-shadow: 0 30px 50px -20px #000, 0 0 0 1px rgba(231, 201, 119, .3); animation: aBob 3s ease-in-out infinite alternate; }
.nb-item.show .nb-cover { transform: translateX(110%) rotate(6deg); opacity: 0; transition-delay: .5s; }
.nb-page { position: absolute; inset: 0; z-index: 1; padding: 30px 32px; background: linear-gradient(160deg, #fffdf6, #f5ead0); border: 6px solid #0b0b0b; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(184, 137, 43, .5); display: flex; flex-direction: column; opacity: 0; transform: translateX(-24px); transition: opacity .9s, transform 1s cubic-bezier(.22, 1, .36, 1); }
.nb-item.show .nb-page { opacity: 1; transform: none; transition-delay: 1.1s; }
.nb-thumb { position: absolute; right: 26px; top: 26px; width: 74px; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); }
.nb-meta { margin: 0 92px 10px 0; font: 700 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8c6a1d; }
.nb-title { margin: 0 92px 4px 0; font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--sans); letter-spacing: -.02em; color: #0b0b0b; }
.nb-title.fa { font: 700 1.8rem/1.5 var(--fa); }
.nb-sub { margin: 0 92px 12px 0; font: italic 400 1.15rem/1.3 var(--serif); color: #8c6a1d; }
.nb-hook { margin: 6px 0 10px; font-weight: 600; color: #0b0b0b; }
.nb-desc { margin: 0; color: #4a463d; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.nb-btn { margin-top: auto; align-self: flex-start; }
.nb-more { display: flex; justify-content: center; margin-top: clamp(34px, 4vw, 50px); }
@media (max-width: 860px) { .nb-grid { grid-template-columns: 1fr; } .nb-box { height: 560px; } }
@media (prefers-reduced-motion: reduce) { .nb-cover { display: none; } .nb-page { opacity: 1; transform: none; } }
.nb-hook { margin-right: 92px; }
.nb-cover img { position: absolute; left: 50%; top: 50%; height: 84%; width: auto; translate: -50% -50%; }
.nb-cover img { left: 0; right: 0; top: 0; bottom: 0; margin: auto; translate: none; }
.h-edu-body > p:not(.lead) { color: var(--grey); } .ct .field input, .ct .field textarea { background: #fffdf7; border-color: #ece2c8; } .ct .form { border-color: #efe5cc; box-shadow: 0 50px 90px -50px rgba(0,0,0,.3); }
.co-support { background: radial-gradient(60% 80% at 100% 0%, #2a5bd7 0%, transparent 60%), linear-gradient(160deg, #0a2559, #13306f 60%, #1b3d8a) !important; } .co-needs .co-ic { background: #ffd166; color: #0a2559; }
/* ===== "From Herat to the world": animated gold map ===== */
.her-bg.her-map { display: block; background: radial-gradient(70% 90% at 62% 40%, #1d1708 0%, #0b0b0b 70%) !important; }
.her-bg.her-map::after { background: linear-gradient(90deg, rgba(11, 11, 11, .78) 0%, rgba(11, 11, 11, .35) 45%, rgba(11, 11, 11, .15) 100%), linear-gradient(0deg, rgba(11, 11, 11, .7) 0%, transparent 35%) !important; }
.hm-tiles { position: absolute; inset: 0; opacity: .1; background-size: 64px 64px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e7c977' stroke-width='1.2'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M0 0L18 18M64 0L46 18M0 64L18 46M64 64L46 46'/%3E%3C/g%3E%3C/svg%3E"); animation: hmTiles 60s linear infinite; }
@keyframes hmTiles { to { background-position: 64px 64px; } }
.hm-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-land path { fill: rgba(231, 201, 119, .06); stroke: rgba(231, 201, 119, .55); stroke-width: .9; stroke-linejoin: round; }
.hm-route { fill: none; stroke: #e7c977; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 3px rgba(231, 201, 119, .8)); animation: hmDraw var(--du) ease-in-out var(--dl) infinite; }
@keyframes hmDraw { 0% { stroke-dashoffset: 900; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.hm-city { fill: #ffe7a3; opacity: 0; animation: hmCity var(--du) ease-out var(--dl) infinite; }
.hm-label { fill: #ffe7a3; font: 600 9px/1 var(--sans); letter-spacing: .06em; opacity: 0; animation: hmCity var(--du) ease-out var(--dl) infinite; }
@keyframes hmCity { 0%, 60% { opacity: 0; } 72%, 88% { opacity: 1; } 100% { opacity: 0; } }
.hm-book { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8)); }
.hm-herat { fill: #ffe7a3; }
.hm-ring { fill: none; stroke: #ffe7a3; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hmRing 2.4s ease-out infinite; }
@keyframes hmRing { from { transform: scale(1); opacity: .9; } to { transform: scale(6); opacity: 0; } }
.hm-glow { animation: phSun 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.hm-hlabel { fill: #fff; font: 700 13px/1 var(--sans); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .hm-svg *, .hm-tiles { animation: none !important; } .hm-route { stroke-dashoffset: 0; } .hm-city, .hm-label { opacity: 1; } }
.hm-label.far { display: none; } .hm-hlabel { font-size: 12px; letter-spacing: .2em; fill: #ffe7a3; }
.hp-tulips .hpt-bg { display: none; } .hp-tulips { background: radial-gradient(60% 80% at 50% 0%, rgba(201, 162, 74, .22), transparent 60%), radial-gradient(50% 70% at 50% 100%, rgba(201, 162, 74, .12), transparent 60%), #0b0b0b !important; } .hp-tulips .h-kicker { color: #e7c977; text-shadow: none; } .verse-box { box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(201, 162, 74, .45); }
.nb-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; height: 470px; border-radius: 22px; text-decoration: none; text-align: center; color: #0b0b0b; background: linear-gradient(160deg, #fffdf6, #f5ead0); border: 2px dashed rgba(184, 137, 43, .55); transition: transform .5s cubic-bezier(.22, 1.3, .36, 1), box-shadow .5s; }
.nb-all:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .45); }
.nb-all-covers { display: flex; }
.nb-all-covers img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; margin-left: -18px; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .6); transform: rotate(calc((var(--n, 0) - 2) * 6deg)); transition: transform .5s; }
.nb-all-covers img:nth-child(1) { --n: 0; margin-left: 0; } .nb-all-covers img:nth-child(2) { --n: 1; } .nb-all-covers img:nth-child(3) { --n: 2; } .nb-all-covers img:nth-child(4) { --n: 3; } .nb-all-covers img:nth-child(5) { --n: 4; }
.nb-all:hover .nb-all-covers img { transform: rotate(calc((var(--n) - 2) * 10deg)) translateY(-6px); }
.nb-all-txt { display: grid; gap: 6px; max-width: 280px; color: #5e5a52; }
.nb-all-txt b { font: 800 2rem/1 var(--sans); color: #0b0b0b; }
@media (max-width: 860px) { .nb-all { height: 360px; } }
.nb { padding-bottom: 0; } .nb + .h-books .hb-head { margin-top: clamp(40px, 5vw, 70px); } .h-books + .h-poetry { margin-top: 0; }
.nb { padding-bottom: clamp(50px, 6vw, 80px); } .nb + .h-books .hb-head { margin-top: 0; } .nb + .h-books { padding-top: 0; }
.who-box .scrub.big { font: 400 1.25rem/1.7 var(--sans) !important; letter-spacing: 0; } .who-box .scrub .w { opacity: 1; } .who-box { padding: clamp(24px, 3vw, 36px); }
.who-box p { margin: 0 0 14px; color: #3d3a33; max-width: 62em; } .who-box p.who-lead { font: 600 1.2rem/1.6 var(--sans) !important; color: #0b0b0b; } .who-box .who-more { margin-top: 10px; }
/* ===== homepage hero: black & gold night sky, moon, orbiting books ===== */
.h-hero { background: radial-gradient(60% 70% at 72% 40%, #2a2210 0%, #0d0b07 55%, #050505 100%); color: #fff; }
.h-hero .h-grain { display: none; }
.hx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hx-tiles { position: absolute; inset: 0; opacity: .07; background-size: 70px 70px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e7c977' stroke-width='1.2'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E"); animation: hmTiles 80s linear infinite; }
.hx-stars i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff6d8; box-shadow: 0 0 6px 1px rgba(231, 201, 119, .7); animation: ftTw var(--d) ease-in-out var(--dl) infinite alternate; }
.hx-shoot { position: absolute; width: 140px; height: 2px; background: linear-gradient(90deg, rgba(255, 240, 200, 0), #fff6d8); border-radius: 2px; opacity: 0; transform: rotate(-24deg); animation: hxShoot 9s ease-in infinite; }
.hx-shoot.s1 { top: 14%; left: 30%; } .hx-shoot.s2 { top: 6%; left: 62%; animation-delay: 3.5s; } .hx-shoot.s3 { top: 30%; left: 80%; animation-delay: 6.5s; }
@keyframes hxShoot { 0% { opacity: 0; translate: 0 0; } 3% { opacity: 1; } 9% { opacity: 0; translate: -260px 120px; } 100% { opacity: 0; translate: -260px 120px; } }
.hx-moonwrap { position: absolute; right: 7%; top: 50%; width: min(40vw, 560px); aspect-ratio: 1; translate: 0 -50%; }
.hx-halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(231, 201, 119, .35), rgba(231, 201, 119, .08) 45%, transparent 70%); animation: phSun 5s ease-in-out infinite alternate; }
.hx-moon { position: absolute; inset: 24%; width: 52%; height: 52%; border-radius: 50%; object-fit: cover; filter: sepia(.55) saturate(1.4) brightness(1.08) contrast(1.05); -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%); mask-image: radial-gradient(circle, #000 64%, transparent 71%); box-shadow: 0 0 80px 10px rgba(231, 201, 119, .3); animation: hxMoon 40s linear infinite; }
@keyframes hxMoon { to { rotate: 360deg; } }
.hx-orbit { position: absolute; inset: 0; animation: hxOrbit 60s linear infinite; }
.hx-arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; rotate: var(--a); }
.hx-arm img { position: absolute; left: -26px; top: calc(-1 * min(19vw, 270px)); width: 52px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 22px -6px #000, 0 0 0 1px rgba(231, 201, 119, .5); animation: hxCounter 60s linear infinite; }
@keyframes hxOrbit { to { rotate: 360deg; } }
@keyframes hxCounter { from { rotate: calc(-1 * var(--a)); } to { rotate: calc(-1 * var(--a) - 360deg); } }
.hx-arm img { rotate: calc(-1 * var(--a)); }
.hx-words span { position: absolute; left: var(--x); bottom: -40px; font: 600 var(--s)/1 var(--fa); color: rgba(231, 201, 119, .35); animation: hxWord var(--d) linear var(--dl) infinite; }
@keyframes hxWord { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: .7; } 100% { transform: translateY(-110vh) rotate(-8deg); opacity: 0; } }
.hx-ink { position: absolute; left: 0; right: 30%; bottom: 14%; width: 70%; height: 120px; fill: none; stroke: rgba(231, 201, 119, .35); stroke-width: 1.5; stroke-dasharray: 900; animation: aDraw 9s ease-in-out infinite; }
.hx-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 5, .85) 0%, rgba(5, 5, 5, .55) 40%, rgba(5, 5, 5, 0) 70%); }
/* hero text on dark */
.h-hero .h-name, .h-hero .h-role { color: #fff; }
.h-hero .h-name em { color: #e7c977; }
.h-hero .h-label, .h-hero .h-fa { color: rgba(255, 255, 255, .8); }
.h-hero .h-label i { color: #c9a24a; }
.h-hero .h-top { border-color: rgba(231, 201, 119, .25); }
.h-hero .h-intro p { color: rgba(255, 255, 255, .78); }
.h-hero .rotator span { color: #e7c977; }
.h-hero .btn { background: linear-gradient(90deg, #b8892b, #e7c977); color: #1a1205; border-color: transparent; }
.h-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(231, 201, 119, .6); --fill: #e7c977; }
.h-hero .btn-outline:hover { color: #1a1205; }
@media (max-width: 860px) { .hx-moonwrap { right: -30%; top: 30%; width: 90vw; opacity: .55; } .hx-arm img { top: -40vw; width: 40px; left: -20px; } .hx-shade { background: rgba(5, 5, 5, .55); } }
@media (prefers-reduced-motion: reduce) { .hx * { animation: none !important; } }
.hx-tiles { opacity: .035; }
.hx-arm img { animation: none; rotate: none; transform: rotate(calc(-1 * var(--a))); }
.hx-orbit { z-index: 2; }
body:has(.h-hero) .site-header .bar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(201, 162, 74, .35); }
body:has(.h-hero) .menu-toggle { background: #fff; } body:has(.h-hero) .menu-toggle i { background: #0b0b0b; }
.hx-arm img { max-width: none; height: auto; }
/* quill pen that writes the poems */
.paper-card, .ph-poem { position: relative; }
.quill { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.quill.on { opacity: 1; }
.quill svg { position: absolute; left: -10px; bottom: -6px; width: clamp(54px, 7cqw + 30px, 86px); height: auto; transform-origin: 10% 98%; filter: drop-shadow(-6px 10px 8px rgba(0, 0, 0, .35)); animation: qWiggle .22s ease-in-out infinite alternate; }
@keyframes qWiggle { from { rotate: -3deg; translate: 0 0; } to { rotate: 3deg; translate: 0 -2px; } }
.quill:not(.on) svg { animation: none; }
.quill svg { width: clamp(70px, 9cqw + 34px, 112px); left: -8px; bottom: -4px; }
/* footer: all 13 covers in a row across the lower half, bobbing up and down in a wave */
.ft-covers { position: absolute; left: 2%; right: 2%; top: auto; bottom: 6%; height: 52%; translate: none; transform: none; display: grid; grid-template-columns: repeat(13, 1fr); gap: 1.2%; align-items: end; opacity: .32; }
.ft-covers img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 16px 26px -12px #000, 0 0 0 1px rgba(231, 201, 119, .25); animation: ftWave 3.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.28s); }
@keyframes ftWave { from { transform: translateY(-22px); } to { transform: translateY(22px); } }
@media (max-width: 860px) { .ft-covers { grid-template-columns: repeat(7, 1fr); height: 40%; opacity: .2; } .ft-covers img:nth-child(n+8) { display: none; } }
.ft .footer-top { padding-bottom: clamp(190px, 17vw, 250px); } .ft-covers { bottom: 92px; height: auto; top: auto; opacity: .55; align-items: center; } @media (max-width: 860px) { .ft .footer-top { padding-bottom: 150px; } .ft-covers { bottom: 110px; opacity: .4; } }
/* ===== poetry page heading: the poet's night, her verses written in gold ===== */
.poetry-hero { background: radial-gradient(70% 80% at 70% 30%, #241c0c 0%, #0b0907 55%, #050505 100%) !important; }
.pv-moon { position: absolute; right: 12%; top: 9%; width: clamp(70px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset -18px 10px 0 0 #f2d27a; filter: drop-shadow(0 0 22px rgba(242, 210, 122, .55)); rotate: -20deg; animation: pvMoon 8s ease-in-out infinite alternate; }
@keyframes pvMoon { to { translate: 0 -10px; filter: drop-shadow(0 0 34px rgba(242, 210, 122, .8)); } }
.pv-verse { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-fa { font: 700 64px/1 var(--fa); fill: rgba(231, 201, 119, .0); stroke: rgba(231, 201, 119, .55); stroke-width: 1.2; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: pvWrite 14s ease-in-out infinite; animation-delay: calc(var(--i) * 3.2s); }
.pv-en { font: italic 400 30px/1 var(--serif); fill: rgba(255, 255, 255, 0); animation: pvFade 14s ease-in-out infinite; animation-delay: calc(1.6s + var(--i) * 4.2s); }
@keyframes pvWrite { 0% { stroke-dashoffset: 2600; fill: rgba(231, 201, 119, 0); opacity: 0; } 4% { opacity: 1; } 30% { stroke-dashoffset: 0; fill: rgba(231, 201, 119, 0); } 42% { fill: rgba(231, 201, 119, .14); } 75% { opacity: 1; fill: rgba(231, 201, 119, .14); stroke-dashoffset: 0; } 92%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes pvFade { 0%, 100% { fill: rgba(255, 255, 255, 0); } 20%, 60% { fill: rgba(255, 246, 216, .22); } }
.pv-drops i { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(231, 201, 119, .6); animation: pvDrop 8s ease-out var(--dl) infinite; }
@keyframes pvDrop { 0% { transform: scale(.2); opacity: 0; } 5% { opacity: 1; } 60%, 100% { transform: scale(18); opacity: 0; } }
.poetry-hero .ph-shade { background: linear-gradient(90deg, rgba(5, 5, 5, .82) 0%, rgba(5, 5, 5, .45) 50%, rgba(5, 5, 5, .2) 100%), linear-gradient(0deg, rgba(5, 5, 5, .7) 0%, transparent 30%) !important; }
.poetry-hero .ph-moon, .poetry-hero .ph-fog, .poetry-hero .ph-photo, .poetry-hero .ph-sun { display: none; }
@media (prefers-reduced-motion: reduce) { .pv-fa { stroke-dashoffset: 0; opacity: 1; animation: none; } .pv-en, .pv-drops i, .pv-moon { animation: none; } }
.pv-fa { stroke: rgba(231, 201, 119, .38); }
/* ===== media page heading: black & gold broadcast studio ===== */
.media-hero { background: radial-gradient(60% 80% at 72% 45%, #2a2110 0%, #0b0907 55%, #050505 100%) !important; }
.md { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.md-beam { position: absolute; top: -10%; width: 26vw; height: 130%; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(242, 210, 122, .22), rgba(242, 210, 122, 0) 75%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
.md-beam.b1 { left: 40%; animation: pbBeam 9s ease-in-out infinite alternate; } .md-beam.b2 { left: 62%; animation: pbBeam 11s ease-in-out -4s infinite alternate-reverse; } .md-beam.b3 { left: 82%; animation: pbBeam 10s ease-in-out -7s infinite alternate; }
.md-screens { position: absolute; right: 2%; top: 14%; width: 56%; height: 70%; }
.md-scr { position: absolute; width: clamp(90px, 9vw, 130px); padding: 6px 6px 10px; border-radius: 10px; background: #141210; border: 1px solid rgba(231, 201, 119, .35); box-shadow: 0 20px 40px -18px #000; left: calc(var(--i) * 12%); top: calc(mod(var(--i) * 37, 70) * 1%); opacity: .55; animation: mdFloat 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.9s); }
.md-scr:nth-child(odd) { top: 8%; } .md-scr:nth-child(even) { top: 58%; } .md-scr:nth-child(3n) { top: 32%; }
@keyframes mdFloat { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-18px) rotate(3deg); } }
.md-scr img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 5px; }
.md-live { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 2px 6px; border-radius: 4px; background: #c8102e; color: #fff; font: 700 .55rem/1.4 var(--sans); letter-spacing: .1em; }
.md-scr:nth-child(3n+2) .md-live { background: #b8892b; color: #1a1205; } .md-scr:nth-child(3n) .md-live { background: #fff; color: #0b0b0b; }
.md-prog { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, #e7c977 var(--p, 30%), rgba(255, 255, 255, .15) 0); animation: mdProg 6s linear infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes mdProg { from { --p: 0%; background-size: 0% 100%; } to { background-size: 100% 100%; } }
.md-prog { background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; } .md-prog::after { content: ""; position: absolute; inset: 0; background: #e7c977; transform-origin: left; animation: mdBar 6s linear infinite; animation-delay: inherit; }
@keyframes mdBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.md-mic { position: absolute; right: 18%; top: 50%; width: clamp(120px, 13vw, 190px); translate: 0 -50%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(231, 201, 119, .35)); animation: mdMic 6s ease-in-out infinite alternate; z-index: 2; }
@keyframes mdMic { from { rotate: -4deg; } to { rotate: 4deg; translate: 0 calc(-50% - 10px); } }
.md-mic svg { width: 100%; height: auto; position: relative; z-index: 1; }
.md-ring { position: absolute; left: 50%; top: 26%; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(231, 201, 119, .55); translate: -50% -50%; animation: mdRing 3s ease-out infinite; }
.md-ring.r2 { animation-delay: 1s; } .md-ring.r3 { animation-delay: 2s; }
@keyframes mdRing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.md-air { position: absolute; right: 6%; top: 15%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 2px solid #c8102e; color: #ff4d5e; font: 800 .9rem/1 var(--sans); letter-spacing: .2em; text-shadow: 0 0 12px rgba(255, 60, 80, .8); box-shadow: 0 0 22px rgba(200, 16, 46, .45); animation: mdAir 2s ease-in-out infinite; }
.md-air i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4e; }
@keyframes mdAir { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.md-wave { position: absolute; left: 0; right: 0; bottom: 6%; height: 70px; display: flex; align-items: center; gap: 4px; padding: 0 3%; opacity: .5; }
.md-wave i { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(#f2d27a, #8c6a1d); transform-origin: center; animation: skEq .9s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.07s); }
.md-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .6) 42%, rgba(5, 5, 5, .1) 72%); }
@media (max-width: 860px) { .md-screens { width: 100%; right: -20%; opacity: .6; } .md-mic { right: 4%; top: 22%; width: 90px; } .md-air { top: 9%; } .md-shade { background: rgba(5, 5, 5, .62); } }
@media (prefers-reduced-motion: reduce) { .md * { animation: none !important; } }
.md-mic { right: 5%; top: 60%; width: clamp(110px, 10vw, 150px); } .md-shade { background: linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.75) 50%, rgba(5,5,5,.15) 80%) !important; } .md-screens { right: 0; width: 42%; } @media (max-width: 860px) { .md-mic { top: 14%; right: 4%; width: 80px; } .md-shade { background: rgba(5,5,5,.62) !important; } .md-screens { width: 100%; } }
.who-pic a { position: relative; display: block; height: 100%; } .who-view { position: absolute; left: 50%; bottom: 16px; translate: -50% 10px; padding: 9px 16px; border-radius: 99px; background: rgba(11,11,11,.8); color: #e7c977; font: 600 .85rem/1 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .35s, translate .35s; } .who-pic:hover .who-view { opacity: 1; translate: -50% 0; } .who-gal { display: flex; justify-content: center; margin: -10px 0 clamp(30px, 4vw, 46px); }

/* ===== site-wide: every box / frame / card zooms in on hover ===== */
:is(.nb-box, .nb-all, .diff, .shelf-card, .chapter, .lib-item, .who-pic, .pull.pull-cover, .contact-cards li, .record li, .topics-mini li, .edu-promo, .arc-card, .topics-pic li, .kit-photos a, .co-course, .co-dept, .co-rule, .co-fac-grid article, .co-needs li, .co-promise-list li, .co-checks li, .co-timeline li, .co-voice-grid figure, .co-mag-card, .co-stats > div, .ph-pn-card, .masonry-item, .h-num-grid > *, .paper-card, .gs-frame, .bks-slide, .tags li, .co-acc details, .faq details, .related-card, .book-facts, .buy-strip, .ct .form, .lt-box, .co-form, .invite, .record, .bio-aside) {
  transition: scale .45s cubic-bezier(.22, 1.3, .36, 1), transform .6s cubic-bezier(.22, 1.2, .36, 1), box-shadow .45s, background .5s, color .4s, opacity .9s, border-color .4s, filter .5s, clip-path 1.2s;
}
:is(.nb-box, .diff, .shelf-card, .chapter, .lib-item, .who-pic, .contact-cards li, .record li, .topics-mini li, .edu-promo, .arc-card, .topics-pic li, .kit-photos a, .co-course, .co-dept, .co-rule, .co-fac-grid article, .co-needs li, .co-promise-list li, .co-checks li, .co-timeline li, .co-voice-grid figure, .co-mag-card, .co-stats > div, .ph-pn-card, .masonry-item, .h-num-grid > *, .paper-card, .gs-frame, .tags li, .related-card):hover { scale: 1.05; z-index: 3; position: relative; }
:is(.nb-all, .pull.pull-cover, .bks-slide, .co-acc details, .faq details, .book-facts, .buy-strip, .ct .form, .lt-box, .co-form, .invite, .record, .bio-aside, .gal-row, .bio-ch, .verse-box, .speak-box, .pod-player, .co-ged-card):hover { scale: 1.02; }
.gal-row, .bio-ch, .verse-box, .pod-player, .co-ged-card { transition: scale .5s cubic-bezier(.22, 1.2, .36, 1), opacity .9s, transform 1s cubic-bezier(.22, 1.2, .36, 1), box-shadow .5s; }
@media (hover: none), (prefers-reduced-motion: reduce) { :is(*):hover { scale: none !important; } }
.hx-arm img { width: 46px; left: -23px; } @media (max-width: 860px) { .hx-arm img { width: 34px; left: -17px; } }
/* homepage hero: signature logo instead of typed name */
.h-sig { margin: clamp(10px, 2vw, 30px) 0 0; line-height: 0; }
.h-sig img { display: block; width: min(680px, 100%); height: auto; filter: drop-shadow(0 6px 30px rgba(231, 201, 119, .35)); clip-path: inset(0 100% 0 0); animation: sigDraw 2.2s cubic-bezier(.65, .05, .25, 1) .3s forwards, sigGlow 4s ease-in-out 2.6s infinite alternate; }
@keyframes sigDraw { to { clip-path: inset(0 0 0 0); } }
@keyframes sigGlow { from { filter: drop-shadow(0 6px 24px rgba(231, 201, 119, .25)); } to { filter: drop-shadow(0 6px 40px rgba(231, 201, 119, .6)); } }
@media (prefers-reduced-motion: reduce) { .h-sig img { clip-path: none; animation: none; } }

/* ===== round of changes: swap heroes, tagline, spacing, new backgrounds ===== */
/* tagline under the home heading: smaller */
.h-hero .h-role { font-size: clamp(1.15rem, 2vw, 1.6rem); }
/* home hero now uses the moving cover wall */
.h-hero { isolation: isolate; }
.h-hero > .wrap, .h-hero > .h-hero-grid, .h-hero .h-marquee { position: relative; z-index: 2; }
.h-hero .cover-wall { z-index: 0; }
.h-hero .cw-shade { z-index: 1; background: linear-gradient(90deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .78) 45%, rgba(5, 5, 5, .45) 75%, rgba(5, 5, 5, .55) 100%), linear-gradient(0deg, rgba(5, 5, 5, .7) 0%, transparent 35%); }
/* books page hero now uses the moon with orbiting books, larger */
.books-hero { background: radial-gradient(60% 70% at 72% 40%, #2a2210 0%, #0d0b07 55%, #050505 100%); }
.books-hero .hx { z-index: 0; }
.books-hero .hx-moonwrap { right: 4%; width: min(52vw, 720px); }
.books-hero .hx-arm img { width: 64px; left: -32px; top: calc(-1 * min(24.5vw, 345px)); }
.books-hero .hx-shade { background: linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .55) 42%, rgba(5, 5, 5, 0) 70%), linear-gradient(0deg, rgba(5, 5, 5, .75) 0%, transparent 35%); }
@media (max-width: 860px) { .books-hero .hx-moonwrap { right: -35%; top: 28%; width: 110vw; opacity: .5; } .books-hero .hx-arm img { width: 42px; left: -21px; top: -50vw; } }
/* media boxes: space from the section above */
.h-media { padding-top: clamp(60px, 7vw, 110px); }

/* "who she is": her roles drifting in gold + a gold thread */
.who-sec { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 15% 20%, #fbf3dd 0%, transparent 60%), radial-gradient(50% 60% at 90% 85%, #f6ead0 0%, transparent 60%), #fffdf8; }
.who-sec > .wrap { position: relative; z-index: 1; }
.who-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.who-thread { position: absolute; inset: 0; width: 100%; height: 100%; }
.who-thread path { fill: none; stroke: rgba(184, 137, 43, .35); stroke-width: 1.6; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: whoThread 12s ease-in-out infinite alternate; }
.who-thread path:nth-child(2) { animation-delay: -6s; stroke: rgba(184, 137, 43, .22); }
@keyframes whoThread { to { stroke-dashoffset: 0; } }
.who-word { position: absolute; left: var(--x); top: var(--y); display: grid; justify-items: center; gap: 2px; animation: whoFloat var(--d) ease-in-out var(--dl) infinite alternate; }
.who-word b { font: italic 400 clamp(1.4rem, 2.4vw, 2.2rem)/1 var(--serif); color: rgba(140, 106, 29, .28); }
.who-word i { font: 600 clamp(.9rem, 1.3vw, 1.2rem)/1.4 var(--fa); font-style: normal; color: rgba(140, 106, 29, .22); }
@keyframes whoFloat { from { transform: translateY(0) rotate(-3deg); opacity: .6; } to { transform: translateY(-18px) rotate(3deg); opacity: 1; } }

/* "more than a writer of books": her roles as gold emblems on turning rings */
.diff-sec { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 80% at 50% 50%, #fbf3dd 0%, #fffdf8 70%) !important; }
.diff-sec > .wrap { position: relative; z-index: 1; }
.diff-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dr { position: absolute; left: 50%; top: 55%; border-radius: 50%; border: 1.5px dashed rgba(184, 137, 43, .3); translate: -50% -50%; animation: drSpin 60s linear infinite; }
.dr.r1 { width: 46vw; aspect-ratio: 1; } .dr.r2 { width: 72vw; aspect-ratio: 1; animation-direction: reverse; animation-duration: 90s; border-style: dotted; } .dr.r3 { width: 100vw; aspect-ratio: 1; animation-duration: 120s; border-color: rgba(184, 137, 43, .18); }
@keyframes drSpin { to { rotate: 360deg; } }
.diff-em { position: absolute; left: var(--x); top: var(--y); width: clamp(60px, 7vw, 110px); aspect-ratio: 1; translate: -50% -50%; color: rgba(184, 137, 43, .3); animation: diffEm 7s ease-in-out var(--dl) infinite alternate; }
.diff-em svg { width: 100%; height: 100%; stroke-width: 2; }
@keyframes diffEm { from { transform: translateY(0) rotate(-8deg) scale(.95); } to { transform: translateY(-20px) rotate(8deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .who-bg *, .diff-bg * { animation: none !important; } .who-thread path { stroke-dashoffset: 0; } }
.who-word b { color: rgba(140, 106, 29, .42); } .who-word i { color: rgba(140, 106, 29, .34); } .who-thread path { stroke: rgba(184, 137, 43, .5); }

/* ===== "Who she is": parchment, Herati arches, signature, gold dust ===== */
.who-sec { background: radial-gradient(70% 60% at 50% 30%, #fff7e4 0%, #f6ead0 60%, #efdfbd 100%) !important; }
.who-word, .who-thread { display: none !important; }
.wb-rays { position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(231, 201, 119, .18) 0 4deg, transparent 4deg 12deg); animation: drSpin 120s linear infinite; -webkit-mask-image: radial-gradient(60% 60% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 0%, #000, transparent 75%); }
.wb-arches { position: absolute; left: 50%; top: 150px; width: min(1240px, 96%); translate: -50% 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; }
.wb-arches i { aspect-ratio: 3 / 4.6; border: 2px solid rgba(184, 137, 43, .55); border-radius: 999px 999px 18px 18px; box-shadow: 0 0 40px rgba(231, 201, 119, .35), inset 0 0 40px rgba(231, 201, 119, .25); transform: scale(1.06); animation: wbArch 5s ease-in-out infinite alternate; }
.wb-arches i:nth-child(2) { animation-delay: -1.6s; } .wb-arches i:nth-child(3) { animation-delay: -3.2s; }
@keyframes wbArch { from { box-shadow: 0 0 20px rgba(231, 201, 119, .2), inset 0 0 20px rgba(231, 201, 119, .15); } to { box-shadow: 0 0 60px rgba(231, 201, 119, .55), inset 0 0 50px rgba(231, 201, 119, .35); } }
.wb-sig { position: absolute; right: 2%; bottom: 3%; width: min(560px, 45vw); opacity: .1; clip-path: inset(0 100% 0 0); animation: wbSig 10s ease-in-out infinite; }
@keyframes wbSig { 0% { clip-path: inset(0 100% 0 0); } 40%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.wb-fa { position: absolute; left: 3%; bottom: 6%; font: 700 clamp(3rem, 7vw, 6.5rem)/1 var(--fa); color: rgba(140, 106, 29, .1); }
.wb-dust i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #e7c977; box-shadow: 0 0 10px 2px rgba(231, 201, 119, .8); animation: pbSpark var(--d) linear var(--dl) infinite; }
.who-box { background: rgba(255, 252, 244, .9) !important; backdrop-filter: blur(4px); border: 1px solid rgba(184, 137, 43, .3); }

/* ===== "What makes her different": night sky constellation ===== */
.diff-sec { background: radial-gradient(70% 80% at 50% 30%, #1d1709 0%, #0b0907 60%, #050505 100%) !important; color: #fff; }
.dr, .diff-em { display: none !important; }
.diff-sec .h-title { color: #fff; } .diff-sec .h-title em { color: #e7c977; }
.diff-sec .h-kicker { color: #e7c977; }
.db-stars i { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #fff6d8; animation: ftTw var(--d) ease-in-out var(--dl) infinite alternate; }
.db-const { position: absolute; inset: 0; width: 100%; height: 100%; }
.db-const path { fill: none; stroke: rgba(231, 201, 119, .55); stroke-width: 1.2; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: dbLine 12s ease-in-out infinite; }
@keyframes dbLine { 0% { stroke-dashoffset: 3000; opacity: 1; } 60%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.db-star { fill: #fff6d8; } .db-glow { fill: rgba(231, 201, 119, .25); animation: phSun 2.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.4s); transform-box: fill-box; transform-origin: center; }
.db-const text { fill: rgba(231, 201, 119, .7); font: italic 400 20px/1 var(--serif); }
.diff-sec .diff.d1, .diff-sec .diff.d3, .diff-sec .diff.d5 { box-shadow: 0 30px 60px -30px #000, 0 0 0 1px rgba(231, 201, 119, .4); }
@media (prefers-reduced-motion: reduce) { .who-bg *, .diff-bg * { animation: none !important; } .db-const path { stroke-dashoffset: 0; } .wb-sig { clip-path: none; } }
.h-marquee { padding: 11px 0; } .h-track b { font-size: clamp(.95rem, 1.4vw, 1.2rem) !important; padding: 0 18px; }

/* ===== Home "Thirteen books": a night library of spines made from her covers ===== */
.hb-lib { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: space-evenly; padding: 2% 0; background: radial-gradient(120% 70% at 50% 110%, #2a1d07 0%, #0b0b0b 60%); }
.hl-row { position: relative; flex: 1; max-height: 34%; overflow: hidden; }
.hl-track { position: absolute; left: 0; bottom: 14px; height: calc(100% - 20px); display: flex; align-items: flex-end; gap: 3px; width: max-content; animation: hlPan var(--d) linear infinite; }
.hl-row.rev .hl-track { animation-direction: reverse; }
@keyframes hlPan { to { transform: translateX(-33.333%); } }
.hl-spine { position: relative; flex: none; width: var(--w); height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--cv) var(--px) center / auto 100% no-repeat, #222; box-shadow: inset 6px 0 10px rgba(0,0,0,.55), inset -4px 0 8px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,74,.25); filter: brightness(.62) saturate(1.1); animation: hlPull 14s ease-in-out var(--dl) infinite; }
.hl-spine::before, .hl-spine::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: linear-gradient(90deg, transparent, #e7c977, transparent); opacity: .8; }
.hl-spine::before { top: 12%; } .hl-spine::after { bottom: 12%; }
.hl-spine i { position: absolute; left: 50%; top: 24%; bottom: 24%; width: 2px; transform: translateX(-50%); background: linear-gradient(#e7c977, transparent 30%, transparent 70%, #e7c977); opacity: .55; }
@keyframes hlPull { 0%, 82%, 100% { transform: none; filter: brightness(.62) saturate(1.1); } 88%, 94% { transform: translateY(-12px); filter: brightness(1.15) saturate(1.25); box-shadow: 0 0 26px rgba(231,201,119,.55), 0 0 0 1px #e7c977; } }
.hl-plank { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(#e7c977, #a87b22 45%, #4a340c); box-shadow: 0 10px 24px rgba(0,0,0,.7); }
.hl-lamp { position: absolute; z-index: 3; top: -20%; width: 46%; height: 140%; left: -50%; background: radial-gradient(closest-side, rgba(255,214,130,.22), transparent); mix-blend-mode: screen; animation: hlLamp 22s ease-in-out infinite alternate; pointer-events: none; }
@keyframes hlLamp { to { left: 104%; } }
.hl-dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hl-dust i { position: absolute; left: var(--x); bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #e7c977; box-shadow: 0 0 10px #e7c977; opacity: 0; animation: hlDust var(--d) linear var(--dl) infinite; }
@keyframes hlDust { 10% { opacity: .9; } 90% { opacity: .5; } 100% { transform: translate(30px, -110vh); opacity: 0; } }
.hb-head:has(.hb-lib) .cw-shade { z-index: 1; background: radial-gradient(90% 60% at 30% 30%, rgba(11,11,11,.82), rgba(11,11,11,.45) 70%), linear-gradient(rgba(11,11,11,.35), rgba(11,11,11,.55)); }
@media (prefers-reduced-motion: reduce) { .hl-track, .hl-spine, .hl-lamp, .hl-dust i { animation: none; } }
