/* ============================================================
   Sanne van Rhene — Ceramic Artist
   Dark, warm, exact. Serif for display, sans for everything
   that must read small. One easing system, one spacing scale.
   ============================================================ */

:root {
  --black:      #050403;
  --surface:    #0f0b08;
  --ink:        #f3ebdf;
  --ink-soft:   #c9b9a4;
  --ink-mute:   #8f8373;
  --accent:     #d2a06e;
  --line:       rgba(243, 235, 223, 0.10);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* type scale */
  --t-display: clamp(3.6rem, 10vw, 9.5rem);
  --t-h2:      clamp(2rem, 3.6vw, 3.2rem);
  --t-h3:      clamp(2.4rem, 4vw, 4rem);
  --t-body:    clamp(1rem, 1.05vw, 1.08rem);
  --t-label:   0.72rem;
  --t-micro:   0.66rem;

  /* spacing scale */
  --gutter:   clamp(24px, 5vw, 72px);
  --section:  clamp(96px, 14vh, 180px);
  --header-h: 92px;
  --measure:  1480px;

  /* motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html, body { background: var(--black); }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* warm heart behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 44%,
    #3a230e 0%, #281708 26%, #160c06 52%, var(--black) 84%);
}
/* film grain, below the header */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  opacity: 0;
  animation: fade-in 1.2s var(--ease-out) 0.9s forwards;
  transition: height 0.5s var(--ease-inout), background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 68px;
  background: rgba(6, 4, 3, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}

.header__brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
/* wordmark only once the big name is off-screen, or in the phone menu */
.header.is-scrolled .header__brand,
body.nav-open .header__brand { opacity: 1; transform: none; }

.menu {
  list-style: none;
  display: flex;
  gap: clamp(28px, 3.4vw, 52px);
}
.menu__link {
  position: relative;
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.menu__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.menu__link:hover { opacity: 1; }
.menu__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
}
.header__toggle span {
  display: block; height: 1px; width: 24px;
  margin-left: auto;
  background: currentColor;
  transition: transform 0.4s var(--ease-inout), width 0.3s ease;
}
.header__toggle span:nth-child(2) { width: 16px; }
.header__toggle[aria-expanded="true"] span { width: 24px; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- phone overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(6, 4, 3, 0.985);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.nav-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out), visibility 0s; }

.nav-overlay__menu {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4.5vh, 36px);
}
.nav-overlay__link {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
}
.nav-overlay.open .nav-overlay__link { animation: fade-up 0.7s var(--ease-out) both; }
.nav-overlay__menu li:nth-child(1) a { animation-delay: 0.08s; }
.nav-overlay__menu li:nth-child(2) a { animation-delay: 0.14s; }
.nav-overlay__menu li:nth-child(3) a { animation-delay: 0.20s; }
.nav-overlay__menu li:nth-child(4) a { animation-delay: 0.26s; }
.nav-overlay__menu li:nth-child(5) a { animation-delay: 0.32s; }

.nav-overlay__foot {
  position: absolute;
  bottom: clamp(28px, 6vh, 56px);
  left: 0; right: 0;
  text-align: center;
  font-size: var(--t-micro);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

body.nav-open { overflow: hidden; }

@media (max-width: 760px) {
  .header__nav { display: none; }
  .header__toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.06);
  animation: settle 2.2s var(--ease-out) forwards, zoom 16s var(--ease-out) forwards;
}
@keyframes settle { to { opacity: 1; } }
@keyframes zoom   { to { transform: scale(1); } }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,4,3,0.94) 0%, rgba(5,4,3,0.5) 30%, rgba(5,4,3,0) 62%),
    linear-gradient(to bottom, rgba(5,4,3,0.45) 0%, rgba(5,4,3,0) 22%);
}

.hero__masthead {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(56px, 11vh, 120px);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-display);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0;
  animation: fade-up 1.4s var(--ease-out) 0.5s forwards;
}
.hero__sub {
  margin-top: clamp(18px, 2.6vh, 30px);
  padding-left: 0.25em;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 1.4s var(--ease-out) 0.8s forwards;
}

.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 11vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: var(--t-micro);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
  opacity: 0;
  animation: fade-up 1.4s var(--ease-out) 1.3s forwards;
}
.hero__cue-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--ink-mute), transparent);
  animation: drift 2.6s var(--ease-inout) infinite;
}

@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.4; }
}

@media (max-width: 760px) {
  .hero__cue { display: none; }
  .hero__masthead { bottom: 14vh; }
}

/* ============================================================
   WORK
   ============================================================ */
.work { position: relative; z-index: 1; overflow-x: clip; }   /* overlays may leave the frame sideways */

.work__head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px 40px;
  border-bottom: 1px solid var(--line);
}
.work__eyebrow {
  grid-column: 1 / -1;
  font-size: var(--t-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1;
  color: var(--ink);
}
.work__count {
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 0.4em;
}

.piece {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  max-width: var(--measure);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter);
}

/* art column: --py is the parallax offset set by JS */
.piece__art {
  position: relative;
  width: min(100%, calc((100vh - var(--header-h) - 10vh) * 0.8), 736px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  transform: translateY(var(--py, 0px));
  will-change: transform;
  isolation: isolate;
}
.piece__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 60px 120px rgba(0,0,0,0.65);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-inout);
}
/* hairline edge, like a mount */
.piece__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
}
.piece__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.16);
  transition: transform 1.8s var(--ease-out);
}
:is(.piece, .detail).in .piece__frame { clip-path: inset(0 0 0 0); }
:is(.piece, .detail).in .piece__media { transform: scale(1); }
:is(.piece, .detail).in .piece__art:hover .piece__media { transform: scale(1.03); transition-duration: 1.2s; }

/* ---------- open frame: a cut-out photo (transparent png) stands free on the stage ---------- */
.piece__frame--open { background: none; box-shadow: none; }
.piece__frame--open::after { display: none; }
.piece__frame--open .piece__media { object-fit: contain; }

/* ---------- stage: a soft spot of light behind the frame ---------- */
.piece__art::before {
  content: "";
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 55%, rgba(210,160,110,0.13), rgba(210,160,110,0.04) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 2s ease 0.6s;
  pointer-events: none;
}
:is(.piece, .detail).in .piece__art::before { opacity: 1; }

/* ---------- overlay: an animation over the frame, free to leave it.
   Placed with --x/--y (centre) and --w (width), all in % of the frame ---------- */
.piece__overlay {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--w, 100%);
  height: auto;
  z-index: 2;
  transform: translate(-50%, -50%) translateY(calc(var(--py, 0px) * 0.6));   /* drifts a touch faster: depth */
  pointer-events: none;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,0.45));
  opacity: 0;
  transition: opacity 1.6s ease 1.2s;
}
.piece.in .piece__overlay { opacity: 1; }
.piece__overlay.is-live { opacity: 1; transition: opacity 0.4s ease; }     /* playing: no wait for the reveal */
.piece__overlay.is-off { opacity: 0; transition: opacity 0.6s ease; }      /* tied to another photo */

/* cued piece: the fly-by reveals it — frame first, text when the bird reaches it */
.piece.is-cued .piece__text > :nth-child(1) { transition-delay: 1.5s; }
.piece.is-cued .piece__text > :nth-child(2) { transition-delay: 1.7s; }
.piece.is-cued .piece__text > :nth-child(3) { transition-delay: 1.82s; }
.piece.is-cued .piece__text > :nth-child(4) { transition-delay: 1.94s; }
.piece__overlay--glow { mix-blend-mode: screen; filter: drop-shadow(0 0 28px rgba(210,160,110,0.35)); }
.piece__overlay--screen {                                       /* spans the viewport, centred on it (--vx set by app.js), but never
                                                                   wider than 1.6 x the frame, or --w; its ends fade so a capped flight starts and ends in the air */
  width: min(100vw, var(--w, 160%));
  left: var(--vx, 50%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

/* ---------- gallery: several media in one frame ---------- */
.piece__media ~ .piece__media { opacity: 0; }        /* only the first shows before JS */
.has-gallery .piece__media { opacity: 0; transition: opacity 0.9s var(--ease-out), transform 1.8s var(--ease-out); }
.has-gallery .piece__media.is-active { opacity: 1; }
.has-gallery .piece__frame { cursor: pointer; }

.piece__thumbs {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) ease 0.6s, transform var(--dur) var(--ease-out) 0.6s;
}
:is(.piece, .detail).in .piece__thumbs { opacity: 1; transform: none; }

.piece__thumb {
  position: relative;
  width: 52px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.piece__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
.piece__thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece__thumb:hover { opacity: 0.75; }
.piece__thumb.is-active { opacity: 1; }
.piece__thumb.is-active::after { box-shadow: inset 0 0 0 1px var(--accent); }

.piece__counter {
  margin-left: auto;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.piece__text {
  align-self: center;
  justify-self: start;
  width: 100%;
  max-width: 34rem;
}
/* spec row: index left, materials right, on a hairline */
.piece__spec {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: clamp(28px, 4vh, 44px);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.piece__spec span:first-child { color: var(--accent); }
.piece__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h3);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.piece__desc {
  margin-top: clamp(20px, 3vh, 30px);
  max-width: 42ch;
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* even pieces mirror */
.piece:nth-of-type(even) .piece__art  { order: 2; }
.piece:nth-of-type(even) .piece__text { order: 1; justify-self: end; text-align: right; }
.piece__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 38px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.4s ease, gap 0.4s var(--ease-out);
}
.piece__link:hover { border-color: var(--accent); gap: 18px; }
.piece:nth-of-type(even) .piece__desc { margin-left: auto; }
.piece:nth-of-type(even) .piece__spec { flex-direction: row-reverse; }

/* staggered text entry */
.piece__text > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.piece__text > :nth-child(2) { transition-delay: 0.2s; }
.piece__text > :nth-child(3) { transition-delay: 0.32s; }
.piece__text > :nth-child(4) { transition-delay: 0.44s; }
.piece.in .piece__text > * { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .work__head { grid-template-columns: 1fr; padding-top: 80px; }
  .work__count { padding-bottom: 0; }
  .piece {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: clamp(56px, 10vh, 96px) var(--gutter);
  }
  .piece__art { width: min(100%, 460px); transform: none; }
  .piece__art.has-gallery { margin-bottom: 84px; }   /* room for the thumbnail row */
  .piece__art,  .piece:nth-of-type(even) .piece__art  { order: 0; }
  .piece__text, .piece:nth-of-type(even) .piece__text { order: 1; justify-self: start; text-align: left; }
  .piece:nth-of-type(even) .piece__desc { margin-left: 0; }
  .piece:nth-of-type(even) .piece__spec { flex-direction: row; }
}

/* ============================================================
   CATALOGUE (catalogue.html) — reuses .work__head for the masthead
   ============================================================ */
.menu__link[aria-current] { opacity: 1; }
.menu__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.cat { padding-top: var(--header-h); }
.cat .work__head { padding-top: clamp(56px, 9vh, 110px); }

.cat__grid {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) var(--gutter) clamp(72px, 10vh, 140px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: clamp(56px, 8vh, 104px);
}

.cat__item {
  display: block;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.cat__item.in { opacity: 1; transform: none; }

.cat__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.7);
}
.cat__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
}
.cat__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-out);
}
.cat__frame--open .cat__img { object-fit: contain; padding: 9%; }   /* cut-out photo, with air */
.cat__item:hover .cat__img, .cat__item:focus-visible .cat__img { transform: scale(1.04); }
.cat__item:hover .cat__frame::after { box-shadow: inset 0 0 0 1px rgba(210,160,110,0.45); }

.cat__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.cat__meta > :first-child { color: var(--accent); }
.cat__name {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.9vw, 2rem);
  line-height: 1.1;
  color: var(--ink);
}
.cat__mat { margin-top: 8px; font-size: var(--t-body); color: var(--ink-soft); }

@media (max-width: 1100px) {
  .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cat__grid { grid-template-columns: 1fr; row-gap: 64px; }
  .cat__item { max-width: 460px; }
}

/* ============================================================
   WORK DETAIL (werk-*.html) — photos reuse .piece__art / .piece__frame
   ============================================================ */
.detail { padding-top: var(--header-h); }
.detail__bar,
.detail__grid { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }

.detail__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: clamp(26px, 4vh, 42px);
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.detail__bar a { color: var(--ink-mute); text-decoration: none; transition: color 0.3s ease; }
.detail__bar a:hover { color: var(--ink); }
.detail__back { display: inline-flex; align-items: center; gap: 12px; }
.detail__pager { display: flex; gap: clamp(18px, 3vw, 36px); font-variant-numeric: tabular-nums; }
.detail__rule { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }
.detail__rule::after { content: ""; display: block; height: 1px; background: var(--line); }

.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 140px);
  padding-block: clamp(48px, 7vh, 96px) clamp(72px, 10vh, 140px);
}
.detail__media { position: sticky; top: 96px; align-self: start; }
.detail .piece__art { margin-inline: auto; }
.detail .piece__art.has-gallery { margin-bottom: 84px; }

/* info column enters after the frame */
.detail__info > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.detail__info > :nth-child(2) { transition-delay: 0.1s; }
.detail__info > :nth-child(3) { transition-delay: 0.2s; }
.detail__info > :nth-child(4) { transition-delay: 0.3s; }
.detail__info > :nth-child(5) { transition-delay: 0.4s; }
.detail__info > :nth-child(6) { transition-delay: 0.5s; }
.detail__info > :nth-child(7) { transition-delay: 0.6s; }
.detail.in .detail__info > * { opacity: 1; transform: none; }

.detail__eyebrow {
  display: flex;
  gap: 18px;
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.detail__eyebrow > :first-child { color: var(--accent); }
.detail__title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.detail__lead {
  margin-top: 28px;
  max-width: 46ch;
  font-size: calc(var(--t-body) * 1.08);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* price + action */
.detail__buy {
  margin-top: clamp(32px, 5vh, 48px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.detail__price {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.detail__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.detail__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.detail__status--reserved .detail__dot { background: var(--ink-mute); }
.detail__status--sold .detail__dot { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-mute); }
.detail__fine { margin-top: 14px; font-size: var(--t-micro); letter-spacing: 0.12em; color: var(--ink-mute); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border: 1px solid var(--ink);
  font-size: var(--t-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn:hover { background: var(--ink); color: var(--black); }

/* specifications */
.detail__specs {
  margin-top: clamp(32px, 5vh, 48px);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 48px);
}
.detail__specs dt,
.detail__specs dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail__specs dt {
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 17px;
}
.detail__specs dd { font-size: var(--t-body); color: var(--ink); font-variant-numeric: tabular-nums; }

/* notes: shipping, care, certificate */
.detail__notes { margin-top: clamp(32px, 5vh, 48px); }
.detail__note { border-bottom: 1px solid var(--line); }
.detail__note summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.detail__note summary::-webkit-details-marker { display: none; }
.detail__note summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--ink-mute); transition: transform 0.4s var(--ease-out); }
.detail__note[open] summary::after { transform: rotate(45deg); }
.detail__note p { padding: 0 0 22px; max-width: 52ch; font-size: var(--t-body); line-height: 1.7; color: var(--ink-soft); }

/* more work */
.detail__more { border-top: 1px solid var(--line); }
.detail__more .work__head { padding-top: clamp(64px, 9vh, 120px); }
.detail__more .work__count { text-decoration: none; transition: color 0.3s ease; }
.detail__more .work__count:hover { color: var(--ink); }

@media (max-width: 900px) {
  .detail__grid { grid-template-columns: 1fr; gap: 48px; }
  .detail__media { position: static; }
  .detail__bar { flex-wrap: wrap; }
}

/* ============================================================
   PAGES (werk / over / contact) — masthead, statement, prose,
   facts, image band, about, contact form, call to action
   ============================================================ */
.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(56px, 10vh, 120px)) var(--gutter) clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px clamp(40px, 6vw, 120px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.masthead > * { opacity: 0; animation: fade-up 1.2s var(--ease-out) forwards; }
.masthead > :nth-child(1) { animation-delay: 0.15s; }
.masthead > :nth-child(2) { animation-delay: 0.3s; }
.masthead > :nth-child(3) { animation-delay: 0.45s; }
.masthead__eyebrow {
  grid-column: 1 / -1;
  font-size: var(--t-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.masthead__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.masthead__lead {
  max-width: 40ch;
  padding-bottom: 0.6em;
  font-size: calc(var(--t-body) * 1.1);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* scroll reveal for page blocks */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }

.statement {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.statement__big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--ink);
}

.prose p { max-width: 58ch; font-size: var(--t-body); line-height: 1.8; color: var(--ink-soft); }
.prose p + p { margin-top: 1.4em; }
.prose__label {
  margin-bottom: 18px;
  font-size: var(--t-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.prose p + .prose__label, .prose .quote + .prose__label, .prose .facts + .prose__label { margin-top: clamp(40px, 6vh, 64px); }
.quote {
  margin: clamp(40px, 6vh, 64px) 0;
  padding-left: 28px;
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
}

/* key / value list, same voice as the work specs */
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 48px);
}
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 17px; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.facts dd { font-size: var(--t-body); color: var(--ink); }
.facts a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.3s ease; }
.facts a:hover { border-color: var(--accent); }

/* full-bleed image band */
.band {
  position: relative;
  height: clamp(320px, 60vh, 640px);
  overflow: hidden;
  background: var(--surface);
}
.band img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.band.in img { transform: none; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,4,3,0.7), transparent 45%); pointer-events: none; }
.band__cap {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 40px);
  z-index: 1;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}

/* over: portrait + text */
.about {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 140px);
  align-items: start;
}
.about__portrait { position: sticky; top: 96px; }
.about__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7);
}
.about__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); pointer-events: none; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__cap { margin-top: 16px; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }

/* contact: details + form */
.contact {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 140px);
  align-items: start;
}
.contact__links { margin-top: clamp(32px, 5vh, 48px); display: flex; flex-wrap: wrap; gap: 14px 32px; }
.contact__links a {
  font-size: var(--t-label); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.contact__links a:hover { border-color: var(--accent); }

.form { display: grid; gap: clamp(28px, 4vh, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.field { display: grid; gap: 10px; }
.field label { font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body);
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { max-width: 36ch; font-size: var(--t-micro); letter-spacing: 0.1em; line-height: 1.7; color: var(--ink-mute); }
button.btn { background: none; cursor: pointer; font-family: inherit; }

/* call to action */
.cta {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 140px) var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.cta__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; color: var(--ink); max-width: 16ch; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn--ghost { border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* werk page: series overview */
.series-wrap .work__head { padding-top: clamp(40px, 6vh, 64px); }
.series {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) var(--gutter) clamp(72px, 10vh, 140px);
  display: grid;
  gap: clamp(80px, 12vh, 160px);
}
.series__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7);
  position: relative;
}
.series__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); pointer-events: none; }
.series__media img, .series__media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 2s var(--ease-out); }
.series__item.in .series__media img, .series__item.in .series__media video { transform: none; }
.series__body {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(40px, 6vw, 120px);
}
.series__meta { display: flex; gap: 22px; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.series__meta > :first-child { color: var(--accent); }
.series__title { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: var(--t-h2); line-height: 1; color: var(--ink); }
.series .piece__link { margin-top: 28px; }

@media (max-width: 900px) {
  .masthead, .statement, .about, .contact { grid-template-columns: 1fr; }
  .masthead__lead { padding-bottom: 0; }
  .about__portrait { position: static; max-width: 460px; }
  .form__row { grid-template-columns: 1fr; }
  .series__body { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 4vh, 56px);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 80px) var(--gutter) clamp(32px, 5vh, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand nav"
    "legal credit";
  row-gap: clamp(40px, 7vh, 88px);
  align-items: end;
}
.footer__brand { grid-area: brand; }
.footer__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1;
  color: var(--ink);
}
.footer__role {
  margin-top: 12px;
  font-size: var(--t-micro);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer__nav {
  grid-area: nav;
  display: flex;
  gap: clamp(24px, 3vw, 44px);
}
.footer__nav a {
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--ink); }
.footer__legal  { grid-area: legal; }
.footer__credit { grid-area: credit; text-align: right; }
.footer__legal, .footer__credit {
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.footer__credit a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 185, 164, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer__credit a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "legal" "credit";
    row-gap: 32px;
  }
  .footer__nav { flex-wrap: wrap; gap: 18px 28px; }
  .footer__credit { text-align: left; margin-top: -20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .header, .hero__img, .hero__title, .hero__sub, .hero__cue { animation: none; opacity: 1; transform: none; }
  .hero__cue-line { animation: none; }
  .nav-overlay.open .nav-overlay__link { animation: none; opacity: 1; }
  .piece__frame, .piece__media, .piece__text > *, .piece__thumbs { transition: none; }
  .piece__thumbs { opacity: 1; transform: none; }
  .piece__frame { clip-path: none; }
  .piece__media { transform: none; }
  .piece__text > * { opacity: 1; transform: none; }
  .piece__overlay { display: none; }
  .cat__item, .detail__info > *, [data-reveal] { transition: none; opacity: 1; transform: none; }
  .masthead > * { animation: none; opacity: 1; }
  .band img { transition: none; transform: none; }
  .piece__art::before { transition: none; opacity: 1; }
}

/* ============================================================
   CMS CONTENT: the block renderer's output inside the design,
   the site's form, and the framework pages
   ============================================================ */
.skip { position: absolute; left: -999px; top: 12px; z-index: 200; padding: 10px 16px; background: var(--accent); color: #111; font-size: var(--t-micro); letter-spacing: 0.2em; text-transform: uppercase; }
.skip:focus { left: 12px; }
.preview-notice { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 90; padding: 8px 16px; background: var(--accent); color: #111; font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; }

/* blocks: headings as labels, lists as facts, quotes and images in the design's voice */
.prose .rb-heading { margin-bottom: 18px; font-family: var(--sans); font-weight: 400; font-size: var(--t-label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.prose .rb-heading:not(:first-child) { margin-top: clamp(40px, 6vh, 64px); }
.prose .rb-list { margin: 0; padding: 0; list-style: none; }
.prose .rb-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); color: var(--ink); }
.prose .rb-list li:first-child { border-top: 1px solid var(--line); }
.prose .rb-list + .rb-paragraph, .prose .rb-paragraph + .rb-list { margin-top: clamp(28px, 4vh, 40px); }
.prose .rb-quote { margin: clamp(40px, 6vh, 64px) 0; padding-left: 28px; border-left: 1px solid var(--accent); }
.prose .rb-quote p { max-width: none; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.35; color: var(--ink); }
.prose .rb-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.prose .rb-image { margin: clamp(40px, 6vh, 64px) 0; }
.prose .rb-image img { display: block; width: 100%; height: auto; }
.prose .rb-image figcaption { margin-top: 12px; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.prose .rb-divider { margin: clamp(40px, 6vh, 64px) 0; border: 0; border-top: 1px solid var(--line); }
.prose .rb-cta { margin-top: clamp(28px, 4vh, 40px); }
.prose .rb-button { display: inline-block; padding: 16px 28px; border: 1px solid var(--accent); color: var(--ink); text-decoration: none; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.3s ease, color 0.3s ease; }
.prose .rb-button:hover { background: var(--accent); color: #111; }
.prose .rb-button-secondary { border-color: var(--line); color: var(--ink-soft); }
.prose .rb-embed { margin: clamp(40px, 6vh, 64px) 0; aspect-ratio: 16 / 9; }
.prose .rb-embed iframe { width: 100%; height: 100%; border: 0; }
.prose a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.3s ease; }
.prose a:hover { border-color: var(--accent); }
.prose--wide > .rb-paragraph:first-child { max-width: 30ch; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.8rem); line-height: 1.3; color: var(--ink); }
.prose--wide > .rb-paragraph:first-child + .rb-paragraph { margin-top: clamp(40px, 6vh, 64px); }
.contact__facts .rb-paragraph { margin-top: clamp(32px, 5vh, 48px); display: flex; flex-wrap: wrap; gap: 14px 32px; }
.contact__facts .rb-paragraph a { font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); border-bottom-color: var(--line); }

/* the site's form, rendered by the server */
.rb-form .form-title { margin-bottom: 8px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; color: var(--ink); }
.rb-form .field { margin: 0; }
.rb-form .field .help { font-size: var(--t-micro); letter-spacing: 0.1em; color: var(--ink-mute); }
.rb-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rb-form button.button { display: inline-block; padding: 16px 28px; border: 1px solid var(--accent); border-radius: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.3s ease, color 0.3s ease; }
.rb-form button.button:hover { background: var(--accent); color: #111; }
.rb-form .notice { padding: 14px 18px; border: 1px solid var(--accent); font-size: var(--t-body); color: var(--ink); }
.rb-form .notice-error { border-color: #b4564a; }
.rb-form [aria-invalid="true"] { border-bottom-color: #b4564a; }

/* availability on a work */
.detail__status--reserved .detail__dot { background: var(--accent); }
.detail__status--sold .detail__dot, .detail__status--nfs .detail__dot { background: var(--ink-mute); }
.detail__status--sold, .detail__status--nfs { color: var(--ink-mute); }

/* lists of entries (blog, search) and small leftovers */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 5vh, 56px); }
.entries__item .series__title a { color: inherit; text-decoration: none; }
.entries__item .series__title a:hover { color: var(--accent); }
.entries__excerpt { margin-top: 14px; max-width: 58ch; font-size: var(--t-body); line-height: 1.8; color: var(--ink-soft); }
.entries mark { background: none; color: var(--accent); }
.cat__lead { margin: -24px 0 clamp(40px, 6vh, 64px); max-width: 52ch; font-size: var(--t-body); line-height: 1.8; color: var(--ink-soft); }
.cat__paging { margin-top: clamp(40px, 6vh, 64px); justify-content: center; }
.work__empty { padding: clamp(40px, 8vh, 96px) 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2vw, 1.9rem); color: var(--ink-mute); }
.detail__body { margin-top: clamp(32px, 5vh, 48px); }

/* search, tucked into the phone menu */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-overlay__search { margin-top: clamp(24px, 4vh, 40px); }
.nav-overlay__search input { width: min(100%, 320px); padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: var(--t-body); font-weight: 300; outline: none; }
.nav-overlay__search input:focus { border-color: var(--accent); }

/* ============================================================
   STAFF LOGIN — the login and the password link behind /admin
   Title column left, form right; one column on narrow screens.
   ============================================================ */
.login {
  max-width: var(--measure);
  margin: 0 auto;
  min-height: calc(100vh - 220px);
  padding: calc(var(--header-h) + clamp(56px, 12vh, 140px)) var(--gutter) clamp(64px, 12vh, 160px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.login > * { opacity: 0; animation: fade-up 1.2s var(--ease-out) forwards; }
.login__head { animation-delay: 0.15s; position: sticky; top: calc(var(--header-h) + 24px); }
.login__body { animation-delay: 0.35s; max-width: 460px; display: grid; gap: clamp(32px, 5vh, 48px); }
.login__eyebrow { font-size: var(--t-label); letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); }
.login__title {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.login__lead { margin-top: 28px; max-width: 34ch; font-size: calc(var(--t-body) * 1.1); line-height: 1.7; color: var(--ink-soft); }
.login .form { gap: clamp(24px, 3.5vh, 32px); }
.login .btn { border-color: var(--accent); }
.login .btn:hover { background: var(--accent); color: #111; }
.login__actions { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.login__text { max-width: 48ch; font-size: var(--t-body); line-height: 1.8; color: var(--ink-soft); }
.login .notice { padding: 14px 18px; border: 1px solid var(--accent); font-size: var(--t-body); line-height: 1.6; color: var(--ink); }
.login .notice-error { border-color: #b4564a; }
/* browser autofill: keep the dark field, light text */
.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus {
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  border-bottom-color: var(--accent);
}
@media (max-width: 900px) {
  .login { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 7vh, 64px); }
  .login__head { position: static; }
  .login__body { max-width: none; }
}
