/* Glow Arts — "lights on, lights off".
   The palette is taken from the studio's own photograph of a framed portrait:
   the pale gallery wall and walnut frame by day, the dark room and green glow by night.
   This file loads last and redefines the tokens used by styles.css and studio.css. */

:root {
  --color-bg: #e9eae6;
  --color-bg-alt: #dfe1dc;
  --color-surface: #f7f8f5;
  --color-ink: #141c1a;
  --color-ink-soft: #3b4541;
  --color-muted: #5a645f;
  --color-line: #cbd0c9;
  --color-gold: #6e4226;        /* walnut frame: the daytime accent */
  --color-gold-soft: #a8815f;
  --color-dark: #0e1716;
  --color-dark-text: #eef3ef;
  --color-dark-muted: #a7b3ad;
  --color-glow: #5fe6a4;
  --color-frame: #3a2317;
  --color-placeholder: #6b736e;

  --font-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-h1: clamp(2.3rem, 1.5rem + 3.1vw, 4rem);
  --text-h2: clamp(2rem, 1.4rem + 2.5vw, 3.4rem);
  --lights-duration: 700ms;
  color-scheme: light;
}

/* Lights off: the whole gallery goes dark and the accent becomes the glow. */
:root[data-lights="off"] {
  --color-bg: #0a1113;
  --color-bg-alt: #0f191b;
  --color-surface: #142124;
  --color-ink: #eaf2ee;
  --color-ink-soft: #bccac4;
  --color-muted: #8fa099;
  --color-line: #223236;
  --color-gold: #5fe6a4;
  --color-gold-soft: #2f9d6e;
  --color-dark: #05090a;
  --color-dark-text: #eaf2ee;
  --color-dark-muted: #9fb0a9;
  --color-frame: #1b140f;
  --color-placeholder: #8fa099;
  color-scheme: dark;
}

html { scrollbar-color: var(--color-gold) var(--color-bg); }
::selection { background: var(--color-gold); color: var(--color-bg); }

/* Only animate colours while the switch is being thrown, never on page load. */
.lights-changing, .lights-changing *, .lights-changing *::before, .lights-changing *::after {
  transition: background-color var(--lights-duration) var(--ease), color var(--lights-duration) var(--ease),
              border-color var(--lights-duration) var(--ease), box-shadow var(--lights-duration) var(--ease) !important;
}

/* A faint plaster grain on the wall. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-lights="off"] body::before { opacity: .09; filter: invert(1); }
body > * { position: relative; z-index: 1; }
body > .site-header { z-index: 50; }
body > .action-bar { position: fixed; z-index: 60; }
body > .skip-link { position: absolute; z-index: 100; }

/* ---------- Type ---------- */
h1, h2, h3 { letter-spacing: -.012em; line-height: 1.08; }
h3 { letter-spacing: -.005em; line-height: 1.2; }
h1 em, h2 em { font-family: inherit; font-style: normal; letter-spacing: inherit; color: var(--color-gold); }
:root[data-lights="off"] h1 em, :root[data-lights="off"] h2 em,
.section-dark h2 em { text-shadow: 0 0 .5em color-mix(in srgb, var(--color-glow) 55%, transparent); }
.brand-name { letter-spacing: -.01em; font-size: 1.5rem; }
.tabpanel h3, .medium-panel h3, .article-body h2, .medium-head h2 { letter-spacing: -.01em; }
.why-stats dd { letter-spacing: -.01em; }
.quote blockquote p { letter-spacing: 0; line-height: 1.4; }
.micro, .label { letter-spacing: .14em; }
.medium-tabs [role="tab"] { letter-spacing: 0; }
.form ::placeholder { color: var(--color-placeholder); }

/* ---------- Header and the light switch ---------- */
.site-header { background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: blur(8px); }
.header-actions { gap: clamp(.6rem, 1.5vw, 1.5rem); }
.lights-switch {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .2rem;
  background: none; border: 0; cursor: pointer; color: var(--color-ink);
  font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap;
}
.no-js .lights-switch, .no-js .lights-cue { display: none; }
.lights-switch-track {
  position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px;
  background: var(--color-bg-alt); border: 1px solid var(--color-ink);
}
.lights-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-ink); transition: transform 320ms var(--ease), background-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
:root[data-lights="off"] .lights-switch-knob {
  transform: translateX(18px); background: var(--color-glow);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--color-glow) 70%, transparent);
}
.lights-switch:hover .lights-switch-track { border-color: var(--color-gold); }
@media (max-width: 520px) { .lights-switch-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ---------- Buttons ---------- */
.btn-dark { background: var(--color-ink); color: var(--color-bg); }
.btn-dark:hover { background: var(--color-gold); color: var(--color-surface); }
:root[data-lights="off"] .btn-dark { background: var(--color-glow); color: #06100c; }
:root[data-lights="off"] .btn-dark:hover { background: #8ff2c0; color: #06100c; }
:root[data-lights="off"] .action-bar a:first-child { background: var(--color-glow); color: #06100c; }
.action-bar a:first-child { background: var(--color-ink); color: var(--color-bg); }
.btn:active { transform: translateY(1px); }

/* ---------- Home hero: the portrait on the wall ---------- */
.lights-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-line); padding-block: clamp(2rem, 4vw, 4rem) 0; }
.lights-hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.lights-hero-copy { padding-bottom: clamp(1.5rem, 4vw, 4rem); min-width: 0; }
.lights-hero h1 { margin-bottom: 1.4rem; }
.lights-hero .studio-hero-description { max-width: 40ch; }
.lights-stage { position: relative; margin: 0; min-width: 0; }
.lights-stage-pair {
  position: relative; aspect-ratio: 1600 / 893; background: var(--color-bg);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.lights-stage-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 900ms var(--ease); }
.lights-stage-pair .off { opacity: 0; }
:root[data-lights="off"] .lights-stage-pair .off { opacity: 1; }
:root[data-lights="off"] .lights-stage-pair .on { opacity: 0; }

/* Museum wall label beside the picture */
.wall-label {
  display: grid; gap: .3rem; max-width: 19rem; padding: .85rem 1rem; margin: 0;
  background: var(--color-surface); border: 1px solid var(--color-line);
  box-shadow: 0 10px 24px -18px #000a; font-size: .8rem; line-height: 1.45; color: var(--color-ink-soft);
}
.wall-label strong { font: 400 1.02rem/1.2 var(--font-display); color: var(--color-ink); }
.wall-label .lit { color: var(--color-gold); font-weight: 600; }
.lights-stage-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; justify-content: space-between; padding: 0 0 clamp(1.5rem, 3vw, 2.5rem); margin-top: -.5rem; position: relative; }
.lights-cue { flex: none; }
.lights-cue .when-off, :root[data-lights="off"] .lights-cue .when-on,
.wall-label .when-off, :root[data-lights="off"] .wall-label .when-on { display: none; }
:root[data-lights="off"] .lights-cue .when-off, :root[data-lights="off"] .wall-label .when-off { display: inline; }

@media (min-width: 900px) {
  .lights-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .lights-stage { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2)); }
  .lights-stage-pair { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .lights-stage-foot { padding-left: 14%; padding-right: max(var(--gutter), (100vw - var(--max)) / 2); }
}
@media (max-width: 899px) {
  .lights-stage { margin-inline: calc(-1 * var(--gutter)); }
  .lights-stage-foot { padding-inline: var(--gutter); }
  .lights-hero-copy { padding-bottom: clamp(1.5rem, 5vw, 2.5rem); }
  .lights-stage { order: -1; }
  .lights-hero { padding-top: 0; }
  .lights-stage-foot { padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lights-hero-copy > * { animation: rise 700ms var(--ease) both; }
  .lights-hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .lights-hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .lights-hero-copy > :nth-child(n+4) { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .lights-stage-pair img { transition: none; } }

/* The glow page's own before/after follows the house lights too. */
:root[data-lights="off"] .glow-compare .off { opacity: 1; }

/* ---------- Dark bands: always the room with the lights off ---------- */
.section-dark { --color-gold: var(--color-glow); --color-gold-soft: #4fc08f; --color-line: #24353a; background: #0a1113; }
:root[data-lights="off"] .section-dark { background: #05090a; }
.section-dark .link-arrow, .section-dark .btn-line { color: var(--color-dark-text); border-color: var(--color-dark-muted); }
.glow-invitation { border-top-color: #24353a; }

/* ---------- Framed work ---------- */
.mat { background: var(--color-bg-alt); }
.mat-inner { background: var(--color-surface); border: 3px solid var(--color-frame); box-shadow: 0 22px 36px -26px #000c; }
.work:hover .mat-inner { box-shadow: 0 30px 44px -26px #000d; }
.studio-feature-frame { background: var(--color-frame); }
.purpose-link { border-top: 2px solid var(--color-ink); transition: border-color var(--duration) var(--ease); }
.purpose-link:hover { border-top-color: var(--color-gold); }
.quote { border-color: var(--color-line); border-left: 3px solid var(--color-gold); }
.hero-media img, .tab-media img { box-shadow: 0 30px 50px -40px #000b; }
.award-cert img, .archive-grid img { border-color: var(--color-line); }
:root[data-lights="off"] .map { filter: invert(.92) hue-rotate(180deg) grayscale(.6) contrast(.9); }
:root[data-lights="off"] .artwork-dialog::backdrop { background: #000d; }
.related-links a::after { color: var(--color-gold); }
.footer-top .tagline { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-ink); }

.lights-hero h1 { hyphens: none; overflow-wrap: normal; }
.studio-hero h1, .lights-hero h1 { font-size: var(--text-h1); }

/* =====================================================================
   Motion. Everything here is switched on by the "motion" class, which the
   inline head script adds only when the visitor has not asked for reduced
   motion. Without it the page is complete and still.
   ===================================================================== */
@view-transition { navigation: auto; }

/* Scroll progress along the bottom edge of the header */
@supports (animation-timeline: scroll()) {
  .motion .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-gold);
    transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root);
  }
  :root[data-lights="off"].motion .site-header::after { background: var(--color-glow); box-shadow: 0 0 8px var(--color-glow); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Reveal on scroll */
.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease) var(--d, 0ms), transform 900ms var(--ease) var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="unveil"] { transform: none; }
.motion [data-reveal="unveil"] .mat-inner, .motion .hero-media[data-reveal] img, .motion .tab-media[data-reveal] img {
  clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease) var(--d, 0ms), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.motion [data-reveal="unveil"].is-in .mat-inner, .motion .hero-media[data-reveal].is-in img, .motion .tab-media[data-reveal].is-in img { clip-path: inset(0); }

/* Headline: words rise out of their own line */
.motion .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.motion .split-words .w > span { display: inline-block; transform: translateY(110%); animation: word-up 900ms var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word-up { to { transform: none; } }
.motion .lights-hero-copy > h1 { animation: none; }

/* The picture is hung: it settles onto the wall */
.motion .lights-stage-pair { animation: hang 1400ms var(--ease) both 200ms; transform-origin: 50% 0; }
@keyframes hang { from { opacity: 0; transform: translateY(-18px) rotate(-1.2deg) scale(1.03); } 60% { transform: translateY(0) rotate(.35deg) scale(1); } to { opacity: 1; transform: none; } }
.motion .wall-label { animation: rise 700ms var(--ease) both 900ms; }
.motion .lights-cue { animation: rise 700ms var(--ease) both 1050ms; }

/* Lights off: the painting breathes, and the button invites a press */
.lights-stage-pair::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side at 50% 50%, color-mix(in srgb, var(--color-glow) 45%, transparent), transparent 70%); mix-blend-mode: screen;
}
:root[data-lights="off"].motion .lights-stage-pair::after { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
.motion .lights-cue { position: relative; }
.motion .lights-cue::after { content: ""; position: absolute; inset: 0; border: 1px solid currentColor; opacity: 0; animation: ping 2.8s var(--ease) infinite 2.2s; pointer-events: none; }
@keyframes ping { 0% { opacity: .5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.5); } }
:root[data-lights="off"].motion h1 em, :root[data-lights="off"].motion h2 em { animation: flicker 6s linear infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 47% { opacity: .72; } 48% { opacity: 1; } 71% { opacity: .85; } 72% { opacity: 1; } }

/* The switch thrown: light spreads out from the button */
.lights-wipe::view-transition-old(root) { animation: none; z-index: 1; }
.lights-wipe::view-transition-new(root) { animation: wipe 900ms cubic-bezier(.3, 0, .1, 1) both; z-index: 2; }
@keyframes wipe { from { clip-path: circle(0 at var(--wipe-x, 50%) var(--wipe-y, 0)); } to { clip-path: circle(150vmax at var(--wipe-x, 50%) var(--wipe-y, 0)); } }

/* Drifting glow specks */
.glow-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.section-dark { position: relative; overflow: hidden; }
.section-dark > .glow-field { z-index: 0; }
.section-dark > .container { position: relative; z-index: 1; }
.lights-stage-foot { z-index: 3; }

/* Ticker of what the studio makes */
.ticker { overflow: hidden; border-bottom: 1px solid var(--color-line); padding-block: clamp(.9rem, 2vw, 1.5rem); background: var(--color-bg); }
.ticker-track { display: flex; width: max-content; gap: 0; }
.ticker-track > div { display: flex; flex: none; align-items: center; }
.ticker span { font: 400 clamp(1.5rem, 1rem + 2.4vw, 3rem)/1 var(--font-display); color: var(--color-ink); white-space: nowrap; padding-inline: clamp(1rem, 2vw, 2rem); }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--color-gold); }
.ticker i { width: .5em; height: .5em; flex: none; background: var(--color-gold); transform: rotate(45deg); font-size: clamp(1rem, 2vw, 1.6rem); }
:root[data-lights="off"] .ticker i { box-shadow: 0 0 10px var(--color-glow); }
.motion .ticker-track { animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
:root:not(.motion) .ticker-track > div + div { display: none; }
:root:not(.motion) .ticker { overflow-x: auto; }

/* Pictures drift slightly as they pass */
@supports (animation-timeline: view()) {
  .motion .hero-media, .motion .tab-media { overflow: hidden; }
  .motion .hero-media.is-in img, .motion .tab-media.is-in img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
}

/* Small things */
.motion .link-arrow { background: linear-gradient(var(--color-gold), var(--color-gold)) 0 100% / 0 1px no-repeat; transition: background-size 500ms var(--ease); }
.motion .link-arrow:hover { background-size: 100% 1px; }
.motion .faq details[open] p { animation: rise 500ms var(--ease) both; }
.motion .steps li { position: relative; }
.motion .steps li[data-reveal]::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--color-glow); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1200ms var(--ease) calc(var(--d, 0ms) + 200ms); opacity: .6; }
.motion .steps li[data-reveal].is-in::after { transform: scaleX(1); }
.motion .brand-mark { transition: transform 700ms var(--ease); }
.motion .brand:hover .brand-mark { transform: rotate(90deg); }

/* =====================================================================
   Gallery wall. The homepage opens on a hung wall of framed work.
   ===================================================================== */
:root {
  --frame-gold: linear-gradient(135deg, #6f5118 0%, #e6c873 18%, #9a7426 38%, #f3de96 55%, #8a6520 74%, #d9b85c 90%, #6f5118 100%);
  --frame-walnut: linear-gradient(135deg, #2c170c 0%, #6b3f24 22%, #3a2114 45%, #7a4a2b 62%, #2c170c 100%);
  --stroke-day: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 15c38-7 77-10 118-9 44 1 84 6 128 3 17-1 33-3 50-5-1 4-3 8-6 10-40 5-82 4-123 2-43-2-88-4-130 3-13 2-25 4-37 5-2-3-2-6 0-9z' fill='%23d08a1e'/%3E%3C/svg%3E");
  --stroke-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 15c38-7 77-10 118-9 44 1 84 6 128 3 17-1 33-3 50-5-1 4-3 8-6 10-40 5-82 4-123 2-43-2-88-4-130 3-13 2-25 4-37 5-2-3-2-6 0-9z' fill='%235fe6a4'/%3E%3C/svg%3E");
}

/* A painted brush stroke under emphasised words */
h1 em, h2 em {
  background: var(--stroke-day) no-repeat 0 96% / 100% .3em; padding-bottom: .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
:root[data-lights="off"] h1 em, :root[data-lights="off"] h2 em, .section-dark h2 em { background-image: var(--stroke-night); }
.motion h1 em, .motion h2[data-reveal] em, .motion [data-reveal] h2 em { background-size: 0 .3em; transition: background-size 1100ms var(--ease) 700ms; }
.motion h1 em { animation: stroke-in 1100ms var(--ease) both 1100ms; }
.motion .is-in h2 em, .motion h2.is-in em { background-size: 100% .3em; }
@keyframes stroke-in { from { background-size: 0 .3em; } to { background-size: 100% .3em; } }

/* Frames */
.frame { margin: 0; padding: clamp(5px, .75vw, 12px); background: var(--frame-gold);
  box-shadow: 0 0 0 1px #2a1c06, inset 0 0 0 1px #fff5, inset 0 0 0 3px #0003, 0 34px 34px -22px #000b, 0 6px 10px -4px #0007; }
.frame-walnut { background: var(--frame-walnut); }
.frame img { display: block; width: 100%; height: auto; outline: 2px solid #150e05; outline-offset: -2px; box-shadow: inset 0 0 12px #000; }
.mat-inner { border: clamp(7px, .9vw, 12px) solid #9a7426; border-image: var(--frame-gold) 1; outline: 1px solid #2a1c06; padding: clamp(.5rem, 1vw, .9rem); background: #fbf6ea; }
:root[data-variant="b"] .mat-inner { border: clamp(7px, .9vw, 12px) solid #9a7426; border-image: var(--frame-gold) 1; outline: 1px solid #2a1c06; outline-offset: 0; }
.mat { background: transparent; padding: clamp(.4rem, 1vw, 1rem); }

/* The wall */
.wall-hero { padding-block: 0; border-bottom: 0;
  background:
    radial-gradient(42% 60% at 74% 8%, #fff9 0, transparent 70%),
    radial-gradient(30% 45% at 52% 0%, #fff6 0, transparent 70%),
    linear-gradient(to bottom, transparent 82%, #0000000f 100%),
    var(--color-bg); }
:root[data-lights="off"] .wall-hero { background:
    radial-gradient(34% 50% at 74% 38%, color-mix(in srgb, var(--color-glow) 16%, transparent) 0, transparent 70%),
    var(--color-bg); }
.wall-hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .wall-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: min(86vh, 860px); } }
.wall { position: relative; min-width: 0; }
.wall-pieces { position: relative; aspect-ratio: 1 / .72; }
.hang { position: absolute; margin: 0; translate: calc(var(--px, 0) * var(--depth, 1) * 14px) calc(var(--py, 0) * var(--depth, 1) * 10px); transition: translate 500ms var(--ease), filter 900ms var(--ease), box-shadow 900ms var(--ease); }
.hang::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 60vh; background: linear-gradient(to top, #0005, transparent 40%); pointer-events: none; }
.hang-a { left: 0; top: 14%; width: 27%; --depth: .5; }
.hang-b { left: 5%; top: 56%; width: 20%; --depth: 1.3; }
.hang-main { left: 31%; top: 3%; width: 38%; --depth: .9; box-shadow: 0 40px 40px -24px #000c, 0 8px 12px -4px #0008; }
.hang-c { left: 73%; top: 6%; width: 22%; --depth: 1.2; }
.hang-d { left: 75%; top: 55%; width: 20%; --depth: .6; }
.hang-main img { display: block; width: 100%; height: auto; transition: opacity 900ms var(--ease); }
.hang-main .off { position: absolute; inset: 0; height: 100%; opacity: 0; }
:root[data-lights="off"] .hang-main .off { opacity: 1; }
:root[data-lights="off"] .hang-main { box-shadow: 0 0 60px 6px color-mix(in srgb, var(--color-glow) 35%, transparent), 0 0 140px 30px color-mix(in srgb, var(--color-glow) 14%, transparent); }
:root[data-lights="off"] .hang.frame { filter: brightness(.22) saturate(.5); }
:root[data-lights="off"].motion .hang-main { animation: halo 4.5s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 90px 14px color-mix(in srgb, var(--color-glow) 45%, transparent), 0 0 180px 50px color-mix(in srgb, var(--color-glow) 18%, transparent); } }
.wall-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; justify-content: space-between; margin: clamp(1rem, 2vw, 1.75rem) 0 0 31%; position: relative; z-index: 3; }
.wall > .glow-field { z-index: 2; }
@media (max-width: 899px) {
  .wall { order: -1; }
  .wall-pieces { aspect-ratio: 1 / .8; }
  .wall-foot { margin-left: 0; }
  .wall-hero-grid { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .hang { animation: hang 1300ms var(--ease) both; transform-origin: 50% -40%; }
  .motion .hang-main { animation-delay: 150ms; }
  .motion .hang-a { animation-delay: 420ms; }
  .motion .hang-c { animation-delay: 560ms; }
  .motion .hang-b { animation-delay: 700ms; }
  .motion .hang-d { animation-delay: 840ms; }
  :root[data-lights="off"].motion .hang-main { animation: hang 1300ms var(--ease) both 150ms, halo 4.5s ease-in-out infinite 1500ms; }
}

/* Purpose: three picture cards */
.purpose-grid { gap: clamp(1rem, 2vw, 1.75rem); align-items: start; }
.purpose-card { width: 100%; min-width: 0; }
.purpose-card { position: relative; display: block; overflow: hidden; padding: 0; border: 0; aspect-ratio: 3 / 4; background: #1a120c; color: #fff;
  box-shadow: 0 30px 40px -28px #000b; isolation: isolate; }
.purpose-card:nth-child(2) { margin-top: clamp(0rem, 3vw, 3rem); }
.purpose-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease), filter 600ms var(--ease); z-index: -2; }
.purpose-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #0b0705f2 0, #0b0705b0 34%, transparent 68%); }
.purpose-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid #f3de9688; z-index: 1; pointer-events: none; transition: inset 500ms var(--ease), border-color 500ms var(--ease); }
.purpose-card:hover > img { transform: scale(1.06); }
.purpose-card:hover::before { inset: 16px; border-color: #f3de96; }
.purpose-card-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.4vw, 2.2rem); color: #f4ece0; }
.purpose-card h3 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-bottom: .6rem; }
.purpose-link.purpose-card:hover h3 { color: #f3de96; }
.purpose-card p { color: #e9dfd2; font-size: .95rem; margin: 0; }
.purpose-card .purpose-card-text > span { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #f3de96; font-size: .85rem; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid #f3de9655; }
@media (max-width: 639px) { .purpose-card { aspect-ratio: 4 / 5; } .purpose-card:nth-child(2) { margin-top: 0; } }

/* Section heads: a small ornament, larger type */
.head-row h2::before, .medium-head h2::before, .faq-wrap h2::before {
  content: ""; display: block; width: 74px; height: 12px; margin-bottom: 1.4rem;
  background:
    linear-gradient(var(--color-gold-soft), var(--color-gold-soft)) 0 50% / 28px 1px no-repeat,
    linear-gradient(var(--color-gold-soft), var(--color-gold-soft)) 100% 50% / 28px 1px no-repeat,
    conic-gradient(from 45deg, var(--color-gold) 0 25%, transparent 0 50%, var(--color-gold) 0 75%, transparent 0) 50% 50% / 8px 8px no-repeat;
}
.medium-head h2::before { margin-inline: auto; }

/* Dark rooms: spotlit, readable */
.section-dark { --color-ink: #f3ede2; --color-ink-soft: #d3cabb; --color-muted: #a99f92; --color-bg-alt: #ffffff0d; color: var(--color-ink-soft); }
.section-shrine { background:
    radial-gradient(26% 46% at 18% 46%, #f3de9620 0, transparent 70%),
    radial-gradient(26% 46% at 50% 46%, #f3de9626 0, transparent 70%),
    radial-gradient(26% 46% at 82% 46%, #f3de9620 0, transparent 70%),
    #120a08 !important; }
.section-shrine .head-row p, .section-shrine .small, .section-shrine a { color: var(--color-ink-soft); }
.section-shrine .mat { background: transparent; }
@media (max-width: 759px) { .section-shrine { background: radial-gradient(70% 30% at 50% 30%, #f3de9620 0, transparent 70%), #120a08 !important; } }

/* Reviews as hung cards */
.quote { background: var(--color-surface); border: 0; border-left: 0; padding: clamp(1.5rem, 2.5vw, 2.4rem); box-shadow: 0 26px 34px -28px #000a; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -.18em; left: .25em; font: 400 5.5rem/1 var(--font-display); color: var(--color-gold-soft); opacity: .55; }
.quote blockquote { position: relative; padding-top: 1.6rem; }
.quotes .quote:nth-child(3n+2) { margin-top: clamp(0rem, 2vw, 2rem); }

/* =====================================================================
   ATELIER (16 Nov 2026). The site as a painter's dark studio: umber ground,
   gold leaf, cream text. Green appears only where a painting glows.
   This block overrides everything above it.
   ===================================================================== */
:root {
  --color-bg: #14100c;
  --color-bg-alt: #1b1510;
  --color-surface: #241c15;
  --color-ink: #f4ead8;
  --color-ink-soft: #cfc1aa;
  --color-muted: #a09179;
  --color-line: #3a2e22;
  --color-gold: #d9b45a;
  --color-gold-soft: #8f7434;
  --color-dark: #0b0806;
  --color-dark-text: #f4ead8;
  --color-dark-muted: #b3a48c;
  --color-frame: #2a1c10;
  --color-placeholder: #9a8c76;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-h1: clamp(3rem, 1.6rem + 5.2vw, 6.4rem);
  --text-h2: clamp(2.5rem, 1.6rem + 3.2vw, 4.4rem);
  --text-h3: clamp(1.6rem, 1.35rem + .9vw, 2.15rem);
  color-scheme: dark;
}
body { background:
    radial-gradient(90% 60% at 80% -10%, #3a2a1855 0, transparent 60%),
    var(--color-bg); background-attachment: fixed; }
body::before { opacity: .08; filter: invert(1); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.012em; line-height: 1; }
h3 { line-height: 1.1; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--color-gold); text-shadow: none !important; animation-name: stroke-in; }
.section-dark h2 em { background-image: var(--stroke-day); }
.brand-name { font-size: 1.85rem; font-weight: 600; letter-spacing: 0; }
.brand-mark { color: var(--color-gold); }
.quote blockquote p { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); line-height: 1.25; }
.why-stats dd, .medium-price strong, .badge strong { font-weight: 500; }
.medium-tabs [role="tab"] { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
.steps h3 { font-size: 1.7rem; }
.skip-link { color: var(--color-bg); }
.site-header { background: color-mix(in srgb, var(--color-bg) 88%, transparent); }
.eyebrow { font: 500 .74rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--color-gold); margin: 0 0 1.6rem; display: flex; align-items: center; gap: 1rem; }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--color-gold); flex: none; }

.btn-dark, .action-bar a:first-child { background: var(--color-gold); color: #14100c; }
.btn-dark:hover { background: var(--color-ink); color: #14100c; }
.btn-line:hover { color: #14100c; }
.section-dark { --color-gold: #d9b45a; --color-gold-soft: #8f7434; --color-line: #33281d; background: #0b0806; }
.section-alt { background: var(--color-bg-alt); }
.map { filter: invert(.9) hue-rotate(180deg) sepia(.35) saturate(.7) contrast(.9); }
.hero-media img, .tab-media img { border: clamp(6px, .8vw, 12px) solid #9a7426; border-image: var(--frame-gold) 1; box-shadow: 0 40px 60px -40px #000; }
.motion .hero-media, .motion .tab-media { overflow: visible; }
.motion .hero-media.is-in img, .motion .tab-media.is-in img { animation: none; }
.artwork-dialog::backdrop { background: #000e; }
.ticker { background: #0b0806; border-block: 1px solid var(--color-line); }
.ticker span { font-style: italic; }
.form input, .form select, .form textarea { background: #0f0b08; border-color: var(--color-line); }
.commission-form { background: var(--color-surface); box-shadow: 0 40px 60px -40px #000; }

/* ---------- Title hero ---------- */
.title-hero { position: relative; padding: 0; border: 0; overflow: hidden; }
.title-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 70% at 72% 44%, #e8c98a2e 0, transparent 70%), radial-gradient(30% 40% at 8% 100%, #7a2c1a33 0, transparent 70%); }
.title-hero-grid { position: relative; display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4.5rem, 8vw, 7rem); }
@media (min-width: 900px) { .title-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(92vh, 900px); } }
.title-copy h1 { margin-bottom: 1.8rem; }
.title-copy .studio-hero-description { color: var(--color-ink-soft); max-width: 42ch; }
.title-copy .studio-hero-note { border-top-color: var(--color-line); color: var(--color-muted); }
.title-art { margin: 0; min-width: 0; position: relative; }
.title-art .frame { display: block; padding: clamp(8px, 1.1vw, 18px); cursor: zoom-in; transform: rotate(.6deg); transition: transform 900ms var(--ease); }
.title-art .frame:hover { transform: rotate(0deg) scale(1.01); }
.title-art::after { content: ""; position: absolute; left: 6%; right: 6%; top: 100%; height: 60px; background: radial-gradient(50% 100% at 50% 0, #000c, transparent 70%); pointer-events: none; }
.title-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1.5rem; padding-top: 1.4rem; font-size: .82rem; color: var(--color-muted); position: relative; z-index: 1; }
.title-art figcaption a { color: var(--color-ink); display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-underline-offset: 5px; }
.title-art figcaption svg { width: 14px; height: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0; display: grid; justify-items: center; gap: .7rem; color: var(--color-muted); text-decoration: none; font: 500 .7rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; min-height: 44px; }
.scroll-cue:hover { color: var(--color-gold); }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--color-gold), transparent); transform-origin: 50% 0; }
.motion .scroll-cue i { animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.motion .title-art { animation: hang 1500ms var(--ease) both 250ms; transform-origin: 50% -30%; }
@media (max-width: 899px) { .title-art { order: -1; } .title-hero-grid { padding-top: 1.5rem; } .scroll-cue span { display: none; } }

/* ---------- Story: one painting, four scenes ---------- */
.story { --st-bg: #d6c9b1; --st-ink: #1b140d; --st-soft: #4b3e30; --st-accent: #8a3a1c;
  position: relative; background: var(--st-bg); color: var(--st-soft); transition: background-color 1400ms var(--ease), color 900ms var(--ease); }
.story[data-scene="4"] { --st-bg: #040403; --st-ink: #f4ead8; --st-soft: #cfc1aa; --st-accent: #5fe6a4; }
.story::before, .story::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 1400ms var(--ease); }
.story::before { background: radial-gradient(48% 60% at 26% 45%, #fff6e2e6 0, transparent 72%), linear-gradient(to bottom, #0000001f, transparent 12%, transparent 88%, #0000001f); }
.story::after { background: radial-gradient(40% 50% at 26% 50%, #5fe6a42e 0, transparent 72%); opacity: 0; }
.story[data-scene="4"]::before { opacity: 0; }
.story[data-scene="4"]::after { opacity: 1; }
.story-grid { position: relative; z-index: 1; display: grid; gap: clamp(1.5rem, 5vw, 5rem); }
.story h2, .story h3 { color: var(--st-ink); transition: color 900ms var(--ease); }
.story h2 em { color: var(--st-accent); background-image: none; transition: color 900ms var(--ease); }
.story-head { padding-top: clamp(4rem, 8vw, 7rem); max-width: 30rem; }
.story-head p { font-size: var(--text-lead); margin: 0; }
.scene { display: flex; flex-direction: column; justify-content: center; min-height: 78vh; max-width: 30rem; opacity: .32; transition: opacity 700ms var(--ease); }
.story[data-scene="1"] .scene[data-scene="1"], .story[data-scene="2"] .scene[data-scene="2"],
.story[data-scene="3"] .scene[data-scene="3"], .story[data-scene="4"] .scene[data-scene="4"] { opacity: 1; }
.scene-no { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.2rem; font: 600 .72rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--st-accent); transition: color 900ms var(--ease); }
.scene-no::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.scene h3 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); margin-bottom: 1.2rem; }
.scene p { font-size: 1.08rem; line-height: 1.7; }
.scene .btn-row { margin-top: 1.6rem; align-items: center; }
.story[data-scene="4"] .btn-dark { background: #5fe6a4; color: #04130c; }
.story .link-arrow { color: var(--st-ink); }
.story-stage-wrap { position: sticky; top: 84px; height: calc(100vh - 84px); display: grid; place-items: center; min-width: 0; }
.story-stage { margin: 0; display: grid; justify-items: center; gap: 1.4rem; width: 100%; }
.story-picture { position: relative; height: min(64vh, 620px); aspect-ratio: 615 / 780; max-width: 100%;
  box-shadow: 0 50px 50px -30px #000b, 0 10px 14px -6px #0008; transition: box-shadow 1400ms var(--ease), transform 1400ms var(--ease); }
.story-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1400ms var(--ease); }
.story-picture .off { opacity: 0; }
.story[data-scene="4"] .story-picture .off { opacity: 1; }
.story[data-scene="4"] .story-picture { box-shadow: 0 0 70px 8px #5fe6a455, 0 0 180px 50px #5fe6a422; }
.story-canvas { position: absolute; inset: 6.4% 8.4% 6.6% 8.4%; display: grid; place-items: center; text-align: center;
  background-color: #efe5cf;
  background-image: repeating-linear-gradient(0deg, #0000000a 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #0000000a 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 40px #0003; clip-path: inset(0 0 100% 0); transition: clip-path 1700ms cubic-bezier(.65, 0, .2, 1); }
.story[data-scene="1"] .story-canvas { clip-path: inset(0); }
.story-canvas span { font: italic 500 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.1 var(--font-display); color: #6b5a45; padding: 1.2rem 1.6rem; border: 1px dashed #6b5a4599; }
.story-plate { display: grid; gap: .2rem; text-align: center; padding: .7rem 1.2rem; background: #f6efdf; color: #4b3e30; font-size: .78rem; box-shadow: 0 10px 20px -14px #000a; transition: opacity 900ms var(--ease), background-color 1400ms var(--ease), color 1400ms var(--ease); }
.story-plate strong { font: 600 1.1rem/1.1 var(--font-display); color: #1b140d; transition: color 1400ms var(--ease); }
.story[data-scene="1"] .story-plate { opacity: 0; }
.story[data-scene="4"] .story-plate { background: #101a15; color: #a8cdbb; }
.story[data-scene="4"] .story-plate strong { color: #eafff4; }
.story > .glow-field { z-index: 0; }
@media (min-width: 900px) { .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .scene:last-child { margin-bottom: 12vh; } }
@media (max-width: 899px) {
  .story-stage-wrap { top: 76px; height: 46vh; z-index: 2; background: var(--st-bg); transition: background-color 1400ms var(--ease); margin-inline: calc(-1 * var(--gutter)); box-shadow: 0 14px 18px -14px #0006; }
  .story-picture { height: 36vh; }
  .story-plate { display: none; }
  .story::before { background: radial-gradient(70% 40% at 50% 22%, #fff6e2e6 0, transparent 72%); }
  .story-head { padding-top: 2.5rem; }
  .scene { min-height: 52vh; }
  .scene:last-child { padding-bottom: 4rem; }
}
:root:not(.motion) .scene { opacity: 1; }
.title-copy h1 { font-size: clamp(2.9rem, 1.5rem + 4vw, 5.2rem); hyphens: none; }
@media (min-width: 900px) { .title-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }

/* =====================================================================
   MODERN (16 Nov 2026, evening). No gold. Near-black, off-white, and one
   accent: the green of the glow. Sans headings with serif-italic accents,
   rounded cards, pill buttons. Overrides the ATELIER block above.
   ===================================================================== */
:root {
  --color-bg: #0b0c0c;
  --color-bg-alt: #121414;
  --color-surface: #181b1a;
  --color-ink: #f3f1ec;
  --color-ink-soft: #c5c8c4;
  --color-muted: #969b97;
  --color-line: #262a28;
  --color-gold: #5fe6a4;
  --color-gold-soft: #2f9d6e;
  --color-dark: #060707;
  --color-dark-text: #f3f1ec;
  --color-dark-muted: #a9aeaa;
  --color-frame: #050505;
  --color-placeholder: #8b908c;
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text-h1: clamp(2.6rem, 1.4rem + 4.4vw, 5.4rem);
  --text-h2: clamp(2.1rem, 1.4rem + 2.7vw, 3.8rem);
  --text-h3: clamp(1.3rem, 1.15rem + .6vw, 1.7rem);
  --radius: 20px;
  --radius-sm: 12px;
}
body { background: radial-gradient(70% 50% at 85% -10%, #5fe6a412 0, transparent 60%), var(--color-bg); background-attachment: fixed; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.04em; line-height: 1; }
h3 { letter-spacing: -.02em; line-height: 1.15; font-weight: 600; }
h1 em, h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--color-gold);
  background: none !important; padding-bottom: 0; animation: none !important; font-size: 1.08em; }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.quote blockquote p { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.medium-tabs [role="tab"] { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 600; }
.steps h3 { font-size: 1.3rem; }
.why-stats dd, .medium-price strong { font-weight: 600; letter-spacing: -.04em; }
.title-copy h1 { font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.9rem); }
.eyebrow { color: var(--color-gold); letter-spacing: .16em; }
.eyebrow::before { background: var(--color-gold); }

/* Shapes: pills and rounded cards; artwork stays square */
.btn { border-radius: 999px; padding: 0 1.6rem; font-weight: 600; }
.btn-dark, .action-bar a:first-child { background: var(--color-gold); color: #04130c; }
.btn-dark:hover { background: var(--color-ink); color: #04130c; }
.btn-line { border-color: #ffffff40; }
.nav-toggle { border-radius: 999px; border-color: #ffffff40; }
.site-header { background: color-mix(in srgb, var(--color-bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); }
.form input, .form select, .form textarea { border-radius: var(--radius-sm); background: #0d0f0e; }
.commission-form, .quote, .purpose-card, .artwork-dialog, .sample-unavailable { border-radius: var(--radius); }
.commission-form { border: 1px solid var(--color-line); }
.quote { border: 1px solid var(--color-line); box-shadow: none; }
.quote::before { color: var(--color-gold); opacity: .9; font-family: var(--font-accent); }
.map { border-radius: var(--radius); filter: invert(.92) hue-rotate(180deg) grayscale(.7) contrast(.9); }
.hero-media img, .tab-media img { border: 0; border-image: none; border-radius: var(--radius); }
.site-nav ul.nav-sub { border-radius: var(--radius-sm); overflow: hidden; }
.unit-toggle { border-radius: 999px; overflow: hidden; }

/* Frames: thin black gallery frame with a pale mat. No gold. */
.frame, .frame-gold, .frame-walnut { background: #f1eee7; padding: clamp(10px, 1.5vw, 24px);
  box-shadow: 0 0 0 clamp(4px, .5vw, 8px) #050505, 0 0 0 calc(clamp(4px, .5vw, 8px) + 1px) #303433, 0 50px 60px -30px #000, 0 10px 16px -6px #000a; }
.frame img { outline: 1px solid #0003; outline-offset: 0; box-shadow: none; }
.mat-inner, :root[data-variant="b"] .mat-inner { border: 6px solid #050505; border-image: none; outline: 1px solid #303433; background: #f1eee7; padding: clamp(.6rem, 1.2vw, 1rem); box-shadow: 0 30px 40px -28px #000; }
.title-art .frame { padding: clamp(10px, 1.5vw, 24px); }
.title-hero::before { background: radial-gradient(44% 64% at 74% 44%, #ffffff14 0, transparent 70%); }

/* Remove the ornaments of the earlier version */
.head-row h2::before, .medium-head h2::before, .faq-wrap h2::before { content: none; }
.purpose-card::before { border-color: #ffffff38; border-radius: calc(var(--radius) - 8px); }
.purpose-card:hover::before { border-color: var(--color-gold); }
.purpose-link.purpose-card:hover h3 { color: var(--color-gold); }
.purpose-card .purpose-card-text > span { color: var(--color-gold); border-top-color: #ffffff33; }
.purpose-card::after { background: linear-gradient(to top, #050606f5 0, #050606b8 36%, transparent 70%); }
.section-dark { --color-gold: #5fe6a4; --color-gold-soft: #2f9d6e; --color-line: #232726; --color-ink: #f3f1ec; --color-ink-soft: #c5c8c4; --color-muted: #969b97; background: #060707; }
.section-shrine { background:
    radial-gradient(26% 46% at 18% 46%, #ffffff12 0, transparent 70%),
    radial-gradient(26% 46% at 50% 46%, #ffffff17 0, transparent 70%),
    radial-gradient(26% 46% at 82% 46%, #ffffff12 0, transparent 70%),
    #060707 !important; }
@media (max-width: 759px) { .section-shrine { background: radial-gradient(70% 30% at 50% 30%, #ffffff14 0, transparent 70%), #060707 !important; } }
.ticker { background: #060707; }
.ticker span { font-style: normal; font-weight: 600; letter-spacing: -.04em; }
.ticker span:nth-child(even) { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--color-gold); -webkit-text-stroke: 0; }
.ticker i { border-radius: 50%; transform: none; width: .35em; height: .35em; }

/* Story: five steps */
.story { --st-bg: #e9e7e1; --st-ink: #0b0c0c; --st-soft: #454a47; --st-accent: #0c6a45; }
.story[data-scene="5"] { --st-bg: #030404; --st-ink: #f3f1ec; --st-soft: #c5c8c4; --st-accent: #5fe6a4; }
.story[data-scene="4"] { --st-bg: #e9e7e1; --st-ink: #0b0c0c; --st-soft: #454a47; --st-accent: #0c6a45; }
.story::before { background: radial-gradient(48% 60% at 26% 45%, #ffffffe6 0, transparent 72%); }
.story[data-scene="4"]::before { opacity: 1; }
.story[data-scene="4"]::after { opacity: 0; }
.story[data-scene="5"]::before { opacity: 0; }
.story[data-scene="5"]::after { opacity: 1; }
.story[data-scene="5"] .scene[data-scene="5"] { opacity: 1; }
.story[data-scene="4"] .story-picture .off { opacity: 0; }
.story[data-scene="4"] .story-picture { box-shadow: 0 50px 50px -30px #000b, 0 10px 14px -6px #0008; }
.story[data-scene="5"] .story-picture .off { opacity: 1; }
.story[data-scene="5"] .story-picture { box-shadow: 0 0 70px 8px #5fe6a455, 0 0 180px 50px #5fe6a422; }
.story[data-scene="4"] .btn-dark { background: var(--color-gold); }
.story[data-scene="5"] .btn-dark { background: #5fe6a4; color: #04130c; }
.story h2 em { color: var(--st-accent); }
.scene h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
.scene-no { letter-spacing: .14em; font-weight: 700; }
.scene-no::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.story[data-scene="2"] .story-canvas { clip-path: inset(0); }
.story-canvas span { font: italic 400 clamp(1.5rem, 1rem + 1.5vw, 2.3rem)/1.1 var(--font-accent); color: #5a5f5b; border-color: #5a5f5b88; border-radius: 10px; grid-area: 1 / 1; transition: opacity 600ms var(--ease); }
.story-canvas { background-color: #f1eee7; }
.story-canvas .c2 { opacity: 0; font: 600 clamp(.7rem, .6rem + .4vw, .9rem)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; border-style: solid; }
.story[data-scene="2"] .story-canvas .c1 { opacity: 0; }
.story[data-scene="2"] .story-canvas .c2 { opacity: 1; }
.story[data-scene="2"] .story-canvas::before, .story[data-scene="2"] .story-canvas::after { opacity: 1; }
.story-canvas::before, .story-canvas::after { content: ""; position: absolute; opacity: 0; transition: opacity 600ms var(--ease); background: #0c6a45; }
.story-canvas::before { left: 8%; right: 8%; bottom: 7%; height: 1px; box-shadow: 0 -5px 0 -0px transparent; }
.story-canvas::after { top: 8%; bottom: 12%; right: 7%; width: 1px; }
.story-plate { border-radius: 999px; padding: .6rem 1.4rem; background: #ffffff; color: #454a47; }
.story-plate strong { font: 700 .95rem/1.2 var(--font-body); letter-spacing: -.02em; color: #0b0c0c; }
.story[data-scene="4"] .story-plate { background: #ffffff; color: #454a47; }
.story[data-scene="4"] .story-plate strong { color: #0b0c0c; }
.story[data-scene="5"] .story-plate { background: #0f1a15; color: #a8cdbb; }
.story[data-scene="5"] .story-plate strong { color: #eafff4; }
.story[data-scene="2"] .story-plate { opacity: 0; }

/* =====================================================================
   Story motion graphics: one animated layer per step.
   Each .fx layer plays when its step is the current scene and replays
   whenever the visitor returns to it. Hidden when motion is off.
   ===================================================================== */
.story-picture { container-type: inline-size; }
.story-canvas span { display: none; }
.story-canvas::before, .story-canvas::after { content: none; }
.story-fx { position: absolute; inset: 0; font-size: clamp(9px, 3.3cqw, 15px); font-family: var(--font-body); color: #0b0c0c; z-index: 4; }
:root:not(.motion) .story-fx, :root:not(.motion) .story-rail { display: none; }
.fx { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease), visibility 0s 500ms; }
.story[data-scene="1"] .fx-1, .story[data-scene="2"] .fx-2, .story[data-scene="3"] .fx-3, .story[data-scene="4"] .fx-4, .story[data-scene="5"] .fx-5 { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
@keyframes fx-pop { from { opacity: 0; transform: translateY(1em) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fx-tick { to { stroke-dashoffset: 0; } }
@keyframes fx-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Until step 4 the canvas is unframed: show only the canvas area of the photo */
.story-picture img { clip-path: inset(6.4% 8.4% 6.6% 8.4%); transition: opacity 1400ms var(--ease), clip-path 1300ms cubic-bezier(.3, 1.3, .4, 1); }
.story[data-scene="4"] .story-picture img, .story[data-scene="5"] .story-picture img, :root:not(.motion) .story-picture img { clip-path: inset(0); }
.story-picture, .story[data-scene="4"] .story-picture { box-shadow: none; }
.story-picture::before { content: ""; position: absolute; inset: 6.4% 8.4% 6.6% 8.4%; box-shadow: 0 40px 44px -26px #000a, 0 8px 12px -6px #0007; transition: inset 1300ms cubic-bezier(.3, 1.3, .4, 1), box-shadow 1300ms var(--ease); }
.story[data-scene="4"] .story-picture::before, :root:not(.motion) .story-picture::before { inset: 0; box-shadow: 0 50px 50px -30px #000b, 0 10px 14px -6px #0008; }
.story[data-scene="5"] .story-picture::before { inset: 0; box-shadow: 0 0 70px 8px #5fe6a455, 0 0 180px 50px #5fe6a422; }
.story[data-scene="5"] .story-picture { box-shadow: none; }
.story[data-scene="4"] .story-picture { animation: fx-settle 1300ms var(--ease) both; }
@keyframes fx-settle { 0% { transform: scale(.97) rotate(-.8deg); } 60% { transform: scale(1.01) rotate(.3deg); } 100% { transform: none; } }

/* Shared pieces */
.fx-card { position: absolute; display: flex; align-items: center; gap: .8em; padding: .8em 1em; background: #fff; border-radius: 1em; box-shadow: 0 1.4em 2.2em -1.2em #0009, 0 0 0 1px #0000000f; line-height: 1.25; white-space: nowrap; opacity: 0; }
.fx-card b { display: block; font-weight: 700; font-size: 1em; letter-spacing: -.02em; }
.fx-card small { display: block; font-size: .78em; color: #5d635f; }
.fx-ico { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #e4f6ec; color: #0c6a45; flex: none; }
.fx-ico svg { width: 1.3em; height: 1.3em; }
.fx-chip { position: absolute; padding: .5em .9em; border-radius: 999px; background: #0b0c0c; color: #fff; font-size: .82em; font-weight: 600; white-space: nowrap; opacity: 0; }
.fx-row { display: flex; align-items: center; gap: .6em; font-weight: 600; font-size: .95em; opacity: .35; }
.fx-row em { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #e7e9e6; color: #fff; flex: none; }
.fx-row svg, .fx-ticks svg { width: .95em; height: .95em; stroke-dasharray: 16; stroke-dashoffset: 16; }
@keyframes fx-row-on { to { opacity: 1; } }
@keyframes fx-em-on { to { background: #0c6a45; } }

/* Step 1: the photo is sent */
.fx-photo { position: absolute; left: 30%; top: 26%; width: 40%; filter: drop-shadow(0 1em 1.2em #0006); opacity: 0; }
.fx-photo svg { display: block; width: 100%; height: auto; }
.fx-chat { left: 52%; top: 62%; }
.fx-ticks { display: flex; color: #9aa39d; margin-left: .2em; }
.fx-ticks svg + svg { margin-left: -.45em; }
.fx-chip-a { left: -6%; top: 12%; }
.fx-chip-b { left: 2%; top: 80%; }
.story[data-scene="1"] .fx-chat { animation: fx-pop 600ms var(--ease) 300ms both; }
.story[data-scene="1"] .fx-photo { animation: fx-fly 1100ms cubic-bezier(.2, .9, .3, 1) 900ms both; }
@keyframes fx-fly { from { opacity: 0; transform: translate(70%, 90%) rotate(24deg) scale(.4); } 70% { opacity: 1; } to { opacity: 1; transform: rotate(-4deg); } }
.story[data-scene="1"] .fx-ticks svg { animation: fx-tick 350ms ease-out 1900ms both; }
.story[data-scene="1"] .fx-ticks svg + svg { animation-delay: 2100ms; }
.story[data-scene="1"] .fx-ticks { animation: fx-read 300ms ease-out 2500ms both; }
@keyframes fx-read { to { color: #0c6a45; } }
.story[data-scene="1"] .fx-chip-a { animation: fx-pop 500ms var(--ease) 2700ms both; }
.story[data-scene="1"] .fx-chip-b { animation: fx-pop 500ms var(--ease) 3000ms both; }

/* Step 2: style, size, frame, price */
.fx-size { position: absolute; left: 24%; right: 24%; top: 26%; bottom: 30%; border: 2px dashed #0c6a45; border-radius: .3em; opacity: 0; }
.fx-size b { position: absolute; width: 1em; height: 1em; border: 3px solid #0c6a45; }
.fx-size b:nth-child(1) { left: -.4em; top: -.4em; border-right: 0; border-bottom: 0; }
.fx-size b:nth-child(2) { right: -.4em; top: -.4em; border-left: 0; border-bottom: 0; }
.fx-size b:nth-child(3) { left: -.4em; bottom: -.4em; border-right: 0; border-top: 0; }
.fx-size b:nth-child(4) { right: -.4em; bottom: -.4em; border-left: 0; border-top: 0; }
.story[data-scene="2"] .fx-size { animation: fx-pop 500ms var(--ease) 200ms both, fx-resize 5s ease-in-out 800ms infinite; }
@keyframes fx-resize { 0%, 100% { inset: 26% 24% 30% 24%; } 33% { inset: 18% 16% 20% 16%; } 66% { inset: 34% 30% 38% 30%; } }
.fx-styles { position: absolute; left: -8%; top: 6%; display: grid; gap: .4em; }
.fx-styles span { padding: .5em .9em; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #0000001a, 0 .8em 1.2em -.8em #0007; font-size: .82em; font-weight: 600; white-space: nowrap; opacity: 0; }
.story[data-scene="2"] .fx-styles span { animation: fx-pop 450ms var(--ease) calc(400ms + var(--n) * 160ms) both, fx-pick 4.8s steps(1) calc(1200ms + var(--n) * 1.6s) infinite; }
@keyframes fx-pick { 0% { background: #0c6a45; color: #fff; } 33.3%, 100% { background: #fff; color: #0b0c0c; } }
.fx-choices { left: 50%; top: 58%; flex-direction: column; align-items: flex-start; gap: .5em; }
.story[data-scene="2"] .fx-choices, .story[data-scene="3"] .fx-check, .story[data-scene="3"] .fx-times { animation: fx-pop 600ms var(--ease) 500ms both; }
.story[data-scene="2"] .fx-row, .story[data-scene="3"] .fx-row { animation: fx-row-on 300ms ease-out calc(1100ms + var(--n) * 500ms) both; }
.story[data-scene="2"] .fx-row em, .story[data-scene="3"] .fx-row em { animation: fx-em-on 300ms ease-out calc(1100ms + var(--n) * 500ms) both; }
.story[data-scene="2"] .fx-row svg, .story[data-scene="3"] .fx-row svg { animation: fx-tick 350ms ease-out calc(1250ms + var(--n) * 500ms) both; }
.fx-price { margin-top: .3em; padding: .45em .8em; border-radius: .6em; background: #0c6a45; color: #fff; font-size: .8em; font-weight: 700; opacity: 0; transform-origin: 0 50%; }
.story[data-scene="2"] .fx-price { animation: fx-stamp 500ms cubic-bezier(.2, 1.6, .4, 1) 2800ms both; }
@keyframes fx-stamp { from { opacity: 0; transform: scale(1.6) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* Step 3: details confirmed, then the painting appears stroke by stroke */
.story[data-scene="3"] .story-canvas { clip-path: inset(0 0 100% 0); transition: none; }
.fx-bands { position: absolute; inset: 6.4% 8.4% 6.6% 8.4%; display: grid; grid-template-rows: repeat(7, 1fr); }
.fx-bands i { background-color: #f1eee7; background-image: repeating-linear-gradient(0deg, #0000000a 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #0000000a 0 1px, transparent 1px 3px); transform-origin: 100% 50%; }
.fx-bands i:nth-child(even) { transform-origin: 0 50%; }
.story[data-scene="3"] .fx-bands i { animation: fx-wipe 520ms cubic-bezier(.6, 0, .3, 1) calc(2700ms + var(--b) * 520ms) both; }
@keyframes fx-wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.fx-brush { position: absolute; left: 8.4%; top: 6.4%; width: 83.2%; height: 87%; pointer-events: none; opacity: 0; }
.fx-brush svg { position: absolute; width: 2.6em; height: 2.6em; margin: -2.2em 0 0 -.4em; left: 0; top: 7.1%; filter: drop-shadow(0 .3em .4em #0006); }
.story[data-scene="3"] .fx-brush { animation: fx-show 300ms ease-out 2500ms both, fx-hide 400ms ease-in 6400ms forwards; }
.story[data-scene="3"] .fx-brush svg { animation: fx-zigzag 3640ms linear 2700ms both; }
@keyframes fx-show { to { opacity: 1; } }
@keyframes fx-hide { to { opacity: 0; } }
@keyframes fx-zigzag {
  0% { left: 0; top: 7.1%; } 14.2% { left: 100%; top: 7.1%; } 14.3% { left: 100%; top: 21.4%; }
  28.5% { left: 0; top: 21.4%; } 28.6% { left: 0; top: 35.7%; } 42.8% { left: 100%; top: 35.7%; }
  42.9% { left: 100%; top: 50%; } 57.1% { left: 0; top: 50%; } 57.2% { left: 0; top: 64.3%; }
  71.4% { left: 100%; top: 64.3%; } 71.5% { left: 100%; top: 78.6%; } 85.7% { left: 0; top: 78.6%; }
  85.8% { left: 0; top: 92.9%; } 100% { left: 100%; top: 92.9%; } }
.fx-check { left: 56%; top: 8%; flex-direction: column; align-items: flex-start; gap: .5em; }
.fx-times { left: 44%; top: 70%; flex-direction: column; align-items: stretch; gap: .55em; min-width: 15em; }
.fx-times span { display: grid; grid-template-columns: 5.2em 1fr; gap: .1em .7em; align-items: center; }
.fx-times b { font-size: .82em; }
.fx-times i { height: .5em; border-radius: 999px; background: #e7e9e6; position: relative; overflow: hidden; }
.fx-times i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: #0c6a45; transform-origin: 0 50%; transform: scaleX(0); }
.fx-times span:nth-child(2) i::after { background: #2fb37b; }
.fx-times span:nth-child(3) i::after { background: #0b0c0c; }
.fx-times small { grid-column: 2; }
.story[data-scene="3"] .fx-times { animation-delay: 6200ms; }
.story[data-scene="3"] .fx-times i::after { animation: fx-fill 1100ms var(--ease) 6800ms both; }

/* Step 4: framed, then collected or delivered */
.fx-collect { left: 54%; top: 56%; }
.fx-deliver { left: 44%; top: 74%; }
.fx-teak { left: -6%; top: 6%; }
.story[data-scene="4"] .fx-teak { animation: fx-pop 500ms var(--ease) 1200ms both; }
.story[data-scene="4"] .fx-collect { animation: fx-pop 600ms var(--ease) 1700ms both; }
.story[data-scene="4"] .fx-deliver { animation: fx-pop 600ms var(--ease) 2200ms both; }
.story[data-scene="4"] .fx-van svg { animation: fx-drive 2.4s ease-in-out 2800ms infinite; }
@keyframes fx-drive { 0%, 100% { transform: translateX(-.25em); } 50% { transform: translateX(.25em); } }
.story[data-scene="4"] .fx-collect .fx-ico svg { animation: fx-bounce 1.6s ease-in-out 2300ms infinite; }
@keyframes fx-bounce { 0%, 100% { transform: none; } 30% { transform: translateY(-.25em); } }

/* Step 5: lights off */
.fx-switch { left: 52%; top: 70%; background: #111715; color: #eafff4; box-shadow: 0 0 0 1px #5fe6a433, 0 1.4em 2.2em -1.2em #000; }
.fx-switch small { color: #9cc7b3; }
.fx-rocker { position: relative; width: 3em; height: 1.7em; border-radius: 999px; background: #26302c; flex: none; }
.fx-rocker i { position: absolute; top: .22em; left: .22em; width: 1.26em; height: 1.26em; border-radius: 50%; background: #f3f1ec; }
.story[data-scene="5"] .fx-switch { animation: fx-pop 600ms var(--ease) 500ms both; }
.story[data-scene="5"] .fx-rocker i { animation: fx-flip 500ms var(--ease) 1300ms both; }
@keyframes fx-flip { to { transform: translateX(1.3em); background: #5fe6a4; box-shadow: 0 0 .8em .15em #5fe6a4aa; } }
.fx-ring { position: absolute; inset: 0; border: 2px solid #5fe6a4; opacity: 0; }
.story[data-scene="5"] .fx-ring { animation: fx-ring 3.6s ease-out 1800ms infinite; }
.story[data-scene="5"] .fx-ring-2 { animation-delay: 3600ms; }
@keyframes fx-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.28); } }

/* Progress rail */
.story-rail { position: absolute; left: 0; top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem; z-index: 5; font: 700 .72rem/1 var(--font-body); color: var(--st-soft); }
.story-rail::before, .story-rail::after { content: ""; position: absolute; left: 50%; top: .9rem; bottom: .9rem; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--st-ink) 18%, transparent); z-index: -1; }
.story-rail::after { background: var(--st-accent); transform-origin: 50% 0; transform: scaleY(var(--progress, 0)); transition: transform 900ms var(--ease), background-color 900ms var(--ease); }
.story-rail li { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--st-bg); border: 2px solid color-mix(in srgb, var(--st-ink) 22%, transparent); transition: background-color 600ms var(--ease), border-color 600ms var(--ease), color 600ms var(--ease), transform 600ms var(--ease); }
.story-rail li.is-done { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-bg); }
.story-rail li.is-now { border-color: var(--st-accent); color: var(--st-accent); transform: scale(1.25); }
.story-stage-wrap { position: sticky; }
@media (max-width: 899px) {
  .story-rail { left: 50%; top: auto; bottom: .5rem; translate: -50% 0; grid-auto-flow: column; gap: 1.3rem; }
  .story-rail::before, .story-rail::after { left: .8rem; right: .8rem; top: 50%; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; }
  .story-rail::after { transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
  .story-rail li { width: 1.5rem; height: 1.5rem; font-size: .62rem; }
  .story-picture { height: 32vh; }
  .story-stage { align-content: start; padding-top: .6rem; }
  .fx-chat, .fx-choices, .fx-check, .fx-times, .fx-collect, .fx-deliver, .fx-switch { left: auto; right: -34%; }
  .fx-times { display: none; }
  .fx-styles, .fx-chip-a, .fx-teak { left: -34%; }
  .fx-chip-b { left: -30%; }
}

/* Step details */
.scene { min-height: 86vh; max-width: 34rem; }
.scene > p:not(.scene-no) { font-size: 1.12rem; font-weight: 500; color: var(--st-ink); transition: color 900ms var(--ease); }
.scene-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .1rem; border-top: 1px solid color-mix(in srgb, var(--st-ink) 16%, transparent); }
.scene-list li { position: relative; padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid color-mix(in srgb, var(--st-ink) 16%, transparent); font-size: .98rem; line-height: 1.55; }
.scene-list li::before { content: ""; position: absolute; left: .1rem; top: 1.15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--st-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='m4.2 8.4 2.5 2.500 5-5.200' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E") center / contain no-repeat; transition: background-color 900ms var(--ease); }
.scene-list li::after { content: ""; position: absolute; left: .4rem; top: 1.47rem; width: .45rem; height: .25rem; border-left: 2px solid var(--st-bg); border-bottom: 2px solid var(--st-bg); transform: rotate(-45deg); transition: border-color 900ms var(--ease); }
.scene-list strong { color: var(--st-ink); font-weight: 700; transition: color 900ms var(--ease); }
.scene-list a { color: var(--st-ink); text-underline-offset: 3px; }
.motion .scene-list li { opacity: 0; transform: translateX(-14px); transition: opacity 500ms var(--ease) calc(150ms + var(--n) * 110ms), transform 600ms var(--ease) calc(150ms + var(--n) * 110ms); }
.motion .story[data-scene="1"] .scene[data-scene="1"] li, .motion .story[data-scene="2"] .scene[data-scene="2"] li, .motion .story[data-scene="3"] .scene[data-scene="3"] li,
.motion .story[data-scene="4"] .scene[data-scene="4"] li, .motion .story[data-scene="5"] .scene[data-scene="5"] li { opacity: 1; transform: none; }
@media (max-width: 899px) { .scene { min-height: 0; padding-block: 2.5rem; } }

/* =====================================================================
   Gallery lights. The gallery page keeps a lights on / off switch.
   Lights off shows an on-screen preview of the optional glow finish
   (every piece in the gallery is digitally hand-painted, so each could
   take the finish). The note beside the switch says it is a preview.
   ===================================================================== */
:root[data-lights="off"] {
  --color-bg: #020303; --color-bg-alt: #060808; --color-surface: #0c100e;
  --color-ink: #f3f1ec; --color-ink-soft: #c5c8c4; --color-muted: #969b97; --color-line: #16201c;
  --color-gold: #5fe6a4; --color-gold-soft: #2f9d6e; --color-dark: #000; --color-frame: #020303;
}
:root[data-lights="off"] body { background: var(--color-bg); }
:root[data-lights="off"] body::before { opacity: .05; }
.lights-bar { position: sticky; top: 92px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin: 0 0 var(--space-4);
  padding: .7rem 1.2rem .7rem .8rem; border: 1px solid var(--color-line); border-radius: 999px; background: color-mix(in srgb, var(--color-surface) 88%, transparent); backdrop-filter: blur(12px); width: fit-content; max-width: 100%; }
.lights-bar .lights-switch { color: var(--color-ink); font-weight: 600; padding: 0 .4rem 0 0; }
.lights-bar .lights-switch-track { width: 52px; height: 30px; background: #26302c; border-color: #ffffff40; }
.lights-bar .lights-switch-knob { top: 4px; left: 4px; width: 20px; height: 20px; background: #f3f1ec; }
:root[data-lights="off"] .lights-bar .lights-switch-knob { transform: translateX(22px); }
.lights-bar .lights-switch-text { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
.lights-note { margin: 0; font-size: .86rem; color: var(--color-ink-soft); max-width: 62ch; line-height: 1.45; }
.lights-note strong { color: var(--color-ink); }
.lights-note-off { display: none; color: var(--color-gold); }
:root[data-lights="off"] .lights-note-off { display: inline; }
.no-js .lights-bar { display: none; }
@media (max-width: 759px) { .lights-bar { top: 80px; border-radius: 20px; padding: .8rem 1rem; } }

.works-gallery .mat-inner, .works-gallery img { transition: filter 1100ms var(--ease), background-color 1100ms var(--ease), border-color 1100ms var(--ease), box-shadow 1100ms var(--ease), transform var(--duration) var(--ease), clip-path 1100ms var(--ease) var(--d, 0ms); }
:root[data-lights="off"] .works-gallery .mat-inner { background: #030605; border-color: #010202; outline-color: #0f1613;
  box-shadow: 0 0 46px 2px #5fe6a430, 0 0 120px 24px #5fe6a412; }
:root[data-lights="off"] .works-gallery img, :root[data-lights="off"] .artwork-dialog img {
  filter: grayscale(1) contrast(1.3) brightness(1.02) sepia(1) hue-rotate(86deg) saturate(2.4); }
:root[data-lights="off"].motion .works-gallery .work:nth-child(odd) .mat-inner { animation: gallery-halo 5s ease-in-out infinite; }
:root[data-lights="off"].motion .works-gallery .work:nth-child(even) .mat-inner { animation: gallery-halo 5s ease-in-out 2.5s infinite; }
@keyframes gallery-halo { 50% { box-shadow: 0 0 70px 8px #5fe6a445, 0 0 150px 40px #5fe6a41c; } }
:root[data-lights="off"] .works-gallery .work .m::after { content: " · Glow preview"; color: var(--color-gold); }
@media (max-width: 759px) { .lights-bar { position: static; } }

/* =====================================================================
   WHITE WHEN THE LIGHTS ARE ON (16 Nov 2026, owner's request).
   Lights on: white page, black text, deep green accent.
   Lights off (gallery switch) and story step 5 stay dark with the glow.
   ===================================================================== */
:root:not([data-lights="off"]) {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f2;
  --color-surface: #ffffff;
  --color-ink: #0b0c0c;
  --color-ink-soft: #3f4441;
  --color-muted: #6a706c;
  --color-line: #e3e5e1;
  --color-gold: #0c6a45;        /* accent on white: deep glow green, readable */
  --color-gold-soft: #5fb98f;
  --color-dark: #0b0c0c;
  --color-dark-text: #ffffff;
  --color-dark-muted: #b9bdb9;
  --color-frame: #0b0c0c;
  --color-placeholder: #7b817d;
  color-scheme: light;
}
:root:not([data-lights="off"]) body { background: #ffffff; }
:root:not([data-lights="off"]) body::before { display: none; }
:root:not([data-lights="off"]) .site-header { background: color-mix(in srgb, #ffffff 86%, transparent); border-bottom-color: var(--color-line); }
:root:not([data-lights="off"]) .btn-dark, :root:not([data-lights="off"]) .action-bar a:first-child { background: #0b0c0c; color: #ffffff; }
:root:not([data-lights="off"]) .btn-dark:hover { background: #0c6a45; color: #ffffff; }
:root:not([data-lights="off"]) .action-bar a:first-child { background: #1f9d55; }
:root:not([data-lights="off"]) .btn-line { border-color: #0b0c0c; color: #0b0c0c; }
:root:not([data-lights="off"]) .btn-line:hover { background: #0b0c0c; color: #ffffff; }
:root:not([data-lights="off"]) .nav-toggle { border-color: #0b0c0c33; color: #0b0c0c; }
:root:not([data-lights="off"]) .eyebrow, :root:not([data-lights="off"]) .eyebrow::before { color: #0c6a45; }
:root:not([data-lights="off"]) .eyebrow::before { background: #0c6a45; }
:root:not([data-lights="off"]) .form input, :root:not([data-lights="off"]) .form select, :root:not([data-lights="off"]) .form textarea { background: #ffffff; border-color: #d5d8d3; }
:root:not([data-lights="off"]) .commission-form { background: #ffffff; box-shadow: 0 30px 60px -40px #0004; }
:root:not([data-lights="off"]) .quote { background: #ffffff; box-shadow: 0 20px 40px -32px #0003; }
:root:not([data-lights="off"]) .map { filter: grayscale(.85) contrast(.95); }
:root:not([data-lights="off"]) .ticker { background: #f5f5f2; }
:root:not([data-lights="off"]) .ticker i { box-shadow: none; }
:root:not([data-lights="off"]) .title-hero::before { background: radial-gradient(44% 64% at 74% 44%, #0c6a450d 0, transparent 70%); }
:root:not([data-lights="off"]) .title-art::after { background: radial-gradient(50% 100% at 50% 0, #0004, transparent 70%); }
:root:not([data-lights="off"]) .frame, :root:not([data-lights="off"]) .frame-gold, :root:not([data-lights="off"]) .frame-walnut {
  box-shadow: 0 0 0 clamp(4px, .5vw, 8px) #0b0c0c, 0 40px 50px -30px #0006, 0 8px 14px -6px #0004; }
:root:not([data-lights="off"]) .mat-inner { box-shadow: 0 24px 34px -26px #0006; outline-color: #0b0c0c; }

/* Dark bands become light rooms too */
:root:not([data-lights="off"]) .section-dark {
  --color-ink: #0b0c0c; --color-ink-soft: #3f4441; --color-muted: #6a706c; --color-line: #e3e5e1;
  --color-gold: #0c6a45; --color-gold-soft: #5fb98f; --color-dark-text: #0b0c0c; --color-dark-muted: #6a706c; --color-bg-alt: #ececE8;
  background: #f5f5f2; color: var(--color-ink-soft); }
:root:not([data-lights="off"]) .section-dark h2, :root:not([data-lights="off"]) .section-dark h3 { color: #0b0c0c; }
:root:not([data-lights="off"]) .section-dark .link-arrow, :root:not([data-lights="off"]) .section-dark .btn-line { color: #0b0c0c; border-color: #0b0c0c66; }
:root:not([data-lights="off"]) .section-dark .glow-invitation .btn:hover { background: #0b0c0c; color: #fff; }
:root:not([data-lights="off"]) .steps li { border-bottom-color: #e3e5e1; }
:root:not([data-lights="off"]) .section-shrine { background:
    radial-gradient(26% 46% at 18% 46%, #0c6a450a 0, transparent 70%),
    radial-gradient(26% 46% at 50% 46%, #0c6a450f 0, transparent 70%),
    radial-gradient(26% 46% at 82% 46%, #0c6a450a 0, transparent 70%),
    #f5f5f2 !important; }
:root:not([data-lights="off"]) .section-shrine .head-row p, :root:not([data-lights="off"]) .section-shrine a { color: #3f4441; }
:root:not([data-lights="off"]) .section-dark > .glow-field { display: none; }

/* Story: lit room is white; step 5 still goes dark */
.story { --st-bg: #ffffff; }
.story[data-scene="4"] { --st-bg: #ffffff; }
.story[data-scene="5"] { --st-bg: #030404; }
.story::before { background: radial-gradient(48% 60% at 26% 45%, #f2f4f1 0, transparent 72%); }
@media (max-width: 899px) { .story::before { background: radial-gradient(70% 40% at 50% 22%, #f2f4f1 0, transparent 72%); } }
.story-picture::before { box-shadow: 0 30px 40px -26px #0005, 0 6px 10px -6px #0004; }

/* Gallery lights bar on white */
:root:not([data-lights="off"]) .lights-bar { background: color-mix(in srgb, #ffffff 90%, transparent); border-color: #e3e5e1; box-shadow: 0 10px 30px -20px #0003; }
:root:not([data-lights="off"]) .lights-bar .lights-switch-track { background: #e3e5e1; border-color: #0b0c0c33; }
:root:not([data-lights="off"]) .lights-bar .lights-switch-knob { background: #0b0c0c; }
:root:not([data-lights="off"]) .story[data-scene="5"] .btn-dark { background: #5fe6a4; color: #04130c; }
:root:not([data-lights="off"]) .story[data-scene="5"] .btn-dark:hover { background: #ffffff; color: #04130c; }
