/* =====================================================================
   PLACE — design language
   One quiet painting (public domain). One giant name. A few plain sentences.
   Details only when someone asks for them.
   Reusable across apps: every app gets its own place (the scene) and its
   own two times of day (the --sky / --cloud colours below). The type,
   spacing, name treatment and "ask" rows stay the same.
   ===================================================================== */

:root {
  /* Page: day */
  --page: #ece8dc;
  --ink: #1b1a17;
  --ink-2: #57534a;          /* 6.6:1 on page */
  --rule: #cfc9b8;
  --cream: #efe9d6;          /* text on the scene */
  --night: #0d0c12;          /* buttons on cream, text on cream */

  /* Scene: dusk */
  --sky-1: #141936; --sky-2: #473863; --sky-3: #b9606a; --sky-4: #f2a966;
  --sun-1: rgba(255, 226, 170, 0.95); --sun-2: rgba(255, 170, 100, 0.45); --sun-3: rgba(255, 150, 90, 0);
  --far-1: #ffd7a3; --far-2: #c0766f;
  --mid-1: #f3ae84; --mid-2: #6c4463;
  --near-1: #c97d70; --near-2: #2a1f38;
  --hill-1: #23261c; --hill-2: #0c0d0b;
  --land: #0f100e;
  --rim: #ffb877;
  --shade: rgba(10, 8, 14, 0.62);   /* darkening at the bottom so text reads */

  /* Type */
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --t-sm: 0.9rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --t-letter: clamp(1.45rem, 1.1rem + 1.5vw, 2.25rem);
  --t-name: clamp(4rem, 16.4vw, 19rem);

  /* Space */
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 104px; --s-9: 160px;
  --gutter: clamp(18px, 5vw, 56px);
  --frame: 10px;             /* gap between the scene and the window edge */
  --radius: 28px;
  --measure: 40rem;          /* reading width */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0d0c12; --ink: #ece8dc; --ink-2: #aaa596; --rule: #2b2933;
    --sky-1: #03040b; --sky-2: #0a0f2a; --sky-3: #18204a; --sky-4: #2c3a70;
    --sun-1: rgba(214, 224, 255, 0.5); --sun-2: rgba(140, 160, 230, 0.18); --sun-3: rgba(120, 140, 220, 0);
    --far-1: #a9b4e0; --far-2: #333b6e;
    --mid-1: #7d88bf; --mid-2: #1a2048;
    --near-1: #4b5590; --near-2: #090b1c;
    --hill-1: #10131c; --hill-2: #050608;
    --land: #06070a;
    --rim: #b9c6ff;
    --shade: rgba(3, 4, 10, 0.6);
  }
}
:root[data-theme="dark"] {
  --page: #0d0c12; --ink: #ece8dc; --ink-2: #aaa596; --rule: #2b2933;
  --sky-1: #03040b; --sky-2: #0a0f2a; --sky-3: #18204a; --sky-4: #2c3a70;
  --sun-1: rgba(214, 224, 255, 0.5); --sun-2: rgba(140, 160, 230, 0.18); --sun-3: rgba(120, 140, 220, 0);
  --far-1: #a9b4e0; --far-2: #333b6e;
  --mid-1: #7d88bf; --mid-2: #1a2048;
  --near-1: #4b5590; --near-2: #090b1c;
  --hill-1: #10131c; --hill-2: #050608;
  --land: #06070a;
  --rim: #b9c6ff;
  --shade: rgba(3, 4, 10, 0.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 var(--t-md)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
h1, h2, p { margin: 0; }
.skip { position: absolute; left: -999px; background: var(--ink); color: var(--page); padding: var(--s-2) var(--s-4); z-index: 9; }
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ---------- Components ---------- */

/* Scene: the framed picture. Put any hand-built art inside. */
.scene { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sky-1); color: var(--cream); isolation: isolate; }
.scene__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.scene::before { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0.55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scene::after { /* shade so text reads */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 22%, transparent 48%, var(--shade));
}

/* Scene colours (the SVG reads the variables) */
.sky-1 { stop-color: var(--sky-1); } .sky-2 { stop-color: var(--sky-2); } .sky-3 { stop-color: var(--sky-3); } .sky-4 { stop-color: var(--sky-4); }
.sun-1 { stop-color: var(--sun-1); } .sun-2 { stop-color: var(--sun-2); } .sun-3 { stop-color: var(--sun-3); }
.far-1 { stop-color: var(--far-1); } .far-2 { stop-color: var(--far-2); }
.mid-1 { stop-color: var(--mid-1); } .mid-2 { stop-color: var(--mid-2); }
.near-1 { stop-color: var(--near-1); } .near-2 { stop-color: var(--near-2); }
.hill-1 { stop-color: var(--hill-1); } .hill-2 { stop-color: var(--hill-2); }
.land { fill: var(--land); }
.far { fill: color-mix(in srgb, var(--land) 72%, var(--mid-2)); }
.rim { fill: none; stroke: var(--rim); stroke-width: 7; opacity: 0.55; }
.star { fill: #fff6e0; }
.thread { fill: none; stroke: #fff3d6; stroke-width: 1.2; stroke-dasharray: 1 9; stroke-linecap: round; opacity: 0.55; }
.mote { fill: #fff6dc; display: none; }
@media (prefers-reduced-motion: no-preference) {
  .star { animation: twinkle 5s ease-in-out infinite; }
  @keyframes twinkle { 50% { opacity: 0.15; } }
  .mote { display: block; offset-rotate: 0deg; animation: rise 7s linear infinite; }
  @keyframes rise { from { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
  .north { animation: breathe 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes breathe { 50% { transform: scale(1.5); } }
}

/* Name: the giant word */
.name { white-space: nowrap; font: 500 var(--t-name)/0.8 var(--sans); letter-spacing: -0.07em; color: var(--cream); margin-left: -0.05em; }
.name span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .name span { animation: up 1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 150ms); }
  .rise { animation: up 1s var(--ease) both; animation-delay: var(--d, 0.7s); }
  @keyframes up { from { transform: translateY(0.22em); opacity: 0; } }
}

/* Button: one soft pill */
.btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 500 var(--t-md)/1 var(--sans); text-decoration: none; padding: 15px 22px; border-radius: 999px; background: var(--cream); color: var(--night); transition: gap 0.25s var(--ease), background 0.2s; }
.btn:hover { gap: 16px; background: #ffffff; }
.btn--ink { background: var(--ink); color: var(--page); }
.btn--ink:hover { background: var(--ink); }
.link { font-size: var(--t-sm); text-decoration: none; color: var(--cream); padding: 10px 16px; border-radius: 999px; background: rgba(13, 12, 18, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.link:hover { background: rgba(13, 12, 18, 0.6); }

/* Ask: a quiet row that opens when someone wants more */
.ask { border-bottom: 1px solid var(--rule); }
.ask summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); padding: 22px 0; font-size: var(--t-lg); letter-spacing: -0.01em; }
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after { content: "+"; font-weight: 400; color: var(--ink-2); transition: transform 0.3s var(--ease); }
.ask[open] summary::after { transform: rotate(45deg); }
.ask summary:hover { color: var(--ink-2); }
.ask__body { padding: 0 0 26px; max-width: 34rem; color: var(--ink-2); display: grid; gap: var(--s-3); }
.ask__body strong { color: var(--ink); font-weight: 500; }
.note { font-size: var(--t-sm); }

/* =====================================================================
   Page
   ===================================================================== */
.hero { margin: var(--frame); height: calc(100svh - 2 * var(--frame)); min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; }
.hero__top { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter) 0; font-size: var(--t-sm); }
.hero__top span { opacity: 0.85; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); align-items: end; gap: var(--s-6); padding: 0 var(--gutter) clamp(18px, 3vw, 40px); }
.hero__say { display: grid; gap: var(--s-5); justify-items: start; padding-bottom: clamp(0px, 1.2vw, 18px); }
.hero__say p { font-size: var(--t-lg); line-height: 1.3; text-wrap: pretty; }
@media (max-width: 900px) {
  :root { --t-name: 24.5vw; }
  .hero__bottom { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__say { order: -1; max-width: 24rem; }
  /* on a tall screen, keep the hilltop and the star in view */
  .scene__art { width: auto; height: 100%; aspect-ratio: 16 / 9; inset: 0 auto 0 50%; transform: translateX(-39%); }
}

.letter { width: min(100% - 2 * var(--gutter), var(--measure)); margin: var(--s-9) auto var(--s-8); font: 400 var(--t-letter)/1.32 var(--serif); letter-spacing: -0.012em; display: grid; gap: 1.1em; text-wrap: pretty; }
.letter em { font-style: italic; }
.letter .quiet { color: var(--ink-2); }

.more { width: min(100% - 2 * var(--gutter), var(--measure)); margin: 0 auto var(--s-9); }
.more h2 { font: 400 var(--t-sm)/1 var(--sans); color: var(--ink-2); padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); }

.close { margin: var(--frame); padding: clamp(72px, 14vw, 190px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: var(--s-6); background: linear-gradient(to bottom, var(--sky-1), var(--sky-2) 60%, var(--sky-3) 130%); }
.close p { font: 400 clamp(2.2rem, 1.2rem + 5vw, 5.5rem)/1 var(--serif); letter-spacing: -0.025em; }
.close .dot { width: 9px; height: 9px; border-radius: 50%; background: #fffaf0; box-shadow: 0 0 0 10px rgba(255, 233, 190, 0.12), 0 0 60px 26px rgba(255, 220, 160, 0.35); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--gutter) var(--s-6); font-size: var(--t-sm); color: var(--ink-2); }
.foot button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Option 8: a real painting instead of a drawn scene ---------- */
img.scene__art { object-fit: cover; }
.scene::before { opacity: 0.3; }
.scene::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 24%, transparent 42%, rgba(8, 7, 10, 0.78)); }
.close.scene::after { background: rgba(8, 7, 10, 0.45); }
.close .scene__art { position: absolute; }
@media (max-width: 900px) { img.scene__art { width: 100%; height: 100%; aspect-ratio: auto; inset: 0; transform: none; }  }
img.scene__art { transform: scale(1.04); }
@media (max-width: 900px) { img.scene__art { transform: scale(1.04); } }

/* Middle: one sentence, one small line */
.letter { --measure: 52rem; font-size: clamp(2rem, 1.1rem + 3.6vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; gap: var(--s-5); margin-block: clamp(96px, 16vw, 220px); text-align: center; text-wrap: balance; }
.letter__small { font: 400 var(--t-md)/1.4 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.more { --measure: 40rem; }

/* =====================================================================
   Middle picture (three versions). All use the chosen painting: --painting.
   ===================================================================== */
.vizzes { width: min(100% - 2 * var(--frame), 1240px); margin: 0 auto clamp(96px, 14vw, 200px); }
.letter { margin-bottom: clamp(48px, 7vw, 96px); }
.viz { margin: 0; color: var(--cream); }
.viz[hidden] { display: none; }
.viz__art { position: absolute; inset: 0; z-index: -3; background: var(--painting) center / cover no-repeat; }
.viz p { margin: 0; }

/* A: the painting, annotated. Memory in the sky, tools on the ground. */
.va { aspect-ratio: 16 / 9; }
.va.scene::after { background: linear-gradient(to bottom, rgba(8, 7, 10, 0.5), rgba(8, 7, 10, 0.15) 45%, rgba(8, 7, 10, 0.8)); }
.va__top { position: absolute; inset: 9% var(--gutter) auto; text-align: center; display: grid; gap: 10px; justify-items: center; font-size: var(--t-lg); }
.va__title { font: 400 clamp(2.2rem, 1rem + 5vw, 5rem)/1 var(--serif); letter-spacing: -0.025em; }
.va__line { position: absolute; left: 0; right: 0; top: 56%; border-top: 1px solid rgba(239, 233, 214, 0.75); text-align: center; }
.va__line span { position: relative; top: -1.05em; display: inline-block; padding: 0.45em 1.1em; border-radius: 999px; background: var(--cream); color: var(--night); font-weight: 500; font-size: var(--t-lg); }
.va__tools { position: absolute; inset: 56% var(--gutter) 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.va__tools li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: clamp(16px, 3vw, 34px); font-size: var(--t-md); text-align: center; line-height: 1.2; }
.va__tools li::before { content: ""; flex: 1; width: 1px; background: linear-gradient(to bottom, rgba(239, 233, 214, 0.75), rgba(239, 233, 214, 0.25)); }
@media (max-width: 760px) {
  .va { aspect-ratio: 3 / 4; }
  .va__tools { inset-inline: 10px; }
  .va__tools { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
  .va__tools li { font-size: var(--t-sm); padding-bottom: 14px; gap: 8px; }
  .va__tools li:nth-child(n + 4)::before { visibility: hidden; }
}

/* B: the painting cut into a stack. You on top, Recalled in the middle, tools below. */
.vb__stack { position: relative; isolation: isolate; aspect-ratio: 16 / 9; clip-path: url(#stack-wide); }
.vb__cell { position: absolute; display: grid; align-content: end; gap: 6px; padding: clamp(12px, 2.2vw, 28px); background: linear-gradient(to top, rgba(8, 7, 10, 0.7), rgba(8, 7, 10, 0.12)); font-size: var(--t-md); line-height: 1.25; }
.vb__big { font: 400 clamp(1.5rem, 0.8rem + 2.8vw, 3.2rem)/1 var(--serif); letter-spacing: -0.02em; }
.vb__mine { inset: 0 50.375% 60% 0; } .vb__team { inset: 0 0 60% 50.375%; }
.vb__core { inset: 41.333% 0 38% 0; align-content: center; justify-items: center; text-align: center; background: rgba(239, 233, 214, 0.92); color: var(--night); }
.vb__tool { top: 63.333%; bottom: 0; width: 16.0417%; background: rgba(8, 7, 10, 0.55); font-weight: 500; }
.vb__t1 { left: 0; } .vb__t2 { left: 16.7917%; } .vb__t3 { left: 33.5833%; } .vb__t4 { left: 50.375%; } .vb__t5 { left: 67.1667%; } .vb__t6 { left: 83.9583%; }
@media (max-width: 760px) {
  .vb__stack { aspect-ratio: 3 / 4; clip-path: url(#stack-tall); }
  .vb__cell { font-size: var(--t-sm); }
  .vb__mine { inset: 0 51% 70% 0; } .vb__team { inset: 0 0 70% 51%; }
  .vb__core { inset: 31.5% 0 53% 0; }
  .vb__tool { width: 32%; top: 48.5%; bottom: 26.5%; }
  .vb__t1, .vb__t4 { left: 0; } .vb__t2, .vb__t5 { left: 34%; } .vb__t3, .vb__t6 { left: 68%; }
  .vb__t4, .vb__t5, .vb__t6 { top: 75%; bottom: 0; }
}

/* C: fragments or the whole picture. */
.vc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); color: var(--ink); }
.vc__side { display: grid; gap: var(--s-4); align-content: start; }
.vc__frags { aspect-ratio: 4 / 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: clamp(10px, 2vw, 22px); }
.vc__frag { grid-column: span 2; position: relative; overflow: hidden; border-radius: 16px; background: var(--painting) var(--x) var(--y) / 330% auto no-repeat; filter: grayscale(1) contrast(0.9) brightness(0.85); display: grid; align-content: end; padding: 12px 14px; color: var(--cream); font-size: var(--t-sm); font-weight: 500; }
.vc__frag::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 7, 10, 0.7), transparent 60%); }
.vc__frag span { position: relative; }
.vc__frag:nth-child(n + 4) { grid-column: span 3; }
.vc__frag:nth-child(1) { transform: rotate(-1.5deg); } .vc__frag:nth-child(2) { transform: translateY(8px); } .vc__frag:nth-child(3) { transform: rotate(1.2deg); } .vc__frag:nth-child(5) { transform: rotate(-0.8deg) translateY(4px); }
.vc__whole { aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; align-content: end; padding: clamp(16px, 3vw, 32px); }
.vc__whole p { font: 500 clamp(2.4rem, 1rem + 5vw, 5rem)/0.85 var(--sans); letter-spacing: -0.06em; color: var(--cream); }
.vc figcaption { font-size: var(--t-lg); line-height: 1.35; color: var(--ink-2); max-width: 26rem; }
.vc figcaption strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .vc { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Top links ---------- */
.nav { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 14px); padding: 5px 5px 5px 14px; border-radius: 999px; background: rgba(13, 12, 18, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a:not(.btn) { color: var(--cream); text-decoration: none; padding: 8px 8px; opacity: 0.9; white-space: nowrap; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }
.btn--sm { padding: 10px 16px; font-size: var(--t-sm); }
@media (max-width: 760px) { .hero__tag, .nav__extra { display: none; } .hero__top { justify-content: flex-end; } }

/* ---------- Middle, final: fragments or the whole picture ---------- */
.vc__frag { background-image: var(--painting-mid); }
.vc__layers { position: relative; aspect-ratio: 4 / 3; }
.vc__sheet { position: absolute; border-radius: var(--radius); overflow: hidden; color: var(--cream); background: var(--painting-mid) center / cover no-repeat; isolation: isolate; }
.vc__sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; }
/* back layer: the organisation, wider and behind */
.vc__sheet--org { inset: 0 0 13% 9%; }
.vc__sheet--org { background-position: right top; background-size: 135%; }
.vc__sheet--org::before { background: linear-gradient(to bottom, rgba(8, 7, 10, 0.45), rgba(8, 7, 10, 0.25)); }
/* front layer: you */
.vc__sheet--you { inset: 15% 9% 0 0; box-shadow: 0 -14px 40px -8px rgba(0, 0, 0, 0.55), 14px 0 40px -8px rgba(0, 0, 0, 0.45); display: grid; align-content: space-between; }
.vc__sheet--you::before { background: linear-gradient(to bottom, rgba(8, 7, 10, 0.5), transparent 35%, transparent 55%, rgba(8, 7, 10, 0.65)); }
.vc__tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: clamp(10px, 1.6vw, 18px) clamp(14px, 2vw, 24px); font-size: var(--t-sm); line-height: 1.2; }
.vc__tag strong { font-weight: 500; font-size: var(--t-md); }
.vc__tag span { opacity: 0.8; }
.vc__name { padding: 0 clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 26px); font: 500 clamp(2.2rem, 1rem + 4.4vw, 4.6rem)/0.85 var(--sans); letter-spacing: -0.06em; }

/* ---------- Closing A: the name as a window onto the painting ---------- */
.end[hidden] { display: none; }
.end--a { overflow: hidden; text-align: center; display: grid; justify-items: center; gap: var(--s-6); padding-top: clamp(24px, 5vw, 72px); }
.end__line { font: 400 clamp(1.8rem, 1rem + 3vw, 3.4rem)/1.05 var(--serif); letter-spacing: -0.025em; }
.end__word { margin: clamp(0px, 1vw, 16px) 0 -0.1em; padding: 0 0.04em; font: 500 24vw/1 var(--sans); letter-spacing: -0.07em; white-space: nowrap; color: transparent; background: var(--painting) center 42% / cover no-repeat; -webkit-background-clip: text; background-clip: text; }

/* ---------- Pricing page ---------- */
.plain { width: min(100% - 2 * var(--gutter), 46rem); margin: clamp(48px, 9vw, 120px) auto; }
.plain h1, .plain h2 { font: 400 clamp(2.2rem, 1.2rem + 4vw, 4.2rem)/1.05 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.plans { margin: var(--s-7) 0 var(--s-5); border-top: 1px solid var(--rule); }
.plans > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.plans b { font-weight: 500; font-size: var(--t-lg); }
.plans span { color: var(--ink-2); }
.plans em { font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--serif); font-style: normal; white-space: nowrap; }
.plans em small { font: 400 var(--t-sm)/1 var(--sans); color: var(--ink-2); }
.plain .note { color: var(--ink-2); margin-bottom: var(--s-6); }
@media (max-width: 560px) { .plans > div { grid-template-columns: 1fr auto; } .plans span { grid-column: 1 / -1; grid-row: 2; } }
.plain h2 { text-align: center; font-weight: 400; }
.plain { margin-block: 0 clamp(96px, 14vw, 200px); scroll-margin-top: 40px; }
.plain .note { margin-bottom: 0; text-align: center; }

/* =====================================================================
   Pricing: three plain columns. Figures use the same font as the name.
   ===================================================================== */
.prices { width: min(100% - 2 * var(--gutter), 1160px); margin: 0 auto clamp(96px, 14vw, 200px); scroll-margin-top: 40px; }
.prices [hidden] { display: none !important; }
.prices h3 { font: 400 var(--t-md)/1.2 var(--sans); color: var(--ink-2); margin: 0; }
.prices p, .prices ul { margin: 0; }
.prices ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.fig { font: 500 clamp(3.6rem, 2rem + 5.4vw, 7rem)/0.9 var(--sans); letter-spacing: -0.065em; color: var(--ink); white-space: nowrap; }
.fig small { font: 400 var(--t-md)/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.plainlink { color: var(--ink); font-weight: 500; text-decoration: none; }
.plainlink:hover { text-decoration: underline; }
.prices__note { margin-top: var(--s-6) !important; font-size: var(--t-sm); color: var(--ink-2); }

/* A: three plain columns */
.pa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pa__col { display: grid; grid-template-rows: auto auto auto 1fr auto; justify-items: start; gap: 10px; padding: 6px clamp(18px, 3vw, 40px) 6px; border-left: 1px solid var(--rule); }
.pa__col:first-child { padding-left: 0; border-left: 0; }
.pa__col .fig { margin-top: 14px; }
.pa__sub { font-size: var(--t-lg); color: var(--ink); }
.pa__col ul { margin: var(--s-4) 0 var(--s-5); color: var(--ink-2); align-self: start; }
.pa__col .plainlink { padding: 15px 0; }
@media (max-width: 800px) {
  .pa { grid-template-columns: 1fr; }
  .pa__col, .pa__col:first-child { padding: var(--s-5) 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.pa .fig { font-size: clamp(3.2rem, 1.8rem + 4.2vw, 5.6rem); }

/* ---------- Headline in the middle: the name's font ---------- */
.line span { display: block; }
.letter .line { font: 500 clamp(2rem, 1.1rem + 3.6vw, 4rem)/1.02 var(--sans); letter-spacing: -0.055em; }

/* ---------- Closing: the line sits directly on top of the painted name ---------- */
.prices { margin-bottom: clamp(72px, 9vw, 128px); }
.end--a { display: grid; justify-content: center; justify-items: start; text-align: left; gap: 0; padding-top: 0; }
.end__line { font: 500 clamp(1.5rem, 0.9rem + 2.6vw, 3rem)/1.05 var(--sans); letter-spacing: -0.05em; margin: 0 0 0 2.4vw; }
.end__word { margin-top: -0.02em; }

/* ---------- Day and night: keep every painting readable ---------- */
:root { --word-veil: transparent; --edge: transparent; }
:root[data-tone="light"] { --word-veil: rgba(27, 26, 23, 0.32); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --edge: rgba(236, 232, 220, 0.14); }
  :root:not([data-theme="light"])[data-tone="light"] { --word-veil: transparent; }
  :root:not([data-theme="light"])[data-tone="dark"] { --word-veil: rgba(236, 232, 220, 0.34); }
  :root:not([data-theme="light"])[data-tone="mid"] { --word-veil: rgba(236, 232, 220, 0.1); }
}
:root[data-theme="dark"] { --edge: rgba(236, 232, 220, 0.14); }
:root[data-theme="dark"][data-tone="light"] { --word-veil: transparent; }
:root[data-theme="dark"][data-tone="dark"] { --word-veil: rgba(236, 232, 220, 0.34); }
:root[data-theme="dark"][data-tone="mid"] { --word-veil: rgba(236, 232, 220, 0.1); }
:root[data-theme="light"] { --edge: transparent; }
:root[data-theme="light"][data-tone="light"] { --word-veil: rgba(27, 26, 23, 0.32); }
/* the painted name: a thin veil over the painting when it would otherwise vanish */
.end__word { background-image: linear-gradient(var(--word-veil), var(--word-veil)), var(--painting); background-position: center 42%; background-size: cover; background-repeat: no-repeat; }
/* at night, dark pictures get a faint edge so they do not melt into the page */
.hero.scene, .vc__frag, .vc__sheet { box-shadow: 0 0 0 1px var(--edge); }
.vc__sheet--you { box-shadow: 0 0 0 1px var(--edge), 0 -14px 40px -8px rgba(0, 0, 0, 0.55), 14px 0 40px -8px rgba(0, 0, 0, 0.45); }

/* ---------- The collection: today's painting, its caption, and "next" ---------- */
img.scene__art:not([src]) { opacity: 0; }
img.scene__art { transition: opacity 0.35s ease; }
/* the caption sits inside the picture, top left, so the frame keeps its even margin */
.hero__top { align-items: flex-start; }
.caption { margin: 0; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 0.8rem; line-height: 1.45; color: var(--cream); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.caption__label { font-weight: 500; }
.caption__next { font: inherit; color: inherit; background: none; border: 0; padding: 0 4px; cursor: pointer; }
.caption__next:hover { opacity: 0.7; }
@media (max-width: 760px) {
  .hero__top { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .hero__top .nav { align-self: flex-end; }
  .caption { font-size: 0.74rem; }
}
