/* SzölliArt web 2.0
   Source of truth for every value: plans/design/SzolliArt Web.dc.html */

/* ------------------------------------------------------------------ */
/* Fonts (self-hosted, SIL OFL 1.1: see assets/fonts/OFL-*.txt)       */
/* Variable fonts: one file per subset covers every weight we use.    */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  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: 'DM Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  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;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                             */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: dark;

  --c-bg: #17131C;
  --c-surface: #231C2A;
  --c-surface-2: #2E2537;
  --c-viewer: #0E0B11;
  --c-text: #F1E9E4;
  --c-text-2: #B3A8BA;
  --c-text-3: #968A9E;
  /* Design uses #6C6076 for inactive rail years (3.1:1); lightened to the closest value that passes WCAG AA (4.5:1). */
  --c-text-4: #867A90;
  --c-accent: #A9E3C8;
  --c-accent-strong: #7FD1AE;
  --c-header: rgba(23, 19, 28, .72);

  --line-faint: rgba(241, 233, 228, .08);
  --line-soft: rgba(241, 233, 228, .09);
  --line-footer: rgba(241, 233, 228, .1);
  --line: rgba(241, 233, 228, .12);
  --line-strong: rgba(241, 233, 228, .14);
  --line-control: rgba(241, 233, 228, .16);
  --line-control-2: rgba(241, 233, 228, .18);
  --line-link: rgba(241, 233, 228, .28);
  --line-control-hover: rgba(241, 233, 228, .34);
  --accent-line: rgba(127, 209, 174, .4);
  --accent-line-2: rgba(127, 209, 174, .42);
  --accent-wash: rgba(127, 209, 174, .12);
  --accent-link-hover: rgba(169, 227, 200, .5);

  --font-display: 'Bricolage Grotesque', Helvetica, Arial, sans-serif;
  --font-text: 'DM Sans', Helvetica, Arial, sans-serif;

  --page-max: 1240px; /* content width; the design's boxes are content-box, so gutters come on top */
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 74px;

  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-card: 0 14px 34px rgba(0, 0, 0, .34);
  --shadow-card-hover: 0 22px 48px rgba(0, 0, 0, .5);
  --shadow-hero: 0 30px 70px rgba(0, 0, 0, .5);

  --ease-zoom: cubic-bezier(.22, .68, 0, 1);
  --art-filter: saturate(1.03) contrast(1.02) brightness(1.02);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-strong); }
::selection { background: rgba(127, 209, 174, .28); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Script/anchor focus targets (e.g. <main> via the logo or skip link) are not controls: no ring. */
[tabindex="-1"]:focus { outline: none; }
/* Focus handed back by a closed viewer, dialog or menu: no ring until the visitor moves on. */
.is-focus-restored:focus-visible { outline: none; }

/* Anchored sections stop 18px below the sticky header (74px + 1px border), as the design's scrollTo does. */
[id] { scroll-margin-top: calc(var(--header-h) + 1px + 18px); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
}
.skip-link:focus { top: 12px; }

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

.tnum { font-variant-numeric: tabular-nums; }

/* Shared type styles */
.kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.section-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.section-head { margin-bottom: 34px; }

.icon { flex: none; display: block; }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-header);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.site-header__logo {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--c-text);
}
.site-header__logo:hover { color: var(--c-text); }

.site-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.4vw, 30px);
}
.site-nav a {
  flex: none;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--c-text-2);
}
.site-nav a:hover { color: var(--c-text); }

.btn-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-line);
  background: none;
  color: var(--c-accent);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.btn-cta:hover { color: var(--c-accent); background: var(--accent-wash); }

.menu-toggle {
  display: none;
  flex: none;
  width: 44px;  /* design: 42px content-box + 1px border */
  height: 44px;
  padding: 0;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-control-2);
  background: none;
  color: var(--c-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
  flex-direction: column;
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 15px;
  color: var(--c-text);
  border-bottom: 1px solid var(--line-faint);
}

/* Narrow layout: same switch point as the design (780px). */
@media (max-width: 779.98px) {
  .site-nav { display: none; }
  .site-header__spacer { flex: 1; }
  .btn-cta--header { padding: 10px 13px; }
  .btn-cta--header .btn-cta__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: flex; }
  /* Without JavaScript the menu cannot be toggled, so it stays open. */
  .no-js .mobile-nav { display: flex; }
  .no-js .menu-toggle { display: none; }
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.hero__line {
  margin: 20px 0 0;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-2);
  text-wrap: pretty;
}
.hero__media {
  position: relative;
  display: block;
  height: clamp(300px, 52vw, 520px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface-2);
  box-shadow: var(--shadow-hero);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--art-filter);
}
.js .hero__img--fallback, .no-js .hero__img--live { display: none; }

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */
.section { padding: 20px 0 clamp(56px, 9vw, 100px); }
.section--genres { padding-bottom: clamp(56px, 9vw, 96px); }

/* Genre cards */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.genre-card {
  display: block;
  height: 100%;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--c-text);
  transition: box-shadow .3s;
}
.genre-card:hover { color: var(--c-text); box-shadow: var(--shadow-card-hover); }
.genre-card__media { height: 210px; overflow: hidden; background: var(--c-surface-2); }
.genre-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-zoom);
}
.genre-card:hover .genre-card__media img,
.genre-card:focus-visible .genre-card__media img { transform: scale(1.07); }
.genre-card__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 20px;
}
.genre-card__text { flex: 1; min-width: 0; }
.genre-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.genre-card__meta {
  margin: 5px 0 0;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-2);
}
.genre-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent-strong);
}

/* Portfolio */
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-bottom: 28px;
}
.works-head__count { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--c-text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.chips--years { margin-bottom: 34px; padding-top: 2px; }
.chip {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-control);
  background: transparent;
  color: var(--c-text-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chips--years .chip {
  padding: 7px 14px;
  border-radius: 8px;
  border-color: var(--line);
  color: var(--c-text-3);
  font-size: 12px;
}
.chip[aria-pressed="true"] { color: var(--c-accent); background: var(--accent-wash); border-color: var(--accent-line); }
.chips--years .chip[aria-pressed="true"] { border-color: rgba(127, 209, 174, .34); }
/* Filtering needs JavaScript; without it every work is listed anyway. */
.no-js .chips { display: none; }

.works-layout { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 40px); }
.year-rail {
  position: sticky;
  top: 110px;
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.year-rail[hidden] { display: none; }
@media (max-width: 779.98px) { .year-rail { display: none; } }
.year-rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-4);
}
.year-rail a::before { content: ""; flex: none; width: 10px; height: 1px; background: currentColor; }
.year-rail a:hover { color: var(--c-text); }
.year-rail a[aria-current="true"] { color: var(--c-accent); }
.year-rail a[aria-current="true"]::before { width: 20px; }

.year-groups { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(34px, 5vw, 54px); }
.year-group__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.year-group__year {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--c-accent);
}
.year-group__count { flex: 1; min-width: 0; margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--c-text-3); }

/* Grid: without JS (or before layout) a plain grid; app.js then places the
   cards round-robin into columns like the design, keeping DOM order intact. */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.masonry.is-laid-out { display: block; position: relative; }
.masonry.is-laid-out > .work { position: absolute; top: 0; left: 0; }

.work { margin-bottom: 22px; }
.work__link { display: block; color: var(--c-text); }
.work__link:hover { color: var(--c-text); }
.work__media {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-surface-2);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .4);
}
.work__media img { width: 100%; height: auto; filter: var(--art-filter); }
.work__meta { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.work__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.work__year { flex: none; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--c-text-3); }
.work__details { white-space: pre-line; margin: 3px 0 0; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--c-text-2); }
.work__note { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: var(--c-text-2); }
.work__note p { margin: 0; }
.work__note-label { color: var(--c-text-3); }
.work__note-text { text-wrap: pretty; }
.work__status { margin: 8px 0 0; font-size: 11.5px; font-style: italic; color: var(--c-text-2); }

/* About */
.about {
  --about-gap: clamp(30px, 5vw, 64px);
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: var(--about-gap);
  align-items: start;
}
.about__profile { max-width: 340px; }
@media (min-width: 780px) {
  /* The sticky profile stops at the bottom of the section, where the 3:4 photo ends. Making the
     profile as tall as that photo (column width, at most 420px) stops it with the two tops level. */
  .about__profile {
    position: sticky;
    top: 110px;
    min-height: calc(min(420px, (100cqw - var(--about-gap)) / 2) * 4 / 3);
  }
}
.about__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.about__name {
  margin: 27px 0 0; /* design: 22px margin + the 5px baseline gap under its inline <img> */
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.about__role { margin: 7px 0 0; font-size: 13.5px; color: var(--c-text-2); }
.about__year { margin: 3px 0 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--c-accent); }
.about__heading { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); }
.about__text p {
  margin: 18px 0 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.72;
  text-wrap: pretty;
}
.about__heading + p { margin-top: 14px; }
.about__photo { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 30px; border-radius: var(--r-lg); background: var(--c-surface-2); }

.rule { height: 1px; margin: 38px 0; border: 0; background: var(--line-strong); }

/* Career: exhibitions, awards … */
.career__title { margin: 10px 0 34px; }
.career {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.career .rule { margin: 34px 0; }
.career__group {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.career__group--tight { margin-bottom: 14px; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline__row { display: flex; gap: 20px; }
.timeline__year {
  flex: none;
  width: 42px;
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--c-accent);
}
.timeline__body,
.career__plain {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.entries { margin: 0; padding: 0; list-style: none; }
.entries > li { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.entries > li:first-child { padding-top: 0; border-top: 0; }

.text-link {
  color: var(--c-text);
  border-bottom: 1px solid var(--line-link);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--c-accent); border-color: var(--accent-link-hover); }
.text-link .icon { display: inline; vertical-align: baseline; margin-left: 5px; opacity: .7; }

/* Contact */
.section--contact { padding: 20px 0 40px; }
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(28px, 5vw, 52px);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}
.contact__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: pretty;
}
.contact__text {
  margin: 16px 0 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--c-text-2);
  text-wrap: pretty;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-control);
  background: none;
  color: var(--c-text);
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { color: var(--c-text); border-color: var(--line-control-hover); }
.btn--accent { border-color: var(--accent-line-2); color: var(--c-accent); }
.btn--accent:hover { color: var(--c-accent); border-color: var(--accent-line-2); background: var(--accent-wash); }

.contact__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: clamp(220px, 34vw, 300px);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--c-surface-2);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 40px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line-footer);
  font-size: 12.5px;
  color: var(--c-text-3);
}
.site-footer p { margin: 0; }
.site-footer__link { color: inherit; border-bottom: 1px solid var(--line-link); }
.site-footer__link:hover { color: var(--c-text); }
.inquiry__note a { color: var(--c-text-2); border-bottom: 1px solid var(--line-link); }
.inquiry__note a:hover { color: var(--c-text); }

/* Simple pages: privacy notice, 404 */
.page { padding: clamp(46px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); max-width: 660px; }
.page__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.page p { margin: 20px 0 0; font-size: 15px; line-height: 1.72; color: var(--c-text-2); text-wrap: pretty; }
.page .btn { margin-top: 30px; }

/* ------------------------------------------------------------------ */
/* Viewer                                                             */
/* ------------------------------------------------------------------ */
@keyframes sheetUp { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes sheetDown { from { translate: 0 0; } to { translate: 0 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.viewer-lock { overflow: hidden; }
/* An anchor scroll fired by closing the viewer must be instant, so the scroll hold can undo it unseen. */
html.viewer-lock { scroll-behavior: auto; }

.viewer {
  /* Design: rgba(241,233,228,.42/.45) for rail years and hints; .5 is the lowest that passes AA here. */
  --v-faint: rgba(241, 233, 228, .5);
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  background: var(--c-viewer);
  color: var(--c-text);
}
.viewer[hidden] { display: none; }
.viewer.is-open { animation: sheetUp .38s cubic-bezier(.32, .72, 0, 1) both; }
.viewer.is-closing { animation: sheetDown .3s cubic-bezier(.32, .72, 0, 1) both; }

.viewer__stage {
  position: absolute;
  inset: 72px 96px 200px;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-y;
  outline: none;
}
@media (max-width: 779.98px) { .viewer__stage { inset: 0; } }
/* A lone photo (not an artwork): no caption, paging or rail, so the image gets the room. */
.viewer.is-photo .viewer__bottom, .viewer.is-photo .viewer__rail { display: none; }
@media (min-width: 780px) { .viewer.is-photo:not(.is-zoom) .viewer__stage { inset: 72px 96px; } }
.viewer.is-zoom .viewer__stage { inset: 0; }
.viewer__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.viewer__zoom.is-panning { transition: none; }
.viewer__img { width: 100%; height: 100%; object-fit: contain; }

/* Zoom mode hides all chrome. */
.viewer.is-zoom .viewer__top,
.viewer.is-zoom .viewer__rail,
.viewer.is-zoom .viewer__bottom { display: none; }

.viewer__zoom-layer { position: absolute; inset: 0; z-index: 20; touch-action: none; outline: none; }
.viewer__zoom-layer[hidden] { display: none; }
.viewer__zoom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  margin: 0;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--v-faint);
}

/* Chrome: containers let taps through to the image; only controls catch them. */
.viewer__top, .viewer__rail, .viewer__bottom { pointer-events: none; }
.viewer__top button, .viewer__rail button, .viewer__info, .viewer__views, .viewer__controls button { pointer-events: auto; }

.viewer__top {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px var(--gutter) 18px;
  /* Shade only as tall as the top bar, so it barely reaches the image. */
  background: linear-gradient(to bottom, rgba(14, 11, 17, .6), rgba(14, 11, 17, 0));
}
.viewer__scope {
  margin: 0;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.viewer__close, .viewer__nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--r-pill);
  background: none;
  cursor: pointer;
}
.viewer__close {
  margin-left: auto;
  width: 44px;  /* design: 42px content-box + 1px border */
  height: 44px;
  border: 1px solid rgba(241, 233, 228, .28);
  color: var(--c-text);
}
.viewer__close:hover { border-color: rgba(241, 233, 228, .55); }

.viewer__rail {
  position: absolute;
  z-index: 10;
  top: 96px;
  right: 0;
  bottom: 210px;
  width: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.viewer__rail[hidden] { display: none; }
.viewer__rail button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px clamp(14px, 3vw, 28px) 7px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: var(--v-faint);
}
.viewer__rail button[aria-current="true"] { font-size: 14px; color: var(--c-accent); }
.viewer__tick { display: block; flex: none; width: 10px; height: 1px; background: currentColor; }
.viewer__rail button[aria-current="true"] .viewer__tick { width: 22px; }

.viewer__bottom {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px var(--gutter) clamp(26px, 4vw, 38px);
  /* Shade starts just above the caption instead of covering the image. */
  background: linear-gradient(to top, rgba(14, 11, 17, .88) 0, rgba(14, 11, 17, .75) calc(100% - 28px), rgba(14, 11, 17, 0) 100%);
}
.viewer__info { max-width: 720px; }
.viewer__info p { margin: 0; }
.viewer__title {
  display: block;
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: pretty;
}
/* Caption-length titles (stage-set elements) would bury the image at display size. */
.viewer__title.is-long { max-width: 46ch; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.25; letter-spacing: -.01em; }
.viewer__line { margin-top: 7px !important; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; color: rgba(241, 233, 228, .78); text-wrap: pretty; white-space: pre-line; } /* a medium may carry a line break */
.viewer__note { margin-top: 10px; font-size: 13px; line-height: 1.55; color: rgba(241, 233, 228, .85); text-wrap: pretty; }
.viewer__note-label { color: rgba(241, 233, 228, .55); }
.viewer__status { margin-top: 10px !important; font-size: 13px; font-style: italic; color: rgba(241, 233, 228, .78); }
.viewer__more-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 0 1px;
  border: 0;
  border-bottom: 1px solid var(--line-link);
  background: none;
  font: inherit;
  font-size: 13px;
  color: rgba(241, 233, 228, .9);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.viewer__more-toggle::before { content: ''; position: absolute; inset: -12px -10px; } /* 44px touch target */
.viewer__more-toggle:hover { color: var(--c-accent); border-color: var(--accent-link-hover); }
.viewer__more-toggle .icon { transition: transform .2s; }
.viewer__more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Long credits scroll inside the caption instead of pushing the title off screen. */
.viewer__more { max-height: 38vh; overflow-y: auto; margin-top: 10px; font-size: 13px; line-height: 1.55; color: rgba(241, 233, 228, .78); text-wrap: pretty; }
.viewer__more-title { font-style: italic; font-weight: 600; color: rgba(241, 233, 228, .92); }
.viewer__line[hidden], .viewer__status[hidden], .viewer__notes[hidden],
.viewer__more-toggle[hidden], .viewer__more[hidden] { display: none; }

/* A5: several views of one work (not in the design). */
.viewer__views { display: flex; gap: 4px; margin-top: 14px; }
.viewer__views[hidden] { display: none; }
.viewer__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v-faint);
  transition: transform .2s, background-color .2s;
}
.viewer__dot[aria-current="true"]::before { background: var(--c-accent); transform: scale(1.3); }

.viewer__controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.viewer__nav { width: 48px; height: 48px; /* design: 46px content-box + border */ border: 1px solid rgba(241, 233, 228, .32); color: #fff; }
.viewer__nav:hover { border-color: rgba(241, 233, 228, .6); }
.viewer__counter {
  margin: 0;
  padding: 0 3px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .16em;
  color: var(--c-accent);
}
.viewer__inquire {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(127, 209, 174, .5);
  background: rgba(14, 11, 17, .35);
  color: var(--c-accent);
  font-size: 13px;
  cursor: pointer;
}
.viewer__inquire:hover { background: rgba(127, 209, 174, .14); }
.viewer__inquire[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Inquiry dialog                                                     */
/* ------------------------------------------------------------------ */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.inquiry-lock { overflow: hidden; }
.inquiry {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 40px);
}
.inquiry[hidden] { display: none; }
.inquiry__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 8, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.inquiry__panel {
  position: relative;
  /* Design: 520px content-box + side padding; border-box here so it never overflows a phone. */
  width: calc(520px + 2 * clamp(20px, 5vw, 36px));
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 5vw, 34px) clamp(20px, 5vw, 36px) clamp(24px, 5vw, 32px);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  animation: riseIn .3s cubic-bezier(.32, .72, 0, 1) both;
}
.inquiry__form { display: flex; flex-direction: column; gap: 22px; }
.inquiry__form[hidden], .inquiry__sent[hidden] { display: none; }
.inquiry__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.028em;
  text-wrap: pretty;
}
.inquiry__line { margin: 5px 0 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--c-text-2); }
.inquiry__rule { height: 1px; margin: 0; border: 0; background: var(--line-strong); }
.inquiry__field { display: flex; flex-direction: column; gap: 7px; }
.inquiry__field label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); }
.inquiry__field input, .inquiry__field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-control);
  border-radius: 11px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-text);
  font-size: 14px;
  outline: none;
}
.inquiry__field textarea { line-height: 1.6; resize: none; }
.inquiry__field input::placeholder { color: var(--c-text-3); }
.inquiry__field input:focus-visible, .inquiry__field textarea:focus-visible { border-color: var(--accent-line); box-shadow: 0 0 0 2px rgba(127, 209, 174, .25); }
.inquiry__field [aria-invalid="true"] { border-color: #E59A9A; }
.inquiry__error { margin: 0; font-size: 12px; color: #F0A8A8; }
.inquiry__error[hidden] { display: none; }
.inquiry__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__send {
  padding: 15px;
  border-radius: 13px;
  border: 1px solid var(--accent-line-2);
  background: none;
  color: var(--c-accent);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.inquiry__send:hover { background: var(--accent-wash); }
/* Design: looks inactive (opacity .45) until name and e-mail are valid; it still explains what is missing when pressed. */
.inquiry__send.is-idle { opacity: .45; }
.inquiry__send:disabled { cursor: not-allowed; }
.inquiry__send:disabled:hover { background: none; }
.inquiry__send.is-sending { cursor: progress; }
.inquiry__status { margin: -8px 0 0; font-size: 13px; line-height: 1.5; color: #F0A8A8; text-align: center; }
.inquiry__status[hidden] { display: none; }
.inquiry__note { margin: 0; font-size: 11.5px; line-height: 1.5; text-align: center; color: var(--c-text-3); }

.inquiry__sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 6px 8px;
  text-align: center;
}
.inquiry__check { color: var(--c-accent-strong); display: block; }
.inquiry__check svg { display: block; }
.inquiry__sent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
  outline: none;
}
.inquiry__sent-text { margin: 0; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--c-text-2); text-wrap: pretty; }
.inquiry__done {
  margin-top: 10px;
  padding: 13px 26px;
  border-radius: 13px;
  border: 1px solid var(--line-control-2);
  background: none;
  color: var(--c-text);
  font-size: 14px;
  cursor: pointer;
}
.inquiry__done:hover { border-color: rgba(241, 233, 228, .4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* The inquiry dialog needs JavaScript (phase 4); without it the button would do nothing. */
.no-js button[data-inquiry] { display: none; }
