/* =========================================================
   Kristen Cole – Watercolor Studio
   Palette pulled from "Sweet Pea Season"
   ========================================================= */

:root {
  --paper: #FBF8F2;
  --paper-2: #F2F0E4;
  --line: #DCD9C8;
  --ink: #1F3F45;          /* deep teal ink from the mountain shadows */
  --ink-soft: #4F6B6C;
  --teal: #2F7A74;
  --wine: #9A2C58;         /* darkest sweet pea, used for links/buttons */
  --pink: #F26DAE;
  --lavender: #8E76B8;
  --meadow: #B4C84A;
  --vine: #7F9A3B;
  --sky: #BFDDF0;
  --hero-ink: #1C4A53;     /* hero text always sits on the painted sky */
  --button-ink: #FBF8F2;
  --shadow: 31 63 69;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #142321;
    --paper-2: #1B2D2A;
    --line: #2F4541;
    --ink: #EDF1EA;
    --ink-soft: #B3C4BD;
    --teal: #7CC3B8;
    --wine: #F59AC6;
    --lavender: #BBA8E2;
    --vine: #A9C25A;
    --button-ink: #142321;
    --shadow: 0 0 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #142321;
  --paper-2: #1B2D2A;
  --line: #2F4541;
  --ink: #EDF1EA;
  --ink-soft: #B3C4BD;
  --teal: #7CC3B8;
  --wine: #F59AC6;
  --lavender: #BBA8E2;
  --vine: #A9C25A;
  --button-ink: #142321;
  --shadow: 0 0 0;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Soft cold-press paper grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .3  0 0 0 0 .25  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a { color: var(--wine); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) clamp(20px, 5vw, 48px) 12px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transform: translateY(-105%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.site-nav.is-visible { transform: translateY(0); }

.site-nav__brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  background: linear-gradient(var(--pink), var(--pink)) left bottom / 0 2px no-repeat;
  transition: background-size .3s;
}
.site-nav nav a:hover,
.site-nav nav a[aria-current="true"] { background-size: 100% 2px; }

@media (max-width: 520px) {
  .site-nav__brand { display: none; }
  .site-nav { justify-content: center; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: max(100svh, 62vw);
  min-height: 560px;
  overflow: hidden;
  background: #A6CCE7; /* matches the top of the painted sky */
  isolation: isolate;
}

/* The stage is the painting's own coordinate space (2070 × 1516).
   It always covers the hero and stays anchored to the bottom,
   with a little extra width so tilt never shows an edge. */
.hero__stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  aspect-ratio: 2070 / 1516;
  height: max(100%, calc((100vw + 56px) * 1516 / 2070));
  transform: translateX(-50%);
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.layer--front { transform-origin: 50% 100%; }
.layer--front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Drifting watercolor clouds. Each strip holds two copies of a seamless tile
   and slides left by one copy, so the loop never shows a seam. */
.clouds { overflow: visible; }
.clouds__strip {
  position: absolute;
  left: 0;
  width: 200%;
  display: flex;
  animation: cloud-drift var(--drift, 200s) linear infinite;
  will-change: transform;
}
.clouds__strip img { flex: none; width: 50%; height: 100%; }
.clouds--far .clouds__strip { top: 29%; height: 19.2%; --drift: 300s; }
.clouds--near .clouds__strip { top: 10.5%; height: 34.9%; --drift: 170s; }
@keyframes cloud-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Paper that sits behind the deckled bottom edge of the flowers */
.hero__ground {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 92.5%;
  bottom: -160px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent), var(--paper) 46px);
}

/* Title tucks just behind the mountain ridge, then sinks behind it on scroll */
.hero__title {
  inset: auto 0 55.5% 0;
  transform-origin: 50% 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 5vw;
  color: var(--hero-ink);
  pointer-events: none;
  isolation: isolate;
}
/* A pale watercolor wash behind the title so it reads clearly on the sky */
.hero__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -2%;
  width: min(calc(var(--stage-w, 1400px) * 0.5), 110vw);
  height: 135%;
  transform: translateX(-50%);
  border-radius: 46% 54% 50% 50% / 55% 50% 50% 45%;
  background:
    radial-gradient(50% 50% at 50% 55%, rgba(250, 252, 252, .78), rgba(238, 246, 250, .5) 55%, transparent 76%);
  filter: blur(14px);
}
.hero__name {
  font-weight: 500;
  font-size: min(calc(var(--stage-w, 1400px) * 0.088), 17vw);
  line-height: .86;
  letter-spacing: -0.015em;
  /* descenders dip below the ridge line */
  margin-bottom: 0;
  color: #123C44;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .5), 0 0 34px rgba(255, 255, 255, .7);
}
.hero__studio {
  margin: 0 0 .35em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, calc(var(--stage-w, 1400px) * 0.019), 32px);
  line-height: 1.1;
  color: #1C4A53;
}
.hero__tagline {
  margin: 0 0 .9em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(13px, calc(var(--stage-w, 1400px) * 0.0115), 19px);
  letter-spacing: .02em;
  line-height: 1.4;
  max-width: 36ch;
  font-weight: 700;
  color: #1B4C55;
  text-shadow: 0 0 12px rgba(255, 255, 255, .9);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px -10px rgb(var(--shadow) / .5);
}
.hero__cue svg {
  width: 12px;
  height: 20px;
  fill: none;
  stroke: var(--vine);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Drifting petals */
.petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  height: calc(var(--size) * .72);
  border-radius: 80% 10% 80% 10%;
  background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.65), transparent 55%), var(--c);
  opacity: 0;
  animation: drift var(--dur) linear var(--delay) infinite;
  will-change: transform, opacity;
}
@keyframes drift {
  0%   { transform: translate3d(var(--x0), -40px, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  50%  { transform: translate3d(calc((var(--x0) + var(--x1)) / 2 + var(--sway)), calc(var(--fall) / 2), 0) rotate(260deg); }
  85%  { opacity: .75; }
  100% { transform: translate3d(var(--x1), var(--fall), 0) rotate(520deg); opacity: 0; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 48px);
}
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2,
.about h2 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
}
.section__head p {
  margin: .6em 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 18px;
}

/* Watercolor wash behind each section heading */
.section h2 { position: relative; z-index: 0; display: inline-block; }
.section h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.35em;
  right: -.2em;
  top: .32em;
  bottom: .02em;
  border-radius: 48% 52% 44% 56% / 60% 46% 54% 40%;
  background:
    radial-gradient(60% 80% at 25% 55%, var(--wash-a), transparent 70%),
    radial-gradient(55% 70% at 78% 45%, var(--wash-b), transparent 72%);
  opacity: .32;
  filter: blur(6px);
  transform: rotate(-1.5deg);
}
.about { --wash-a: var(--pink); --wash-b: var(--lavender); }

/* Shared caption styles (fox) */
.work__title { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.work__meta { font-size: 14px; color: var(--ink-soft); }

/* ---------- Gallery: interactive exhibition track ---------- */
@property --g1 { syntax: '<color>'; inherits: true; initial-value: #57A9B8; }
@property --g2 { syntax: '<color>'; inherits: true; initial-value: #B79AD0; }

.gallery {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
/* A soft wash behind the track that takes on the colors of the painting in view */
.gallery__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 22% 58%, color-mix(in srgb, var(--g1) 30%, transparent), transparent 70%),
    radial-gradient(40% 44% at 80% 42%, color-mix(in srgb, var(--g2) 28%, transparent), transparent 72%);
  filter: blur(24px);
  transition: --g1 1.1s ease, --g2 1.1s ease;
}
.gallery__head {
  max-width: 1180px;
  margin: 0 auto clamp(16px, 2.5vw, 28px);
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.gallery__head h2 { font-size: clamp(42px, 6vw, 72px); font-weight: 400; }
.gallery__head p { margin: .6em 0 0; max-width: 52ch; color: var(--ink-soft); font-size: 18px; }
.gallery__controls { display: flex; align-items: center; gap: 10px; }
.gallery__count {
  font-family: var(--serif);
  font-size: 20px;
  margin-right: 8px;
  color: var(--ink-soft);
  min-width: 4.5em;
  text-align: right;
}
.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.round-btn:hover { background: var(--paper-2); transform: translateY(-1px); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.track {
  position: relative;
  --h: clamp(260px, 52vh, 580px);
  --edge: max(8vw, calc((100vw - 1180px) / 2 + 48px));
  list-style: none;
  margin: 0;
  padding: 24px var(--edge) 12px;
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--edge);
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -4px;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.track.is-dragging * { pointer-events: none; }

.exhibit {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  opacity: .5;
  transform: scale(.9);
  transform-origin: 50% 40%;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.exhibit.is-active { opacity: 1; transform: none; }
.exhibit__open {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  perspective: 1100px;
  border-radius: 3px;
}
.exhibit__tilt {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  border-radius: 3px;
}
.exhibit__tilt > img {
  width: min(calc(var(--h) * var(--ar, 1.33)), 84vw, 1100px);
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgb(var(--shadow) / .16),
    0 24px 44px -24px rgb(var(--shadow) / .55);
  user-select: none;
  -webkit-user-drag: none;
}
/* light catching the paper as the painting tilts */
.exhibit__glare {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.38), transparent 60%);
  mix-blend-mode: soft-light;
  transition: opacity .4s;
}
.exhibit__open:hover .exhibit__glare { opacity: 1; }

.exhibit__caption {
  margin-top: 18px;
  width: min(calc(var(--h) * var(--ar, 1.33)), 84vw, 1100px);
  max-width: 100%;
  transition: opacity .5s;
}
.exhibit:not(.is-active) .exhibit__caption { opacity: .55; }
.exhibit__caption h3 { font-size: 28px; font-weight: 500; }
.exhibit__meta { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.exhibit__note { margin: 8px 0 0; font-size: 16px; line-height: 1.55; max-width: 46ch; }

.thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
  padding: 0 20px;
  flex-wrap: wrap;
}
.thumb {
  width: 54px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: pointer;
  opacity: .6;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--wine); transform: translateY(-2px); }

/* ---------- Vine dividers ---------- */
.vine {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.vine svg { width: 100%; height: auto; overflow: visible; }
.vine__stem {
  fill: none;
  stroke: var(--vine);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vine__curl { stroke-width: 2; }
.vine__bloom circle { fill: var(--pink); opacity: .85; }
.vine__bloom--lavender circle { fill: var(--lavender); }
.vine__bloom { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .4s; }
.vine.is-waiting .vine__bloom { transform: scale(0); opacity: 0; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about__portrait { margin: 0; }
.about__portrait img,
.about__placeholder {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 55% 40%;
  height: auto;
  border-radius: 46% 54% 44% 56% / 48% 42% 58% 52%;
}
.about__placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 30% 30%, color-mix(in srgb, var(--pink) 55%, transparent), transparent 70%),
    radial-gradient(50% 45% at 72% 62%, color-mix(in srgb, var(--lavender) 55%, transparent), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, color-mix(in srgb, var(--meadow) 60%, transparent), transparent 70%),
    var(--paper-2);
}
.about__placeholder span {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  padding: 6px 16px;
  border-radius: 999px;
}
.about__text p { max-width: 60ch; margin: 1em 0 0; }
.about__text .lead {
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.38;
  margin-top: .8em;
}
.placeholder-note {
  color: var(--ink-soft);
  border-left: 2px dashed var(--lavender);
  padding-left: 16px;
  font-size: 15.5px;
}

/* ---------- Living paintings: a touch of motion on each piece ---------- */
.living {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px;
  pointer-events: none;
}
.living svg.ripple { position: absolute; inset: 0; width: 100%; height: 100%; }
/* everything inside a painting rests unless that painting is in view */
.exhibit:not(.is-alive) .living,
.exhibit:not(.is-alive) .living * { animation-play-state: paused !important; }

/* water glints */
.glint {
  position: absolute;
  width: var(--gs, 8px);
  height: calc(var(--gs, 8px) * .55);
  margin: calc(var(--gs, 8px) * -.27) 0 0 calc(var(--gs, 8px) * -.5);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0));
  opacity: 0;
  animation: glint var(--gd, 3.4s) ease-in-out var(--gdelay, 0s) infinite;
}
@keyframes glint {
  0%, 62%, 100% { opacity: 0; transform: scaleX(.4); }
  72% { opacity: .95; transform: scaleX(1.25); }
  82% { opacity: 0; transform: scaleX(.6); }
}
/* dancing light on the stream bed */
.caustics {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(closest-side, rgba(255,255,235,.55), transparent) 0 0 / 190px 130px,
    radial-gradient(closest-side, rgba(220,250,255,.45), transparent) 60px 40px / 240px 170px;
  mix-blend-mode: soft-light;
  opacity: .7;
  animation: caustics 18s linear infinite;
}
@keyframes caustics {
  to { background-position: 190px 130px, -180px 210px; }
}
/* petals drifting across a painting */
.card-petal {
  position: absolute;
  top: -6%;
  width: var(--size);
  height: calc(var(--size) * .72);
  border-radius: 80% 10% 80% 10%;
  background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.6), transparent 55%), var(--c);
  opacity: 0;
  animation: card-petal var(--dur) linear var(--delay) infinite;
}
@keyframes card-petal {
  0% { top: -6%; transform: translateX(0) rotate(0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translateX(var(--sway)) rotate(240deg); }
  88% { opacity: .8; }
  100% { top: 104%; transform: translateX(calc(var(--sway) * -.4)) rotate(480deg); opacity: 0; }
}

/* the fox: background, body, one ear, and eyelids as separate layers */
.living--fox img, .living--fox .fox__lids { position: absolute; }
.living--fox .fox__bg,
.living--fox .fox__body,
.living--fox .fox__lids { inset: 0; width: 100%; height: 100%; }
.fox__breath {
  position: absolute;
  inset: 0;
  transform-origin: 66% 92%;
  animation: fox-breathe 4.2s ease-in-out infinite;
}
@keyframes fox-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.004, 1.012); }
}
.fox__ear {
  left: calc(690 / 1299 * 100%);
  top: calc(236 / 974 * 100%);
  width: calc(116 / 1299 * 100%);
  height: auto;
  transform-origin: 60.3% 94.3%;
}
.exhibit.is-twitching .fox__ear { animation: fox-ear .55s cubic-bezier(.3,.9,.4,1); }
@keyframes fox-ear {
  0% { transform: rotate(0); }
  22% { transform: rotate(4.5deg); }
  44% { transform: rotate(-1.5deg); }
  62% { transform: rotate(2.2deg); }
  100% { transform: rotate(0); }
}
.fox__lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.exhibit.is-blinking .fox__lid { animation: fox-blink .26s ease-in-out; }
@keyframes fox-blink {
  0%, 100% { transform: scaleY(0); }
  45%, 55% { transform: scaleY(1); }
}
.fox__lash { opacity: 0; }
.exhibit.is-blinking .fox__lash { animation: fox-lash .26s ease-in-out; }
@keyframes fox-lash {
  0%, 30%, 70%, 100% { opacity: 0; }
  45%, 55% { opacity: .9; }
}
/* ---------- Footer: a torn scrap of watercolor paper ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 110px) clamp(14px, 4vw, 48px) clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.scrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  filter: drop-shadow(0 2px 2px rgb(var(--shadow) / .12)) drop-shadow(0 18px 26px rgb(var(--shadow) / .2));
  transform: rotate(-.6deg);
}
.scrap__paper {
  position: relative;
  z-index: 1;
  color: #24434A;
  padding: clamp(40px, 5vw, 60px) clamp(24px, 5vw, 64px) clamp(34px, 4vw, 48px);
  background:
    radial-gradient(38% 60% at 6% 100%, rgba(242, 109, 174, .14), transparent 70%),
    radial-gradient(34% 70% at 100% 0%, rgba(110, 170, 200, .16), transparent 70%),
    radial-gradient(30% 50% at 70% 110%, rgba(180, 200, 74, .14), transparent 70%),
    #FFFDF7;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpolygon points='0,8.1 5,10.2 10,12.1 15,11.2 20,10.6 25,9.7 30,10.6 35,10.4 40,11.5 45,8.5 50,14.8 55,10.7 60,11.7 65,15.3 70,10.8 75,14.6 80,12.7 85,15.1 90,12.0 95,13.0 100,11.6 105,9.1 110,9.7 115,8.5 120,5.4 125,6.9 130,7.6 135,3.0 140,3.0 145,3.0 150,3.0 155,3.0 160,3.0 165,3.0 170,3.0 175,5.4 180,5.1 185,3.0 190,3.0 195,7.3 200,3.0 205,3.0 210,3.0 215,3.0 220,3.0 225,3.0 230,3.0 235,6.8 240,3.0 245,3.0 250,3.0 255,3.0 260,3.0 265,3.0 270,7.4 275,3.0 280,3.0 285,3.0 290,5.7 295,3.0 300,3.0 305,3.0 310,3.0 315,3.0 320,3.0 325,3.0 330,3.0 335,3.0 340,5.8 345,3.0 350,3.0 355,6.5 360,3.0 365,3.0 370,3.0 375,5.7 380,3.1 385,4.4 390,5.1 395,4.9 400,3.2 405,5.1 410,3.1 415,3.9 420,5.9 425,3.3 430,3.0 435,7.2 440,3.0 445,3.2 450,6.4 455,3.5 460,3.0 465,3.6 470,6.0 475,6.6 480,5.4 485,5.8 490,5.7 495,5.3 500,4.1 505,4.6 510,5.0 515,4.8 520,4.4 525,3.0 530,3.0 535,6.7 540,3.0 545,3.0 550,5.4 555,3.4 560,6.7 565,6.7 570,10.3 575,3.6 580,5.6 585,9.7 590,8.3 595,7.2 600,8.1 600,24 0,24'/%3E%3C/svg%3E") top left / 600px 24px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 600,0 600,13.1 595,13.1 590,13.4 585,14.4 580,14.8 575,13.6 570,10.6 565,9.9 560,10.8 555,8.9 550,9.5 545,11.4 540,9.5 535,9.4 530,10.2 525,8.2 520,10.6 515,9.7 510,10.3 505,12.3 500,13.2 495,12.2 490,13.5 485,16.7 480,17.9 475,17.2 470,18.9 465,20.0 460,21.0 455,21.0 450,21.0 445,21.0 440,21.0 435,21.0 430,21.0 425,21.0 420,21.0 415,21.0 410,21.0 405,21.0 400,21.0 395,21.0 390,21.0 385,19.6 380,19.1 375,20.8 370,20.8 365,21.0 360,21.0 355,21.0 350,20.7 345,18.4 340,17.2 335,15.6 330,15.8 325,12.1 320,12.2 315,12.0 310,11.3 305,12.4 300,11.5 295,13.0 290,15.7 285,16.3 280,14.5 275,13.7 270,14.9 265,13.4 260,14.4 255,14.2 250,14.7 245,14.9 240,16.4 235,16.8 230,17.6 225,19.1 220,19.6 215,17.3 210,18.1 205,18.9 200,16.4 195,19.2 190,16.7 185,16.7 180,14.8 175,14.9 170,17.0 165,15.6 160,13.9 155,12.9 150,13.4 145,12.4 140,12.1 135,10.9 130,9.7 125,11.1 120,8.9 115,9.8 110,9.8 105,10.4 100,9.6 95,9.3 90,8.6 85,8.7 80,9.2 75,9.7 70,11.0 65,11.9 60,11.2 55,11.4 50,10.1 45,9.8 40,7.4 35,7.7 30,8.0 25,8.8 20,9.7 15,10.4 10,11.0 5,9.7 0,13.1'/%3E%3C/svg%3E") bottom left / 600px 24px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 46px) no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpolygon points='0,8.1 5,10.2 10,12.1 15,11.2 20,10.6 25,9.7 30,10.6 35,10.4 40,11.5 45,8.5 50,14.8 55,10.7 60,11.7 65,15.3 70,10.8 75,14.6 80,12.7 85,15.1 90,12.0 95,13.0 100,11.6 105,9.1 110,9.7 115,8.5 120,5.4 125,6.9 130,7.6 135,3.0 140,3.0 145,3.0 150,3.0 155,3.0 160,3.0 165,3.0 170,3.0 175,5.4 180,5.1 185,3.0 190,3.0 195,7.3 200,3.0 205,3.0 210,3.0 215,3.0 220,3.0 225,3.0 230,3.0 235,6.8 240,3.0 245,3.0 250,3.0 255,3.0 260,3.0 265,3.0 270,7.4 275,3.0 280,3.0 285,3.0 290,5.7 295,3.0 300,3.0 305,3.0 310,3.0 315,3.0 320,3.0 325,3.0 330,3.0 335,3.0 340,5.8 345,3.0 350,3.0 355,6.5 360,3.0 365,3.0 370,3.0 375,5.7 380,3.1 385,4.4 390,5.1 395,4.9 400,3.2 405,5.1 410,3.1 415,3.9 420,5.9 425,3.3 430,3.0 435,7.2 440,3.0 445,3.2 450,6.4 455,3.5 460,3.0 465,3.6 470,6.0 475,6.6 480,5.4 485,5.8 490,5.7 495,5.3 500,4.1 505,4.6 510,5.0 515,4.8 520,4.4 525,3.0 530,3.0 535,6.7 540,3.0 545,3.0 550,5.4 555,3.4 560,6.7 565,6.7 570,10.3 575,3.6 580,5.6 585,9.7 590,8.3 595,7.2 600,8.1 600,24 0,24'/%3E%3C/svg%3E") top left / 600px 24px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 600,0 600,13.1 595,13.1 590,13.4 585,14.4 580,14.8 575,13.6 570,10.6 565,9.9 560,10.8 555,8.9 550,9.5 545,11.4 540,9.5 535,9.4 530,10.2 525,8.2 520,10.6 515,9.7 510,10.3 505,12.3 500,13.2 495,12.2 490,13.5 485,16.7 480,17.9 475,17.2 470,18.9 465,20.0 460,21.0 455,21.0 450,21.0 445,21.0 440,21.0 435,21.0 430,21.0 425,21.0 420,21.0 415,21.0 410,21.0 405,21.0 400,21.0 395,21.0 390,21.0 385,19.6 380,19.1 375,20.8 370,20.8 365,21.0 360,21.0 355,21.0 350,20.7 345,18.4 340,17.2 335,15.6 330,15.8 325,12.1 320,12.2 315,12.0 310,11.3 305,12.4 300,11.5 295,13.0 290,15.7 285,16.3 280,14.5 275,13.7 270,14.9 265,13.4 260,14.4 255,14.2 250,14.7 245,14.9 240,16.4 235,16.8 230,17.6 225,19.1 220,19.6 215,17.3 210,18.1 205,18.9 200,16.4 195,19.2 190,16.7 185,16.7 180,14.8 175,14.9 170,17.0 165,15.6 160,13.9 155,12.9 150,13.4 145,12.4 140,12.1 135,10.9 130,9.7 125,11.1 120,8.9 115,9.8 110,9.8 105,10.4 100,9.6 95,9.3 90,8.6 85,8.7 80,9.2 75,9.7 70,11.0 65,11.9 60,11.2 55,11.4 50,10.1 45,9.8 40,7.4 35,7.7 30,8.0 25,8.8 20,9.7 15,10.4 10,11.0 5,9.7 0,13.1'/%3E%3C/svg%3E") bottom left / 600px 24px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 46px) no-repeat;
}
/* cold-press grain on the scrap itself */
.scrap__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .52  0 0 0 0 .45  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
.scrap__sprig {
  position: absolute;
  z-index: 0;
  right: clamp(10px, 6%, 70px);
  top: clamp(-74px, -6.5vw, -40px);
  width: clamp(190px, 30vw, 330px);
  height: auto;
  transform-origin: 40% 100%;
  transform: rotate(-4deg);
  animation: sprig-sway 7s ease-in-out infinite;
}
@keyframes sprig-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(-1.5deg) translateY(-2px); }
}
.scrap__tape {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 6%, 70px);
  top: -12px;
  width: 118px;
  height: 32px;
  transform: rotate(-7deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px),
    rgba(142, 118, 184, .42);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 4px), transparent 100%);
  clip-path: polygon(0 8%, 4% 0, 10% 12%, 16% 0, 100% 0, 97% 30%, 100% 55%, 96% 100%, 8% 100%, 0 88%, 3% 60%);
}
.scrap__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px clamp(28px, 5vw, 72px);
  align-items: center;
}
.scrap__mail { display: flex; flex-direction: column; align-items: flex-start; }
.scrap__invite {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
  color: #6D4F8C;
}
.scrap .scrap__email {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 2.7vw, 38px);
  line-height: 1.1;
  color: #1E3E45;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(rgba(242, 109, 174, .35), rgba(242, 109, 174, .35)) left 92% / 100% .16em no-repeat;
  transition: background-size .3s, color .2s;
}
.scrap .scrap__email:hover { color: #9A2C58; background-size: 100% .5em; }
.scrap__copy {
  margin-top: 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #24434A;
  background: rgba(142, 118, 184, .14);
  border: 1px solid rgba(142, 118, 184, .4);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .2s;
}
.scrap__copy:hover { background: rgba(142, 118, 184, .26); }
.scrap__copied { min-height: 1.4em; margin-top: 6px; font-size: 14px; color: #4C6467; }
.scrap__name { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.05; }
.scrap__tag { margin: 4px 0 0; font-family: var(--serif); font-style: italic; font-size: 21px; color: #6D4F8C; }
.scrap__about { margin: 14px 0 0; max-width: 32ch; font-size: 15.5px; color: #4C6467; }
.scrap__label { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-size: 19px; color: #6E8478; }
.scrap__col { display: flex; flex-direction: column; gap: 6px; }
.scrap a { color: #24434A; font-weight: 600; font-size: 15.5px; text-decoration-color: rgba(154, 44, 88, .45); }
.scrap a:hover { color: #9A2C58; }
.scrap :focus-visible { outline-color: #9A2C58; }
.scrap__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px dashed rgba(36, 67, 74, .22);
  font-size: 14px;
  color: #5A7072;
}
.scrap__base p { margin: 0; }
.scrap__signature {
  position: static;
  margin: 10px 0 -6px;
  font-family: "Mrs Saint Delafield", "Brush Script MT", cursive;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1;
  color: rgba(36, 67, 74, .5);
  transform: rotate(-4deg);
  transform-origin: left center;
  pointer-events: none;
}
@media (max-width: 760px) {
  .scrap__grid { grid-template-columns: 1fr; }
  .scrap__signature { font-size: 40px; }
}

/* =========================================================
   LIGHTBOX with zoom and pan
   ========================================================= */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: rgba(14, 28, 27, .96);
  color: #EEF1EA;
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(14, 28, 27, .6); }
.lightbox__bar, .lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.lightbox__bar { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
.lightbox__foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
.lightbox__zoom { display: flex; gap: 8px; }
.lightbox__hint { margin: 0; font-size: 13.5px; color: #A9BAB4; text-align: center; transition: opacity .4s; }
.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage.is-panning { cursor: grabbing; }
.lightbox__stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 16px);
  transform-origin: 0 0;
  box-shadow: 0 30px 60px -30px #000;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.lightbox__stage.is-animating img { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lightbox__caption {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #BCC9C3;
}
.lightbox__title { font-family: var(--serif); font-size: 24px; color: #F4F2EA; line-height: 1.2; }
.lightbox__count { font-size: 12.5px; color: #8FA19B; margin-top: 2px; }
.lightbox__btn {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255,255,255,.14); }
.lightbox__btn:disabled { opacity: .3; cursor: default; }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox :focus-visible { outline-color: #F59AC6; }

/* =========================================================
   REVEALS (only added when motion is allowed)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
}

/* =========================================================
   REDUCED MOTION: static layered painting, no drifting
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals { display: none; }
  .clouds__strip { animation: none; }
  .fox__breath, .exhibit .fox__ear, .exhibit .fox__lid, .exhibit .fox__lash { animation: none !important; }
  .living svg.ripple, .glint, .caustics, .card-petal { display: none; }
  .scrap__sprig { animation: none; }
  .layer { transform: none !important; will-change: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-nav, .exhibit, .exhibit__tilt, .gallery__wash { transition: none !important; }
}
.site-nav:focus-within { transform: translateY(0); }

/* Hero fades in once every layer has decoded, so the scene never assembles piecemeal */
.hero__stage { transition: opacity .9s ease; }
.hero.is-loading .hero__stage { opacity: 0; }
