/*
Theme Name: Hillary Uzomba
Theme URI: https://hillaryuzomba.com
Author: Hillary Uzomba
Author URI: https://hillaryuzomba.com
Description: An editorial one-page portfolio. High contrast and colour blocked, with a fixed video hero, a sticky feature split, a three-up work grid that takes images or video, press cards and a social footer. No gradients, no rounded cards, no drop shadows. Fonts are self-hosted, so nothing calls an external CDN.
Version: 2.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uzomba
Tags: portfolio, one-column, custom-colors, custom-menu, custom-logo, featured-images, theme-options, translation-ready, full-width-template
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Palette: the Hillary Uzomba brand. Blue, black and gold, on mist grey. */
  --hu-black:      #000000;
  --hu-ink:        #2E3A4A; /* headings, used the way black is */
  --hu-slate:      #586378; /* body text */
  --hu-grey:       #586378; /* meta text: 4.9:1 on mist, 6.0:1 on white */
  --hu-paper:      #E9E9E9; /* mist grey */
  --hu-white:      #FFFFFF;
  --hu-card:       #FFFFFF;
  --hu-social:     #F4F4F4;
  /* A block colour and the accent beat of the hero name. Too light to carry text on a light ground. */
  --hu-gold:       #F4B500;
  --hu-soft-blue:  #4284F5; /* the brand blue */
  /* The same blue, deepened until small text passes on mist (4.6:1) and on white (5.6:1). */
  --hu-deep-blue:  #0C5DE8;

  /*
   * Blue is the accent. At brand strength it is too pale to carry small text
   * on a light ground (3.0:1 on mist), so the brand blue does the display work
   * and the deep blue does the small work.
   */
  --accent:     var(--hu-soft-blue);
  --accent-ink: var(--hu-deep-blue);

  /* Semantic surfaces, light */
  --bg-page:     var(--hu-paper);
  --bg-feature:  var(--hu-white);
  --bg-card:     var(--hu-card);
  --bg-social:   var(--hu-social);
  --bg-hero:     var(--hu-paper);
  --hero-grid-line: rgba(46, 58, 74, 0.10);
  --hero-grid-size: 44px;
  --hero-text:   var(--hu-ink);
  --hero-text-alt: var(--hu-white);
  --hero-scrim:  0.42;
  --text:        var(--hu-ink);
  --text-body:   var(--hu-slate);
  --text-meta:   var(--hu-grey);
  --hairline:    #D9D9D9;
  --rule:        rgba(46, 58, 74, 0.12);
  --btn-bg:      var(--hu-white);
  --btn-fg:      var(--hu-ink);
  --portrait-fallback: #DEDEDE;

  --ease:  cubic-bezier(.16, 1, .3, 1);
  /* How long a hover takes to settle. Short hovers read as stiff; this is the house pace. */
  --hover: .6s;
  --gutter: clamp(16px, 3vw, 32px);
  /* The frame: see section 26 for which blocks bleed and which stop this far
     short of the screen edge. --pad is the text inset inside a framed block. */
  --frame: var(--gutter);
  --pad: clamp(14px, 1.6vw, 22px);
  --hero-stroke: clamp(1px, 0.18vw, 3px);

  /*
   * Anton is the thick headline face and has one weight. Antonio is its
   * lighter family: sub-headings at 700 and the thin accent inside a headline
   * at 300. Geist is the text face.
   */
  --font-display: Anton, "Arial Narrow", Impact, sans-serif;
  --font-sub:     Antonio, "Arial Narrow", sans-serif;
  --font-body:    Geist, system-ui, -apple-system, sans-serif;
  --font-accent:  Antonio, "Arial Narrow", sans-serif;
}

[data-theme="dark"] {
  --accent-ink:  var(--hu-soft-blue);
  --bg-page:     var(--hu-black);
  --bg-feature:  var(--hu-black);
  --bg-card:     #0A0A0A;
  --bg-social:   var(--hu-black);
  --bg-hero:     var(--hu-black);
  --hero-text:   var(--hu-white);
  --hero-text-alt: var(--hu-ink);
  --text:        #E9E9E9;
  --text-body:   #9BA0A8;
  --text-meta:   #9BA0A8;
  --hairline:    rgba(233, 233, 233, 0.18);
  --rule:        rgba(233, 233, 233, 0.18);
  --btn-bg:      var(--hu-black);
  --btn-fg:      #E9E9E9;
  --portrait-fallback: #1A1A1A;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anton has one weight and neither face has an italic: never let the browser fake one. */
  font-synthesis: none;
  /* Fixed header must not hide anchor targets. */
  scroll-padding-top: 72px;
}

/* Geist ships no italic, so in body copy the browser may slant an <em>. Headings inside the copy still may not. */
.hu-prose { font-synthesis: style; }
.hu-prose h2, .hu-prose h3, .hu-prose h4, .hu-prose blockquote { font-synthesis: none; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.hu-menu-open { overflow: hidden; }

img, video { max-width: 100%; display: block; }

figure { margin: 0; }

a { color: var(--text); text-decoration: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.hu-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--hu-ink);
  color: var(--hu-white);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 13px;
}
.hu-skip-link:focus { left: 8px; top: 8px; }

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}

/* ==========================================================================
   3. Fixed header
   ========================================================================== */

.hu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  /* Reads over any background beneath it. */
  mix-blend-mode: difference;
  color: var(--hu-white);
  transition: transform .6s var(--ease);
}
/* Scrolling down, the header gets out of the way; scrolling up brings it back. */
.hu-header.is-away { transform: translateY(-120%); }

.hu-header__brand {
  /* The name beside the mark is the logo, so it is set in the headline face. */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--hu-white);
}

.hu-header__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 22px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 1px solid var(--hu-white);
  border-radius: 999px;
  color: var(--hu-white);
  cursor: pointer;
}
/* An invisible 44 square target behind a 30px button. */
.hu-header__toggle::after {
  content: "";
  position: absolute;
  inset: -7px;
}
.hu-header__toggle svg { width: 15px; height: 15px; }
.hu-header__toggle .hu-icon-sun { display: none; }
[data-theme="dark"] .hu-header__toggle .hu-icon-sun  { display: block; }
[data-theme="dark"] .hu-header__toggle .hu-icon-moon { display: none; }

/*
 * The two bars are 26 by 2, which gives a 26 by 21 target: under the 24px
 * minimum in WCAG 2.2 and well under what a thumb wants. The padding grows the
 * target to 44 square and the negative margin keeps the header layout as it was.
 */
.hu-header__burger {
  display: grid;
  gap: 5px;
  /* Three 2px bars with 5px gaps are 16px tall; 14px each side clears 44. */
  padding: 14px 9px;
  margin: -14px -9px;
  background: none;
  border: 0;
  cursor: pointer;
}
.hu-header__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--hu-white);
}

/* ==========================================================================
   4. Drawer
   ========================================================================== */

.hu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(50vw, 560px);
  z-index: 60;
  padding: 0 clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .6s var(--ease), visibility .6s;
}
.hu-drawer[data-open="true"] { transform: translateX(0); visibility: visible; }

/* No JS: the drawer is reachable but never covers the page. */
.no-js .hu-drawer { position: static; width: auto; transform: none; visibility: visible; }

.hu-drawer__link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #E9E9E9;
  transition: color var(--hover) var(--ease);
}
.hu-drawer__link:hover,
.hu-drawer__link:focus-visible { color: var(--hu-soft-blue); }

.hu-drawer__close {
  position: absolute;
  top: 18px;
  right: clamp(24px, 4vw, 56px);
  background: none;
  border: 0;
  color: #E9E9E9;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.hu-drawer__social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hu-drawer__social a {
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(233, 233, 233, 0.8);
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-drawer__social a:last-child { border-right: 0; }
.hu-drawer__social a:hover,
.hu-drawer__social a:focus-visible { background: var(--hu-soft-blue); color: var(--hu-white); }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hu-hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* Nine placements, set from the Customiser. */
  align-content: var(--hero-align, center);
  justify-items: var(--hero-justify, start);
  overflow: hidden;
  background: var(--bg-hero);
  padding: clamp(72px, 12vh, 140px) 0;
  box-sizing: border-box;
}

/* Both layers are fixed so later sections scroll up over them. */
.hu-hero__fallback,
.hu-hero__video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 0;
}
/* The house grid, on whichever ground was chosen. */
.hu-hero__fallback {
  background-color: var(--bg-hero);
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: var(--hero-grid-size) var(--hero-grid-size);
}

/*
 * Footage is unpredictable, so a hero name over video needs its own ground. The
 * scrim darkens whatever is playing just enough to guarantee the name reads,
 * and it also fixes the name to a single known ground so the colour cycle does
 * not have to survive both a bright frame and a dark one.
 */
.hu-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--overlay-colour, #000000);
  opacity: var(--overlay-opacity, 0);
}

.hu-hero__scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 1;
  background: rgba(0, 0, 0, var(--hero-scrim));
  pointer-events: none;
}

/* With video behind it the name is always light, never ink. */
.hu-hero[data-media="true"] { --hero-text: var(--hu-white); }
.hu-hero__video { object-fit: cover; }
.hu-hero__video[hidden] { display: none; }

/*
 * A provider iframe cannot be object-fit, so it is sized to the larger of a 16:9
 * box and the viewport, then centred. The extra scale pushes the player's own
 * furniture, title top left and logo bottom right, past the edges of the screen,
 * which is the only way to get a clean background out of an embed. Pointer
 * events are off so the embed never takes a click, and never shows its controls.
 */
.hu-hero__embed {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%) scale(1.4);
  transform-origin: center;
  pointer-events: none;
  overflow: hidden;
  /*
   * Held back until the player reports it is really playing. The spinner and
   * the big play button sit dead centre, where no amount of cropping reaches
   * them, so the only way to keep them off screen is not to show the frame yet.
   */
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.hu-hero__embed[data-playing="true"] { opacity: 1; }

/* Without JavaScript there is nothing to report playback, so show it anyway. */
.no-js .hu-hero__embed { opacity: 1; }
.hu-hero__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hu-hero__title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-weight: 400;
  /* Anton is condensed, so the name is set larger than a wide face would be. */
  font-size: clamp(88px, 15.5vw, 290px);
  /*
   * One line of the name. Anton's capitals are 0.86em tall, so 0.94em holds
   * them with a hair of room above and below, and the roll steps by the same.
   */
  --hero-step: 0.94em;
  line-height: var(--hero-step);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--hero-text);
  opacity: var(--hero-opacity, 1);
  overflow: hidden;
  text-align: var(--hero-text-align, left);
}
/*
 * The mask for the rise animation. Negative tracking shortens the last glyph's
 * advance, so a letter with a diagonal leg, such as A, overshoots its own box
 * and loses the leg to the clip. The padding gives it room inside the clip box
 * and the negative margin keeps the line's layout width unchanged.
 */
.hu-hero__line {
  display: block;
  overflow: hidden;
  padding-right: 0.09em;
  margin-right: -0.09em;
  /*
   * The name is set as a block: the script measures each line and scales the
   * shorter ones up to the widest, so both edges of the name align. Without
   * the script every line keeps the one size.
   */
  font-size: calc(1em * var(--fit, 1));
}
/* When the fit lands after first paint, the shorter line grows into place instead of jumping. */
.hu-motion .hu-hero__line { transition: font-size .5s var(--ease); }
.hu-hero__line > span {
  display: block;
  -webkit-text-stroke-width: 0;
}

/* --- Variant: rise loop (the original) ------------------------------- */

.hu-hero[data-anim="rise"] .hu-hero__track > i:nth-child(n+2) { display: none; }
.hu-hero[data-anim="rise"] .hu-hero__track > i:first-child {
  animation:
    hu-rise-loop 6s var(--ease) infinite,
    hu-name-cycle 36s steps(1, end) infinite;
}
.hu-hero[data-anim="rise"] .hu-hero__line:nth-child(1) .hu-hero__track > i:first-child { animation-delay: 0.1s, 0.1s; }
.hu-hero[data-anim="rise"] .hu-hero__line:nth-child(2) .hu-hero__track > i:first-child { animation-delay: 0.28s, 0.28s; }
.hu-hero[data-anim="rise"] .hu-hero__line:nth-child(n+3) .hu-hero__track > i:first-child { animation-delay: 0.46s, 0.46s; }

@keyframes hu-rise-loop {
  0%   { opacity: 0; transform: translateY(0.9em); }
  10%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(0); }
  92%  { opacity: 0; transform: translateY(-0.9em); }
  100% { opacity: 0; transform: translateY(0.9em); }
}

/* --- Variant: roll --------------------------------------------------- */

/*
 * The word never fades. It rolls off the top while the next look rolls up from
 * below, one line per beat. Each copy carries its own look, so the six beats
 * are six stacked words rather than one word changing colour.
 */
.hu-hero__line { height: var(--hero-step); }
.hu-hero__track { display: block; will-change: transform; }
.hu-hero__track > i {
  display: block;
  height: var(--hero-step);
  line-height: var(--hero-step);
  font-style: normal;
}
.hu-hero__track > i:nth-child(1) { color: var(--hero-text); }
.hu-hero__track > i:nth-child(2) { color: transparent; -webkit-text-stroke: var(--hero-stroke) var(--hero-text); }
.hu-hero__track > i:nth-child(3) { color: var(--hero-text-alt); }
.hu-hero__track > i:nth-child(4) { color: transparent; -webkit-text-stroke: var(--hero-stroke) var(--hero-text-alt); }
.hu-hero__track > i:nth-child(5) { color: var(--hero-text-accent); }
.hu-hero__track > i:nth-child(6) { color: transparent; -webkit-text-stroke: var(--hero-stroke) var(--hero-text-accent); }
.hu-hero__track > i:nth-child(7) { color: var(--hero-text); }

.hu-hero[data-anim="roll"] .hu-hero__track {
  animation: hu-name-roll 36s var(--ease) infinite;
}
.hu-hero[data-anim="roll"] .hu-hero__line:nth-child(2) .hu-hero__track { animation-delay: 0.18s; }
.hu-hero[data-anim="roll"] .hu-hero__line:nth-child(n+3) .hu-hero__track { animation-delay: 0.36s; }

/*
 * The track steps by one line, --hero-step. A percentage here would resolve
 * against the whole seven-copy track instead of one line.
 */
@keyframes hu-name-roll {
  0%, 12.5%      { transform: translateY(0); }
  16.66%, 29.16% { transform: translateY(calc(var(--hero-step) * -1)); }
  33.33%, 45.83% { transform: translateY(calc(var(--hero-step) * -2)); }
  50%, 62.5%     { transform: translateY(calc(var(--hero-step) * -3)); }
  66.66%, 79.16% { transform: translateY(calc(var(--hero-step) * -4)); }
  83.33%, 95.83% { transform: translateY(calc(var(--hero-step) * -5)); }
  100%           { transform: translateY(calc(var(--hero-step) * -6)); }
}

/* --- Variant: none ---------------------------------------------------- */

.hu-hero[data-anim="none"] .hu-hero__track { animation: none; }
.hu-hero[data-anim="none"] .hu-hero__track > i:nth-child(n+2) { display: none; }

/* ==========================================================================
   6. Feature (New Yorker split)
   ========================================================================== */

.hu-feature {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  align-items: stretch;
  background: var(--bg-feature);
}

/* With no portrait the split collapses to one centred column. */
.hu-feature:not(:has(.hu-feature__portrait)) .hu-feature__body { grid-column: 1 / -1; }

.hu-feature__body {
  display: grid;
  gap: 22px;
  justify-items: center;
  align-content: center;
  text-align: center;
  /*
   * A ch measure here would resolve against this element's 16px font, not the
   * 49px headline, which crushed the headline into a six line stack. The
   * measure is set per element below instead.
   */
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) clamp(24px, 3vw, 40px);
}

.hu-feature__kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent-ink);
}

.hu-feature__headline {
  margin: 0;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--text);
  /* Measured in the headline's own size, so it holds at every clamp step. */
  max-width: 13em;
}

.hu-feature__dek {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 32em;
  text-wrap: pretty;
}

/* The thin Antonio accent inside headlines only. */
.hu-feature__headline em,
.hu-press__headline em {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0;
}

/* On a coloured panel the accent is the thin weight alone: blue would vanish on a blue or gold panel. */
.hu-press__headline em { color: inherit; }
.hu-press__headline { display: block; }

.hu-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-btn:hover,
.hu-btn:focus-visible { background: var(--btn-fg); color: var(--btn-bg); }

/* The play mark sits in its own ring so the button reads as a control. */
.hu-btn--play { padding-left: 16px; }
.hu-btn__play {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
}
.hu-btn__play svg { width: 13px; height: 13px; margin-left: 1px; }

.hu-feature__portrait {
  position: relative;
  min-height: 100vh;
  background: var(--portrait-fallback);
  display: grid;
  place-items: center;
}
.hu-feature__portrait video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hu-feature__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Where the crop holds when the column is taller than the picture. Low values
     keep the head in frame; the default is set from the Customiser. */
  object-position: 50% var(--portrait-focus, 25%);
}
.hu-placeholder {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--hu-grey);
}

/* ==========================================================================
   7. Work grid
   ========================================================================== */

.hu-work {
  position: relative;
  z-index: 3;
  display: grid;
  /* Always three per row, however many tiles are added. */
  grid-template-columns: repeat(3, 1fr);
}
.hu-work > .hu-placeholder { grid-column: 1 / -1; }

.hu-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  overflow: hidden;
  /* Colours arrive as custom properties, so dark mode can redefine them
     without fighting an inline style. */
  background: var(--tile-bg, var(--bg-card));
  color: var(--tile-ink, inherit);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  transform-style: preserve-3d;
}
.hu-motion .hu-tile.is-tilting {
  z-index: 4;
  box-shadow: 0 18px 44px rgba(46, 58, 74, 0.22);
  /*
   * While the tilt is live the transform must track the pointer directly; an
   * eased transition would chase the cursor 300ms behind. Dropping the class
   * on leave restores the transition, so the snap back is still animated.
   */
  transition: box-shadow .7s var(--ease);
}

.hu-tile__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hu-tile__media img,
.hu-tile__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A provider embed cannot be object-fit, so it is oversized and centre-cropped
   inside the tile, which also hides the player's own furniture. */
.hu-tile__embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hu-tile__embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 178%;
  height: 178%;
  transform: translate(-50%, -50%) scale(1.4);
  border: 0;
}

.hu-tile__caption {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.7vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  max-width: 11ch;
  transition: opacity var(--hover) var(--ease), transform .9s var(--ease);
}
/* The veil replaces the caption rather than stacking on top of it. */
.hu-tile:hover .hu-tile__caption,
.hu-tile:focus-visible .hu-tile__caption {
  opacity: 0;
  transform: translate3d(28%, -28%, 0);
}

.hu-tile__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--veil-bg, var(--hu-ink));
  color: var(--veil-ink, var(--hu-white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  transition: opacity var(--hover) var(--ease);
}

/*
 * The caption leaves up and to the right while the label arrives from down and
 * to the left, so the two read as a swap rather than a dissolve. Nothing about
 * the tile itself changes.
 */
.hu-tile__veil > span {
  display: block;
  transform: translate3d(-45%, 45%, 0);
  opacity: 0;
  transition: transform .9s var(--ease), opacity var(--hover) var(--ease);
}
.hu-tile:hover .hu-tile__veil,
.hu-tile:focus-visible .hu-tile__veil { opacity: 0.94; }
.hu-tile:hover .hu-tile__veil > span,
.hu-tile:focus-visible .hu-tile__veil > span { transform: none; opacity: 1; }

/* ==========================================================================
   8. Press
   ========================================================================== */

.hu-press {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}

.hu-press__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hu-press__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text);
}
.hu-press__kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-meta);
}

.hu-press__grid {
  display: grid;
  /* Fixed three across. auto-fit stretched two cards over the whole row. */
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}
@media (max-width: 900px) { .hu-press__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hu-press__grid { grid-template-columns: 1fr; } }

.hu-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--text);
  overflow: hidden;
  transition: transform var(--hover) var(--ease), border-color var(--hover) var(--ease);
}
.hu-card:hover,
.hu-card:focus-visible { transform: translateY(-6px); border-color: var(--text); }

.hu-card__panel {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 30px 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: 34px 34px;
}
.hu-card__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hu-press__headline {
  margin: 0;
  text-align: center;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: pretty;
}

.hu-card__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--hu-white);
  background: rgba(46, 58, 74, 0.55);
  opacity: 0;
  transition: opacity var(--hover) var(--ease);
}
/* A hover state on a screen with no hover only gets stuck after a tap. */
@media (hover: none) {
  .hu-card__veil,
  .hu-tile__veil { display: none; }
}
.hu-card:hover .hu-card__veil,
.hu-card:focus-visible .hu-card__veil { opacity: 1; }

.hu-card__body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.hu-pill {
  justify-self: start;
  border: 1px solid var(--hairline);
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-meta);
}
.hu-card__dek {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.hu-footer {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  padding: 0 var(--gutter) clamp(28px, 4vw, 48px);
}

.hu-footer__social {
  display: grid;
  /* One row, one column per box, however many there are. auto-fit restretched
     the row whenever a slot was empty, and a fixed five orphaned a sixth. */
  grid-template-columns: repeat(var(--social-count, 5), 1fr);
}
.hu-footer__social a,
.hu-footer__social span {
  background: var(--bg-social);
  /* Smaller than the 5:3 boxes: an icon needs far less room than a word did. */
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-right: 1px solid var(--rule);
  color: var(--text);
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-footer__social svg {
  width: 34px;
  height: 34px;
  display: block;
}
/* Networks with no icon of their own fall back to their name. */
.hu-footer__social .hu-social-name {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}
.hu-footer__social > *:last-child { border-right: 0; }
.hu-footer__social a:hover,
.hu-footer__social a:focus-visible {
  background: var(--hover-bg, var(--hu-ink));
  color: var(--hover-fg, var(--hu-white));
}

.hu-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(20px, 2.5vw, 32px);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-meta);
}
.hu-footer__legal a { color: var(--text-meta); transition: color var(--hover) var(--ease); }
.hu-footer__legal a:hover,
.hu-footer__legal a:focus-visible { color: var(--text); }
.hu-footer__legal > div { display: flex; flex-wrap: wrap; gap: 22px; }

/* ==========================================================================
   10. Inner pages (single, page, archive, 404)
   ========================================================================== */

.hu-inner {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(48px, 6vw, 90px);
}
.hu-inner__wrap { max-width: 74ch; margin: 0 auto; }

.hu-inner__meta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-meta);
  margin-bottom: 18px;
}
.hu-inner__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text);
}
.hu-inner__title em {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

.hu-prose {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-body);
}
.hu-prose h2, .hu-prose h3, .hu-prose h4 {
  font-family: var(--font-sub);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
  color: var(--text);
  margin: 2em 0 0.6em;
}
.hu-prose h2 { font-size: clamp(22px, 2.4vw, 32px); }
.hu-prose h3 { font-size: clamp(19px, 1.9vw, 24px); }
.hu-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.hu-prose blockquote {
  margin: 1.8em 0;
  font-family: var(--font-accent);
  font-style: normal;
  font-size: 21px;
  color: var(--text);
}
.hu-prose img { height: auto; margin: 1.6em 0; }
.hu-prose code, .hu-prose pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
.hu-prose pre {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: 18px;
  overflow-x: auto;
}
.hu-prose figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-meta);
}

.hu-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.hu-list a {
  display: grid;
  gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left var(--hover) var(--ease);
}
.hu-list a:hover { padding-left: 12px; }
.hu-list h2 {
  margin: 0;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: 0;
  line-height: 1.14;
  color: var(--text);
}

/* WordPress core classes */
.alignleft  { float: left;  margin: 0.4em 1.6em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.aligncenter { display: block; margin: 1.6em auto; }
.wp-caption-text { font-family: var(--font-body); font-size: 12px; color: var(--text-meta); }
.sticky, .gallery-caption, .bypostauthor { /* required by the theme check */ }

/* Keeps the admin bar clear of the fixed header. */
body.admin-bar .hu-header { top: 32px; }
body.admin-bar .hu-brandmark { top: calc(32px + var(--mark-top)); }
@media screen and (max-width: 782px) {
  body.admin-bar .hu-header { top: 46px; }
  body.admin-bar .hu-brandmark { top: calc(46px + var(--mark-top)); }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hu-feature { min-height: 0; }
  .hu-feature__portrait { min-height: 62vh; }
  /* Sticky columns stack badly on narrow screens. */
  .hu-feature { position: relative; }
}

@media (max-width: 760px) {
  /* Three squares stop being legible below roughly this width. */
  .hu-work { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  /* Search full width; sort and category side by side; the view switch sits
     under Newest, aligned with it, instead of floating off to the right. */
  .hu-filters { row-gap: 12px; }
  .hu-filters__label { flex-basis: 100%; margin: 0; }
  .hu-filters__search { flex-basis: 100%; }
  .hu-filters__views { margin-left: 0; flex-basis: 100%; justify-content: flex-start; }

  /* On phones the squares sit inset and centred, not pressed to the edges. */
  .hu-work {
    padding-inline: var(--gutter);
    gap: 14px;
  }
  /*
   * The social grid, three across the way stevenbartlett.com arranges it:
   * roomy cells, hairlines between, icons centred.
   */
  .hu-footer__social { grid-template-columns: repeat(3, 1fr); }
  .hu-footer__social a,
  .hu-footer__social span {
    min-height: 118px;
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  .hu-footer__social a:nth-child(3n),
  .hu-footer__social span:nth-child(3n) { border-right: 0; }
  .hu-drawer { width: min(86vw, 560px); }
  .hu-press__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hu-footer__legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .hu-footer__legal > span { line-height: 1.8; }
  /* Everything centred: the links in a centred row, the credit on its own line. */
  .hu-footer__legal > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
  }
  .hu-footer__legal .hu-footer__credit {
    flex-basis: 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 520px) {
  .hu-work { grid-template-columns: 1fr; }
  .hu-tile { padding: 20px; }
  .hu-drawer__social a { padding: 14px 10px; font-size: 13px; }
}

/* ==========================================================================
   12. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* The looping hero name ends invisible, so pin it on when animation is off. */
  .hu-hero__line > span {
    opacity: 1 !important;
    transform: none !important;
    color: var(--hero-text) !important;
    -webkit-text-stroke-width: 0 !important;
  }
}

/* ==========================================================================
   13. Article
   ========================================================================== */

/* Reading progress, pinned above everything. */
.hu-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.hu-progress__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* --- Masthead: the same ground as the article, never an inverted block --- */

.hu-masthead {
  background: var(--bg-page);
  color: var(--text);
  padding: clamp(78px, 9vw, 120px) var(--gutter) clamp(18px, 2.2vw, 28px);
}
.hu-masthead__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.hu-masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.hu-chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  /* Gold, because ink on the brand blue is 3.2:1 and this is small text. */
  background: var(--hu-gold);
  color: var(--hu-ink);
  text-decoration: none;
}
.hu-masthead__title {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 98px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  max-width: 17ch;
  color: var(--text);
}
.hu-masthead__title em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--accent-ink);
}
.hu-standfirst {
  margin: 16px auto 0;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.48;
  color: var(--text-body);
  max-width: 46ch;
}
/* Read time sits after the headline, not before it. */
.hu-masthead__after {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  padding-top: 14px;
  max-width: 46ch;
  border-top: 1px solid var(--hairline);
}

/* --- Lead image, on the same grid as the contents rail ------------------ */

.hu-lead {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hu-lead__frame {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background-color: var(--hu-ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  display: grid;
  place-items: center;
}
.hu-lead__frame img { width: 100%; height: 100%; object-fit: cover; }
.hu-lead__caption {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-meta);
}

/* --- Body: sticky rail beside the measure ------------------------------- */

.hu-article {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 3.6vw, 52px) var(--gutter) clamp(48px, 6vw, 90px);
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .hu-article { grid-template-columns: 1fr; } }

.hu-rail { position: sticky; top: 84px; display: grid; gap: 26px; }
@media (max-width: 900px) { .hu-rail { position: static; } }

.hu-toc__title { margin: 0 0 12px; }
.hu-toc ol { list-style: none; margin: 0; padding: 0; }
.hu-toc li { border-top: 1px solid var(--hairline); }
.hu-toc li:last-child { border-bottom: 1px solid var(--hairline); }
.hu-toc a {
  display: grid;
  padding: 11px 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-body);
  transition: color .2s var(--ease);
}
.hu-toc a:hover { color: var(--text); }
.hu-toc a[aria-current="true"] { color: var(--text); font-weight: 600; }

.hu-share { display: grid; gap: 8px; }
.hu-share__row { display: flex; gap: 6px; flex-wrap: wrap; }
.hu-share__row a {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.hu-share__row a:hover,
.hu-share__row a:focus-visible { background: var(--text); color: var(--bg-page); border-color: var(--text); }
.hu-share__row a::after {
  content: "";
  position: absolute;
  inset: -5px;
}
.hu-share__row svg { width: 16px; height: 16px; }

/* --- Prose --------------------------------------------------------------- */

.hu-article .hu-prose { max-width: 68ch; font-size: 18px; line-height: 1.72; }
.hu-article .hu-prose > p { margin: 0 0 1.35em; }
.hu-article .hu-prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.1em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--text);
}
.hu-article .hu-prose h2 {
  margin: 2.2em 0 0.55em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--text);
}
.hu-article .hu-prose h3 {
  margin: 1.8em 0 0.4em;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(21px, 2.05vw, 26px);
  letter-spacing: 0;
  color: var(--text);
}
.hu-article .hu-prose strong { color: var(--text); font-weight: 600; }
.hu-article .hu-prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.hu-article .hu-prose ul { margin: 0 0 1.35em; padding: 0; list-style: none; }
.hu-article .hu-prose ul li { position: relative; padding-left: 26px; margin-bottom: 0.7em; }
.hu-article .hu-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.hu-article .hu-prose blockquote {
  margin: 2.2em 0;
  padding: 0;
  font-family: var(--font-accent);
  font-style: normal;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text);
}
.hu-article .hu-prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: var(--text-meta);
}

/*
 * A quiet tint rather than a solid block, so it sits inside the reading rhythm
 * instead of interrupting it. Any palette colour can drive it: add is-blue,
 * is-gold, is-mint or is-grey to a group block.
 */
.hu-article .hu-prose .wp-block-group.is-style-note,
.hu-callout {
  --tint: 138 175 214;
  margin: 2.2em 0;
  padding: 24px 26px;
  background-color: rgb(var(--tint) / 0.09);
  background-image:
    linear-gradient(rgb(var(--tint) / 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--tint) / 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid rgb(var(--tint) / 0.32);
  border-left-width: 3px;
}
.hu-callout.is-gold { --tint: 201 162 39; }
.hu-callout.is-mint { --tint: 151 239 176; }
.hu-callout.is-grey { --tint: 110 116 125; }
.hu-callout__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: .75;
}
.hu-callout p { margin: 0; font-size: 16.5px; line-height: 1.62; color: var(--text-body); }

.hu-article .hu-prose figure { margin: 2.4em 0; }
.hu-article .hu-prose figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-meta); }

/*
 * A case study: the pictures carry it, so the column is wider than an
 * article's and opens with plain text rather than a drop cap. Two pictures
 * can sit side by side in a .hu-pair, written as one figure with one caption.
 */
.hu-entry .hu-article .hu-prose { max-width: 920px; }
.hu-entry .hu-article .hu-prose > p:first-of-type::first-letter { float: none; font: inherit; padding: 0; }
.hu-entry .hu-prose figure img { width: 100%; height: auto; margin: 0; }
.hu-prose .hu-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.hu-prose .hu-pair figcaption { grid-column: 1 / -1; }
@media (max-width: 600px) { .hu-prose .hu-pair { grid-template-columns: 1fr; } }

.hu-endmark { width: 28px; height: 28px; margin: 2.4em 0; color: var(--text); }
.hu-endmark .hu-mark { display: block; width: 100%; height: 100%; }

.hu-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
}
.hu-author__avatar {
  width: 62px;
  height: 62px;
  background: var(--accent);
  color: var(--hu-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
}
.hu-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hu-author h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--text);
}
.hu-author p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-body); }


/* --- Related ------------------------------------------------------------- */

.hu-related {
  border-top: 1px solid var(--hairline);
  padding: clamp(38px, 5vw, 68px) var(--gutter);
  background: var(--bg-page);
}
.hu-related__inner { max-width: 1180px; margin: 0 auto; }
.hu-related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hu-related__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 40px);
  letter-spacing: 0;
  color: var(--text);
}

/* ==========================================================================
   14. Page transition
   ========================================================================== */

/*
 * One pass, never a return. The panel enters from one edge, covers the screen
 * while the browser navigates, and the next page carries it on out of the
 * opposite edge. Cover and uncover are two halves of one gesture travelling in
 * a single direction, so it never swipes back the way it came.
 */
.hu-curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  display: grid;
  place-items: center;
  /* Two children (mark, word): without this each takes half the screen and
     the word lands three quarters of the way down. */
  align-content: center;
  visibility: hidden;
}
.hu-curtain__panel {
  position: absolute;
  inset: 0;
  background: var(--text);
  will-change: transform;
  /* An in-out curve: it glides rather than snaps. Any longer and every click feels like waiting. */
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
}
.hu-curtain__word {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 54px);
  letter-spacing: 0;
  color: var(--bg-page);
  opacity: 0;
  transition: opacity .3s var(--ease) .06s;
}

/* Resting position, off screen, per direction. */
.hu-curtain[data-dir="drop"]  .hu-curtain__panel { transform: translateY(-100%); }
.hu-curtain[data-dir="rise"]  .hu-curtain__panel { transform: translateY(100%); }
.hu-curtain[data-dir="sweep"] .hu-curtain__panel { transform: translateX(-100%); }

/* Covering. */
.hu-curtain[data-state="cover"] { visibility: visible; }
.hu-curtain[data-state="cover"] .hu-curtain__panel { transform: none; }
.hu-curtain[data-state="cover"] .hu-curtain__word { opacity: 1; }

/* Leaving, continuing past the far edge. */
.hu-curtain[data-state="leave"] { visibility: visible; }
.hu-curtain[data-dir="drop"][data-state="leave"]  .hu-curtain__panel { transform: translateY(100%); }
.hu-curtain[data-dir="rise"][data-state="leave"]  .hu-curtain__panel { transform: translateY(-100%); }
.hu-curtain[data-dir="sweep"][data-state="leave"] .hu-curtain__panel { transform: translateX(100%); }

/*
 * Arriving on the next page already covered. Set before first paint so there is
 * no flash of the new page before the panel moves off.
 */
/*
 * These have to outrank the resting rules above, which carry a class and an
 * attribute each, or the arriving page shows itself before the panel moves.
 */
[data-curtain-entry] .hu-curtain[data-dir] { visibility: visible; }
[data-curtain-entry] .hu-curtain[data-dir] .hu-curtain__panel {
  transform: none;
  transition: none;
  /*
   * The failsafe. Only the script ever lifts the entry panel, and a script
   * that failed to arrive would leave every page hidden behind it for good.
   * The keyframe lifts it regardless; the script's own reveal removes the
   * attribute within a frame, long before the delay runs out. Each direction
   * parks at its own leave position, so a script arriving after the failsafe
   * has fired retargets a journey of zero instead of re-sweeping the screen.
   */
  animation: hu-curtain-failsafe-drop .55s cubic-bezier(.76, 0, .24, 1) 1s forwards;
}
[data-curtain-entry] .hu-curtain[data-dir="rise"] .hu-curtain__panel { animation-name: hu-curtain-failsafe-rise; }
[data-curtain-entry] .hu-curtain[data-dir="sweep"] .hu-curtain__panel { animation-name: hu-curtain-failsafe-sweep; }
@keyframes hu-curtain-failsafe-drop  { to { transform: translateY(100%); } }
@keyframes hu-curtain-failsafe-rise  { to { transform: translateY(-100%); } }
@keyframes hu-curtain-failsafe-sweep { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .hu-curtain { display: none !important; }
}

/* ==========================================================================
   15. Interactions
   ========================================================================== */

/* --- Reveal on enter ---------------------------------------------------- */

/*
 * Only applied once the script has confirmed it is running, so a page without
 * JavaScript never hides its own content waiting for a reveal that cannot come.
 */
.hu-motion .hu-reveal {
  opacity: 0;
  /* Settles downward, the way the curtain travels. An upward drift right
     after a downward wipe read as the page sliding back up. */
  transform: translateY(-18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hu-motion .hu-reveal.is-in { opacity: 1; transform: none; }

/*
 * The stagger itself lives in the script: it delays each element by its place
 * in the batch arriving together, then sheds both the delay and the hu-reveal
 * class once the element is in, so no hover ever inherits an arrival delay.
 */

/* --- Cursor spotlight on a work tile ------------------------------------ */

.hu-tile__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  /* Moved by the script through --gx and --gy, so following the cursor never relays out the tile. */
  transform: translate(var(--gx, 0px), var(--gy, 0px)) translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--hover) var(--ease);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 62%);
}
/* A pale tile needs a dark glow, and the other way round. */
.hu-tile[data-ink="dark"] .hu-tile__glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.20), transparent 62%);
}
.hu-motion .hu-tile:hover .hu-tile__glow { opacity: 1; }

/* --- Magnetic button ----------------------------------------------------- */

/* The lean is retargeted on every pointer move; the transition is what makes it glide rather than stick to the cursor. */
.hu-motion .hu-btn { will-change: transform; transition: transform .45s var(--ease), background-color var(--hover) var(--ease), color var(--hover) var(--ease); }

/* --- Links that draw their underline ------------------------------------- */

.hu-article .hu-prose p > a,
.hu-article .hu-prose li > a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent-ink), var(--accent-ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size var(--hover) var(--ease);
}
.hu-article .hu-prose p > a:hover,
.hu-article .hu-prose p > a:focus-visible,
.hu-article .hu-prose li > a:hover,
.hu-article .hu-prose li > a:focus-visible { background-size: 100% 2px; }

/* --- Drawer links arrive one after another -------------------------------- */

.hu-motion .hu-drawer__link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color var(--hover) var(--ease);
}
.hu-motion .hu-drawer[data-open="true"] .hu-drawer__link { opacity: 1; transform: none; }
.hu-motion .hu-drawer[data-open="true"] .hu-drawer__link:nth-of-type(2) { transition-delay: .07s; }
.hu-motion .hu-drawer[data-open="true"] .hu-drawer__link:nth-of-type(3) { transition-delay: .14s; }
.hu-motion .hu-drawer[data-open="true"] .hu-drawer__link:nth-of-type(4) { transition-delay: .21s; }
.hu-motion .hu-drawer[data-open="true"] .hu-drawer__link:nth-of-type(5) { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .hu-motion .hu-reveal,
  .hu-motion .hu-drawer__link {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hu-tile__glow { display: none !important; }
  .hu-motion .hu-years__d[open] .hu-years__more { animation: none !important; }
}

/* ==========================================================================
   16. Work tiles in the dark theme
   ========================================================================== */

/*
 * On a dark screen the nine colours go and every tile is the same ink ground
 * with plain white type. Nine black squares flush against each other would read
 * as one slab, so each keeps a hairline edge and the grid stays legible.
 */
/*
 * Dark screen: every tile goes plain. The tile reads its colours from custom
 * properties, so overriding the two variables is enough; no !important war
 * with the inline style, and hover states keep working.
 */
[data-theme="dark"] .hu-tile {
  /* The variables live in the inline style, which a stylesheet cannot
     redefine; overriding the consuming properties wins by plain cascade,
     since the tile's background now comes from the stylesheet too. */
  background: var(--hu-ink);
  color: #FFFFFF;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .hu-tile__veil {
  background: #FFFFFF;
  color: var(--hu-ink);
}
/* The glow follows the ground, not the tile's original colour. */
[data-theme="dark"] .hu-tile .hu-tile__glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
}

@media (prefers-color-scheme: dark) {
  /*
   * Without JavaScript the boot script never stamps data-theme, so the OS
   * preference has to reach the tokens directly, or these tile rules would
   * put nine ink slabs on an otherwise light page.
   */
  html.no-js:not([data-theme="light"]) {
    --accent-ink:  var(--hu-soft-blue);
    --bg-page:     var(--hu-black);
    --bg-feature:  var(--hu-black);
    --bg-card:     #0A0A0A;
    --bg-social:   var(--hu-black);
    /* No --bg-hero / --hero-grid-line here: the Customizer's inline tokens
       own the hero ground, and this block must not outrank them. */
    --hero-text:   var(--hu-white);
    --hero-text-alt: var(--hu-ink);
    --text:        #E9E9E9;
    --text-body:   #9BA0A8;
    --text-meta:   #9BA0A8;
    --hairline:    rgba(233, 233, 233, 0.18);
    --rule:        rgba(233, 233, 233, 0.18);
    --btn-bg:      var(--hu-black);
    --btn-fg:      #E9E9E9;
    --portrait-fallback: #1A1A1A;
  }

  :root:not([data-theme="light"]) .hu-tile {
    background: var(--hu-ink);
    color: #FFFFFF;
    box-shadow:
      inset -1px 0 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  }
  :root:not([data-theme="light"]) .hu-tile__veil {
    background: #FFFFFF;
    color: var(--hu-ink);
  }
  :root:not([data-theme="light"]) .hu-tile .hu-tile__glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
  }
}

/* ==========================================================================
   17. Notes index
   ========================================================================== */

.hu-notes { background: var(--bg-page); }

/* --- The latest, along the top ------------------------------------------ */


/* --- Controls ------------------------------------------------------------ */

.hu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: clamp(20px, 3vw, 34px) var(--pad);
}
.hu-filters__label { margin: 0 6px 0 0; }
.hu-filters__search { flex: 1 1 260px; }
.hu-filters__search input,
.hu-filters__pick select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 0;
}
.hu-filters__pick select { width: auto; padding-right: 34px; }
.hu-filters__search input:focus-visible,
.hu-filters__pick select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.hu-filters__views { display: flex; margin-left: auto; }
.hu-filters__views button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 15px;
  background: none;
  color: var(--text-meta);
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.hu-filters__views button + button { border-left: 0; }
.hu-filters__views button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg-page);
  border-color: var(--text);
}

/* --- The list ------------------------------------------------------------ */

/*
 * The grid runs edge to edge like the work tiles, cards flush against each
 * other with a hairline between them. Three per line, always; a missing card
 * leaves quiet paper, the same way the work grid behaves.
 */
.hu-notes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(48px, 6vw, 90px);
}
@media (max-width: 900px) { .hu-notes__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hu-notes__list { grid-template-columns: 1fr; } }

.hu-note[hidden] { display: none; }
.hu-note__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  overflow: hidden;
  transition: background-color var(--hover) var(--ease);
}
.hu-note__link:hover,
.hu-note__link:focus-visible { background: var(--bg-page); }
.hu-note__link:hover .hu-note__panel { filter: brightness(1.06); }

.hu-note__panel {
  position: relative;
  aspect-ratio: 3 / 2;
  background-size: 44px 44px;
  overflow: hidden;
  display: block;
  transition: filter var(--hover) var(--ease);
}
.hu-note__panel img { width: 100%; height: 100%; object-fit: cover; }
.hu-note__body {
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 34px) clamp(24px, 2.6vw, 36px);
  display: grid;
  gap: 13px;
  align-content: start;
}
.hu-note__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hu-note__title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}
.hu-note__title em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 300;
  color: var(--accent-ink);
}
.hu-note__dek { font-size: 16px; line-height: 1.6; color: var(--text-body); max-width: 52ch; }
.hu-note__foot { margin-top: 2px; }

/* --- List view ----------------------------------------------------------- */

/*
 * The list is a reading list, set the way stridenote.net sets one: the title
 * carries the row, the category sits in a middle column, the date and read
 * time hold the right edge, and a hairline rules each row off. No panels, no
 * deks; the grid view is for looking, the list is for scanning.
 */
.hu-notes__list[data-view="list"] { grid-template-columns: 1fr; }
.hu-notes__list[data-view="list"] .hu-note__link {
  grid-template-rows: none;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr) auto;
  align-items: center;
  gap: clamp(18px, 3.5vw, 56px);
  border-right: 0;
  background: none;
  padding: clamp(22px, 3vw, 38px) var(--gutter);
}
.hu-notes__list[data-view="list"] .hu-note__link:hover,
.hu-notes__list[data-view="list"] .hu-note__link:focus-visible { background: var(--bg-card); }
.hu-notes__list[data-view="list"] .hu-note__panel { display: none; }
.hu-notes__list[data-view="list"] .hu-note__dek { display: none; }
/* The body dissolves so its pieces sit directly on the row's columns. */
.hu-notes__list[data-view="list"] .hu-note__body { display: contents; }
.hu-notes__list[data-view="list"] .hu-note__title {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1.16;
}
.hu-notes__list[data-view="list"] .hu-note__meta {
  grid-column: 2;
  grid-row: 1;
}
.hu-notes__list[data-view="list"] .hu-note__foot {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .hu-notes__list[data-view="list"] .hu-note__link {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .hu-notes__list[data-view="list"] .hu-note__title { grid-column: 1 / -1; }
  .hu-notes__list[data-view="list"] .hu-note__meta { grid-column: 1; grid-row: 2; }
  .hu-notes__list[data-view="list"] .hu-note__foot { grid-column: 2; grid-row: 2; }
}

.hu-notes__empty {
  /* Inset like the filter bar above it, so the two share a left edge. */
  padding: clamp(20px, 3vw, 34px) var(--pad) clamp(48px, 6vw, 90px);
  font-size: 16px;
  color: var(--text-meta);
}

/* ==========================================================================
   16. Inner pages: the shared hero, band and closing block
   ========================================================================== */



/* Everything after the hero rides over the fixed media on its own ground. */
.hu-page__after {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
}

.hu-phead {
  /* At the page gutter, so the standfirst and filters sit under the title's left edge. */
  padding: 0 var(--gutter) clamp(22px, 3vw, 40px);
}
/* After a cover the head needs its own breathing room; after the bare masthead the masthead's padding does it. */
.hu-smast--cover + .hu-page__after .hu-phead { padding-top: clamp(26px, 3.4vw, 44px); }
.hu-phead__foot {
  /* Stacked and left aligned, so the standfirst and the filters both sit under the title. */
  display: grid;
  justify-items: start;
  gap: 22px;
}
.hu-phead__intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 52ch;
}

.hu-page__body {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px) var(--gutter);
}

/* -------------------------------------------------------------- Filter chips */

.hu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
/* Square, and outlined rather than filled, so only the active one is a block. */
.hu-chips .hu-chip {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-chips .hu-chip + .hu-chip { border-left: 0; }
.hu-chips .hu-chip:hover { color: var(--text); }
.hu-chips .hu-chip[aria-pressed="true"] {
  background: var(--hu-gold);
  border-color: var(--hu-gold);
  color: var(--hu-ink);
}

.hu-work__empty {
  margin: 0;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  text-align: center;
  color: var(--text-meta);
}
.hu-tile[hidden] { display: none !important; }

/* ------------------------------------------------------------- Client band */

/*
 * Two rows on the house grid, sliding opposite ways. Each track holds its run
 * twice over, so translating it half its width lands back where it started and
 * the loop never shows a seam.
 */
/*
 * Full bleed, a breath below the work grid, on the owner's colours: --band-bg
 * and --band-fg arrive inline from the Customizer. The grid lines and the
 * set-back names are the text colour at partial opacity, so any pairing works.
 */
.hu-band {
  position: relative;
  z-index: 3;
  color: var(--band-fg);
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: clamp(30px, 4vw, 58px);
  overflow: hidden;
  background-color: var(--band-bg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--band-fg) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--band-fg) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hu-band__label {
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  padding-inline: var(--gutter);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--band-fg);
  opacity: 0.55;
}
.hu-band__rows { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.hu-band__row { overflow: hidden; }
.hu-band__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: hu-slide 42s linear infinite;
}
.hu-band__row:nth-child(2) .hu-band__track {
  animation-duration: 52s;
  animation-direction: reverse;
}
.hu-band:hover .hu-band__track { animation-play-state: paused; }
@keyframes hu-slide { to { transform: translateX(-50%); } }

.hu-band__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding-right: clamp(20px, 2.6vw, 40px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 50px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  /* Set back, so the grid reads through the row rather than being covered. */
  color: color-mix(in srgb, var(--band-fg) 42%, transparent);
  transition: color var(--hover) var(--ease);
}
.hu-band__item:hover,
.hu-band__item:focus-visible { color: var(--band-fg); }
.hu-band__item::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--hu-gold);
  opacity: 0.75;
}
.hu-band__item img {
  height: clamp(26px, 3vw, 44px);
  width: auto;
  display: block;
  opacity: 0.42;
  transition: opacity var(--hover) var(--ease);
}
.hu-band__item:hover img,
.hu-band__item:focus-visible img { opacity: 1; }
/* Logos are drawn for a light ground; on a dark one they are inverted to read. */
.hu-band--dark .hu-band__item img { filter: brightness(0) invert(1); }

/* ------------------------------------------------------------ Closing block */

.hu-end {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  display: grid;
  gap: 26px;
  justify-items: center;
  text-align: center;
  padding: clamp(44px, 6vw, 96px) var(--gutter);
}
.hu-end__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 13em;
  text-wrap: balance;
}
.hu-end__headline em {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0;
  color: var(--accent-ink);
}

.hu-end__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}
.hu-end__link {
  display: grid;
  gap: 5px;
  min-width: 190px;
  padding: 16px 22px;
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--rule);
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-end__link + .hu-end__link { border-left: 0; }
.hu-end__link:hover,
.hu-end__link:focus-visible { background: var(--text); color: var(--bg-page); }
.hu-end__link b {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-meta);
}
.hu-end__link:hover b { color: inherit; opacity: 0.7; }
.hu-end__link span {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

/* ==========================================================================
   17. Story page
   ========================================================================== */

/* The feature is built to the front page's format, so the two match exactly. */
.hu-sfeature {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  align-items: stretch;
  background: var(--bg-feature);
}
.hu-sfeature__body {
  display: grid;
  gap: 22px;
  justify-items: center;
  align-content: center;
  text-align: center;
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) clamp(24px, 3vw, 40px);
}
.hu-sfeature__kicker {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent-ink);
}
.hu-sfeature__headline {
  margin: 0;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--text);
  /* Measured in the headline's own size, so it holds at every clamp step. */
  max-width: 13em;
}
.hu-sfeature__headline em {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0;
  color: var(--accent-ink);
}
.hu-sfeature__dek {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 32em;
  text-wrap: pretty;
}
.hu-sfeature__portrait {
  position: relative;
  min-height: clamp(320px, 58vh, 600px);
  overflow: hidden;
  background: var(--portrait-fallback);
}
.hu-sfeature__portrait img,
.hu-sfeature__portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--portrait-focus, 25%);
}

/* The story itself, with the rail beside it. */
.hu-story {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 5.5vw, 84px) var(--gutter);
}
.hu-story__rail {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 11px;
}
.hu-story__rail a {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-meta);
  text-decoration: none;
  transition: color var(--hover) var(--ease);
}
.hu-story__rail a:hover,
.hu-story__rail a.is-on { color: var(--text); }
.hu-story__prose { max-width: 68ch; }

.hu-years {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(38px, 5vw, 72px);
}
.hu-years__title {
  margin: 0 0 18px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0;
}
.hu-years__list { list-style: none; display: grid; margin: 0; padding: 0; }
.hu-years__item { border-top: 1px solid var(--rule); }
.hu-years__item:last-child { border-bottom: 1px solid var(--rule); }

/* The line: year, what happened, and a chevron only when there is more. */
.hu-years__sum {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0;
  list-style: none;
}
.hu-years__sum::-webkit-details-marker { display: none; }
.hu-years__sum::marker { content: ""; }
.hu-years__sum--flat { grid-template-columns: 88px minmax(0, 1fr); }
details > .hu-years__sum { cursor: pointer; }
details > .hu-years__sum:hover .hu-years__what,
details > .hu-years__sum:hover .hu-years__chev { color: var(--text); }
.hu-years__sum:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.hu-years__yr {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-meta);
}
.hu-years__what {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-body);
  transition: color var(--hover) var(--ease);
}
/* Closed, a long line folds to one row; open, it runs in full above the rest. */
.hu-years__d:not([open]) .hu-years__what {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.hu-years__what em {
  font-family: var(--font-sub);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}
.hu-years__chev {
  align-self: center;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--text-meta);
  transform: rotate(45deg);
  transition: transform var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-years__d[open] .hu-years__chev { transform: rotate(225deg); }

/* What a year opens to: pictures, a video, the longer story, a link. */
.hu-years__more {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  padding: 4px 0 clamp(22px, 3vw, 36px) 108px;
}
@keyframes hu-years-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.hu-motion .hu-years__d[open] .hu-years__more { animation: hu-years-in .45s var(--ease) both; }
.hu-years__gal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.hu-years__gal--one { grid-template-columns: minmax(0, 720px); }
.hu-years__pic { margin: 0; }
.hu-years__pic img { display: block; width: 100%; height: auto; }
.hu-years__pic figcaption {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-meta);
}
.hu-years__vid { margin: 0; max-width: 960px; }
.hu-years__vid video { display: block; width: 100%; height: auto; background: #000; }
.hu-years__vid--embed { aspect-ratio: 16 / 9; }
.hu-years__vid--embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.hu-years__body { max-width: 68ch; }
.hu-years__body > :first-child { margin-top: 0; }
.hu-years__body > :last-child { margin-bottom: 0; }
.hu-years__link {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--hover) var(--ease);
}
.hu-years__link:hover { color: var(--accent-ink); }
@media (max-width: 760px) {
  .hu-years__sum { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .hu-years__sum--flat { grid-template-columns: minmax(0, 1fr); }
  .hu-years__yr { grid-column: 1 / -1; }
  .hu-years__more { padding-left: 0; }
}

/* ==========================================================================
   18. News home
   ========================================================================== */

.hu-news { background: var(--bg-page); }

.hu-newshead {
  display: grid;
  /* Full width at the page gutter, so the title lines up under the logo. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  /* The floor of the clamp clears the ~66px fixed header on narrow desktops. */
  padding: clamp(72px, 6vw, 84px) var(--gutter) clamp(24px, 3.4vw, 44px);
}
.hu-newshead__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7.4vw, 112px);
  line-height: 1;
  letter-spacing: 0;
}
.hu-newshead__main { display: grid; gap: 18px; align-content: start; }
.hu-newshead__side { display: grid; gap: 18px; }
.hu-newshead__intro {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
}

.hu-rows { display: grid; }
.hu-rows__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left var(--hover) var(--ease);
}
.hu-rows__row:last-child { border-bottom: 1px solid var(--rule); }
a.hu-rows__row:hover { padding-left: 8px; }
.hu-rows__what { font-size: 16px; line-height: 1.4; }
.hu-rows__how {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  color: var(--text-body);
}
a.hu-rows__row:hover .hu-rows__how { color: var(--text); }

/* The divided lead: words on the left, picture on the right. */
/*
 * The news lead. Its own class: single.php's lead figure also answers to
 * .hu-lead and its max-width was quietly squeezing this one off the edges.
 *
 * The arrangement is the New Yorker's, the type is ours: a centred vertical
 * stack, small and calm, text left and image right.
 */
/*
 * Exactly the approved mockup: two halves, the text column a centred vertical
 * stack on the left, the picture on the right.
 */
.hu-newslead {
  display: grid;
  /* min() so the single track can never be wider than the framed box on a phone. */
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hu-newslead__body {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(34px, 4.6vw, 70px) clamp(28px, 4vw, 72px);
}
.hu-newslead__kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hu-newslead__headline {
  margin: 0;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 17ch;
  text-wrap: balance;
}
.hu-newslead__headline a { color: inherit; text-decoration: none; }
.hu-newslead__headline em {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  color: var(--accent-ink);
}
.hu-newslead__dek {
  margin: 0;
  font-size: 11px;
  line-height: 1.72;
  color: var(--text-body);
  max-width: 52ch;
}
.hu-newslead__media {
  position: relative;
  min-height: clamp(300px, 52vh, 560px);
  overflow: hidden;
  border-left: 1px solid var(--rule);
}
.hu-newslead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hu-newslead .hu-sqbtn { justify-self: center; }
@media (max-width: 760px) {
  .hu-newslead__media { border-left: 0; border-top: 1px solid var(--rule); order: -1; min-height: 56vw; }
}

/* Square, to match every other control on this page. */
.hu-sqbtn svg { width: 12px; height: 12px; flex: 0 0 auto; }
.hu-sqbtn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-sqbtn:hover,
.hu-sqbtn:focus-visible { background: var(--text); color: var(--bg-page); }

/*
 * The ticker. The marker is held at the left on an opaque ground, so the cards
 * pass behind it rather than pushing it along.
 */
.hu-ticker {
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  --pin-w: clamp(132px, 14vw, 186px);
}
.hu-ticker__pin {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: var(--pin-w);
  display: grid;
  place-items: center;
  background: var(--bg-page);
  border-right: 1px solid var(--rule);
}
.hu-ticker__pin span {
  padding: 6px 11px;
  background: var(--hu-gold);
  color: var(--hu-ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}
.hu-ticker__view { margin-left: var(--pin-w); overflow: hidden; }
.hu-ticker__track {
  display: flex;
  width: max-content;
  animation: hu-slide 48s linear infinite;
}
.hu-ticker:hover .hu-ticker__track { animation-play-state: paused; }

.hu-tcard {
  position: relative;
  width: clamp(250px, 23vw, 320px);
  min-height: 150px;
  flex: 0 0 auto;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 20px 22px 18px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color var(--hover) var(--ease);
}
.hu-tcard:hover { background: var(--bg-card); }
.hu-tcard b {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
}
.hu-tcard b em {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  color: var(--accent-ink);
}
.hu-tcard span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-meta);
}

/* ==========================================================================
   19. Inner pages: narrow screens and reduced motion
   ========================================================================== */

@media (max-width: 860px) {
  .hu-newshead {
    grid-template-columns: 1fr;
    gap: 26px;
    /* Clear of the fixed header, which was nearly touching the title. */
    padding-top: clamp(96px, 18vw, 128px);
  }
  .hu-story { grid-template-columns: 1fr; gap: 14px; }
  .hu-story__rail { position: static; }
}

@media (max-width: 640px) {
  .hu-end__link { min-width: 0; flex: 1 1 100%; }
  .hu-end__link + .hu-end__link { border-left: 1px solid var(--rule); border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hu-band__track,
  .hu-ticker__track { animation: none; }
  /* With nothing moving, the run has to be reachable by hand. */
  .hu-band__row,
  .hu-ticker__view { overflow-x: auto; }
}

/* Dark screen: the pale bands take the page's own ground. */
[data-theme="dark"] .hu-end__link:hover,
[data-theme="dark"] .hu-sqbtn:hover { color: var(--hu-black); }

/* ==========================================================================
   20. Conversations
   ========================================================================== */

.hu-talks {
  position: relative;
  z-index: 3;
  background: var(--bg-page);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 60px) var(--gutter);
}
.hu-talks__title {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-meta);
}
.hu-talks__list { display: grid; gap: clamp(12px, 1.6vw, 18px); }

.hu-talk {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 168px;
  padding: 26px clamp(22px, 3vw, 40px);
  overflow: hidden;
  /* Black, not ink: the card's accent may be the brand blue, which reads on black (5.9:1) and not on ink (3.2:1). */
  background: var(--hu-black);
  color: var(--hu-paper);
  text-decoration: none;
  transition: background-color var(--hover) var(--ease);
}
.hu-talk:hover,
.hu-talk:focus-visible { background: #141517; }

/* One inset hairline, barely there, so the block has an edge without a border. */
.hu-talk__rim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #FFFFFF;
  opacity: 0.06;
  mix-blend-mode: luminosity;
}

/*
 * The bloom. It sits above the feather layers rather than below them: beneath,
 * the feather's opaque edge slices straight through it and leaves a hard line
 * down the card.
 */
.hu-talk__glow {
  position: absolute;
  z-index: 2;
  right: 10%;
  top: 4%;
  width: min(260px, 30%);
  height: 80%;
  background: var(--accent-talk, var(--hu-gold));
  opacity: 0.15;
  filter: blur(70px);
  transform: rotate(37deg);
  pointer-events: none;
  transition: opacity var(--hover) var(--ease);
}
.hu-talk:hover .hu-talk__glow { opacity: 0.26; }

.hu-talk__pic {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 4vw, 64px);
  top: -24px;
  bottom: -16px;
  width: clamp(150px, 19vw, 215px);
  pointer-events: none;
  transition: width .55s var(--ease), top .55s var(--ease), bottom .55s var(--ease);
}
/*
 * The whole trick. An ordinary rectangular still or clip, drained of colour,
 * held back so the ground tints it, then dissolved from halfway down.
 */
.hu-talk__pic img,
.hu-talk__pic video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
/* A provider embed gets the same drain and dissolve as a file clip, or it
   sits in the row full-colour and breaks the visual system. */
.hu-talk__pic img,
.hu-talk__pic video,
.hu-talk__pic .hu-tile__embed {
  filter: saturate(0);
  opacity: 0.65;
  -webkit-mask-image: linear-gradient(#000 0%, #000 48%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(#000 0%, #000 48%, rgba(0, 0, 0, 0) 100%);
  transition: filter var(--hover) var(--ease), opacity var(--hover) var(--ease);
}
/* A clip earns its colour back while it is playing. The class covers taps and
   key presses, which have no hover to lean on. */
.hu-talk:hover .hu-talk__pic video,
.hu-talk:hover .hu-talk__pic .hu-tile__embed,
.hu-talk.is-playing .hu-talk__pic video,
.hu-talk.is-playing .hu-talk__pic .hu-tile__embed { filter: saturate(0.55); opacity: 0.8; }
/* The two side feathers, so the rectangle never shows an edge. */
.hu-talk__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hu-ink) 0%, rgba(46, 58, 74, 0.02) 50%, var(--hu-ink) 96%);
}
/* Hover grows the picture, not the card. The clipping holds it in. */
.hu-talk:hover .hu-talk__pic,
.hu-talk:focus-visible .hu-talk__pic {
  width: clamp(180px, 23vw, 258px);
  top: -56px;
  bottom: -46px;
}

.hu-talk__play {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 233, 233, 0.18);
  color: rgba(233, 233, 233, 0.5);
  transition: border-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-talk:hover .hu-talk__play {
  border-color: var(--accent-talk, var(--hu-gold));
  color: var(--accent-talk, var(--hu-gold));
}
.hu-talk__play svg { width: 12px; height: 12px; }

.hu-talk__body {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  max-width: 60%;
}
.hu-talk__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--hu-white);
  text-wrap: balance;
}
.hu-talk__by {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(13px, 1.3vw, 16px);
}
.hu-talk__who {
  font-family: var(--font-sub);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent-talk, var(--hu-gold));
}
.hu-talk__dots { color: rgba(233, 233, 233, 0.3); letter-spacing: 0.1em; }
.hu-talk__role {
  font-family: var(--font-body);
  font-style: normal;
  color: rgba(233, 233, 233, 0.62);
}

@media (max-width: 720px) {
  .hu-talk__body { max-width: none; }
  .hu-talk__pic { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .hu-talk,
  .hu-talk__pic,
  .hu-talk__glow,
  .hu-talk__play { transition: none; }
}

/* ==========================================================================
   21. Editor prompts, and the story without a rail
   ========================================================================== */

/* Shown only to someone who can act on it, so it never reaches a reader. */
.hu-placeholder--section {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-meta);
  background: var(--bg-page);
}
.hu-placeholder--section a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* One heading is not a contents list, so the prose takes the whole measure. */
.hu-story--norail { grid-template-columns: minmax(0, 1fr); }
.hu-story--norail .hu-story__prose { max-width: 72ch; }

/*
 * The front hero's media is fixed, so on a document shorter than the screen it
 * would show below the footer. A shadow paints the ground beneath the footer
 * without adding to the scrollable area, which an ::after box did: it gave
 * every page a full viewport of blank scroll past the legal line.
 */
.hu-footer {
  /* Spread must match the offset, or the shadow is just the footer's own
     silhouette a full screen further down and the band below stays bare. */
  box-shadow: 0 100vh 0 100vh var(--bg-page);
}

/* ==========================================================================
   22. Print
   ========================================================================== */

@media print {
  /* Anything below the fold has not revealed yet; print it all the same. */
  .hu-motion .hu-reveal { opacity: 1; transform: none; transition: none; }
  .hu-header,
  .hu-brandmark,
  .hu-curtain,
  #hu-drawer,
  [data-progress],
  /* Fixed media repeats on every printed sheet; the text does not need it. */
  .hu-hero__video,
  .hu-hero__fallback,
  .hu-hero__embed,
  .hu-hero__scrim,
  .hu-smast__media { display: none !important; }
  /* The cover's white-on-media title has no media on paper. */
  .hu-smast--cover { min-height: 0; background: none; color: inherit; }
  .hu-smast--cover .hu-smast__title { color: inherit; }
  .hu-footer { box-shadow: none; }
}

/* ==========================================================================
   23. The mark
   ========================================================================== */

/*
 * The mark is the blue square with the letters cut out of it. A plate in the
 * letters' colour sits behind the cut-outs, so the letters stay white on any
 * ground instead of taking the colour of whatever is behind the mark.
 */
.hu-mark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.1em; }
.hu-mark__ground { fill: var(--mark-ground, var(--hu-soft-blue)); }
.hu-mark__letters { fill: var(--mark-letters, var(--hu-white)); }
/* An uploaded logo is used as a mask over the current colour, so it flips
   between black and white with the screen. */
.hu-mark--upload {
  background-color: currentColor;
  -webkit-mask: var(--mark-url) center / contain no-repeat;
          mask: var(--mark-url) center / contain no-repeat;
}

/*
 * Beside the name in the header. The header blends by difference so the name
 * reads over any ground, and a blue mark inside it would be blended into
 * another colour. So the theme's own mark is its own fixed layer on top, at
 * the place the header leaves for it, and it follows the header when the
 * header hides. An uploaded logo is one colour and stays inside the header.
 */
:root { --mark-size: 28px; --mark-gap: 10px; --mark-top: calc(18px + (30px - var(--mark-size)) / 2); }
.hu-header__brand { display: inline-flex; align-items: center; gap: var(--mark-gap); min-height: 30px; }
.hu-header__mark { width: var(--mark-size); height: var(--mark-size); flex: 0 0 auto; }
.hu-header--own-mark .hu-header__brand { padding-left: calc(var(--mark-size) + var(--mark-gap)); }
.hu-brandmark {
  position: fixed;
  top: var(--mark-top);
  left: var(--gutter);
  z-index: 51;
  width: var(--mark-size);
  height: var(--mark-size);
  color: var(--text);
  pointer-events: none;
  transition: transform .6s var(--ease);
}
.hu-brandmark .hu-mark { display: block; width: 100%; height: 100%; }
.hu-header.is-away + .hu-brandmark { transform: translateY(-120px); }
@media (max-width: 760px) {
  :root { --mark-size: 24px; --mark-gap: 8px; }
  .hu-header__brand { font-size: 17px; }
}

/* Above the drawer links, on the drawer's dark glass. */
.hu-drawer__mark { display: block; width: 36px; height: 36px; margin-bottom: clamp(18px, 3vh, 34px); color: #E9E9E9; }

/* On the curtain, above the word, in the word's colour. */
.hu-curtain__mark {
  position: relative;
  width: clamp(30px, 4.4vw, 60px);
  height: clamp(30px, 4.4vw, 60px);
  margin-bottom: 14px;
  color: var(--bg-page);
  opacity: 0;
  transition: opacity .6s var(--ease) .06s;
}
.hu-curtain[data-state="cover"] .hu-curtain__mark { opacity: 1; }

/* Small, ahead of the copyright line. */
.hu-footer__mark { width: 16px; height: 16px; margin-right: 10px; vertical-align: -0.4em; color: var(--text); }

/* The not-found page. */
.hu-inner__mark { display: block; width: 44px; height: 44px; margin-bottom: 22px; color: var(--text); }

/* ==========================================================================
   24. Sections: one square of the work grid, opened
   ========================================================================== */

.hu-section { background: var(--bg-page); position: relative; z-index: 3; }

/* The section masthead. Not the front hero: type on the page ground. */
.hu-smast { padding: clamp(96px, 16vh, 150px) var(--gutter) clamp(22px, 3vh, 36px); }
.hu-smast__up {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-meta);
  text-decoration: none;
  transition: color var(--hover) var(--ease);
}
.hu-smast__up:hover { color: var(--text); }
.hu-smast__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 12ch;
}
.hu-smast__stand {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-body);
  max-width: 62ch;
}
.hu-smast__count {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-meta);
}
.hu-section__empty {
  margin: 0;
  padding: clamp(20px, 3vw, 34px) var(--pad) clamp(48px, 6vw, 90px);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-meta);
}

/* --- Reel: always dark ------------------------------------------------- */

.hu-section--reel { background: var(--hu-ink); color: var(--hu-paper); }
.hu-section--reel .hu-smast__title { color: var(--hu-paper); }
.hu-section--reel .hu-smast__stand { color: #B9BDC4; }
.hu-section--reel .hu-smast__up,
.hu-section--reel .hu-smast__count,
.hu-section--reel .hu-section__empty { color: rgba(237, 237, 234, 0.6); }
.hu-section--reel .hu-smast__up:hover { color: var(--hu-paper); }
.hu-reel { display: grid; gap: 1px; background: rgba(237, 237, 234, 0.14); border-top: 1px solid rgba(237, 237, 234, 0.14); }
.hu-reel__item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--hu-ink);
  color: inherit;
  text-decoration: none;
}
.hu-reel__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #17181B;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hu-reel__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), opacity var(--hover) var(--ease); }
.hu-reel__item:hover .hu-reel__poster img { transform: scale(1.03); opacity: 0.85; }
.hu-reel__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 237, 234, 0.45);
  color: var(--hu-paper);
  z-index: 1;
  transition: background var(--hover) var(--ease), border-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-reel__play svg { width: 16px; height: 16px; }
.hu-reel__item:hover .hu-reel__play { background: var(--hu-gold); border-color: var(--hu-gold); color: var(--hu-ink); }
.hu-reel__txt { padding: clamp(22px, 3.4vw, 48px) var(--pad); display: grid; align-content: center; gap: 12px; }
.hu-reel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hu-reel__title em { font-family: var(--font-accent); font-style: normal; font-weight: 300; text-transform: none; color: var(--hu-soft-blue); }
.hu-reel__dek { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: #B9BDC4; max-width: 52ch; }
.hu-reel__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-body); font-size: 14px; color: rgba(237, 237, 234, 0.62); }
@media (max-width: 820px) { .hu-reel__item { grid-template-columns: 1fr; } }

/* --- Case rows (.hu-crows; .hu-rows is the news enquiry list) ---------------------------------------------------------- */

.hu-crows__switch { display: flex; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hu-crows__tab {
  flex: 1;
  padding: 16px var(--pad);
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-meta);
  border: 0;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  transition: background var(--hover) var(--ease), color var(--hover) var(--ease);
}
.hu-crows__tab:last-child { border-right: 0; }
.hu-crows__tab:hover { color: var(--text); }
.hu-crows__tab[aria-pressed="true"] { background: var(--text); color: var(--bg-page); }
.hu-crows__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 40px);
  align-items: center;
  padding: clamp(16px, 2.2vw, 26px) var(--pad);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background var(--hover) var(--ease);
}
.hu-crows__row:first-of-type { border-top: 1px solid var(--rule); }
.hu-crows__switch + .hu-crows__row { border-top: 0; }
.hu-crows__row:hover { background: var(--bg-card); }
.hu-crows__row[hidden] { display: none; }
.hu-crows__main { display: grid; gap: 6px; }
.hu-crows__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.6vw, 34px); letter-spacing: 0; line-height: 1.05; }
.hu-crows__title em { font-family: var(--font-accent); font-style: normal; font-weight: 300; color: var(--accent-ink); }
.hu-crows__who { font-family: var(--font-body); font-size: 13.5px; color: var(--text-body); line-height: 1.5; }
.hu-crows__side { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-family: var(--font-body); font-size: 14px; color: var(--text-meta); text-align: right; }
.hu-crows__client { color: var(--text-body); }
.hu-crows__swatch { width: 26px; height: 26px; flex: 0 0 26px; }
@media (max-width: 760px) {
  .hu-crows__row { grid-template-columns: 1fr; row-gap: 8px; }
  .hu-crows__side { justify-content: flex-start; }
}

/* --- Papers --------------------------------------------------------------- */

.hu-section--papers { background: var(--bg-card); }
.hu-papers__filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px var(--pad); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-page); }
.hu-papers__f {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--hover) var(--ease), color var(--hover) var(--ease), border-color var(--hover) var(--ease);
}
.hu-papers__f:hover { border-color: var(--text); }
.hu-papers__f[aria-pressed="true"] { background: var(--text); color: var(--bg-page); border-color: var(--text); }
.hu-papers__item {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(20px, 2.8vw, 36px) var(--pad);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
.hu-papers__item:first-of-type { border-top: 1px solid var(--rule); }
.hu-papers__filters + .hu-papers__item { border-top: 0; }
.hu-papers__item[hidden] { display: none; }
.hu-papers__no { font-family: var(--font-body); font-size: 14px; color: var(--text-meta); padding-top: 6px; }
.hu-papers__body { display: grid; gap: 10px; }
.hu-papers__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.4vw, 30px); letter-spacing: 0; line-height: 1.12; transition: color var(--hover) var(--ease); }
.hu-papers__item:hover .hu-papers__title { color: var(--accent-ink); }
.hu-papers__title em { font-family: var(--font-accent); font-style: normal; font-weight: 300; color: var(--accent-ink); }
.hu-papers__abs { font-family: var(--font-body); font-size: 14.5px; line-height: 1.68; color: var(--text-body); max-width: 70ch; }
.hu-papers__tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.hu-papers__tags span { font-family: var(--font-body); font-size: 13px; padding: 4px 8px; background: var(--bg-page); border: 1px solid var(--hairline); color: var(--text-meta); }
@media (max-width: 760px) { .hu-papers__item { grid-template-columns: 1fr; gap: 8px; } .hu-papers__no { padding-top: 0; } }

/* --- Mixed shelf ---------------------------------------------------------- */

.hu-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.hu-shelf__c {
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  background: var(--bg-page);
}
.hu-shelf__c--w2 { grid-column: span 2; }
.hu-shelf__c--w3 { grid-column: span 3; }
.hu-shelf__c--w6 { grid-column: span 6; }
.hu-shelf__panel { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background-size: 34px 34px; transition: filter var(--hover) var(--ease); }
.hu-shelf__c--w6 .hu-shelf__panel { aspect-ratio: auto; min-height: 220px; }
.hu-shelf__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hu-shelf__c:hover .hu-shelf__panel { filter: brightness(0.92); }
.hu-shelf__body { padding: clamp(14px, 1.8vw, 22px) clamp(14px, 1.8vw, 22px) clamp(18px, 2.4vw, 28px); display: grid; gap: 8px; align-content: start; }
.hu-shelf__k { font-family: var(--font-body); font-size: 14px; color: var(--text-meta); }
.hu-shelf__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(16px, 1.9vw, 24px); letter-spacing: 0; line-height: 1.15; }
.hu-shelf__title em { font-family: var(--font-accent); font-style: normal; font-weight: 300; color: var(--accent-ink); }
.hu-shelf__dek { font-family: var(--font-body); font-size: 13.5px; line-height: 1.62; color: var(--text-body); }
@media (max-width: 760px) { .hu-shelf { grid-template-columns: repeat(2, 1fr); } .hu-shelf__c--w3, .hu-shelf__c--w6 { grid-column: span 2; } }

/* --- Timeline ------------------------------------------------------------ */

.hu-section--timeline { background: var(--bg-card); }
.hu-tline__year {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(18px, 2.4vw, 30px) var(--pad);
  border-bottom: 1px solid var(--rule);
}
.hu-tline__year:first-child { border-top: 1px solid var(--rule); }
.hu-tline__y { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: 0; line-height: 1; color: #8A8F96; }
.hu-tline__entries { display: grid; gap: 16px; }
.hu-tline__e {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 160px);
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
}
.hu-tline__e:last-child { border-bottom: 0; padding-bottom: 0; }
.hu-tline__body { display: grid; gap: 7px; }
.hu-tline__m { font-family: var(--font-body); font-size: 14px; color: var(--text-meta); }
.hu-tline__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 2vw, 26px); letter-spacing: 0; line-height: 1.15; transition: color var(--hover) var(--ease); }
.hu-tline__e:hover .hu-tline__title { color: var(--accent-ink); }
.hu-tline__title em { font-family: var(--font-accent); font-style: normal; font-weight: 300; color: var(--accent-ink); }
.hu-tline__dek { font-family: var(--font-body); font-size: 14px; line-height: 1.65; color: var(--text-body); max-width: 60ch; }
.hu-tline__thumb { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--hairline); }
.hu-tline__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .hu-tline__year { grid-template-columns: 1fr; gap: 10px; } .hu-tline__e { grid-template-columns: 1fr; } .hu-tline__thumb { display: none; } }

/* ==========================================================================
   25. Entry: one film, project, paper or piece
   ========================================================================== */

.hu-entry { background: var(--bg-page); position: relative; z-index: 3; }
.hu-emast { max-width: 1180px; margin: 0 auto; padding: clamp(96px, 16vh, 150px) var(--gutter) clamp(24px, 3vh, 40px); }
.hu-emast__up { display: inline-block; margin-bottom: 18px; font-family: var(--font-body); font-size: 14px; color: var(--text-meta); text-decoration: none; transition: color var(--hover) var(--ease); }
.hu-emast__up:hover { color: var(--text); }
.hu-emast__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.6vw, 84px); line-height: 1.02; letter-spacing: 0; max-width: 18ch; }
.hu-emast__title em { font-family: var(--font-accent); font-style: normal; font-weight: 300; color: var(--accent-ink); }
.hu-emast__stand { margin: 18px 0 0; font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--text-body); max-width: 60ch; }
.hu-emast__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--font-body); font-size: 14px; color: var(--text-meta); }
.hu-emast__facts a { color: var(--text); text-decoration: none; }
.hu-emast__facts a:hover { color: var(--accent-ink); }
.hu-elead { max-width: 1180px; margin: 0 auto clamp(28px, 4vw, 56px); padding: 0 var(--gutter); }
.hu-elead img, .hu-elead video { display: block; width: 100%; height: auto; }
.hu-elead--embed { aspect-ratio: 16 / 9; }
.hu-elead--embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.hu-enav { max-width: 1180px; margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--gutter) clamp(48px, 6vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hu-enav__a { display: grid; gap: 8px; padding: clamp(18px, 2.4vw, 30px) clamp(16px, 2vw, 28px); background: var(--bg-page); color: inherit; text-decoration: none; transition: background var(--hover) var(--ease); }
.hu-enav__a:hover { background: var(--bg-card); }
.hu-enav__a--next { text-align: right; }
.hu-enav span:empty { background: var(--bg-page); }
.hu-enav__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 2vw, 26px); letter-spacing: 0; line-height: 1.15; }
.hu-enav__t em { font-family: var(--font-accent); font-style: normal; font-weight: 300; color: var(--accent-ink); }
@media (max-width: 640px) { .hu-enav { grid-template-columns: 1fr; } .hu-enav__a--next { text-align: left; } }

/* --- Work and Story: the page masthead, bare or as a cover ---------------- */

.hu-smast--page { padding-bottom: clamp(28px, 4vh, 48px); }
/* Page titles read as typed; uppercase stays on the section and reel display headings. */
.hu-smast--page .hu-smast__title { max-width: none; text-transform: none; }

/*
 * With media the masthead is a cover: the picture or video fills the top of
 * the page, darkened by the scrim, and the title sits on it where the
 * placement setting puts it.
 */
.hu-smast--cover {
  position: relative;
  display: grid;
  align-content: var(--cover-align, center);
  justify-items: var(--cover-justify, start);
  min-height: calc(var(--cover-h, 100) * 1vh);
  overflow: hidden;
  background: var(--hu-ink);
  color: var(--hu-white);
}
@supports (height: 1svh) { .hu-smast--cover { min-height: calc(var(--cover-h, 100) * 1svh); } }
.hu-smast--cover .hu-smast__title { position: relative; z-index: 1; color: var(--hu-white); }
.hu-smast__media { position: absolute; inset: 0; margin: 0; }
.hu-smast__media img,
.hu-smast__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hu-smast__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, var(--cover-scrim, 0.42)); pointer-events: none; }
/* A provider embed cannot be object-fit, so the frame is sized to cover the
   whole header at 16:9 and centred; the tile's 178% crop was cutting most of it away. */
.hu-smast__embed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hu-smast__embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
}

/* ==========================================================================
   26. The frame
   ========================================================================== */

/*
 * Full bleed is reserved for the home hero, the front feature that rides over
 * it, the page cover, the client band and the tile grids. Every other block
 * stops at the frame, so lists and filters never run edge to edge. Text inside a framed block is
 * inset by --pad, which puts it a little inside the masthead's left edge.
 *
 * Last in the file on purpose: a block's own margin rule must not win over
 * the frame.
 */
.hu-crows,
.hu-papers,
.hu-tline,
.hu-shelf,
.hu-reel,
.hu-section__empty,
.hu-newslead,
.hu-ticker,
.hu-filters,
.hu-notes__list,
.hu-notes__empty,
.hu-sfeature { margin-inline: var(--frame); }
