/* ==========================================================================
   Ann Louise Kieran — printmaking masterclasses, Walkerburn
   Design for KH Digital Studio.

   An artist's site, not an information sheet. The work runs edge to edge,
   the type is large enough to hold a room, and the palette comes from the
   paper and ink in her pieces. Instrument Serif for display; Jost for
   labels and running text. No external resources, no inline styles.
   ========================================================================== */

:root {
  --paper: #f2ece1;
  --paper-2: #e9e0cf;
  --paper-3: #d9cbb2;
  --ink: #14110c;
  --ink-soft: #4b4335;
  --ink-faint: #756a56;
  --red: #9a3826;
  --night: #101216;
  --night-soft: #1a1d23;

  --display: "Instrument Serif", "Iowan Old Style", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1340px;
  --gut: clamp(20px, 4.6vw, 76px);
  --head: 84px;

  --line: rgba(20, 17, 12, 0.17);
  --line-soft: rgba(20, 17, 12, 0.08);
  --line-light: rgba(242, 236, 225, 0.2);

  --ease: cubic-bezier(0.19, 0.72, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px; z-index: 90;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 14px; top: 14px; }

/* --- small type ---------------------------------------------------------- */

.label, .eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 0.5vw + 0.96rem, 1.22rem);
  font-weight: 300;
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 52ch;
}
.lede a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.lede--wide { max-width: 64ch; }

.link {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding-bottom: 5px; border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link svg { transition: transform 0.32s var(--ease); }
.link:hover, .link:focus-visible { color: var(--red); border-bottom-color: var(--red); }
.link:hover svg, .link:focus-visible svg { transform: translateX(5px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1.05em 1.7em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-1px); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(242, 236, 225, 0.55); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* --- preview ribbon ------------------------------------------------------ */

.ribbon {
  background: var(--night);
  color: rgba(242, 236, 225, 0.66);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 400;
}
.ribbon-in {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  min-height: 42px; padding-block: 8px;
}
.ribbon-tag { border: 1px solid rgba(242, 236, 225, 0.3); padding: 3px 8px; color: var(--paper); font-size: 0.61rem; }
.ribbon-links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ribbon-links a { color: rgba(242, 236, 225, 0.66); text-decoration: none; }
.ribbon-links a:hover, .ribbon-links a:focus-visible { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.ribbon-quote {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--paper) !important;
  border-bottom: 1px solid rgba(242, 236, 225, 0.45); padding-bottom: 2px;
}
.ribbon-quote:hover { border-bottom-color: #fff; }

/* --- header -------------------------------------------------------------- */

.head {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 28px; min-height: var(--head); }
.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; margin-right: auto; }
.brand-name {
  font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  letter-spacing: -0.01em; line-height: 1;
}
.brand-sub {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink-faint);
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a {
  font-size: 0.71rem; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  padding-block: 8px; border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); border-bottom-color: var(--red); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.head-cta {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 13px 20px;
  border: 1px solid var(--ink); color: var(--ink); white-space: nowrap;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.head-cta:hover, .head-cta:focus-visible { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none; font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 11px 15px; cursor: pointer;
}

/* --- hero: full-bleed artwork ------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(540px, 88svh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--night);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  animation: heroSettle 2.2s var(--ease) both;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9, 8, 6, 0.82) 0%, rgba(9, 8, 6, 0.45) 42%, rgba(9, 8, 6, 0) 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: clamp(28px, 4vw, 52px) clamp(26px, 4vw, 56px);
  color: var(--paper);
}
.hero .eyebrow { color: rgba(242, 236, 225, 0.7); }
.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 6.1rem);
  line-height: 0.93;
  letter-spacing: -0.025em;
  max-width: 21ch;
  margin-block: clamp(14px, 1.6vw, 22px) clamp(20px, 2.6vw, 34px);
  text-shadow: 0 1px 30px rgba(9, 8, 6, 0.35);
}
.hero h1 em { font-style: italic; color: #e8bfa6; }
.hero-sub {
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.16rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(242, 236, 225, 0.88);
  max-width: 48ch;
  margin: 0 0 clamp(22px, 2.6vw, 32px);
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-acts .link { color: var(--paper); border-bottom-color: rgba(242, 236, 225, 0.4); }
.hero-acts .link:hover { color: #fff; border-bottom-color: #fff; }
.hero-cap {
  position: absolute;
  right: var(--gut);
  bottom: clamp(28px, 4vw, 56px);
  display: none;
  flex-direction: column; gap: 4px;
  text-align: right;
  font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(242, 236, 225, 0.62);
  line-height: 1.9;
}
.hero-cap b { color: rgba(242, 236, 225, 0.92); font-weight: 500; }

@keyframes heroSettle {
  from { transform: scale(1.06); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

@media (min-width: 900px) {
  .hero-inner { padding-bottom: clamp(40px, 5vw, 76px); }
  .hero-cap { display: flex; }
}

/* --- fact rail ----------------------------------------------------------- */

.rail { background: var(--night); color: rgba(242, 236, 225, 0.74); border-top: 1px solid var(--line-light); }
.rail-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.rail-item {
  display: flex; flex-direction: column; gap: 3px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.95rem; font-weight: 300;
}
.rail-item:last-child { border-bottom: 0; }
.rail-item span {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242, 236, 225, 0.44);
}
.rail-item b { font-weight: 400; color: var(--paper); }
@media (min-width: 800px) {
  .rail-in { grid-template-columns: repeat(4, 1fr); }
  .rail-item {
    border-bottom: 0;
    border-left: 1px solid var(--line-light);
    padding: 20px clamp(18px, 2.4vw, 34px);
  }
  .rail-item:first-child { border-left: 0; padding-left: 0; }
}

/* --- section furniture --------------------------------------------------- */

.section { padding-block: clamp(56px, 8vw, 128px); }
section[id], article[id] { scroll-margin-top: calc(var(--head) + 20px); }
.section--deep { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(40px, 5vw, 76px); }

.sec-head { display: grid; gap: 16px; margin-bottom: clamp(30px, 4vw, 58px); max-width: 60ch; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.sec-head p { color: var(--ink-soft); font-weight: 300; margin: 0; max-width: 54ch; }

/* --- programme rows ------------------------------------------------------ */

.programme { border-top: 1px solid var(--ink); }
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding-block: clamp(22px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}
.prow-no {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--red);
  padding-top: 0.35em;
}
.prow-name {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 0.95;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.prow-name svg { flex: none; transition: transform 0.4s var(--ease); opacity: 0.55; }
.prow-terms {
  grid-column: 2;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin: 0 0 8px;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.prow-terms span:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--paper-3); }
.prow-desc {
  grid-column: 2;
  max-width: 54ch;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.prow-thumb {
  position: absolute;
  right: clamp(60px, 12vw, 200px);
  top: 50%;
  width: clamp(180px, 17vw, 250px);
  transform: translateY(-50%) scale(0.94) rotate(-2deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
  box-shadow: 0 18px 46px rgba(20, 17, 12, 0.22);
  display: none;
  background: var(--paper);
  padding: 7px;
}
.prow-thumb img { width: 100%; }
.prow:hover { background: rgba(154, 56, 38, 0.04); }
.prow:hover .prow-name svg { transform: translateX(10px); opacity: 1; }
.prow:hover .prow-thumb { opacity: 1; transform: translateY(-50%) scale(1) rotate(-1deg); }
.prow:focus-visible { outline-offset: -4px; }

@media (min-width: 1080px) {
  .prow {
    grid-template-columns: 3.4rem minmax(0, 1.35fr) minmax(0, 0.65fr);
    column-gap: clamp(18px, 2.4vw, 40px);
    padding-inline: clamp(0px, 1.4vw, 20px);
  }
  .prow-name { grid-column: 2; grid-row: 1; }
  .prow-desc { grid-column: 2; grid-row: 2 / span 2; }
  .prow-terms {
    grid-column: 3; grid-row: 1 / span 2;
    justify-content: flex-end;
    align-content: start;
    margin: 0;
    padding-top: 0.9em;
    text-align: right;
  }
  .prow-terms span:not(:last-child)::after { content: none; }
  .prow-terms span { display: block; }
  .prow-name svg { display: none; }
  .prow-thumb { display: block; right: clamp(120px, 19vw, 260px); }
}

/* --- artist block -------------------------------------------------------- */

.artist {
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.artist-fig { margin: 0; }
.artist-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 46%; }
@media (min-width: 900px) {
  .artist-fig img { aspect-ratio: 4 / 5; }
}
.artist h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.artist p { color: var(--ink-soft); font-weight: 300; max-width: 54ch; }
.artist p strong { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) {
  .artist { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); }
  .artist--about { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}

/* --- figures and captions ------------------------------------------------ */

figcaption, .cap {
  font-size: 0.63rem; font-weight: 400; letter-spacing: 0.18em;
  line-height: 1.9; text-transform: uppercase; color: var(--ink-faint);
  padding-top: 12px;
}
.artist-fig figcaption b, .work figcaption b { display: block; font-weight: 500; color: var(--ink); }

.strip { margin: 0; }
.strip img { width: 100%; }
.strip--full { margin-inline: calc(-1 * var(--gut)); }
.strip--full img { height: clamp(300px, 58vh, 640px); object-fit: cover; object-position: 50% 45%; }
.strip--full figcaption { padding-inline: var(--gut); }

/* --- facts --------------------------------------------------------------- */

.facts { display: grid; margin: 0; border-top: 1px solid var(--ink); }
.facts > div {
  display: grid; grid-template-columns: minmax(96px, 0.42fr) 1fr;
  align-items: start; gap: 16px; padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint); padding-top: 4px;
}
.facts dd { margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 1rem; line-height: 1.6; }
.facts dd a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.facts dd a:hover { text-decoration-color: var(--red); color: var(--ink); }

/* --- night band ---------------------------------------------------------- */

.band { background: var(--night); color: rgba(242, 236, 225, 0.76); padding-block: clamp(56px, 7.5vw, 118px); }
.band h2 { color: var(--paper); font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; }
.band-in { display: grid; gap: clamp(28px, 4vw, 60px); }
@media (min-width: 900px) {
  .band-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; }
}
.band p { max-width: 42ch; font-weight: 300; }
.band .eyebrow { color: rgba(242, 236, 225, 0.45); }
.mail-set { display: grid; gap: 16px; margin-top: 26px; justify-items: start; }
.mail-set .label { color: rgba(242, 236, 225, 0.42); }
.mail-link {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  color: var(--paper); text-decoration: none;
  border-bottom: 1px solid rgba(242, 236, 225, 0.32);
  padding-bottom: 4px; line-height: 1.1;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  word-break: break-word;
}
.mail-link:hover, .mail-link:focus-visible { border-bottom-color: var(--paper); color: #fff; }
.band-note {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242, 236, 225, 0.4); line-height: 2; margin-top: 20px;
}

/* --- statement (quote) --------------------------------------------------- */

.statement {
  background: var(--night-soft);
  color: var(--paper);
  padding-block: clamp(52px, 7vw, 110px);
}
.statement q, .statement p.statement-text {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.1vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 34ch;
  margin: 0;
  quotes: none;
}
.statement cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242, 236, 225, 0.5);
}

/* --- page head ----------------------------------------------------------- */

.page-head { padding-block: clamp(44px, 6vw, 88px) clamp(28px, 3.6vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin-block: 14px 22px; max-width: 20ch; }
.page-head .lede { max-width: 56ch; }
.page-head-in { display: grid; gap: 22px; }
@media (min-width: 960px) {
  .page-head-in { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); align-items: end; gap: 56px; }
}
.page-head-side {
  border-top: 1px solid var(--line); padding-top: 16px;
  font-size: 0.65rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--ink-faint); line-height: 2;
}
.page-head-side b { display: block; color: var(--ink-soft); font-weight: 500; }

/* --- classes: sticky group rail ----------------------------------------- */

.group { padding-block: clamp(44px, 6vw, 90px); border-top: 1px solid var(--line); }
.group:first-of-type { border-top: none; }
.group-grid { display: grid; gap: clamp(24px, 3.4vw, 52px); }
@media (min-width: 900px) {
  .group-grid { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(30px, 4.4vw, 68px); }
  .group-sticky { position: sticky; top: calc(var(--head) + 28px); }
}
.group-head { display: grid; gap: 12px; max-width: 46ch; }
.group-kicker { display: flex; align-items: baseline; gap: 14px; }
.group-no {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem); color: var(--red);
}
.group-head h2 { font-size: clamp(2.2rem, 3.7vw, 3.2rem); }
.group-head p, .group-sticky p { color: var(--ink-soft); font-weight: 300; margin: 0; font-size: 0.98rem; line-height: 1.62; }

.procs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.proc { padding-block: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--line); }
.proc h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin-bottom: 8px; }
.proc p { color: var(--ink-soft); font-weight: 300; font-size: 1rem; line-height: 1.66; margin: 0; max-width: 62ch; }
.proc-tag {
  display: block; margin-top: 10px;
  font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* collagraph build diagram */

.build { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 26px); }
.build li {
  display: grid; grid-template-columns: minmax(56px, 88px) 1fr; gap: 18px;
  align-items: center; padding-block: 14px; border-bottom: 1px dashed var(--line);
}
.build li:last-child { border-bottom: 0; }
.build-bar { display: block; height: 14px; border: 1px solid rgba(20, 17, 12, 0.28); }
.build-bar--card { background: #d8cab0; }
.build-bar--texture {
  background: repeating-linear-gradient(90deg, rgba(20, 17, 12, 0.55) 0 2px, transparent 2px 8px), #d8cab0;
  height: 18px;
}
.build-bar--seal { background: rgba(166, 121, 79, 0.45); height: 21px; }
.build-bar--ink { background: repeating-linear-gradient(90deg, var(--red) 0 4px, rgba(154, 56, 38, 0.32) 4px 11px); height: 21px; }
.build-txt {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.75;
}
.build-txt b { display: block; font-weight: 500; color: var(--ink); letter-spacing: 0.16em; }

/* --- gallery ------------------------------------------------------------- */

.gallery { display: grid; gap: clamp(34px, 5vw, 76px); padding-block: clamp(34px, 4.6vw, 64px); }
@media (min-width: 860px) {
  .gallery { grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.6vw, 40px); }
  .work--wide { grid-column: 1 / -1; }
  .work--left { grid-column: 1 / span 7; }
  .work--right { grid-column: 6 / span 7; }
  .work--small { grid-column: 1 / span 5; }
}
.work { margin: 0; }
.work img { width: 100%; border: 1px solid rgba(20, 17, 12, 0.12); }
.work figcaption { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.work figcaption b { font-family: var(--display); font-size: 1.24rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400; }
.work figcaption span { font-size: 0.63rem; letter-spacing: 0.17em; text-transform: uppercase; }

.exhib {
  display: grid; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--ink);
}
.exhib li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 18px;
  padding-block: 13px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 300; font-size: 1rem; line-height: 1.55;
}
.exhib li span:first-child {
  font-family: var(--display); font-size: 0.95rem;
  letter-spacing: 0.02em; color: var(--ink-faint); padding-top: 2px;
}

.pullquote {
  margin: 0 0 26px; padding-left: clamp(16px, 2vw, 30px);
  border-left: 2px solid var(--red);
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.24; color: var(--ink); max-width: 34ch;
}
.pullquote cite {
  display: block; margin-top: 14px; font-family: var(--sans); font-style: normal;
  font-size: 0.63rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--ink-faint);
}
.pullquote--wide { max-width: none; }

/* --- contact ------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(30px, 4.4vw, 64px); padding-block: clamp(38px, 5vw, 74px); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: start; }
}
.contact-grid h2 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); margin-bottom: 16px; }
.contact-grid h2:not(:first-child) { margin-top: 38px; }
.contact-grid p { color: var(--ink-soft); font-weight: 300; }
.tell { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; counter-reset: tell; }
.tell li {
  display: grid; grid-template-columns: 1.9rem 1fr; gap: 12px;
  color: var(--ink-soft); font-weight: 300; font-size: 1rem; line-height: 1.6;
  padding-bottom: 11px; border-bottom: 1px dashed var(--line);
}
.tell li::before {
  counter-increment: tell; content: counter(tell, upper-roman) ".";
  font-family: var(--display); font-style: italic; font-size: 0.95rem;
  color: var(--red); padding-top: 2px;
}
.slip {
  border: 1px solid var(--night); padding: clamp(26px, 3.4vw, 44px);
  background: var(--night); color: rgba(242, 236, 225, 0.8); position: relative;
}
.slip::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(242, 236, 225, 0.18); pointer-events: none; }
.slip .eyebrow { color: rgba(242, 236, 225, 0.45); }
.slip h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 18px; color: var(--paper); }
.slip .mail-link { color: var(--paper); border-bottom-color: rgba(242, 236, 225, 0.35); font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.slip .mail-link:hover { border-bottom-color: #fff; color: #fff; }
.slip .btn { margin-top: 26px; width: 100%; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.slip .btn:hover, .slip .btn:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.slip-note {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(242, 236, 225, 0.45); line-height: 2; margin-top: 18px;
}

/* --- documents ----------------------------------------------------------- */

.doc { padding-block: clamp(40px, 5vw, 76px); }
.doc-wrap { max-width: 830px; }
.doc-kicker {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 16px;
}
.doc-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 24ch; margin-bottom: 22px; }
.doc-lede {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.05rem, 0.5vw + 0.97rem, 1.22rem);
  color: var(--ink-soft); max-width: 56ch;
}
.price-panel {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-block: clamp(26px, 3.4vw, 42px);
  padding: clamp(24px, 3vw, 38px);
  background: var(--night); color: var(--paper);
}
.price-copy { display: grid; gap: 8px; }
.price-label { font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242, 236, 225, 0.55); }
.price-note { color: rgba(242, 236, 225, 0.85); font-size: 0.96rem; font-weight: 300; max-width: 34ch; }
.price { font-family: var(--display); font-size: clamp(2.6rem, 5.4vw, 4rem); margin: 0; letter-spacing: -0.02em; line-height: 0.9; }

.doc-section { padding-block: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.doc-section h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.doc-section h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; margin-bottom: 6px; letter-spacing: 0; }
.doc-section p, .doc-section li { color: var(--ink-soft); font-weight: 300; }
.doc-grid { display: grid; gap: 24px 38px; margin-top: 6px; }
@media (min-width: 720px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.doc-list li { padding-left: 20px; position: relative; line-height: 1.65; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--red); }
.doc-list b { color: var(--ink); font-weight: 500; }
.doc-callout {
  margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--red);
  background: var(--paper-2); font-size: 1rem; color: var(--ink); font-weight: 400;
}
.doc-small { font-size: 0.68rem; letter-spacing: 0.08em; line-height: 1.9; color: var(--ink-faint); }
.doc-small--spaced { margin-top: 18px; }
.doc-small--note { margin-top: 24px; max-width: 60ch; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.doc-foot {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.63rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--ink-faint);
}

.notes-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-block: 34px 14px; }
.notes-body p, .notes-body li { color: var(--ink-soft); font-weight: 300; }
.notes-body ul { margin: 0 0 1em; padding-left: 1.1em; display: grid; gap: 10px; }
.notes-body li { line-height: 1.65; }
.notes-body strong { color: var(--ink); font-weight: 500; }
.notes-body code {
  font-family: var(--sans); font-size: 0.84em; letter-spacing: 0.02em;
  background: var(--paper-2); padding: 1px 6px;
}
.notes-callout {
  padding: 20px 22px; border: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink); font-size: 1rem; font-weight: 400;
}

/* --- footer -------------------------------------------------------------- */

.site-foot { background: var(--night); color: rgba(242, 236, 225, 0.7); padding-block: clamp(46px, 5.4vw, 80px); }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 40px; } }
.foot-grid strong {
  display: block; margin-bottom: 12px;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--paper); letter-spacing: -0.01em;
}
.foot-grid p { font-size: 0.92rem; font-weight: 300; color: rgba(242, 236, 225, 0.66); margin-bottom: 6px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid li { font-size: 0.8rem; letter-spacing: 0.06em; color: rgba(242, 236, 225, 0.62); }
.foot-grid a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.foot-grid a:hover { color: var(--paper); border-bottom-color: rgba(242, 236, 225, 0.5); }
.foot-small {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(30px, 4vw, 52px); padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-size: 0.61rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(242, 236, 225, 0.42); line-height: 2;
}

/* --- layout utilities ---------------------------------------------------- */

.island { padding-block: clamp(36px, 5vw, 76px); }
.island-sm { padding-block: clamp(28px, 3.8vw, 54px); }
.spaced { margin-top: 22px; }
.spaced-lg { margin-top: 30px; }
.wrap--narrow { max-width: 800px; margin-right: auto; margin-left: 0; }
.wrap--mid { max-width: 780px; margin-right: auto; margin-left: 0; }

.strip--inset { margin-top: clamp(28px, 4vw, 48px); }
.build-fig { margin-top: clamp(26px, 3.4vw, 40px); }
.build-cap { padding-top: 12px; }
.artist-fig--spaced { margin-top: clamp(24px, 3vw, 34px); }
.work-intro { padding-block: clamp(32px, 4.4vw, 56px); }

h2.h2--md { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 16px; }
h2.h2--sm { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-block: clamp(28px, 3.4vw, 42px) 14px; }
h2.h2--xs { font-size: clamp(1.6rem, 2.9vw, 2.2rem); margin-bottom: 16px; }
h1.notes-title { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-block: 14px 20px; }

/* --- motion -------------------------------------------------------------- */

/* Motion only. Content is never hidden behind a reveal: if a script or an
   observer does not run, every section is still readable. */
.js [data-reveal] { transform: translateY(16px); }
.js [data-reveal].is-in {
  transform: none;
  transition: transform 0.85s var(--ease);
}
.js [data-reveal="stagger"] > * { transform: translateY(14px); }
.js [data-reveal="stagger"].is-in > * {
  transform: none;
  transition: transform 0.8s var(--ease);
}
.js [data-reveal="stagger"].is-in > *:nth-child(2) { transition-delay: 0.09s; }
.js [data-reveal="stagger"].is-in > *:nth-child(3) { transition-delay: 0.18s; }
.js [data-reveal="stagger"].is-in > *:nth-child(4) { transition-delay: 0.27s; }
.js [data-reveal="stagger"].is-in > *:nth-child(5) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-media img { animation: none; }
  .js [data-reveal], .js [data-reveal].is-in,
  .js [data-reveal="stagger"] > *, .js [data-reveal="stagger"].is-in > * {
    transform: none;
  }
}

/* --- small screens ------------------------------------------------------- */

@media (max-width: 900px) {
  .js .nav {
    display: none; position: absolute; left: var(--gut); right: var(--gut);
    top: calc(100% + 1px); background: var(--paper); border: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; z-index: 70;
    box-shadow: 0 24px 50px rgba(20, 17, 12, 0.12);
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { width: 100%; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
  .js .nav a[aria-current="page"] { color: var(--red); }
  .head-in { position: relative; gap: 14px; min-height: 68px; }
  .head-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .ribbon-in { gap: 10px; min-height: 38px; }
  .ribbon-tag, .ribbon-name { display: none; }
  .ribbon-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .hero { min-height: 78svh; }
  .hero-media img { object-position: 56% 55%; }
  .work figcaption b { font-size: 1.1rem; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
}

/* the header action is hidden on small screens, so the menu carries it */
.nav-book { display: none; }

@media (max-width: 900px) {
  .js .nav .nav-book {
    display: block; margin: 10px 12px 6px; padding: 15px 20px;
    background: var(--ink); color: var(--paper) !important;
    text-align: center; border: 0; font-weight: 500;
  }
  .js .nav .nav-book:hover, .js .nav .nav-book:focus-visible { background: var(--red); color: #fff !important; }
}

/* narrow phones: keep the top rail and the brand on one line each */
@media (max-width: 430px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.2rem; }
  .ribbon-in { gap: 10px; }
  .ribbon-links { gap: 12px; font-size: 0.56rem; letter-spacing: 0.1em; }
  .ribbon-links a { white-space: nowrap; }
  .ribbon-quote svg { display: none; }
  .ribbon-quote { border-bottom: 0; }
  .prow-name { font-size: 1.85rem; }
  .facts > div { grid-template-columns: 84px 1fr; gap: 12px; }
  .strip--full figcaption { font-size: 0.55rem; letter-spacing: 0.1em; }
  .hero-acts .btn { flex: 1 1 100%; }
  .prow-terms span:not(:last-child)::after { content: ","; margin: 0 4px 0 1px; }
}
