/* Linda Wadley - Moods & Motions Art Studio
   Palette pulled from her paintings: indigo night, cobalt, sky, rose, cadmium, sunset, ochre, sage. */
:root {
  --indigo: #172338;
  --cobalt: #2a5fa8;
  --sky: #8fb6e6;
  --rose: #b84a62;
  --cadmium: #c9402f;
  --sunset: #d9783e;
  --ochre: #d9b25a;
  --sage: #4f9068;
  --palette: linear-gradient(90deg, var(--cobalt), var(--sky) 18%, var(--sage) 34%, var(--ochre) 52%, var(--sunset) 68%, var(--cadmium) 82%, var(--rose));

  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #efe8df;
  --ink: #1c2233;
  --muted: #5f6475;
  --line: #e3dbd0;
  --accent: #2a5fa8;
  --accent-hover: #214c88;
  --accent-ink: #ffffff;
  --warm: #b9542b;
  --ok: #2f7a4b;
  --sold: #a8394f;
  --shadow: 0 1px 2px rgba(23, 35, 56, .06), 0 12px 32px rgba(23, 35, 56, .10);
  --radius: 14px;
  --field-h: 48px;
  --max: 1240px;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1626;
  --surface: #172036;
  --surface-2: #1e2942;
  --ink: #eef1f7;
  --muted: #a3abc0;
  --line: #2a3550;
  --accent: #8fb6e6;
  --accent-hover: #b0cdf0;
  --accent-ink: #0f1626;
  --warm: #eaa06c;
  --ok: #86d3a2;
  --sold: #ec8fa3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.65rem; }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.eyebrow { font: 700 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--warm); margin-bottom: 1em; }
.muted { color: var(--muted); }
.palette-rule { height: 4px; border: 0; margin: 0; background: var(--palette); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons & controls ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--field-h); padding: 0 24px;
  font: 700 .95rem/1 var(--sans); letter-spacing: .02em;
  color: var(--accent-ink); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.light { background: #fff; color: #172338; border-color: #fff; }
.btn.light:hover { background: #f1ece5; border-color: #f1ece5; color: #172338; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  color: inherit; background: transparent;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 20px; height: 20px; }

.chip {
  min-height: 42px; padding: 0 18px;
  font: 700 .9rem/1 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field, input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block; width: 100%; min-width: 0;
  min-height: var(--field-h); padding: 11px 16px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 170px; resize: vertical; }
select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
::placeholder { color: var(--muted); opacity: .8; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--indigo); color: #fff; font-size: .9rem; position: relative; }
.announce::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--palette); }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 0 13px; text-align: center; }
.announce strong { font-weight: 800; letter-spacing: .04em; }
.announce a { color: #fff; font-weight: 700; }
.announce a:hover { color: var(--ochre); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 0 4px rgba(217,120,62,.25); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.brand { text-decoration: none; color: inherit; line-height: 1; margin-right: auto; min-width: 0; }
.brand:hover { color: inherit; }
.brand-name { display: block; font: 400 2rem/1 var(--display); }
.brand-name em { font-style: italic; }
.brand-sub { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sunset); border-radius: 0; }
.nav a.nav-cta { background: var(--sunset); color: #fff; margin-left: 6px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav a:not(.nav-cta) .nav-icon { opacity: .75; }
.nav a:not(.nav-cta):hover .nav-icon, .nav a[aria-current="page"] .nav-icon { opacity: 1; transform: translateY(-1px); }
.nav a[aria-current="page"] .nav-icon { color: var(--sunset); }
.nav-icon { width: 17px; height: 17px; flex: none; margin-top: -1px; transition: transform .35s var(--ease-out, ease); }
.nav a.nav-cta:hover .nav-icon { transform: translateY(-2px) rotate(-6deg); }
.nav a.nav-cta:hover { background: #c4652d; color: #fff; }
.menu-btn { display: none; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* Home: header floats over the slideshow until you scroll */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; text-shadow: 0 1px 8px rgba(0,0,0,.45); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header .icon-btn { border-color: rgba(255,255,255,.4); }
.home .site-header.scrolled { text-shadow: none; background: color-mix(in srgb, var(--bg) 90%, transparent); border-color: var(--line); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.home .site-header.scrolled .icon-btn { border-color: var(--line); }

@media (max-width: 1040px) { /* phone-style menu; raised from 960 when menu icons were added */
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 20px 18px;
    background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sunset); padding-left: 14px; }
  .nav a.nav-cta { margin: 12px 0 0; border-radius: 999px; text-align: center; border-bottom: 0; justify-content: center; }
  .brand-name { font-size: 1.7rem; }
  .brand-sub { font-size: .6rem; }
}

/* ---------- Slideshow ---------- */
.show { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: #0b101b; color: #fff; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.slide.active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.slide-bg { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(48px) saturate(1.2) brightness(.42); transform: scale(1.1); }
.slide.active .slide-bg { animation: drift 14s ease-out both; }
.slide-tint, .stage::after { --amb-dark: color-mix(in srgb, var(--amb) 40%, #05080f); }
.slide-tint { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 45%, rgba(5,8,15,.25) 0%, color-mix(in srgb, var(--amb-dark) 70%, transparent) 55%, var(--amb-dark) 100%), linear-gradient(transparent 55%, rgba(5,8,15,.7)); }
/* Painting fills almost the whole screen; a thin band of its own blurred colours shows at the edges */
/* top: starts below the header line (76px header + a small gap) */
/* Desktop: the painting fills everything below the header (zoomed to fill, slow drift);
   the see-through header shows the painting's own blurred colours above it. */
.slide-art { position: absolute; inset: 76px 0 0 0; overflow: hidden; }
.slide-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%; }
.slide.active .slide-art img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.show .stage-nav { top: calc(50% + 38px); }
/* Header band: the painting's own colours, blurred and brighter, carried up behind the see-through header */
.slide-top { position: absolute; left: 0; right: 0; top: 0; height: 76px; overflow: hidden; }
.slide-top-bg { position: absolute; inset: -40px -40px -10px; background-size: cover; background-position: center top; filter: blur(22px) saturate(1.5) brightness(.78); }
.slide-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6,9,16,.28), rgba(6,9,16,.12)); }
button.stage-nav { padding: 0; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
@keyframes drift { from { transform: scale(1.22) translate(2%, 1%); } to { transform: scale(1.1) translate(0, 0); } }
@keyframes settle { from { transform: scale(.965); opacity: .4; } to { transform: none; opacity: 1; } }

.show-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 110px 0 26px; background: linear-gradient(to top, rgba(5,8,15,.78), rgba(5,8,15,.45) 55%, transparent); pointer-events: none; }
.show-bar a, .show-bar button { pointer-events: auto; }
.show-bar .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.show-caption { min-width: 0; }
.show-caption .eyebrow { color: var(--ochre); margin-bottom: .5em; }
.show-caption h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.show-caption p { margin: .3em 0 0; opacity: .85; font-size: .95rem; }
.show-caption a { color: #fff; }
.show-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.show-ctrl .icon-btn { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(0,0,0,.18); }
.show-ctrl .icon-btn:hover { border-color: #fff; background: rgba(0,0,0,.3); }
.progress { display: flex; gap: 6px; margin-top: 18px; }
.progress button { flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.progress button span { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.progress button span::after { content: ""; display: block; height: 100%; width: 0; background: #fff; }
.progress button.done span::after { width: 100%; }
.progress button.active span::after { animation: fill var(--dur, 7s) linear forwards; }
.show.paused .progress button.active span::after { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.icon-play { display: none; }
.show.paused .icon-play { display: block; }
.show.paused .icon-pause { display: none; }

.oh-pill { position: absolute; z-index: 4; right: max(20px, calc((100vw - var(--max)) / 2)); bottom: 128px; max-width: calc(100% - 40px); white-space: nowrap; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(255,255,255,.95); color: #172338; text-decoration: none; font-size: .9rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.oh-pill:hover { color: #172338; background: #fff; }
.oh-pill strong { font-weight: 800; }

@media (max-width: 760px) {
  /* Phone: show the whole painting (filling a tall screen would crop most of it) */
  .slide-art { inset: 80px 0 230px; }
  .slide-art img { object-fit: contain; }
  .show .stage-nav { top: calc(50% - 75px); bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; }
  .show .stage-nav.prev { left: 8px; }
  .show .stage-nav.next { right: 8px; }
  .show-bar { padding-top: 40px; }
  .show-bar .wrap:not(.progress) { flex-direction: column; align-items: stretch; gap: 14px; }
  .show-ctrl .btn { margin-left: auto; }
  .show-ctrl { justify-content: flex-start; }
  .show.has-oh .slide-art { top: 132px; }
  .oh-pill { left: 50%; right: auto; bottom: auto; transform: translateX(-50%); animation-name: float-in-center; top: 84px; font-size: .82rem; padding: 8px 14px 8px 12px; gap: 8px; white-space: normal; text-align: center; width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active { transition: none; }
  .slide.active .slide-bg, .slide.active .slide-art img { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 120px) 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 40px; }
.section-head h2, .section-head h1 { margin: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 80px); align-items: end; }
.intro .lead { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }
.swatches { display: flex; gap: 0; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 28px; max-width: 360px; }
.swatches i { flex: 1; }

/* ---------- Open house ---------- */
.open-house { position: relative; background: var(--indigo); color: #fff; overflow: hidden; isolation: isolate; }
.open-house::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(40% 60% at 92% 10%, color-mix(in srgb, var(--sunset) 55%, transparent), transparent 70%),
  radial-gradient(45% 55% at 5% 100%, color-mix(in srgb, var(--rose) 45%, transparent), transparent 70%),
  radial-gradient(35% 45% at 55% 120%, color-mix(in srgb, var(--cobalt) 70%, transparent), transparent 70%); }
.open-house .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .open-house .wrap { grid-template-columns: minmax(0, 1fr); } }
.open-house .eyebrow { color: var(--ochre); }
.open-house h2 { color: #fff; }
.open-house p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.open-house a:not(.btn) { color: #fff; }
.oh-list { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.oh-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.88); }
.oh-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .55em; border-radius: 50%; background: var(--ochre); }
.invite { position: relative; background: #fbf8f3; color: #172338; border-radius: 20px; padding: clamp(26px, 4vw, 40px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.invite::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 20px 20px 0 0; background: var(--palette); }
.invite h3 { font-size: 2.2rem; margin: .2em 0 .6em; color: #172338; }
.invite .eyebrow { color: #b9542b; margin: 0; }
.invite-rows { display: grid; gap: 16px; margin: 0 0 24px; }
.invite-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.invite-row .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #ece4d8; color: #2a5fa8; }
.invite-row .ico svg { width: 22px; height: 22px; }
.invite-row span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6b6f7c; }
.invite-row strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.invite-row a, .open-house .invite-row a { color: #172338; }
.invite-row a:hover, .open-house .invite-row a:hover { color: #2a5fa8; }
.invite .btn { background: #2a5fa8; border-color: #2a5fa8; color: #fff; }
.invite .btn:hover { background: #214c88; border-color: #214c88; color: #fff; }
.invite .btn.ghost { background: transparent; color: #172338; border-color: #d8cfc2; }
.invite .btn.ghost:hover { border-color: #172338; color: #172338; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
/* the filter hides cards and groups with [hidden]; .card sets display:block, so force it */
.card[hidden], .gallery-group[hidden] { display: none !important; }
.gallery-group + .gallery-group { margin-top: clamp(24px, 4vw, 48px); }
.group-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery { columns: 3 300px; column-gap: 32px; }
.card { break-inside: avoid; margin: 0 0 40px; display: block; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .art { position: relative; overflow: hidden; border-radius: 6px; background: var(--amb, var(--surface-2)); }
.card .art img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .art img { transform: scale(1.035); }
.card .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 2px 0; }
.card h3 { font-size: 1.55rem; margin: 0; line-height: 1.1; }
.card .spec { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.badge { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 800 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.available { color: var(--ok); }
.badge.sold { color: var(--sold); }

/* ---------- Painting page ---------- */
.stage { position: relative; background: #0b101b; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 72px) 0; }
.stage-bg { position: absolute; inset: -10%; z-index: -2; background-size: cover; background-position: center; filter: blur(50px) saturate(1.2) brightness(.42); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5,8,15,.3) 0%, color-mix(in srgb, var(--amb-dark) 75%, transparent) 65%, var(--amb-dark) 100%); }
.zoom { display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-appearance: none; appearance: none; max-width: min(100%, 920px); }
.zoom img { max-height: 74vh; width: auto; margin: 0 auto; outline: 10px solid rgba(255,255,255,.96); outline-offset: -1px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
@media (max-width: 600px) { .zoom img { outline-width: 6px; } }
.painting-info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .painting-info { grid-template-columns: minmax(0, 1fr); } }
.specs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; margin: 0 0 1.4em; font-size: .98rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.story p { font-size: 1.1rem; }
.buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 1.6em; font-size: .98rem; }
.buy p:last-child { margin-bottom: 0; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; }
.pager a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.pager a:hover { color: var(--accent); }
.pager img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.pager span { display: block; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.pager strong { font: 400 1.35rem/1.15 var(--display); }
.pager .next { justify-content: flex-end; text-align: right; }

dialog.lightbox {
  max-width: 96vw; max-height: 96vh; width: auto; padding: 0;
  border: 0; border-radius: 10px; background: var(--surface); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
dialog.lightbox::backdrop { background: rgba(6, 9, 16, .9); }
dialog.lightbox img { max-height: calc(96vh - 68px); width: auto; margin: 0 auto; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; }
.lightbox-bar strong { font: 400 1.5rem/1 var(--display); margin-right: auto; min-width: 0; }
.lightbox-bar form { margin: 0; }
.lb-count { font-size: .85rem; font-weight: 700; color: var(--muted); }
.lb-body { position: relative; }
dialog.lightbox { width: fit-content; overflow: hidden; }
dialog.lightbox .lb-body img { width: min(94vw, calc((94vh - 64px) * var(--ar, 1.4))); max-width: none; max-height: none; height: auto; }

/* Previous / next arrows on a painting and in the enlarged view */
.stage-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 999px;
  color: #fff; background: rgba(6, 9, 16, .38); border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-decoration: none;
  transition: background .2s, border-color .2s, transform .25s var(--ease-out, ease);
}
.stage-nav:hover { color: #fff; background: rgba(6, 9, 16, .6); border-color: #fff; }
.stage-nav svg { width: 22px; height: 22px; transition: transform .25s var(--ease-out, ease); }
.stage-nav.prev { left: max(14px, 2vw); }
.stage-nav.next { right: max(14px, 2vw); }
.stage-nav.prev:hover svg { transform: translateX(-3px); }
.stage-nav.next:hover svg { transform: translateX(3px); }
.lb-body .stage-nav.prev { left: 14px; }
.lb-body .stage-nav.next { right: 14px; }
.stage-count { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.75); }
@media (max-width: 700px) {
  .stage { padding-bottom: 84px; }
  .stage-nav { top: auto; bottom: 16px; transform: none; width: 46px; height: 46px; }
  .stage-count { bottom: 30px; }
  .lb-body .stage-nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 42px; height: 42px; }
  .lb-body .stage-nav.prev { left: 8px; }
  .lb-body .stage-nav.next { right: 8px; }
  .lb-count { display: none; }
}

/* Smooth change between painting pages (browsers that support it) */
@view-transition { navigation: auto; }
.stage .zoom img { view-transition-name: painting; }
::view-transition-old(painting), ::view-transition-new(painting) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Prose / about ---------- */
.prose p { font-size: 1.1rem; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin: 2.2em 0; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.quote { font: italic 400 clamp(1.9rem, 4.2vw, 3.3rem)/1.2 var(--display); text-align: center; max-width: 22em; margin: 0 auto; }
.quote cite { display: block; font: 800 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--warm); margin-top: 1.4em; }
.float-photo { float: right; width: min(42%, 340px); margin: .4em 0 1em 2.2em; }
@media (max-width: 640px) { .float-photo { float: none; width: 100%; margin: 0 0 1.4em; } }
.cv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .cv { grid-template-columns: minmax(0, 1fr); } }
.cv-block { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 18px; overflow: hidden; }
.cv-block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cv, var(--cobalt)); }
.cv-block:nth-child(2) { --cv: var(--sunset); }
.cv-block:nth-child(3) { --cv: var(--sage); }
.cv-block:nth-child(4) { --cv: var(--rose); }
.cv-block h3 { font-size: 1.8rem; margin-bottom: .5em; }
.cv-block ul { list-style: none; margin: 0; padding: 0; }
.cv-block li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .96rem; line-height: 1.5; }
.cv-block li span { font-weight: 800; font-size: .82rem; letter-spacing: .04em; color: var(--warm); padding-top: 2px; }
@media (max-width: 480px) { .cv-block li { grid-template-columns: minmax(0, 1fr); } }
.cv-press { margin-top: 28px; max-width: 48em; }
.awards { padding-left: 1.2em; }
.awards li { margin-bottom: .4em; }
.page-head { padding-bottom: 0; }

/* ---------- Story pages (About, Moods & Motions) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 110px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.page-hero .lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 30em; line-height: 1.6; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .32; }
:root[data-theme="dark"] .blobs { opacity: .38; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); }
.blobs i:nth-child(1) { width: 38vw; height: 38vw; left: -8vw; top: -12vw; background: var(--cobalt); }
.blobs i:nth-child(2) { width: 30vw; height: 30vw; right: -6vw; top: 8%; background: var(--sunset); }
.blobs i:nth-child(3) { width: 26vw; height: 26vw; left: 30%; bottom: -14vw; background: var(--rose); }

.collage { position: relative; padding: 0 0 12% 10%; }
.collage .painting-frame { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.collage .painting-frame img { width: 100%; }
.polaroid { position: absolute; left: 0; bottom: 0; width: 38%; background: #fbf8f3; padding: 8px 8px 30px; border-radius: 2px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(-5deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: italic 400 1.05rem/1 var(--display); color: #3a3a44; margin: 0; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(3deg); background: color-mix(in srgb, var(--ochre) 55%, transparent); }

.chapter .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.chapter.flip .wrap > :first-child { order: 2; }
@media (max-width: 900px) { .chapter .wrap { grid-template-columns: minmax(0, 1fr); } .chapter.flip .wrap > :first-child { order: 0; } }
.chapter h2 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
.chapter p { font-size: 1.12rem; }
.chapter .media img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.chapter .media.tall img { max-height: 680px; width: auto; margin-inline: auto; }
.callout { position: relative; margin: 1.8em 0 0; padding: 20px 22px 18px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--sunset)); transform-origin: top; }
.callout .label { display: block; font: 800 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--warm)); margin-bottom: 6px; }
.callout p { margin: 0; font-size: 1rem; }
.callout + .callout { margin-top: 14px; }
.callout.blue { --c: var(--cobalt); } :root[data-theme="dark"] .callout.blue { --c: var(--sky); }
.callout.green { --c: var(--sage); }
.callout.rose { --c: var(--rose); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 28px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stat strong { display: block; font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--display); background: var(--palette-loop, var(--palette)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(2) strong { background-position: 33% 0; } .stat:nth-child(3) strong { background-position: 66% 0; } .stat:nth-child(4) strong { background-position: 100% 0; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }

.pull { font: italic 400 clamp(2rem, 4.6vw, 3.6rem)/1.18 var(--display); text-align: center; max-width: 20em; margin: 0 auto; position: relative; }
.pull::before { content: "\201C"; display: block; font: 400 6rem/0.6 var(--display); color: var(--sunset); margin-bottom: .1em; }
.pull cite { display: block; font: 800 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--warm); margin-top: 1.4em; }
.pull .w { display: inline-block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.chips li b { color: var(--warm); font-weight: 800; }

.shadow-art { position: relative; overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); isolation: isolate; }
.shadow-art img { width: 100%; }
.shadow-art::after { content: ""; position: absolute; inset: -30% -60%; pointer-events: none; background: radial-gradient(22% 30% at 25% 45%, rgba(10,14,30,.45), transparent 70%), radial-gradient(18% 26% at 70% 60%, rgba(10,14,30,.38), transparent 70%), radial-gradient(14% 20% at 50% 20%, rgba(10,14,30,.3), transparent 70%); animation: cloud-pass 16s linear infinite; }
@keyframes cloud-pass { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.feature { text-align: center; }
.feature .narrow p { font-size: 1.15rem; }
.feature .shadow-art { max-width: 820px; margin: 36px auto 0; }
.feature figcaption { margin-top: 14px; }

.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .seasons { grid-template-columns: minmax(0, 1fr); } }
.season { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); transition: transform .4s var(--ease-out, ease), box-shadow .4s; }
.season:hover { color: var(--ink); transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 44px -20px var(--c); }
.season .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.season .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out, ease); }
.season:hover .pic img { transform: scale(1.06); }
.season .txt { padding: 16px 18px 20px; }
.season h3 { margin: 0 0 4px; font-size: 1.8rem; color: var(--c); }
.season p { margin: 0; font-size: .95rem; color: var(--muted); }
.season .fav { position: absolute; top: 12px; right: 12px; background: #fff; color: #9a3d1d; font: 800 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.season.winter { --c: var(--cobalt); } :root[data-theme="dark"] .season.winter { --c: var(--sky); }
.season.spring { --c: var(--sage); }
.season.summer { --c: var(--rose); }
.season.autumn { --c: var(--sunset); }
.press { display: block; }
.press img { width: 100%; max-width: 440px; margin-inline: auto; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(1.5deg); transition: transform .5s var(--ease-out, ease); }
.press:hover img { transform: rotate(0) scale(1.02); }

/* ---------- Contact ---------- */
/* Okanagan sunset photo behind the page, blurred and softened so the form stays easy to read */
.photo-bg { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 120px); }
/* The photo sits behind "frosted glass": only lightly blurred, with a fine grain, a pale haze and a glass sheen */
.photo-bg-img { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center 40%; filter: saturate(1.08); } /* no blur (Jacob, 4 Dec) */
.photo-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(255,255,255,.12) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .55; mix-blend-mode: soft-light; }
.photo-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 48%, transparent)); }
.photo-bg h1, .photo-bg .eyebrow, .photo-bg .muted { text-shadow: 0 1px 2px color-mix(in srgb, var(--bg) 70%, transparent), 0 0 22px color-mix(in srgb, var(--bg) 90%, transparent); }
.photo-bg .muted { color: var(--ink); font-weight: 600; }
.photo-bg .eyebrow { color: var(--ink); }
.photo-bg .form-grid, .photo-bg .info-card {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, #fff 45%, transparent); box-shadow: 0 10px 40px rgba(10, 14, 30, .18), inset 0 1px 0 rgba(255,255,255,.35); }
:root[data-theme="dark"] .photo-bg .form-grid, :root[data-theme="dark"] .photo-bg .info-card { border-color: rgba(255,255,255,.14); box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.photo-bg .form-grid { border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.photo-bg input, .photo-bg textarea { background: color-mix(in srgb, var(--surface) 88%, transparent); }
/* Light theme: no tint over the photo (Jacob, 4 Dec); the text keeps its soft cream halo */
:root[data-theme="light"] .photo-bg::after { background: none; }
/* Light theme: white panels read as solid at 72%, so let more of the photo through (closer to the dark theme's look) */
:root[data-theme="light"] .photo-bg .form-grid, :root[data-theme="light"] .photo-bg .info-card { background: color-mix(in srgb, var(--surface) 46%, transparent); }
:root[data-theme="light"] .photo-bg input, :root[data-theme="light"] .photo-bg textarea { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-grid form { position: relative; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--sold); }
.info-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; overflow: hidden; }
.info-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--palette); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list a { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; }
.cta p { max-width: 36em; margin-inline: auto; color: var(--muted); }
.cta .btn-row { justify-content: center; }
.site-footer { background: var(--indigo); color: rgba(255,255,255,.72); font-size: .93rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--palette); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 56px 0 52px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; }
.foot-links .nav-icon { width: 15px; height: 15px; opacity: .7; transition: opacity .25s, transform .3s var(--ease-out, ease); }
.foot-links a:hover .nav-icon { opacity: 1; transform: translateY(-1px); color: var(--ochre); }
.foot-name { font: 400 2.2rem/1 var(--display); color: #fff; margin-bottom: 12px; }
.foot-name em { font-style: italic; }

/* =========================================================
   Micro-animations, drawn from her work:
   brush-stroke reveals, painted underlines, drifting cloud shadows,
   a flowing palette, paint-dab swatches. All off for reduced motion.
   ========================================================= */
:root { --palette-loop: linear-gradient(90deg, var(--cobalt), var(--sky), var(--sage), var(--ochre), var(--sunset), var(--cadmium), var(--rose), var(--cobalt)); --ease-brush: cubic-bezier(.65, 0, .35, 1); --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Scroll reveal: fade + rise (selectors mirrored in site.js) */
.js :is(.section-head, .intro > *, .split > *, .card, .invite, .oh-list li, .quote, .cta h2, .cta p, .cta .btn-row, .story, .buy, .info-card, .form-grid, .prose > p, .prose > h2, .prose > ul, .photo-row, .painting-info > div > h1, .specs, .open-house h1, .open-house h2, .open-house .wrap > div > p, .pager, .cv-block, .cv-press) {
  transition: opacity .9s ease var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s);
}
.js :is(.section-head, .intro > *, .split > *, .card, .invite, .oh-list li, .quote, .cta h2, .cta p, .cta .btn-row, .story, .buy, .info-card, .form-grid, .prose > p, .prose > h2, .prose > ul, .photo-row, .painting-info > div > h1, .specs, .open-house h1, .open-house h2, .open-house .wrap > div > p, .pager, .cv-block, .cv-press):not(.in) {
  opacity: 0; transform: translateY(26px);
}

/* Brush-stroke wipe on paintings and photos */
.js .card .art, .js .split > figure .photo, .js .photo-row .photo { transition: clip-path 1.4s var(--ease-brush) calc(var(--d, 0s) + .1s), box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.js .card:not(.in) .art, .js .split > figure:not(.in) .photo, .js .photo-row:not(.in) .photo { clip-path: polygon(0 0, 0 0, -12% 100%, 0 100%); }
.js .card.in .art, .js .split > figure.in .photo, .js .photo-row.in .photo { clip-path: polygon(0 0, 112% 0, 100% 100%, 0 100%); }

/* Painted underline under italic heading words */
h1 em, h2 em { position: relative; isolation: isolate; white-space: nowrap; }
h1 em::after, h2 em::after {
  content: ""; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: .04em; height: .26em;
  background: var(--palette-loop); background-size: 300% 100%; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 11C30 4 70 7 100 7s70-4 98 2l-1 6c-37 2-77-2-107 1S25 18 3 16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 11C30 4 70 7 100 7s70-4 98 2l-1 6c-37 2-77-2-107 1S25 18 3 16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left center; transition: transform 1.2s var(--ease-brush) calc(var(--d, 0s) + .45s);
}
.js h1:not(.in) em::after, .js h2:not(.in) em::after, .js :not(.in) > h1 em::after, .js :not(.in) > h2 em::after { transform: scaleX(0); }
.js .in em::after, .js .in > h1 em::after, .js .in > h2 em::after { transform: scaleX(1); }
.open-house h1 em::after, .open-house h2 em::after { opacity: .8; }
@media (max-width: 520px) { h1 em, h2 em { white-space: normal; } }

/* Flowing palette strips */
.announce::after, .site-footer::before, .invite::before, .info-card::before, .palette-rule { background: var(--palette-loop); background-size: 300% 100%; animation: flow 18s linear infinite; }
@keyframes flow { to { background-position: 300% 0; } }

/* Paint-dab swatches */
.swatches i { transform-origin: bottom; transition: transform .3s var(--ease-out); }
.js .intro > div:not(.in) .swatches i { transform: scaleY(0); }
.js .intro > div.in .swatches i { animation: dab .7s var(--ease-out) backwards; animation-delay: calc(.42s + var(--k, 0) * 80ms); }
.swatches:hover i { animation: wobble .9s ease-in-out; animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes dab { from { transform: scaleY(0) scaleX(.6); } 60% { transform: scaleY(1.25); } to { transform: none; } }
@keyframes wobble { 0%, 100% { transform: none; } 30% { transform: scaleY(1.6); } 60% { transform: scaleY(.8); } }

/* Drifting colour clouds behind the open house */
.open-house::before { animation: clouds 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes clouds { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3%, 2%) scale(1.08); } 100% { transform: translate(2%, -2%) scale(1.04); } }
.dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,120,62,.55); } 70% { box-shadow: 0 0 0 10px rgba(217,120,62,0); } 100% { box-shadow: 0 0 0 0 rgba(217,120,62,0); } }
.oh-pill { animation: float-in 1s var(--ease-out) .8s backwards; }
@media (max-width: 760px) { .oh-pill { animation-name: float-in-center; } }
.oh-pill svg { transition: transform .25s var(--ease-out); }
.oh-pill:hover svg { transform: translateX(4px); }
@keyframes float-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes float-in-center { from { opacity: 0; transform: translate(-50%, -12px); } }

/* Cloud shadows passing over the painting stage ("the dance of motion") */
.stage::before { content: ""; position: absolute; z-index: -1; inset: -20% -40%; pointer-events: none;
  background: radial-gradient(30% 40% at 30% 50%, rgba(0,0,0,.35), transparent 70%), radial-gradient(25% 35% at 75% 40%, rgba(0,0,0,.25), transparent 70%);
  animation: shadows 26s linear infinite alternate; }
@keyframes shadows { from { transform: translateX(-18%); } to { transform: translateX(18%); } }
.slide-tint::after { content: ""; position: absolute; inset: -20% -40%;
  background: radial-gradient(28% 38% at 30% 60%, rgba(0,0,0,.28), transparent 70%), radial-gradient(22% 30% at 80% 30%, rgba(255,255,255,.06), transparent 70%);
  animation: shadows 30s linear infinite alternate; }

/* Slideshow caption change */
.show-caption.swap > * { animation: rise .9s var(--ease-out) backwards; }
.show-caption.swap > :nth-child(2) { animation-delay: .08s; }
.show-caption.swap > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Cards: lift, glow in the painting's own colour */
.card:hover .art { transform: translateY(-4px); box-shadow: 0 22px 44px -18px var(--acc, var(--accent)); }
.card h3 span { background: linear-gradient(var(--acc, var(--accent)), var(--acc, var(--accent))) left bottom / 0 2px no-repeat; transition: background-size .5s var(--ease-brush); }
.card:hover h3 span { background-size: 100% 2px; }
.badge.available::before { animation: pulse-ok 2.6s ease-out infinite; }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* Buttons and links */
.btn { transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.ghost:hover, .btn.light:hover, .btn.outline-light:hover { box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); }
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(2px) rotate(-6deg); }
.nav a:not(.nav-cta) { background-image: var(--palette-loop); background-size: 0 2px; background-position: 14px calc(100% - 6px); background-repeat: no-repeat; transition: background-size .45s var(--ease-brush), background-color .2s; }
.nav a:not(.nav-cta):hover { background-size: calc(100% - 28px) 2px; }
.nav a.nav-cta { position: relative; overflow: hidden; isolation: isolate; }
.nav a.nav-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 5s ease-in-out 2s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.prose a:not(.btn), .story a:not(.btn), .buy a:not(.btn) { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .4s var(--ease-brush); }
.prose a:not(.btn):hover, .story a:not(.btn):hover, .buy a:not(.btn):hover { background-image: linear-gradient(var(--sunset), var(--sunset)); background-size: 100% 2px; }
[data-theme-toggle] svg { transition: transform .6s var(--ease-out); }
[data-theme-toggle]:hover svg { transform: rotate(-25deg); }
.brand-name em { background: var(--palette-loop) left bottom / 0 2px no-repeat; transition: background-size .6s var(--ease-brush); }
.brand:hover .brand-name em { background-size: 100% 2px; }
.pager img { transition: transform .4s var(--ease-out); }
.pager a:hover img { transform: scale(1.08) rotate(-2deg); }
.zoom img { transition: transform .6s var(--ease-out); }
.zoom:hover img { transform: scale(1.012); }
.stage .zoom img { animation: settle 1.4s var(--ease-out) both; }
dialog.lightbox[open] { animation: pop .45s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* Story pages */
.js .rv { transition: opacity .9s ease var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js .rv:not(.in) { opacity: 0; transform: translateY(28px); }
.js .rv.from-left:not(.in) { transform: translateX(-34px); }
.js .rv.from-right:not(.in) { transform: translateX(34px); }
/* paintings and photos are "painted on" with a slanted brush wipe */
.js .rv.wipe img { transition: clip-path 1.5s var(--ease-brush) calc(var(--d, 0s) + .15s); }
.js .rv.wipe:not(.in) img { clip-path: polygon(0 0, 0 0, -14% 100%, 0 100%); }
.js .rv.wipe.in img { clip-path: polygon(0 0, 114% 0, 100% 100%, 0 100%); }
/* callout: colour bar paints down, then the box settles */
.js .callout::before { transition: transform .9s var(--ease-brush) calc(var(--d, 0s) + .35s); }
.js .callout:not(.in)::before { transform: scaleY(0); }
/* polaroid drops onto the painting */
.js .collage .polaroid { transition: transform 1.1s cubic-bezier(.2,1.3,.4,1) .7s, opacity .6s ease .7s; }
.js .collage:not(.in) .polaroid { opacity: 0; transform: translateY(-40px) rotate(-16deg); }
/* drifting colour blobs */
.blobs i:nth-child(1) { animation: blob-a 24s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { animation: blob-b 28s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { animation: blob-a 32s ease-in-out infinite alternate-reverse; }
@keyframes blob-a { to { transform: translate(8vw, 4vw) scale(1.15); } }
@keyframes blob-b { to { transform: translate(-6vw, 6vw) scale(.9); } }
/* pull quotes appear word by word */
.js .pull:not(.in) .w { opacity: 0; transform: translateY(.4em) rotate(2deg); filter: blur(4px); }
.js .pull .w { transition: opacity .6s ease, transform .7s var(--ease-out), filter .6s ease; transition-delay: calc(var(--i) * 55ms + .2s); }
/* stats: numbers rise with a colour sweep */
.stat strong { transition: background-position 2.4s var(--ease-out); }
.js .stat.in strong { background-position: 100% 0; }
.chips li { transition: transform .3s var(--ease-out), border-color .3s; }
.chips li:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--sunset); }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .pull .w, .js .collage .polaroid { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .rv.wipe img { clip-path: none !important; }
  .js .callout::before { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .card .art, .js .photo { clip-path: none !important; }
  h1 em::after, h2 em::after { transform: scaleX(1) !important; }
  .swatches i { transform: none !important; }
}

/* Open House button when you're on the Open House page: keep it a rounded orange pill with a white house,
   marked as current by a thin white ring (the plain-link "current" underline/orange icon don't suit it) */
.nav a.nav-cta[aria-current="page"] { border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); padding-left: 14px; }
.nav a.nav-cta[aria-current="page"] .nav-icon { color: #fff; opacity: 1; }

/* Contact page fits above the fold (Jacob, 4 Dec): less space above the heading, smaller heading,
   tighter form, shorter message box. Scoped to the photo section so other pages are unchanged. */
section.photo-bg { padding-top: clamp(20px, 3.2vh, 36px); padding-bottom: clamp(24px, 4vh, 48px); min-height: 0; }
.photo-bg .eyebrow { margin-bottom: .4em; }
.photo-bg h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); margin-bottom: .2em; }
.photo-bg .contact-intro { margin: 0; }
.photo-bg .contact-grid { margin-top: clamp(16px, 2.4vh, 24px) !important; }
.photo-bg .form-grid { gap: 12px 18px; padding: clamp(18px, 2.4vw, 24px); }
.photo-bg label { margin-bottom: 4px; }
.photo-bg textarea { min-height: 104px; }
.photo-bg .info-card { padding: 24px 24px 20px; }
.photo-bg .info-list li { padding: 11px 0; }
/* heading on the left, intro sentence beside it on wider screens (saves a row); stacked on phones */
.contact-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px clamp(28px, 5vw, 64px); align-items: end; }
.contact-head h1 { margin-bottom: 0; }
.contact-head .contact-intro { max-width: 34em; padding-bottom: .5em; }
@media (max-width: 860px) { .contact-head { grid-template-columns: minmax(0, 1fr); } .contact-head .contact-intro { padding-bottom: 0; } }
/* short laptop windows (about 768 px screens): a little tighter still so the whole form stays above the fold */
@media (min-width: 861px) and (max-height: 720px) {
  section.photo-bg { padding-top: 14px; padding-bottom: 18px; }
  .photo-bg h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
  .photo-bg .contact-grid { margin-top: 12px !important; }
  .photo-bg .form-grid { gap: 8px 16px; padding: 16px 20px; }
  .photo-bg textarea { min-height: 84px; }
}

/* Open House page: a cue at the bottom of the dark section so people know there is more below */
.open-house .scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,.85); text-decoration: none; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.open-house .scroll-cue svg { width: 22px; height: 22px; animation: cue-bob 1.8s ease-in-out infinite; }
.open-house .scroll-cue:hover { color: #fff; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
section.after-cue { padding-top: clamp(36px, 5vw, 64px); scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { .open-house .scroll-cue svg { animation: none; } }
@media (max-width: 900px) { .open-house .scroll-cue { position: static; transform: none; display: flex; width: max-content; margin: 32px auto 0; } }
/* Same cue on the About and The Studio openings */
.page-hero .scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.page-hero .scroll-cue svg { width: 22px; height: 22px; animation: cue-bob 1.8s ease-in-out infinite; }
.page-hero .scroll-cue:hover { color: var(--ink); }
.page-hero + .chapter { scroll-margin-top: 80px; }
@media (max-width: 900px) { .page-hero .scroll-cue { position: static; transform: none; display: flex; width: max-content; margin: 32px auto 0; } }
@media (prefers-reduced-motion: reduce) { .page-hero .scroll-cue svg { animation: none; } }
