/* ============================================================
   The site's navigation — header, full-screen menu, Enquire.
   Type follows the roles in typography.css: the school's name and the
   category words in the display face, everything else in the interface
   and body face at the navigation weight.
   Markup: tools/partials/header.html, tools/partials/drawer.html and
   nav_html() in tools/build-site.py. Behaviour: "Header, menu and
   Enquire" in assets/js/cirs.js. Worked out first as the prototype in
   previews/navigation/, whose README records the brief.

   Colour: none of its own. Every colour below is a role from the top
   of assets/css/cirs.css, read as it stands:
     --paper    signature ivory   header, category area, Enquire
     --paper-2  alternate ivory   destination area
     --ink / --ink-soft / --ink-mute   lettering
     --rule     hairlines
     --gold     rules, markers and the one filled button — never
                lettering on ivory
     --on-gold  lettering on the gold fill
     --focus    the keyboard ring
   The bar carries the recovered purple as a restrained glass surface.
   Menu and Enquire sheets remain opaque ivory for longer reading.
   ============================================================ */

:root{
  --nv-hh:76px;                         /* the header's height */
  --nv-crest:48px;                      /* the crest in the open bar */
  --nv-split:52%;                       /* category area | destination area */
  --nv-num:3.25rem;                     /* the category number column */
  --nv-cat-size:clamp(2.5rem, min(4.3vw, 7.4vh), 4.25rem);
  --nv-cat-pad:clamp(6px, 1.5vh, 16px);
  --nv-dest-size:clamp(1.375rem, min(1.95vw, 3.5vh), 1.85rem);
}
.nv-sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ------------------------------------------------------------
   Header — original Enquire and Home left, crest centred, News and Menu
   right. Two states, chosen by the controller in cirs.js:

     hero     over a full-screen opening, no surface at all. The controls
              sit on the picture in white (or in ink, where the page's
              opening is pale: data-header-tone="light"), held off bright
              skies by a soft shadow rather than by a bar.
     content  a compact, translucent ivory pill floating clear of the edges,
              lettered in ink. Every page without a full-screen opening
              starts here; the others gather into it on the first scroll.

   The <header> itself is only the fixed frame and takes no pointer: the
   bar inside it is what morphs, so the air around the pill stays live.
   Gold appears in the News dot and the rule under a hovered or open control.
   ------------------------------------------------------------ */
.nv-header{
  position:fixed; top:0; left:0; right:0; z-index:118;
  height:var(--nv-hh);
  --nv-pill-inset:10px;                           /* air around the pill */
  --nv-pill-h:max(50px, calc(var(--nv-hh) - 18px)); /* 58px, 50px on phones */
  --nv-pill-max:1180px;
  --nv-morph:.5s var(--e2);
  --nav-name:#fff;
  --nav-sub:rgba(255,255,255,.9);
  --nav-text:#fff;
  --nav-icon:rgba(255,255,255,.9);
  --nav-hover:var(--gold-lit);
  --nav-lift:drop-shadow(0 1px 8px rgba(17,17,15,.45));
  background:transparent;
  pointer-events:none;
  transition:opacity .35s var(--e), visibility .35s;
}
.nv-header[data-header-tone="light"]{
  --nav-name:var(--ink);
  --nav-sub:var(--ink-mute);
  --nav-text:var(--ink);
  --nav-icon:var(--ink-soft);
  --nav-hover:var(--ink);
  --nav-lift:none;
}
.nv-header__bar{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:var(--space-4);
  width:100%; height:var(--nv-hh);
  margin:0 auto;
  padding-inline:var(--gut);
  pointer-events:auto;
  background-color:transparent;
  border:1px solid transparent;
  border-radius:0;
  box-shadow:none;
  transition:width var(--nv-morph), height var(--nv-morph), margin var(--nv-morph),
             padding var(--nv-morph), border-radius var(--nv-morph),
             background-color .35s var(--e), border-color .35s var(--e), box-shadow .35s var(--e),
             -webkit-backdrop-filter .35s var(--e), backdrop-filter .35s var(--e);
}
/* Over the opening the lettering carries its own shadow instead of a bar. */
.nv-header[data-header-mode="hero"] :is(.nv-brand, .nv-tab){ filter:var(--nav-lift); }

/* The pill: on scroll and by default on pages without a full-screen opening.
   Enquire adds its reading surface without moving the trigger: gathering the
   hero bar under a stationary pointer caused repeated mouseleave/open loops. */
.nv-header[data-header-mode="content"],
.nv-header:has(.nv-enq.is-open){
  --nav-name:var(--ink);
  --nav-sub:var(--ink-mute);
  --nav-text:var(--ink);
  --nav-icon:var(--ink-soft);
  --nav-hover:var(--ink);
  --nav-lift:none;
}
.nv-header[data-header-mode="content"] .nv-header__bar{
  width:min(calc(100% - 2 * var(--nv-pill-inset)), var(--nv-pill-max));
  height:var(--nv-pill-h);
  margin-top:var(--nv-pill-inset);
  padding-inline:clamp(14px, 2vw, 28px);
  border-radius:999px;
}
.nv-header[data-header-mode="content"] .nv-header__bar,
.nv-header:has(.nv-enq.is-open) .nv-header__bar{
  background-color:rgba(250,249,243,.95);
  border-color:rgba(31,31,27,.08);
  box-shadow:0 10px 32px rgba(17,17,15,.14), 0 1px 3px rgba(17,17,15,.08);
}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .nv-header[data-header-mode="content"] .nv-header__bar,
  .nv-header:has(.nv-enq.is-open) .nv-header__bar{
    background-color:rgba(250,249,243,.74);
    -webkit-backdrop-filter:blur(18px) saturate(1.5);
    backdrop-filter:blur(18px) saturate(1.5);
  }
}
/* Compact: the crest steps down and the sub-line folds away inside the pill. */
.nv-header[data-header-mode="content"] .nv-brand img{ width:calc(var(--nv-crest) * .8); }
.nv-header[data-header-mode="content"] .nv-brand__sub{ max-height:0; opacity:0; }

/* The menu is a full-screen ivory sheet under the bar, so while it is open
   the bar opens out to meet it edge to edge. */
body.menu-open .nv-header{
  --nav-name:var(--ink);
  --nav-sub:var(--ink-mute);
  --nav-text:var(--ink);
  --nav-icon:var(--ink-soft);
  --nav-hover:var(--ink);
}
body.menu-open .nv-header :is(.nv-brand, .nv-tab){ filter:none; }
body.menu-open .nv-header .nv-header__bar{
  width:100%; height:var(--nv-hh); margin-top:0;
  padding-inline:var(--gut);
  border-radius:0;
  background-color:var(--paper);
  border-color:transparent transparent var(--rule);
  box-shadow:0 3px 14px rgba(20,30,33,.07);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
@media (prefers-reduced-transparency:reduce){
  .nv-header[data-header-mode="content"] .nv-header__bar,
  .nv-header:has(.nv-enq.is-open) .nv-header__bar{
    background-color:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;
  }
}
@media (prefers-reduced-motion:reduce){
  .nv-header{ --nv-morph:.01s linear; }
}
.nv-header :focus-visible{ outline-color:var(--gold-lit); }
.nv-header[data-header-tone="light"] :focus-visible,
.nv-header[data-header-mode="content"] :focus-visible,
.nv-header:has(.nv-enq.is-open) :focus-visible,
body.menu-open .nv-header :focus-visible{ outline-color:var(--focus); }
.nv-header.is-settling,.nv-header.is-settling *{ transition:none!important; }
body:has(#curtain) .nv-header,
body.founder:has(.gurudev-opening[data-phase="intro"]) .nv-header,
body.founder:has(.gurudev-opening[data-phase="leaving"]) .nv-header{
  opacity:0; visibility:hidden; pointer-events:none;
}
body:has(#curtain) .nv-header__bar,
body.founder:has(.gurudev-opening[data-phase="intro"]) .nv-header__bar,
body.founder:has(.gurudev-opening[data-phase="leaving"]) .nv-header__bar{
  pointer-events:none;
}
.nv-header__side{ display:flex; align-items:center; gap:var(--space-5); min-width:0; }
.nv-header__side--left{ justify-self:start; }
.nv-header__side--right{ justify-self:end; }

.nv-brand{ display:flex; align-items:center; gap:13px; min-width:0; justify-self:center; color:var(--nav-name); transition:color .3s var(--e); }
.nv-brand img{ width:var(--nv-crest); height:auto; flex:none; transition:width var(--nv-morph); }
.nv-brand__txt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.nv-brand__name{ font-family:var(--font-display); font-size:1.16rem; line-height:1.06; letter-spacing:-.005em; white-space:nowrap; }
.nv-brand__sub{ max-height:1em; overflow:hidden; font-family:var(--font-ui); font-size:.8rem; letter-spacing:.11em; line-height:1; color:var(--nav-sub); white-space:nowrap; transition:color .3s var(--e), max-height var(--nv-morph), opacity .3s var(--e); }
.nv-brand__short{ display:none; font-family:var(--font-display); font-size:1.2rem; letter-spacing:.08em; line-height:1; }

.nv-tab{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:44px; padding:0 2px;
  color:var(--nav-text);
  font-family:var(--font-ui);
  font-size:.92rem; letter-spacing:.06em; line-height:1; white-space:nowrap;
  transition:color .3s var(--e);
}
.nv-tab__icon{ display:grid; place-items:center; height:18px; color:var(--nav-icon); transition:color .2s var(--e); }
/* The one gold gesture in the bar: a short rule under the control on
   hover, which stays while its panel is open. */
.nv-tab::after{
  content:""; position:absolute; left:0; right:0; bottom:7px;
  height:1px; background:var(--gold);
  transform:scaleX(0); transform-origin:left;
  transition:transform .28s var(--e2);
}
.nv-tab[aria-expanded="true"]::after,
.nv-tab[aria-current="page"]::after{ transform:scaleX(1); }
@media (hover:hover){
  .nv-tab:hover::after{ transform:scaleX(1); }
  .nv-tab:hover .nv-tab__icon{ color:var(--nav-hover); }
}
.nv-tab--news .nv-tab__icon{ position:relative; }
.nv-tab--news .nv-tab__icon::after{
  content:""; position:absolute; top:-1px; right:-3px;
  width:5px; height:5px; border-radius:50%; background:var(--gold);
}

/* Menu ⇄ Close. Both words hold the same box, so the control never
   changes width; the two lines fold into a cross.

   The Menu control's rule sits under the word alone, never under the
   lines or the cross beside it. It draws in from the left as the menu
   opens (or under a hovering pointer) and, as it closes, retracts out to
   the right rather than snapping. After a click closes the menu the
   pointer is usually still over the control; .is-settling-rule holds the
   hover rule back until the pointer leaves, so nothing lingers beneath
   the control once the menu has gone. */
.nv-tab--menu::after{ content:none; }
.nv-tab--menu .nv-tab__label{ position:relative; display:inline-grid; }
.nv-tab--menu .nv-tab__label::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px;
  height:1px; background:var(--gold);
  transform:scaleX(0); transform-origin:right;
  transition:transform .42s var(--e);
}
.nv-tab--menu[aria-expanded="true"] .nv-tab__label::after{
  transform:scaleX(1); transform-origin:left; transition:transform .36s var(--e2);
}
@media (hover:hover){
  .nv-tab--menu:not(.is-settling-rule):hover .nv-tab__label::after{
    transform:scaleX(1); transform-origin:left; transition:transform .36s var(--e2);
  }
}
@media (prefers-reduced-motion:reduce){
  .nv-tab--menu .nv-tab__label::after{ transition-duration:.01s; }
}
.nv-menu-word{ grid-area:1/1; text-align:right; transition:opacity .16s var(--e); }
.nv-menu-word--close{ opacity:0; }
.nv-tab--menu[aria-expanded="true"] .nv-menu-word--open{ opacity:0; }
.nv-tab--menu[aria-expanded="true"] .nv-menu-word--close{ opacity:1; }
.nv-lines{ position:relative; width:22px; height:12px; flex:none; }
.nv-lines i{
  position:absolute; left:0; right:0; height:1.4px; background:currentColor;
  transition:transform .3s var(--e2), top .3s var(--e2);
}
.nv-lines i:first-child{ top:2px; }
.nv-lines i:last-child{ top:9px; left:7px; }
.nv-tab--menu[aria-expanded="true"] .nv-lines i{ top:5.3px; left:0; }
.nv-tab--menu[aria-expanded="true"] .nv-lines i:first-child{ transform:rotate(45deg); }
.nv-tab--menu[aria-expanded="true"] .nv-lines i:last-child{ transform:rotate(-45deg); }

/* ------------------------------------------------------------
   Enquire — an opaque ivory sheet hung from the bar. Hierarchy
   does the work: a small ruled heading, the contact itself set
   large, what it is set small above it. It carries its own Close.
   ------------------------------------------------------------ */
.nv-enq{ position:relative; }
.nv-enq__panel{
  position:fixed; top:var(--nv-hh); left:var(--gut); z-index:110;
  width:min(620px, calc(100vw - 2 * var(--gut)));
  max-height:calc(100dvh - var(--nv-hh) - 24px); overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:var(--space-4) var(--space-6) var(--space-5);
  background:var(--paper);
  border:1px solid var(--rule); border-top:0;
  box-shadow:var(--shadow-image);
  opacity:0; transform:translateY(-6px);
  visibility:hidden;
  transition:opacity .18s var(--e), transform .24s var(--e2), visibility 0s linear .24s;
}
.nv-enq__panel[hidden]{ display:none; }
.nv-enq.is-open .nv-enq__panel{
  opacity:1; transform:none; visibility:visible;
  transition:opacity .18s var(--e), transform .24s var(--e2), visibility 0s;
}
/* A bridge over the bar's lower half, so the pointer can travel from
   the tab into the sheet without passing through dead space. */
.nv-enq__panel::before{ content:""; position:absolute; left:0; right:0; top:-24px; height:24px; }

.nv-enq__head{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  min-height:44px; margin-bottom:var(--space-4);
  border-bottom:1px solid var(--rule);
}
.nv-enq__heading{ color:var(--ink); font-size:1.05rem; letter-spacing:.01em; }
.nv-enq__close{
  position:relative; min-height:44px; padding:0 2px;
  color:var(--ink); font-size:.92rem; letter-spacing:.06em;
}
.nv-enq__close::after{
  content:""; position:absolute; left:0; right:0; bottom:9px; height:1px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .28s var(--e2);
}
.nv-enq__close:focus-visible::after{ transform:scaleX(1); }

.nv-enq__grid{
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:var(--space-6);
}
.nv-enq__title{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-ui);
  margin:0 0 var(--space-3);
  color:var(--ink-soft);
  font-size:.74rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; line-height:1;
}
.nv-enq__title::before{ content:""; width:18px; height:1px; background:var(--gold); flex:none; }

/* Both columns open on a hairline and are divided by hairlines; the
   rule above Follow CIRS closes them both. */
.nv-enq__contact{
  display:block;
  padding:var(--space-4) 0;
  border-top:1px solid var(--rule);
  color:var(--ink);
}
.nv-enq__meta{
  display:block; margin-bottom:6px;
  color:var(--ink-mute); font-size:.84rem; letter-spacing:.02em; line-height:1.3;
}
.nv-enq__value{
  position:relative; display:inline-block; max-width:100%;
  font-size:1.42rem; line-height:1.2; letter-spacing:-.01em;
  overflow-wrap:anywhere;
}
.nv-enq__value::after{
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:1px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .3s var(--e2);
}
.nv-enq__contact:focus-visible .nv-enq__value::after{ transform:scaleX(1); }

.nv-enq__doors{ border-top:1px solid var(--rule); }
.nv-enq__doors li + li{ border-top:1px solid var(--rule); }
.nv-enq__doors a{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  min-height:52px; padding:var(--space-2) 0;
  color:var(--ink); font-size:1.08rem;
}
.nv-enq__doors svg{ color:var(--ink-mute); flex:none; transition:transform .25s var(--e2), color .2s var(--e); }
.nv-enq__doors a:focus-visible svg{ color:var(--ink); transform:translateX(3px); }

.nv-enq__follow{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  flex-wrap:wrap;
  margin-top:var(--space-3); padding-top:var(--space-4);
  border-top:1px solid var(--rule);
}
.nv-enq__follow .nv-enq__title{ margin:0; }
.nv-enq__social{ display:flex; gap:8px; }
.nv-enq__social a{
  display:grid; place-items:center; width:44px; height:44px;
  border:1px solid var(--rule); border-radius:50%;
  color:var(--ink-soft);
  transition:background .2s var(--e), border-color .2s var(--e), color .2s var(--e);
}
.nv-enq__social svg{ width:20px; height:20px; overflow:visible; }
.nv-enq__social svg :is(rect,circle){ fill:none; stroke:currentColor; stroke-width:1.65; }
.nv-enq__social svg path{ fill:currentColor; stroke:none; }
.nv-enq__social svg .nv-dot{ fill:currentColor; stroke:none; }
.nv-enq__social svg .nv-play{ fill:var(--paper); }
.nv-enq__social a:focus-visible{
  background:var(--gold); border-color:var(--gold); color:var(--on-gold);
}
.nv-enq__social a:focus-visible .nv-play{ fill:var(--gold); }

/* ------------------------------------------------------------
   The full-screen menu. Two ivory grounds under the header: the
   signature ivory carries the five categories in one number
   column and one label column; the alternate ivory, past one
   fine rule, carries the pages of the category that is open.
   ------------------------------------------------------------ */
.nv-menu{
  position:fixed; inset:var(--nv-hh) 0 0 0; z-index:116;
  display:flex; flex-direction:column;
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:var(--paper);
  clip-path:inset(0 0 100% 0);
  visibility:hidden;
  transition:clip-path .26s var(--e), visibility 0s linear .26s;
}
.nv-menu[hidden]{ display:none; }
.nv-menu.is-open{
  clip-path:inset(0 0 0 0);
  visibility:visible;
  transition:clip-path .42s var(--e2), visibility 0s;
}
/* The destination ground, and the fine rule that divides the two. */
.nv-menu::before{
  content:""; position:absolute; top:0; bottom:0; left:var(--nv-split); right:0;
  background:var(--paper-2); z-index:0; pointer-events:none;
}
.nv-menu::after{
  content:""; position:absolute; top:0; bottom:0; left:var(--nv-split);
  width:1px; background:var(--rule); z-index:0; pointer-events:none;
}

.nv-menu__stage{ position:relative; z-index:1; flex:1 0 auto; display:flex; }
.nv-menu__nav{
  position:relative;
  flex:1;
  display:grid;
  grid-template-columns:var(--nv-split) minmax(0,1fr);
  grid-template-rows:repeat(5, auto);
  align-content:center;
  padding-block:clamp(20px, 5vh, 64px);
}
.nv-item{ display:contents; }
.nv-item:nth-child(1) .nv-cat{ grid-row:1; }
.nv-item:nth-child(2) .nv-cat{ grid-row:2; }
.nv-item:nth-child(3) .nv-cat{ grid-row:3; }
.nv-item:nth-child(4) .nv-cat{ grid-row:4; }
.nv-item:nth-child(5) .nv-cat{ grid-row:5; }

/* A category: one number column, one label column, on one baseline.
   Nothing about it moves when it becomes active — only its colour
   changes and the gold marker arrives beside it. */
.nv-cat{
  grid-column:1;
  position:relative;
  display:grid; grid-template-columns:var(--nv-num) minmax(0,1fr); align-items:baseline;
  width:100%;
  padding:var(--nv-cat-pad) clamp(24px,3vw,48px) var(--nv-cat-pad) var(--gut);
  color:var(--ink-mute);
  text-align:left;
  transition:color .2s var(--e);
}
.nv-cat__num{
  font-family:var(--font-ui);
  font-size:.8rem; letter-spacing:.08em; font-variant-numeric:lining-nums tabular-nums;
  line-height:1;
}
.nv-cat__word{
  font-family:var(--font-display); font-weight:400;
  font-size:var(--nv-cat-size);
  line-height:1.04; letter-spacing:-.03em;
  text-wrap:balance;
}
@media (hover:hover){ .nv-cat:hover{ color:var(--ink); } }
.nv-cat[aria-expanded="true"]{ color:var(--ink); }

/* The active marker: one short gold rule that travels between the
   categories rather than five that switch on and off. nav.js sets
   its position; without script the open category keeps its colour. */
.nv-marker{
  position:absolute; left:calc(var(--gut) - 22px); top:0;
  width:2px; height:calc(var(--nv-cat-size) * .7);
  background:var(--gold);
  opacity:0;
  transition:transform .26s var(--e2), opacity .2s var(--e);
  pointer-events:none;
}
.nv-marker.is-set{ opacity:1; }

/* Destinations. All five share one grid area, and the closed ones are
   laid out but invisible, so the area is always as tall as the
   longest list: changing category never moves anything on the page.
   The open list's heading sits on the first category's baseline. */
.nv-dest{
  grid-column:2; grid-row:1 / -1;
  align-self:start;
  width:100%; max-width:600px;
  padding:0 var(--gut) 0 clamp(32px,4vw,72px);
}
.nv-dest[hidden]{ display:block; visibility:hidden; }
.nv-dest__kicker{
  display:flex; align-items:center; gap:12px;
  margin:0 0 var(--space-4);
  color:var(--ink-soft);
  font-size:.74rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; line-height:1;
}
.nv-dest__kicker::before{ content:""; width:18px; height:1px; background:var(--gold); flex:none; }
.nv-dest__list{ border-top:1px solid var(--rule); }
.nv-dest__list li{ border-bottom:1px solid var(--rule); }
.nv-dest__list a{
  position:relative;
  display:grid; grid-template-columns:minmax(0,1fr) auto 24px; align-items:center; column-gap:var(--space-3);
  min-height:clamp(50px, 7vh, 64px); padding:8px 0;
  color:var(--ink);
}
.nv-dest__label{ grid-column:1; font-size:var(--nv-dest-size); line-height:1.2; letter-spacing:-.012em; }
.nv-dest__here{ grid-column:2; display:none; color:var(--ink-mute); font-size:.84rem; font-style:italic; letter-spacing:.01em; }
.nv-dest__arrow{
  grid-column:3; justify-self:end;
  color:var(--ink-mute);
  transition:transform .22s var(--e2), color .2s var(--e);
}
/* Hover draws a gold rule along the row's own hairline. */
.nv-dest__list a::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .3s var(--e2);
}
/* Hover only where there is a pointer to hover with: a tap on a phone
   would otherwise leave the rule drawn under the row it touched. */
.nv-dest__list a:focus-visible .nv-dest__arrow{ color:var(--ink); transform:translateX(3px); }
.nv-dest__list a:focus-visible::after{ transform:scaleX(1); }
@media (hover:hover){
  .nv-dest__list a:hover .nv-dest__arrow{ color:var(--ink); transform:translateX(3px); }
  .nv-dest__list a:hover::after{ transform:scaleX(1); }
  .nv-enq__doors a:hover svg{ color:var(--ink); transform:translateX(3px); }
  .nv-enq__contact:hover .nv-enq__value::after{ transform:scaleX(1); }
  .nv-enq__social a:hover{ background:var(--gold); border-color:var(--gold); color:var(--on-gold); }
  .nv-enq__social a:hover .nv-play{ fill:var(--gold); }
  .nv-cta--quiet:hover{ text-decoration-color:var(--gold); }
  .nv-cta--quiet:hover svg{ color:var(--ink); transform:translateX(3px); }
  .nv-enq__close:hover::after{ transform:scaleX(1); }
}
/* The page being read stays a link. Its cue: a short gold rule in the
   gutter beside it, and two quiet words before the arrow. */
.nv-dest__list a[aria-current="page"] .nv-dest__here{ display:inline; }
.nv-dest__list a[aria-current="page"]::before{
  content:""; position:absolute; left:-18px; top:50%; width:2px; height:1.1em; margin-top:-.55em;
  background:var(--gold);
}

/* Foot of the menu: utility on the category side, the admissions
   action and the quieter visit link on the destination side. */
.nv-menu__foot{
  position:relative; z-index:1; flex:none;
  display:grid; grid-template-columns:var(--nv-split) minmax(0,1fr); align-items:center;
  border-top:1px solid var(--rule);
  min-height:84px;
}
.nv-menu__utility{
  display:flex; flex-wrap:wrap; gap:6px var(--space-5);
  padding:var(--space-4) var(--gut) var(--space-4) calc(var(--gut) + var(--nv-num));
  font-size:.92rem;
}
.nv-menu__utility a{ color:var(--ink-soft); }
.nv-menu__utility a:hover, .nv-menu__utility a:focus-visible{ color:var(--ink); text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:5px; }
.nv-menu__cta{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px var(--space-5);
  padding:var(--space-4) var(--gut) var(--space-4) clamp(32px,4vw,72px);
}
.nv-cta{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:11px 18px;
  font-size:.95rem; font-weight:500; white-space:nowrap;
  transition:background .2s var(--e), border-color .2s var(--e), color .2s var(--e);
}
.nv-cta--primary{ background:var(--gold); border:1px solid var(--gold); color:var(--on-gold); }
.nv-cta--primary:hover, .nv-cta--primary:focus-visible{ background:var(--gold-lit); border-color:var(--gold-lit); color:var(--on-gold); }
.nv-cta--quiet{
  min-height:44px; padding:0 2px;
  color:var(--ink); font-weight:400;
  text-decoration:underline; text-decoration-color:var(--rule); text-decoration-thickness:1px; text-underline-offset:6px;
}
.nv-cta--quiet svg{ color:var(--ink-mute); flex:none; transition:transform .22s var(--e2), color .2s var(--e); }
.nv-cta--quiet:focus-visible{ text-decoration-color:var(--gold); }
.nv-cta--quiet:focus-visible svg{ color:var(--ink); transform:translateX(3px); }

/* The opening: the grounds unroll from under the bar and the
   categories come up once, briefly. Nothing is withheld from the
   pointer while it plays, and nothing plays on a category change
   but a short fade of the incoming list. */
.nv-menu.is-open .nv-cat{
  animation:nv-rise .36s var(--e2) both;
  animation-delay:calc(60ms + var(--i) * 30ms);
}
.nv-item{ --i:0; }
.nv-menu.is-open .nv-menu__foot > *{ animation:nv-fade .3s var(--e) .16s both; }
.nv-dest.is-entering{ animation:nv-fade-up .2s var(--e2) both; }
@keyframes nv-rise{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
@keyframes nv-fade-up{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
@keyframes nv-fade{ from{ opacity:0; } to{ opacity:1; } }

/* The page behind is locked by body.is-locked (cirs.css) and Lenis, and
   keeps its place. The trailing cursor ring has nothing to do here. */
body.menu-open .ring, body.menu-closing .ring{ display:none; }

/* ------------------------------------------------------------
   Short windows: the rows tighten before anything scrolls.
   ------------------------------------------------------------ */
@media (max-height:720px) and (min-width:901px){
  .nv-menu__foot{ min-height:72px; }
  .nv-dest__kicker{ margin-bottom:var(--space-3); }
}

/* ------------------------------------------------------------
   Header below 1100px: the sub-line goes, and Home and News keep
   their marks with their names read out rather than shown.
   Enquire and Menu keep their words at every width.
   ------------------------------------------------------------ */
@media (max-width:1099px){
  .nv-brand__sub{ display:none; }
  .nv-brand__name{ font-size:1rem; }
  .nv-header__side{ gap:var(--space-3); }
  :is(.nv-tab--home, .nv-tab--news, .nv-tab--login) .nv-tab__label{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
  }
  :is(.nv-tab--home, .nv-tab--news, .nv-tab--login){ min-width:40px; }
  :is(.nv-tab--home, .nv-tab--news, .nv-tab--login)::after{ left:10px; right:10px; }
}

/* ------------------------------------------------------------
   Tablet and phone: one column, an accordion. Each category opens
   its pages directly beneath it on the alternate ivory, with the
   links set on the category label column.
   ------------------------------------------------------------ */
@media (max-width:900px){
  :root{ --nv-hh:64px; --nv-num:2.5rem; --nv-crest:40px; }
  .nv-header{ --nv-pill-inset:8px; }

  .nv-menu::before, .nv-menu::after{ display:none; }
  .nv-menu__stage{ display:block; flex:none; }
  .nv-menu__nav{ display:block; padding:0; }
  .nv-marker{ display:none; }
  .nv-item{ display:block; border-bottom:1px solid var(--rule); }
  .nv-cat{
    position:relative;
    min-height:72px;
    padding:14px var(--gut);
    align-content:center;
  }
  .nv-cat__word{ font-size:clamp(1.75rem, 7vw, 2.5rem); line-height:1.08; }
  /* The marker has no rows to travel between here, so the open
     category carries its own. */
  .nv-cat[aria-expanded="true"]::before{
    content:""; position:absolute; left:calc(var(--gut) - 12px); top:50%;
    width:2px; height:1.4rem; margin-top:-.7rem; background:var(--gold);
  }
  .nv-dest{
    max-width:none;
    padding:4px var(--gut) var(--space-3) calc(var(--gut) + var(--nv-num));
    background:var(--paper-2);
    border-top:1px solid var(--rule);
  }
  .nv-dest[hidden]{ display:none; }
  .nv-dest__kicker{ display:none; }
  .nv-dest__list{ border-top:0; }
  .nv-dest__list li:last-child{ border-bottom:0; }
  .nv-dest__list a{ min-height:48px; padding:6px 0; }
  .nv-dest__label{ font-size:1.15rem; }
  .nv-dest__list a[aria-current="page"]::before{ left:-14px; }

  .nv-menu__foot{ display:flex; flex-direction:column; align-items:stretch; border-top:0; min-height:0; }
  .nv-menu__cta{ order:-1; padding:var(--space-5) var(--gut) var(--space-4); gap:var(--space-2) var(--space-5); }
  .nv-menu__cta .nv-cta--primary{ flex:1 1 220px; }
  .nv-menu__utility{
    display:grid; grid-template-columns:1fr 1fr; gap:10px var(--space-4);
    padding:var(--space-4) var(--gut) calc(var(--space-5) + env(safe-area-inset-bottom,0px));
    border-top:1px solid var(--rule);
  }

  .nv-enq__panel{
    left:0; right:0; width:auto;
    max-height:calc(100dvh - var(--nv-hh));
    padding:var(--space-2) var(--gut) var(--space-5);
    border-inline:0;
  }
  .nv-enq__grid{ grid-template-columns:1fr; gap:var(--space-5); }
}

/* Below 760px the crest and CIRS stand in for the full name, which the
   link still carries for assistive technology: set in the display face
   the full name needs about that much room beside the controls. */
@media (max-width:759px){
  .nv-brand{ gap:8px; }
  :root{ --nv-crest:34px; }
  .nv-brand__txt{ display:block; }
  .nv-brand__name{ display:none; }
  .nv-brand__short{ display:block; }
}
/* Phones: Enquire keeps its word and gives up its mark. */
@media (max-width:699px){
  .nv-enq__btn .nv-tab__icon{ display:none; }
  .nv-header__bar{ gap:var(--space-2); }
  .nv-header__side{ gap:var(--space-1); }
  .nv-tab{ font-size:.9rem; letter-spacing:.04em; }
}
/* The narrowest phones: the Menu mark goes (its word stays), the bar's
   gutter and the icon targets tighten, so Enquire, the lockup and Menu
   keep clear space between them down to 320px. */
@media (max-width:380px){
  .nv-lines{ display:none; }
  .nv-header__bar{ padding-inline:14px; }
  :root{ --nv-crest:30px; }
  .nv-brand__short{ font-size:1.02rem; letter-spacing:.06em; }
  :is(.nv-tab--home, .nv-tab--news, .nv-tab--login){ min-width:36px; }
  .nv-menu__utility{ grid-template-columns:1fr; }
}

/* A page with a fourth control — Student Life's Student Portal, linked
   nowhere else on that page. Its bar sizes each side to what it holds, so
   the extra control cannot push into the lockup; the crest sits centred
   between them rather than on the window's centre line. The portal keeps
   its word from 1280px, the full name from 900px, and below 440px the Home
   mark gives way to it (the crest still leads home). */
.nv-header__bar:has(.nv-tab--login){ grid-template-columns:auto minmax(0,1fr) auto; }
@media (max-width:1279px){
  .nv-tab--login .nv-tab__label{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
  }
  .nv-tab--login{ min-width:40px; }
  .nv-tab--login::after{ left:10px; right:10px; }
}
@media (max-width:899px){
  .nv-header__bar:has(.nv-tab--login) .nv-brand{ gap:8px; }
  .nv-header__bar:has(.nv-tab--login) .nv-brand img{ width:34px; }
  .nv-header__bar:has(.nv-tab--login) .nv-brand__txt{ display:block; }
  .nv-header__bar:has(.nv-tab--login) .nv-brand__name{ display:none; }
  .nv-header__bar:has(.nv-tab--login) .nv-brand__short{ display:block; }
}
@media (max-width:440px){
  .nv-header__bar:has(.nv-tab--login) .nv-tab--home{ display:none; }
}

@media print{
  .nv-header, .nv-menu{ display:none !important; }
}

@media (prefers-reduced-motion:reduce){
  .nv-header,.nv-brand,.nv-brand__sub{ transition:none!important; }
  .nv-menu, .nv-menu.is-open, .nv-enq__panel, .nv-enq.is-open .nv-enq__panel{ transition:none !important; clip-path:none !important; transform:none !important; }
  .nv-menu *, .nv-enq *, .nv-tab, .nv-tab *, .nv-marker{ animation:none !important; transition:none !important; }
}
