/* ─────────────────────────────────────────────────────────────────────────────
   Peter Fraser — Main Stylesheet
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Reset ── */

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

/* ── Fonts (self-hosted, variable — one file covers 300–600) ── */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 600;
  font-display: optional;
  src: url('../fonts/figtree-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 600;
  font-display: optional;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Custom Properties ── */

:root {
  --color-bg:       oklch(99.15% 0.003 95);
  --color-text:     oklch(16%    0.01  72);
  --color-muted:    oklch(52%    0.014 78);
  --color-accent:   oklch(56%    0.16  226);
  --color-border:   oklch(90%    0.012 88);
  --color-surface:  oklch(97.7%  0.008 92);
  /* Opaque: the fixed header sits over scrolling content, and a translucent
     header needs a backdrop-filter to stop text ghosting through it. That blur
     keeps Safari's compositor awake and burns energy, so match the page instead. */
  --color-header:   oklch(99.15% 0.003 95);
  --color-surface-strong: oklch(95.6% 0.012 92);
  --color-accent-warm: oklch(61% 0.105 50);

  --section-surface: var(--color-surface);
  --section-border:  var(--color-border);

  --header-height: 72px;

  --font-sans:            'Figtree', system-ui, -apple-system, sans-serif;
  --font-weight-light:    300;
  --font-weight-regular:  400;
  --font-weight-semibold: 600;

  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-6:   24px;
  --space-8:   32px;
  --space-12:  48px;
  --space-16:  64px;
  --space-24:  96px;

  --transition-base: 250ms ease;
  --transition-page: 300ms ease;
}

/* ── Base ── */

html {
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  opacity: 1;
  transition: opacity var(--transition-page);
}

body.is-entering {
  opacity: 0;
}

body.is-leaving {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.is-leaving {
    transition: none;
  }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── WordPress: current menu item ── */

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a {
  color: var(--color-accent-warm);
}

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.site-nav-overlay .current-menu-item > a,
.site-nav-overlay .current_page_item > a {
  color: var(--color-accent-warm);
}

.site-nav-overlay .current-menu-item > a::after,
.site-nav-overlay .current_page_item > a::after {
  transform: scaleX(1);
}

/* ── WordPress: alignment helpers ── */

.alignleft  { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6); margin-bottom: var(--space-4); }
.aligncenter { display: block; margin-inline: auto; }

/* ─────────────────────────────────────────────────────────────────────────────
   HOMEPAGE COVER
   ───────────────────────────────────────────────────────────────────────────── */

.cover {
  display: block;
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  cursor: pointer;
  color: oklch(98% 0.003 85);
  text-decoration: none;
}

.cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover__image--placeholder {
  background: var(--color-surface-strong);
}

.cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cover picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Set per image by the Mobile focus field on the Home page */
  object-position: var(--hero-focus-x, 50%) center;
}

.cover::after {
  content: '';
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(
    to top,
    oklch(0% 0 0 / 0.55),
    transparent
  );
  pointer-events: none;
}

.cover__foot {
  position: absolute;
  bottom: var(--space-12);
  right: var(--space-8);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.cover__name {
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.cover__entry {
  display: flex;
  align-items: center;
}

.cover__entry svg {
  width: 40px;
  height: 14px;
  overflow: visible;
  animation: arrow-drift 2.5s ease-in-out infinite;
}

@keyframes arrow-drift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .cover__entry svg {
    animation: none;
  }
}

@media (min-width: 640px) {
  .cover__foot {
    bottom: var(--space-16);
    right: var(--space-12);
    gap: var(--space-4);
  }
}

/* When WP admin bar is visible, shrink cover to fit the remaining viewport */
.admin-bar .cover {
  height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .cover {
    height: calc(100dvh - 46px);
  }
}

@media (min-width: 1024px) {
  .cover__foot {
    right: var(--space-16);
  }
  .cover__entry svg {
    width: 48px;
    height: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SITE HEADER (shared)
   ───────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-header);
  border-bottom: 1px solid var(--section-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 var(--space-16);
  }
}

/* When WP admin bar is visible, push the fixed header below it,
   along with the sticky filter bars that sit beneath it */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .timeline-jump,
.admin-bar .update-filters {
  top: calc(var(--header-height) + 32px);
}

.admin-bar .site-nav-overlay {
  padding-top: calc(var(--header-height) + 32px + var(--space-4));
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .timeline-jump,
  .admin-bar .update-filters {
    top: calc(var(--header-height) + 46px);
  }

  .admin-bar .site-nav-overlay {
    padding-top: calc(var(--header-height) + 46px + var(--space-4));
  }
}

/* Below 600px WordPress switches the admin bar to position:absolute so it
   scrolls away, leaving a gap above the fixed header — keep it pinned.
   !important needed because core's admin-bar CSS loads after this file */
@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}

.site-logo {
  font-size: 1.125rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1;
  transition: color var(--transition-base);
}

.site-logo:hover {
  color: var(--color-accent);
}

/* Desktop nav — hidden on mobile */
.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-6);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-base);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.site-nav a:hover {
  color: var(--color-accent-warm);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent-warm);
}

/* Mobile hamburger toggle */
.site-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-2);
}

@media (min-width: 1024px) {
  .site-nav-toggle {
    display: none;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger span {
  display: block;
  height: 1px;
  background: currentColor;
  width: 100%;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

body.nav-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav overlay */
.site-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-4)) var(--space-4) var(--space-8);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

@media (min-width: 1024px) {
  .site-nav-overlay {
    display: none;
  }
}

body.nav-open .site-nav-overlay {
  opacity: 1;
  pointer-events: all;
}

.site-nav-overlay ul {
  list-style: none;
  text-align: center;
  /* centres when there is room, scrolls from the top when there is not */
  margin-block: auto;
}

.site-nav-overlay li + li {
  margin-top: var(--space-4);
}

.site-nav-overlay a {
  font-size: 1.5rem;
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-base);
}

.site-nav-overlay a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.site-nav-overlay a:hover,
.site-nav-overlay a[aria-current="page"] {
  color: var(--color-accent-warm);
}

.site-nav-overlay a:hover::after,
.site-nav-overlay a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HUB PAGE
   ───────────────────────────────────────────────────────────────────────────── */

.page-hub .hub {
  padding-top: var(--header-height);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hub__featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-8);
}

.hub__featured-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--section-border);
  text-decoration: none;
  color: inherit;
}

.hub__featured-item:first-child {
  grid-template-columns: 1fr;
  border-top: none;
  padding-top: 0;
  padding-bottom: var(--space-16);
}

.hub__featured-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
}

.hub__featured-item:first-child .hub__featured-media {
  aspect-ratio: 3 / 2;
}

.hub__featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 600ms ease;
}

@media (hover: hover) {
  .hub__featured-item:hover .hub__featured-media img {
    transform: scale(1.03);
  }
}

.hub__featured-caption {
  padding-top: 0;
}

.hub__featured-item:first-child .hub__featured-caption {
  padding-top: var(--space-3);
}

.hub__featured-type {
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.hub__featured-title {
  display: block;
  font-size: 1.125rem;
  font-weight: var(--font-weight-light);
  line-height: 1.3;
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.hub__featured-item:first-child .hub__featured-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-regular);
  margin-bottom: var(--space-2);
}

.hub__featured-item:hover .hub__featured-title {
  color: var(--color-text);
}

.hub__featured-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-bottom: 2px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  position: relative;
  transition: color var(--transition-base);
}

/* The featured title already carries an 8px bottom margin */
.hub__featured-item:first-child .hub__featured-link {
  margin-top: var(--space-2);
}

.hub__featured-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.hub__featured-item:hover .hub__featured-link {
  color: var(--color-text);
}

.hub__featured-item:hover .hub__featured-link::after {
  transform: scaleX(1);
}

@media (min-width: 640px) {
  .hub__featured-item {
    grid-template-columns: 160px 1fr;
    gap: var(--space-6);
  }

  .hub__featured-item:first-child {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
  }
}

.hub__sections {
  flex: 1;
  padding: var(--space-8);
}

.hub__sections ul {
  list-style: none;
}

.hub__sections li {
  border-top: 1px solid var(--section-border);
}

.hub__sections li:first-child {
  border-top: none;
}

.hub__sections a {
  display: block;
  padding: var(--space-4) 0;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: var(--font-weight-light);
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
  position: relative;
  transition: color var(--transition-base);
}

.hub__sections a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.hub__sections a:hover {
  color: var(--color-accent-warm);
}

.hub__sections a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 1024px) {
  .page-hub .hub {
    display: grid;
    grid-template-columns: 65fr 35fr;
    align-items: start;
    margin-top: var(--header-height);
    padding-top: 0;
    flex-direction: unset;
    max-width: 1440px;
  }

  .hub__featured {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-16);
    background: var(--color-bg);
  }

  .hub__featured-item {
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
  }

  .hub__featured-item:first-child {
    grid-template-columns: 5fr 3fr;
    gap: var(--space-12);
  }

  .hub__sections {
    position: sticky;
    top: var(--header-height);
    display: flex;
    flex-direction: column;
    padding: var(--space-16);
    overflow-y: auto;
  }

  .hub__sections a {
    padding: var(--space-3) 0;
    font-size: clamp(1.125rem, 1.6vw, 1.75rem);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   INNER PAGES
   ───────────────────────────────────────────────────────────────────────────── */

.page-inner {
  padding-top: var(--header-height);
  min-height: 50dvh;
  display: flex;
  flex-direction: column;
}

.page-inner main {
  flex: 1;
  padding: var(--space-12) var(--space-8);
  max-width: 920px;
  width: 100%;
}

@media (min-width: 640px) {
  .page-inner main {
    padding: var(--space-16) var(--space-12);
  }
}

@media (min-width: 1024px) {
  .page-inner main {
    padding: var(--space-24) var(--space-16);
  }
}

@media (min-width: 1440px) {
  .page-inner main {
    max-width: 1100px;
  }
}

.page-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.page-deck {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: var(--space-16);
  max-width: 55ch;
}

.error-404-image {
  width: 100%;
  max-width: 640px;
  margin-right: auto;
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-8);
}

/* ── Page Content (block editor body copy) ── */

.page-content {
  line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--color-text);
  line-height: 1.25;
}

.page-content h1 {
  font-size: 2rem !important;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.02em;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.page-content h2 {
  font-size: 1.75rem !important;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.01em;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.page-content h3 {
  font-size: 1.375rem !important;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.01em;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.page-content h4 {
  font-size: 1.125rem !important;
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}

.page-content h5 {
  font-size: 1rem !important;
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.page-content h6 {
  font-size: 0.75rem !important;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.page-content p {
  max-width: 65ch;
  margin-bottom: var(--space-4);
}

.page-content ul,
.page-content ol {
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
}

.page-content li + li {
  margin-top: var(--space-2);
}

.page-content a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

.page-content a:hover {
  color: var(--color-text);
}

.page-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.page-content blockquote p {
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
  line-height: 1.55;
  color: var(--color-text);
  max-width: 56ch;
  margin-bottom: 0;
}

.page-content blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-style: normal;
}

/* Consecutive quotes share a single hairline divider */
.page-content blockquote + blockquote {
  border-top: none;
  margin-top: calc(-1 * var(--space-8));
}

.page-content figure {
  margin: var(--space-8) 0;
}

.page-content img {
  display: block;
  height: auto;
}

.page-content figcaption,
.page-content .wp-element-caption {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
  font-style: italic;
  text-align: left;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

/* Article stubs */
.article-list {
  list-style: none;
}

.article-stub {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--section-border);
}

.article-stub:last-child {
  border-bottom: none;
}

.article-stub__meta {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.article-stub__author--own {
  color: oklch(28% 0.006 85);
}

.article-stub__title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

.article-stub__title a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

.article-stub__title a:hover {
  color: var(--color-text);
}

.article-stub__excerpt {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 65ch;
  margin-top: var(--space-2);
}

.article-stub--featured {
  padding-bottom: var(--space-16);
}

.article-stub--featured .article-stub__title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.25;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SITE FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--section-border);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .site-footer {
    padding: var(--space-6) var(--space-16);
  }
}

@media (max-width: 640px) {
  .site-footer {
    flex-wrap: wrap;
  }

  .footer__credit {
    width: 100%;
    /* align with the copyright text, past the two social icons + gaps */
    margin-left: calc(2 * 18px + 2 * var(--space-4));
  }
}

.footer__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__social {
  display: flex;
  align-items: center;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.footer__social:hover {
  color: var(--color-accent-warm);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.footer__social:hover svg {
  transform: translateY(-1px);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.footer__credit {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────────────────────── */

.contact-section {
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CV / TIMELINE SHARED
   ───────────────────────────────────────────────────────────────────────────── */

.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--section-border);
}

.cv-header .page-title {
  margin-bottom: var(--space-3);
}

.cv-header .page-deck {
  margin-bottom: 0;
  max-width: none;
}

.cv-header .project-detail-year,
.cv-header .film-detail-year,
.cv-header .writing-detail-meta {
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.cv-section {
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-8);
  margin-bottom: var(--space-16);
}

.cv-section__heading {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.cv-collections {
  list-style: none;
}

.cv-collections li {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--section-border);
}

.cv-collections li:first-child {
  border-top: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BIOGRAPHY PAGE
   ───────────────────────────────────────────────────────────────────────────── */

.page-biography main,
.page-cv main {
  max-width: none;
}

.bio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  padding-bottom: var(--space-12);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--section-border);
}

.bio-header .page-title {
  margin-bottom: var(--space-3);
}

.bio-header .page-deck {
  margin-bottom: 0;
}

.bio-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 2px;
  position: relative;
  transition: color var(--transition-base);
}

.bio-cv-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.bio-cv-link:hover {
  color: var(--color-text);
}

.bio-cv-link:hover::after {
  transform: scaleX(1);
}

.bio-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .bio-intro {
    grid-template-columns: 5fr 8fr;
    gap: var(--space-12);
    align-items: start;
    margin-bottom: var(--space-16);
  }

  .bio-portrait {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
  }
}

@media (min-width: 1024px) {
  .bio-intro {
    gap: var(--space-16);
    margin-bottom: var(--space-24);
  }
}

.bio-portrait {
  display: block;
}

.bio-portrait__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.bio-portrait__caption {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin-top: var(--space-3);
  font-style: italic;
}

.bio-intro__text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 66ch;
}

.bio-intro__text p:last-child {
  margin-bottom: 0;
}

.bio-prose {
  max-width: 68ch;
  margin-bottom: var(--space-16);
}

.bio-prose p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.bio-prose p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .bio-prose {
    margin-bottom: var(--space-24);
  }
}

.bio-timeline {
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-12);
}

.bio-timeline__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  margin-bottom: var(--space-8);
}

.bio-timeline__label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0;
}

.timeline {
  list-style: none;
}

.timeline__entry {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 var(--space-8);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--section-border);
  align-items: baseline;
}

.timeline__entry:first-child {
  border-top: none;
}

.timeline__year {
  font-size: 0.75rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-muted);
  letter-spacing: 0.05em;
  line-height: 1.75;
}

.timeline__title {
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  line-height: 1.5;
}

.timeline__detail {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: var(--space-1);
}

.timeline__detail em {
  font-style: italic;
}

@media (min-width: 640px) {
  .timeline__entry {
    grid-template-columns: 5rem 1fr;
    gap: 0 var(--space-12);
  }
}

@media (min-width: 1024px) {
  .timeline__entry {
    grid-template-columns: 6rem 1fr;
    gap: 0 var(--space-16);
  }

  .timeline__title {
    font-size: 1.0625rem;
  }

  .timeline__detail {
    font-size: 0.9375rem;
  }
}

/* ── Timeline jump menu ── */

.timeline-jump {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-8);
  row-gap: var(--space-2);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-8);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.timeline-jump.is-stuck {
  border-bottom-color: var(--section-border);
}

.timeline-jump__item {
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-base);
}

.timeline-jump__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-jump__item:hover {
  color: var(--color-text);
}

.timeline-jump__item:hover::after,
.timeline-jump__item.is-active::after {
  transform: scaleX(1);
}

.timeline-jump__item.is-active {
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-jump__item::after {
    transition: none;
  }
}

/* ── Link arrows ── */

@keyframes arrow-drift-right {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

@keyframes arrow-drift-left {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-5px); }
}

@keyframes arrow-drift-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

.link-arrow {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 8px;
}

.link-arrow--right {
  animation: arrow-drift-right 2.4s ease-in-out infinite;
}

.link-arrow--left {
  animation: arrow-drift-left 2.4s ease-in-out infinite;
}

.link-arrow--down {
  width: 8px;
  height: 20px;
  animation: arrow-drift-down 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .link-arrow {
    animation: none;
  }
}

.cv-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  align-self: flex-end;
  margin-left: auto;
  padding-bottom: 2px;
  position: relative;
  transition: color var(--transition-base);
}

.cv-back-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.cv-back-link:hover {
  color: var(--color-accent);
}

.cv-back-link:hover::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILMS INDEX
   ───────────────────────────────────────────────────────────────────────────── */

.film-list {
  list-style: none;
}

.film-stub {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--section-border);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.film-stub--featured {
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-16);
}

.film-stub__thumb {
  aspect-ratio: 16 / 9;
  background: var(--section-surface);
  overflow: hidden;
}

.film-stub__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.film-stub:hover .film-stub__thumb img {
  transform: scale(1.03);
}

.film-stub__meta {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.film-stub__title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-light);
  line-height: 1.35;
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.film-stub--featured .film-stub__title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-regular);
}

.film-stub:hover .film-stub__title {
  color: var(--color-text);
}

.film-stub__desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-top: var(--space-3);
  max-width: 55ch;
}

@media (min-width: 640px) {
  .film-stub {
    grid-template-columns: 160px 1fr;
    gap: var(--space-6);
  }

  .film-stub--featured {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .film-stub {
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
  }

  .film-stub--featured {
    grid-template-columns: 5fr 3fr;
    gap: var(--space-12);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILM DETAIL
   ───────────────────────────────────────────────────────────────────────────── */

.film-detail-back {
  margin-bottom: var(--space-8);
}

.film-detail-year {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-8);
}

.film-embeds {
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.film-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--section-surface);
  overflow: hidden;
  position: relative;
}

.film-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.film-embed__poster {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: block;
  color: oklch(98% 0.003 85);
}

.film-embed__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(12% 0.006 85 / 0.3), transparent 55%);
  pointer-events: none;
}

.film-embed__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-embed__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  z-index: 1;
  transition: transform 250ms ease, opacity 250ms ease;
}

.film-embed__play svg {
  display: block;
  width: 100%;
  height: 100%;
}

.film-embed__poster:hover .film-embed__play,
.film-embed__poster:focus-visible .film-embed__play {
  transform: translate(-50%, -50%) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .film-embed__play {
    transition: none;
  }
}

.film-detail-desc {
  margin-top: var(--space-8);
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-8);
}

.film-detail-desc p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 65ch;
}

.film-detail-desc p + p {
  margin-top: var(--space-6);
}

.film-embed__caption {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin-top: var(--space-3);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BOOKS
   ───────────────────────────────────────────────────────────────────────────── */

.page-books main {
  max-width: none;
}

.book-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8) var(--space-4);
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-8);
}

@media (min-width: 640px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12) var(--space-6);
  }
}

@media (min-width: 1024px) {
  .book-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12) var(--space-8);
  }
}

.book-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.book-card__cover {
  aspect-ratio: 3 / 4;
  background: var(--section-surface);
  position: relative;
  overflow: hidden;
}

.book-card__cover img {
  position: absolute;
  inset: var(--space-3);
  width: calc(100% - var(--space-3) * 2);
  height: calc(100% - var(--space-3) * 2);
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.04);
}

.book-card__info {
  padding-top: var(--space-4);
}

.book-card__title {
  font-size: 1rem;
  font-weight: var(--font-weight-light);
  line-height: 1.35;
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.book-card:hover .book-card__title {
  color: var(--color-text);
}

.book-card__meta {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Book detail */

.page-book-detail main {
  max-width: none;
}

.book-detail-meta {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-12);
}

.book-detail-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .book-detail-intro {
    grid-template-columns: 5fr 8fr;
    gap: var(--space-12);
    align-items: start;
    margin-bottom: var(--space-16);
  }
}

@media (min-width: 1024px) {
  .book-detail-intro {
    gap: var(--space-16);
    margin-bottom: var(--space-24);
  }
}

.book-detail-cover {
  background: var(--section-surface);
  padding: var(--space-6);
}

.book-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECTS INDEX
   ───────────────────────────────────────────────────────────────────────────── */

.page-projects main {
  max-width: none;
}

.project-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  border-top: 1px solid var(--section-border);
  padding-top: var(--space-8);
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-12) var(--space-6);
  }
}

.project-stub {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-stub__thumb {
  aspect-ratio: 3 / 2;
  background: var(--section-surface);
  overflow: hidden;
}

.project-stub__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-stub:hover .project-stub__thumb img {
  transform: scale(1.03);
}

.project-stub__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.project-stub__title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  line-height: 1.35;
  transition: color var(--transition-base);
}

.project-stub:hover .project-stub__title {
  color: var(--color-text);
}

.project-stub__year {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECT DETAIL
   ───────────────────────────────────────────────────────────────────────────── */

.project-detail-back {
  margin-bottom: var(--space-8);
}

.project-detail-year,
.writing-detail-meta {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-12);
}

.project-images {
  padding-top: var(--space-8);
}

.project-lead {
  margin-bottom: var(--space-4);
}

.project-img-wrap {
  cursor: pointer;
  display: block;
  overflow: hidden;
  position: relative;
}

.project-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: var(--section-surface);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img-wrap:hover img {
  transform: scale(1.02);
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .project-gallery:not(.project-gallery--single) {
    flex-direction: row;
  }
}

.project-gallery__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 639px) {
  .project-gallery__col {
    display: contents;
  }
}

.project-gallery__item {
  cursor: pointer;
  display: block;
  overflow: hidden;
}

.project-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery__item:hover img {
  transform: scale(1.02);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__img {
    transition: none;
  }
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-16);
}

@media (min-width: 640px) {
  .lightbox__stage {
    padding: var(--space-16) calc(var(--space-16) * 2);
  }
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - var(--space-16) * 2);
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lightbox__img.is-loaded {
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--transition-base);
}

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

.lightbox__close svg {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox__close:hover svg {
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: var(--space-4);
  line-height: 1;
  transition: color var(--transition-base);
}

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

.lightbox__nav svg {
  display: block;
  width: 20px;
  height: 8px;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox__nav--prev {
  left: var(--space-2);
}

.lightbox__nav--next {
  right: var(--space-2);
}

.lightbox__nav--prev:hover svg {
  transform: translateX(-5px);
}

.lightbox__nav--next:hover svg {
  transform: translateX(5px);
}

@media (min-width: 640px) {
  .lightbox__nav--prev {
    left: var(--space-6);
  }

  .lightbox__nav--next {
    right: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__close svg,
  .lightbox__nav svg {
    transition: none;
  }
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EXHIBITIONS INDEX
   ───────────────────────────────────────────────────────────────────────────── */

.exhibition-list {
  list-style: none;
}

.exhibition-stub {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--section-border);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.exhibition-stub--featured {
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-16);
}

.exhibition-stub__thumb {
  aspect-ratio: 4 / 3;
  background: var(--section-surface);
  overflow: hidden;
}

.exhibition-stub__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.exhibition-stub:hover .exhibition-stub__thumb img {
  transform: scale(1.03);
}

.exhibition-stub__type {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.exhibition-stub__title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-light);
  line-height: 1.3;
  color: var(--color-accent);
  transition: color var(--transition-base);
  margin-bottom: var(--space-1);
}

.exhibition-stub--featured .exhibition-stub__title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-regular);
  margin-bottom: var(--space-2);
}

.exhibition-stub:hover .exhibition-stub__title {
  color: var(--color-text);
}

.exhibition-stub__venue {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.exhibition-stub__dates {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: var(--space-1);
}

@media (min-width: 640px) {
  .exhibition-stub {
    grid-template-columns: 160px 1fr;
    gap: var(--space-6);
  }

  .exhibition-stub--featured {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .exhibition-stub {
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
  }

  .exhibition-stub--featured {
    grid-template-columns: 5fr 3fr;
    gap: var(--space-12);
  }

  .exhibition-stub--featured .exhibition-stub__title {
    font-size: 1.75rem;
  }
}

.exhibition-archive-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.exhibition-archive-link:hover {
  color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────────────────────────
   EXHIBITION DETAIL
   ───────────────────────────────────────────────────────────────────────────── */

.exhibition-detail__type {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.exhibition-detail__venue {
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: var(--space-2);
}

.exhibition-detail__dates {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.exhibition-gallery {
  margin-top: var(--space-16);
}

.exhibition-body {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.exhibition-body > p {
  max-width: 66ch;
  line-height: 1.7;
}

.exhibition-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.exhibition-image__wrap {
  background: var(--section-surface);
  overflow: hidden;
}

.exhibition-image__wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-image figcaption {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
  font-style: italic;
}

.exhibition-pullquote {
  border-top: 1px solid var(--section-border);
  border-bottom: 1px solid var(--section-border);
  padding-block: var(--space-8);
}

.exhibition-pullquote p {
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
  line-height: 1.55;
  color: var(--color-text);
  max-width: 56ch;
}

.exhibition-pullquote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────────────────────
   UPDATES
   ───────────────────────────────────────────────────────────────────────────── */

.updates-header {
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--section-border);
}

.updates-header .page-title {
  margin-bottom: var(--space-3);
}

.updates-header .page-deck {
  margin-bottom: 0;
}

.update-filters {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-8);
  row-gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid transparent;
  padding: var(--space-4) 0;
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  background: var(--color-bg);
  transition: border-color 200ms ease;
}

.update-filters.is-stuck {
  border-bottom-color: var(--section-border);
}

.update-filter {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  padding-bottom: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-muted);
  position: relative;
  transition: color var(--transition-base);
}

.update-filter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.update-filter:hover {
  color: var(--color-text);
}

.update-filter:hover::after,
.update-filter.is-active::after {
  transform: scaleX(1);
}

.update-filter.is-active {
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .update-filter::after {
    transition: none;
  }
}

@media (max-width: 767px) {
  .timeline-jump,
  .update-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    column-gap: var(--space-6);
    padding-right: var(--space-6);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }

  .timeline-jump::-webkit-scrollbar,
  .update-filters::-webkit-scrollbar {
    display: none;
  }

  .timeline-jump__item,
  .update-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--section-border);
}

.update-entry {
  padding-top: var(--space-8);
  border-top: 1px solid var(--section-border);
  margin-bottom: var(--space-8);
}

.update-entry.is-first {
  padding-top: var(--space-8);
  border-top: none;
}

.update-entry.is-hidden {
  display: none;
}

.update-entry.is-deferred {
  display: none;
}

.update-meta {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: var(--space-4);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.update-date::before {
  content: '·';
  margin: 0 0.4em;
}

.update-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  color: var(--color-text);
  max-width: 62ch;
  margin-bottom: var(--space-3);
}

.update-body p {
  font-size: 1rem;
  font-weight: var(--font-weight-light);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 62ch;
  margin-bottom: var(--space-3);
}

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

.update-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-link:hover {
  opacity: 0.75;
}

.update-figure {
  margin-top: var(--space-2);
}

.update-caption {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
  font-style: italic;
}

.update-more {
  margin-top: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--section-border);
}

.update-more-btn {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.02em;
  color: var(--color-muted);
  position: relative;
  transition: color var(--transition-base);
}

.update-more-btn__label {
  position: relative;
  padding-bottom: 2px;
}

.update-more-btn__label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.update-more-btn:hover {
  color: var(--color-text);
}

.update-more-btn:hover .update-more-btn__label::after {
  transform: scaleX(1);
}

.update-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.update-figure--portrait img {
  max-width: 55%;
}
