/* Metric-matched fallbacks.
   Bebas Neue is very condensed; Arial Narrow is not, and Arial is not remotely.
   Swapping between them reflows every heading on the page the moment the webfont
   lands — which on a slow phone is seconds in, while someone is already reading.
   These faces make the fallback occupy the same space as the real thing, so the
   swap changes the shape of the letters and nothing else.

   Every number below is measured, not estimated: canvas fontBoundingBox metrics
   and advance widths for a representative string, at 100px, in this project's
   own type. size-adjust is webfont-width / fallback-width; the ascent and
   descent overrides are the webfont's own metrics divided by that size-adjust,
   because size-adjust rescales them too.

   Two faces per family because the first local() that exists wins, and the two
   candidates are too different to share one adjustment — Arial Narrow needs
   74.4%, Arial needs 61%. Arial Narrow covers macOS and Windows; Arial (or its
   metric clone) covers iOS and Android, where Arial Narrow does not ship. */
@font-face {
  font-family: "Bebas Fallback";
  src: local("Arial Narrow"), local("Liberation Sans Narrow");
  size-adjust: 74.4%;
  ascent-override: 121%;
  descent-override: 40.3%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Bebas Fallback Wide";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 61%;
  ascent-override: 147.5%;
  descent-override: 49.2%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Sans Fallback";
  src: local("Helvetica Neue"), local("Helvetica");
  size-adjust: 97.1%;
  ascent-override: 102%;
  descent-override: 31.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Sans Fallback Wide";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 94.7%;
  ascent-override: 104.5%;
  descent-override: 32.7%;
  line-gap-override: 0%;
}

/* TETTPA design system */
:root {
  --bg: #030303;
  --surface: #0a0a0a;
  --surface-elevated: #111111;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: #8a8a8a;
  --muted-strong: #b7b7b7;
  --red: #e30613;
  --red-hot: #ff1a28;
  /* --red is 4.22:1 on --bg — below the 4.5:1 AA threshold. Use it for fills,
     borders, dots and ::selection; use --red-text (5.33:1) for anything read. */
  --red-text: #ff1a28;
  --red-glow: rgba(227, 6, 19, 0.38);
  --green: #5cdb8f;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --font-display: "Bebas Neue", "Bebas Fallback", "Bebas Fallback Wide", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "DM Sans Fallback", "DM Sans Fallback Wide", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  /* Small-text scale. Replaces 15 near-identical sizes that ranged
     0.62–1.05rem; steps are ~13% apart so they read as distinct. */
  --fs-micro: 0.68rem;
  --fs-small: 0.78rem;
  --fs-body: 0.88rem;
  --fs-lead: 1rem;
  --content: 1120px;
  --gutter: clamp(1rem, 4vw, 1.5rem);

  /* Safe-area insets, named once.
     Every env() in this file resolves through these four, so the fallback is
     written in one place rather than four. All eight public pages ship
     viewport-fit=cover, which is what makes these anything but 0px — without it
     the whole layer silently reads zero and no inset handling works at all.

     The rule for consuming one: max(design-padding, inset). Never the inset
     alone, which drops the design padding to nothing on a device with no cutout;
     never design + inset, which double-counts on a device with one. And an
     element that consumes a horizontal inset via its offset must take the same
     amount off its width, or it simply overflows the far edge instead. */
  --inset-top: env(safe-area-inset-top, 0px);
  --inset-right: env(safe-area-inset-right, 0px);
  --inset-bottom: env(safe-area-inset-bottom, 0px);
  --inset-left: env(safe-area-inset-left, 0px);

  /* Gutters with the landscape insets already folded in. On a notched phone
     turned sideways the cutout moves to one of these edges. */
  --gutter-left: max(var(--gutter), var(--inset-left));
  --gutter-right: max(var(--gutter), var(--inset-right));

  /* Vertical spacing scale. Before this there were ~39 distinct values across
     the file and no way to tell an intentional gap from a typo. Component
     spacing resolves to a step; section rhythm resolves to one of the three
     named tiers below.

     Every tier is keyed to viewport WIDTH. Nothing here may key to viewport
     height: that is what made spacing appear to change size mid-scroll. */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Minimum comfortable touch target — iOS HIG 44px. */
  --tap-min: 44px;

  --rhythm-tight: clamp(2rem, 5vw, 3.5rem);
  --rhythm-section: clamp(4rem, 8vw, 7rem);
  --rhythm-loose: clamp(3rem, 7vw, 5rem);

  /* Header height, derived rather than declared.
     The three parts below are what .site-header actually pads and contains, so
     anything offsetting for the header stays correct by construction — including
     on a Dynamic Island phone in standalone mode, where --inset-top is ~59px and
     the old hardcoded 4.6rem left the page heading tucked under the bar. That
     case is invisible in Safari with browser chrome and invisible in DevTools,
     which is why it shipped. */
  --header-pad-block: 0.8rem;
  --header-logo-h: clamp(2.4rem, 5.5vw, 3.6rem);
  --header-pad-bottom: 1.4rem;
  /* The row is as tall as its tallest child, and on a phone that is the 44px
     nav toggle rather than the 2.4rem logo — deriving from the logo alone
     under-reported the bar by 6.6px. Above 768px the toggle is display:none and
     the logo is the taller of the two anyway, so one max() covers both. Between
     768 and 800px it over-reports by up to 1.8px, which is the safe direction:
     content clears the header rather than hiding beneath it. */
  --header-content-h: max(var(--header-logo-h), var(--tap-min));
  --header-height: calc(
    max(var(--header-pad-block), var(--inset-top))
    + var(--header-content-h)
    + var(--header-pad-bottom)
  );
}

/* Anchor targets clear the fixed header instead of landing behind it. The site
   sets scroll-behavior: smooth, so without this the destination visibly slides
   to a stop underneath the bar. */
html {
  scroll-padding-top: var(--header-height);
}

/* The scroll bar, quiet. Left alone, a browser that shows a classic scroll bar
   (a mouse plugged in, Windows, "Always show scroll bars" on a Mac) draws a
   light grey track down the right edge of a black page. This gives it a thin
   grey thumb on the page's own colour, so it is there when looked for and not
   before. scrollbar-color is inherited, so every scrolling box on the site and
   in the admin gets the same thumb.

   The @supports block is for a Safari from before 26.2, which only knows the
   ::-webkit-scrollbar parts. A browser that knows scrollbar-color ignores
   those parts, so the two never mix. */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--bg);
}

@supports not (scrollbar-color: auto) {
  html::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }

  html::-webkit-scrollbar-track {
    background: var(--bg);
  }

  html::-webkit-scrollbar-thumb {
    border: 2px solid var(--bg);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }
}

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

html {
  scroll-behavior: smooth;
  /* The page colour, and the floor under tettpaa-bg.js. That script inserts an
     opaque canvas at z-index -1, so nothing here is seen on a public page while
     it runs — this is what shows when it does not: no JS, no WebGL, or the
     admin, which shares this stylesheet and is given no canvas.

     The red bloom was on body until the canvas needed body transparent to show
     through. It reads the same from here: both boxes start at the top left and
     run the height of the document. */
  background:
    radial-gradient(circle at 18% 12%, rgba(227, 6, 19, 0.08), transparent 28rem),
    var(--bg);
  /* clip, not hidden: hidden on a scroll container makes it scrollable
     programmatically and can strand content off-axis. Nothing should reach this
     — it is the net under the guards, not the guard. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  /* Transparent, and it has to stay that way. tettpaa-bg.js sits its canvas at
     z-index -1, and a negative z-index paints above the root's background but
     *below* the background of every in-flow block — body included. Any colour
     here hides the canvas completely. The page colour is on html above. */
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The background canvas tettpaa-bg.js inserts. The script styles the rest of it
   inline; these two are here because they are about the page, not the canvas.

   The band is cut off at both ends by where it is placed — it starts at the
   hero's bottom edge and stops at the footer's top — and the shader puts its
   brightest corners hard against its own edges. Unmasked, the glow began and
   ended on a straight horizontal line. The fade is capped in pixels so a long
   page does not turn most of the band into gradient; the hero above it fades
   over roughly the same distance.

   The opacity is the strength dial. At full strength the glow put the
   --red-text section labels at 2.2:1 and --muted copy at 2.5:1 against the
   pixels behind them — against the 4.5:1 this file holds itself to at :67-69,
   and worse than the flat --bg those colours were picked on. At 0.45 they
   measure about 3.8:1 and 4.3:1. Up for more heat, down for more black. */
#tettpaa-bg {
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 min(220px, 15%), #000 calc(100% - min(220px, 15%)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 min(220px, 15%), #000 calc(100% - min(220px, 15%)), transparent 100%);
}

/* Deliberately not `filter` on body.
   A filter makes the element a containing block for every position:fixed
   descendant, so hue-rotating body detached the header and the hero morph logo
   from the viewport and let them scroll away with the page — the film grain
   that used to sit here came loose the same way. A fixed overlay tinting what
   is behind it gets the same look and leaves positioning alone. */
body.psychedelic-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  backdrop-filter: hue-rotate(90deg);
  -webkit-backdrop-filter: hue-rotate(90deg);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(227, 6, 19, 0.75);
  color: #fff;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: max(1rem, var(--inset-left));
  top: max(1rem, var(--inset-top));
  z-index: 10001;
  transform: translateY(-140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header

   The contract for the scrolled state, and the reason this used to jump:

   A scroll-triggered class on the header may change VISUAL properties only —
   background, border-color, box-shadow, color, opacity. It may never change
   padding, margin, height or font-size, and it may never transition one of
   them. The header is the one element on the page whose size is re-evaluated
   while a finger is moving, so a layout property here animates against a
   scroll position the browser is still settling.

   A scroll-triggered class dropped padding-bottom from 1.4rem to 0.85rem over
   250ms once, fired by a single threshold near the top of the page that
   momentum and rubber-band scrolling cross repeatedly in one gesture — so the
   bar resized itself several times per flick. Nothing changes the header on
   scroll any more (header.js), but if that ever comes back: do it with
   transform: translateY(), which composites and cannot disturb layout. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: max(var(--header-pad-block), var(--inset-top))
           var(--gutter-right) var(--header-pad-bottom) var(--gutter-left);
  /* Solid across the top padding: see "Safari 26 and the status bar" below. */
  background: linear-gradient(to bottom, var(--bg) var(--header-pad-block), rgba(3, 3, 3, 0.68) 56%, transparent);
  /* No border-bottom, and it must not come back as a transparent one either.
     background-clip defaults to border-box, so the gradient paints underneath
     the border strip, and the seam where the two meet rasterises as a visible
     hairline across the whole width — at the top of the page, where the header
     is supposed to be an invisible wash over the hero. It read as a deliberate
     rule, which is what made it worth hunting down: it survived because the
     border was `transparent` and so looked inert in the stylesheet.

     Verified by bisection in the browser: the line needs BOTH the border and
     the gradient, and drops the moment either one goes. */
  transition: background 0.25s ease;
}

/* Safari 26 and the status bar.

   Safari 26 on iOS draws the page behind the status bar and ignores
   theme-color. To fill that strip it hit-tests the top edge of the viewport,
   finds the fixed element there (this header), and extends that element's
   colour up to the top of the screen. If it can't settle on a colour it fills
   nothing, and the page shows through between the status bar and the header.
   On an iPhone 16 that band was about 13px of whatever was scrolling past.

   The rule is WebKit's LocalFrameView::fixedContainerEdges():

     - An element with backdrop-filter is a hard no. Safari fills nothing
       above it, however opaque it is. That is why the scrolled bar used to
       fail: it was 86% black with blur(16px). No blur here, ever.
     - A solid background-color is used as it is. Anything at 75% alpha or more
       is rounded up to opaque.
     - With no background-color (the gradient at rest), Safari samples the
       pixels 4px down from the top instead. The gradient is solid across the
       top padding so that sample reads --bg exactly rather than --bg blended
       with whatever the hero shows there.
     - A ::before or ::after doesn't count on its own. The hit test resolves
       a pseudo-element to the element it belongs to, so a solid strip drawn
       with one still reads as the header.
     - The hit test's first pass ignores pointer-events, so a full-screen
       overlay above the header is what it finds. When that overlay is a
       pseudo-element on body, it resolves to body — and body isn't fixed, so
       Safari gives up without ever reaching the header. A film grain lived on
       body::before and was kept below the header for exactly that reason,
       until it was taken out; anything full-screen added here must stay below
       it too. */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  width: min(100%, var(--content));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    transform: translateY(-1px);
  }
}

.brand:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.nav-overlay a:focus-visible,
.btn:focus-visible,
.agency-tile:focus-visible,
.resident-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* The lockup ships as two halves sharing the original artwork's canvas, so
   stacking them at one height reassembles the logo exactly. The box keeps the
   wordmark's slot reserved while only the heads are showing, which is what lets
   the hero's wordmark land in it without anything shifting. */
.brand__lockup {
  position: relative;
  display: block;
  line-height: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: var(--header-logo-h);
}

/* top/left rather than inset:0 — width stays auto so this half is sized by the
   same height and intrinsic aspect as the mark, never stretched to the box.

   The opacity comes through a custom property on purpose. site.js drives this
   half during the scroll morph, and writing --brand-text-opacity inline rather
   than `opacity` leaves the property itself free: the rules below can then win
   on ordinary specificity, rather than each needing a forced override to
   out-shout an inline style — which is what check-mobile-css.sh ratchets on.
   Defaults to 1 so a page with no morph shows the lockup whole. */
.brand__logo--text {
  position: absolute;
  top: 0;
  left: 0;
  opacity: var(--brand-text-opacity, 1);
}

/* Home opens with the heads alone and the wordmark still down in the hero;
   site.js fades this in as the morph delivers it. Every other page has no hero
   to fly it up, so the lockup simply shows whole.

   There used to be a `.page-home .site-header:not(.is-scrolled) .brand` rule
   hiding the header logo outright at the top of home — it was there to stop it
   duplicating the full lockup in the hero. The hero only holds the wordmark
   now, so there is nothing to duplicate and the heads stay visible throughout. */
.page-home .brand__logo--text {
  --brand-text-opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav-links a,
.nav-overlay a,
.footer-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-lead);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover,
  .nav-links a.is-active {
    color: #fff;
  }
}

.nav-toggle {
  display: none;
  width: var(--tap-min);
  height: var(--tap-min);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* Bars only — no chip behind them. The 44px box stays (box-sizing is
     border-box everywhere, so dropping the border did not shrink it): it is the
     tap target, it just no longer paints. border-radius stays for the same kind
     of reason — nothing draws it, but :focus-visible's outline follows it, so
     the focus ring keeps the rounded shape every other control here has. */
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* Dimmed rather than filled, now that there is no chip to fill. Only reachable
   in a narrow case anyway — the toggle is display:none above 768px, so this
   needs a fine pointer on a window narrower than that. */
@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover {
    opacity: 0.65;
  }
}

.nav-toggle__bar {
  display: block;
  /* Sized to hold its own against the 96x38 wordmark without the chip that used
     to do it. Width and gap carry the increase; the bars stay 2px because the
     rest of the header is thin — a heavier stroke would make the icon louder
     than the mark it sits opposite. */
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* 8px is height + gap — the distance from an outer bar to the middle one. It is
   not a free number: it is what puts both arms of the X on the same centre line,
   so it has to be re-derived whenever either of those two changes. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Three display-size links plus the social row need ~316px. A phone in
     landscape has ~320-390px of height, so the social row fell off the bottom
     with no way to reach it — the overlay had no scroll of its own. */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(var(--space-l), var(--inset-top)) max(var(--space-l), var(--inset-right))
           max(var(--space-l), var(--inset-bottom)) max(var(--space-l), var(--inset-left));
  background: rgba(3, 3, 3, 0.96);
  pointer-events: none;
  visibility: hidden;
  /* The menu rises from the bottom edge: clipped away to nothing at the bottom
     when closed, uncovered upwards on open, and wiped back down on close. A
     clip rather than a slide, so the panel never travels and its scroll never
     moves under the finger. Each state's own transition is the one used going
     into it. The open uses the lift's curve, which moves at once and then
     settles, so the tap is answered within a frame; an ease-in-out here had
     uncovered 4% of the panel 150ms after the tap, which reads as a missed tap.
     visibility runs for the same time so the panel stays visible until the
     wipe has finished, and the global reduced-motion rule makes both instant. */
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.4s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.4s;
}

.nav-open .nav-overlay {
  pointer-events: auto;
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s var(--lift-ease), visibility 0.6s;
}

/* Then the links rise into the uncovered panel one after another, the same
   lift as the rest of the site at the menu's own scale (em, so a 7rem link
   rises further than a 3rem one), and the social row last. Animations, not
   transitions, so they play on each open and leave the links' colour
   transition alone; filled backwards, so they hold below until their turn. */
@media (prefers-reduced-motion: no-preference) {
  .nav-open .nav-overlay__links a {
    animation: menu-rise 0.9s var(--lift-ease) backwards;
  }

  .nav-open .nav-overlay__links a:nth-child(1) {
    animation-delay: 0.12s;
  }

  .nav-open .nav-overlay__links a:nth-child(2) {
    animation-delay: 0.2s;
  }

  .nav-open .nav-overlay__links a:nth-child(3) {
    animation-delay: 0.28s;
  }

  .nav-open .nav-overlay__social {
    animation: lift-in var(--lift-duration) var(--lift-ease) 0.4s backwards;
  }
}

@keyframes menu-rise {
  from {
    opacity: 0;
    translate: 0 0.6em;
  }
}

/* Keep the big hero logo (and its scroll-morph clone) from bleeding over the open menu */
.nav-open #hero-logo-morph {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* The header logo is the way back to the home page, so it has to stay usable
   with the menu open — it is the only Home affordance there is. The header sits
   above the overlay already (z-index 100 vs 99). The blanket hide at the top of
   home is gone now that the heads live here permanently, so what is left to beat
   is the inline opacity site.js writes on the wordmark half while the morph is
   mid-flight; !important beats an inline style. */
.nav-open .brand {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Same reasoning for the wordmark half. With the menu open the header logo is
   the only way home, and it should read as the logo rather than as heads
   waiting on text the overlay is covering. */
.nav-open .brand__logo--text {
  opacity: 1;
}

.nav-overlay__links {
  display: grid;
  gap: var(--space-s);
}

.nav-overlay a {
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(3rem, 14vw, 7rem);
  line-height: 0.92;
  transition: color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-overlay a:hover,
  .nav-overlay a.is-active {
    color: #fff;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Shared sections */
main {
  min-height: 60vh;
}

.section {
  position: relative;
  padding: var(--rhythm-section) 0;
}

.section--no-border {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-l);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head--center {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section-head--center .section-label {
  margin-bottom: 0.85rem;
}

.section-head--center h2 {
  margin-bottom: 0;
}

.section-label {
  display: block;
  margin: 0 0 1rem;
  color: var(--red-text);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

h1,
.display-heading {
  margin-bottom: 0.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.eyebrow {
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.copy {
  max-width: 42rem;
  color: var(--muted-strong);
  font-size: var(--fs-lead);
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
    color: #fff;
  }
}

.btn-primary {
  border-color: transparent;
  background: var(--red);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--red-hot);
    box-shadow: 0 0 28px var(--red-glow);
  }
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* The public site's button: a pill whose label rolls up and out on hover while
   an identical copy rolls in beneath it. site.js builds the two copies from the
   button's text at load, because the CMS writes plain text into it; with no
   script this is the same pill with a still label.

   A modifier rather than a change to .btn, because the admin loads this
   stylesheet too and keeps the plain .btn for its own controls. Everything here
   is written against .btn-roll, and each rule that has to beat a .btn or
   .btn-primary rule names both classes rather than relying on order alone. */
.btn-roll {
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.75rem 1.7rem;
  background: rgba(255, 255, 255, 0.09);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn-primary.btn-roll {
  border-color: transparent;
  background: var(--red);
  color: #fff;
}

/* One line tall and clipped, so only one copy shows at a time. Each copy is
   exactly one line, so moving both up by their own height swaps them. */
.btn-roll__label {
  display: block;
  height: 1.2em;
  overflow: hidden;
  line-height: 1.2;
}

.btn-roll__text {
  display: block;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}

.btn-roll:focus-visible .btn-roll__text {
  transform: translateY(-100%);
}

@media (hover: hover) and (pointer: fine) {
  .btn-roll:hover .btn-roll__text {
    transform: translateY(-100%);
  }

  .btn.btn-roll:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
  }

  .btn-primary.btn-roll:hover {
    border-color: transparent;
    background: var(--red-hot);
    color: #fff;
    box-shadow: 0 12px 34px -10px var(--red-glow);
  }
}

/* Lift: content rises a short way into place the first time it scrolls into
   view, the way GSAP's ScrollTrigger reveals do on the sites this was modelled
   on. Mark an element data-lift; site.js adds .is-lifted when it enters the
   viewport and staggers a batch in document order. The three tokens are the
   whole feel of it, so tune here rather than per element.

   Hidden only under (scripting: enabled), so a visitor without JavaScript never
   meets content held at opacity 0, and only when motion is allowed. If site.js
   never runs at all, the failsafe brings everything up after 2.5s: until the
   script marks <html> .lift-ready, nothing can tell "not reached yet" from
   "never coming".

   translate rather than transform, because translate composes with whatever
   transform an element already carries (a card's hover, a centring offset)
   instead of replacing it. Animated, never transitioned: a transition here
   would replace the element's own transition list, which on a .btn is its
   hover. And filled backwards, so once the rise lands it lets go of opacity and
   translate entirely and the element's own rules are back in charge. */
:root {
  --lift-distance: 1.5rem;
  --lift-duration: 0.9s;
  --lift-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-lift]:not(.is-lifted) {
    opacity: 0;
    translate: 0 var(--lift-distance);
  }

  [data-lift].is-lifted {
    animation: lift-in var(--lift-duration) var(--lift-ease) var(--lift-delay, 0ms) backwards;
  }

  html:not(.lift-ready) [data-lift] {
    animation: lift-failsafe 0.6s ease 2.5s forwards;
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    translate: 0 var(--lift-distance);
  }
}

@keyframes lift-failsafe {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Lenis (site.js) eases the wheel on desktop. These are its own recommended
   rules from lenis.css, minus the ones for options this site does not use. While
   it is smooth-scrolling, iframes stop taking the pointer so a SoundCloud or
   YouTube embed passing under the cursor cannot swallow the wheel mid-glide;
   they take it back the moment the page comes to rest. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Homepage */
.hero {
  position: relative;
  /* svh, not dvh: both keep mobile browser chrome from cropping the lockup off
     the bottom, and both resolve to the same height on load — but dvh tracks the
     URL bar and so grows mid-scroll when the bar collapses, pushing every section
     below the hero down as you read. svh is the stable one. See docs/mobile-audit.md. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--space-s)) 0
           max(3.5rem, var(--inset-bottom));
}

.hero__bg,
.hero__picture,
.hero__photo,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__bg {
  z-index: 0;
  overflow: hidden;
  /* No fill. The photo and the clip both fade to nothing over their last third
     (the mask below), and with var(--surface) behind them that fade ended on a
     flat rectangle — which met the background canvas as a hard horizontal line
     at the bottom of the hero. With nothing here the mask dissolves the hero
     into whatever is behind the page, which is what it was drawn to do. */
}

.hero__picture {
  display: block;
}

/* The still (frame 0 of the clip, see index.html) and Axel's photo share the
   video's framing exactly: any difference in object-fit, object-position or
   mask would show as a shift at the handover. */
.hero__still,
.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 36%;
  /* Matches the fade on .hero__video, so a handover to a different picture is
     a cross-dissolve rather than a cut. */
  transition: opacity 0.8s ease;
  /* Fade the image downward into the page background — no hard edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
}

/* Axel's photo is only in the page when video can't play (it waits in a
   <template> in index.html until then), so there is no rule to show it. What
   needs a rule is the still: .hero-photo on <html> is the <head> probe's
   verdict (reduced motion, Save-Data, Low Power Mode), nothing will move, and
   the still would only be a second, different picture. */
.hero-photo .hero__picture {
  display: none;
}

.hero__scrim {
  /* Above both hero videos, which use z-index 0 and 1 to crossfade. Everything
     outside .hero__bg is unaffected: .hero__bg is its own stacking context at
     z-index 0, so .hero-lockup and .hero-scroll-cue still sit above all of it. */
  z-index: 2;
  pointer-events: none;
  /* The vertical ramp is deliberately lighter than it looks like it should be,
     because it is never the only thing darkening the video:

       - the bottom is already faded by the mask on .hero__video, which runs
         from 62% down to nothing. The scrim used to ramp to solid var(--bg)
         over roughly the same span, so the two fades multiplied and the hero
         was down to 10% visibility behind the bottom of the wordmark. The mask
         owns that fade now; the scrim only leans in for the last stretch.
       - the top is already covered by .site-header's own gradient (solid black,
         gone by its bottom edge). A heavy top stop here was darkening a band
         that was dark twice over.

     The bottom stop is fully transparent rather than var(--bg): opaque, it was
     the other half of the hard line where the hero met the background canvas,
     and the 22% stop is what actually pools behind the wordmark anyway.

     What is left is the part that actually needs it — a pool behind the lockup,
     which sits at 57%-85% down. Measured across the repo's club clip and the
     brighter CMS clips, the wordmark still reads at these values; it also
     carries its own drop-shadow, which is what covers a blown-out frame. */
  background:
    linear-gradient(to top, rgba(3, 3, 3, 0) 0%, rgba(3, 3, 3, 0.42) 22%, rgba(3, 3, 3, 0.10) 55%, rgba(3, 3, 3, 0.28) 100%),
    linear-gradient(105deg, rgba(227, 6, 19, 0.12) 0%, transparent 45%);
}

/* The looping video layered over the still, shown by hero-video.js once it is
   actually drawing frames. A visit that gets the photo never gives it a
   source, so nothing is downloaded.

   These properties intentionally repeat .hero__still rather than joining its
   selector list: object-fit and object-position must match it exactly or the
   handover visibly shifts the framing, and keeping the rule standalone means
   dropping the whole experiment is a single block delete. */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0;
  transition: opacity 0.8s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
}

.hero__video.is-playing {
  opacity: 1;
}

/* Once a clip is playing it IS the hero, and the still (or photo) underneath
   has to go. They carry the same bottom mask, so everywhere that mask is
   partly transparent the video was fading into the picture instead of into
   the page — a ghost of it across the lower third of the hero. Hiding it lets
   the mask do what it was drawn to do.

   Keyed off .is-playing rather than "a video exists" so the fallback contract
   from hero-video.js is untouched: every path that clears the class — a decode
   error, a stalled clip — brings the picture straight back. The reel never
   clears it mid-crossfade (the outgoing clip holds .is-playing until the
   incoming one has faded fully in), so nothing flashes between clips.

   Browsers without :has() keep the still under the clip: a faint ghost of the
   same frame in the lower third, nothing worse. */
.hero__bg:has(.hero__video.is-playing) .hero__still,
.hero__bg:has(.hero__video.is-playing) .hero__photo {
  opacity: 0;
}

/* The clip is starting on the very frame the still shows, so there is nothing
   to dissolve: the video takes over in one frame and the still leaves in the
   same one. A fade here would dim the masked lower third halfway through, the
   one thing that would give the handover away. hero-video.js sets this only
   when the reel opens on the still's clip, and drops it once that clip is
   showing, so the reel's own crossfades keep their fade. */
.hero__bg.is-seamless .hero__video,
.hero__bg.is-seamless .hero__still {
  transition: none;
}

/* The clip currently on screen, or fading in to become it. hero-video.js clones
   .hero__video into a pair and crossfades between them, and the one fading in
   has to be on top — the outgoing clip holds at opacity 1 underneath until the
   fade completes, so the hero photo never flashes through between clips. */
.hero__video.is-top {
  z-index: 1;
}

/* Scroll cue: a bouncing chevron, after the one on trondmartenssivilarkitekt.no
   (1.5rem, 6px bounce over 2s) — at 1.5× that size, so 2.25rem and a 9px bounce.

   An inline SVG rather than that site's "⌄" (U+2304): the character is a rare
   technical symbol absent from most fonts, so it would land on an unpredictable
   fallback or tofu depending on the machine. The path renders identically
   everywhere and lets the stroke weight be set deliberately.

   Two elements, because the wrapper owns centring and the scroll fade while the
   svg owns the bounce. The reference had to bake translateX(-50%) into every
   keyframe to centre; separating them keeps the keyframes to translateY. */
.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: clamp(1rem, 2.5vw, 2rem);
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
}

.hero-scroll-cue svg {
  display: inline-block;
  width: 1.75rem;
  height: auto;
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* Bounce distance tracks the chevron's size — a quarter of its width, the same
   ratio the reference uses (6px on 24px). */
@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

/* Phones and tablets used to get a three-quarter-height hero with no cue, so
   the top of the next section showed instead. The hero is full-screen at every
   size now, and with nothing below it in view the cue is what says "more
   below" here too. It clears the home indicator on a phone. */
.hero .hero-scroll-cue {
  bottom: max(clamp(1rem, 2.5vw, 2rem), var(--inset-bottom));
}

/* The hero's opening: the wordmark rises into place and the cue fades in once
   it has landed, the same lift as data-lift above but on load rather than on
   scroll, so it needs no script and starts with the first paint. translate,
   not transform, because .hero-lockup's transform is its centring.

   site.js waits for this to finish before it measures the wordmark for the
   scroll morph. Filled backwards, so once landed the cue's own opacity (the
   .is-hidden fade on scroll) is back in control. */
@media (prefers-reduced-motion: no-preference) {
  .hero-lockup {
    animation: lift-in 1.1s var(--lift-ease) 0.15s backwards;
  }

  .hero .hero-scroll-cue {
    animation: cue-in 0.8s ease 1.1s backwards;
  }
}

@keyframes cue-in {
  from {
    opacity: 0;
  }
}

.hero-lockup {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 10%;
  /* Centred rather than inset from the left. The hero carries only the wordmark
     now, and it reads as a title card on the hero's centre line. `bottom` and
     every width expression are untouched, so the wordmark keeps the exact size
     and vertical position it had inside the full lockup. */
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(100% - 6rem, 50rem);
  transform: translateX(-50%);
  text-align: left;
  pointer-events: none;
}

/* The wordmark sits on the full lockup canvas with the heads erased, so its ink
   centre is at 64.245% of the file's width rather than 50%. Pulling it back by
   the 14.245% difference puts the ink — not the canvas — on the centre line.
   A percentage resolves against the element's own width, so this holds at every
   viewport without a single media query.

   Deliberately not applied to #hero-logo-morph: site.js overwrites that clone's
   transform outright, and it already starts from the offset position because
   getBoundingClientRect() on this element reports the transformed box. */
.hero-lockup__logo {
  display: block;
  width: min(100%, clamp(19rem, 44vw, 42rem));
  transform: translateX(-14.245%);
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55));
}

.hero-logo-source.is-morph-source-hidden {
  visibility: hidden;
}

.hero-lockup__tagline {
  max-width: 30rem;
  margin: clamp(0.6rem, 1.4vw, 1rem) 0 0;
  color: rgba(255, 255, 255, 0.82);
  /* No font-family here on purpose. A visibility:hidden element still matches
     fonts, so naming the brand face cost a 104KB download for text nobody sees.
     The face and its token are gone now; restoring the tagline means restoring
     both. assets/fonts/MADEFlorenceSans.otf is still in the repo for that. */
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.58);
  transition: opacity 0.18s linear, transform 0.18s linear;
  /* Text hidden per request — kept in the DOM (same height reserved) so the
     logo above it doesn't shift, and so the scroll-morph script (site.js)
     keeps working untouched. */
  visibility: hidden;
}

#hero-logo-morph {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  display: block;
  width: min(100%, clamp(19rem, 44vw, 42rem));
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55));
}

/* It used to rise in on page load, which on the home page meant it finished
   long before anyone scrolled down to it. It carries data-lift now and rises
   when it is reached. */
.hero-mail-form {
  width: min(100%, 30rem);
}

.hero-mail-pill {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.3rem 0.3rem 1.35rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-mail-pill:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.hero-mail-pill input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.hero-mail-pill input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.hero-mail-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0.65rem 1.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-mail-btn:hover {
    background: var(--red-hot);
    box-shadow: 0 0 22px var(--red-glow);
  }
}

.resident-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 720px;
  margin: 2.25rem auto 0;
}

.resident-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text);
  text-align: center;
}

.resident-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.resident-card__img-wrap img,
.agency-tile__img,
.profile-hero__img,
.kompis-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.resident-card__img-wrap img {
  object-position: center top;
  transition: transform 0.5s ease, filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .resident-card:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
}

.resident-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Agency */
.agency-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.agency-tile {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  color: var(--text);
}

.agency-tile:last-child {
  border-right: 0;
}

.agency-tile__img {
  position: absolute;
  inset: 0;
  object-position: center top;
  transition: transform 0.7s ease, filter 0.5s ease;
}

.agency-tile__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 3, 3, 0.85) 0%, rgba(3, 3, 3, 0.3) 40%, rgba(3, 3, 3, 0.15) 70%, rgba(3, 3, 3, 0.4) 100%),
    linear-gradient(135deg, rgba(227, 6, 19, 0.07) 0%, transparent 55%);
  transition: opacity 0.5s ease;
}

.agency-tile__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-inline: max(clamp(1.5rem, 4vw, 2.5rem), var(--inset-left))
                  max(clamp(1.5rem, 4vw, 2.5rem), var(--inset-right));
  /* vw, not vh: keyed to viewport height this changed size as the URL bar moved. */
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.agency-tile--right .agency-tile__content {
  align-items: flex-end;
  text-align: right;
}

.agency-tile__label {
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.agency-tile__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: text-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .agency-tile:hover .agency-tile__img {
    transform: scale(1.04);
    filter: brightness(1.07);
  }
}

@media (hover: hover) and (pointer: fine) {
  .agency-tile:hover .agency-tile__scrim {
    opacity: 0.8;
  }
}

@media (hover: hover) and (pointer: fine) {
  .agency-tile:hover .agency-tile__name {
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.18);
  }
}

/* Archive */
.archive-main {
  padding: 0;
}

.profile-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 10, 0.72);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* Form fields. The contact page they were built for is gone; they stay because
   the admin's login and dialogs are made from them (see admin.css), and the
   status line is shared with the mailing-list form. */
.contact-form {
  display: grid;
  gap: var(--space-s);
  max-width: 42rem;
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0.8rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.contact-form__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form__input:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.contact-form__status,
.hero-mail-form__status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
}

.hero-mail-form__status {
  margin-top: 0.85rem;
}

.contact-form__status--ok,
.hero-mail-form__status--ok {
  color: var(--green);
}

.contact-form__status--err,
.hero-mail-form__status--err {
  color: var(--red-hot);
}

/* Profiles */
.profile-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.profile-hero__img {
  position: absolute;
  inset: 0;
  object-position: center top;
}

/* A place's clip (T6), filling its frame over the photo: the top of an artist
   page (under the scrim) and Come Closer's opener (inside the frame's
   dissolve). Its still is frame 0 of the file that plays, so the clip takes
   over without a jump; with no clip in the CMS the still has no src and
   nothing here paints. */
.clip,
.clip picture,
.clip__still,
.clip__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clip {
  pointer-events: none;
}

.clip__still,
.clip__video {
  display: block;
  max-width: none;
  object-fit: cover;
}

.clip__video {
  opacity: 0;
}

.clip__video.is-playing {
  opacity: 1;
}

/* Video can't play on this visit (the <head> probe, or clip.js after a
   refusal): the photo shows, and the still would only be a second picture.
   clip.js lifts this when the visitor taps "Play with sound". */
.clip-photo .clip {
  display: none;
}

/* Sound, bottom right on the scroll cue's line, its text flush with the
   column's right edge. The site's mono label type, at --fs-small rather than
   the city's --fs-micro: a control, and T5's rule for new text on phones
   (mobile audit finding 19, the 10.9px call, stays open). Padding takes the
   tap area to 44px without moving the text, and the negative offset gives
   that padding back. Shown by clip.js only when the file that plays has a
   sound track. */
/* The Sound button: the Apple TV ring (Lars' pick, 2026-11-03), see-through,
   a speaker inside. Muted, a slash crosses it; on, the slash draws away and
   the waves come in (clip.js builds the icon and sets .is-on). 44px, the
   smallest comfortable tap target. */
.profile-hero__sound {
  position: absolute;
  right: 0;
  bottom: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* A press you can see on a phone, where there is no hover (finding 20). */
.profile-hero__sound:active {
  opacity: 0.6;
}

.profile-hero__sound[hidden] {
  display: none;
}

@media (hover: hover) {
  .profile-hero__sound:hover {
    background-color: rgba(255, 255, 255, 0.14);
  }
}

.profile-hero__sound:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.sound-icon {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.sound-icon path,
.sound-icon line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The slash is drawn twice: once as a line, once in the mask, where it cuts
   the gap in the speaker. Both un-draw together (pathLength 1: offset 0 is
   drawn, 1 is gone). */
.sound-icon__slash {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.32s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}

.sound-icon mask .sound-icon__slash {
  stroke: #000;
  stroke-width: 3.6;
}

/* Muted, the speaker stands alone, so it moves to the middle of the ring;
   with sound it slides left to make room for the waves, as Apple's symbol
   does. */
.sound-icon__body {
  transform: translateX(4.5px);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-hero__sound.is-on .sound-icon__body {
  transform: none;
}

.sound-icon__wave {
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-hero__sound.is-on .sound-icon__slash {
  stroke-dashoffset: 1;
  transition-delay: 0s;
}

.profile-hero__sound.is-on .sound-icon__wave {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}

.profile-hero__sound.is-on .sound-icon__wave--far {
  transition-delay: 0.26s;
}

/* Photo mode (Low Power Mode, reduced motion): a play triangle, filled so it
   sits with Apple's play buttons. */
.sound-icon__play {
  display: none;
}

.profile-hero__sound.is-photo .sound-icon__play {
  display: inline;
  fill: currentColor;
}

.profile-hero__sound.is-photo .sound-icon > :not(.sound-icon__play) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sound-icon__slash,
  .sound-icon__body,
  .sound-icon__wave {
    transition: none;
  }
}

.profile-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 3, 3, 0.92) 0%, rgba(3, 3, 3, 0.5) 30%, rgba(3, 3, 3, 0.18) 65%, rgba(3, 3, 3, 0.45) 100%),
    linear-gradient(105deg, rgba(227, 6, 19, 0.1) 0%, transparent 45%);
}

.profile-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter-left) - var(--gutter-right), var(--content));
  margin-inline: auto;
  /* vw, not vh — see .agency-tile__content above. */
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.profile-hero__name {
  /* Bebas Neue carries a 0.041em left side bearing. Harmless at label sizes, but
     at display size it visibly indents the name past the rest of the column, so
     pull it back by exactly that much. In em, so it holds across the clamp. */
  margin: 0 0 0.85rem -0.041em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.65);
}

.profile-hero__sub {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.profile-hero__sub {
  margin-bottom: 0.6rem;
  color: var(--red-text);
  /* Grows with the name under it (clamp 4.5–10rem): 12.8px on a phone, 16px
     (the .section-label size) at 1440 and up. At --fs-micro it was 1:15 to
     the name on desktop and read as a speck. */
  font-size: clamp(0.8rem, 0.73rem + 0.3vw, 1rem);
}

/* The same chevron as the home hero, but in the flow under the name rather
   than pinned to the hero's bottom edge, so it can never sit on top of the
   name. Unlike home it stays on phones: this hero fills the whole screen, so
   nothing else hints that there is more below. site.js fades it on scroll. */
.hero-scroll-cue.profile-hero__cue {
  position: static;
  margin-top: var(--space-xs);
  color: rgba(255, 255, 255, 0.55);
}

.profile-info {
  padding-top: clamp(2rem, 3.5vw, 3rem);
}

.profile-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.profile-bio {
  max-width: 44rem;
}

.profile-bio__text {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.75;
}

.profile-bio__text strong {
  color: var(--text);
}

.profile-meta {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--muted);
  font-size: var(--fs-body);
}

.profile-meta li {
  margin-bottom: 0.55rem;
}

.profile-meta span {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-socials {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-socials a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.profile-socials a:last-child {
  border-bottom: 0;
}

/* City and country as one run of text, so ", NO" sits right after the city
   instead of being pushed off by the fixed-width label column above. */
.profile-base {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (hover: hover) and (pointer: fine) {
  .profile-socials a:hover {
    color: var(--text);
  }
}

/* Home page "Spor" podcast section. Hidden until the CMS supplies a playlist
   link: the iframe ships without a src and the edge only adds one when
   home.spor.embed is saved, so an empty player is never shown. */
.spor:has(iframe:not([src])) {
  display: none;
}

.spor__link {
  margin-top: var(--space-m);
}

.video-embed,
.sc-embed {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #000;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sc-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.kompis-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.kompis-thumb {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.kompis-thumb img {
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .kompis-thumb:hover img {
    transform: scale(1.05);
  }
}

.kompis-thumb-grid .kompis-thumb:last-child:nth-child(3n - 1) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.profile-photos-coming {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Gallery tiles are clickable once the CMS-backed grids hydrate */
.kompis-thumb,
.photo {
  cursor: pointer;
}

/* Lightbox — shared by Kompis, Amnesi and Archive galleries.

   The two dvh values below are the deliberate exception to the svh rule the rest
   of this file follows. This element is position:fixed with nothing beneath it in
   flow, so there is no page rhythm for it to disturb — and a full-screen viewer
   *should* track the browser chrome, growing into the space the URL bar vacates
   rather than leaving a band of dead backdrop. */
dialog.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  /* 100vw counts the classic desktop scrollbar and overflows by its width;
     inset: 0 above already spans the viewport. The dvh height below is the
     deliberate exception noted at the top of this rule. */
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(3, 3, 3, 0.97);
  overflow: hidden;
}

dialog.lightbox::backdrop {
  background: rgba(3, 3, 3, 0.97);
  backdrop-filter: blur(10px);
}

.lightbox__box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1400px);
  max-height: 86vh;
  max-height: 86dvh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: fixed;
  /* Was a flat 1.25rem (20px), which on a Dynamic Island phone put the whole
     40px button inside the ~59px top inset — the taps went to the system, not
     the page. With the backdrop click blocked by .lightbox__box covering the
     dialog, that left no visible way out of the viewer at all. */
  top: max(1.25rem, var(--inset-top));
  right: max(1.25rem, var(--inset-right));
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  /* Round, like the archive strip's arrows and the Sound ring. Every button
     on the public site has round ends: a pill when it carries a label, a
     circle when it carries a sign. Boxes with soft corners are for pictures
     and panels. */
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
  }
}

.lightbox__counter {
  position: fixed;
  top: max(1.25rem, var(--inset-top));
  left: max(1.25rem, var(--inset-left));
  z-index: 2;
  height: 2.5rem;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.lightbox__bar {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, var(--inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.lightbox__caption {
  display: none;
  height: 2.5rem;
  padding: 0 0.9rem;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lightbox__caption:not(:empty) {
  display: inline-flex;
}

.lightbox__nav {
  display: flex;
  gap: max(var(--space-2xs), 8px);
}

.lightbox__nav button {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox__nav button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
  }
}

@media (max-width: 640px) {
  .lightbox__close,
  .lightbox__nav button {
    width: 44px;
    height: 44px;
  }

  /* height only — the counter sizes its own width from its padding */
  .lightbox__counter {
    height: 44px;
  }
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: var(--space-s);
  width: min(100% - 2rem, 34rem);
  margin-inline: auto;
  padding: var(--space-l) 0;
  text-align: center;
}

.not-found__logo {
  width: auto;
  height: 88px;
  opacity: 0.9;
}

.not-found .copy {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--rhythm-loose) var(--gutter-right)
           max(var(--space-xl), calc(var(--space-m) + var(--inset-bottom)))
           var(--gutter-left);
  /* Neither a background nor the hairline it used to carry above it: the glow
     stops before the footer begins, and that change of ground is what separates
     them now. Padding does the rest. */
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--space-l);
  width: min(100%, var(--content));
  margin-inline: auto;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 80px;
  opacity: 0.88;
}

.site-footer__copy,
.site-footer__label,
.site-footer__link,
.site-footer__note {
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.site-footer__label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--red-text);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.footer-nav,
.site-footer__col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-nav a,
.site-footer__link,
.site-footer__note {
  color: var(--muted);
}

.footer-nav a {
  font-size: var(--fs-lead);
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover,
  .footer-nav a.is-active,
  .site-footer__link:hover {
    color: var(--text);
  }
}

.site-footer__note {
  margin: 0;
  font-family: var(--font-mono);
}

/* Toast and fun states */
.secret-toast {
  position: fixed;
  bottom: max(var(--space-m), var(--inset-bottom));
  left: 50%;
  z-index: 10000;
  max-width: 90vw;
  transform: translateX(-50%) translateY(120%);
  border: 1px solid rgba(227, 6, 19, 0.35);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.secret-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.glitch-mode .brand__logo,
.glitch-mode h1,
.glitch-mode h2 {
  animation: glitch 0.35s infinite;
}

@keyframes glitch {
  0% {
    filter: drop-shadow(2px 0 #0ff) drop-shadow(-2px 0 #f00);
    transform: translate(0);
  }

  25% {
    filter: drop-shadow(-2px 0 #0ff) drop-shadow(2px 0 #f00);
    transform: translate(-1px, 1px);
  }

  50% {
    filter: drop-shadow(2px 0 #f00) drop-shadow(-2px 0 #0ff);
    transform: translate(1px, -1px);
  }

  100% {
    filter: none;
    transform: translate(0);
  }
}

/* Responsive
   ───────────
   The breakpoint ladder, in one place so the next one added has somewhere to
   belong:

     1024px and up   desktop — hero reel plays, header goes solid late
     1023px and down hero drops to three-quarter height
      900px          two-column grids collapse to one
      768px          primary nav becomes the overlay menu
      640px          the main phone layout — upright, hero plays phone versions
      440px          small phone — the mail pill stacks

   Capability queries — (hover: hover), (pointer: coarse),
   (prefers-reduced-motion) — are used wherever the question is really about the
   input device rather than the width, and are preferred for anything new.

   These values are not consolidated on purpose: each one is where a particular
   piece of the design changes shape, and moving them would change the design
   rather than the code. */
@media (max-width: 900px) {
  .section-head,
  .profile-info__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-lockup {
    top: auto;
    bottom: 5%;
    /* The offset consumed the left inset but the width did not, so in landscape
       on a notched phone the lockup started 59px in and stayed viewport-wide,
       running ~19px off the right edge. body's overflow clip hid it. Both sides
       come off the width now. */
    left: 50%;
    width: min(
      100% - max(1.5rem, var(--inset-left)) - max(1.5rem, var(--inset-right)),
      32rem
    );
  }

  .hero-lockup__tagline {
    font-size: 1rem;
    line-height: 1.35;
  }

  .hero-mail-pill {
    padding-left: 1.05rem;
  }

  .hero-mail-btn {
    padding-inline: 1.05rem;
  }

  .resident-cards,
  .agency-stage {
    grid-template-columns: 1fr;
  }

  /* Stacked: keep each name tied to the image above, not the card below */
  .resident-cards {
    gap: var(--space-xl);
  }

  .agency-stage {
    height: auto;
  }

  .agency-tile {
    height: 65vh;
    height: 65svh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .agency-tile--right .agency-tile__content {
    align-items: flex-start;
    text-align: left;
  }

  .profile-meta span {
    display: block;
    min-width: 0;
    margin-bottom: 0.12rem;
  }

  .kompis-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-embed iframe {
    height: 300px;
  }
}

@media (max-width: 440px) {
  .hero-mail-pill {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-xs);
    border-radius: var(--radius-md);
    padding: 0.95rem;
  }

  .hero-mail-pill input {
    min-height: 42px;
  }

  .secret-toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
    transform: translateY(120%);
  }

  .secret-toast.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #hero-logo-morph {
    display: none !important;
  }

  /* hero-video.js also bails out on this preference; the rule is the belt to
     its braces, and covers the case where the preference changes after load. */
  .hero__video {
    display: none !important;
  }

  /* With no clip coming the still would only be a second picture; the
     <head> probe puts Axel's photo in instead. */
  .hero__picture {
    display: none;
  }

  /* No rule needed for .hero-scroll-cue: the blanket animation override above
     lands scroll-bounce on its final keyframe — translateY(0), i.e. a static
     chevron sitting exactly where it belongs. The profile pages use the same
     cue. */

  .hero-logo-source {
    visibility: visible !important;
  }

  .hero-lockup__tagline,
  .brand {
    opacity: 1 !important;
    transform: none !important;
  }

  /* With reduced motion, site.js crossfades the wordmark from the hero into the
     header rather than flying it, and marks the page .has-hero-morph once it
     does. Until then, or without the script at all, the header shows the
     lockup whole rather than stranding the heads without their text. The hero
     keeps the centred wordmark via .hero-logo-source above. */
  .page-home:not(.has-hero-morph) .brand__logo--text {
    opacity: 1;
  }
}

/* ============================================================
   Added components — extend the existing system, do not replace
   ============================================================ */

/* Header nav + social cluster */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.9rem);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .social-links a:hover {
    color: #fff;
    transform: translateY(-1px);
  }
}

.social-links a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.social-links svg {
  display: block;
}

/* Footer brand: logo, tagline, social */
.site-footer__social {
  margin: 0.15rem 0 0.25rem -0.4rem;
}

.site-footer__social a {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__social a:hover {
    color: var(--text);
  }
}

/* Mobile nav-overlay social */
.nav-overlay__social {
  justify-content: center;
  margin-top: 2.75rem;
  gap: var(--space-m);
}

.nav-overlay__social a {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.56);
}

/* Homepage About — two columns + stat strip */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

.about-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.about-body p.copy {
  max-width: 38rem;
  margin-bottom: 1.1rem;
}

.about-body p.copy:last-child {
  margin-bottom: 0;
}

/* "Come Closer" under the About copy — spaced like the Spor button. */
.about-text__link {
  margin-top: var(--space-m);
}

/* About media: a row of photos and short muted loops under the About copy.
   Portrait tiles, so a phone-shot clip fills its tile without letterboxing. */
.about-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-xs);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.about-media[hidden] {
  display: none;
}

.about-media__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.about-media__item img,
.about-media__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage mailing-list CTA — centered section at the end of the page */
.mail-cta {
  display: grid;
  justify-items: center;
  max-width: 36rem;
  text-align: center;
}

.mail-cta .section-label {
  margin-bottom: 0.5rem;
}

.mail-cta h2 {
  margin-bottom: 0.75rem;
}

.mail-cta .copy {
  margin: 0 auto 2rem;
}

.mail-cta .hero-mail-form {
  margin-inline: auto;
}

/* "Fra arkivet" horizontal strip */
.archive-strip__scroller {
  /* Reserved so the strip does not shove the page down when the API answers.
     Derived from the item width and its 4/5 poster, not guessed. */
  min-height: calc(clamp(13rem, 42vw, 17rem) * 1.25 + 2.75rem);
  display: flex;
  gap: var(--space-s);
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* No scrollbar. It sat as a bright rule under the posters and read as part
     of the design rather than as chrome. The strip keeps its own affordances —
     the arrows, the snap, and the edge fades — so nothing is lost by hiding it,
     and it still scrolls by wheel, drag, trackpad and keyboard. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.archive-strip__scroller::-webkit-scrollbar {
  display: none;
}

.archive-strip__item {
  flex: 0 0 auto;
  width: clamp(13rem, 42vw, 17rem);
  scroll-snap-align: start;
}

.archive-strip__poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.archive-strip__poster:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.archive-strip__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .archive-strip__item:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
}

.archive-strip__caption {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.archive-strip__player {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* Archive strip — scroll affordance (edge fade + prev/next) */
.archive-strip {
  position: relative;
}

.archive-strip::before,
.archive-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.25rem;
  width: clamp(1.5rem, 6vw, 3.5rem);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.archive-strip::before {
  left: calc(var(--gutter) * -1);
  background: linear-gradient(to right, var(--bg), transparent);
}

.archive-strip::after {
  right: calc(var(--gutter) * -1);
  background: linear-gradient(to left, var(--bg), transparent);
}

.archive-strip.can-scroll-left::before,
.archive-strip.can-scroll-right::after {
  opacity: 1;
}

.archive-strip__nav {
  position: absolute;
  top: calc(50% - 0.625rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.archive-strip__nav--prev {
  left: 0.25rem;
}

.archive-strip__nav--next {
  right: 0.25rem;
}

.archive-strip.can-scroll-left .archive-strip__nav--prev,
.archive-strip.can-scroll-right .archive-strip__nav--next {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .archive-strip__nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
    transform: translateY(-1px);
  }
}

.archive-strip__nav:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (hover: none) {
  .archive-strip__nav {
    display: none;
  }

  .archive-strip::before,
  .archive-strip::after {
    display: none;
  }
}

/* Archive page — intro header + grouped events */
.archive-intro {
  padding: calc(var(--header-height) + clamp(2rem, 6vw, 3.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.archive-intro .copy {
  margin-top: 0.75rem;
}

/* Each event reads like a section on the rest of the site: the ordinary h2,
   then its details as labelled pairs in the artist pages' press-card style,
   then the photos. The photographer is credited once, in those details, not
   again on every photo. Spacing alone separates one event from the next — the
   hairline that used to went with the rest of them. */
.archive-event {
  padding: var(--rhythm-loose) 0;
}

.archive-event__head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.archive-event__name {
  margin: 0 0 var(--space-s);
}

.archive-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-l);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-strong);
  font-size: var(--fs-body);
}

.archive-event__meta span {
  margin-right: var(--space-2xs);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.archive-event__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* A wide photo that does not fit at the end of a row would otherwise leave
     holes; dense lets the next square photo fill them. */
  grid-auto-flow: dense;
  gap: 10px;
}

.archive-event__grid .photo--wide {
  grid-column: span 2;
}

.photo {
  position: relative;
  /* A <figure>: without this the UA's 40px side margin shrinks every tile
     inside its grid cell and leaves the photos floating apart. */
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.photo--wide {
  aspect-ratio: 2 / 1;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .photo:hover img {
    transform: scale(1.04);
    filter: brightness(0.85);
  }
}

/* Come Closer — the long-read About page. It is the home page's About section
   carried on: the same two columns (.about-grid), headings at the statement's
   size (.about-statement) and body copy at its measure (.about-body), so the
   two read as one voice. Only the rhythm, the lead and the sign-off are its
   own. The columns stack at 900px with the rest of .about-grid. */
/* The opener. The first photo fills the first screen with only the header's
   own wash over it, down to the first section's heading and opening line,
   which sit at the foot of that screen on the dark the photo dissolves into:
   the way the profile pages set the name at the foot of theirs (.profile-hero),
   and the way club and festival sites put their menu straight onto a
   photograph. It used to sit under a title on a strip of red that ended in a
   hard line where the photo began; the title is kept for screen readers and
   search (.visually-hidden in the markup), and the red now rises out of the
   photo.

   The photo takes whatever height the text leaves (flex), rather than the text
   being pulled up by a fixed amount, so a longer opening line from the CMS
   shortens the photo instead of running off the screen. svh and the 600px
   floor as .profile-hero: stable while a phone's URL bar collapses, and not a
   sliver on a phone held sideways. */
.come-closer__opener {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: max(600px, 100svh);
  padding-bottom: max(var(--space-l), var(--inset-bottom));
}

/* The frame owns the dissolve rather than the photo, so a clip laid over the
   photo later fades out the same way. The same stops as the home hero
   (.hero__photo), so the site's two full-screen openings end alike. No
   background: a fill here would cover the red where the photo turns
   transparent, which is the hard line again (see .hero__bg). */
.come-closer__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 16rem;
  margin: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
}

/* Cover: the frame's shape is whatever the screen and the text leave, and the
   photo is whatever Axel uploads, upright or wide, so it is cropped from the
   middle. On a phone his upright crowd shot very nearly fits as it is. */
.come-closer__opener-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Where the red starts: where the dissolve above starts. The glow fades itself
   in over its first 220px (#tettpaa-bg), so it comes up through the photo just
   as the photo lets go, with no line at either end. */
.come-closer__glow-start {
  position: absolute;
  top: 62%;
  left: 0;
  width: 1px;
  height: 0;
  pointer-events: none;
}

/* The same air between the faded photo and the heading as between any two
   Come Closer sections. */
.come-closer__intro {
  padding-top: var(--rhythm-loose);
}

.come-closer__intro .come-closer__lead {
  margin-bottom: 0;
}

/* The rest of "what it is", under its opening line: the second column on a
   wide screen, so the copy runs on at the same measure. */
.come-closer__more {
  padding-bottom: var(--rhythm-loose);
}

@media (min-width: 901px) {
  .come-closer__more .about-body {
    grid-column: 2;
  }
}

/* The archive's event rhythm: loose padding, no rule between. The section tier
   would put more air between two paragraphs of one story than the home page
   puts between its sections. */
.come-closer__section {
  padding: var(--rhythm-loose) 0;
}

/* Come Closer pairs each section with one photograph, but not in the same way
   five times. "what it is" takes the opener's. "how it started" carries 180
   words against the others' 38-68, and it is the only text block long enough
   to stand beside a tall image without leaving a hole under it — so it keeps
   the two columns, with the photo starting the left one and its heading over
   the text in the right. That way the two headings at the top of the page do
   not open on the same line, one under the other. The other three lead with
   the photograph and set their text in the same grid underneath, which means
   the reading measure never moves and only the picture's placement changes.

   The variation comes from the copy's own weight rather than from alternating
   sides. Mirroring every second row is the layout most page builders ship by
   default, and eyetracking puts it behind an aligned layout whenever the
   images are atmospheric rather than informational, which these are. */
/* Heading over its own text, the same distance as every other Come Closer
   heading sits above its text once the columns stack. */
.come-closer__story .about-statement {
  margin-bottom: var(--space-m);
}

.come-closer__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.come-closer__photo {
  display: block;
  width: 100%;
  height: auto;
}

/* --- the one section that still sets its photo beside the copy ----------- */

/* Beside the text an upright frame otherwise runs on long after the copy has
   ended, so it is held to about 4:5 — proportionally, so it holds at every
   desktop width instead of squaring off on wide screens. */
@media (min-width: 901px) {
  .come-closer__aside .come-closer__photo {
    max-height: min(46vw, 35rem);
    object-fit: cover;
  }
}

/* Stacked, the column is the whole wrap, which would put the photo wider than
   the copy it belongs to and taller than the screen. */
@media (max-width: 900px) {
  .come-closer__aside .come-closer__figure {
    max-width: 38rem;
  }

  .come-closer__aside .come-closer__photo {
    max-height: 44rem;
    object-fit: cover;
  }

  /* Spor's photo keeps the 4:5 it had over its own text before the mixes
     moved in beside it, so the text and the mixes come up sooner. */
  .come-closer__aside--spor .come-closer__photo {
    aspect-ratio: 4 / 5;
  }
}

/* --- the three that lead with the photograph ----------------------------- */

.come-closer__figure--band,
.come-closer__figure--portrait {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* These figures sit outside .wrap, as the opener's did, so they restate
   .wrap's own measure rather than inheriting it. Only the opener runs to the
   edges of the screen. One full-bleed moment per page: a second would make it
   the rhythm rather than the exception. */
.come-closer__figure--band {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

/* 2:1 takes a 3:2 frame down to the room itself and drops the ceiling and the
   floor, which is where the dead space in these particular shots sits. */
.come-closer__figure--band .come-closer__photo {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* The one upright photograph does not become a band. Cropping 2:3 into a wide
   strip would cut the raised fan and the face, which is the picture. It leads
   its section like the other three, but centred at the copy's measure and kept
   upright — which also gives the page a third shape instead of a fourth
   repeat of the same band. */
.come-closer__figure--portrait {
  width: min(100% - (var(--gutter) * 2), 34rem);
  margin-inline: auto;
}

.come-closer__figure--portrait .come-closer__photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* A 2:1 band on a phone is a 190px sliver, which reads as a divider rather
   than a photograph. */
@media (max-width: 700px) {
  .come-closer__figure--band .come-closer__photo {
    aspect-ratio: 4 / 3;
  }
}

/* The opening line, at the hero tagline's size. Body face rather than display:
   it is a full sentence, and Bebas in capitals is for a few words at a time. */
.come-closer__lead {
  max-width: 38rem;
  margin-bottom: var(--space-m);
  color: var(--text);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
}

/* The Spor player, closing Come Closer (spor-player.js, docs/spor-player.md).
   It sits in "spor & the agency", under the text that introduces Spor, with no
   heading of its own: one story, one heading, its photo beside it like "how it
   started". The rows keep the text's measure. SoundCloud is named on every row
   and on the button, which is the credit its terms ask for, so there is no
   separate credit line. The red marks only what is playing. Its own press and
   focus rules live here rather than in the shared lists, so it can be lifted
   out whole. */

/* The section ends the page, so it takes the section tier at the bottom, as
   the sign-off that used to close the page did. */
.come-closer__section:last-child {
  padding-bottom: var(--rhythm-section);
}

/* A new block under the text, so a step more than between paragraphs. */
.spor-player {
  margin-top: var(--space-xl);
}

/* At the copy's measure (.about-body p.copy), so the length and credit stay
   near their title once the columns stack on a tablet. */
.spor-player__list {
  max-width: 38rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-strong);
}

/* Room for four rows before SoundCloud answers, so the page does not grow
   under the reader (mobile audit, finding 11). Only with scripting: without
   it nothing will ever fill the box. */
@media (scripting: enabled) {
  .spor-player__list[aria-busy="true"] {
    min-height: calc(4 * 4.6rem);
  }
}

.spor-player__list[aria-busy="true"]:empty::before {
  content: "Loading the mixes…";
  display: block;
  padding: var(--space-s) 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spor-player__track {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-s);
  border-bottom: 1px solid var(--border-strong);
}

/* The time line is the row's own hairline: under the playing row it fills red
   from the left as the mix plays. spor-player.js sets --progress (0 to 1). */
.spor-player__track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* The seek bar (T8d). The same hairline, made holdable: a strip around the
   line that takes the mouse or a finger, and a small red dot where the mix
   is. It exists only on the row that plays or is paused part way, so the list
   at rest is the list as it was. A slider to the keyboard and to a screen
   reader (spor-player.js gives it the role and the arrow keys).

   pan-y: a finger that goes up or down on the strip still scrolls the page;
   only a sideways hold moves the mix. */
.spor-player__seek {
  display: none;
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  /* Centred on the hairline, which is the row's bottom edge. */
  bottom: -12px;
  height: 24px;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.spor-player__track.is-current .spor-player__seek {
  display: block;
}

/* On the playing row the rest of the line is a little lighter, so it reads
   as a line with somewhere left to go. */
.spor-player__track.is-current {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.spor-player__knob {
  position: absolute;
  top: 50%;
  left: calc(var(--progress, 0) * 100%);
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.15s ease, background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .spor-player__seek:hover .spor-player__knob {
    transform: scale(1.35);
    background: var(--red-hot);
  }
}

.spor-player__track.is-seeking .spor-player__knob {
  transform: scale(1.5);
  background: var(--red-hot);
}

.spor-player__seek:focus-visible {
  outline: none;
}

.spor-player__seek:focus-visible .spor-player__knob {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* A fingertip gets a taller strip to land on. */
@media (pointer: coarse) {
  .spor-player__seek {
    bottom: -17px;
    height: 34px;
  }
}

/* Ring, number and title are one button, so a fingertip can land anywhere on
   the left of the row. */
.spor-player__play {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-s);
  width: 100%;
  margin: 0;
  border: 0;
  padding: var(--space-s) 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.spor-player__ring {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.spor-player__ring svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
}

.spor-player__meta {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spor-player__state {
  color: var(--red-text);
}

/* One line, always: the number, the word, the time. On a phone the word steps
   aside once there is a time to show (the ring already says play or pause),
   so the line never breaks and the row keeps its height while its bar is
   dragged past the hour. */
.spor-player__meta {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .spor-player__word.has-time {
    display: none;
  }
}

.spor-player__title {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
}

.spor-player__side {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-align: right;
}

.spor-player__credit {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.spor-player__track.is-current .spor-player__ring {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.spor-player__track.is-current .spor-player__meta {
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .spor-player__play:hover .spor-player__ring {
    border-color: var(--text);
  }

  .spor-player__track.is-current .spor-player__play:hover .spor-player__ring {
    border-color: var(--red-hot);
    background: var(--red-hot);
  }

  .spor-player__credit:hover {
    color: var(--text);
  }
}

.spor-player__play:active .spor-player__ring {
  transform: scale(0.94);
}

.spor-player__more {
  margin-top: var(--space-l);
}

.spor-player__play:focus-visible,
.spor-player__credit:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* SoundCloud's own player: on the page and invisible, never moved off-screen
   (it stops answering there, soundcloud/api #482). This is the setup that
   passed on an iPhone in the T5 spike. */
.spor-player__frame {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 166px;
  opacity: 0;
  pointer-events: none;
}

.spor-player__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .spor-player__ring,
  .spor-player__knob {
    transition: none;
  }

  .spor-player__play:active .spor-player__ring {
    transform: none;
  }
}

.profile-sidebar .btn {
  width: 100%;
}

.profile-sidebar .btn + .btn {
  margin-top: 0.6rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Stacked, each Come Closer heading belongs to the text under it: the
     columns' gap would set it nearly as far from its own text as from the
     section above. */
  .come-closer .about-grid {
    gap: var(--space-m);
  }

  /* Two across on phones rather than one tall tile per row. */
  .about-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-event__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-event__grid .photo--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  /* Columns already went to two at 900px — only the gutter tightens here. */
  .archive-event__grid {
    gap: 8px;
  }
}

/* Touch targets.
   Keyed to the pointer, not the viewport width: 44px is a fingertip guideline,
   and a narrow window on a desktop does not have fingertips. Structural rather
   than per-component, so a control added later inherits the floor instead of
   being remembered. Inline links inside prose opt out — they are text, and
   giving every one of them a 44px box would wreck the line rhythm. */
@media (pointer: coarse) {
  a[class],
  button,
  summary,
  [role="button"],
  input[type="submit"],
  input[type="button"] {
    min-height: var(--tap-min);
  }

  .copy a,
  .profile-bio__text a,
  p > a:not([class]) {
    min-height: 0;
  }

  /* Icon-only controls need the width too, not just the height. */
  .social-links a {
    width: var(--tap-min);
    height: var(--tap-min);
  }

  .site-footer__social {
    margin-left: -0.75rem;
  }

  .footer-nav a,
  .site-footer__link {
    display: flex;
    align-items: center;
  }

  .profile-socials a {
    align-items: center;
  }

  /* Without this the pill's own button stayed ~40px while everything around it
     grew — and it is the home page's primary call to action. */
  .hero-mail-btn {
    min-height: var(--tap-min);
  }
}

/* No control gives press feedback on touch, where there is no hover state to
   stand in for it. One rule, so every control gets it. */
.btn:active,
.hero-mail-btn:active,
.nav-toggle:active,
.lightbox__nav button:active,
.lightbox__close:active,
.archive-strip__nav:active {
  transform: translateY(1px);
}

