:root {
  --ah-border: #A18556;
  --ah-paper: #FFFCF6;
  --ah-base: #F7F3EB;
  --ah-gold: #76551C;
  --ah-action: #D8BB78;
  --ah-action-hover: #E3C987;
  --ah-ink: #24180a;
  --ah-muted: #635644;
  --edge: clamp(20px, 4vw, 96px);
  color-scheme: light;
  color: var(--ah-ink);
  background: var(--ah-base);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  --ah-border: #806A3F; --ah-paper: #1B140C; --ah-base: #100B06;
  --ah-gold: #D3A72A; --ah-action: #D3A72A; --ah-action-hover: #E0B83A;
  --ah-ink: #f3ebde; --ah-muted: #c3b7a5; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ah-border: #806A3F; --ah-paper: #1B140C; --ah-base: #100B06;
    --ah-gold: #D3A72A; --ah-action: #D3A72A; --ah-action-hover: #E0B83A;
    --ah-ink: #f3ebde; --ah-muted: #c3b7a5; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; }
::selection { color: #160f05; background: #e3c987; }
.edge { padding-inline: var(--edge); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--ah-gold); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 5px; }
button { cursor: pointer; }
button:disabled, fieldset:disabled button { cursor: not-allowed; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 5; padding: 14px; background: var(--ah-paper); }
.skip-link:focus { top: 10px; }
.masthead { min-height: 64px; padding-inline: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--ah-border); background: var(--ah-paper); box-shadow: 0 8px 22px #24180a0b; }
.brand { display: flex; align-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.brand img { display: block; width: 160px; height: auto; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.opening { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ah-muted); }
.opening > span { width: 5px; height: 5px; border-radius: 50%; background: var(--ah-gold); }
.theme-switch { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: var(--ah-gold); background: transparent; border: 0; border-radius: 50%; }
.eyebrow { color: var(--ah-gold); font-size: .7rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; line-height: 1.8; margin: 0 0 24px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-wrap: balance; overflow-wrap: anywhere; }
em { font-weight: 400; }
h2 { font-size: clamp(2.5rem, 4.4vw, 5.5rem); letter-spacing: -.05em; line-height: 1.08; margin: 0 0 26px; }
p { line-height: 1.8; color: var(--ah-muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 16px 24px; min-height: 56px; background: var(--ah-action); color: #160f05; border: 0; border-radius: 4px; text-decoration: none; font-size: .875rem; font-weight: 650; line-height: 1.4; }
.button:hover { color: #160f05; background: var(--ah-action-hover); }
.button > span { font-size: 1.3rem; }
/* Match the existing storefront hero's geometry and type, including its mobile order. */
.hero { --progress: 0; --hero-image-filter: none; border-bottom: 1px solid var(--ah-border); }
.hero-body { position: relative; padding-top: 24px; }
.hero-grid, .hero-foot-content { width: 100%; max-width: 1600px; margin-inline: auto; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 2.5vw, 40px); align-items: center; padding: 40px 0 44px; min-height: min(880px, calc(100svh - 160px)); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: clamp(27rem, 31vw, 43rem); justify-self: end; }
.hero-kicker { display: flex; gap: 12px; align-items: center; color: var(--ah-muted); font-size: .7rem; letter-spacing: .12em; margin: 0; }
.hero-kicker > span { display: block; width: 28px; height: 1px; background: var(--ah-gold); }
.hero h1 { margin: 24px 0; letter-spacing: -.06em; line-height: .89; }
.hero-opening { display: block; font-size: clamp(5.5rem, 8.5vw, 12rem); }
.hero h1 em { display: block; margin-top: 24px; font-size: clamp(2rem, 3.7vw, 5.5rem); letter-spacing: -.055em; line-height: 1.08; }
.gold { color: var(--ah-gold); }
.description { max-width: 27em; margin: 28px 0; font-size: .95rem; line-height: 1.85; }
.still-life { position: relative; align-self: stretch; min-height: 530px; min-width: 0; margin: 0; }
.image-aperture { position: relative; width: 100%; height: 100%; overflow: hidden; clip-path: inset(0 round 48% 48% 2% 2%); background: var(--ah-paper); }
.image-aperture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: var(--hero-image-filter); }
.window-message { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 40px 20px 16%; color: #fffaf0; text-align: center; background: linear-gradient(180deg, transparent 25%, #100b0640 48%, #100b06c9 100%); }
.window-message > span { color: #fff; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 8px #100b06; }
.window-message .button { margin-top: 24px; flex-shrink: 0; min-height: 48px; padding: 12px 20px; border: 1px solid #fffaf099; border-radius: 999px; background: #100b064d; color: #fffaf0; font-size: .8rem; font-weight: 500; letter-spacing: .025em; }
.window-message .button:hover { background: #fffaf0; color: #24180a; border-color: #fffaf0; }
.window-message .signup-arrow { flex: 0 0 auto; }
.window-message .coming-soon-dot { color: inherit; }
.window-message strong { color: #fff; max-width: 100%; overflow-wrap: anywhere; font: italic 400 clamp(2.8rem, 5vw, 5.5rem)/1.15 Georgia, serif; letter-spacing: -.04em; margin-top: 16px; text-shadow: 0 2px 16px #100b0670; }
.hero-side-note { position: absolute; top: 76px; right: clamp(8px, 1vw, 20px); writing-mode: vertical-rl; font-size: .6rem; letter-spacing: .14em; color: var(--ah-muted); }
.hero-foot { border-top: 1px solid var(--ah-border); font-size: .7rem; color: var(--ah-muted); }
.hero-foot-content { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 94px; padding-block: 12px 38px; }
.hero-foot-content > span { display: inline-flex; align-items: center; min-height: 44px; }
.hero-foot a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; text-decoration: none; }
.hero-thread { position: absolute; left: 0; bottom: 20px; width: 100%; height: 28px; color: var(--ah-gold); pointer-events: none; }
:root[data-theme="dark"] .hero { --hero-image-filter: brightness(.56) saturate(.72); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { --hero-image-filter: brightness(.56) saturate(.72); } }
.section-inner { width: 100%; max-width: 1280px; margin-inline: auto; }
.join, .privacy, .story { padding-block: clamp(56px, 7vw, 110px); }
.join { padding-block: clamp(36px, 4vw, 56px); background: var(--ah-base); border-top: 1px solid var(--ah-border); scroll-margin-top: 20px; }
.join-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.join-copy h2 { font-size: clamp(2.4rem, 3.2vw, 3.8rem); max-width: 10em; line-height: 1.1; }
.join-copy p:last-child { max-width: 40ch; margin-bottom: 0; }
.signup-panel { padding-top: 4px; min-width: 0; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
label { display: block; font-size: .875rem; line-height: 1.7; }
.email-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.email-row > input { flex: 1 1 180px; width: 100%; min-width: 0; padding: 16px; color: var(--ah-ink); background: var(--ah-base); border: 1px solid var(--ah-border); border-radius: 3px; min-height: 54px; }
input::placeholder { color: var(--ah-muted); opacity: 1; }
.email-row > button { flex: 0 0 auto; padding-inline: 20px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; color: var(--ah-muted); cursor: pointer; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0; accent-color: var(--ah-gold); }
.form-status { min-height: 1.8em; margin: 16px 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.form-status:empty { min-height: 0; margin-top: 0; }
.form-status[data-state="success"] { color: var(--ah-gold); }
.form-status[data-state="error"] { color: var(--ah-ink); font-weight: 600; }
.fine-print { font-size: .75rem; margin: 12px 0 0; }
.privacy { border-top: 1px solid var(--ah-border); padding-block: 44px; }
.privacy-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.privacy-inner > .eyebrow, .privacy h2 { grid-column: 1 / -1; }
.privacy .eyebrow { margin-bottom: 12px; }
.privacy h2 { font-size: 2rem; margin-bottom: 16px; }
.privacy p:not(.eyebrow) { font-size: .8rem; margin: 0; }
.privacy a { overflow-wrap: anywhere; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ah-border); padding-block: 24px; color: var(--ah-muted); font-size: .75rem; line-height: 1.7; }
.footer-divider { color: var(--ah-gold); padding-inline: 12px; }
.action-page { min-height: calc(100svh - 180px); display: grid; align-items: center; padding-block: 72px; }
.action-page section { max-width: 850px; }
.action-page h1 { font-size: clamp(2.8rem, 5vw, 5.5rem); }
.action-page .button { margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: background .2s; }
  .hero[data-motion="true"] img { transform: translateY(calc(-3% + var(--progress) * 12%)) scale(calc(1.08 + var(--progress) * .12)); }
}
@media (max-width: 1100px) { .join { gap: 36px; } }
@media (max-width: 899px) {
  .masthead { min-height: 56px; padding-inline: 16px; }
  .brand img { width: 144px; }
  .hero-body { padding-top: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'kicker' 'title' 'art' 'description'; gap: 0; padding: 28px 0 12px; min-height: 0; }
  .hero-copy { display: contents; }
  .hero-kicker { grid-area: kicker; }
  .hero h1 { grid-area: title; margin: 20px 0; }
  .hero-opening { font-size: clamp(4.5rem, 13vw, 7.5rem); }
  .hero-opening br { display: none; }
  .hero h1 em { font-size: clamp(2rem, 7vw, 3.6rem); margin-top: 12px; }
  .description { grid-area: description; margin: 20px 0; max-width: 35em; font-size: .9rem; }
  .still-life { grid-area: art; min-height: 0; height: clamp(350px, 80vw, 520px); min-height: 22rem; }
  .image-aperture { clip-path: inset(0 round 42% 42% 2% 2%); }
  .image-aperture img { object-position: 65% 58%; }
  .hero-side-note { display: none; }
  .hero-foot-content { gap: 12px; font-size: .65rem; padding-block: 8px 38px; }
  
}
@media (max-width: 700px) {
  .header-actions { gap: 8px; }
  .opening { font-size: 11px; }
  .join-inner { grid-template-columns: 1fr; gap: 24px; }
  .privacy-inner { grid-template-columns: 1fr; gap: 14px; }
  .email-row > button { width: 100%; }
  .privacy h2 { margin: 0; }
  .footer { gap: 12px 24px; }
}
@media (max-width: 370px) { .opening { display: none; } }

.story { background: var(--ah-paper); }
.story-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.story-intro h2 { font-size: clamp(2.8rem, 4.5vw, 5rem); margin: 0; }
.story-intro > p { max-width: 30ch; font-size: .95rem; margin: 0; }
.resin-story-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 150px); align-items: start; }
/* The corner shares the ornament's centre: half its SVG box plus its inset. */
.resin-story-visual { --story-ornament-size: 128px; --story-ornament-inset: 16px; --story-corner-radius: calc(var(--story-ornament-size) / 2 + var(--story-ornament-inset)); position: sticky; top: calc(0px + 24px); min-width: 0; }
.resin-story-frame { position: relative; padding-right: 36px; padding-bottom: 58px; }
.resin-story-stage { position: relative; aspect-ratio: 1.15; max-height: calc(100svh - 0px - 160px); min-height: 360px; overflow: hidden; border-radius: 3px 3px var(--story-corner-radius) 3px; background: var(--ah-base); isolation: isolate; }
.resin-story-image { position: absolute; inset: 0; overflow: hidden; }
.resin-story-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resin-story-image[data-failed="true"] img { visibility: hidden; }
.resin-story-image-error { position: absolute; inset: 0; display: grid; place-content: center; padding: 32px; text-align: center; font-size: .85rem; color: var(--ah-muted); }
.resin-story-stage-label { position: absolute; z-index: 4; top: 20px; left: 20px; padding: 9px 12px; background: #100b06e8; color: #fff7e8; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; pointer-events: none; }
.resin-story-ornament { position: absolute; bottom: var(--story-ornament-inset); right: var(--story-ornament-inset); width: var(--story-ornament-size); height: var(--story-ornament-size); z-index: 4; color: #D3A72A; pointer-events: none; }
.resin-story-next { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; border-radius: inherit; touch-action: pan-y; }
.resin-story-next:focus-visible { outline: 3px solid var(--ah-gold); outline-offset: -6px; }
.resin-story-controls { position: absolute; inset: 0; pointer-events: none; }
.resin-story-rail { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.resin-story-rail-base { stroke: var(--ah-border); stroke-width: 1; }
.resin-story-rail-highlight { stroke: var(--experience-gold, var(--ah-gold)); stroke-width: 3; stroke-linecap: round; }
.resin-story-control { position: absolute; display: block; border: 0; color: var(--experience-muted, var(--ah-muted)); background: transparent; font: inherit; padding: 0; cursor: pointer; min-height: 44px; pointer-events: auto; }
.resin-story-control-text { position: absolute; top: 0; left: 0; display: inline-flex; align-items: baseline; gap: 8px; width: max-content; white-space: nowrap; clip-path: inset(50%); }
.resin-story-control-text > span, .resin-story-control-curve text { font-size: .7rem; letter-spacing: .03em; }
.resin-story-control small, .resin-story-control-number { font-size: .6rem; letter-spacing: .12em; }
.resin-story-control-curve { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; pointer-events: none; }
.resin-story-control[aria-selected="true"], .resin-story-control[aria-pressed="true"] { color: var(--experience-gold, var(--ah-gold)); }
.resin-story-control:hover { color: var(--experience-gold, var(--ah-gold)); }
.resin-story-control:focus-visible { outline: 2px solid var(--experience-gold, var(--ah-gold)); outline-offset: 4px; border-radius: 2px; }
.resin-story-frame:has([data-stacked="true"]) { padding-bottom: 0; }
.resin-story-controls[data-stacked="true"] { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 32px; margin-right: -36px; }
.resin-story-controls[data-stacked="true"] .resin-story-control { position: relative; padding-block: 8px; }
.resin-story-controls[data-stacked="true"] .resin-story-control-text { position: static; clip-path: none; }
.resin-story-controls[data-stacked="true"] .resin-story-control-curve { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .resin-story-rail-highlight { transition: stroke-dasharray .48s cubic-bezier(.22,1,.36,1), stroke-dashoffset .48s cubic-bezier(.22,1,.36,1); }
}

.resin-story-chapter { position: relative; min-height: clamp(440px, 68svh, 700px); padding: 60px 0; display: flex; flex-direction: column; justify-content: center; scroll-margin-top: calc(0px + 30px); }
.resin-story-chapter + .resin-story-chapter { border-top: 1px solid var(--ah-border); }
.resin-story-chapter[hidden] { display: none; }
.resin-story[data-immersive="false"] .resin-story-chapters { display: grid; }
.resin-story[data-immersive="false"] .resin-story-chapter { grid-area: 1 / 1; }
.resin-story[data-immersive="false"] .resin-story-chapter[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
.resin-story-number { font-family: Georgia, serif; font-size: 4.5rem; font-style: italic; line-height: 1; color: var(--ah-gold); }
.resin-story-chapter h3 { margin: 24px 0 20px; font-family: Georgia, serif; font-size: clamp(2.2rem, 3.1vw, 4.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.resin-story-chapter p { max-width: 30em; color: var(--ah-muted); font-size: 1rem; line-height: 1.85; margin: 0 0 24px; }
.resin-story-footnote { margin: 16px 0 0; color: var(--ah-muted); font-size: .65rem; line-height: 1.8; }
.resin-story-image { opacity: 0; }
.resin-story-image[data-active="true"] { opacity: 1; z-index: 2; }
.resin-story-image img { object-position: 35% center; }
.resin-story-image:nth-child(2) img { object-position: 60% center; }
.resin-story-image:nth-child(3) img { object-position: center; }
.resin-story:not([data-immersive="true"]) .resin-story-visual { position: static; }
.resin-story[data-immersive="false"] .resin-story-chapter + .resin-story-chapter { border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero[data-motion="true"] .thread-progress { stroke-dasharray: 1; stroke-dashoffset: calc(.76 * (1 - var(--progress))); }
  .resin-story-ornament { transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
  .resin-story-image { transition: opacity .35s ease-in-out; }
  .resin-story-image img { filter: blur(8px); transform: scale(1.06); transition: filter .4s ease-in-out, transform .55s cubic-bezier(.22,1,.36,1); }
  .resin-story-image[data-active="true"] img { filter: blur(0); transform: scale(1.035); }
}
@media (max-width: 1099px), (max-height: 699px) {
  .resin-story-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .resin-story-visual { position: static; }
  .resin-story-chapter { min-height: 410px; padding: 20px 0; }
  .resin-story-chapter + .resin-story-chapter { border-top: 0; }
  .resin-story-stage { max-height: none; min-height: 300px; }
}
@media (max-width: 899px) {
  .story-intro { display: block; }
  .story-intro > p { margin-top: 24px; max-width: 40ch; }
  .resin-story-layout { display: block; }
  .resin-story-stage { min-height: 0; aspect-ratio: 1.2; }
  .resin-story-chapter { min-height: 320px; padding: 32px 0 0; }
  .resin-story-number { font-size: 2.8rem; }
  .resin-story-chapter h3 { font-size: clamp(2rem, 7vw, 3.3rem); margin-top: 18px; }
  .resin-story-chapter p { font-size: .9rem; }
  .resin-story-visual { --story-ornament-size: 88px; }
}
@media (max-width: 380px) {
  .window-message strong { font-size: 2.3rem; }
  .resin-story-control-text > span, .resin-story-control-curve text { font-size: .65rem; }
  .resin-story-control small, .resin-story-control-number { font-size: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .resin-story-visual { position: static; }
  .resin-story-chapter { min-height: 0; padding: 20px 0 44px; }
}

.footer { padding-inline: max(var(--edge), calc((100% - 1280px) / 2)); align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.legal-shell .masthead-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legal-shell .footer { padding-inline: max(var(--edge), calc((100% - 1040px) / 2)); }
.legal-page { padding-block: 0; }
.legal-inner { max-width: 1040px; margin-inline: auto; }
.legal-intro { --legal-space: clamp(28px, 3vw, 40px); padding-block: var(--legal-space); }
.legal-intro .eyebrow { margin-bottom: 24px; }
.legal-intro-grid { max-width: 820px; margin-inline: auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.legal-title { min-width: 0; }
.legal-contents { min-width: 0; max-width: 38%; }
.legal-contents ol { margin: 0; padding: 0; list-style: none; }
.legal-contents a { display: flex; align-items: baseline; gap: 14px; padding-block: 12px; min-height: 44px; font-size: .8rem; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.legal-contents a > span { color: var(--ah-gold); font-size: .65rem; flex-shrink: 0; }
@media (max-width: 699px) {
  .legal-intro-grid { flex-direction: column; }
  .legal-contents { max-width: 100%; }
}

.legal-page h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 6rem); letter-spacing: -.055em; line-height: 1.02; }
.legal-page h1 em { display: inline-block; }
.legal-thread { display: block; width: 100%; height: 28px; margin-top: var(--legal-space); color: var(--ah-gold); }
.legal-layout { max-width: 820px; margin-inline: auto; }
.legal-date { font-size: .7rem; line-height: 1.8; margin: 0; }
.legal-date time { color: var(--ah-ink); }
.legal-body { min-width: 0; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--ah-border); border-radius: 4px 4px 48px 4px; background: var(--ah-paper); }
.legal-body section { position: relative; padding-block: 32px; scroll-margin-top: 32px; }
.legal-body section:first-child { padding-top: 0; }
.legal-body section:last-child { padding-bottom: 0; }
.legal-body section + section { border-top: 1px solid var(--ah-border); }
.legal-section-number { display: block; color: var(--ah-gold); font: italic 1.25rem/1.4 Georgia, serif; margin-bottom: 12px; }
.legal-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 18px; letter-spacing: -.03em; line-height: 1.2; text-wrap: auto; }
.legal-body p { margin: 14px 0 0; line-height: 1.9; font-size: .9rem; overflow-wrap: anywhere; }
.legal-return { max-width: 820px; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-block: 32px; }
.legal-return > span { font: italic 1.3rem/1.5 Georgia, serif; }
@media (max-width: 899px) {
  .legal-body { border-bottom-right-radius: 32px; }
}
@media (max-width: 380px) { .legal-page h1 { font-size: 3rem; } }

/* Native scrolling carries the chapters past the centred heading and image. */
.story-intro { display: block; margin-bottom: 28px; }
.story-intro .eyebrow { margin-bottom: 12px; }
.story-intro h2 { font-size: clamp(2.5rem, 4.2vw, 4rem); }
.resin-story[data-immersive="true"] .resin-story-visual { position: sticky; top: max(24px, calc((100svh - var(--story-visual-height, 650px)) / 2)); }
.resin-story[data-immersive="true"] .resin-story-stage { height: min(45svh, 440px); min-height: 260px; max-height: calc(100svh - 330px); aspect-ratio: auto; }
.resin-story[data-immersive="true"] .resin-story-chapter { min-height: 100svh; padding: 60px 0; }
.resin-story[data-immersive="true"] .resin-story-chapter h3 { font-size: clamp(2rem, 3vw, 3.4rem); }

/* Use the current theme for browser scrollbars; preserve OS forced-colour controls. */
html { scrollbar-color: var(--ah-gold) var(--ah-base); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ah-base); }
::-webkit-scrollbar-thumb { background: var(--ah-gold); border: 3px solid var(--ah-base); border-radius: 12px; }
@media (forced-colors: active) { html { scrollbar-color: auto; } }

.still-life::after { content: ''; position: absolute; inset: 0; z-index: 2; border: 4px solid #D3A72A; border-radius: 48% 48% 2% 2%; pointer-events: none; }
.image-aperture::after { content: ''; position: absolute; inset: 10px; z-index: 2; border: 1px solid #D3A72A; border-radius: 48% 48% 2% 2%; box-shadow: inset 0 0 0 1px #26190d24; pointer-events: none; }
@media (max-width: 899px) {
  .still-life::after { border-radius: 42% 42% 2% 2%; }
  .image-aperture::after { border-radius: 42% 42% 2% 2%; inset: 8px; }
}

/* A clear, centred control on narrow screens, shared by every public page. */
.theme-switch svg { grid-area: 1 / 1; width: 28px; height: 28px; }
.theme-switch [data-icon] { display: none; }
.theme-switch[data-next-theme="light"] [data-icon="sun"],
.theme-switch[data-next-theme="dark"] [data-icon="moon"] { display: block; }
.email-row > button { min-width: 160px; }
@media (min-width: 900px) {
  .email-row { flex-wrap: nowrap; }
  .email-row > input { flex: 1 1 auto; width: auto; }
}
.signup-panel .form-status, .signup-panel .fine-print { text-align: center; }
@media (max-width: 899px) {
  .masthead, .legal-shell .masthead-inner { flex-direction: row; justify-content: space-between; gap: 16px; }
  .masthead { min-height: 64px; padding-block: 8px; }
  .brand { flex: 0 0 44px; }
  .brand img { width: 44px; height: 44px; }
  .header-actions { flex: 1; flex-direction: row; gap: 16px; }
  .opening { display: inline-flex; margin-inline: auto; white-space: nowrap; }
  .join-copy h2, .join-copy p { margin-inline: auto; }
  .email-row > button { width: 100%; max-width: 100%; }
  .footer { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .footer nav { justify-content: center; }
}
@media (max-width: 899px) {
  .hero-kicker { justify-self: start; text-align: left; }
  .description, .resin-story-chapter p { margin-inline: auto; }
  .story-intro > div, .resin-story-controls[data-stacked="true"] { justify-content: center; }
  .legal-return { justify-content: center; text-align: center; }
  .resin-story[data-mobile-motion="true"] > .section-inner { min-height: calc(var(--story-mobile-height, 660px) + 180svh); }
  .resin-story[data-mobile-motion="true"] .resin-story-layout { position: sticky; top: max(16px, calc((100svh - var(--story-mobile-height, 660px)) / 2)); }
  .resin-story[data-mobile-motion="true"] .story-intro { margin-bottom: 14px; }
  .resin-story[data-mobile-motion="true"] .story-intro h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .resin-story[data-mobile-motion="true"] .story-intro .eyebrow { margin-bottom: 8px; }
  .resin-story[data-mobile-motion="true"] .resin-story-stage { height: clamp(140px, 22svh, 200px); aspect-ratio: auto; }
  .resin-story[data-mobile-motion="true"] .resin-story-controls[data-stacked="true"] { margin-top: 16px; }
  .resin-story[data-mobile-motion="true"] .resin-story-footnote { margin-top: 8px; }
  .resin-story[data-mobile-motion="true"] .resin-story-chapter { min-height: 0; padding-top: 18px; }
  .resin-story[data-mobile-motion="true"] .resin-story-number { font-size: 1.5rem; }
  .resin-story[data-mobile-motion="true"] .resin-story-chapter h3 { font-size: 1.75rem; margin: 8px 0 12px; }
  .resin-story[data-mobile-motion="true"] .resin-story-chapter p { margin-bottom: 0; line-height: 1.65; }
}
@media (prefers-reduced-motion: no-preference) {
  .resin-story-image img, .resin-story-image[data-active="true"] img { transform: scale(1.025); }
  .resin-story[data-immersive="true"] .resin-story-image,
  .resin-story[data-mobile-motion="true"] .resin-story-image { transition: none; }
  .resin-story[data-tap-animating="true"] .resin-story-image { transition: opacity .3s ease-in-out; }
}

@media (max-width: 899px) {
  .hero h1 { margin-block: 24px; line-height: 1; text-align: center; }
  .hero h1 em { margin-top: 16px; line-height: 1.15; }
  .description { margin-block: 24px 0; line-height: 1.75; }
  .story-intro { margin-bottom: 28px; }
  .story-intro h2, .join-copy h2 { line-height: 1.15; }
  .resin-story-chapter h3 { margin-block: 16px; line-height: 1.15; }
  .resin-story-chapter p, .join-copy p { line-height: 1.75; }
  .resin-story-footnote, .fine-print { line-height: 1.7; }
  .join-copy h2 + p { margin-top: 16px; }
}

/* The content router crossfades pages without a document reload. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* A quieter contact panel, separate from the subscription action. */
.contact-section { padding-block: 0 clamp(36px, 4vw, 56px); background: var(--ah-base); scroll-margin-top: 24px; }
.contact-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 24px 48px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--ah-border); border-radius: 4px 4px 40px 4px; background: var(--ah-paper); }
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-card h2 { margin: 0; font-size: clamp(2.4rem, 3.2vw, 3.8rem); line-height: 1.15; }
.contact-details { min-width: 0; }
.contact-details p { margin: 0 0 16px; }
.contact-address { display: inline-flex; align-items: center; min-height: 48px; max-width: 100%; padding-block: 8px; color: var(--ah-gold); font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; text-decoration: none; }
.contact-address:hover { color: var(--ah-ink); }
.contact-details .contact-note { margin: 16px 0 0; font-size: .75rem; line-height: 1.7; }
@media (max-width: 899px) { .contact-card { grid-template-columns: 1fr; border-bottom-right-radius: 28px; } }
