/* Shieldhill Castle Gazette: the newspaper front page.
   Ported from Shieldhill-Gazette-Handover/reference/gazette-reference.html (the approved design); every size,
   gap and colour below comes from that file. Sections, top to bottom, follow the order of index.html. */

@font-face{font-family:"EB Garamond Shieldhill";src:url(../fonts/EBGaramond-Shieldhill.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"Chomsky";src:url(../fonts/Chomsky.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Switzer";src:url(../fonts/Switzer-Medium.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --page:#FAF8F3; --ink:#111111; --ink-2:#333333; --hair:#DADADA; --row:#C9D3DC; --muted:#555555;
  --on-dark:#FFFFFF; --on-dark-2:#E4E4E4; --ph:#2A2A2A; --ph-2:#2E2E2E; --ph-text:#BDBDBD;
  --serif:"EB Garamond Shieldhill","EB Garamond",Georgia,serif;
  --sans:Switzer,system-ui,sans-serif;
  --gutter:clamp(16px, 3vw, 40px);
  color-scheme:light;
}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--serif)}
a{color:var(--ink);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
img{max-width:100%}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.dark :focus-visible,.gift :focus-visible{outline-color:var(--on-dark)}
.sc{font-family:var(--serif);font-variant:small-caps}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:16px;top:-80px;z-index:60;background:var(--ink);color:var(--on-dark);padding:10px 16px;font-family:var(--sans);font-size:14px}
.skip:focus{top:12px}

.page{min-height:100vh}
.wrap{max-width:1360px;margin:0 auto;padding:0 var(--gutter);box-sizing:border-box}

/* Buttons (Switzer). Sizes per the reference: 13 in the masthead, 15 in boxes, 16 elsewhere. */
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:52px;padding:12px 24px;box-sizing:border-box;
  background:var(--ink);color:var(--on-dark);font-family:var(--sans);font-weight:600;font-size:16px;line-height:1.3}
.btn--13{font-size:13px}
.btn--15{font-size:15px}
.btn--block{display:flex;width:100%}
.btn--light{background:var(--on-dark);color:var(--ink)}

/* 1 Masthead */
.masthead{display:flex;flex-wrap:wrap;align-items:center;gap:24px;padding:28px 0 20px}
.mh-creators{flex:1 1 200px;max-width:230px;border:1px solid var(--ink);padding:10px 12px;font-size:14px;letter-spacing:.06em;line-height:1.45;text-align:center}
.mh-centre{flex:999 1 420px;display:flex;justify-content:center}
.wordmark{margin:0;font-family:"Chomsky",serif;font-weight:400;line-height:1;color:var(--ink);white-space:nowrap}
.mh-centre .wordmark{font-size:clamp(34px, 8.4vw, 116px);text-align:center}
.mh-cta{flex:1 1 200px;max-width:240px;display:flex;justify-content:flex-end}
/* Tablets and up (Ross, 21 Nov 2026: on iPad the button dropped below the box): keep the box, wordmark and button on
   one line, and size the wordmark to the space between them (it is about 6.8 times as wide as its font size). */
@media (min-width: 701px){
  .masthead{flex-wrap:nowrap}
  .mh-creators{flex:0 1 230px;min-width:150px}
  .mh-centre{flex:1 1 0;min-width:0;container-type:inline-size}
  .mh-centre .wordmark{font-size:min(116px, 14cqi)}
  .mh-cta{flex:0 1 230px;max-width:none}
}
@media (min-width: 701px) and (max-width: 1100px){
  .masthead{gap:16px}
  .mh-creators{flex:0 0 160px;min-width:0;font-size:12px;padding:8px 8px}
  .mh-cta{flex:0 0 160px}
}
.datebar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;border-top:3px double var(--ink);border-bottom:1px solid var(--ink);
  padding:8px 0;font-size:15px;letter-spacing:.08em}

/* 2 Front page */
.front{display:flex;flex-wrap:wrap;gap:0;padding:0 0 40px}
.story{flex:999 1 600px;min-width:0;padding:28px 32px 0 0}
.kicker{font-size:16px;letter-spacing:.1em;margin-bottom:12px}
.headline{margin:0 0 16px;font-weight:400;font-size:clamp(42px, 5.4vw, 74px);line-height:1.02;letter-spacing:-.01em}
/* "Recipients Remain a Mystery." arrives scrambled and its letters fly into place (js/animation/headline-shuffle.js).
   The real sentence holds the line (its words hidden while the letters move; its full stop never moves); the
   gobbledygook and the moving letters are laid over it. */
.hs-on{display:block;white-space:nowrap;position:relative;align-self:stretch}   /* (stretch: full column width inside the closing's centred flex column) */
.hs-words{display:inline-block}   /* a box, so the script can watch its width (font arriving, resizes) */
.hs-moving .hs-words{color:transparent}
.hs-jumble,.hs-l{position:absolute;left:0;top:0;white-space:pre}
.hs-l{will-change:transform}
/* The whole headline (js/animation/headline-shuffle.js, headline()): the real text stays put but see-through while
   the letters and full stops fly. "Recipients Remain a Mystery." starts a line of its own. */
.headline{position:relative}
#headline-mystery{display:block}
.hs-multi.hs-moving{-webkit-text-fill-color:transparent}
.hs-multi .hs-l{-webkit-text-fill-color:currentColor}
.hs-multi .hs-l{line-height:normal}
.standfirst{margin:0 0 24px;font-size:clamp(20px, 2vw, 24px);line-height:1.4;color:var(--ink-2);max-width:46ch}
.photo{margin:0}
.photo picture img,.photo .photo__video{display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;border:1px solid var(--ink);box-sizing:border-box;background:var(--page)}
.photo .photo__video[hidden]{display:none}
/* castle-lights.js: the video sits exactly over the photo; the script makes it visible (.is-on) with its poster, because iPhone Safari will not autoplay an invisible video */
.photo .photo__video{position:absolute;top:0;left:0;height:100%;opacity:0;pointer-events:none;z-index:1}
.photo .photo__video.is-on{opacity:1}   /* plain 1px border, no shadow */
.columns{columns:2 280px;column-gap:32px;column-rule:1px solid var(--hair);padding-top:22px;font-size:17px;line-height:1.62}
.columns p{margin:0 0 1em;text-align:justify;hyphens:auto;-webkit-hyphens:auto}   /* justified like a newspaper column; hyphenation keeps the word gaps even */
.columns p:last-child{margin:0}
.dateline{font-family:var(--sans);font-size:12.5px;font-weight:600;letter-spacing:.06em}
.story-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;padding-top:20px}
.story-cta__note{display:flex;flex-direction:column;gap:4px}
.deadline{font-style:italic;font-size:17px;color:var(--ink)}
.text-link{font-family:var(--sans);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--ink)}

.rail{flex:1 1 320px;min-width:0;border-left:1px solid var(--ink);padding-left:28px;padding-top:28px;display:flex;flex-direction:column;gap:26px}
.notice{border:2px solid var(--ink);padding:7px;background:var(--page);color:var(--ink)}
.notice__in{border:1px solid var(--ink);padding:24px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.mark{display:block;height:auto}
.notice .mark{width:56px}
.notice__label{font-size:14px;letter-spacing:.14em}
.notice__value{font-size:27px;line-height:1.15}
.notice__for{font-style:italic;font-size:.75em;color:var(--ink-2)}
.notice__deadline{font-style:italic;font-size:15px}
.promise{margin:0;font-style:italic;line-height:1.45;color:var(--ink-2)}
.notice .promise{border-top:1px solid var(--hair);padding-top:12px;font-size:15px}
.team{border-top:2px solid var(--ink);padding-top:14px}
.team h2{margin:0 0 12px;font-weight:400;font-size:24px;line-height:1.15}
.team__body{font-size:15px;line-height:1.6}
.team__body p{margin:0 0 12px;text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.team__body p:last-of-type{margin-bottom:14px}
.signature{font-style:italic;font-size:24px}

/* Photo placeholders (dark boxes with the label bottom left) */
.ph-label{font-family:var(--sans);font-size:12px;color:var(--ph-text);letter-spacing:.04em}
.ph-tower{flex:1 1 auto;min-height:220px;border-top:2px solid var(--ink);padding-top:18px;display:flex;flex-direction:column}
/* The rail's vertical rule turns the corner here: the line above the photo runs left to meet it, at the rule's 1px weight,
   and the photo's page-coloured background covers the rule from this line down. */
.rail .ph-tower{border-top-width:1px;margin-left:-29px;padding-left:29px;background:var(--page);position:relative}
.ph-tower__box{flex:1;background:var(--ph);display:flex;align-items:flex-end;padding:14px}
/* The dragon (js/animation/dragon-video.js). Above the rule its white is see-through and below it its black is, so the
   page shows through everywhere except the grey panel and the fire. It sits over the east tower box, behind the story text. The front section clips it at its
   sides, so on narrow screens the fire is cut off at the side of the page instead of
   widening it. */
.front{position:relative;overflow-x:clip}
.dragon-video{position:absolute;left:0;top:0;width:0;height:auto;max-width:none;display:block;mix-blend-mode:multiply;
  pointer-events:none;z-index:2;visibility:hidden;background:transparent}
.dragon-video--glow{mix-blend-mode:screen}   /* below the rule: its black is see-through */
.has-dragon .dragon-video{visibility:visible}
.has-dragon .ph-tower__box{background:transparent}
.has-dragon .ph-tower .ph-label{visibility:hidden}
.columns,.story-cta{position:relative;z-index:3}


/* 3 Every story has a first chapter */
.dark{background:var(--ink);color:var(--on-dark)}
.chapter{max-width:1360px;margin:0 auto;padding:56px var(--gutter);box-sizing:border-box;display:flex;flex-wrap:wrap;gap:44px;align-items:center}
.chapter__media{flex:1 1 440px;min-width:0}
.ph-dusk{aspect-ratio:4 / 3;background:var(--ph-2);display:flex;align-items:flex-end;padding:14px;box-sizing:border-box}
.chapter__photo img,.chapter__video{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:4 / 3;object-fit:cover;background:var(--ink)}   /* same 4:3 box as the placeholder */
/* Headmaster photo: the image carries a soft border outside the original frame that fades to the band's black.
   It is enlarged past the column by exactly that border, so the original frame fills the column and the fade
   spills into the space around it (image 2765 x 2074: frame 2325 x 1744, border 280 left, 160 right, 165 top/bottom). */
.chapter__photo{display:block}
.chapter__photo img{width:118.925%;max-width:none;margin:-7.097% 0 -7.097% -12.043%}
.chapter-band{overflow-x:clip}
.chapter__text{flex:1 1 400px;min-width:0}
.chapter h2{margin:0 0 18px;font-weight:400;font-size:clamp(34px, 4vw, 52px);line-height:1.05}
.chapter p{margin:0 0 14px;font-size:19px;line-height:1.6;color:var(--on-dark-2)}
.chapter p:last-of-type{margin-bottom:24px}
.chapter__rule{width:64px;border-top:1px solid var(--on-dark)}
.chapter__cta{margin-bottom:28px}
.m-only{display:none}   /* text used only by the phone design (css/gazette-mobile.css shows it, and hides .d-only) */

/* 4 The Founder's Invitation */
.invitation{padding:56px 0;border-bottom:1px solid var(--ink)}
.card{max-width:980px;margin:0 auto;background:#FFFFFF;color:var(--ink);border:2px solid var(--ink);padding:calc(clamp(18px, 3vw, 48px) + 8px)}
/* Same double rule as the Official Notice (.notice / .notice__in): a 2px outer border, a 7px gap, then a 1px inner line.
   The inner line takes the card's border colour, so it turns gold with the outer one when the card lights up. */
.card::before{content:"";position:absolute;inset:7px;border:1px solid;border-color:inherit;pointer-events:none;transition:inherit}
/* The castle lights when the headmaster's wand touches it, then glows like a lamp (js/animation/invitation-light.js
   drives --lamp, 0 = weakest .. 1 = strongest, and --lamp-on, the fade-in). Inside: a pixel-aligned lit copy of the
   castle mark (wine red, #491620, inside its outline only; it was yellow-gold until 18 Nov 2026) whose strength and brightness breathe with --lamp. Around
   it: a thin wine-red halo, about 1 mm, that follows the castle's own outline (drop-shadows of the lit copy) and
   brightens and fades with the same --lamp. */
.card{position:relative}
.card{--lamp:0;--lamp-on:0}
/* The glow along the card's inner line (js/animation/invitation-light.js runs it from the top centre to the bottom
   centre): the castle's wine red (#491620), getting stronger and weaker with --lamp, with the black line redrawn on top so it
   still shows. */
.card__trace{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible;display:block}
.card__trace-glow{fill:none;stroke:#491620;stroke-linejoin:miter;stroke-dashoffset:9999;opacity:0;
  stroke-width:calc(3px + 3.5px * var(--lamp));filter:blur(calc(.8px + 1px * var(--lamp)))}
.castle-lit .card__trace-glow{opacity:calc(.5 + .5 * var(--lamp))}
.card__trace-ink{fill:none;stroke:var(--ink);stroke-width:1px;opacity:0}
.castle-lit .card__trace-ink{opacity:1}
.card__head picture::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:url(../images/shieldhill-tower-mark-lit-wine-168.png?v=1) 0 0 / 100% auto no-repeat;
  opacity:calc(var(--lamp-on) * (.72 + .28 * var(--lamp)));
  filter:brightness(calc(1 + .18 * var(--lamp)))
    drop-shadow(0 0 calc(.5px + .7px * var(--lamp)) rgba(73, 22, 32, calc(.55 + .45 * var(--lamp))))
    drop-shadow(0 0 calc(1.6px + 2.2px * var(--lamp)) rgba(73, 22, 32, calc(.35 + .55 * var(--lamp))))}   /* ~1 mm (3.8px) at its strongest */
.card__head{text-align:center;border-bottom:3px double var(--ink);padding-bottom:16px}
/* The castle mark sits inside the card's two top lines (its top 33px below the card's outer edge: border 2px,
   inner line at 7px, then a 25px gap). js/animation/card-under-wand.js moves the card so the headmaster's wand tip
   meets the top left of its roof, and nudges it sideways (--mark-dx) for that. */
.card__head picture{display:block;width:max-content;position:relative;
  margin:calc(33px - 2px - (clamp(18px, 3vw, 48px) + 8px)) auto 12px;transform:translateX(var(--mark-dx, 0px))}
.card__head .mark{width:52px;margin:0}
.card__head h2{margin:0 0 6px;font-weight:400;font-size:clamp(36px, 4.6vw, 56px);line-height:1.02}
.card__sub{font-style:italic;font-size:21px;color:var(--ink-2);max-width:30em;margin:0 auto;text-wrap:balance}
.card__lede{margin-top:12px;font-size:15px;letter-spacing:.08em;font-variant:small-caps}
.price{width:100%;border-collapse:collapse}
.price thead th{padding:12px 0 6px;font-family:var(--sans);font-size:11px;letter-spacing:.1em;text-transform:uppercase;border-bottom:2px solid var(--ink);text-align:left}
.price thead th.worth{text-align:right;padding-left:14px;border-left:1px solid var(--ink)}
.price .group{text-align:left;padding:22px 0 6px;font-family:var(--serif);font-variant:small-caps;font-weight:400;font-size:19px;letter-spacing:.08em;border-bottom:1px solid var(--ink)}
.price .item{border-bottom:1px solid var(--row)}
.price .item td{padding:12px 22px 12px 0;vertical-align:top;font-size:16.5px;line-height:1.55}
.price .item td.worth{padding:12px 0 12px 18px;text-align:right;white-space:nowrap;border-left:1px solid var(--ink);font-style:italic;font-size:23px;line-height:normal}
/* The party picker (js/founders-voucher.js), as Ross's mock-up (19 Nov 2026): one black bar holding the "Number of
   people" label, the Adults and Children steppers (white on black) and the "Find my voucher" pill. */
.fv{position:relative;margin:22px 0 0;align-self:stretch;text-align:left}
.card__foot .fv{margin-top:4px}
.card__foot .fv-price{padding-top:14px}
.fv__bar{display:flex;align-items:center;gap:10px 22px;min-height:62px;padding:7px 7px 7px 26px;box-sizing:border-box;
  background:var(--ink);color:var(--on-dark);border-radius:999px}
.fv__lbl{flex:1 1 auto;min-width:0;font-family:var(--sans);font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.fv__find{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;background:var(--on-dark);color:var(--ink);
  font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.fv__find:hover{text-decoration:none;background:var(--on-dark-2)}
.fv__bar :focus-visible{outline:2px solid var(--on-dark);outline-offset:3px}
.fv .party__row{flex:none;display:flex;align-items:center;gap:14px}
.fv .party__who{display:flex;flex-direction:column;min-width:0}
.fv .party__label{font-size:18px;line-height:1.2}
.fv .party__age{font-family:var(--sans);font-size:12px;color:var(--on-dark-2)}
.fv .stepper{display:flex;align-items:center;gap:6px;flex:none}
.fv .stepper__btn{width:34px;height:34px;border:1px solid var(--on-dark);border-radius:50%;background:transparent;color:var(--on-dark);
  font-family:var(--sans);font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.fv .stepper__btn:disabled{opacity:.6;cursor:default}
.fv .stepper__n{min-width:2ch;text-align:center;font-size:20px;font-variant-numeric:tabular-nums}
/* Narrower screens: the label gets a line of its own and the bar becomes a rounded box (phones: css/gazette-mobile.css) */
@media (max-width: 1100px){
  .fv__bar{flex-wrap:wrap;border-radius:28px;padding:12px 10px 10px 22px;gap:8px 22px}
  .fv__lbl{flex:1 1 100%;padding-top:2px}
  .fv__find{margin-left:auto}
}
/* The price, as on the booking page's card, with the struck-out "was" price (three times the price) before it */
.fv-price{text-align:center;padding:26px 0 8px;display:flex;flex-direction:column;align-items:center;gap:10px}
.fv-price__line{line-height:1}
.fv-price__was{font-size:clamp(28px, 3vw, 36px);color:var(--muted);text-decoration-thickness:2px;margin-right:6px}
.fv-price__amount{font-size:clamp(58px, 6vw, 76px)}
.fv-price__unit{font-style:italic;font-size:24px;color:var(--ink-2)}
.fv-price__small{font-size:15px;letter-spacing:.08em;color:var(--ink-2)}
.fv-price__tag{margin:0;font-style:italic;font-size:20px;line-height:1.4;max-width:30em;text-wrap:balance}
.price--list .item td{padding-right:0}
.card__foot{border-top:3px double var(--ink);margin-top:6px;padding-top:20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.card__total{font-size:clamp(26px, 3vw, 34px);line-height:1.15}
.card__foot .deadline{font-size:16px}
.card__foot .promise{font-size:16px}

/* 5 What our guests say */
.reviews{padding:34px 0 18px}
.reviews h2{margin:0 0 20px;font-weight:400;font-size:22px;letter-spacing:.06em;text-align:center}
.reviews h2:has(+ .reviews__sub){margin-bottom:4px}
.reviews__sub{margin:0 0 20px;text-align:center;font-style:italic;font-size:16px;color:var(--ink-2)}
.reviews__grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 280px), 1fr));gap:28px}
.review{margin:0;border-top:1px solid var(--ink);padding-top:14px}
.review blockquote{margin:0 0 10px;font-style:italic;font-size:21px;line-height:1.3}
.review figcaption{font-family:var(--sans);font-size:12.5px;color:var(--muted)}
.press{padding:14px 0 0}
.press__ph{padding:16px;border:1px dashed #9A9A9A;text-align:center;font-family:var(--sans);font-size:12px;color:var(--muted)}

/* 6 Three boxes */
.boxes{display:flex;flex-wrap:wrap;gap:28px;padding:24px 0 44px;border-bottom:1px solid var(--ink)}
.box{min-width:0;border:2px solid var(--ink);padding:6px}
.box--join{flex:1 1 360px}
.box--family{flex:1 1 300px}
.box__in{border:1px solid var(--ink);padding:22px 20px;height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:14px}
.box--family .box__in{gap:12px}
.box h2{margin:0;font-weight:400;font-size:27px;line-height:1.1;text-align:center}
.box h3{margin:8px 0 0;font-weight:400;font-size:23px;line-height:normal;text-align:center}
.box--family h2{line-height:normal}
.mini{width:100%;border-collapse:collapse;font-size:15px}
.mini--join{line-height:1.4}
.join__wait{margin:0;text-align:center;font-style:italic;font-size:17px}
.mini th{text-align:left;padding:6px 8px 6px 0;border-bottom:1px solid var(--ink);font-family:var(--sans);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.mini td{padding:9px 8px 9px 0;border-bottom:1px solid var(--hair);vertical-align:top;text-align:left}
.mini tr:last-child td{border-bottom:0}
.mini .num{text-align:right;font-weight:600}
.mini th.num{font-weight:600}
.box .promise{color:var(--ink);font-size:17px;text-align:center}
.box__note{margin:0;font-size:14px;text-align:center;color:var(--ink-2)}
.box__closing{margin:0;font-style:italic;font-size:16px;text-align:center}
.gift{flex:1 1 280px;min-width:0;background:var(--ink);color:var(--on-dark);padding:6px}
.gift__in{border:1px solid var(--on-dark);padding:30px 22px;height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:14px;text-align:center;justify-content:center;align-items:center}
.gift h2{margin:0;font-weight:400;font-size:31px;line-height:1.1}
.gift p{margin:0;font-size:16px;line-height:1.55;color:var(--on-dark-2)}
.gift .btn{min-height:48px;padding:0 22px;font-size:15px;line-height:normal}

/* 7 FAQ (real <details>; the + turns to × when open) */
.faq{padding:44px 0 52px}
.faq h2{margin:0 0 18px;font-weight:400;font-size:30px;letter-spacing:.06em;text-align:center}
.faq__list{columns:2 420px;column-gap:40px;border-top:2px solid var(--ink)}
.faq details{break-inside:avoid;border-bottom:1px solid var(--hair)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px;font-size:19px}
.faq summary::-webkit-details-marker{display:none}
.faq .sign{font-family:var(--sans);font-size:20px;transition:transform .2s}
.faq details[open] .sign{transform:rotate(45deg)}
.faq details p{margin:0 0 16px;font-size:16px;line-height:1.55}
@media (prefers-reduced-motion: reduce){.faq .sign{transition:none}}

/* 8 Do you still believe */
.closing{max-width:900px;margin:0 auto;padding:76px clamp(16px, 4vw, 48px);box-sizing:border-box;text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px}
.closing h2{margin:0;font-weight:400;font-size:clamp(40px, 6vw, 80px);line-height:1}
.closing p{margin:0;font-style:italic;font-size:clamp(19px, 2vw, 23px);line-height:1.45;color:var(--on-dark-2)}
.closing__cta{margin-top:8px}

/* 9 Footer */
.footer{border-top:1px solid var(--ink)}
.footer__main{padding-top:48px;padding-bottom:36px;display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;align-items:flex-start}
.footer__brand{flex:1 1 300px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.footer__brand .mark{width:52px}
.footer__brand .wordmark{font-size:34px;margin-top:8px}
.footer__brand p{margin:0;font-size:14.5px;line-height:1.5;max-width:42ch}
.footer__email{font-size:16px !important}
.footer__email a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.signup__privacy{margin:14px 0 0;font-size:16px;letter-spacing:.04em}
.signup__privacy a{color:inherit;text-decoration:none}
.signup__privacy a:hover{text-decoration:underline}
.footer__nav{flex:1 1 200px;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:10px 24px;font-size:16px;letter-spacing:.04em}
.signup{flex:1 1 320px;display:flex;flex-direction:column;gap:10px}
.signup__title{font-size:24px;line-height:1.15}
.signup p{margin:0;font-size:15px;line-height:1.5;color:var(--ink-2)}
.signup label{font-family:var(--sans);font-size:12px;font-weight:600}
.signup__row{display:flex;flex-wrap:wrap;gap:8px}
.signup input{flex:1 1 200px;min-height:46px;padding:0 12px;border:1px solid var(--ink);border-radius:0;background:#FFFFFF;font-family:var(--sans);font-size:14px;color:var(--ink);box-sizing:border-box}
.signup button{min-height:46px;padding:0 18px;background:var(--ink);color:var(--on-dark);border:0;border-radius:0;font-family:var(--sans);font-weight:600;font-size:14px;cursor:pointer}
.signup__status{margin:0;font-family:var(--sans);font-size:13px;color:var(--ink-2)}
.signup__status:empty{display:none}
.signup .signup__consent{font-family:var(--sans);font-size:12px;line-height:1.45}
.signup__consent a{color:inherit;text-decoration:underline}
.signup__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.signup button:disabled{opacity:.6;cursor:wait}
.footer__legal{padding-top:16px;padding-bottom:26px;border-top:1px solid var(--hair);font-family:var(--sans);font-size:12px;color:var(--muted)}

/* ---------- The falling letter ----------
   It starts at the bottom left of the archive photo (#slot-start, placed by js/animation/falling-letter.js directly
   above its resting place), turns over as you scroll, and lands beside the headmaster (#slot-rest).
   The card, faces, shade, sheen and shadow are the main site's (site-v18-night/css/site.css), unchanged. */
#letter-stage{position:absolute;left:0;top:0;width:100%;height:0;pointer-events:none;z-index:50}
.photo{position:relative}
.chapter__media{position:relative}
.letter-slot{position:absolute;pointer-events:none}
.letter-slot img{display:block;width:100%;height:auto}
/* Resting place: the spot the letter had in the headmaster photo (frame 2325 wide: x 186, y 1330 of 1744, 580 wide). */
.letter-slot--rest{left:8%;top:76.261%;width:24.946%}
.letter-slot--rest img{filter:drop-shadow(0 6px 10px rgba(0,0,0,.45))}
.letter-slot--start{display:none}
#letter-stage .lt-scene{display:none}
.scrub .letter-slot--start{display:block}
.scrub .letter-slot--rest img{visibility:hidden}   /* the falling letter takes its place */
.scrub #letter-stage .lt-scene{display:block;position:absolute;left:0;top:0;width:var(--card-w, 300px);aspect-ratio:3190/1955}
#letter-stage .env-card,#letter-stage .lt-shadow{position:absolute;inset:0;transform-style:preserve-3d}
/* GPU layers only while the letter is falling; at rest it is drawn as a plain, sharp image. */
.letter-falling #letter-stage .lt-scene,.letter-falling #letter-stage .env-card,.letter-falling #letter-stage .lt-shadow{will-change:transform}
#letter-stage .lt-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
#letter-stage .lt-face img{display:block;width:100%;height:100%}
#letter-stage .lt-face.lt-back{transform:rotateX(180deg)}   /* back art mounted top-over-bottom, as on the main site */
/* Shade and sheen use plain transparency, not blend modes (blend layers in a 3D-turning card flash in Chrome). */
#letter-stage .lt-shade{position:absolute;inset:0;background:#120806;opacity:0;pointer-events:none}
#letter-stage .lt-sheen{position:absolute;inset:0;opacity:0;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,250,240,0) 35%,rgba(255,250,240,.2) 50%,rgba(255,250,240,0) 65%);background-size:300% 100%}
/* The shadow's soft edge is a box-shadow, not filter:blur(): a blurred element turning in 3D is drawn by Chrome as a
   large hard grey block when it is nearly edge-on. The core is inset by about the old blur radius so the shadow keeps
   its size; the box-shadow (same colour) feathers it out. */
#letter-stage .lt-shadow{inset:calc(var(--card-w, 300px) * .02);transform-style:flat;background:rgba(10,4,2,.55);border-radius:3px;
  box-shadow:0 0 calc(var(--card-w, 300px) * .06) calc(var(--card-w, 300px) * .012) rgba(10,4,2,.55)}

/* The headmaster reads the letter (js/animation/headmaster-video.js). The video is square: its top 2074/2765 is the
   headmaster photo, covering .chapter__photo img exactly (same width and offsets, margins in % of the column width, as
   there); below that it runs on over the bottom of the black section and the cream page. It is shown twice, split at
   the bottom of the black section (2113/2765 down): this element shows the part above, and the part below is drawn
   on the .hm-low canvas. Its first frame is the photo
   with the letter at rest; its last is the photo without it. Hidden until the letter lands. */
.hm-video{position:absolute;left:0;top:0;width:118.925%;max-width:none;height:auto;aspect-ratio:1 / 1;margin:-7.097% 0 0 -12.043%;
  display:block;background:transparent;opacity:.0005;pointer-events:none;clip-path:inset(0 0 23.5805% 0)}
/* not visibility:hidden: Chrome won't draw (and may pause) a hidden video, so it would never reach its first frame */
/* The cream part of the video (below the black section), drawn on a canvas with its white made transparent so his
   hand and wand pass solidly over the page and the card's lines. Same box as the lower 652/2765 of the video:
   top = -7.097% + 118.925% x 2113/2765 = 83.785% of the column width. */
.hm-low{position:absolute;left:0;top:0;width:118.925%;max-width:none;height:auto;aspect-ratio:2765 / 652;margin:83.785% 0 0 -12.043%;
  display:block;pointer-events:none;z-index:2;visibility:hidden}
.hm-playing .hm-low{visibility:visible}
.hm-playing .hm-video{opacity:1}
.letter-taken #letter-stage .lt-scene{visibility:hidden}

/* ?letter=debug: stage outline, anchor markers and a progress readout (drawn by js/animation/scroll-engine.js) */
.letter-debug .letter-slot{outline:1px dashed #E0218A}
.ld-marker{position:absolute;left:0;right:0;height:0;border-top:2px solid #E0218A;z-index:51;pointer-events:none}
.ld-marker span,.ld-line span,.ld-readout{position:absolute;font:600 11px/1.3 ui-monospace,Consolas,monospace;color:#fff;background:#E0218A;padding:2px 6px;white-space:nowrap}
.ld-marker span{left:4px;top:0}
.ld-line{position:fixed;left:0;right:0;height:0;border-top:1px dashed #1E6FE0;z-index:52;pointer-events:none}
.ld-line span{right:4px;top:2px;background:#1E6FE0}
.ld-readout{position:fixed;left:8px;bottom:8px;z-index:52}

/* The page is the containing block for its absolutely placed parts. */
.page{position:relative}

/* "Claim my letter" pop-up (js/claim-form.js): a notice card like the rail's Official Notice, over a dimmed page */
.claim{border:0;padding:0;background:transparent;max-width:min(560px, calc(100vw - 24px));width:100%;max-height:calc(100dvh - 24px);overflow:auto;color:var(--ink)}
.claim::backdrop{background:rgba(17,17,17,.55)}
.claim__in{position:relative;background:var(--page);border:2px solid var(--ink);outline:1px solid var(--ink);outline-offset:-9px;
  padding:34px clamp(20px, 5vw, 40px) 28px;display:flex;flex-direction:column;gap:14px;box-sizing:border-box}
.claim__close{position:absolute;top:12px;right:14px;width:40px;height:40px;border:0;background:transparent;font-family:var(--serif);font-size:30px;line-height:1;color:var(--ink);cursor:pointer}
.claim__head{text-align:center;border-bottom:3px double var(--ink);padding-bottom:14px;display:flex;flex-direction:column;gap:6px}
.claim__kicker{font-size:14px;letter-spacing:.14em}
.claim__title{margin:0;font-weight:400;font-size:clamp(26px, 4vw, 32px);line-height:1.1;text-wrap:balance}
.claim__sub{margin:0;font-style:italic;font-size:17px;color:var(--ink-2)}
.claim__pair{display:flex;flex-wrap:wrap;gap:12px}
.claim__pair > *{flex:1 1 180px;min-width:0}
.claim__field{display:flex;flex-direction:column;gap:5px}
.claim label,.claim legend{font-family:var(--sans);font-size:12px;font-weight:600}
.claim__opt,.claim__req{font-weight:400;color:var(--muted)}
.claim input[type=text],.claim input[type=email],.claim input[type=tel],.claim select{min-height:46px;padding:0 12px;border:1px solid var(--ink);border-radius:0;background:#FFFFFF;
  font-family:var(--sans);font-size:16px;color:var(--ink);box-sizing:border-box;width:100%;min-width:0}
.claim__phone{display:flex;gap:8px}
.claim__phone select{flex:0 0 auto;width:auto;padding-right:6px}
.claim__phone input{flex:1 1 auto}
.claim__consent{border:1px solid var(--hair);margin:0;padding:10px 14px 12px;display:flex;flex-wrap:wrap;gap:8px 24px}
.claim__consent legend{padding:0 6px}
.claim .claim__tick{display:flex;align-items:center;gap:8px;font-weight:400;font-size:15px;cursor:pointer;min-height:32px}
.claim__tick input{width:20px;height:20px;margin:0;accent-color:var(--ink)}
.claim__legal{margin:0;font-family:var(--sans);font-size:11.5px;line-height:1.5;color:var(--ink-2)}
.claim__legal a{color:inherit;text-decoration:underline}
.claim__submit{border:0;border-radius:0;cursor:pointer}
.claim__submit:disabled{opacity:.6;cursor:wait}
.claim__status{margin:0;font-family:var(--sans);font-size:13px;text-align:center;color:var(--ink-2)}
.claim__status:empty{display:none}
/* After "Claim my letter" (js/claim-form.js): the fields fade away under the heading, then the thank-you fades in */
.claim__done{display:none}
.claim__in.is-sent > :not(.claim__head):not(.claim__close):not(.claim__done){opacity:0;transition:opacity .35s ease;pointer-events:none}
.claim__in.is-done > :not(.claim__head):not(.claim__close):not(.claim__done){display:none}
.claim__in.is-done .claim__done{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;
  min-height:260px;border-bottom:3px double var(--ink);animation:claim-done .5s ease both}
@keyframes claim-done{from{opacity:0}to{opacity:1}}
.claim__thanks{margin:0;font-size:clamp(32px, 5.2vw, 42px);line-height:1.15;text-wrap:balance}
.claim__done-note{margin:14px 0 0;font-family:var(--sans);font-size:13px;color:var(--ink-2)}
.claim__done-note:empty{display:none}
@media (prefers-reduced-motion: reduce){ .claim__in.is-sent > *{transition:none} .claim__in.is-done .claim__done{animation:none} }

/* Influencer pages (js/partner.js): the offer banner above the masthead, black like the Number of people bar */
.partner{background:var(--ink);color:var(--on-dark)}
.partner__in{max-width:980px;margin:0 auto;padding:16px var(--gutter);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 24px;text-align:center}
.partner__kicker{margin:0;font-size:15px;letter-spacing:.14em;color:var(--on-dark-2);flex-basis:100%}
.partner__text{margin:0;font-size:20px;line-height:1.4;font-style:italic;max-width:620px;text-wrap:balance}
.partner__btn{min-height:46px;padding:0 22px;font-size:15px;line-height:normal}
.partner :focus-visible{outline-color:var(--on-dark)}
@media (max-width:700px){ .partner__text{font-size:17px} .partner__btn{width:100%} }
