/* ==========================================================================
   Neil Konouchi — zneil.com
   Light and dark themes follow the visitor's system setting; the toggle in
   the header overrides it (saved in the browser).
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --surface: #fbf9f5;
  --text: #1c1b19;
  --body: #3a3733;
  --muted: #5c574f;
  --line: rgba(28, 27, 25, 0.14);
  --line-strong: rgba(28, 27, 25, 0.24);
  --tile: #e6e1d8;
  --field: #ffffff;
  --glass: rgba(245, 242, 236, 0.72);
  --wall-opacity: 1;

  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --header-h: 60px;
  --radius: 8px;

  /* About-page portrait crop. The real values come from content/about.json
     (edit them at zneil.com/admin); these are only fallbacks. */
  --portrait-shape: 4 / 5;
  --portrait-focus: 50% 34%;
  --portrait-zoom: 1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0c;
    --surface: #161614;
    --text: #f2efe9;
    --body: #cfcac1;
    --muted: #a8a399;
    --line: rgba(242, 239, 233, 0.14);
    --line-strong: rgba(242, 239, 233, 0.26);
    --tile: #1a1917;
    --field: #1a1917;
    --glass: rgba(13, 13, 12, 0.62);
    --wall-opacity: 0.8;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0c;
  --surface: #161614;
  --text: #f2efe9;
  --body: #cfcac1;
  --muted: #a8a399;
  --line: rgba(242, 239, 233, 0.14);
  --line-strong: rgba(242, 239, 233, 0.26);
  --tile: #1a1917;
  --field: #1a1917;
  --glass: rgba(13, 13, 12, 0.62);
  --wall-opacity: 0.8;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  /* "clip", not "hidden": hidden breaks the sticky header in Safari. */
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }

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

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

.container {
  width: 100%;
  max-width: calc(1240px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { opacity: 0.88; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}

/* On the home page the bar sits on a blurred continuation of the album wall */
.header-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  overflow: hidden;
}

.site-header.is-over-wall {
  background: transparent;
}

.site-header.is-over-wall .header-ambient { display: block; }

/* Dims both band layers together, so the cross-fade never stacks two
   see-through layers (which looked brighter until the fade finished) */
.ambient-band {
  position: absolute;
  inset: 0;
  opacity: var(--wall-opacity);
}

.ambient-canvas {
  position: absolute;
  left: -40px;
  bottom: 0;
  width: calc(100% + 80px);
  height: auto;
}

/* The next band fades in over the current one when a cover changes; it hides
   again instantly once the current band has caught up */
.ambient-canvas.is-next { opacity: 0; }

.ambient-canvas.is-next.is-shown {
  opacity: 1;
  transition: opacity 0.9s ease;
}

.header-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass);
}

.site-nav {
  max-width: calc(1240px + 2 * var(--gutter));
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle[hidden] { display: none; }
html.is-dark .theme-toggle .icon-moon,
html:not(.is-dark) .theme-toggle .icon-sun { display: none; }

@media (max-width: 359px) {
  .wordmark { display: none; }
  .site-nav { justify-content: flex-end; }
}

/* ---------- Page mode: one section on screen at a time ---------- */

main > section[hidden] { display: none; }

html.page-mode main {
  min-height: calc(100vh - var(--header-h) - 80px);
  min-height: calc(100svh - var(--header-h) - 80px);
}

html.page-mode main :is(h1, h2)[tabindex="-1"]:focus { outline: none; }

::view-transition-old(root) { animation-duration: 0.3s; }
::view-transition-new(root) { animation-duration: 0.6s; }

/* ---------- Home: album wall ---------- */

.hero-wall {
  position: relative;
  overflow: hidden;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  max-width: 2400px;
  margin: 0 auto;
  opacity: var(--wall-opacity);
}

.wall-grid > :nth-child(n + 13) { display: none; }

.wall-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tile);
  cursor: zoom-in;
}

.wall-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 1.4s ease;
}

.wall-img.is-active {
  opacity: 1;
  transform: none;
}

.wall-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 38%);
}

.wall-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
}

.wall-pause[hidden] { display: none; }
.wall-pause .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.wall-pause[aria-pressed="true"] .icon-pause,
.wall-pause:not([aria-pressed="true"]) .icon-play { display: none; }

.home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 116px;
  height: 116px;
  margin-top: -58px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
}

.home-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.home-tagline {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

.home-tagline em {
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 1.2em;
  color: var(--text);
}

/* Phones and tablets: name, intro and links stacked. Desktop (below): the
   links move up into the space beside the name. */
.home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 36px;
  padding-bottom: 72px;
}

.intro-text {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
}

.explore {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.explore a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.explore a:hover span:first-child { text-decoration: underline; }

/* ---------- Pages ---------- */

.page {
  padding: 48px 0 88px;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.page-title-xl { font-size: 60px; margin-bottom: 32px; }

.page-lede {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- Work ---------- */

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.filter[hidden] { display: none; }

.filter .filter-count { margin-left: 6px; color: var(--muted); }

.filter[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.filter[aria-pressed="true"] .filter-count { color: inherit; opacity: 0.7; }

.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
}

.credit-tile { position: relative; min-width: 0; }
.credit-tile[hidden] { display: none; }

.tile-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--tile);
}

.tile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-link:focus-visible { outline-offset: -3px; }

/* Captions only appear on hover with a mouse; on phones the wall stays a wall */
.tile-cap { display: none; }

@media (hover: hover) and (pointer: fine) {
  .tile-cap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .tile-cap em { font-family: var(--font-serif); font-size: 15px; font-weight: 400; }

  .tile-link:hover .tile-cap,
  .tile-link:focus-visible .tile-cap,
  .wall-tile:hover .tile-cap { opacity: 1; }

  /* A hovered wall cover lifts above the fade so its caption is readable */
  .wall-tile:hover { z-index: 2; }
}

.tile-badge {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.tile-badge .icon { width: 13px; height: 13px; }

.tile-badge-video {
  right: 6px;
  bottom: 6px;
  background: rgba(13, 13, 12, 0.78);
  color: #ffffff;
}

.tile-badge-video .icon { fill: currentColor; stroke: none; }

.tile-badge-award {
  left: 6px;
  top: 6px;
  background: #f2efe9;
  color: #141413;
}

@media (prefers-reduced-motion: no-preference) {
  .credit-tile.is-entering {
    animation: tile-in 0.35s ease both;
    animation-delay: calc(var(--i, 0) * 16ms);
  }
}

@keyframes tile-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- About ---------- */

.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-start;
}

.about-bio {
  flex: 999 1 520px;
  min-width: 0;
  max-width: 680px;
  font-size: 17px;
  color: var(--body);
}

.about-bio p + p { margin-top: 18px; }

.about-bio a:not(.button) { color: var(--text); }

.about-lead {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.3;
  color: var(--text);
}

.about-photo { margin: 28px 0 32px; }
.about-photo img { width: 100%; border-radius: 4px; }

.about-bio .button { margin-top: 32px; }

.about-side {
  flex: 1 1 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-portrait-frame {
  overflow: hidden;
  border-radius: 4px;
}

.about-portrait {
  width: 100%;
  aspect-ratio: var(--portrait-shape);
  object-fit: cover;
  object-position: var(--portrait-focus);
  transform: scale(var(--portrait-zoom));
  transform-origin: var(--portrait-focus);
}

.side-title {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
}

.equipment { border-top: 1px solid var(--line); font-size: 15px; }
.equipment li { padding: 9px 0; border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-start;
}

.contact-main {
  flex: 999 1 480px;
  min-width: 0;
  max-width: 640px;
}

.contact-lede {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.3;
}

.mail-fallback {
  margin-top: 16px;
  color: var(--muted);
}

.mail-fallback a { color: var(--text); }

.contact-form { margin-top: 32px; }

.field + .field { margin-top: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px+ stops iOS zooming on focus */
}

.field textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button { margin-top: 24px; }
.contact-form .button:disabled { opacity: 0.6; cursor: progress; }

.form-status { margin-top: 14px; min-height: 1.5em; }
.form-status.is-error { font-weight: 500; }

.contact-photo {
  flex: 1 1 300px;
  max-width: 460px;
}

.contact-photo img { width: 100%; border-radius: 4px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Credit details overlay ---------- */

html.details-open { overflow: hidden; }

.details {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 7, 0.74);
  color: var(--text);
  overflow: hidden;
}

.details::backdrop {
  background: rgba(8, 8, 7, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Phones: a sheet that always starts 28px from the top and is as tall as its
   content, so a short credit visibly ends */
.details[open] {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
}

.icon-btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.26); }
.icon-btn:focus:not(:focus-visible) { outline: none; }

/* Phones: arrows and close live in a bar at the top of the sheet; the
   desktop close button outside the card is hidden */
.details-chrome { display: none; }

.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
}

.sheet-bar .icon-btn {
  position: static;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.sheet-bar .sheet-close { margin-left: auto; }

.details-step { display: none; }

.details-card {
  position: relative;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 16px;
}

.details-card:focus { outline: none; }

.details-media {
  padding: 4px 18px 0;
}

.details-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--tile);
}

.details-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px 28px;
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.details-tags:empty { display: none; }

.tag,
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.tag { border: 1px solid var(--line-strong); color: var(--body); }

.award-badge {
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}

.award-badge .icon { width: 14px; height: 14px; }

.details-artist {
  margin-bottom: -14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--body);
}

.details-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}

.details-meta {
  margin-top: -12px;
  font-size: 14px;
  color: var(--muted);
}

.details-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.listen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listen-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}

.listen-link:hover { border-color: var(--text); }

.brand-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.brand-icon-generic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}

.video-card:hover { border-color: var(--line-strong); }

.video-thumb {
  position: relative;
  flex: 0 0 132px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tile);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f2efe9;
  color: #141413;
}

.video-play .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }

.video-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.video-title { font-weight: 500; }
.video-host { font-size: 13px; color: var(--muted); }

.press-quote {
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
}

.press-quote + .press-quote { margin-top: 18px; }

.press-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
}

.press-quote figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.details-notes {
  max-width: 60ch;
  color: var(--body);
}

.details-photos-side { display: none; }

.details-photo-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.details-photo { flex: 0 0 72%; }

.details-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.details-photo figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .details[open] .details-card { animation: sheet-in 0.3s ease; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 700px) {
  :root { --gutter: 32px; --header-h: 64px; }

  .wordmark { font-size: 26px; }
  .nav-list { gap: 4px; }
  .nav-list a { padding: 10px 12px; font-size: 15px; }


  .wall-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .wall-grid > :nth-child(n + 13) { display: block; }
  .wall-grid > :nth-child(n + 25) { display: none; }
  .wall-pause { right: 24px; bottom: 20px; }

  .avatar { width: 148px; height: 148px; margin-top: -74px; }
  .home-name { font-size: 88px; }
  .home-tagline { font-size: 20px; }
  .intro-text { font-size: 30px; }
  .home-body { row-gap: 48px; padding-bottom: 96px; }

  .page { padding: 72px 0 104px; }
  .page-title { font-size: 64px; }
  .page-title-xl { font-size: 88px; margin-bottom: 48px; }
  .about-lead, .contact-lede { font-size: 28px; }

  .credit-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}

/* Desktop: the links become one row under the intro */
@media (min-width: 760px) {
  .intro-text { max-width: 30em; }
  .intro-text + .explore { margin-top: -16px; }
  .explore {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 40px;
    border-top: 0;
  }
  .explore a {
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 0;
    font-size: 17px;
  }
  .explore a span:last-child { transition: transform 0.2s ease; }
  .explore a:hover span:last-child { transform: translateX(4px); }
}

/* Wide screens: more, not bigger, covers (each stays about 200px or less),
   up to 12 columns; past 2400px the wall stops widening and fades at the sides */
@media (min-width: 1600px) {
  .wall-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .wall-grid > :nth-child(n + 25) { display: block; }
  .wall-grid > :nth-child(n + 31) { display: none; }
}

@media (min-width: 2000px) {
  .wall-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .wall-grid > :nth-child(n + 31) { display: block; }
}

@media (min-width: 2401px) {
  .hero-wall::before,
  .hero-wall::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 160px;
    pointer-events: none;
  }
  .hero-wall::before { left: calc(50% - 1200px); background: linear-gradient(to right, var(--bg), transparent); }
  .hero-wall::after { right: calc(50% - 1200px); background: linear-gradient(to left, var(--bg), transparent); }
  .wall-pause { right: calc(50% - 1200px + 24px); }
}

@media (min-width: 900px) {
  .details[open] {
    align-items: center;
    padding: 72px 88px 48px;
  }


  .details-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

  .details-close:hover { background: rgba(255, 255, 255, 0.26); }

  .details-step {
    display: flex;
    top: 50%;
    transform: translateY(-50%);
  }

  .details-prev { left: 18px; }
  .details-next { right: 18px; }

  .details-card {
    display: flex;
    width: min(1104px, 100%);
    max-height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }

  .details-media {
    flex: 0 0 42%;
    padding: 28px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
  }

  .details-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 36px 40px;
    overflow-y: auto;
  }

  .details-title { font-size: 60px; }

  .details-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .details-chrome { display: block; }
  .sheet-bar { display: none; }

  .details-photos-side { display: block; margin-top: 18px; }
  .details-photos-inline { display: none; }

  .video-thumb { flex-basis: 168px; }

  @media (prefers-reduced-motion: no-preference) {
    .details[open] .details-card { animation: card-in 0.25s ease; }
  }
}

@keyframes card-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Generated by build.mjs from content/about.json */
:root { --portrait-shape: 4 / 5; --portrait-focus: 50% 34%; --portrait-zoom: 1.12; }
