/* === LAYERS === */
@layer reset, base, layout, components, utilities;

/* === RESET === */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p, ul, ol { margin: 0; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; padding: 0; }
  button { font: inherit; cursor: pointer; border: none; background: none; }
}

/* === BASE === */
@layer base {
  :root {
    --color-navy: #00103c;
    --color-navy-light: #001a5c;
    --color-gold: #ffd03b;
    --color-gold-hover: #ffcc00;
    --color-gold-muted: #e5bd3b;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.12);
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --transition: 0.2s ease;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-navy);
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-gold);
  }

  h1 { font-size: 2rem; margin-bottom: 0.75rem; }
  h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

  p { margin-bottom: 1rem; }

  a:not([class]) {
    color: var(--color-gold-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
  }
  a:not([class]):hover {
    color: var(--color-gold-hover);
  }

  :focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
  }
}

/* === LAYOUT === */
@layer layout {
  /* Top nav */
  .site-header {
    background: linear-gradient(180deg, rgba(0, 16, 60, 0.95), rgba(0, 16, 60, 0.8));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 208, 59, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
  }

  /* Nav logo */
  .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .nav-logo__img {
    height: 48px;
    width: auto;
  }

  .top-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Subtitle bar */
  .site-subtitle {
    text-align: left;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem 1rem;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    color: var(--color-gold);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
  }

  .nav-list {
    display: flex;
    gap: 0;
  }
  .nav-list li {
    position: relative;
    display: flex;
    align-items: stretch;
  }
  .nav-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-list a,
  .nav-list .nav-dropdown__toggle {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding: 1.1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    text-align: center;
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
  }
  .nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .nav-list a:hover,
  .nav-list .nav-dropdown__toggle:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-list a:hover::before {
    transform: scaleX(1);
  }
  .nav-list a.active,
  .nav-list .nav-dropdown__toggle.active {
    color: var(--color-gold);
    background: rgba(255, 208, 59, 0.07);
  }
  .nav-list a.active::before {
    transform: scaleX(1);
  }

  .lang-switcher {
    display: flex;
    gap: 0;
    margin-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    align-self: stretch;
    align-items: center;
    padding: 0 0.5rem;
  }
  .lang-switcher a {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.3rem 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
  }
  .lang-switcher a:hover { color: rgba(255, 255, 255, 0.7); }
  .lang-switcher a.active {
    color: var(--color-gold);
  }

  /* Hamburger */
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
  }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gold);
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Main content */
  .main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 60vh;
  }

  /* Page content */
  .page-content { max-width: 800px; }
  .page-content:has(.image-grid) { max-width: none; }

  .page-content ul {
    list-style: none;
    padding: 0;
  }
  .page-content ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
  }
  .page-content ul li:last-child {
    border-bottom: none;
  }

  /* Editorial spread */
  .editorial-spread {
    display: grid;
    grid-template-columns: 48fr 52fr;
    gap: 3rem;
    align-items: start;
  }
  .spread-image {
    position: sticky;
    top: 2rem;
  }
  .spread-image picture img {
    width: 100%;
    cursor: zoom-in;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: box-shadow var(--transition);
  }
  .spread-image picture img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  }
  .spread-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .spread-text p:first-of-type {
    color: var(--color-text-muted);
    font-style: italic;
  }

  /* Book-spread (song-of-silence, shades-of-yous) */
  .book-spread {
    max-width: 1400px;
    margin: 0 auto;
  }
  .book-spread__pages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
  }
  .book-spread__page {
    width: 100%;
    max-width: 720px;
  }
  .book-spread__page picture,
  .book-spread__page picture img {
    display: block;
    width: 100%;
    height: auto;
  }
  .book-spread__page picture img {
    cursor: zoom-in;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: box-shadow var(--transition), opacity var(--transition);
  }
  .book-spread__page--neighbor picture img {
    opacity: 0.55;
    cursor: pointer;
  }
  .book-spread__page--neighbor:hover picture img {
    opacity: 0.85;
  }
  .book-spread__link {
    display: block;
  }
  .book-spread__text {
    margin: 2.5rem auto 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
  }
  @media (min-width: 1024px) {
    .book-spread__pages {
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
      align-items: start;
    }
    .book-spread__page {
      max-width: none;
    }
    .book-spread__page--left {
      justify-self: end;
    }
    .book-spread__page--right {
      justify-self: start;
    }
  }

  /* Painting nav */
  .painting-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
  }
  .painting-nav a {
    color: var(--color-gold-muted);
    transition: color var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .painting-nav a:hover { color: var(--color-gold); }
  .painting-nav-next { text-align: right; }
  .nav-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
  }
  .nav-arrow { font-size: 1.2rem; }

  /* Top compact painting nav */
  .painting-nav--top {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
  }
  .painting-nav--top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    color: var(--color-gold-muted);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    transition: color var(--transition), border-color var(--transition);
    flex-direction: row;
  }
  .painting-nav--top a:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
  }

  /* Dropdown navigation */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown__toggle {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
  }

  .nav-dropdown__arrow {
    transition: transform 0.2s;
  }

  .nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    border: 1px solid var(--color-gold-muted);
    border-radius: 4px;
    padding: 0.4rem 0;
    min-width: 180px;
    z-index: 100;
    list-style: none;
    margin: 0.3rem 0 0;
  }

  .nav-dropdown__toggle[aria-expanded="true"] + .nav-dropdown__menu {
    display: block;
  }

  .nav-dropdown__item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-dropdown__item:hover,
  .nav-dropdown__item.active {
    color: var(--color-gold);
    background: rgba(255, 208, 59, 0.08);
  }

  /* Footer */
  .site-footer {
    margin-top: 4rem;
    padding: 3rem 2rem;
    border-top: 2px solid var(--color-gold-muted);
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1rem;
  }

  .footer-links a:hover {
    color: var(--color-gold);
  }


  /* Responsive */
  @media (max-width: 768px) {
    .top-nav { justify-content: space-between; padding: 0.5rem 1rem; }
    .nav-logo__img { height: 28px; }
    .nav-toggle { display: flex; }
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(0, 16, 60, 0.97);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255, 208, 59, 0.1);
      padding: 0.5rem 0;
      z-index: 100;
      align-items: stretch;
      gap: 0;
    }
    .nav-links.open { display: flex; }
    .site-header { position: sticky; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li::after { display: none; }
    .nav-list a { padding: 0.75rem 1.5rem; text-align: center; }
    .nav-list a::before { height: 0; }
    .lang-switcher {
      border-left: none;
      margin-left: 0;
      padding: 0.75rem 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      justify-content: center;
    }

    /* Mobile dropdown */
    .nav-dropdown__menu {
      position: static;
      transform: none;
      border: none;
      background: transparent;
      padding: 0;
      min-width: auto;
    }

    .nav-dropdown__toggle[aria-expanded="true"] + .nav-dropdown__menu,
    .nav-dropdown__menu {
      display: block;
    }

    .nav-dropdown__toggle {
      display: none;
    }

    .nav-dropdown__item {
      padding: 0.6rem 1.5rem;
    }

    .editorial-spread {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .spread-image { position: static; }
    .spread-text h1 { font-size: 1.75rem; }
    .main-content { padding: 1rem; }
  }

  @media (max-width: 480px) {
    .top-nav { padding: 0.75rem 1rem; }
    h1 { font-size: 1.5rem; }
  }
}

/* === COMPONENTS === */
@layer components {
  /* Breadcrumbs */
  .breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
  }
  .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
  }
  .breadcrumbs li:not(:last-child)::after {
    content: '\203A';
    margin-left: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.1em;
  }
  .breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition);
  }
  .breadcrumbs a:hover {
    color: var(--color-gold);
    text-decoration-color: var(--color-gold);
  }
  .breadcrumbs [aria-current="page"] {
    color: rgba(255, 255, 255, 0.5);
  }

  /* Card grid */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .card-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  .card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .card picture img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
  /* Panoramic thumbnails (e.g. "Detail: Shamballa", a 4:1 strip) survive the
     portrait/landscape card frames only if they keep their own aspect ratio —
     cropping them into the 3/4 frame leaves an unrecognisable sliver. The
     "thumb--panorama" class is set by the thumbnail shortcode from the source
     aspect ratio (> 2.5; the print grid letterboxes from 1.4 upwards, see
     .print-card__thumb--wide). Dropping the forced aspect-ratio also keeps the
     tile from stretching the whole card row. */
  .card img.thumb--panorama,
  .collection-band__thumb img.thumb--panorama,
  .news-list-thumb img.thumb--panorama,
  .news-preview-thumb img.thumb--panorama,
  .collection-card__images--secondary img.thumb--panorama {
    aspect-ratio: auto;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
  }
  /* …and give them a double-width tile (two 150px tiles plus the gap), so a 4:1
     strip is still large enough to read at thumbnail size. Below two columns the
     span would push the card out of the grid, so it only applies from 420px up. */
  @media (min-width: 420px) {
    .card-grid .card:has(img.thumb--panorama) {
      grid-column: span 2;
    }
  }
  .card-title {
    padding: 0.5rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-gold-muted);
  }

  /* Lightbox */
  .lightbox-overlay[hidden] {
    display: none;
  }
  .lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  .lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
  }
  .lightbox-content img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  }
  .lightbox-content:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
  }
  .lightbox-content:fullscreen img {
    max-width: 100vw;
    max-height: 100vh;
  }
  .lightbox-fullscreen {
    position: fixed;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text);
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), opacity 0.3s ease;
    z-index: 1001;
  }
  .lightbox-fullscreen:hover {
    background: var(--color-gold);
    color: var(--color-navy);
  }
  .lightbox-fullscreen { bottom: 1rem; right: 1rem; }

  .lightbox-back-pill {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--color-gold);
    color: var(--color-navy);
    border: 1px solid var(--color-gold);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    transition: background var(--transition), color var(--transition), opacity 0.3s ease, transform 0.3s ease;
  }
  .lightbox-back-pill:hover,
  .lightbox-back-pill:focus-visible {
    background: var(--color-navy);
    color: var(--color-gold);
    outline: none;
  }
  .lightbox-back-pill__arrow {
    font-size: 1.15rem;
    line-height: 1;
  }

  .lightbox-overlay--idle .lightbox-back-pill,
  .lightbox-overlay--idle .lightbox-fullscreen {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }
  .lightbox-overlay--idle .lightbox-fullscreen {
    transform: translateY(6px);
  }

  /* News — editorial spread variant */
  .editorial-spread--news {
    grid-template-columns: 350px 1fr;
  }
  .editorial-spread--news .spread-image {
    position: static;
  }
  .editorial-spread--news .spread-image picture img {
    cursor: default;
  }

  /* News — recent articles section */
  .news-recent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .news-preview-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color var(--transition), transform var(--transition);
    align-items: start;
  }
  .news-preview-card:hover {
    border-color: var(--color-gold-muted);
    transform: translateY(-1px);
  }
  .news-preview-thumb picture img {
    width: 100%;
    border-radius: 3px;
  }
  .news-preview-text h2 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }
  .news-preview-text time {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.5rem;
  }
  .news-excerpt {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
  }

  /* News — archive section */
  .news-archive {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
  }
  .news-archive h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .news-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .year-link {
    padding: 0.5rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-gold-muted);
    font-size: 0.95rem;
    transition: all var(--transition);
  }
  .year-link:hover {
    background: var(--color-gold);
    color: var(--color-navy);
  }
  .year-link--active {
    background: var(--color-gold);
    color: var(--color-navy);
    font-weight: 600;
  }

  .news-year-nav {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
  }

  /* News — year page list with thumbnails */
  .news-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
  .news-list-item a {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: border-color var(--transition);
    align-items: start;
  }
  .news-list-item a:has(.news-list-thumb) { }
  .news-list-item a:not(:has(.news-list-thumb)) {
    grid-template-columns: 1fr;
  }
  .news-list-item a:hover { border-color: var(--color-gold-muted); }
  .news-list-thumb picture img {
    width: 100%;
    border-radius: 3px;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  .news-list-text h2 { font-size: 1.1rem; margin-bottom: 0.25rem; }
  .news-list-text time { font-size: 0.85rem; color: var(--color-text-muted); display: block; margin-bottom: 0.4rem; }
  .news-list-text .news-excerpt { font-size: 0.85rem; }

  /* News — individual article date */
  .news-item .news-date {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
  }

  /* News responsive */
  @media (max-width: 768px) {
    .news-preview-card {
      grid-template-columns: 1fr;
    }
    .news-preview-thumb {
      max-width: 300px;
    }
    .editorial-spread--news {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .news-list-item a {
      grid-template-columns: 1fr;
    }
    .news-list-thumb {
      max-width: 200px;
    }
  }

  /* Hero (generic pages) */
  .page-content--hero { max-width: none; }
  .hero {
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  .hero picture img {
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  .page-content--hero > h1 {
    text-align: center;
    font-size: 2.5rem;
  }

  /* Sidebar image layout (text left, tall image right) */
  .page-content--sidebar { max-width: none; }
  .page-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
  }
  .page-sidebar-image {
    position: sticky;
    top: 1rem;
    margin-bottom: 2.5rem;
  }
  .page-sidebar-image picture img {
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
  }
  @media (max-width: 768px) {
    .page-sidebar-layout {
      grid-template-columns: 1fr;
    }
    .page-sidebar-image {
      position: static;
      max-width: 300px;
      margin: 0 auto 1.5rem;
      order: -1;
    }
  }

  /* Responsive video embeds */
  .video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1rem 0 2rem;
    border-radius: 4px;
  }
  .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* Download link buttons */
  .page-sidebar-text a[href$=".pdf"],
  .page-sidebar-text a[href$=".pps"] {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--color-gold-muted);
    border-radius: 2px;
    color: var(--color-gold-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
    margin: 0.5rem 0;
  }
  .page-sidebar-text a[href$=".pdf"]:hover,
  .page-sidebar-text a[href$=".pps"]:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
  }

  /* ── Homepage ── */
  .home {
    max-width: none;
  }

  .home-split {
    display: grid;
    grid-template-columns: minmax(380px, 520px) 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .home-split__image {
    position: sticky;
    top: 1rem;
    padding: 1rem 0 2rem 0;
  }
  .home-split__image picture img {
    width: 100%;
    box-shadow:
      0 0 40px rgba(255, 208, 59, 0.08),
      0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 208, 59, 0.12);
  }

  .home-split__content {
    padding: 1.5rem 1.5rem 3rem 0;
  }

  .home-headline {
    font-family: var(--font-body);
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    line-height: 1.2;
    border-bottom: 1px solid var(--color-gold-muted);
  }

  .home-nav {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  .home-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .home-nav__link {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--color-gold-muted);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-radius: 2px;
    transition: all var(--transition);
    text-decoration: none;
  }
  .home-nav__link:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
  }

  .home-poetry {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
  }
  .home-poetry p {
    margin-bottom: 1.25rem;
  }

  .home-explore__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
  .home-explore__link {
    color: var(--color-gold-muted);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition);
  }
  .home-explore__link::after {
    content: ' \2192';
    opacity: 0.6;
  }
  .home-explore__link:hover {
    color: var(--color-gold);
  }

  @media (max-width: 900px) {
    .home-split {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .home-split__image {
      position: static;
      max-width: 720px;
      margin: 0 auto;
      padding: 0;
    }
    .home-split__content {
      padding: 0 1rem 2rem;
      text-align: center;
    }
    .home-headline { font-size: clamp(1.9rem, 5vw, 2.4rem); }
    .home-nav__list { justify-content: center; }
    .home-explore__list { justify-content: center; }
  }

  @media (max-width: 480px) {
    .home-headline { font-size: 1.6rem; }
    .home-nav__link { padding: 0.45rem 1rem; font-size: 0.9rem; }
    .home-poetry { font-size: 1rem; line-height: 1.75; }
  }

  /* Homepage collection grid */
  .collection-grid-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gold-muted);
  }

  .collection-grid__heading {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .collection-grid--featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .collection-grid--secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .collection-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 208, 59, 0.15);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
  }

  .collection-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
  }

  .collection-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }

  .collection-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .collection-card--featured .collection-card__image {
    aspect-ratio: 16 / 9;
  }

  .collection-card__images {
    display: flex;
    gap: 0.25rem;
    overflow: hidden;
  }
  .collection-card__images img {
    flex: 1 1 0;
    min-width: 0;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
  }

  .collection-card__images--secondary {
    aspect-ratio: 3/2;
  }
  .collection-card__images--secondary img {
    object-fit: cover;
  }

  .collection-card__text {
    padding: 1rem;
  }

  .collection-card__title {
    font-size: 1.1rem;
    color: var(--color-gold);
    margin: 0 0 0.4rem;
  }

  .collection-card--featured .collection-card__title {
    font-size: 1.3rem;
  }

  .collection-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.4;
  }

  .collection-card__count {
    font-size: 0.75rem;
    color: var(--color-gold-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  @media (max-width: 768px) {
    .collection-grid--featured {
      grid-template-columns: 1fr;
    }
    .collection-grid--secondary {
      grid-template-columns: 1fr;
    }
  }

  /* Resource links on homepage (Images for Print, Videos) */
  .resource-links-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gold-muted);
  }
  .resource-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .resource-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 208, 59, 0.15);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .resource-card:hover {
    border-color: var(--color-gold);
    background: rgba(255, 208, 59, 0.05);
  }
  .resource-card__title {
    color: var(--color-gold);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
  }
  @media (max-width: 768px) {
    .resource-links {
      grid-template-columns: 1fr;
    }
  }

  /* Inline image grid (for timeline pages like image-work) */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
  }
  .image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--color-border);
  }
  @media (max-width: 480px) {
    .image-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* ── About Index ── */
  .about-index {
    max-width: var(--max-width);
    margin: 0 auto;
  }
  .about-index__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 2.5rem;
  }

  .about-group {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  .about-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .about-group__heading {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
  }
  .about-group__items {
    display: grid;
    gap: 1rem;
  }
  .about-group__items--featured {
    grid-template-columns: 1fr;
  }
  .about-group__items--quad {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-group__items--trio {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
  }
  .about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--color-gold-muted);
  }
  .about-card--featured {
    padding: 2rem 2.5rem;
    border-left: 3px solid var(--color-gold);
  }
  .about-card--featured:hover {
    border-color: var(--color-gold);
    border-left-color: var(--color-gold);
  }

  .about-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-gold-muted);
    margin-bottom: 0.35rem;
  }
  .about-card--featured .about-card__title {
    font-size: 1.5rem;
    color: var(--color-gold);
  }
  .about-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
  }
  .about-card--featured .about-card__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
  }
  .about-card__arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    opacity: 0;
    color: var(--color-gold-muted);
    transition: opacity var(--transition);
  }
  .about-card:hover .about-card__arrow {
    opacity: 1;
  }

  @media (max-width: 768px) {
    .about-group__items--quad,
    .about-group__items--trio {
      grid-template-columns: 1fr;
    }
    .about-card--featured {
      padding: 1.5rem;
    }
  }
  @media (max-width: 480px) {
    .about-index__title { font-size: 2rem; }
    .about-card__title { font-size: 1rem; }
    .about-card--featured .about-card__title { font-size: 1.25rem; }
  }

  /* ── Gallery Overview ── */
  .gallery-overview h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  .gallery-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--color-text-muted);
  }

  .collection-band {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 208, 59, 0.15);
  }
  .collection-band:last-child {
    border-bottom: none;
  }

  .collection-band__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .collection-band__info h2 {
    font-size: 1.5rem;
    margin: 0;
  }
  .collection-band__count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
  .collection-band__explore {
    font-size: 0.9rem;
    color: var(--color-gold-muted);
    transition: color var(--transition);
  }
  .collection-band__explore:hover {
    color: var(--color-gold);
  }

  .collection-band__paintings {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 1%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 1%, black 95%, transparent);
  }
  .collection-band__paintings::-webkit-scrollbar {
    height: 4px;
  }
  .collection-band__paintings::-webkit-scrollbar-track {
    background: var(--color-surface);
  }
  .collection-band__paintings::-webkit-scrollbar-thumb {
    background: rgba(255, 208, 59, 0.3);
    border-radius: 2px;
  }

  .collection-band__thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 120px;
    border-radius: 3px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .collection-band__thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .collection-band__thumb picture img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
  }

  @media (max-width: 768px) {
    .gallery-overview h1 { font-size: 2rem; }
    .collection-band {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .collection-band__info {
      flex-direction: row;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
  }
  @media (max-width: 480px) {
    .collection-band__thumb { width: 100px; }
  }

  /* ── Gallery Collection ── */
  .gallery-collection h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  /* Collection page hero */
  .collection-hero {
    margin-bottom: 2rem;
  }

  .collection-hero__image {
    display: none;
  }

  .collection-hero__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
  }

  .collection-hero__text h2:first-child {
    display: none;
  }

  .collection-hero__text--truncated {
    max-height: 8.5em;
    overflow: hidden;
    position: relative;
  }
  .collection-hero__text--truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(transparent, var(--color-navy));
    pointer-events: none;
  }
  .collection-hero__text--truncated.expanded {
    max-height: none;
    overflow: visible;
  }
  .collection-hero__text--truncated.expanded::after {
    display: none;
  }
  .collection-hero__show-more {
    background: none;
    border: 1px solid var(--color-gold-muted);
    color: var(--color-gold);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .collection-hero__show-more:hover {
    background: var(--color-gold);
    color: var(--color-bg);
  }


  .gallery-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
  }
  .gallery-jump-nav__pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-gold-muted);
    font-size: 0.85rem;
    transition: all var(--transition);
  }
  .gallery-jump-nav__pill:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
  }

  .gallery-section {
    margin-bottom: 3rem;
  }
  .gallery-section__header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .gallery-section__header h2 {
    margin: 0;
  }
  .gallery-section__header h2 a {
    color: var(--color-gold);
    transition: color var(--transition);
  }
  .gallery-section__header h2 a:hover {
    color: var(--color-gold-hover);
  }
  .gallery-section__count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }


  .gallery-section .card-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 1%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 1%, black 95%, transparent);
  }
  .gallery-section .card-grid .card {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
  /* The section rows are a flex scroller, so the grid-column span above does not
     apply here — widen the panorama tile directly, to two tiles plus the gap. */
  .gallery-section .card-grid .card:has(img.thumb--panorama) {
    flex: 0 0 calc(2 * 150px + 0.75rem);
  }

  @media (max-width: 768px) {
    .gallery-collection h1 { font-size: 2rem; }

    /* Mobile collection hero */
    .collection-hero--with-image {
      grid-template-columns: 1fr;
    }
  }

  /* ── Gallery Sub-gallery (masonry) ── */
  .gallery-subgallery h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .gallery-subgallery__count {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
  }

  .masonry-grid {
    column-count: 3;
    column-gap: 1rem;
    margin-top: 1rem;
  }
  .masonry-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .masonry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .masonry-card picture img {
    width: 100%;
    display: block;
  }
  .masonry-card__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.75rem 0.5rem;
    background: linear-gradient(transparent, rgba(0, 16, 60, 0.85));
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-gold-muted);
    opacity: 0;
    transition: opacity var(--transition);
  }
  .masonry-card:hover .masonry-card__title {
    opacity: 1;
  }

  @media (max-width: 768px) {
    .masonry-grid { column-count: 2; }
    .masonry-card__title { opacity: 1; }
  }
  @media (max-width: 480px) {
    .masonry-grid { column-count: 1; }
  }

  /* ── Print Grid ── */
  .print-intro {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--color-text-muted);
  }
  .print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
  }
  .print-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .print-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .print-card__thumb img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
  /* Panoramic images (e.g. "Detail: Shamballa") would be cropped to a narrow
     slice by the portrait card frame — show them whole instead. */
  .print-card__thumb--wide img {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
  }
  .print-card__info {
    padding: 0.75rem;
  }
  .print-card__title {
    font-size: 0.8rem;
    color: var(--color-gold);
    margin: 0 0 0.5rem;
    line-height: 1.3;
  }
  .print-card__links {
    display: flex;
    gap: 0.5rem;
  }
  .print-btn {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--color-gold-muted);
    border-radius: 12px;
    color: var(--color-gold-muted);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all var(--transition);
  }
  .print-btn:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
  }
  @media (max-width: 480px) {
    .print-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
  }

  /* ── Contact Page ── */
  .contact-page {
    max-width: 800px;
  }
  .contact-layout {
    grid-template-columns: 300px 1fr;
  }
  .contact-layout .page-sidebar-image {
    order: -1;
  }
  .contact-portrait {
    margin-bottom: 1.5rem;
  }
  .contact-portrait img {
    max-width: 180px;
    height: auto;
    border: 2px solid var(--color-border);
    border-radius: 4px;
  }
  .contact-signature {
    margin-top: 2rem;
  }
  .contact-signature img {
    max-width: 100px;
    height: auto;
    opacity: 0.8;
  }
  @media (max-width: 768px) {
    .contact-layout {
      grid-template-columns: 1fr;
    }
    .contact-portrait {
      text-align: center;
    }
  }
}

/* === About page: bio blocks with images right of text === */
@layer components {
  .bio-block {
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .bio-block > *:not(.image-grid) {
    grid-column: 1;
  }
  .bio-block .image-grid {
    grid-column: 2;
    grid-row: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
  .bio-block .image-grid img {
    max-height: 120px;
    object-fit: cover;
  }
  @media (max-width: 768px) {
    .bio-block {
      grid-template-columns: 1fr;
    }
    .bio-block .image-grid {
      grid-column: 1;
      grid-row: auto;
      margin: 1.5rem 0;
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

/* === UTILITIES === */
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
}
