/* EVOKE · UNSW Industrial Design graduating cohort
   Swiss grid, Manrope, indigo and yellow from the brand guideline.
   Light only, square corners throughout. */

:root {
  --ink:    #0F1019;
  --ink-2:  #4A4D5E;   /* secondary text, 8:1 on paper */
  --paper:  #FDFDFD;
  --rule:   rgba(15, 16, 25, .14);
  --wash:   #F2F2F5;   /* image placeholder while loading */

  --indigo:   #4853AE;
  --indigo-2: #5E66AF;
  --indigo-3: #757BAD;
  --yellow:   #FFC500;
  --yellow-2: #FFE680; /* text selection */
  --yellow-3: #FFF3CA;

  /* Type scale from the guideline: 40 / 24 / 20 / 15 */
  --t-h1:   clamp(30px, 2.2vw + 18px, 40px);
  --t-h2:   clamp(20px, .8vw + 16px, 24px);
  --t-body: clamp(17px, .4vw + 15px, 20px);
  --t-small: 15px;

  --gut:  clamp(16px, 2vw, 24px);
  --side: clamp(16px, 3vw, 40px);
  --max:  1440px;
  --head: 64px;

  --ease: cubic-bezier(.16, 1, .3, 1);          /* strong ease-out: things arriving */
  --ease-move: cubic-bezier(.77, 0, .175, 1);    /* ease-in-out: things moving on screen */
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px);
  -webkit-tap-highlight-color: transparent; /* our own :active states give feedback */
}
/* Taps fire straight away (no double-tap-zoom wait); controls aren't selectable. */
a, button { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 "Manrope", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
img { width: 100%; height: auto; object-fit: cover; background: var(--wash); }
p, h1, h2, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 12px; font-size: var(--t-small); }
.skip:focus { left: 8px; }

/* In landscape on notched phones, keep content clear of the notch. */
.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--side), env(safe-area-inset-left, 0px));
  padding-right: max(var(--side), env(safe-area-inset-right, 0px));
}
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }

.h1, .h2, .project__strap, .hero__intro, .about__text p:first-child { text-wrap: balance; }
.h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }

/* ---- logo -------------------------------------------------------------- */

.logo { width: 100%; height: auto; overflow: visible; }
.logo--ink   { fill: var(--ink); }
.logo--paper { fill: var(--paper); }
/* The E spines keep their brand colours in every tone. */
.logo-spine--l { fill: var(--indigo); transition: fill .9s var(--ease); }
.logo-spine--r { fill: var(--yellow); }
.logo--paper .logo-spine--l { fill: var(--indigo); }
:root { --logo-w: 104px; }
.logo--sm    { width: var(--logo-w); }

/* ---- splash (home, first visit per session) ----------------------------
   The ink logo builds itself on a white panel: bars slide in (0-0.8s), VOK
   rises (0.2-0.9s), the indigo and yellow spines grow in behind the bars
   (0.75-1.45s). Then site.js starts the handover: the panel fades out while
   the logo glides onto the home page logo underneath, so the two line up
   exactly. Click, key or scroll
   starts the handover early. */

.splash { display: none; }
.has-splash { overflow: hidden; }
.has-splash .splash {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  background-color: var(--paper); color: var(--ink-2); cursor: pointer;
  transition: background-color .9s var(--ease);
}
.splash__logo { max-width: 1100px; }
.splash__foot {
  position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto;
  display: flex; justify-content: space-between; padding-bottom: 28px;
  font-size: var(--t-small); font-weight: 500;
  animation: fade-up .7s var(--ease) .6s both;
}
.logo--splash { transform-origin: 0 0; transition: transform 1s var(--ease), fill .9s var(--ease); }
.logo--splash .logo-bars polygon { animation: bar-in .9s var(--ease) both; }
.logo--splash .logo-bars--l polygon { --dx: -80px; }
.logo--splash .logo-bars--r polygon { --dx: 80px; }
.logo--splash .logo-bars polygon:nth-child(2) { animation-delay: .08s; }
.logo--splash .logo-bars polygon:nth-child(3) { animation-delay: .16s; }
.logo--splash .logo-letters { animation: fade-up .8s var(--ease) .2s both; }
.logo--splash .logo-spine { transform-box: fill-box; transform-origin: center bottom; animation: spine-in .6s var(--ease) .75s both; }
.logo--splash .logo-spine--r { animation-delay: .85s; }
@keyframes spine-in { from { opacity: 0; transform: scaleY(0); } }

/* Handover: indigo fades, the logo turns ink as it moves into place. */
.splash.is-handover { background-color: rgba(253, 253, 253, 0); cursor: auto; }
.splash.is-handover .logo--splash { fill: var(--ink); }
.splash.is-handover .logo--splash .logo-spine--l { fill: var(--indigo); }
.splash.is-handover .splash__foot { opacity: 0; transition: opacity .4s; }

/* The home logo waits under the splash, already in its final state, and
   takes over when the splash logo lands on it. */
.has-splash .hero__logo { visibility: hidden; }
.has-splash .logo--intro *, .splash-done .logo--intro * { animation: none !important; }

/* ---- header ------------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253, 253, 253, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head__in { height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-head__logo { display: block; flex: none; padding: 8px 0; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: var(--t-small); font-weight: 500; }
.site-nav a { position: relative; padding: 10px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--indigo); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover::after { transform: scaleX(1); } }
.site-head__end { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }

/* Catalogue: a small outlined button; inactive while "coming soon". */
.site-cat, .menu__cat {
  display: inline-block; padding: 8px 14px; border: 1px solid currentColor;
  font-size: var(--t-small); font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background .2s, color .2s;
}
.site-cat:not(.is-soon):hover { background: var(--ink); color: var(--paper); }
.site-cat.is-soon { color: var(--ink-2); border-color: var(--rule); cursor: default; }
/* Live catalogue: the same outline, split into Flipbook | PDF. */
.site-cat.cat-split { display: inline-flex; padding: 0; }
.site-cat.cat-split:hover { background: none; color: inherit; }
.cat-split a { padding: 8px 14px; transition: background .2s, color .2s; }
.site-cat.cat-split a + a { border-left: 1px solid currentColor; }
@media (hover: hover) and (pointer: fine) { .site-cat.cat-split a:hover { background: var(--ink); color: var(--paper); } }

/* The bars from the logo as the menu button. Open: the middle bar slides
   out and the outer two straighten, so it reads as "close". */
.menu-btn {
  display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
/* Drawn at the same scale as the header logo, so the bars match the E's. */
.menu-btn .bars { height: calc(var(--logo-w) * 91 / 382.44); width: auto; fill: currentColor; overflow: visible; }
.menu-btn polygon { transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease), opacity .15s; }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { color: var(--indigo); } }
.menu-btn:active, .to-top__btn:active, .motion-btn:active { transform: scale(.97); transition: transform .16s var(--ease); }
.menu-btn[aria-expanded="true"] { color: var(--indigo); }
.menu-btn[aria-expanded="true"] polygon:nth-child(1) { transform: translateY(36px) rotate(42deg); }
.menu-btn[aria-expanded="true"] polygon:nth-child(2) { opacity: 0; transform: translateX(-12px); }
.menu-btn[aria-expanded="true"] polygon:nth-child(3) { transform: translateY(-36px) rotate(-38deg); }

/* The menu: an indigo band that drops under the header. */
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--indigo); color: var(--paper);
  transform-origin: top; transition: transform .22s var(--ease), opacity .18s, visibility .22s;
}
.menu[hidden] { display: block; visibility: hidden; opacity: 0; transform: scaleY(.96); pointer-events: none; }
/* Same height and link size as the header bar above it, links lined up
   on the right under the main nav. */
.menu__in { display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 2.4vw, 32px); min-height: var(--head); }
.menu nav { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 3vw, 40px); font-size: var(--t-small); font-weight: 500; }
.menu nav a { padding: 10px 0; }
.menu nav a:hover, .menu nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu__cat { display: none; }
.menu__cat.is-soon { opacity: .7; cursor: default; }

/* ---- home hero --------------------------------------------------------- */

.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__logo { margin: 0; }
.hero__info { margin-top: clamp(32px, 5vw, 72px); padding-top: 20px; border-top: 1px solid var(--ink); row-gap: 24px; }
.hero__intro { grid-column: 1 / span 5; font-size: var(--t-h2); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.hero__event { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.hero__event dt { font-size: var(--t-small); font-weight: 300; color: var(--ink-2); }
.hero__event dd { font-size: var(--t-small); font-weight: 700; margin-top: 2px; }
.hero__event--stack { grid-template-columns: 1fr; gap: 12px; margin: 16px 0 48px; }

/* Logo intro: the bars slide in from outside, the letters settle. */
@media (prefers-reduced-motion: no-preference) {
  .logo--intro .logo-bars polygon { animation: bar-in .9s var(--ease) both; }
  .logo--intro .logo-bars--l polygon { --dx: -60px; }
  .logo--intro .logo-bars--r polygon { --dx: 60px; }
  .logo--intro .logo-bars polygon:nth-child(2) { animation-delay: .07s; }
  .logo--intro .logo-bars polygon:nth-child(3) { animation-delay: .14s; }
  .logo--intro .logo-letters { animation: fade-up .9s var(--ease) .1s both; }
  .logo--intro .logo-spine { transform-box: fill-box; transform-origin: center bottom; animation: spine-in .7s var(--ease) .4s both; }
}
@keyframes bar-in { from { transform: translateX(var(--dx)); opacity: 0; } }
@keyframes fade-up { from { transform: translateY(24px); opacity: 0; } }

/* ---- "Designs that evoke" word wheel -----------------------------------
   Default (no JS, or reduced motion): a plain list of words and names.
   .is-live (set by site.js): the wheel rolls to the next word on its own
   every few seconds and shows that student's project; it pauses while
   hovered and while off screen. It never takes over the page scroll. */

.evoke { padding-bottom: clamp(48px, 7vw, 96px); }
.evoke__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: center; }
.evoke__line { grid-column: 1 / -1; }
.evoke__lead { font-size: var(--t-h1); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 24px; }
.evoke__words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px var(--gut); }
.evoke__words a { display: block; font-size: var(--t-h2); font-weight: 700; line-height: 1.25; }
.evoke__words a:hover { color: var(--indigo); }
.evoke__who { display: block; font-size: var(--t-small); font-weight: 400; color: var(--ink-2); }
.evoke__lead em { font-style: normal; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .12em; text-underline-offset: .16em; text-decoration-skip-ink: none; }
.evoke__pic { display: none; }

.evoke.is-live { --lh: 1.2em; padding-block: clamp(48px, 8vw, 120px); }

.evoke.is-live .evoke__line {
  grid-column: 1 / span 7; display: flex; align-items: center; gap: .3em;
  font-size: clamp(28px, 2.4vw + 12px, 48px); font-weight: 800; letter-spacing: -.02em;
}
.evoke.is-live .evoke__lead { font-size: 1em; margin: 0; white-space: nowrap; }
.evoke.is-live .evoke__wheel {
  height: calc(5 * var(--lh)); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 38%, #000 62%, transparent);
          mask-image: linear-gradient(transparent, #000 38%, #000 62%, transparent);
}
.evoke.is-live .evoke__words {
  display: block; line-height: var(--lh);
  transform: translateY(calc((2 - var(--k, 0)) * var(--lh)));
  transition: transform .6s var(--ease-move);
}
.evoke.is-live .evoke__words li { height: var(--lh); opacity: .22; transition: opacity .5s var(--ease); }
.evoke.is-live .evoke__words li.is-on { opacity: 1; }
.evoke.is-live .evoke__words li.is-on a { color: var(--indigo); }
.evoke.is-live .evoke__words.no-anim, .evoke.is-live .evoke__words.no-anim li { transition: none; }
.evoke.is-live .evoke__words a { font-size: 1em; font-weight: 800; line-height: inherit; white-space: nowrap; }
.evoke.is-live .evoke__who { display: none; }

.evoke.is-live .evoke__pic { display: block; grid-column: 9 / span 4; }
.evoke.is-live .motion-btn { grid-column: 9 / span 4; justify-self: start; }

/* Pause / Play for the moving parts. Quiet text, but a full tap target. */
.motion-btn {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 var(--t-small)/1 "Manrope", "Helvetica Neue", Arial, sans-serif; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.motion-btn:hover { color: var(--indigo); text-decoration-color: currentColor; }
.drift__bar { display: flex; justify-content: flex-end; margin-top: 8px; }
.evoke__frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--wash); margin-bottom: 14px; }
.evoke__frame img {
  position: absolute; inset: 0; height: 100%;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.evoke__frame img.is-on { opacity: 1; transform: none; }
.evoke__name { font-size: var(--t-small); font-weight: 700; }
.evoke__title { font-size: var(--t-small); color: var(--ink-2); }
.evoke__pic:hover .evoke__title { color: var(--indigo); }

/* ---- project grid ------------------------------------------------------ */

.projects { padding-bottom: clamp(64px, 9vw, 128px); }
.projects .h2 { padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: var(--gut); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gut); }
.tile { display: block; }
.tile__img { overflow: hidden; margin-bottom: 14px; }
.tile__img img { transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__img img { transform: scale(1.035); }
  .to-top__btn:hover { transform: translateY(-4px); }
  .year:hover .year__n, .year:hover .year__what { transform: translateX(6px); }
}
.tile__name { font-size: var(--t-small); font-weight: 700; }
.tile__title { font-size: var(--t-small); color: var(--ink-2); }
.tile:hover .tile__title { color: var(--indigo); }

/* ---- cohort: the graduates, with contact details ------------------- */

.cohort { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 128px); }
.cohort .h1 { padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: var(--gut); }
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gut); }
.person { scroll-margin-top: calc(var(--head) + 24px); }
.person__pic { display: block; margin-bottom: 12px; overflow: hidden; }
.person__pic img { transition: transform .6s var(--ease); }
.person__pic:hover img { transform: scale(1.03); }
.person__name { font-size: var(--t-small); font-weight: 700; line-height: 1.3; }
.person__project { display: inline-block; font-size: var(--t-small); color: var(--ink-2); margin-top: 2px; transition: color .2s; }
.person__project:hover { color: var(--indigo); }
.person__links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; margin-left: -8px; }
.person__links a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: color .2s, background-color .2s; }
.person__links a:hover { color: var(--paper); background: var(--indigo); }
.person__links .ico { width: 18px; height: 18px; }
/* Linked from a project page: mark the graduate it came from. */
.person:target .person__name { color: var(--indigo); }

/* ---- project page ------------------------------------------------------ */

.project__hero { padding-top: var(--gut); }
.project__intro { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); row-gap: 40px; }
.student { grid-column: 1 / span 3; position: sticky; top: calc(var(--head) + 24px); align-self: start; }
.student__img { margin-bottom: 16px; }
.student__name { font-size: var(--t-h2); font-weight: 700; line-height: 1.25; }
.student__degree { font-size: var(--t-small); font-weight: 300; color: var(--ink-2); margin-top: 4px; }
.student__links { margin-top: 20px; border-top: 1px solid var(--rule); font-size: var(--t-small); font-weight: 500; }
.student__links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); transition: color .2s; }
.student__links span { flex: 1; min-width: 0; }
.student__links .ico { width: 17px; height: 17px; flex: none; }
.student__links a::after { content: "\2197"; font-weight: 400; }
.student__links a:hover { color: var(--indigo); }
.btn {
  display: inline-block; margin-top: 20px; padding: 12px 18px;
  background: var(--indigo); color: #fff; font-size: var(--t-small); font-weight: 700; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }

.project__text { grid-column: 5 / span 7; }
.project__strap { font-size: var(--t-h2); font-weight: 500; line-height: 1.3; color: var(--ink-2); margin-top: 12px; max-width: 40ch; }
.project__desc { margin-top: 32px; max-width: 62ch; }
.project__desc p + p { margin-top: 1em; }
.project__text .h2 { margin-top: 48px; }
.project__text .h2 + .project__desc { margin-top: 12px; }
.project__credits { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: var(--t-small); font-weight: 300; color: var(--ink-2); }

.project__video { padding-bottom: var(--gut); }
.project__video video { width: 100%; background: var(--ink); }

.gallery { display: grid; row-gap: var(--gut); padding-bottom: clamp(64px, 9vw, 128px); }
.gal-row { display: flex; gap: var(--gut); width: var(--w, 100%); }
.gal-item { min-width: 0; }
.gal-item video { display: block; width: 100%; height: auto; background: var(--paper-2, #F2F2F2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); padding-bottom: clamp(48px, 6vw, 80px); }
.pager a { padding: 20px 0; font-size: var(--t-h2); font-weight: 700; transition: color .2s; }
.pager a:last-child { text-align: right; }
.pager a:hover { color: var(--indigo); }
.pager span { display: block; font-size: var(--t-small); font-weight: 300; color: var(--ink-2); margin-bottom: 4px; }

/* ---- about ------------------------------------------------------------- */

.about { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 128px); row-gap: 32px; }
.about__h { grid-column: 1 / -1; }
.about__text { grid-column: 1 / span 7; display: grid; align-content: start; gap: 1em; max-width: 62ch; }
.about__text p:first-child { font-size: var(--t-h2); font-weight: 500; line-height: 1.4; }
.about__side { grid-column: 9 / span 4; }
.about__side .h2 { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.about__names { columns: 2; column-gap: var(--gut); margin-top: 16px; font-size: var(--t-small); }
.about__names a { display: block; padding: 3px 0; }
.about__names a:hover { color: var(--indigo); }
.about__names + .h2 { margin-top: 40px; }
.about__credits { display: grid; gap: 14px; margin-top: 16px; font-size: var(--t-small); }
.about__credits dt { color: var(--ink-2); font-weight: 300; }
.about__credits dd { font-weight: 500; }
.about__credits a:hover { color: var(--indigo); }
.about__side .about__class { font-size: var(--t-body); font-weight: 500; line-height: 1.4; }

/* Catalogue messages: two cards side by side; each statement opens below
   its card. */
.msgs { padding-bottom: clamp(48px, 7vw, 96px); }
.msgs__h { padding-top: 16px; border-top: 1px solid var(--ink); margin-bottom: 24px; }
.msgs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gut); align-items: start; }
.msg summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: end; cursor: pointer; list-style: none; }
.msg summary::-webkit-details-marker { display: none; }
.msg__who { display: grid; gap: 2px; padding-bottom: 4px; }
.msg__kind { font-size: var(--t-small); color: var(--ink-2); margin-bottom: 6px; }
.msg__name { font-size: var(--t-h2); font-weight: 700; line-height: 1.25; }
.msg__role { font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; }
.msg__toggle { justify-self: start; margin-top: 16px; font-size: var(--t-small); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.msg__toggle::after { content: " +"; }
.msg[open] .msg__toggle::after { content: " −"; }
.msg__close, .msg[open] .msg__open { display: none; }
.msg[open] .msg__close { display: inline; }
.msg summary:hover .msg__toggle { color: var(--indigo); }
.msg summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
.msg__text { display: grid; gap: 1em; padding-top: 24px; max-width: 62ch; }
/* Where supported, the statement slides open instead of appearing. */
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .msg::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .msg[open]::details-content { block-size: auto; }
}

/* ---- past cohorts and sponsors ---------------------------------------- */

.past, .sponsors { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 128px); }
.past .h1, .sponsors .h1 { padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.past__intro { margin-top: 16px; color: var(--ink-2); max-width: 50ch; }
.years { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--gut); margin-top: clamp(32px, 5vw, 64px); }
.year { display: block; padding: 16px 0 18px; border-top: 1px solid var(--rule); transition: color .2s; }
.year__n, .year__what { transition: transform .25s var(--ease); }
.year__n { display: block; font-size: var(--t-h1); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.year__what { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--ink-2); }
.year__what::after { content: " \2197"; }
.year:hover { color: var(--indigo); }
.years li:first-child .year { border-top-color: var(--indigo); }
/* Tier label on the left, names on the right, stepping down the type scale. */
.tier { padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule); row-gap: 16px; }
/* Each tier's colour, used on its label. */
.tier--platinum { --tier: var(--indigo); --tier-text: #fff; }
.tier--gold     { --tier: var(--yellow); --tier-text: var(--ink); }
.tier--silver   { --tier: #989AAA;       --tier-text: var(--ink); }
.tier--bronze   { --tier: #C8874A;       --tier-text: var(--ink); }
.tier__name { grid-column: 1 / span 3; justify-self: start; align-self: start; margin: 0; padding: 6px 12px; background: var(--tier); color: var(--tier-text); font-size: var(--t-small); font-weight: 700; line-height: 1.2; }
.tier__list { grid-column: 4 / -1; display: grid; gap: 12px var(--gut); }
.tier__list a:hover { color: var(--indigo); }
.tier__list { align-items: center; --logo-h: 28px; --sponsor-w: 150px; row-gap: 24px; }
.tier--platinum .tier__list { --logo-h: 64px; --sponsor-w: 100%; }
.tier--gold .tier__list { --logo-h: 52px; --sponsor-w: 100%; }
.tier--silver .tier__list { --logo-h: 36px; --sponsor-w: 210px; }
.tier__logo { display: block; width: auto; height: var(--logo-h); max-width: min(100%, var(--sponsor-w)); object-fit: contain; object-position: left center; background: none; }
.tier__logo.is-dark { filter: brightness(0); }
.tier--platinum .tier__list { font-size: var(--t-h1); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tier--gold .tier__list { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tier--silver .tier__list { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: var(--t-body); font-weight: 500; line-height: 1.3; }
.tier--bronze .tier__list { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: var(--t-small); font-weight: 500; line-height: 1.3; }

.nf { padding-block: clamp(64px, 12vw, 160px); }
.nf p { margin-top: 16px; }
.nf a { text-decoration: underline; text-decoration-color: var(--indigo); text-underline-offset: 3px; }

/* ---- footer ------------------------------------------------------------ */

/* Back to top: a caret centred just above the footer line. */
.to-top { display: flex; justify-content: center; }
.to-top__btn { display: grid; place-items: center; width: 56px; height: 48px; color: var(--ink); transition: color .2s, transform .35s var(--ease); }
.to-top__chev { width: 14px; height: 14px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateY(3px) rotate(45deg); }
.to-top__btn:hover { color: var(--indigo); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.site-foot { border-top: 1px solid var(--ink); }
.site-foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: var(--gut); align-items: start; padding-top: 32px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-small); }
.site-foot__mark svg { width: 44px; }
.site-foot p { color: var(--ink-2); line-height: 1.4; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.site-foot nav a:hover { color: var(--indigo); }

/* ---- scroll reveal ----------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---- responsive -------------------------------------------------------- */

@media (max-width: 1199px) {
  .years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__intro { grid-column: 1 / -1; }
  .hero__event { grid-column: 1 / -1; }
  .student { grid-column: 1 / span 4; }
  .project__text { grid-column: 6 / span 7; }
  .about__text, .about__side { grid-column: 1 / -1; }
  .evoke__words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evoke.is-live .evoke__in { row-gap: 32px; align-content: center; }
  .evoke.is-live .evoke__line { grid-column: 1 / -1; }
  .evoke.is-live .evoke__pic, .evoke.is-live .motion-btn { grid-column: 1 / span 5; }
}

@media (max-width: 699px) {
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier__name, .tier__list { grid-column: 1 / -1; }
  .tier--silver .tier__list, .tier--bronze .tier__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-cat, .site-cat.cat-split { display: none; }
  .menu__cat { display: inline-block; padding: 0; border: 0; }
  .menu__cat.cat-split { display: inline-flex; gap: 16px; }
  .menu__cat.cat-split a { padding: 10px 0; }
  .menu__in { justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
  .menu nav { flex-wrap: nowrap; gap: 16px; }
  .site-head__end { gap: 14px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msgs__list { grid-template-columns: 1fr; }
  :root { --logo-w: 88px; }
  .tiles { column-gap: 12px; }
  .hero__event { grid-template-columns: 1fr 1fr; }
  .hero__event > div:last-child { grid-column: 1 / -1; }
  .student { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 40% 1fr; column-gap: 16px; }
  .student__img { grid-row: span 4; margin: 0; }
  .student__links { margin-top: 12px; }
  .project__text { grid-column: 1 / -1; order: -1; }
  .gal-row { flex-direction: column; width: 100%; }
  .site-foot__in { grid-template-columns: auto 1fr; }
  .site-foot nav { grid-column: 1 / -1; }
  .evoke__words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evoke.is-live .evoke__line { flex-direction: column; align-items: flex-start; gap: 0; font-size: 30px; }
  .evoke.is-live .evoke__wheel { height: calc(3 * var(--lh)); }
  .evoke.is-live .evoke__words { transform: translateY(calc((1 - var(--k, 0)) * var(--lh))); }
  .evoke.is-live .evoke__pic, .evoke.is-live .motion-btn { grid-column: 1 / span 9; }
}

/* Small phones (under 400px): a smaller logo, tighter gaps and a narrower
   menu button so the logo, three nav links and the menu fit on one line
   without squashing the logo. */
@media (max-width: 399px) {
  :root { --logo-w: 72px; }
  .site-head__in { gap: 12px; }
  .site-head__end { gap: 10px; }
  .site-nav { gap: 12px; }
  .menu-btn { width: 32px; margin-right: -4px; }
}
@media (max-width: 339px) {
  :root { --logo-w: 60px; }
  .site-nav { gap: 10px; }
}
