/* ============================================================
   COGNITIF GROUP — design system
   Palette: ink navy / cream / copper  ·  Type: Fraunces + DM Sans
   ============================================================ */

:root {
  /* light mode — warm paper background, ink-navy text.
     Variable names kept from the original dark build:
     --ink is now the LIGHT page colour, --cream the DARK text colour. */
  --ink:        #f7f2e5;
  --navy:       #efe8d6;
  --navy-2:     #e9dfc9;
  --navy-logo:  #202847;
  --cream:      #182040;
  --cream-dim:  rgba(24, 32, 64, 0.84);
  --cream-faint:rgba(24, 32, 64, 0.66);
  --beige:      #8a7a5a;
  --copper:     #a05f3c;
  --copper-hi:  #8a4d2c;
  --hairline:   rgba(24, 32, 64, 0.18);
  --hairline-2: rgba(24, 32, 64, 0.11);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "DM Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --sect: clamp(3.25rem, 7.5vw, 6rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --z-ember: 1;
  --z-content: 2;
  --z-nav: 50;
  --z-menu: 60;
  --z-grain: 70;
}

html[data-theme="dark"] {
  --ink:        #0d1428;
  --navy:       #111b34;
  --navy-2:     #17233f;
  --navy-logo:  #f7f2e5;
  --cream:      #f7f2e5;
  --cream-dim:  rgba(247, 242, 229, 0.84);
  --cream-faint:rgba(247, 242, 229, 0.64);
  --beige:      #a9906d;
  --copper:     #c67b52;
  --copper-hi:  #e09a6c;
  --hairline:   rgba(247, 242, 229, 0.19);
  --hairline-2: rgba(247, 242, 229, 0.11);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--cream-dim);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 253, 246, 0.85) 0%, rgba(247, 242, 229, 0) 60%),
    radial-gradient(90% 70% at 85% 110%, rgba(198, 123, 82, 0.06) 0%, rgba(247, 242, 229, 0) 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--copper); color: var(--ink); }

:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 100;
  padding: 0.7em 1.2em; background: var(--cream); color: var(--ink);
  font-weight: 500; font-size: 0.85rem; border-radius: 4px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* Shared layout and reveal utilities */
.d-05 { --d: .05s; }
.d-06 { --d: .06s; }
.d-08 { --d: .08s; }
.d-10 { --d: .1s; }
.d-12 { --d: .12s; }
.d-14 { --d: .14s; }
.d-15 { --d: .15s; }
.d-16 { --d: .16s; }
.d-18 { --d: .18s; }
.d-19 { --d: .19s; }
.d-22 { --d: .22s; }
.d-24 { --d: .24s; }
.d-25 { --d: .25s; }
.d-26 { --d: .26s; }
.d-28 { --d: .28s; }
.d-33 { --d: .33s; }
.d-34 { --d: .34s; }
.d-41 { --d: .41s; }
.section-intro-pad { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-intro-pad--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-pad-0 { padding-top: 0; }
.mt-0 { margin-top: 0; }
.mt-09 { margin-top: 0.9rem; }
.mt-22 { margin-top: 2.2rem; }
.mb-08 { margin-bottom: 0.8rem; }
.mb-24 { margin-bottom: 2.4rem; }
.mb-26 { margin-bottom: 2.6rem; }
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }

main { position: relative; z-index: var(--z-content); }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: 0.002em;
  text-wrap: balance;
}
h1 em, h2 em, .display em { font-style: italic; font-weight: 340; color: var(--copper-hi); }

.display-xl { font-size: clamp(2.7rem, 6.4vw, 5.1rem); font-variation-settings: "opsz" 100; }
.display-lg { font-size: clamp(2.15rem, 4.6vw, 3.5rem); font-variation-settings: "opsz" 72; }
.display-md { font-size: clamp(1.65rem, 3.2vw, 2.4rem); line-height: 1.16; }
.display-sm { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; }

.lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.66; font-weight: 400; color: var(--cream-dim); max-width: 62ch; }
p + p { margin-top: 1.1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9em;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--copper);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--copper); opacity: 0.7; flex: none; }
.eyebrow--bare::before { display: none; }

.tm { font-size: 0.55em; vertical-align: 0.62em; letter-spacing: 0; }

/* ---------- links & buttons ---------- */
.link-inline {
  color: var(--cream); text-decoration: none;
  background-image: linear-gradient(var(--copper), var(--copper));
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%;
  transition: color 0.25s var(--ease-soft);
  padding-bottom: 1px;
}
.link-inline:hover { color: var(--copper-hi); }

.btn {
  display: inline-flex; align-items: center; gap: 0.85em;
  min-height: 48px; padding: 0.9em 1.9em;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  border: 1px solid rgba(24, 32, 64, 0.42);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cream);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--cream); }
.btn > * { position: relative; }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--copper { border-color: rgba(198, 123, 82, 0.55); color: var(--copper-hi); }
.btn--copper::before { background: var(--copper); }
.btn--copper:hover, .btn--copper:focus-visible { color: var(--ink); border-color: var(--copper); }

/* on cream panels */
.btn--ink { border-color: rgba(24, 32, 64, 0.45); color: #182040; }
.btn--ink::before { background: #182040; }
.btn--ink:hover, .btn--ink:focus-visible { color: #f7f2e5; border-color: #182040; }

/* ---------- divider: clear > beige > clear ---------- */
.divider {
  height: 1px; border: 0; width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--beige) 50%, transparent 100%);
  opacity: 0.32;
}
.divider--tight { max-width: 520px; margin-inline: auto; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -100%; z-index: var(--z-grain);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
html.motion-ok .grain { animation: grain-shift 1.2s steps(6) infinite; }
@keyframes grain-shift {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-4%, 3%, 0); }
  40%  { transform: translate3d(3%, -5%, 0); }
  60%  { transform: translate3d(-5%, -2%, 0); }
  80%  { transform: translate3d(4%, 4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: background-color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft),
              backdrop-filter 0.45s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(247, 242, 229, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--hairline-2);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.site-header .nav-bar { max-width: 1320px; }

.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand-name {
  font-family: var(--serif); font-size: 1.16rem; font-weight: 450; color: var(--cream);
  letter-spacing: 0.01em; white-space: nowrap;
}
.brand-name small { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-faint); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 2vw, 2.15rem); margin-left: auto; }
.nav-links a {
  position: relative; text-decoration: none; padding: 0.55em 0.1em;
  font-size: 0.94rem; font-weight: 500; letter-spacing: 0.05em; text-transform: none;
  color: var(--cream-dim);
  transition: color 0.25s var(--ease-soft);
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--copper-hi);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--copper-hi); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: clamp(1rem, 1.6vw, 1.35rem);
  color: var(--copper-hi);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  transition: color 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft),
              background-color 0.28s var(--ease-soft), transform 0.28s var(--ease-out);
}
.theme-toggle:hover { color: var(--cream); border-color: var(--copper); transform: rotate(-8deg); }
.theme-toggle:focus-visible { border-radius: 50%; }
.theme-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.25s var(--ease-soft), transform 0.35s var(--ease-out);
}
.theme-icon--moon { fill: currentColor; stroke: none; }
.theme-icon--sun { opacity: 0; transform: rotate(-35deg) scale(0.65); }
html[data-theme="dark"] .theme-icon--moon { opacity: 0; transform: rotate(35deg) scale(0.65); }
html[data-theme="dark"] .theme-icon--sun { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle {
  display: none; position: relative; z-index: calc(var(--z-menu) + 1);
  width: 46px; height: 46px; align-items: center; justify-content: center;
  margin-left: 0.25rem; color: var(--cream); border-radius: 4px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(-90deg) translateX(-7px); }
.nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(247, 242, 229, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 6rem var(--gutter) 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity 0.45s var(--ease-soft), visibility 0s linear 0.45s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-menu a.mm-link {
  display: inline-block; text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.7rem, 6.5vw, 2.3rem); font-weight: 380;
  color: var(--cream); padding: 0.32em 0;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s;
}
.mobile-menu a.mm-link:hover { color: var(--copper-hi); }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--copper-hi); font-style: italic; }
.mobile-menu.is-open a.mm-link { opacity: 1; transform: translateY(0); transition-delay: calc(0.06s * var(--i, 0) + 0.1s); }
.mobile-menu .mm-foot {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline-2);
  font-size: 0.8rem; letter-spacing: 0.08em; color: var(--cream-faint);
  display: flex; flex-wrap: wrap; gap: 0.4em 1.4em;
  opacity: 0; transition: opacity 0.6s var(--ease-soft) 0.5s;
}
.mobile-menu.is-open .mm-foot { opacity: 1; }
.mobile-menu .mm-foot a { color: var(--cream-dim); text-decoration: none; }
.mobile-menu .mm-foot a:hover { color: var(--copper-hi); }

@media (max-width: 1280px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header {
  z-index: calc(var(--z-menu) + 1);
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}

/* ---------- reveal-on-scroll (toned down) ---------- */
.rv { opacity: 0; transform: translateY(14px); }
html.motion-ok .rv {
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.motion-ok .rv.in, html:not(.motion-ok) .rv { opacity: 1; transform: none; }
.rv--left { transform: translateX(-18px); }
.rv--right { transform: translateX(18px); }
html.motion-ok .rv--left.in, html.motion-ok .rv--right.in { transform: none; }

/* hero-intro copy should not depend on scroll observers to appear */
@keyframes hero-load-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-cue-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-cue-rise {
  from { transform: translateY(22px); }
  to { transform: none; }
}
html.motion-ok .hx-scene--intro .hx-kicker,
html.motion-ok .hx-scene--intro .hx-sub,
html.motion-ok .ph .eyebrow.rv,
html.motion-ok .ph .lede.rv,
html.motion-ok .ph .ph-meta.rv,
html.motion-ok .page-hero .eyebrow.rv,
html.motion-ok .page-hero .lede.rv,
html.motion-ok .page-hero .meta-line.rv {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-load-up 1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
  transition: none;
}
html.motion-ok .hx-scene--intro .hx-kicker,
html.motion-ok .ph .eyebrow.rv,
html.motion-ok .page-hero .eyebrow.rv {
  --d: 0.04s;
}
html.motion-ok .hx-scene--intro .hx-sub {
  --d: 0.56s;
}
html.motion-ok .ph-cue {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-cue-up 1s var(--ease-out) both;
  animation-delay: 0.62s;
}
html.motion-ok .hx.is-pinned .hx-cue {
  animation: hero-cue-rise 0.95s var(--ease-out) both;
  animation-delay: 0.74s;
}

/* ============================================================
   HOME — cinematic scroll hero
   ============================================================ */
.hx { position: relative; }
.hx-stage {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 110px var(--gutter) 40px;
  overflow: hidden;
}
/* pinned mode (JS + motion allowed) */
html.motion-ok .hx.is-pinned .hx-stage {
  position: sticky; top: 0; height: 100svh; min-height: 0;
}

.hx-petal {
  position: relative;
  width: min(76vw, 56svh, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
  flex: none;
}
.hx.is-pinned .hx-petal {
  position: absolute; left: 50%; top: 50%;
  width: min(64vw, 66svh, 620px);
  margin: 0;
  transform: translate(-50%, -50%);
}
.hx-petal-move { width: 100%; height: 100%; will-change: transform, opacity; }
.hx-petal svg { width: 100%; height: 100%; overflow: visible; }
.hx-logo-animation iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  color-scheme: normal;
  background: transparent;
  pointer-events: none;
  filter: drop-shadow(0 24px 44px rgba(24, 32, 64, 0.08));
}

/* The brand mark is the hero instrument: large, immediate and integrated
   with the proposition rather than placed beneath it as a separate image. */
.hx--brand .hx-stage {
  align-items: stretch;
  justify-content: flex-start;
  padding-top: clamp(7.5rem, 13svh, 9rem);
}
.hx--brand .hx-scenes { position: relative; z-index: 2; }
.hx--brand .hx-scene--intro {
  width: min(56vw, 670px);
  max-width: 670px;
  margin-inline: 0 auto;
  padding: 0;
  text-align: left;
}
.hx--brand .hx-scene--intro .display-xl { font-size: clamp(3rem, 5.25vw, 4.75rem); }
.hx--brand .hx-sub { max-width: 49ch; margin-inline: 0; }
.hx--brand .hx-logo-animation {
  position: absolute;
  z-index: 0;
  top: 46%;
  right: max(-1.5rem, calc((100vw - var(--wrap)) / 2 - 2rem));
  width: min(51vw, 72svh, 680px);
  margin: 0;
  transform: translateY(-46%);
  isolation: isolate;
}
.hx--brand .hx-logo-animation::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 42%, rgba(160, 95, 60, 0.12), transparent 43%),
    radial-gradient(circle at 42% 58%, rgba(24, 32, 64, 0.09), transparent 58%);
  filter: blur(24px);
}

/* scenes */
.hx-scenes { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.hx-scene { padding: clamp(3rem, 8vh, 5rem) 0; max-width: 560px; }
.hx-scene--center { max-width: 880px; margin-inline: auto; text-align: center; }

.hx.is-pinned .hx-scene {
  position: absolute; top: 50%; transform: translateY(-50%);
  padding: 0; margin: 0;
  opacity: 0; visibility: hidden;
  will-change: transform, opacity;
}
.hx.is-pinned .hx-scene[data-align="left"]  { left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: min(460px, 42vw); }
.hx.is-pinned .hx-scene[data-align="right"] { right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: min(460px, 42vw); }
.hx.is-pinned .hx-scene--center { left: 50%; width: min(880px, 88vw); transform: translate(-50%, -50%); text-align: center; }

/* scene 0 — headline block sits above petal in pinned mode */
.hx.is-pinned .hx-scene--intro { top: 12svh; transform: translateX(-50%); }

.hx-kicker { margin-bottom: 1.3rem; }
.hx-scene h1 { margin-bottom: 1.5rem; }
.hx-sub { max-width: 56ch; margin-inline: auto; font-size: clamp(0.98rem, 1.4vw, 1.13rem); color: var(--cream-faint); line-height: 1.75; }
.hx-scene h2, .hx-scene h3 { margin: 1.1rem 0 1.15rem; }
.hx-scene .eyebrow { margin-bottom: 0.2rem; }
.hx-scene p { font-size: clamp(0.97rem, 1.3vw, 1.08rem); }

/* line-mask reveal for the h1 */
.mask-line { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.mask-line > span { display: block; }
html.motion-ok .mask-line > span { transform: translateY(112%); animation: line-up 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes line-up { to { transform: translateY(0); } }

/* scroll cue + progress */
.hx-cue {
  position: absolute; bottom: 4.5svh; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: none; flex-direction: column; align-items: flex-start; gap: 0.8rem;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--cream-faint);
  transition: opacity 0.5s var(--ease-soft);
}
.hx.is-pinned .hx-cue { display: flex; }
.hx-cue::after {
  content: ""; width: 1px; height: 44px; margin-left: 2px;
  background: linear-gradient(var(--copper-hi), transparent);
}
html.motion-ok .hx-cue::after { animation: cue-drop 2.2s var(--ease-soft) infinite; }
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hx-progress {
  position: absolute; right: max(var(--gutter), 3vw); top: 50%; transform: translateY(-50%);
  width: 1px; height: 34svh; background: var(--hairline);
  display: none;
}
.hx.is-pinned .hx-progress { display: block; }
.hx-progress span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(var(--copper), var(--copper-hi));
  transform: scaleY(0); transform-origin: top;
}
.hx-counter {
  position: absolute; right: calc(max(var(--gutter), 3vw) - 0.6rem); top: calc(50% + 19svh);
  transform: translateY(0.8rem);
  font-size: 0.66rem; letter-spacing: 0.24em; color: var(--cream-faint);
  writing-mode: vertical-rl;
  display: none;
}
.hx.is-pinned .hx-counter { display: block; }

@media (max-width: 760px) {
  .hx--brand .hx-stage {
    min-height: max(100svh, 700px);
    justify-content: flex-start;
    padding-top: clamp(7.7rem, 17svh, 9rem);
  }
  .hx--brand .hx-scene--intro {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }
  .hx--brand .hx-scene--intro .display-xl { font-size: clamp(2.55rem, 10.5vw, 3.35rem); }
  .hx--brand .hx-sub { max-width: 38ch; margin-inline: auto; font-size: 0.92rem; line-height: 1.62; }
  .hx--brand .hx-logo-animation {
    top: auto;
    right: 50%;
    bottom: -5%;
    width: min(96vw, 54svh, 520px);
    transform: translateX(50%);
  }
  .hx.is-pinned .hx-petal { width: min(78vw, 42svh); top: 34svh; }
  .hx.is-pinned .hx-scene[data-align="left"],
  .hx.is-pinned .hx-scene[data-align="right"] {
    left: var(--gutter); right: var(--gutter); width: auto;
    top: auto; bottom: 9svh; transform: none;
  }
  .hx.is-pinned .hx-scene--center:not(.hx-scene--intro) { top: auto; bottom: 9svh; transform: translateX(-50%); }
  .hx.is-pinned .hx-scene--intro { top: 9svh; }
  .hx.is-pinned .hx-scene--intro .hx-sub { font-size: 0.88rem; line-height: 1.6; max-width: 34ch; }
  .hx.is-pinned .hx-scene--intro .display-xl { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  .hx-progress, .hx-counter { display: none !important; }
  .hx-scene h3.display-md { font-size: 1.42rem; }
  .hx-scene p { font-size: 0.92rem; line-height: 1.6; }
}

/* ---------- Petalyx SVG ---------- */
.px-ring { fill: none; stroke: var(--cream); opacity: 0.09; }
.px-ring--dash { stroke-dasharray: 2 7; opacity: 0.13; }
.px-tick { stroke: var(--cream); opacity: 0.16; }
.px-axis { stroke: var(--cream); opacity: 0.05; }

.px-petal { cursor: pointer; }
.px-petal .px-shape {
  fill: url(#pxGrad);
  stroke: var(--cream); stroke-width: 1.3;
  opacity: 0.74;
  transition: opacity 0.4s var(--ease-soft);
}
.px-petal .px-inner {
  fill: none; stroke: var(--copper-hi); stroke-width: 0.8;
  stroke-dasharray: 3 6; opacity: 0.22;
  transition: opacity 0.4s var(--ease-soft);
}
.px-petal .px-vein { stroke: var(--cream); stroke-width: 0.6; opacity: 0.14; }
.px-petal .px-node { fill: var(--copper-hi); opacity: 0.5; transition: opacity 0.4s; }

.px-petal .px-lift { transition: transform 0.5s var(--ease-out); }
html.motion-ok .px-petal:hover .px-lift { transform: translateY(-10px); }
.px-petal:hover .px-shape { opacity: 1; }
.px-petal:hover .px-inner { opacity: 0.55; }
.px-petal:hover .px-node { opacity: 1; }

/* NOTA — same size, quieter presence */
.px-petal--nota .px-shape { opacity: 0.4; }
.px-petal--nota .px-inner { opacity: 0.1; }
.px-petal--nota .px-vein { opacity: 0.07; }
.px-petal--nota .px-node { opacity: 0.28; }
.px-petal--nota:hover .px-shape { opacity: 0.72; }
.px-petal--nota:hover .px-inner { opacity: 0.3; }
.px-petal--nota:hover .px-node { opacity: 0.6; }

/* click ripple — radiates out from the click point, behind the petals */
.px-ripples { pointer-events: none; }
.px-ripple circle { transform-box: fill-box; transform-origin: center; }
.px-rip-glow { animation: px-rip-glow 0.75s var(--ease-out) forwards; }
.px-rip-ring {
  fill: none; stroke: var(--copper-hi); stroke-width: 1.5;
  animation: px-rip-ring 0.85s var(--ease-out) forwards;
}
.px-rip-ring--2 { stroke-width: 0.9; opacity: 0; animation-duration: 1s; animation-delay: 0.09s; }
@keyframes px-rip-ring {
  0% { transform: scale(0.05); opacity: 0.65; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes px-rip-glow {
  0% { transform: scale(0.12); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}


.px-label {
  font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: 0.05em;
  fill: var(--cream); text-anchor: middle; dominant-baseline: middle;
  transition: fill 0.3s var(--ease-soft);
}
.px-petal:hover .px-label { fill: var(--copper-hi); }
.px-label--nota { font-size: 14px; letter-spacing: 0.1em; fill: var(--cream-faint); text-transform: uppercase; font-weight: 500; }
.px-center-word {
  font-family: var(--serif); font-style: italic; font-weight: 480; font-size: 27px; letter-spacing: 0.02em;
  fill: var(--copper-hi); text-anchor: middle; dominant-baseline: middle;
}
.px-center-tag {
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.2em;
  fill: var(--copper); text-anchor: middle; text-transform: uppercase;
}
.px-center-ring { fill: rgba(255, 253, 246, 0.75); stroke: var(--cream); stroke-width: 1.1; opacity: 0.9; }
.px-center-halo { fill: none; stroke: var(--copper); stroke-width: 0.7; opacity: 0.35; }

/* bloom-in */
html.motion-ok .px .px-petal { transform: scale(0); transform-origin: 0 0; }
html.motion-ok .px.is-bloomed .px-petal {
  animation: px-bloom 1.35s var(--ease-out) forwards;
  animation-delay: calc(0.55s + 0.11s * var(--i, 0));
}
@keyframes px-bloom {
  0% { transform: scale(0) rotate(-14deg); }
  100% { transform: scale(1) rotate(0deg); }
}
html.motion-ok .px .px-labels, html.motion-ok .px .px-center-g, html.motion-ok .px .px-rings {
  opacity: 0;
}
html.motion-ok .px.is-bloomed .px-rings { animation: px-fade 1.6s var(--ease-soft) 0.25s forwards; }
html.motion-ok .px.is-bloomed .px-center-g { animation: px-fade 1.2s var(--ease-soft) 0.45s forwards; }
html.motion-ok .px.is-bloomed .px-labels { animation: px-fade 1.4s var(--ease-soft) 1.5s forwards; }
@keyframes px-fade { to { opacity: 1; } }

/* flourish entrance (Petalyx page) — whole flower spins into position */
html.motion-ok .px--spin { opacity: 0; }
html.motion-ok .px--spin.is-bloomed { animation: px-spin-in 1.9s var(--ease-out) forwards; }
@keyframes px-spin-in {
  0%   { opacity: 0; transform: rotate(-360deg) scale(0.42); }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* idle breathing (petals sway around centre) */
html.motion-ok .px.is-idle .px-sway {
  animation: px-sway 9s ease-in-out infinite;
  animation-delay: calc(-1.4s * var(--i, 0));
}
@keyframes px-sway {
  0%, 100% { transform: rotate(0.001deg); }
  50% { transform: rotate(1.6deg); }
}
html.motion-ok .px.is-idle .px-center-halo { animation: px-halo 6s ease-in-out infinite; }
@keyframes px-halo {
  0%, 100% { opacity: 0.32; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.045); }
}

/* ============================================================
   HOME — sections below the hero
   ============================================================ */
.section { padding-block: var(--sect); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-head p { margin-top: 1.4rem; }

/* homepage problem statement */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  margin: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.problem-item { max-width: 34ch; }
.problem-visual {
  width: min(100%, 260px);
  height: clamp(190px, 18vw, 235px);
  margin: 0 auto clamp(1rem, 2vw, 1.45rem);
}
.problem-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.problem-num {
  margin: 0 0 1rem;
  color: var(--copper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.problem-item h3 { margin-bottom: 0.8rem; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 440; }
.problem-item > p:last-child { color: var(--cream-faint); font-size: 0.96rem; line-height: 1.67; }
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .problem-item { max-width: 62ch; }
  .problem-visual { width: min(72vw, 250px); height: 220px; }
}

/* numbered editorial feature rows */
.feature-rows { border-top: 1px solid var(--hairline-2); }
.feature-row {
  display: grid; grid-template-columns: 90px 1fr 1.6fr; gap: clamp(1.2rem, 3.5vw, 3.5rem);
  padding: clamp(1.9rem, 4vw, 2.8rem) 0;
  border-bottom: 1px solid var(--hairline-2);
  align-items: baseline;
}
.feature-num {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: 1.05rem; color: var(--copper);
}
.feature-row h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 420; line-height: 1.25; }
.feature-row p { font-size: 1rem; color: var(--cream-faint); }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 0.7rem; padding: 1.7rem 0; }
  .feature-num { font-size: 0.95rem; }
}

/* stat / benefit strip */
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); }
.benefit-cell { grid-column: span 2; }
.benefit-cell:nth-child(n + 4) { grid-column: span 3; }
.benefit-cell { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem); }
.benefit-cell h3 { font-size: 1.12rem; font-weight: 450; margin-bottom: 0.6rem; }
.benefit-cell p { font-size: 0.98rem; color: var(--cream-faint); line-height: 1.62; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: 1fr; } .benefit-cell, .benefit-cell:nth-child(n + 4) { grid-column: auto; } }

/* cream interlude / CTA band */
.band-cream {
  position: relative; color: #2c2a24; overflow: hidden;
  background: linear-gradient(180deg, #f2e9d2 0%, #e9dec2 100%);
}
.band-cream { border-block: 1px solid rgba(24, 32, 64, 0.12); }
.band-cream::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/topo-contours.jpg");
  background-size: 720px; background-repeat: repeat;
  opacity: 0.16; mix-blend-mode: multiply;
  pointer-events: none;
}
.band-cream--home::before {
  background-image: url("../img/home-lower-topography.png");
  background-image: image-set(
    url("../img/home-lower-topography.avif") type("image/avif"),
    url("../img/home-lower-topography.webp") type("image/webp"),
    url("../img/home-lower-topography.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
}
.band-cream .wrap { position: relative; }
.band-cream h2 { color: #191d31; }
.band-cream h2 em { color: #a05f3c; }
.band-cream .eyebrow { color: #a05f3c; }
.band-cream .eyebrow::before { background: #a05f3c; }
.band-cream p { color: rgba(30, 32, 44, 0.78); }
.band-cream .divider { background: linear-gradient(90deg, transparent, #191d31, transparent); opacity: 0.2; }

.cta-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.cta-inner h2 { margin: 1.4rem 0 1.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.4rem; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { position: relative; padding: clamp(7.5rem, 15vh, 10rem) 0 clamp(2.5rem, 6vh, 4rem); overflow: hidden; }
/* texture is a live procedural contour canvas, injected by JS ([data-lines="deep"]),
   fading away as it descends — replaces the old static image */
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); margin-bottom: 1.4rem; }
.page-hero .lede { margin-top: 0.4rem; }
.page-hero .meta-line { margin-top: 1.2rem; font-size: 0.98rem; letter-spacing: 0.02em; color: var(--cream-faint); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.6em 0 0.75em; font-weight: 420; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 2em 0 0.6em; font-weight: 450; }
.prose a { color: var(--copper-hi); text-decoration: none; border-bottom: 1px solid rgba(198, 123, 82, 0.4); transition: border-color 0.25s, color 0.25s; }
.prose a:hover { color: var(--cream); border-color: var(--cream); }
.prose strong { color: var(--cream); font-weight: 500; }
.prose em { color: var(--cream-dim); }

/* pull quote / callout */
.callout {
  position: relative; margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(150deg, rgba(255, 253, 246, 0.75), rgba(239, 232, 214, 0.5));
  border: 1px solid var(--hairline-2); border-radius: 6px;
}
.callout::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 2px; background: linear-gradient(transparent, var(--copper), transparent);
}
.callout p { font-family: var(--serif); font-size: clamp(1.12rem, 1.9vw, 1.36rem); font-weight: 360; line-height: 1.55; color: var(--cream); }
.callout p + p { margin-top: 1em; }
.callout cite { display: block; margin-top: 1.3rem; font-family: var(--sans); font-style: normal; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper); }

/* bullets with copper markers */
.mark-list { display: grid; gap: 1.25rem; }
.mark-list li { position: relative; padding-left: 2.1rem; }
.mark-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 14px; height: 1px; background: var(--copper);
}
.mark-list li strong { color: var(--cream); font-weight: 500; }

/* timeline (Just a Minute) */
.minute-intro-label {
  margin-bottom: 1rem;
  color: var(--cream);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  letter-spacing: 0.12em;
}
.minute-brief__intro {
  max-width: 760px;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  text-align: left;
}
.minute-brief__intro h2 { margin: 0.9rem 0 1.2rem; }
.minute-brief__intro .lede { max-width: 66ch; }
.minute-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.timeline {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.2rem, 4.5vw, 3.5rem);
}
.timeline li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0;
}
.tl-num {
  display: block;
  padding-top: 0.34em;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--copper);
}
.timeline h3 {
  width: min(100%, 34ch);
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 470;
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.timeline h3 .word { color: var(--copper); font-style: normal; font-weight: 500; }
.timeline p { margin-top: 0.5rem; font-size: 0.97rem; color: var(--cream-faint); }

.figure.minute-diagram img {
  display: block;
  width: 108%;
  max-width: none;
  height: auto;
  margin-inline: -4%;
  border: 0;
  border-radius: 0;
}
.minute-visual {
  position: sticky;
  top: 7.5rem;
  align-self: start;
}
.minute-topography {
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(3.5rem, 7vw, 7rem);
  align-items: center;
  margin-top: clamp(7rem, 13vw, 11rem);
}
.figure.minute-topography__figure img {
  display: block;
  width: 106%;
  max-width: none;
  height: auto;
  margin-inline: -3%;
  border: 0;
  border-radius: 0;
}
.minute-topography__copy { max-width: 610px; }
.minute-topography__copy h2 { margin: 0.85rem 0 clamp(2.5rem, 5vw, 4rem); }
.minute-explainer { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.minute-explainer article { max-width: 56ch; }
.minute-explainer h3 {
  margin-bottom: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 470;
  color: var(--cream);
}
.minute-explainer p { color: var(--cream-faint); font-size: 0.98rem; line-height: 1.7; }

@media (max-width: 920px) {
  .minute-layout { grid-template-columns: 1fr; gap: clamp(3.5rem, 9vw, 5rem); }
  .minute-visual { position: static; }
  .figure.minute-diagram img { width: 100%; margin-inline: 0; }
  .timeline { max-width: 680px; }
  .minute-topography {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 5rem);
    margin-top: clamp(6rem, 14vw, 9rem);
  }
  .figure.minute-topography__figure img { width: 100%; margin-inline: 0; }
  .minute-topography__copy { max-width: 680px; }
}
@media (max-width: 760px) {
  .minute-brief__intro { margin-bottom: 3rem; }
  .timeline li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.9rem;
  }
}

/* axes (Semantic Bathymetry) */
.axes { max-width: 780px; margin-inline: auto; }
.axis-row {
  display: grid; grid-template-columns: 1fr 130px 1fr; align-items: center;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) 0;
  border-bottom: 1px solid var(--hairline-2);
}
.axis-row:first-child { border-top: 1px solid var(--hairline-2); }
.axis-pole { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 400; color: var(--cream); }
.axis-pole--neg { text-align: right; color: var(--cream-dim); font-style: italic; }
.axis-mid { display: flex; align-items: center; justify-content: center; gap: 6px; }
.axis-mid::before, .axis-mid::after { content: ""; height: 1px; flex: 1; background: var(--copper); opacity: 0.45; }
.axis-mid span { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--copper); text-transform: uppercase; }
@media (max-width: 620px) {
  .axis-row { grid-template-columns: 1fr auto 1fr; gap: 0.8rem; }
  .axis-pole { font-size: 1.02rem; }
  .axis-mid { min-width: 44px; }
  .axis-mid span { display: none; }
}

/* layer progression (Technology) */
.layer-intro { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.layer-intro h2 { margin: 0.8rem 0 1rem; }
.layer-intro > p:last-child { max-width: 60ch; color: var(--cream-faint); font-size: 1rem; }
.layers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.2vw, 2.8rem);
}
.layer {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.layer:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: clamp(5.4rem, 10vw, 7rem);
  left: calc(100% + 0.4rem);
  width: calc(clamp(1.6rem, 3.2vw, 2.8rem) - 0.8rem);
  height: 10px;
  background: linear-gradient(var(--copper), var(--copper)) left 4px / calc(100% - 6px) 1px no-repeat;
  opacity: 0.72;
}
.layer:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(clamp(5.4rem, 10vw, 7rem) + 1px);
  left: calc(100% + clamp(1.6rem, 3.2vw, 2.8rem) - 0.45rem);
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--copper);
  border-right: 1px solid var(--copper);
  transform: rotate(45deg);
  opacity: 0.85;
}
.layer-idx {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.layer-copy { padding-top: 1.4rem; border-top: 1px solid var(--hairline); }
.layer h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 420; }
.layer h3 small {
  display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper); margin-top: 0.5rem;
}
.layer p { margin-top: 1rem; color: var(--cream-faint); font-size: 0.9rem; line-height: 1.58; }
.layer .layer-link { display: inline-block; margin-top: 0.9rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-hi); text-decoration: none; border-bottom: 1px solid rgba(198,123,82,.35); padding-bottom: 2px; }
.layer .layer-link:hover { color: var(--cream); border-color: var(--cream); }
.layer-visual {
  order: 0;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 1.15rem;
}
.layer-visual picture,
.figure picture,
.dev-figure picture { display: contents; }
.layer-visual img {
  width: 88%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--hairline-2);
  box-shadow: 0 14px 30px rgba(24, 32, 64, 0.1);
}
.layer-visual--bare img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* the illustration "develops" as its row arrives — the curtain wipes
   down (on the figure) while the art itself eases up from a soft blur */
.layer-visual.rv--curtain img {
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-soft), opacity 1.1s var(--ease-soft);
  transition-delay: calc(var(--d, 0s) + 0.12s);
}
html.motion-ok .layer-visual.rv--curtain:not(.in) img {
  transform: scale(1.08);
  filter: blur(6px);
  opacity: 0.5;
}
html.motion-ok .layer-visual.rv--curtain.in img {
  transform: scale(1);
  filter: blur(0);
  opacity: 1;
}
@media (max-width: 860px) {
  .layer-intro { margin-bottom: 2.4rem; }
  .layers { display: grid; grid-template-columns: 1fr; gap: 0; }
  .layer {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0 1.35rem;
    padding: 0 0 3.5rem 1.6rem;
  }
  .layer:last-child { padding-bottom: 0; }
  .layer-idx { position: absolute; left: 0; top: 0; writing-mode: vertical-rl; }
  .layer-visual { grid-column: 1; width: 104px; margin: 0; align-self: start; }
  .layer-copy { grid-column: 2; padding-top: 0; border-top: 0; }
  .layer h3 { font-size: 1.3rem; }
  .layer p { font-size: 0.88rem; }
  .layer:not(:last-child)::after {
    display: block;
    top: 110px;
    left: 51px;
    width: 1px;
    height: calc(100% - 116px);
    background: var(--copper);
  }
  .layer:not(:last-child)::before {
    display: block;
    top: calc(100% - 3.55rem);
    left: 46px;
    width: 0;
    height: 0;
    border: 0;
    border-top: 7px solid var(--copper);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transform: none;
  }
}

/* profile / info cards */
.card-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: stretch; }
.card-duo--stack {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-inline: auto;
}
@media (max-width: 860px) { .card-duo { grid-template-columns: 1fr; } }

.card {
  --pad: clamp(1.8rem, 4vw, 2.6rem);
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 253, 246, 0.8), rgba(239, 232, 214, 0.45));
  border: 1px solid var(--hairline-2); border-radius: 8px;
  padding: var(--pad);
  transition: border-color 0.4s var(--ease-soft), transform 0.5s var(--ease-out);
}
html.motion-ok .card:hover { border-color: rgba(198, 123, 82, 0.35); transform: translateY(-4px); }
.card .eyebrow { margin-bottom: 1.2rem; }
.card h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 420; margin-bottom: 0.7rem; }
.card p { font-size: 0.96rem; color: var(--cream-faint); }
.card .card-mail { display: inline-block; margin-top: 1.2rem; }
.card--light,
.card--dev {
  min-height: 290px;
  background:
    linear-gradient(135deg, rgba(125, 150, 188, 0.12), rgba(125, 150, 188, 0) 42%),
    radial-gradient(120% 140% at 100% 100%, rgba(186, 151, 118, 0.12), transparent 48%),
    linear-gradient(160deg, #f7f3ea 0%, #eef2f5 54%, #e3eaf4 100%);
  border-color: rgba(16, 22, 44, 0.14);
  box-shadow:
    0 22px 50px rgba(24, 32, 64, 0.12),
    0 3px 10px rgba(24, 32, 64, 0.06);
  isolation: isolate;
}
.card--light::before,
.card--dev::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(85% 100% at 0% 12%, rgba(143, 171, 212, 0.2), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    /* cartographic corner marks */
    linear-gradient(90deg, rgba(160, 95, 60, 0.55) 0 14px, transparent 14px) 20px 20px / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(160, 95, 60, 0.55) 0 14px, transparent 14px) 20px 20px / 1px 100% no-repeat;
  z-index: 0;
}
.card--light::after,
.card--dev::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(16, 22, 44, 0.11);
  border-radius: 5px;
  pointer-events: none;
  z-index: 1;
}
.card--dev::after { z-index: 0; }
html.motion-ok .card--light:hover,
html.motion-ok .card--dev:hover {
  border-color: rgba(160, 95, 60, 0.38);
  box-shadow:
    0 28px 60px rgba(24, 32, 64, 0.16),
    0 4px 12px rgba(24, 32, 64, 0.08);
}
.card--light h3,
.card--dev h3 { color: #182040; }
.card--light p,
.card--dev p { color: rgba(16, 22, 44, 0.76); }
.card--light .eyebrow,
.card--dev .eyebrow { color: #a05f3c; }
.card--light .eyebrow::before,
.card--dev .eyebrow::before { background: #a05f3c; }
.card--light .card-mail {
  color: #182040;
  background-image: linear-gradient(#b8734a, #b8734a);
}
.card--light .card-mail:hover { color: #7a482c; }

/* lead-developer card — cutout figure anchored to the card's bottom edge,
   head breaking above the top edge */
.card--dev {
  min-height: 250px;
  overflow: visible;
  margin-top: 92px;
  padding: clamp(1.15rem, 2.4vw, 1.7rem) var(--pad) 0;
  padding-left: clamp(235px, 25vw, 315px);
  display: flex;
  align-items: center;
}
.dev-body {
  position: relative;
  z-index: 2;
  padding-block: clamp(0.8rem, 1.7vw, 1.1rem);
  max-width: 30ch;
}
.dev-figure {
  position: absolute;
  left: clamp(-14px, 0vw, 10px);
  bottom: 0;
  width: clamp(220px, 24vw, 290px);
  height: clamp(280px, 27vw, 340px);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.dev-figure img {
  position: absolute;
  left: 50%;
  bottom: -17%;
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  filter: none;
}
@media (max-width: 700px) {
  /* stacked layout — the cutout peeks out of the top, centred,
     with the copy beneath it */
  .card--dev {
    margin-top: 120px;
    min-height: 0;
    display: block;
    text-align: center;
    padding: 158px clamp(1.2rem, 5vw, 1.8rem) 1.7rem;
  }
  .dev-body {
    padding-block: 0;
    max-width: none;
    margin-inline: auto;
  }
  .card--dev .eyebrow::before { display: none; }
  .dev-figure {
    left: 50%;
    bottom: auto;
    top: -104px;
    transform: translateX(-50%);
    width: 200px;
    height: 252px;
  }
  .dev-figure img {
    left: 50%;
    top: 0;
    bottom: auto;
    width: 118%;
    transform: translateX(-50%);
  }
}

.profile-card { display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.4rem, 3vw, 2.2rem); align-items: center; }
.profile-card .pic {
  width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(217, 205, 175, 0.25);
  filter: saturate(0.88) contrast(1.02);
}
.profile-card .pic--cutout {
  object-fit: contain; object-position: bottom; border-radius: 50%;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(198, 123, 82, 0.22), rgba(233, 223, 201, 0.9) 70%);
}
.profile-card h3 { margin-bottom: 0.25rem; }
.profile-card .role { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper); margin-bottom: 0.85rem; }
@media (max-width: 560px) {
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-card .pic { margin-inline: auto; }
  .profile-card .role { margin-inline: auto; }
}

/* company details block (About) */
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--hairline-2); max-width: 620px; }
.detail-list .row {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--hairline-2);
}
.detail-list dt { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper); padding-top: 0.3em; }
.detail-list dd { color: var(--cream-dim); }
@media (max-width: 560px) { .detail-list .row { grid-template-columns: 1fr; gap: 0.25rem; } }

.badge-line { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.badge-line img { width: 74px; height: auto; border-radius: 6px; border: 1px solid var(--hairline); }
.badge-line p { font-size: 0.85rem; color: var(--cream-faint); max-width: 34ch; }

/* figure */
.figure { margin: clamp(2.5rem, 6vw, 4rem) 0; }
.figure img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--hairline-2);
}
.figure figcaption { margin-top: 0.9rem; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--cream-faint); }

/* interactive 3D visualisation panels */
.viz-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline-2); border-radius: 8px;
  background:
    radial-gradient(110% 120% at 50% -20%, rgba(255, 253, 246, 0.9), rgba(239, 232, 214, 0.3) 65%),
    linear-gradient(160deg, rgba(247, 242, 229, 0.8), rgba(233, 223, 201, 0.5));
  aspect-ratio: 16 / 10;
}
.viz-panel canvas {
  width: 100%; height: 100%; display: block;
  touch-action: pan-y; cursor: grab;
}
.viz-panel.is-dragging canvas { cursor: grabbing; }
.viz-hint {
  position: absolute; top: 14px; right: 16px;
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-faint);
  padding: 0.55em 1em; border: 1px solid var(--hairline-2); border-radius: 99px;
  background: rgba(247, 242, 229, 0.75);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-soft);
}
.viz-hint::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper-hi); }
.viz-panel.was-dragged .viz-hint { opacity: 0; }
@media (max-width: 700px) { .viz-panel { aspect-ratio: 4 / 3; } }

/* callout with labelled blocks */
.co-label {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--copper);
  margin-bottom: 0.5rem;
}
.callout .co-block + .co-block { margin-top: 1.6rem; }

/* labelled blocks as a grid row under a full-width figure */
.co-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline-2); border: 1px solid var(--hairline-2);
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}
.co-cell { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.2rem); }
.co-cell p:not(.co-label) { font-size: 0.97rem; color: var(--cream-faint); line-height: 1.66; }
.co-cell .co-label { margin-bottom: 0.8rem; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } }

/* legal & bibliography */
.legal h2 { font-size: 1.32rem; font-weight: 450; margin: 2.4em 0 0.7em; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 0.99rem; }
.bib-section { margin-top: 3rem; }
.bib-section h2 { font-size: 1.3rem; font-weight: 430; margin-bottom: 1.4rem; }
.bib-section ol { counter-reset: bib; display: grid; gap: 1.1rem; }
.bib-section ol li {
  counter-increment: bib; position: relative; padding-left: 2.6rem;
  font-size: 1rem; color: var(--cream-dim); line-height: 1.65;
}
.bib-section ol li::before {
  content: counter(bib, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1em;
  font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--copper);
}
.bib-section strong { color: var(--cream); font-weight: 500; }

/* petal illustration holder (Petalyx page) */
.px-aside { width: min(420px, 84vw); margin: clamp(2rem, 5vw, 3rem) auto; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Petalyx sample instrument */
.px-demo-section { padding-top: clamp(1rem, 3vw, 2rem); }
.px-demo-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.px-demo-head h2 { margin-top: 0.9rem; }
.px-demo-head > p { max-width: 48ch; color: var(--cream-faint); font-size: 0.98rem; }
@media (max-width: 700px) {
  .px-demo-head { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ============================================================
   Petalyx range + demo stage
   One region, two states: a carousel of edition posters, and the
   sandboxed demo that opens out of whichever one is chosen.
   The posters are drawn from demo/petalyx/editions.json, which the
   demo build generates from the edition configs themselves.
   ============================================================ */
.px-range {
  position: relative;
  /* No cap of its own. It used to stop at 1120px inside a wider section,
     which read as the carousel being indented from everything above it. */
  margin-inline: auto;
}
.px-range[data-state="loading"] .px-rail-note::after { content: " Loading\2026"; opacity: 0.6; }

/* ---- the rail ---- */
/* The arrows float over the ends of the rail rather than taking space
   beside it, so the rail itself spans the full column and the first card
   starts on the page's own gutter. */
/* The arrows used to float over the ends of the rail, which put them on
   top of the first and last card. They sit above it now, right-aligned,
   where they overlap nothing and still read as the rail's own control. */
.px-range__deck { position: relative; padding-top: 3.1rem; }
.px-range__deck > .px-rail-btn {
  position: absolute; top: 0; z-index: 3;
}
.px-range__deck > .px-rail-btn:first-child { right: 3.2rem; }
.px-range__deck > .px-rail-btn:last-child  { right: 0; }
.px-rail {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.35rem);
  /* overflow-x:auto forces overflow-y to compute as auto too — a scroll
     container clips on BOTH axes, there is no one-axis scroller. So the
     hover lift, the scale and the drop shadow were all being sheared off
     at the frame. The padding gives them room INSIDE the scrollport and
     the negative margin gives the layout space back, so nothing moves.
     The inline padding must also clear the card's outer glow, which juts
     14px past the card on every side -- at 0.45rem it was being sliced
     off at the left and right ends of the rail. The wrap around this has
     a 40px gutter, so the negative margin stays inside it and the page
     gains no horizontal scroll. */
  margin: -1.4rem -1.25rem -1.6rem;
  padding: 2rem 1.25rem 2.6rem;
  scroll-padding-inline: 1.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* A scroll container cuts its content off dead straight at the frame.
     Masking the two ends turns that cut into a fade, which is also what
     lets the cards carry an outward glow at all: anything that juts past
     the end of the rail now dissolves instead of being sliced. The ramp
     is exactly the inline padding, so at rest the first and last card
     sit at full strength and only the empty gutter is faded. */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}
.px-rail::-webkit-scrollbar { display: none; }
.px-rail > li { flex: 0 0 auto; scroll-snap-align: center; width: clamp(226px, 25vw, 268px); }

.px-rail-btn {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  background: transparent;
  /* --cream is the foreground token here, not --ink; with --ink these
     chevrons were drawn in the page background colour and the arrows
     looked like empty circles. */
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.25s, opacity 0.25s, background 0.25s;
}
.px-rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.px-rail-btn:hover { border-color: var(--copper); }
.px-rail-btn.is-off { opacity: 0.25; pointer-events: none; }
@media (max-width: 760px) { .px-rail-btn { display: none; } }

.px-rail-note {
  margin: 0;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-faint);
  text-align: center;
}

/* ---- one edition poster ---- */
.px-card { position: relative; }
.px-card__face {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--poster-edge, rgba(24, 32, 64, 0.14));
  border-radius: 14px;
  background: var(--surface-image, var(--surface, #101728));
  /* A hairline along the top edge and a soft floor shadow, so the card
     reads as a lit object rather than a flat swatch. Inset, so it
     survives whatever background the edition brings. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -60px 60px -60px rgba(0, 0, 0, 0.55),
    0 8px 18px -14px rgba(8, 12, 28, 0.45);
  color: var(--poster-ink, #f5f6fa);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s, opacity 0.3s;
}
.px-card__face:hover,
.px-card__face:focus-visible {
  transform: translateY(-7px) scale(1.015);
  /* No border-colour change and no extra 1px rim ring here. There is ONE
     stroke on this card -- its own hairline -- and the beam lights that
     same line. Three competing strokes is what made the edge look cheap. */
  /* A scroll container clips at its BORDER box, and its padding scrolls
     away with the content -- so once the rail is scrolled, padding
     protects nothing and a big drop shadow is sheared at the leading
     edge. Everything that reads on hover is therefore kept inside the
     card: the inner aurora, the rim, and a shadow tight enough that it
     has essentially no outward extent. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 22px -6px color-mix(in srgb, var(--tint) 40%, transparent),
    0 14px 26px -18px color-mix(in srgb, var(--tint) 52%, rgba(8, 12, 28, 0.6));
}
/* The fan opens on hover — the six the reveal can land on, spreading as
   if being dealt. It is the one motion that says what the card DOES. */
.px-card__face:hover .px-card__cast,
.px-card__face:focus-visible .px-card__cast {
  opacity: 1;
  transform: translateY(-4px);
}
.px-card__face:hover .px-card__seat,
.px-card__face:focus-visible .px-card__seat {
  margin-inline: -2px;
}
@media (prefers-reduced-motion: reduce) {
  .px-card__face:hover, .px-card__face:focus-visible { transform: none; }
  .px-card__face:hover .px-card__cast { transform: none; }
  .px-card__seat { transition: none !important; }
}
/* Optional edition photography; the wash above keeps the type legible
   whether it is there or not. */
.px-card__photo {
  position: absolute; z-index: 0; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.px-card__wash {
  position: absolute; z-index: 1; inset: 0;
  background:
    radial-gradient(120% 78% at 50% 108%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 62%),
    linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02) 62%);
}

/* ---- light posters ----
   Everything above was written for dark editions: a black floor wash to
   lift white type off photography, and dark fan seats. Laid over a pale
   poster the same rules read as dirt — a muddy grey gradient across the
   bottom half, which is what made the beige cards look unfinished. On a
   light card the floor is tinted, not blackened, and the seats are ink
   on paper rather than holes. */
/* The floor wash exists to separate the copy from the poster. On a dark
   card that means blackening it, so white type lifts. On a light card the
   type is dark INK, so blackening the floor pushes the two together --
   which is the muddy, bruised look under "Petalyx(TM) Demo". Brighten
   instead: dark ink on a bright floor is the same separation, inverted. */
.px-card--light .px-card__wash {
  background:
    radial-gradient(120% 70% at 50% 114%, color-mix(in srgb, var(--tint) 9%, transparent), transparent 62%),
    linear-gradient(to top, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.34) 28%, rgba(255, 255, 255, 0) 56%);
}
.px-card--light .px-card__face {
  border-color: color-mix(in srgb, var(--poster-ink) 16%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px -14px color-mix(in srgb, var(--poster-ink) 40%, transparent);
}
.px-card--light .px-card__face:hover,
.px-card--light .px-card__face:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 26px -20px color-mix(in srgb, var(--tint) 50%, transparent);
}
.px-card--light .px-card__seat {
  border-color: color-mix(in srgb, var(--poster-ink) 22%, transparent);
  background: rgba(255, 255, 255, 0.62);
  color: var(--tint);
}
.px-card--light .px-card__cast { opacity: 0.9; }
/* The soft accent is too pale to be a call to action on a cream card. */
.px-card--light .px-card__cue { color: var(--tint); opacity: 0.92; }
.px-card--light .px-card__photo { opacity: 0.4; }

/* The glow that sits OUTSIDE the card. It is a sibling of the face, not
   a child, because the face clips its overflow and would swallow it. */
.px-card__aura {
  position: absolute; z-index: 0; inset: 8px 8px 24px;
  border-radius: 20px;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--tint) 85%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--copper, #a2643c) 60%, transparent) 0%, transparent 72%),
    color-mix(in srgb, var(--tint) 40%, transparent);
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.px-card__face { z-index: 1; }
.px-card.is-intro .px-card__aura { animation: beamIn 10.8s ease-in-out 0.35s 1 both; }
.px-card:hover .px-card__aura { opacity: 0.55; }
.px-card--ghost .px-card__aura,
.px-card.is-soon .px-card__aura { display: none; }
@media (prefers-reduced-motion: reduce) {
  .px-card__aura { animation: none; opacity: 0; }
}

/* ---- border beam ----
   One pass of the edition's own accent around the edge, twice on load
   and again on hover. It is a rotating conic gradient masked to a
   hairline ring: the rotation is a transform on a promoted layer, so it
   costs a composite rather than a repaint per frame. */
.px-card__beam {
  /* Two real child elements, not pseudo-elements. A ring mask on ::after
     cannot clip .beam-run, because a pseudo-element is not that child's
     parent -- which is why the conic gradient escaped and washed the
     whole card. Each layer now owns the box that clips it.

     Hover is a TRANSITION, the intro an ANIMATION: driving both from one
     @keyframes only changed the iteration count of something already
     finished, so the glow appeared to freeze. */
  position: absolute; z-index: 2; inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.px-card.is-intro .px-card__beam { animation: beamIn 10.8s ease-in-out 0.35s 1 both; }
/* :focus-within, NOT :focus-visible, was why the beam replayed every
   time an edition was closed: shutting the overlay restores focus to
   the card's own button, which lit the beam as if newly hovered. */
.px-card:hover .px-card__beam,
.px-card__face:focus-visible .px-card__beam { opacity: 1; }

/* the aurora: pools along the top edge, clipped to the card */
.beam-glow {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    /* No white anywhere in this effect. Lifting a colour toward #fff
       desaturates it to a grey highlight; lifting it toward the house
       cream keeps it in palette and still reads as light. */
    radial-gradient(62% 34% at 18% -4%, color-mix(in srgb, var(--tint) 76%, #f3e9d4) 0%, transparent 72%),
    radial-gradient(50% 30% at 54% -6%, var(--copper, #a2643c) 0%, transparent 70%),
    radial-gradient(58% 32% at 88% -2%, color-mix(in srgb, var(--tint-soft, var(--tint)) 72%, #e8dcc2) 0%, transparent 72%);
  filter: blur(14px);
  opacity: 0.72;
  will-change: transform;
}
/* the travelling stroke: a conic gradient masked to a hairline ring */
.beam-ring {
  /* inset:0, NOT a negative inset. The card clips its own overflow, so a
     ring sitting outside the card edge is entirely inside the clipped
     region and never draws. It rides ON the edge instead. */
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  /* 1px, matching the card's own border, and no blur: the beam IS the
     hairline lighting up, not a second thicker stroke beside it. A
     blurred 2.4px band next to a crisp 1px border read as two edges. */
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.beam-run {
  position: absolute; top: 50%; left: 50%;
  width: 165%; aspect-ratio: 1;
  /* A wide, bright arc: a narrow one reads as a flicker on a 2px ring
     rather than light running round the edge. */
  background: conic-gradient(
    from 0deg,
    transparent 0deg, transparent 120deg,
    color-mix(in srgb, var(--tint) 70%, transparent) 186deg,
    var(--copper, #a2643c) 248deg,
    /* No pure white in here. A white hotspot on a coloured edge reads as
       a cheap specular highlight; the brightest point is the edition's
       own accent lifted, which stays in palette. */
    color-mix(in srgb, var(--tint-soft, var(--tint)) 55%, #f3e9d4) 292deg,
    color-mix(in srgb, var(--tint-soft, var(--tint)) 88%, #e8dcc2) 324deg,
    color-mix(in srgb, var(--tint) 45%, transparent) 348deg,
    transparent 360deg);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.px-card.is-intro .beam-run,
.px-card:hover .beam-run,
.px-card__face:focus-visible .beam-run { animation: beamRun 3.6s linear infinite; }
.px-card.is-intro .beam-glow,
.px-card:hover .beam-glow,
.px-card__face:focus-visible .beam-glow { animation: beamDrift 7s ease-in-out infinite alternate; }
@keyframes beamRun {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes beamDrift {
  from { transform: translate3d(-4%, 0, 0); }
  to   { transform: translate3d(4%, 1%, 0); }
}
/* 10.8s is exactly three laps of beamRun, so the arc fades out as it
   crosses the same point it started from rather than mid-edge. */
@keyframes beamIn {
  0%   { opacity: 0; }
  7%   { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .px-card__beam, .beam-glow, .beam-run, .px-card__aura { animation: none; }
  .px-card__beam { opacity: 0; }
}

/* the cast fans out behind the copy — the same six the reveal can land on */
.px-card__cast {
  /* Centred in the space ABOVE the copy rather than measured up from the
     bottom of the card: the copy block is two or three lines depending
     on the edition, so a bottom offset put the fan at a different height
     on every poster. */
  /* Centred between the edition name at the top and the copy block at
     the bottom, not in the whole card: measured from both ends, the
     figure sits optically central instead of riding high. */
  position: absolute; z-index: 0; inset: 17% 0 30%;
  display: flex; justify-content: center; align-items: center;
  /* 0.5 vanished against edition photography; the fan is the one thing
     on the card that says what the product does, so it has to hold. */
  opacity: 0.92;
  transition: opacity 0.45s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.px-card__seat {
  display: grid; place-items: center;
  width: 40px; height: 54px;
  margin-inline: -6px;
  border: 1px solid var(--poster-rim, rgba(255,255,255,0.55));
  border-radius: 4px;
  background: rgba(8, 12, 28, 0.55);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.6);
  transition: margin 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--tint-soft, var(--tint));
  overflow: hidden;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)) scale(var(--s, 1));
  transform-origin: 50% 100%;
}
.px-card__seat img { width: 100%; height: 100%; object-fit: cover; }
/* The unknown seat in the middle of the fan: the edition's own accent as
   a solid fill with the crest gold on top, so it reads as the one card
   still face down rather than an empty frame. Double class, because
   .px-card--light .px-card__seat would otherwise out-specify it and
   paint this one white like the rest. */
.px-card__seat.px-card__seat--you {
  background: var(--tint);
  border-color: color-mix(in srgb, var(--poster-rim, #C8A96B) 70%, transparent);
  color: var(--poster-rim, #C8A96B);
  font: 700 20px/1 var(--sans);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* ---- the rosette ----
   The Petalyx card shows the instrument rather than a hand of cards:
   six petals on their bearings inside the construction geometry, which
   is what the session actually looks like. */
.px-card__cast .rz { width: 72%; height: auto; overflow: hidden; }
.rz path, .rz circle { fill: none; vector-effect: non-scaling-stroke; }
.rz-ring, .rz-poly { stroke: color-mix(in srgb, var(--poster-ink) 26%, transparent); stroke-width: 1; }
.rz-ring--faint, .rz-poly--faint {
  stroke: color-mix(in srgb, var(--poster-ink) 14%, transparent);
  stroke-dasharray: 2 5;
}
.rz-ring--dot {
  stroke: color-mix(in srgb, var(--poster-ink) 15%, transparent);
  stroke-width: 1;
  stroke-dasharray: 1 6;
}
.rz-tick, .rz-spoke {
  stroke: color-mix(in srgb, var(--poster-ink) 15%, transparent);
  stroke-width: 1;
}
.rz-spoke { stroke-dasharray: 2 4; }
.rz-weave { opacity: 0.5; }
.rz-vesica {
  stroke: color-mix(in srgb, var(--tint) 20%, transparent);
  stroke-width: 1;
}
.rz circle.rz-node { fill: color-mix(in srgb, var(--copper, #a2643c) 80%, transparent); stroke: none; }
.rz-petal-body {
  fill: color-mix(in srgb, #fff 72%, transparent);
  stroke: color-mix(in srgb, var(--tint) 72%, transparent);
  stroke-width: 1.6;
}
.rz-glyph { color: color-mix(in srgb, var(--tint) 72%, transparent); }
.rz-glyph svg { overflow: visible; }
.rz circle.rz-hub {
  /* .rz circle sets fill:none at (0,1,1); a single class could never beat
     it, so the hub was unfilled and the white "?" sat on bare paper. */
  fill: var(--tint);
  stroke: color-mix(in srgb, #fff 55%, var(--tint));
  stroke-width: 2;
}
.rz-you {
  fill: #fff;
  font: 700 22px/1 var(--sans);
  letter-spacing: 0;
  paint-order: stroke;
}

/* the whole figure turns once, slowly, while the card is hovered */
.rz-bloom, .rz-frame { transform-box: view-box; transform-origin: 50% 50%; }
.px-card.is-turning .rz-bloom { animation: rzTurn 15s linear infinite; }
.px-card.is-turning .rz-frame { animation: rzTurnBack 24s linear infinite; }
/* Coming off hover, JS freezes each group at the angle it reached and
   adds this class; the transition then carries it to the nearest
   six-fold position, which is indistinguishable from home. Without it
   dropping the animation snapped the figure straight back to zero. */
.px-card.is-settling .rz-bloom,
.px-card.is-settling .rz-frame {
  /* Duration is set inline, scaled to how far it has to travel. The
     figure now settles to a WHOLE turn rather than the nearest sixth:
     the petals are six-fold and look the same either way, but the
     glyphs are not, so a sixth-of-a-turn landing left them to jump when
     the pinned transform was cleared at the end. */
  transition: transform var(--settle, 1.1s) cubic-bezier(0.33, 0, 0.2, 1);
}
@keyframes rzTurn     { to { transform: rotate(360deg); } }
@keyframes rzTurnBack { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .px-card.is-turning .rz-bloom, .px-card.is-turning .rz-frame { animation: none; }
}

/* ---- placeholders ----
   Line only: no poster, no photography, no glow, nothing that reacts.
   They have to read as "not yet", which means looking unlike the two
   that are.

   NOTE on tokens: on this site --cream is the FOREGROUND and --ink the
   background, and the two swap with the theme. (--ink resolves to the
   cream #f7f2e5 in light mode.) Anything meant to be legible ink must
   use --cream / --cream-faint / --hairline, as .px-card__blurb does. */
.px-card--ghost .px-card__face {
  /* A faint neutral fill, not nothing. Pure outline read as a missing
     card; this reads as one that exists but is not open yet. */
  background: color-mix(in srgb, var(--cream) 5%, transparent);
  border: 1px dashed var(--hairline, rgba(24, 32, 64, 0.18));
  box-shadow: none;
  color: var(--cream);
  cursor: default;
  opacity: 0.85;
}
.px-card--ghost .px-card__face:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--hairline, rgba(24, 32, 64, 0.18));
}
.px-card--ghost .px-card__q { color: var(--cream-faint); }
.px-card--ghost .px-card__kicker { color: var(--cream-faint); opacity: 0.8; }
.px-card--ghost .px-card__cue--soon { color: var(--cream-faint); opacity: 0.75; }
/* The wireframe on an unfinished card: the same construction the house
   edition's field is drawn from, line only, with no petals struck on it.
   An edition still in build genuinely IS this -- the geometry exists and
   the skin does not -- so it says something true rather than being three
   decorative circles. */
.px-card__ghostwork {
  position: absolute; z-index: 0; inset: 11% 0 31%;
  display: grid; place-items: center;
}
.px-card__ghostwork .gw { width: 78%; height: auto; overflow: visible; }
.gw path, .gw circle, .gw line { fill: none; }
.gw-ring, .gw-poly, .gw-spoke, .gw-vesica, .gw-tick {
  stroke: var(--cream, #182040);
  stroke-width: 0.9;
}
.gw-ring   { opacity: 0.16; }
.gw-ring--key   { stroke: var(--copper, #a2643c); opacity: 0.4; stroke-dasharray: 5 7; }
.gw-spoke  { opacity: 0.1; stroke-dasharray: 2 5; }
.gw-spoke--key  { opacity: 0.17; stroke-dasharray: none; stroke-width: 0.7; }
.gw-vesica { opacity: 0.07; }
.gw-poly   { opacity: 0.13; stroke-linejoin: round; }
.gw-poly--key   { stroke: var(--copper, #a2643c); opacity: 0.26; stroke-width: 1; }
.gw-poly--faint { opacity: 0.08; stroke-dasharray: 3 6; }
.gw-tick   { opacity: 0.14; stroke-width: 0.8; }
.gw circle.gw-node { fill: var(--copper, #a2643c); stroke: none; opacity: 0.3; }

/* The wheels turn, very slowly, and only ever by whole periods of their
   own symmetry -- 30 degrees for the twelve-sided ring, 60 for the
   hexagons. So the drawing is in perfect register at every instant you
   could actually look at it, and the movement is the only thing you
   notice. The still layer never moves at all. */
.gw-wheel { transform-box: view-box; transform-origin: 50% 50%; }
.gw-wheel--tick { animation: gwTick 48s linear infinite; animation-delay: calc(var(--off, 0s) * -1); }
.gw-wheel--hex  { animation: gwHex  72s linear infinite; animation-delay: calc(var(--off, 0s) * -1); }
@keyframes gwTick { to { transform: rotate(360deg); } }
@keyframes gwHex  { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gw-wheel { animation: none; }
}
.px-card--ghost .px-card__blurb { opacity: 0.7; }

.px-card__head {
  position: absolute; z-index: 2; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.85rem 0.95rem;
}
.px-card__name {
  font-family: var(--card-font, var(--serif));
  font-size: 1.02rem; letter-spacing: 0.01em;
}
.px-card__mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--tint-soft, var(--tint)); }
/* A photographic crest brings its own silhouette; a flat mark needs a
   frame to carry the same weight beside it. */
.px-card--light .px-card__mark img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.px-card__mark img { width: 100%; height: 100%; object-fit: contain; }
.px-card__mark svg { width: 22px; height: 22px; }

.px-card__body { position: absolute; z-index: 2; inset: auto 0 0; padding: 0.95rem; }
.px-card__kicker {
  display: block;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tint-soft, var(--tint));
}
.px-card__q {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--card-font, var(--serif));
  font-size: 1.14rem; line-height: 1.22;
}
.px-card__cue {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  /* The edition's own accent: navy on the house card, red on Arsenal.
     It is the one thing on the poster asking to be pressed, so it should
     not be the same grey as the copy around it. */
  color: var(--tint-soft, var(--tint));
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}
.px-card__face:hover .px-card__cue { opacity: 1; }
.px-card__blurb { margin: 0.7rem 0.2rem 0; font-size: 0.88rem; color: var(--cream-faint); }

/* An edition with no gateway version yet. Still shown — the range is
   the argument — but visibly not a thing you can press. */
.px-card.is-soon .px-card__face { cursor: default; }
.px-card.is-soon .px-card__face:hover { transform: none; box-shadow: none; }
.px-card.is-soon .px-card__q { opacity: 0.85; }
/* A restrained house-colour ribbon marks editions still in preparation. */
.px-card__tape {
  position: absolute; z-index: 4;
  left: -20%; right: -20%; top: 44%;
  display: flex; justify-content: center; gap: 1.6em;
  padding: 0.85em 0;
  transform: rotate(-10deg);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
  color: var(--cream-dim);
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(13,20,40,0.12);
  pointer-events: none;
}
.px-card__tape span::before { content: "\2022"; margin-right: 1.6em; color: var(--copper); }
.px-card__cue--soon {
  color: var(--tint-soft, var(--tint));
  opacity: 1;
}

/* ---- the scatter ----
   The cards that were not chosen leave in the direction they already
   sit, so the movement reads as the rest of the range getting out of
   the way rather than as a generic fade. */
.px-range[data-state="opening"] .px-rail,
.px-range[data-state="open"] .px-rail { pointer-events: none; }
.px-card.is-leaving .px-card__face {
  transform: translate(var(--dx, 0), var(--dy, 26px)) rotate(var(--rot, 0deg)) scale(0.86);
  opacity: 0;
  transition: transform 0.52s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.34s ease-in;
  transition-delay: var(--delay, 0s);
}
.px-card.is-chosen .px-card__face {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 30px 60px rgba(24, 32, 64, 0.3);
  opacity: 0;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease-in 0.2s;
}

/* The hidden attribute is only a UA rule of display:none, so any author
   display on these elements beats it. They are all toggled with .hidden
   from script, so they have to say so explicitly. */
.px-overlay[hidden],
.px-dock[hidden],
.px-stage__state[hidden] { display: none !important; }

/* ---- the demo overlay ----
   A page overlay rather than a block in the section: as a block it could
   only ever be as tall as the layout allowed, which on a phone left the
   widget in a letterbox. Fixed to the viewport it gets the whole screen
   on every device. It lives at the end of <body> so no transformed
   ancestor can break the fixed positioning. */
.px-overlay {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(0px, 2vw, 28px);
  /* dvh tracks the mobile URL bar; vh is the fallback for older engines */
  height: 100vh;
  height: 100dvh;
}
.px-overlay__scrim {
  position: absolute; inset: 0;
  background: rgba(9, 13, 26, 0.78);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.36s ease;
}
.px-overlay__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* The instrument is the point of this page, so it gets the room. The
     vh/vw caps keep it inside the viewport on a laptop while letting a
     large screen give it real presence. */
  width: min(1400px, 96vw);
  height: min(1080px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(247, 242, 229, 0.14);
  border-radius: 16px;
  background: #182040;
  box-shadow: 0 40px 90px rgba(4, 8, 20, 0.55);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

/* ---- resizable panel ----
   The overlay behaves like a window: a native resize grip in the
   bottom-right corner, a floor it cannot be shrunk past, and a ceiling
   at the viewport. It stays an OVERLAY on this page throughout — it is
   never a popup and never a new tab, so the visitor never leaves the
   site and a half-finished session can't be stranded somewhere else.

   This is CSS resize rather than custom pointer code on purpose: the
   grip, the cursor and the keyboard behaviour are the browser's own, so
   it matches whatever the visitor's OS already does. What is NOT
   possible in a page is real window chrome — macOS traffic lights
   belong to the browser frame, not to a document, and no in-page
   element can draw them. */
.px-overlay__panel {
  resize: both;
  min-width: min(360px, 100vw);
  min-height: min(520px, 100vh);
  max-width: 100vw;
  max-height: 100vh;
}
/* The grip needs a corner it can sit in that the rounded edge doesn't
   clip, and it must sit above the iframe or the frame swallows it. */
.px-overlay__panel::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 18px; height: 18px; z-index: 3; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 46%, rgba(247,242,229,0.34) 46% 54%, transparent 54%),
    linear-gradient(135deg, transparent 66%, rgba(247,242,229,0.34) 66% 74%, transparent 74%);
}

/* A phone has no window management and no room to spare: the overlay is
   the whole screen, and resizing it is meaningless. */
@media (max-width: 720px), (pointer: coarse) {
  .px-overlay__panel {
    resize: none;
    width: 100%; height: 100%;
    max-width: none; max-height: none;
    border-radius: 0; border: 0;
  }
  .px-overlay__panel::after { display: none; }
}

/* Opening and closing are driven from main.js, which measures the card
   that was pressed and grows the panel out of it. These two states are
   only the start and end points. */
.px-overlay[data-anim="from"] .px-overlay__panel { opacity: 0; }
.px-overlay[data-anim="open"] .px-overlay__panel { opacity: 1; transform: none; }
.px-overlay[data-anim="to"] .px-overlay__panel {
  opacity: 1;
  transform: none !important;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease-out;
}
.px-overlay[data-anim="to"] .px-overlay__scrim,
.px-overlay[data-anim="open"] .px-overlay__scrim { opacity: 1; }
.px-overlay[data-anim="out"] .px-overlay__panel {
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.28s ease-in;
}
.px-overlay[data-anim="out"] .px-overlay__scrim { opacity: 0; }

/* The page must not scroll behind the overlay. position:fixed rather
   than overflow:hidden, because iOS Safari ignores the latter on body. */
body.px-locked { position: fixed; width: 100%; overflow: hidden; }

.px-stage__bar,
.px-stage__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex: 0 0 auto;
  padding: 0.7rem clamp(0.8rem, 3vw, 1.4rem);
  color: rgba(247, 242, 229, 0.62);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
}
.px-stage__bar { border-bottom: 1px solid rgba(247, 242, 229, 0.12); }
.px-stage__foot { border-top: 1px solid rgba(247, 242, 229, 0.12); }
.px-stage__id { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.px-stage__id b { color: rgba(247, 242, 229, 0.92); font-weight: 600; }
.px-stage__id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-stage__id i {
  flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--stage-tint, #c67b52);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage-tint, #c67b52) 16%, transparent);
}
.px-stage__tools, .px-dock__acts { display: inline-flex; gap: 0.4rem; flex: 0 0 auto; }
.px-stage__btn {
  /* 44px of touch target without a 44px-looking button */
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(247, 242, 229, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 242, 229, 0.86);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.22s, background 0.22s, color 0.22s;
}
.px-stage__btn:hover { border-color: rgba(247, 242, 229, 0.6); background: rgba(247, 242, 229, 0.08); }
.px-stage__btn--quiet { color: rgba(247, 242, 229, 0.55); }

.px-stage__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--stage-tint, #a05f3c) 22%, transparent), transparent 40%),
    #182040;
}
.px-stage__viewport iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.px-overlay[data-ready="1"] .px-stage__viewport iframe { opacity: 1; }

/* ---- loading and failure, inside the frame's place ---- */
.px-stage__state {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 0.8rem;
  padding: 2rem;
  text-align: center;
  color: rgba(247, 242, 229, 0.72);
}
.px-overlay[data-ready="1"] #px-stage-loading { display: none; }
.px-stage__state p { margin: 0; font-size: 0.95rem; }
.px-stage__state-title { font-family: var(--serif); font-size: 1.4rem; color: #f7f2e5; }
.px-stage__state-note { max-width: 40ch; color: rgba(247, 242, 229, 0.58); }
.px-stage__state-acts { display: inline-flex; gap: 0.5rem; margin-top: 0.4rem; }
.px-spinner {
  width: 26px; height: 26px;
  border: 2px solid rgba(247, 242, 229, 0.18);
  border-top-color: var(--stage-tint, #c67b52);
  border-radius: 50%;
  animation: px-spin 0.9s linear infinite;
}
@keyframes px-spin { to { transform: rotate(360deg); } }

/* ---- a paused session ----
   Docked to the viewport, not left in the section, so it is reachable
   from wherever the reader has scrolled to. */
.px-dock {
  position: fixed;
  z-index: 880;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  border: 1px solid rgba(247, 242, 229, 0.16);
  border-radius: 999px;
  background: #182040;
  box-shadow: 0 16px 40px rgba(4, 8, 20, 0.4);
  color: rgba(247, 242, 229, 0.66);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
}
.px-dock b { color: rgba(247, 242, 229, 0.92); }

/* ---- phones ----
   Full bleed, and the chrome clears the notch and the home indicator. */
@media (max-width: 720px) {
  .px-overlay { padding: 0; }
  .px-overlay__panel {
    width: 100%; height: 100%;
    border: 0; border-radius: 0;
  }
  .px-stage__bar { padding-top: calc(0.7rem + env(safe-area-inset-top, 0px)); }
  .px-stage__foot {
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.58rem; letter-spacing: 0.08em;
  }
  .px-stage__foot span:first-child { display: none; }
  .px-stage__bar { font-size: 0.6rem; letter-spacing: 0.1em; }
  .px-stage__id span { display: none; }
  .px-rail > li { width: min(74vw, 250px); }
  .px-dock { font-size: 0.6rem; letter-spacing: 0.1em; padding-left: 0.9rem; }
}

/* Motion is opt-in on this site; without it the overlay simply appears. */
@media (prefers-reduced-motion: reduce) {
  .px-card__face,
  .px-card.is-leaving .px-card__face,
  .px-card.is-chosen .px-card__face,
  .px-overlay__panel,
  .px-overlay__scrim { transition: none !important; transform: none !important; }
  .px-overlay__scrim { opacity: 1; }
  .px-spinner { animation: none; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: var(--z-content); margin-top: clamp(0.5rem, 1.5vw, 1rem); }
.site-footer .wrap { padding-block: clamp(1.5rem, 3vw, 2.25rem) 1.4rem; text-align: center; }
.foot-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0.55rem; margin-bottom: 1.15rem; text-decoration: none; }
.foot-brand img { width: 46px; height: 46px; border-radius: 10px; }
.foot-brand span { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45em 1.1em; font-size: 0.95rem; margin-bottom: 0.9rem; }
.foot-contact a { color: var(--cream-dim); text-decoration: none; transition: color 0.25s; }
.foot-contact a:hover { color: var(--copper-hi); }
.foot-contact .dot { color: var(--copper); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5em 1.6em; margin-bottom: 1.15rem; }
.foot-nav a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-faint); text-decoration: none; transition: color 0.25s;
}
.foot-nav a:hover { color: var(--copper-hi); }
.foot-legal { font-size: 0.88rem; line-height: 1.7; color: rgba(24, 32, 64, 0.6); max-width: 62ch; margin-inline: auto; }

/* ============================================================
   LIVE CONTOUR CANVASES — one procedural engine, three voices
   · [data-lines="deep"]  faint cream isolines at the top of a
     page, dissolving downwards (replaces static texture image)
   · [data-lines="light"] navy isolines on cream bands, drifting
     and bending gently around the cursor
   · hero fields (bathy) use the same engine at full presence
   ============================================================ */
.band-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.band-cream .band-lines { mix-blend-mode: multiply; }
.band-cream[data-lines]::before { content: none; }
.page-hero > .band-lines { z-index: 0; }
.page-hero .wrap { z-index: 1; }

/* ============================================================
   SURFACING PRINCIPLE — the site reads as a depth chart.
   Ambient navy is the deep: evidence, mechanism, instrument.
   A cream band is a surfacing — the moment the page comes up
   for air to speak to a human: an invitation, a person, a next
   step. At most one surfacing per page; the contrast is the
   personality, and scarcity is what keeps it.
   ============================================================ */
.band-cream .detail-list { border-top-color: rgba(16, 22, 44, 0.16); max-width: 720px; margin-inline: auto; text-align: left; }
.band-cream .detail-list .row { border-bottom-color: rgba(16, 22, 44, 0.12); }
.band-cream .detail-list dt { color: #a05f3c; }
.band-cream .detail-list dd { color: rgba(30, 32, 44, 0.85); }

/* ============================================================
   PAGE HEROES v2 — every page opens on its own instrument,
   built from the same wireframe language as the home hero:
   a quick, confident overture, then straight into content.
   ============================================================ */
.ph {
  position: relative;
  min-height: clamp(440px, 66svh, 700px);
  display: flex; align-items: center;
  padding: clamp(6.5rem, 12vh, 8.5rem) 0 clamp(3rem, 7vh, 4.5rem);
  overflow: hidden;
}
.ph-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  /* the artwork itself dissolves before the hero ends — no seam
     against the section below, whatever the body gradient is doing */
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 97%);
}
.ph-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 242, 229, 0.85) 0%, rgba(247, 242, 229, 0.4) 40%, rgba(247, 242, 229, 0) 62%),
    linear-gradient(180deg, rgba(247, 242, 229, 0.4) 0%, rgba(247, 242, 229, 0) 30%);
}
.ph--bathy .ph-scrim {
  background:
    radial-gradient(85% 110% at 22% 44%, rgba(247, 242, 229, 0.82) 0%, rgba(247, 242, 229, 0.3) 48%, rgba(247, 242, 229, 0) 72%),
    linear-gradient(180deg, rgba(247, 242, 229, 0.4), rgba(247, 242, 229, 0) 30%);
}
.ph--about .ph-scrim {
  background:
    radial-gradient(70% 100% at 18% 48%, rgba(247, 242, 229, 0.9) 0%, rgba(247, 242, 229, 0.55) 48%, rgba(247, 242, 229, 0) 78%),
    linear-gradient(180deg, rgba(247, 242, 229, 0.4), rgba(247, 242, 229, 0) 32%);
}
.ph-inner { position: relative; z-index: 2; width: 100%; }
.ph h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  margin: 1.35rem 0 1.5rem;
  max-width: 15ch;
}
.ph .lede { max-width: 46ch; }
/* hero small-caps strips retired per client feedback */
.ph-meta, .ph-cue, .hx-cue, .hx-progress, .hx-counter { display: none !important; }
.ph-meta {
  align-items: center; row-gap: 0.5em;
  margin-top: 1.7rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cream-faint);
}
.ph-meta .sep { color: var(--copper); padding-inline: 0.55em; }
.ph-cue {
  position: absolute; bottom: 4.5svh; z-index: 2;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--cream-faint);
  pointer-events: none;
}
.ph-cue::after {
  content: ""; width: 1px; height: 44px; margin-left: 2px;
  background: linear-gradient(var(--copper-hi), transparent);
}
html.motion-ok .ph-cue::after { animation: cue-drop 2.2s var(--ease-soft) infinite; }
@media (max-width: 760px) {
  .ph { min-height: clamp(420px, 66svh, 620px); padding-top: clamp(6rem, 12vh, 7.5rem); }
  .ph h1 { max-width: none; }
  .ph-scrim, .ph--bathy .ph-scrim {
    background:
      linear-gradient(180deg, rgba(247, 242, 229, 0.55) 0%, rgba(247, 242, 229, 0.6) 55%, rgba(247, 242, 229, 0) 96%);
  }
  .ph--capture,
  .ph--minute,
  .ph--vault,
  .ph--about {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(6.6rem, 13vh, 8rem) 0 clamp(4rem, 9vh, 5.5rem);
  }
  .ph--capture .ph-canvas,
  .ph--minute .ph-canvas,
  .ph--vault .ph-canvas,
  .ph--about .ph-canvas {
    position: relative;
    inset: auto;
    order: 1;
    z-index: 1;
    width: 100%;
    height: clamp(260px, 46svh, 380px);
    margin-bottom: clamp(1.1rem, 5vw, 2rem);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ph--capture .ph-inner,
  .ph--minute .ph-inner,
  .ph--vault .ph-inner,
  .ph--about .ph-inner {
    order: 2;
  }
  .ph--capture .ph-scrim,
  .ph--minute .ph-scrim,
  .ph--vault .ph-scrim,
  .ph--about .ph-scrim {
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(247, 242, 229, 0.2) 0%, rgba(247, 242, 229, 0.1) 42%, rgba(247, 242, 229, 0) 100%);
  }
  .ph--about .ph-canvas {
    height: clamp(310px, 52svh, 430px);
    margin-bottom: 0.7rem;
  }
  .ph-cue { display: none; }
}

/* ============================================================
   CURTAIN REVEALS — deep media wipes into view top-to-bottom
   ============================================================ */
.rv--curtain { transform: none; clip-path: inset(0 0 100% 0); }
html.motion-ok .rv--curtain {
  transition:
    clip-path 1.2s var(--ease-out),
    opacity 0.9s var(--ease-soft);
  transition-delay: var(--d, 0s);
}
.rv--curtain.in, html:not(.motion-ok) .rv--curtain { clip-path: inset(0 0 0 0); transform: none; }

/* ============================================================
   SIX-COORDINATE COMPASS (Semantic Bathymetry) — forms on scroll
   ============================================================ */
.sbc { position: relative; max-width: 920px; margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.sbc svg { display: block; width: 100%; height: auto; overflow: visible; }
.sbc-ring { fill: none; stroke: var(--cream); opacity: 0.26; }
.sbc-ring--dash { stroke-dasharray: 3 9; opacity: 0.16; }
.sbc-tick { stroke: var(--cream); opacity: 0.3; }
.sbc-axis { stroke: var(--cream); opacity: 0.1; }
.sbc-star { fill: url(#sbcFill); stroke: var(--cream); stroke-width: 2.2; opacity: 0.96; }
.sbc-contour { fill: none; stroke: var(--copper-hi); stroke-width: 1.1; opacity: 0.42; }
.sbc-contour--cream { stroke: var(--cream); opacity: 0.2; }
.sbc-center-dot { fill: var(--copper-hi); }
.sbc-center-halo { fill: none; stroke: var(--copper); stroke-width: 1; opacity: 0.35; }
.sbc-label-pos { font-family: var(--serif); font-weight: 400; font-size: 30px; fill: var(--cream); }
.sbc-label-vs { font-family: var(--serif); font-style: italic; font-size: 21px; fill: var(--copper-hi); }
.sbc-label-neg { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: 25px; fill: var(--cream-dim); }
.sbc-label-sub { font-family: var(--sans); font-weight: 500; font-size: 13.5px; letter-spacing: 0.16em; fill: rgba(198, 123, 82, 0.85); text-transform: uppercase; }
html.motion-ok .sbc.is-alive .sbc-star-wrap {
  transform-box: fill-box; transform-origin: center;
  animation: sbc-breathe 8s ease-in-out infinite;
}
html.motion-ok .sbc.is-alive .sbc-ticks {
  transform-box: fill-box; transform-origin: center;
  animation: sbc-rot 150s linear infinite;
}
@keyframes sbc-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes sbc-rot { to { transform: rotate(360deg); } }
.fig-note {
  margin-top: 1.4rem; text-align: center;
  font-size: 0.95rem; letter-spacing: 0.03em; color: var(--cream-faint);
}

/* wide scroll-formed terrain panel */
.viz-panel--wide { aspect-ratio: 16 / 8.5; }
@media (max-width: 700px) { .viz-panel--wide { aspect-ratio: 4 / 3.4; } }

/* taller surface panel — headroom for the peaks */
.viz-panel--tall { aspect-ratio: 16 / 11; }
@media (max-width: 700px) { .viz-panel--tall { aspect-ratio: 4 / 3.6; } }

/* ============================================================
   DARK THEME — an explicit navy/copper alternative. Light mode
   remains the default and the control changes only by request.
   ============================================================ */
body,
.site-header,
.mobile-menu,
.band-cream,
.card,
.callout,
.viz-panel,
.viz-hint {
  transition-property: color, background-color, background-image, border-color, box-shadow;
  transition-duration: 0.32s;
  transition-timing-function: var(--ease-soft);
}

html[data-theme="dark"] body {
  background-color: var(--ink);
  background-image:
    radial-gradient(100% 82% at 48% -12%, rgba(45, 59, 96, 0.44) 0%, rgba(13, 20, 40, 0) 61%),
    radial-gradient(76% 62% at 88% 108%, rgba(198, 123, 82, 0.11) 0%, rgba(13, 20, 40, 0) 58%);
}
html[data-theme="dark"] .grain { opacity: 0.035; }
html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(13, 20, 40, 0.84);
  border-bottom-color: var(--hairline-2);
}
html[data-theme="dark"] .mobile-menu { background: rgba(13, 20, 40, 0.98); }
html[data-theme="dark"] .theme-toggle {
  background: rgba(247, 242, 229, 0.045);
  border-color: rgba(224, 154, 108, 0.34);
}
html[data-theme="dark"] .theme-toggle:hover {
  color: #f7f2e5;
  background: rgba(198, 123, 82, 0.13);
}

html[data-theme="dark"] .btn { border-color: rgba(247, 242, 229, 0.38); }
html[data-theme="dark"] .btn--ink {
  color: #f7f2e5;
  border-color: rgba(247, 242, 229, 0.4);
}
html[data-theme="dark"] .btn--ink::before { background: #c67b52; }
html[data-theme="dark"] .btn--ink:hover,
html[data-theme="dark"] .btn--ink:focus-visible { color: #0d1428; border-color: #c67b52; }

html[data-theme="dark"] .band-cream {
  color: var(--cream-dim);
  background:
    radial-gradient(90% 120% at 8% 10%, rgba(198, 123, 82, 0.12), transparent 52%),
    linear-gradient(180deg, #17233f 0%, #10182f 100%);
  border-color: rgba(224, 154, 108, 0.17);
}
html[data-theme="dark"] .band-cream::before { opacity: 0.09; mix-blend-mode: screen; }
html[data-theme="dark"] .band-cream h2 { color: var(--cream); }
html[data-theme="dark"] .band-cream h2 em,
html[data-theme="dark"] .band-cream .eyebrow { color: var(--copper-hi); }
html[data-theme="dark"] .band-cream .eyebrow::before { background: var(--copper-hi); }
html[data-theme="dark"] .band-cream p { color: var(--cream-dim); }
html[data-theme="dark"] .band-cream .divider {
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
html[data-theme="dark"] .band-cream .band-lines { mix-blend-mode: screen; opacity: 0.34; }
html[data-theme="dark"] .band-cream .detail-list { border-top-color: var(--hairline); }
html[data-theme="dark"] .band-cream .detail-list .row { border-bottom-color: var(--hairline-2); }
html[data-theme="dark"] .band-cream .detail-list dt { color: var(--copper-hi); }
html[data-theme="dark"] .band-cream .detail-list dd { color: var(--cream-dim); }

html[data-theme="dark"] .callout,
html[data-theme="dark"] .card {
  background:
    radial-gradient(100% 130% at 100% 0%, rgba(198, 123, 82, 0.075), transparent 46%),
    linear-gradient(155deg, rgba(23, 35, 63, 0.96), rgba(14, 23, 45, 0.9));
  border-color: var(--hairline-2);
}
html[data-theme="dark"] .card--light,
html[data-theme="dark"] .card--dev {
  background:
    linear-gradient(135deg, rgba(100, 132, 176, 0.1), transparent 44%),
    radial-gradient(120% 140% at 100% 100%, rgba(198, 123, 82, 0.1), transparent 50%),
    linear-gradient(160deg, #182440 0%, #111b34 100%);
  border-color: var(--hairline);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .card--light::before,
html[data-theme="dark"] .card--dev::before {
  background:
    radial-gradient(85% 100% at 0% 12%, rgba(143, 171, 212, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(247, 242, 229, 0.04), transparent),
    linear-gradient(90deg, rgba(224, 154, 108, 0.58) 0 14px, transparent 14px) 20px 20px / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(224, 154, 108, 0.58) 0 14px, transparent 14px) 20px 20px / 1px 100% no-repeat;
}
html[data-theme="dark"] .card--light::after,
html[data-theme="dark"] .card--dev::after { border-color: var(--hairline-2); }
html[data-theme="dark"] .card--light h3,
html[data-theme="dark"] .card--dev h3,
html[data-theme="dark"] .card--light .card-mail { color: var(--cream); }
html[data-theme="dark"] .card--light p,
html[data-theme="dark"] .card--dev p { color: var(--cream-faint); }
html[data-theme="dark"] .card--light .eyebrow,
html[data-theme="dark"] .card--dev .eyebrow { color: var(--copper-hi); }

html[data-theme="dark"] .profile-card .pic--cutout {
  background: radial-gradient(100% 100% at 50% 0%, rgba(198, 123, 82, 0.2), rgba(23, 35, 63, 0.9) 72%);
}
html[data-theme="dark"] .viz-panel {
  background:
    radial-gradient(110% 120% at 50% -20%, rgba(41, 57, 91, 0.76), rgba(17, 27, 52, 0.28) 65%),
    linear-gradient(160deg, #17233f, #0f182f);
}
html[data-theme="dark"] .viz-hint { background: rgba(13, 20, 40, 0.78); }
html[data-theme="dark"] .foot-legal { color: rgba(247, 242, 229, 0.56); }

html[data-theme="dark"] .ph-scrim {
  background: radial-gradient(ellipse 72% 76% at 18% 45%, rgba(13, 20, 40, 0.62), rgba(13, 20, 40, 0) 78%);
}
html[data-theme="dark"] .ph--bathy .ph-scrim,
html[data-theme="dark"] .ph--about .ph-scrim {
  background: radial-gradient(ellipse 76% 78% at 19% 46%, rgba(13, 20, 40, 0.7), rgba(13, 20, 40, 0) 80%);
}
html[data-theme="dark"] .ph-canvas,
html[data-theme="dark"] .viz-panel canvas,
html[data-theme="dark"] .band-lines {
  filter: invert(1) hue-rotate(180deg) saturate(0.68) brightness(1.04);
}
html[data-theme="dark"] .ph--bathy .ph-canvas,
html[data-theme="dark"] .ph--minute .ph-canvas { filter: none; }

@media (max-width: 760px) {
  html[data-theme="dark"] .ph-scrim,
  html[data-theme="dark"] .ph--bathy .ph-scrim,
  html[data-theme="dark"] .ph--about .ph-scrim {
    background: linear-gradient(180deg, rgba(13, 20, 40, 0.28), rgba(13, 20, 40, 0.5) 55%, rgba(13, 20, 40, 0) 96%);
  }
}


/* ---- anchor landings ----
   The nav's Demo tab links to #demo on the Petalyx page. The header is
   fixed, so without this the section lands underneath it. */
[id="demo"] { scroll-margin-top: 96px; }

/* ---- demo disclaimer ----
   Legally required copy, so it is set to be read rather than skipped:
   full contrast on the lead line, a rule above it so it reads as a
   distinct notice rather than more marketing. It spans the full
   content width. Quiet, but never grey-on-grey. */
.px-disclaimer {
  max-width: none;
  margin: 2.2rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule, rgba(24, 32, 64, 0.16));
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-2, inherit);
}
.px-disclaimer p + p { margin-top: 0.7rem; }
/* --ink is the BACKGROUND token on this site and swaps with the theme,
   so colouring text with it rendered the lead paragraph and every
   <strong> in the background colour: invisible in BOTH themes. The
   foreground token is --cream. */
.px-disclaimer__lead { font-weight: 600; color: var(--cream, inherit); }
.px-disclaimer strong { font-weight: 700; color: var(--cream, inherit); }
.px-disclaimer__reg {
  font-size: 0.78rem;
  opacity: 0.85;
}
.px-disclaimer__reg abbr { text-decoration: none; border-bottom: 1px dotted currentColor; }
.px-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.px-disclaimer a:hover { color: var(--copper, currentColor); }

/* ---- demo page, standalone ----
   Every other page opens with a hero that clears the fixed header. The
   demo page goes straight into the edition rail, so it needs that room
   explicitly or the eyebrow sits under the nav. */
.px-demo-section--standalone { padding-top: clamp(7rem, 12vw, 10rem); }

/* ---- the corner field ----
   Construction geometry low on the left, behind everything, at a
   whisper. Every radius here is one of four rings and every vertex and
   line end lands on one of them -- it is generated from the same
   trigonometry as the instrument, not drawn by eye, because a crooked
   technical drawing is worse than none. */
.px-demo-section { position: relative; overflow: hidden; }

/* ---- the corner field ----
   The page-background look: a technical drawing set mostly off the
   bottom-left corner so only its upper-right quadrant is on the page,
   with twelve spokes running out of the figure and far across the
   section.

   Two rules make it read as background rather than as a picture placed
   in a corner. It is GREY -- one token, the theme's own foreground, at
   single-digit opacity, with the copper taken out; an accent colour down
   here competes with the text for the eye and this is not supposed to be
   looked at. And it is MASKED, radially, from its own centre: the ink
   fades to nothing before it reaches any edge, so the spokes end by
   running out of darkness rather than by hitting the bottom of the
   section. It used to stop dead at the footer, because a section with
   `overflow: hidden` shears its contents off at the border box -- and a
   drawing with a straight cut across it is obviously a drawing with a
   straight cut across it. Fading is the only way out: you cannot ask the
   section not to clip without putting the overhang into the page's
   scroll width.

   Detail is deliberately thinner than the instrument's own field -- no
   vesica circles, no construction nodes. At this opacity fine detail
   does not resolve, it just makes the area look faintly dirty. */
.px-field {
  position: absolute; z-index: 0;
  left: clamp(-28rem, -22vw, -13rem);
  bottom: clamp(-24rem, -19vw, -11rem);
  width: clamp(560px, 52vw, 1000px); height: auto;
  pointer-events: none;
  opacity: 0.62;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%,
    #000 16%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.22) 70%, transparent 88%);
          mask-image: radial-gradient(closest-side at 50% 50%,
    #000 16%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.22) 70%, transparent 88%);
}
.px-demo-section > .wrap { position: relative; z-index: 1; }
.px-field circle, .px-field path, .px-field line { fill: none; }
.pf-ring, .pf-poly, .pf-spoke, .pf-tick {
  stroke: var(--cream, #182040);
  stroke-width: 1;
}
.pf-ring        { opacity: 0.075; }
.pf-ring--key   { opacity: 0.12; stroke-dasharray: 6 9; }
.pf-ring--dot   { opacity: 0.05; stroke-dasharray: 2 10; }
.pf-spoke       { opacity: 0.055; }
.pf-spoke--key  { opacity: 0.085; }
.pf-poly        { opacity: 0.055; stroke-linejoin: round; }
.pf-poly--key   { opacity: 0.095; }
.pf-poly--faint { opacity: 0.04; stroke-dasharray: 3 8; }
.pf-tick        { opacity: 0.06; }

/* Only the wheels turn, and only by whole periods of their own symmetry
   -- 30 degrees for the twelve-sided ring, 60 for the hexagons -- so the
   figure is square at every instant. The layer that states where the
   petals are never moves. */
.px-field__wheel { transform-box: view-box; transform-origin: 50% 50%; }
.px-field__wheel        { animation: pfTurn 150s linear infinite; }
.px-field__wheel--back  { animation: pfTurnBack 220s linear infinite; }
@keyframes pfTurn     { to { transform: rotate(360deg); } }
@keyframes pfTurnBack { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .px-field__wheel { animation: none; }
}
@media (max-width: 760px) {
  .px-field { width: 620px; left: -20rem; bottom: -17rem; opacity: 0.5; }
}

/* ---- demo status note ----
   Stands in for the demo button while the demonstration is unpublished.
   Quiet and factual: it is a statement of where things are, not a
   disabled control, so it must not look like something to click. */
.px-demo-status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-2, inherit);
}
.px-demo-status__dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--copper, #a2643c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper, #a2643c) 22%, transparent);
}
