/* ==========================================================================
   Mr. Zunair — shared styles
   A clean desk: off-white paper, ink type, Pakistan green and a gold crescent.
   ========================================================================== */

:root {
  --bg: #f4f4f1;
  --bg-2: #ebebe6;
  --card: #ffffff;
  --ink: #121310;
  --ink-2: #393b36;
  --muted: #74776f;
  --faint: #a3a59e;
  --line: rgba(18, 19, 16, .09);
  --line-2: rgba(18, 19, 16, .16);
  --green: #0f6a3e;
  --green-2: #0b5431;
  --green-deep: #0c2a1d;
  --green-soft: #e3f0e7;
  --gold: #c9a24c;
  --gold-2: #e7c56a;
  --marker: #ffe45c;
  --mint: #bfe9d8;
  --sticky: #fbe58a;
  --rose: #f6c9cf;
  --red: #d3272e;
  --blue: #2f6fe4;

  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-hand: 'Caveat', 'Bradley Hand', cursive;
  --f-urdu: 'Noto Nastaliq Urdu', serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hd-h: 72px;
  --shadow-card: 0 1px 1px rgba(0,0,0,.04), 0 6px 14px -6px rgba(20,24,16,.14), 0 24px 48px -24px rgba(20,24,16,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font: 400 17px/1.55 var(--f-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
svg use { pointer-events: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; transition: top .2s; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(760px + var(--gut) * 2); }
.sec { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s, 16px); }
.clip-x { overflow-x: clip; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font: 500 11px/1.2 var(--f-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--green { color: var(--green); }
.h1 {
  font: 500 clamp(2.45rem, 4.7vw, 4.5rem)/1.02 var(--f-sans);
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h2 {
  font: 500 clamp(1.95rem, 3.35vw, 3.1rem)/1.06 var(--f-sans);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h3 { font: 600 clamp(1.25rem, 1.7vw, 1.5rem)/1.2 var(--f-sans); letter-spacing: -.02em; }
.serif { font-family: var(--f-serif); }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }
.center .lead { margin-inline: auto; max-width: 560px; }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { max-width: 560px; }
.hand { font-family: var(--f-hand); font-weight: 600; }

/* highlighter: swipes in when revealed (or immediately without JS) */
.mark {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%) no-repeat 0 0 / 0% 100%;
  padding: 0 .12em;
  margin: 0 -.06em;
  border-radius: .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 1s var(--ease-out) .15s;
}
.mark--green { background-image: linear-gradient(transparent 12%, #c7f0a8 12%, #c7f0a8 88%, transparent 88%); }
html:not(.js) .mark, .mark.is-on, .reduced .mark { background-size: 100% 100%; }

/* split-text helpers */
.split-line { display: block; }
.split-mask { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- buttons ---------- */
.btn {
  --bg-b: var(--green);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 99px;
  background: var(--bg-b);
  color: #fff;
  font: 500 15px/1 var(--f-sans);
  letter-spacing: -.005em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(10, 60, 34, .3), 0 10px 22px -10px rgba(15, 106, 62, .75);
  transition: background-color .3s, box-shadow .3s, transform .5s var(--ease-out);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
  z-index: -1;
}
.btn:hover { --bg-b: var(--green-2); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ink { --bg-b: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px -12px rgba(0,0,0,.6); }
.btn--ink:hover { --bg-b: #2a2c27; }
.btn--ghost { --bg-b: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { --bg-b: rgba(18,19,16,.05); }
.btn--white { --bg-b: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 22px -12px rgba(0,0,0,.35); }
.btn--white:hover { --bg-b: #f3f3ef; }
.btn__i { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .btn__i { transform: translateX(4px); }
.btn__t { position: relative; display: inline-block; }

/* rolling label: JS duplicates text into .roll > span + span */
[data-roll] { display: inline-block; }
.roll { display: inline-grid; overflow: clip; vertical-align: top; line-height: 1.15; }
.roll > span { grid-area: 1 / 1; transition: transform .55s var(--ease-out); }
.roll > span:last-child { transform: translateY(105%); }
a:hover > .roll > span:first-child, button:hover > .roll > span:first-child,
a:hover .btn__t > .roll > span:first-child, .roll-host:hover .roll > span:first-child { transform: translateY(-105%); }
a:hover > .roll > span:last-child, button:hover > .roll > span:last-child,
a:hover .btn__t > .roll > span:last-child, .roll-host:hover .roll > span:last-child { transform: translateY(0); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--green); }
.link svg { width: 16px; height: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip svg { width: 15px; height: 15px; }
button.chip:hover { box-shadow: 0 0 0 1px var(--line-2); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--hd-h);
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.hd.is-scrolled { background: rgba(244, 244, 241, .9); box-shadow: 0 1px 0 var(--line); }
.hd.is-hidden { transform: translateY(-105%); }
.hd__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-inline: clamp(16px, 2.2vw, 28px); }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.logo-mark { width: 24px; height: 24px; flex: none; }
.hd__logo .logo-mark { width: 26px; height: 26px; transition: transform .6s var(--ease-out); }
.hd__logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.hd__name { display: grid; font: 600 15px/1.05 var(--f-sans); letter-spacing: -.02em; }
.hd__name small { font: 500 10.5px/1.3 var(--f-sans); letter-spacing: .02em; color: var(--muted); }
.hd__nav { display: flex; gap: 4px; }
.hd__a { position: relative; padding: 8px 13px; font-size: 14.5px; font-weight: 450; color: var(--ink-2); border-radius: 99px; transition: color .25s, background-color .25s; }
.hd__a:hover { color: var(--ink); background: rgba(18,19,16,.05); }
.hd__a.is-active { color: var(--ink); }
.hd__a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
.hd__end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hd__burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); position: relative; }
.hd__burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out); }
.hd__burger span:first-child { top: 17px; }
.hd__burger span:last-child { top: 24px; }
.hd__burger:hover span:first-child { transform: translateX(-2px); }
.hd__burger:hover span:last-child { transform: translateX(2px); }

@media (max-width: 960px) {
  :root { --hd-h: 64px; }
  .hd__nav { display: none; }
  .hd__in { grid-template-columns: 1fr auto; }
  .hd__burger { display: block; }
}
@media (max-width: 420px) {
  .hd__name small { display: none; }
  .hd__end .btn--sm { padding: 0 14px; }
}

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 18px var(--gut) 28px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu__close { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.menu__close svg { width: 20px; height: 20px; }
.menu__list { align-self: center; display: grid; gap: 2px; }
.menu__list a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font: 500 clamp(2.2rem, 10vw, 3.4rem)/1.05 var(--f-sans); letter-spacing: -.04em; }
.menu__list small { font: 500 12px var(--f-sans); color: var(--muted); letter-spacing: 0; }
.menu__list a.is-active span { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--green); }
.menu__list li { overflow: clip; }
.menu__foot { display: grid; gap: 18px; justify-items: start; color: var(--muted); font-size: 14px; }
.menu__foot a:not(.btn) { color: var(--ink); }

/* ---------- curtain (loader + page transitions) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 150;
  background: var(--green-deep);
  color: #f1ede1;
  display: grid; place-items: center;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  --mark-bg: #f1ede1;
  --mark-fg: var(--green-deep);
}
.curtain__in { display: grid; justify-items: center; gap: 14px; text-align: center; }
.curtain__mark { width: 40px; height: 40px; }
.curtain__next { font: italic 400 clamp(2.4rem, 6vw, 4.8rem)/1 var(--f-serif); letter-spacing: -.02em; }
.curtain__sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.curtain__sub span { color: var(--gold-2); }
.curtain__bar { width: 160px; height: 2px; background: rgba(241, 237, 225, .18); border-radius: 2px; overflow: hidden; }
.curtain__bar i { display: block; height: 100%; width: 100%; background: var(--gold-2); transform-origin: 0 50%; transform: scaleX(0); transition: transform .4s var(--ease-out); }
.is-loading .curtain, .is-entering .curtain { clip-path: inset(0 0 0 0); pointer-events: auto; }
.is-loading .curtain { animation: curtain-out .9s var(--ease-out) 5s forwards; }
.is-entering .curtain { animation: curtain-out .8s var(--ease-out) 2.2s forwards; }
.is-entering .curtain__bar, .is-entering .curtain__sub { display: none; }
html.is-lifted .curtain { clip-path: inset(0 0 100% 0); pointer-events: none; transition: clip-path .95s cubic-bezier(.76, 0, .24, 1); }
html.is-leaving .curtain { clip-path: inset(0 0 0 0); pointer-events: auto; transition: clip-path .62s cubic-bezier(.76, 0, .24, 1); animation: none; }
html.is-leaving .curtain__bar, html.is-leaving .curtain__sub { display: none; }
@keyframes curtain-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); transition: opacity .2s, transform .3s var(--ease-out); }
.cursor__ring {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1.2px rgba(18,19,16,.35);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, box-shadow .3s, opacity .3s;
}
.cursor__label { font: 600 11.5px/1 var(--f-sans); letter-spacing: .04em; color: #fff; opacity: 0; white-space: nowrap; transition: opacity .2s; text-transform: uppercase; }
.cursor.is-label .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--ink); box-shadow: none; }
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .1s; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label.is-green .cursor__ring { background: var(--green); }
.cursor.is-link .cursor__ring { width: 50px; height: 50px; margin: -25px 0 0 -25px; box-shadow: inset 0 0 0 1.2px rgba(18,19,16,.2); background: rgba(18,19,16,.04); }
.cursor.is-down .cursor__ring { transform: scale(.85); }
.cursor.is-hidden { opacity: 0; }
.cursor.is-grab .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1.2px rgba(18,19,16,.18), 0 8px 20px -10px rgba(0,0,0,.35); }
.cursor.is-grab .cursor__label { color: var(--ink); opacity: 1; }
.cursor.is-grabbing .cursor__ring { transform: scale(.8); }

/* ---------- desk props (photographed objects) ---------- */
.desk { position: relative; }
.prop {
  position: absolute;
  left: var(--l); top: var(--t);
  width: var(--w);
  aspect-ratio: 1 / var(--ar, 1);
  z-index: var(--zi, 2);
  pointer-events: none;
}
.prop__drag {
  position: absolute; inset: 0;
  transform: rotate(var(--r, 0deg));
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.prop--img .prop__drag { pointer-events: none; }
.prop--img .prop__img { pointer-events: auto; }
.prop__img, .prop__sh, .prop__ct, .prop__body, .prop__shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-user-drag: none;
}
.prop__sh { opacity: .78; transform: translate(10px, 14px); will-change: transform; }
.prop__ct { opacity: .9; transform: translate(2px, 3px); }
.prop__shade {
  border-radius: inherit;
  background: rgba(24, 28, 18, .3);
  filter: blur(14px);
  transform: translate(10px, 16px) scale(.97);
  will-change: transform;
}
.prop.is-lifted { z-index: 40 !important; }
.prop.is-grab .prop__img, .prop.is-grab .prop__body { cursor: grab; }
.prop.is-grab.is-lifted .prop__img, .prop.is-grab.is-lifted .prop__body { cursor: grabbing; }
.prop--deco { z-index: 1; }
@media (max-width: 720px) {
  .prop { left: var(--ml, var(--l)); top: var(--mt, var(--t)); width: var(--mw, var(--w)); }
  .prop__drag { transform: rotate(var(--mr, var(--r, 0deg))); }
  .prop.is-dsk { display: none; }
}

/* sticky notes */
.sticky {
  --c: var(--mint);
  aspect-ratio: 1;
  border-radius: 2px;
  font: 600 clamp(15px, 1.55vw, 22px)/1.08 var(--f-hand);
  color: #1d3a35;
}
.sticky .prop__drag { container-type: inline-size; }
.sticky .prop__body {
  background: linear-gradient(160deg, color-mix(in srgb, var(--c), #fff 30%) 0%, var(--c) 42%, color-mix(in srgb, var(--c), #000 6%) 100%);
  padding: 13% 11%;
  display: flex; align-items: flex-start;
  border-radius: 2px 2px 3px 22% / 2px 2px 3px 8%;
  font-size: 13.5cqw;
}
.sticky .prop__body::after { content: ''; position: absolute; right: 0; bottom: 0; width: 34%; height: 18%; background: linear-gradient(135deg, transparent 45%, rgba(0,0,0,.06)); border-radius: 0 0 30% 0; pointer-events: none; }
.sticky .prop__shade { border-radius: 2px; filter: blur(10px); background: rgba(24,28,18,.24); }
.sticky--yellow { --c: var(--sticky); color: #3a3214; }
.sticky--rose { --c: var(--rose); color: #4a1f27; }

/* phone (CSS) */
.phone { aspect-ratio: 1 / 2.05; }
.phone .prop__shade { border-radius: 16%/8%; }
.phone__body {
  position: absolute; inset: 0;
  border-radius: 15.5% / 7.6%;
  background: linear-gradient(140deg, #3c3d3f, #0e0f10 40%, #2a2b2d);
  padding: 4.2%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #151617;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 12% / 5.8%;
  overflow: hidden;
  background: #fff;
  container-type: inline-size;
  isolation: isolate;
}
.phone__island { position: absolute; top: 2.2%; left: 50%; width: 31%; height: 3.3%; margin-left: -15.5%; border-radius: 99px; background: #070707; z-index: 5; }
.phone__glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 32%); border-radius: inherit; }

/* youtube screen inside phone */
.yt { position: absolute; inset: 0; font-family: var(--f-sans); color: #0f0f0f; font-size: 5cqw; }
.yt__status { display: flex; justify-content: space-between; align-items: center; padding: 3.2cqw 7cqw 0; height: 11cqw; font-weight: 600; font-size: 4.1cqw; }
.yt__status i { width: 15cqw; height: 3.4cqw; border-radius: 1cqw; background: linear-gradient(90deg, #0f0f0f 70%, #ccc 70%); }
.yt__bar { display: flex; align-items: center; gap: 2cqw; padding: 2cqw 5cqw 3cqw; }
.yt__bar svg { width: 9cqw; height: 9cqw; }
.yt__bar b { font-size: 4.6cqw; letter-spacing: -.02em; }
.yt__video { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.yt__video img { width: 100%; height: 100%; object-fit: cover; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 15cqw; height: 15cqw; margin: -7.5cqw 0 0 -7.5cqw; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; transition: transform .4s var(--ease-out), background-color .3s; }
.yt__play svg { width: 7cqw; height: 7cqw; margin-left: 1cqw; }
.yt__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 1.1cqw; background: rgba(255,255,255,.35); }
.yt__prog i { display: block; height: 100%; width: 34%; background: #f00; }
.yt__info { padding: 3.5cqw 5cqw 0; }
.yt__title { font-weight: 600; font-size: 4.6cqw; line-height: 1.22; letter-spacing: -.01em; }
.yt__meta { color: #606060; font-size: 3.6cqw; margin-top: 1.4cqw; }
.yt__chan { display: flex; align-items: center; gap: 2.6cqw; padding: 3.5cqw 5cqw; }
.yt__chan img { width: 9cqw; height: 9cqw; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #e9ebe5; }
.yt__chan b { font-size: 3.9cqw; display: block; line-height: 1.15; }
.yt__chan small { color: #606060; font-size: 3.3cqw; }
.yt__sub { margin-left: auto; background: #0f0f0f; color: #fff; border-radius: 99px; padding: 1.8cqw 3.6cqw; font-size: 3.4cqw; font-weight: 600; }
.yt__next { padding: 0 5cqw; display: grid; gap: 3cqw; }
.yt__next div { display: grid; grid-template-columns: 40% 1fr; gap: 3cqw; font-size: 3.4cqw; line-height: 1.25; font-weight: 500; }
.yt__next img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 1.6cqw; }
.yt__next small { display: block; color: #606060; font-weight: 400; margin-top: .8cqw; }

/* notes card (CSS page) */
.ncard { aspect-ratio: 1 / 1.36; }
.ncard .prop__shade { border-radius: 4px; }
.ncard__page, .ncard-page {
  position: absolute; inset: 0;
  background: #fff;
  border-radius: 1.6%/1.2%;
  padding: 8% 8.5% 6%;
  container-type: inline-size;
  font-family: var(--f-sans);
  color: #1b1c19;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
  overflow: hidden;
}
.ncard__stack { position: absolute; inset: 0; }
.ncard__stack::before, .ncard__stack::after {
  content: ''; position: absolute; inset: 0; border-radius: 1.6%/1.2%; background: #fbfbf9;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 0 rgba(0,0,0,.06);
}
.ncard__stack::before { transform: translate(1.1%, 1.2%); }
.ncard__stack::after { transform: translate(2.2%, 2.4%); background: #f6f6f3; }
.ncard-page .np-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 3.2cqw; color: #8b8d86; letter-spacing: .02em; }
.ncard-page .np-ribbon { width: 5.5cqw; height: 8cqw; background: #121310; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); margin-top: -8%; }
.ncard-page h4 { font: 700 9.4cqw/1.02 var(--f-serif); letter-spacing: -.02em; margin: 4.4cqw 0 2.2cqw; }
.ncard-page .np-sub { font-size: 3.6cqw; line-height: 1.32; color: #4b4d47; margin-bottom: 3.6cqw; }
.ncard-page dl { margin: 0; display: grid; gap: 2.3cqw; }
.ncard-page dt { font-weight: 700; font-size: 3.25cqw; }
.ncard-page dd { margin: .4cqw 0 0; font-size: 3.1cqw; line-height: 1.34; color: #4b4d47; }
.ncard-page dd ul { padding-left: 3.6cqw; list-style: disc; }
.ncard-page .np-tip { background: #f6f2df; border-radius: 1.4cqw; padding: 1.8cqw 2.6cqw; }
.ncard-page .np-foot { position: absolute; left: 8.5%; right: 8.5%; bottom: 4.5%; display: flex; flex-wrap: wrap; gap: .4cqw 2.4cqw; font-size: 2.7cqw; color: #8b8d86; border-top: 1px solid #ecece7; padding-top: 2.2cqw; }
.ncard-page .np-foot b { color: #121310; font-weight: 600; }
.ncard-page mark { background: linear-gradient(transparent 15%, var(--marker) 15%, var(--marker) 85%, transparent 85%); color: inherit; }

/* the Road to A* guide (dark card with thickness) */
.guide { aspect-ratio: 1 / 1.4; perspective: 1400px; }
.guide .prop__shade { border-radius: 4%; }
.guide__book { position: absolute; inset: 0; transform-style: preserve-3d; }
.guide__pages {
  position: absolute; inset: 0;
  border-radius: 3.4% / 2.4%;
  background: repeating-linear-gradient(0deg, #f3f1ea 0 1px, #e3e0d6 1px 2px);
  transform: translate(1.6%, 1.4%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.guide__inside {
  position: absolute; inset: 0;
  border-radius: 3.4% / 2.4%;
  background: #fbfaf5;
  padding: 11% 10%;
  container-type: inline-size;
  color: #1b1c19;
}
.guide__inside h5 { font: italic 500 7.6cqw/1.05 var(--f-serif); margin-bottom: 5cqw; }
.guide__inside ol { counter-reset: g; display: grid; gap: 2.8cqw; }
.guide__inside li { counter-increment: g; display: flex; gap: 3cqw; font-size: 4.2cqw; line-height: 1.2; border-bottom: 1px dashed #d7d4c9; padding-bottom: 2.4cqw; }
.guide__inside li::before { content: counter(g, decimal-leading-zero); font: 600 3.4cqw/1.5 var(--f-sans); color: var(--green); }
.guide__cover {
  position: absolute; inset: 0;
  border-radius: 3.4% / 2.4%;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.09), transparent 55%),
    linear-gradient(160deg, #123d2a 0%, #0b2a1d 55%, #071b12 100%);
  color: #efe6c9;
  container-type: inline-size;
  transform-origin: 0 50%;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 3cqw 0 4cqw -3cqw rgba(0,0,0,.6);
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center;
  padding: 13% 10% 11%;
  transition: transform 1s var(--ease-out);
}
.guide.is-open .guide__cover { transform: rotateY(-155deg); }
.guide__cover::before { content: ''; position: absolute; inset: 4.5%; border: 1px solid rgba(231, 197, 106, .32); border-radius: 2.4% / 1.7%; pointer-events: none; }
.guide__eyebrow { font: 500 3.2cqw/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(239,230,201,.62); }
.guide__title { align-self: center; font: italic 500 14.5cqw/.92 var(--f-serif); letter-spacing: -.03em;
  background: linear-gradient(170deg, #fff4cf 10%, #e7c56a 45%, #a9822f 70%, #f4dc95 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide__title b { display: block; font-style: normal; font-weight: 600; font-size: .5em; letter-spacing: .02em; margin-top: 2.4cqw; }
.guide__moon { width: 16cqw; height: 15cqw; margin: 0 auto 5cqw; --mark-bg: transparent; --mark-fg: #e7c56a; }
.guide__foot { font: italic 400 4.6cqw/1.25 var(--f-serif); color: rgba(239,230,201,.85); }
.guide__foot small { display: block; margin-top: 2cqw; font: 500 2.7cqw var(--f-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-style: normal; }

/* 3D book (home + road) */
.book { --T: 34px; --W: 250px; --H: 350px; position: relative; width: var(--W); height: var(--H); transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(8deg); --c1: #134330; --c2: #0b2a1d; --c3: #061810; }
.book[data-ed="geo"] { --c1: #154a5c; --c2: #0b2f3d; --c3: #061c26; }
.book > * { position: absolute; }
.book__front {
  inset: 0; transform: translateZ(calc(var(--T) / 2));
  border-radius: 3px 10px 10px 3px;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.1), transparent 55%), linear-gradient(160deg, var(--c1), var(--c2) 55%, var(--c3));
  color: #efe6c9; container-type: inline-size;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; padding: 13% 10% 11%;
  box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background .6s;
}
.book__front::before { content: ''; position: absolute; inset: 4.5%; border: 1px solid rgba(231,197,106,.32); border-radius: 2px 8px 8px 2px; pointer-events: none; }
.book__title { align-self: center; font: italic 500 15cqw/.92 var(--f-serif); letter-spacing: -.03em; background: linear-gradient(170deg, #fff4cf 10%, #e7c56a 45%, #a9822f 70%, #f4dc95 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.book__title b { display: block; font-style: normal; font-weight: 600; font-size: .4em; letter-spacing: .02em; margin-top: 3cqw; }
.book__spine { left: calc(var(--T) / -2); top: 0; width: var(--T); height: 100%; transform: rotateY(-90deg); background: linear-gradient(90deg, var(--c3), var(--c1) 40%, var(--c2)); display: grid; place-items: center; border-radius: 3px; }
.book__spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: italic 500 13px var(--f-serif); color: #e7c56a; letter-spacing: .04em; white-space: nowrap; }
.book__spine em { font-style: normal; font-family: var(--f-sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.book__pages { left: calc(var(--W) - var(--T) / 2 - 3px); top: 2%; width: var(--T); height: 96%; transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f5f2e8 0 1px, #e2ded1 1px 2px); }
.book__back { inset: 0; transform: translateZ(calc(var(--T) / -2)) rotateY(180deg); background: var(--c3); border-radius: 10px 3px 3px 10px; }

/* ---------- generic cards ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-card); }
.panel { background: rgba(18,19,16,.035); border-radius: var(--r-lg); }

/* polaroid */
.polaroid { background: #fff; padding: 4.5% 4.5% 16%; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 22px 40px -18px rgba(0,0,0,.4); position: relative; }
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font: 600 clamp(16px, 1.6vw, 22px)/1 var(--f-hand); color: #2a2b28; }
.tape { position: absolute; width: 38%; height: 9%; left: 31%; top: -4%; background: rgba(240, 233, 205, .78); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-4deg); }

/* stars */
.stars { display: inline-flex; gap: 2px; color: #f2b01e; }
.stars svg { width: 14px; height: 14px; }

/* avatar initials */
.ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--f-sans); color: #fff; background: var(--c, var(--green)); flex: none; }

/* faq / accordion */
.acc { display: grid; gap: 10px; max-width: 640px; margin-inline: auto; }
.acc__item { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .3s; }
.acc__item:hover { box-shadow: 0 0 0 1px var(--line-2); }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; font-weight: 500; font-size: 15.5px; }
.acc__q svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease-out); }
.acc__item.is-open .acc__q svg { transform: rotate(135deg); }
.acc__a { height: 0; overflow: hidden; }
.acc__a > div { padding: 0 20px 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
html:not(.js) .acc__a { height: auto; }

/* forms */
.field { display: grid; gap: 7px; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px;
  border: 0; border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow .25s;
  font-size: 15px;
}
.textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--green); }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23121310' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 40px; }
.field.is-bad .input, .field.is-bad .select { box-shadow: 0 0 0 2px var(--red); }
.field__err { font-size: 12.5px; color: var(--red); min-height: 0; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 160;
  transform: translate(-50%, calc(100% + 40px));
  background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: 99px; font-size: 14.5px;
  box-shadow: 0 16px 32px -14px rgba(0,0,0,.5);
  transition: transform .6s var(--ease-out), visibility 0s .6s;
  max-width: calc(100vw - 32px);
  visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out); }

/* video modal */
.vmodal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; overflow: hidden; }
.vmodal::backdrop { background: rgba(10, 14, 11, .82); opacity: 0; transition: opacity .4s; }
.vmodal[open]::backdrop { opacity: 1; }
.vmodal__box { position: absolute; left: 50%; top: 50%; width: min(1080px, 92vw); transform: translate(-50%, -46%) scale(.94); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; }
.vmodal.is-in .vmodal__box { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.vmodal.is-in::backdrop { opacity: 1; }
.vmodal__frame { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-top: 14px; color: #f1efe6; font-size: 14.5px; }
.vmodal__title { font-weight: 500; }
.vmodal__yt { display: inline-flex; align-items: center; gap: 6px; opacity: .8; white-space: nowrap; }
.vmodal__yt:hover { opacity: 1; }
.vmodal__yt svg { width: 15px; height: 15px; }
.vmodal__close { position: absolute; right: -6px; top: -52px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background-color .3s, transform .4s var(--ease-out); }
.vmodal__close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }
.vmodal__close svg { width: 20px; height: 20px; }

/* ---------- footer ---------- */
.ft { position: relative; padding-top: clamp(24px, 3vw, 40px); }
.ft__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.ft__left { display: grid; gap: 18px; justify-items: start; }
.ft__mark { width: 28px; height: 28px; }
.ft__line { font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.ft__quote { max-width: 430px; text-align: right; display: grid; gap: 14px; justify-items: end; }
.ft__quote blockquote { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.ft__quote figcaption { display: flex; align-items: center; gap: 12px; }
.ft__quote figcaption span { display: grid; font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.ft__quote b { color: var(--ink); font-weight: 600; }
.ft__quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e3e6dd; }
.ft__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.ft__col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.ft__col a { color: var(--ink-2); justify-self: start; transition: color .25s; }
.ft__col a:hover { color: var(--green); }
.ft__h { font: 500 11px/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ft__muted { color: var(--muted); }
.ft__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ft__bottom a { display: inline-flex; align-items: center; gap: 6px; }
.ft__bottom a svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.ft__bottom a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .ft__cta { flex-direction: column; align-items: flex-start; }
  .ft__quote { text-align: left; justify-items: start; }
  .ft__quote figcaption { flex-direction: row-reverse; }
  .ft__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .ft__bottom { flex-direction: column; } }

/* ---------- reveal start states (JS sets them; no JS = everything visible) ---------- */
.rv [data-reveal]:not(.is-in) { opacity: 0; }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

/* marquee */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; gap: var(--gap, 48px); padding-right: var(--gap, 48px); animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.reduced .marquee__track { animation: none; }

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