/* Option B — "Wayfinder": link-first homepage.
   Same brand tokens as style.css, different temperament: light, ruled, typographic, red used as an accent only. */

.page-b { background: var(--paper); }
.page-b .site-head::before { transition: none; }

/* ---------- Hero: wayfinder left, film right ---------- */
.hb { padding-top: calc(var(--util-h) + var(--head-h)); background: var(--paper); }
.hb-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px);
  min-height: calc(100svh - var(--util-h) - var(--head-h));
  padding-block: clamp(28px, 4vh, 48px) clamp(24px, 3vh, 40px);
}
.hb-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hb-notice {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
  padding: 12px 16px; box-shadow: inset 0 0 0 1px rgba(153, 7, 0, 0.35);
  transition: background 0.3s, color 0.3s;
}
.hb-notice:hover { background: var(--red); color: #fff; }
.hb-notice .arr { width: 14px; height: 14px; }
.hb-title {
  margin: 0; font-family: var(--slab); font-weight: 300; color: var(--ink);
  font-size: clamp(2.8rem, 4.6vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em;
}

/* The sentence navigator */
.wf { border-top: 1px solid var(--ink); padding-top: 24px; }
.wf-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.wf-lead { font: 300 clamp(1.4rem, 1.9vw, 2rem)/1.2 var(--slab); color: var(--mute); min-width: 5.4em; }
.wf-sel { position: relative; flex: 1; min-width: 0; display: block; }
.wf-sel select {
  appearance: none; -webkit-appearance: none; width: 100%;
  font: 400 clamp(1.4rem, 1.9vw, 2rem)/1.2 var(--slab); color: var(--red);
  background: none; border: 0; border-bottom: 1px solid rgba(153, 7, 0, 0.4); border-radius: 0;
  padding: 4px 36px 8px 0; cursor: pointer; text-overflow: ellipsis;
}
.wf-sel select:hover, .wf-sel select:focus { border-bottom-color: var(--red); outline: none; }
.wf-sel select:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.wf-sel svg { position: absolute; right: 4px; top: 50%; width: 14px; height: 9px; color: var(--red); pointer-events: none; transform: translateY(-50%); }
.wf .btn { margin-top: 18px; }

/* Film */
.hb-media { position: relative; overflow: hidden; background: var(--ink); min-height: 420px; }
.hb-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(14, 3, 2, 0.6), rgba(14, 3, 2, 0)); pointer-events: none; }
.hb-ctrl { position: absolute; z-index: 2; left: 24px; bottom: 26px; display: flex; align-items: center; gap: 14px; color: #fff; }
.hb-round { width: 46px; height: 46px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); transition: background 0.3s, color 0.3s; }
.hb-round:hover { background: #fff; color: var(--red); }
.hb-round svg { width: 14px; height: 14px; }
.hb-film { font: 500 15px/1 var(--sans); display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.hb-film span { opacity: 0.7; font-weight: 400; }
.hb-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.2); }
.hb-progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------- Popular links ---------- */
.quick { padding-block: clamp(16px, 2vw, 32px) clamp(72px, 8vw, 120px); }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.quick-grid li { border-bottom: 1px solid var(--line); }
.quick-grid li:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.quick-grid a {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 150px;
  padding: 26px 56px 26px 24px; isolation: isolate; transition: color 0.35s;
}
.quick-grid a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.45s var(--ease); }
.quick-grid b { font: 400 clamp(1.2rem, 1.5vw, 1.45rem)/1.15 var(--slab); }
.quick-grid span { font-size: 14px; color: var(--mute); transition: color 0.35s; }
.quick-grid .arr { position: absolute; top: 28px; right: 22px; width: 16px; height: 16px; color: var(--red); transition: transform 0.45s var(--ease), color 0.35s; }
.quick-grid a:hover { color: #fff; }
.quick-grid a:hover::before { transform: scaleY(1); }
.quick-grid a:hover span { color: rgba(255, 255, 255, 0.85); }
.quick-grid a:hover .arr { color: #fff; transform: rotate(-45deg); }

/* ---------- Find your way ---------- */
.hub { background: var(--stone); padding-block: clamp(88px, 10vw, 150px); }
.hub-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.hub-head .lede { max-width: 38ch; }
.hub-body { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.hub-tabs { display: grid; border-top: 1px solid var(--ink); position: sticky; top: calc(var(--head-h) + 32px); }
.hub-tab {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font: 300 clamp(1.1rem, 1.35vw, 1.3rem)/1.2 var(--slab); color: var(--ink-2);
  transition: color 0.25s, padding 0.4s var(--ease);
}
.hub-tab svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-8px); transition: 0.4s var(--ease); color: var(--red); }
.hub-tab:hover { color: var(--ink); padding-left: 6px; }
.hub-tab[aria-selected="true"] { color: var(--red); font-weight: 400; }
.hub-tab[aria-selected="true"] svg { opacity: 1; transform: none; }
.hub-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(24px, 3vw, 48px); }
.hub-group { padding-top: 18px; border-top: 1px solid var(--line); transition: background 0.6s; }
.hub-group h3 { margin: 0 0 14px; font: 500 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.hub-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hub-group a { display: inline-block; padding: 5px 0; font-size: 16.5px; color: var(--ink); background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
.hub-group a:hover { color: var(--red); background-size: 100% 1px; }
.hub-group.is-flash { animation: hubflash 1.6s var(--ease); }
.hub-group.is-flash h3 { color: var(--red); }
@keyframes hubflash { 0% { box-shadow: inset 0 3px 0 var(--red); } 100% { box-shadow: inset 0 3px 0 transparent; } }

/* ---------- Colleges and programmes ---------- */
.dir { padding-block: clamp(96px, 11vw, 160px) clamp(72px, 8vw, 120px); }
.dir-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.dir-head .lede { margin-top: 22px; }
.searchbox--compact input { font-size: clamp(1.3rem, 1.8vw, 1.8rem); padding: 10px 0 12px; }
.searchbox--compact .go { width: 48px; height: 48px; }
.dir-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.dcol { padding: 26px 22px 32px; display: flex; flex-direction: column; }
.dcol + .dcol { border-left: 1px solid var(--line); }
.dcol:first-child { padding-left: 0; }
.dcol .ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--stone); }
.dcol .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dcol:hover .ph img { transform: scale(1.05); }
.dcol h3 { margin: 0 0 16px; font: 400 1.25rem/1.2 var(--slab); min-height: 2.4em; }
.dcol h3 a:hover { color: var(--red); }
.dcol ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 2px; }
.dcol li a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); transition: color 0.2s, transform 0.3s var(--ease); }
.dcol li a:hover { color: var(--red); transform: translateX(4px); }
.dcol .tlink { margin-top: auto; align-self: flex-start; color: var(--red); }

/* ---------- At a glance ---------- */
.glance { padding-block: clamp(88px, 10vw, 140px); border-top: 1px solid var(--line); }
.glance-row { list-style: none; margin: clamp(36px, 4vw, 56px) 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.g { padding: 26px 24px 0 0; }
.g + .g { padding-left: 24px; border-left: 1px solid var(--line); }
.g b { display: block; font: 300 clamp(2.6rem, 4.2vw, 4.4rem)/1 var(--slab); letter-spacing: -0.03em; color: var(--red); margin-bottom: 14px; }
.g p { margin: 0 0 8px; font-size: 16px; color: var(--ink-2); max-width: 26ch; }
.g small { font-size: 13px; color: var(--mute); }

/* ---------- News list + next event ---------- */
.nl { padding-block: clamp(40px, 5vw, 72px) clamp(96px, 11vw, 150px); }
.nl-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.nl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.nl-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.nl-rows a {
  display: grid; grid-template-columns: 110px 120px minmax(0, 1fr) 24px; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease);
}
.nl-rows time { font-size: 14px; color: var(--mute); }
.nl-rows .cat { font: 500 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.nl-rows .ttl { font: 300 1.2rem/1.3 var(--slab); color: var(--ink); transition: color 0.2s; }
.nl-rows .arr { width: 16px; height: 16px; color: var(--red); opacity: 0; transform: translateX(-6px); transition: 0.4s var(--ease); }
.nl-rows a:hover { padding-left: 10px; }
.nl-rows a:hover .ttl { color: var(--red); }
.nl-rows a:hover .arr { opacity: 1; transform: none; }
.nl-event { background: var(--red); color: #fff; padding: 32px 30px 34px; position: sticky; top: calc(var(--head-h) + 32px); }
.nl-event .eyebrow { color: #fff; opacity: 0.8; margin-bottom: 26px; }
.ev-date { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.ev-date b { font: 200 5.4rem/0.8 var(--slab); letter-spacing: -0.04em; }
.ev-date span { font-size: 15px; line-height: 1.3; opacity: 0.85; }
.nl-event h3 { margin: 0 0 10px; font: 300 1.6rem/1.15 var(--slab); }
.nl-event p { margin: 0 0 26px; font-size: 15px; opacity: 0.85; }

/* ---------- Visit band ---------- */
.vb { background: var(--ink); color: #fff; padding-block: clamp(72px, 8vw, 120px); }
.vb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 80px; align-items: center; }
.vb h2 { font: 200 clamp(2.8rem, 6vw, 6.4rem)/0.95 var(--slab); letter-spacing: -0.035em; margin: 0 0 20px; }
.vb p { margin: 0; opacity: 0.8; max-width: 36ch; font-size: 17px; }
.vb-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.vb-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font: 300 clamp(1.3rem, 2vw, 1.9rem)/1.2 var(--slab); transition: color 0.25s, padding 0.4s var(--ease);
}
.vb-links .arr { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.vb-links a:hover { color: #ff9a92; padding-left: 10px; }
.vb-links a:hover .arr { transform: translateX(6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcol:nth-child(4) { padding-left: 0; border-left: 0; }
  .dcol:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hub-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hb { padding-top: var(--head-h); }
  .hb-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; }
  .hb-notice { font-size: 12px; letter-spacing: 0.1em; }
  .hb-media { min-height: 0; aspect-ratio: 4 / 3.4; order: -1; }
  .hb-copy { gap: 26px; }
  .hb-title { font-size: clamp(2.6rem, 11.5vw, 4.4rem); }
  .wf-lead { min-width: 0; }
  .wf .btn { width: 100%; justify-content: space-between; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid li:not(:nth-child(4n)) { border-right: 0; }
  .quick-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
  .quick-grid a { min-height: 132px; padding: 20px 40px 20px 16px; }
  .quick-grid .arr { top: 22px; right: 14px; }
  .hub-head, .nl-head { flex-direction: column; align-items: flex-start; }
  .hub-body { grid-template-columns: 1fr; }
  .hub-tabs { position: static; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .hub-panel { grid-template-columns: 1fr; gap: 28px; }
  .dir-head { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
  .dcol, .dcol:first-child, .dcol:nth-child(4) { padding: 24px 0 28px; border-left: 0; }
  .dcol + .dcol { border-top: 1px solid var(--line); }
  .dcol .ph { aspect-ratio: 16 / 9; }
  .dcol h3 { min-height: 0; }
  .glance-row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .g:nth-child(3) { padding-left: 0; border-left: 0; }
  .nl-grid { grid-template-columns: 1fr; }
  .nl-rows a { grid-template-columns: 1fr 24px; gap: 6px 12px; }
  .nl-rows time, .nl-rows .cat { grid-column: 1; }
  .nl-rows .ttl { grid-column: 1; }
  .nl-rows .arr { grid-column: 2; grid-row: 1 / 4; align-self: center; opacity: 1; transform: none; }
  .nl-event { position: static; }
  .vb-grid { grid-template-columns: 1fr; }
}
