/*
 * Lumen (selected direction, refined)
 * Calm product stage: tight semibold sans, mist white, deep navy, aqua and
 * lilac light. The stage is one object: four glass panes on a turntable that
 * turns only when a capability is chosen, the selected one always front and
 * centre, lit from the top left. Nothing moves while idle.
 */

.lumen {
  --bg: #f3f6f8;
  --ink: #0c1522;
  --ink-2: #475467;
  --ink-3: #5f6b7d;
  --line: rgba(12, 21, 34, 0.1);
  --field: rgba(12, 21, 34, 0.45);
  --teal: #0b6b64;
  --teal-2: #2aa597;
  --violet: #7d77e8;
  --aqua: #67d3c8;
  --lilac: #a9a4f4;
  --error: #b42318;
  --focus: #0b6b64;
  --ui: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  /*
   * The vw ceiling equals the clamp from 320px up, so normal sizes are
   * unchanged; it only stops enlarged text (200%) from doubling the gutter.
   */
  --pad: min(clamp(1.25rem, 4.5vw, 4rem), 6.25vw);
  --max: 1280px;
  --section: clamp(4rem, 8vw, 7rem);
  /* Notch / status bar and home-indicator areas (viewport-fit=cover); 0 on ordinary screens. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(169, 164, 244, 0.2), transparent 62%),
    radial-gradient(900px 520px at 6% 2%, rgba(103, 211, 200, 0.18), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ui);
  /* Breaks a word only when it cannot fit its line (e.g. 200% text on a phone). */
  overflow-wrap: break-word;
}

/* Side gutters never fall inside a notch or rounded corner (viewport-fit=cover); 0 elsewhere. */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
}

/*
 * Unfocused, the skip link keeps base.css's top and hiding transform, so it
 * sits fully above the viewport at any inset. Focused, it drops into the
 * safe area with a ring that shows on the light page.
 */
.lumen .skip-link {
  left: max(0.5rem, env(safe-area-inset-left, 0px));
}

.lumen .skip-link:focus {
  top: max(0.5rem, var(--safe-top));
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.h2 {
  max-width: 18ch;
  font: 600 clamp(1.875rem, 1.15rem + 2.2vw, 3rem)/1.06 var(--ui);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ---------- Actions: three distinct priorities ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font: 600 0.9375rem/1.1 var(--ui);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pill--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(12, 21, 34, 0.6);
}

.pill--ink:hover {
  background: #1c2a42;
  transform: translateY(-1px);
}

.pill--glass {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--field);
}

.pill--glass:hover {
  background: #fff;
}

.pill--quiet {
  padding-inline: 0.9rem;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(12, 21, 34, 0.35);
  text-underline-offset: 0.3em;
}

.pill--quiet:hover {
  text-decoration-color: currentColor;
}

.pill--large {
  min-height: 54px;
  padding-inline: 1.8rem;
  font-size: 1rem;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 0.35rem;
  color: var(--ink);
  font: 600 0.9375rem/1.1 var(--ui);
  text-decoration: underline;
  text-decoration-color: rgba(12, 21, 34, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.textlink:hover {
  text-decoration-color: currentColor;
}

.textlink__arrow {
  transition: transform 0.25s ease;
}

.textlink:hover .textlink__arrow {
  transform: translateY(2px);
}

/* ---------- Top bar ---------- */

/* Brand and action start below a notch or status bar; the opening budgets count this once. */
.topbar {
  padding-top: var(--safe-top);
}

/*
 * Wraps only when the content no longer fits (for example 200% text on a
 * phone): the CTA moves to its own line first, and its words break only if
 * it is still too wide there. At normal sizes everything fits on one line,
 * so nothing changes.
 */
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 76px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin-right: auto;
  font: 600 1.0625rem/1 var(--ui);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand__glyph {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffffff 0%, #d4f1ec 42%, #c6c2fa 100%);
  box-shadow: inset 1px 1px 0 #fff, 0 0 0 1px rgba(12, 21, 34, 0.14), 0 6px 14px -6px rgba(40, 70, 120, 0.5);
  transform: rotate(-8deg);
}

.brand__glyph--small {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}

.topbar__nav ul {
  display: flex;
  gap: 0.15rem;
}

.topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.topbar__nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.topbar__cta {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
}

/*
 * The shared demo bar (assets/base.css) is a single nowrap row. On this page
 * let it wrap the same way under enlarged text, without touching base.css,
 * which Assembly and Margin also use. No change when it fits.
 */
.lumen .demo-bar__inner,
.lumen .demo-bar__list {
  flex-wrap: wrap;
}

.lumen .demo-bar__orig {
  max-width: 100%;
  white-space: normal;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(1.75rem, 4.5vw, 3.75rem) clamp(1rem, 2.2vw, 2rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}

.hero__title {
  font: 600 clamp(3.5rem, 1rem + 4.6vw, 5.25rem)/1 var(--ui);
  letter-spacing: -0.045em;
}

.hero__title .ln {
  display: block;
}

.hero__aside {
  max-width: 31rem;
  padding-bottom: 0.35rem;
}

.hero__lead {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.4rem;
}

/* ---------- What I build: stage + explorer in one row ---------- */

.build {
  padding-bottom: var(--section);
}

.build__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.stage-wrap {
  position: relative;
  min-width: 0;
  container-type: inline-size;
}

/*
 * Sizes are mirrored in scripts/art/minis.mjs (lumenStageSize) and tested.
 * --geo-h is the composition's own height; on phones the stage box can be
 * taller (see "Phones" below) and the composition stays centred inside it.
 */
.stage {
  --pw: clamp(210px, 46cqw, 360px);
  --ph: calc(var(--pw) * 0.66);
  --r: calc(var(--pw) * 0.72);
  --floor: calc(var(--pw) * 0.86);
  --t: calc(var(--pw) * 0.026);
  --tilt: -12deg;
  --yaw: 14deg;
  --geo-h: calc(var(--pw) * 1.2);
  position: relative;
  height: calc(var(--pw) * 1.2);
  overflow: hidden;
}

/* Narrow stages: a tighter ring so the panes can be larger at phone widths. */
@container (max-width: 479px) {
  .stage {
    --pw: clamp(176px, 70cqw, 320px);
    --r: max(calc(var(--pw) * 0.24), 48px);
    --floor: calc(var(--pw) * 0.8);
    --geo-h: calc(var(--pw) * 1.12);
    height: calc(var(--pw) * 1.12);
  }
}

.stage__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34% 9% at 50% 88%, rgba(24, 52, 96, 0.14), transparent 75%),
    radial-gradient(48% 46% at 44% 38%, rgba(255, 255, 255, 0.95), transparent 72%),
    radial-gradient(30% 40% at 24% 62%, rgba(103, 211, 200, 0.2), transparent 72%),
    radial-gradient(32% 42% at 78% 48%, rgba(169, 164, 244, 0.22), transparent 72%);
}

.stage__view {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  perspective-origin: 50% 36%;
  pointer-events: none;
}

.stage__tilt,
.ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% var(--floor) calc(var(--r) * -1);
}

.stage__tilt {
  transform: rotateX(calc(var(--py, 0) * -2.5deg)) rotateY(calc(var(--px, 0) * 5deg));
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ring {
  transform-origin: 50% var(--floor);
  transform: translateZ(calc(var(--r) * -1)) rotateX(var(--tilt));
}

.pane {
  --a: calc(var(--i) * 90deg + var(--ring, 0deg));
  --tint: rgba(103, 211, 200, 0.4);
  position: absolute;
  top: calc(var(--floor) - var(--ph));
  left: 50%;
  width: var(--pw);
  height: var(--ph);
  margin-left: calc(var(--pw) / -2);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: rotateY(var(--a)) translateZ(var(--r)) rotateY(calc(var(--a) * -1 + var(--yaw)));
  transition: transform 1s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.pane--tool { --tint: rgba(140, 196, 236, 0.42); }
.pane--booking { --tint: rgba(169, 164, 244, 0.42); }
.pane--dashboard { --tint: rgba(120, 214, 196, 0.38); }

.pane__shadow,
.pane__top,
.pane__side,
.pane__reflect,
.pane__label {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* Glass thickness: top face (lit) and left face (half lit). */
.pane__top {
  top: 0;
  right: 12px;
  left: 12px;
  height: var(--t);
  background: linear-gradient(90deg, #ffffff, rgba(218, 242, 239, 0.95) 55%, rgba(208, 206, 248, 0.92));
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
}

.pane__side {
  top: 12px;
  bottom: 12px;
  left: 0;
  width: var(--t);
  background: linear-gradient(180deg, rgba(190, 230, 226, 0.96), rgba(170, 180, 236, 0.9));
  transform-origin: 0 50%;
  transform: rotateY(90deg);
}

/* Contact shadow lying on the floor, pushed back-right, away from the light. */
.pane__shadow {
  top: calc(100% - 30px);
  right: 2%;
  left: 6%;
  height: 60px;
  background: radial-gradient(closest-side, rgba(20, 44, 86, 0.3), rgba(20, 44, 86, 0.1) 55%, transparent);
  transform: rotateX(90deg) translate(5%, -12px);
}

.pane__face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 0.9em;
  padding: 1.3em;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 46%, rgba(234, 245, 249, 0.86) 100%);
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 rgba(110, 140, 185, 0.2),
    0 0 0 1px rgba(12, 21, 34, 0.09),
    0 26px 40px -28px rgba(20, 48, 90, 0.42);
  font-size: calc(var(--pw) / 30);
  transition: opacity 0.6s ease, box-shadow 0.6s ease;
}

.pane__face::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(110% 80% at 100% 100%, var(--tint), transparent 62%);
  pointer-events: none;
}

.pane__face > * {
  position: relative;
}

/* Reflection on the glossy floor, mirrored below the base and fading out. */
.pane__reflect {
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  height: 30%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(236, 246, 250, 0.18) 55%, rgba(236, 246, 250, 0) 100%);
  opacity: 0.75;
}

.pane__label {
  top: calc(100% + 12px);
  left: 50%;
  padding: 0.38em 0.85em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(11, 107, 100, 0.22), 0 8px 18px -10px rgba(20, 48, 90, 0.45);
  color: var(--ink);
  font: 600 12px/1.2 var(--ui);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.35s ease;
}

/* Depth reads through opacity, not blur. */
.pane[data-pos="left"] .pane__face,
.pane[data-pos="right"] .pane__face {
  opacity: 0.8;
}

.pane[data-pos="back"] .pane__face,
.pane[data-pos="back"] .pane__top,
.pane[data-pos="back"] .pane__side,
.pane[data-pos="back"] .pane__reflect {
  opacity: 0.58;
}

.pane[data-pos="front"] .pane__face {
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 rgba(110, 140, 185, 0.2),
    0 0 0 1px rgba(11, 107, 100, 0.3),
    0 30px 46px -26px rgba(20, 48, 90, 0.5);
}

.pane[data-pos="front"] .pane__label {
  opacity: 1;
  transition-delay: 0.4s;
}

/* Pane contents: abstract interface sketches (no figures, no names), in em of the pane. */

.ui-top {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 2.2em;
}

.ui-avatar {
  flex: none;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--lilac));
}

.ui-line {
  height: 0.7em;
  border-radius: 1em;
  background: rgba(12, 21, 34, 0.16);
}

.w30 { width: 30%; }
.w35 { width: 35%; }
.w40 { width: 40%; }
.w45 { width: 45%; }
.w55 { width: 55%; }
.w60 { width: 60%; }

.ui-chip {
  width: 4.6em;
  height: 1.6em;
  margin-left: auto;
  border-radius: 1em;
  background: rgba(11, 107, 100, 0.15);
}

.ui-search {
  width: 9em;
  height: 1.8em;
  margin-left: auto;
  border-radius: 1em;
  background: rgba(12, 21, 34, 0.05);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.1);
}

.ui-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5em;
}

.ui-progress span {
  height: 0.55em;
  border-radius: 1em;
  background: rgba(12, 21, 34, 0.1);
}

.ui-progress .on {
  background: var(--teal-2);
}

.ui-progress .now {
  background: linear-gradient(90deg, var(--teal-2) 50%, rgba(12, 21, 34, 0.1) 50%);
}

.ui-list {
  display: grid;
  gap: 0.55em;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.6em 0.8em;
  border-radius: 0.7em;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(12, 21, 34, 0.05);
}

.ui-doc {
  flex: none;
  width: 1.6em;
  height: 2em;
  border-radius: 0.3em;
  background: linear-gradient(#e7f1f6, #d3e4ee);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.08);
}

.ui-tag {
  width: 3.6em;
  height: 1.3em;
  margin-left: auto;
  border-radius: 1em;
  background: rgba(42, 165, 151, 0.28);
}

.ui-tag--soft {
  background: rgba(169, 164, 244, 0.34);
}

.ui-filters {
  display: flex;
  gap: 0.5em;
}

.ui-filters span {
  width: 5em;
  height: 1.5em;
  border-radius: 1em;
  background: rgba(12, 21, 34, 0.06);
}

.ui-filters .on {
  background: rgba(12, 21, 34, 0.82);
}

.ui-table {
  display: grid;
  overflow: hidden;
  border-radius: 0.7em;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(12, 21, 34, 0.06);
}

.ui-tr {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 0.5fr;
  gap: 0.8em;
  align-items: center;
  padding: 0.62em 0.9em;
}

.ui-tr + .ui-tr {
  box-shadow: 0 -1px 0 rgba(12, 21, 34, 0.05);
}

.ui-tr span {
  height: 0.6em;
  border-radius: 1em;
  background: rgba(12, 21, 34, 0.12);
}

.ui-th span {
  height: 0.5em;
  background: rgba(12, 21, 34, 0.24);
}

.ui-tr--sel {
  background: rgba(103, 211, 200, 0.22);
}

.ui-tr .ui-dot {
  justify-self: end;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: rgba(12, 21, 34, 0.16);
}

.ui-tr .ui-dot--on {
  background: var(--teal-2);
}

.ui-arrows {
  width: 3.4em;
  height: 1.4em;
  margin-left: auto;
  background:
    radial-gradient(circle at 25% 50%, rgba(12, 21, 34, 0.25) 0.35em, transparent 0.4em),
    radial-gradient(circle at 75% 50%, rgba(12, 21, 34, 0.25) 0.35em, transparent 0.4em);
}

.ui-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35em;
}

.ui-cal span {
  aspect-ratio: 1.3;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.06);
}

.ui-cal .b1 { background: rgba(42, 165, 151, 0.36); }
.ui-cal .b2 { background: rgba(169, 164, 244, 0.52); }

.ui-cal .b3 {
  background: linear-gradient(135deg, var(--teal-2), var(--violet));
  box-shadow: 0 0.4em 1em -0.4em rgba(60, 60, 160, 0.6);
}

.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
}

.ui-kpis span {
  position: relative;
  height: 2.4em;
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.06);
}

.ui-kpis span::after {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 0.75em;
  width: 48%;
  height: 0.6em;
  border-radius: 1em;
  background: rgba(12, 21, 34, 0.18);
}

.ui-kpis span:first-child::after {
  background: rgba(42, 165, 151, 0.55);
}

.ui-chart {
  width: 100%;
  height: 4.2em;
  overflow: visible;
}

.ui-chart__area {
  fill: rgba(103, 211, 200, 0.22);
}

.ui-chart__line {
  fill: none;
  stroke: var(--teal-2);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45em;
  height: 2.6em;
}

.ui-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 0.3em 0.3em 0 0;
  background: linear-gradient(#a7a2f6, #d3d1fb);
}

/* ---------- Explorer: the controls beside the stage ---------- */

.explorer {
  min-width: 0;
}

/* Keeps the 44px row it had beside the former motion control, so the column below does not shift. */
.explorer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 44px;
}

.explorer__title {
  font: 600 clamp(1.5rem, 1.15rem + 1vw, 2rem)/1.1 var(--ui);
  letter-spacing: -0.03em;
}

.explorer__intro {
  margin-top: 0.45rem;
  color: var(--ink-2);
  font-size: 1rem;
}

/* The stage turns by swipe or drag (lumen.js); these dots show where you are and are the keyboard/screen-reader tablist. */
.dial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: 52px;
  margin-top: 1rem;
}

.tabs {
  display: flex;
  margin-left: -10px; /* first dot on the text edge */
}

.tab {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.tab::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(12, 21, 34, 0.55); /* about 4:1 on the page: a visible control (WCAG 1.4.11) */
  transition: width 0.25s ease, background-color 0.25s ease;
}

.tab:hover::before {
  background: var(--ink-2);
}

.tab[aria-selected="true"]::before {
  width: 22px;
  background: var(--teal);
}

.tab:focus-visible {
  outline-offset: -4px;
}

.tab__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dial__hint {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.dial__mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .dial__touch {
    display: none;
  }

  .dial__mouse {
    display: inline;
  }
}

/* Vertical scrolling and pinch-zoom stay with the browser. */
.stage.is-swipeable {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.stage.is-dragging {
  cursor: grabbing;
}

/* Panes follow a drag closely; the full turn eases on release. */
.stage.is-dragging .pane {
  transition-duration: 0.12s;
}

/* Without JavaScript, the panels read as a ruled list with visible titles. */
.panels {
  margin-top: 0.5rem;
}

.panel {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.panel:first-child {
  border-top: 0;
}

.panels.is-tabbed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.25rem;
}

.panels.is-tabbed .panel {
  position: relative;
  grid-area: 1 / 1;
  padding: 0;
  border: 0;
}

.panels.is-tabbed .panel[data-inactive] {
  visibility: hidden;
}

.panel__title {
  font: 600 1.25rem/1.25 var(--ui);
  letter-spacing: -0.015em;
}

.panel__text {
  max-width: 34em;
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.panel__label {
  margin-top: 1rem;
  color: var(--ink-3);
  font: 600 0.75rem/1.2 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.12);
  color: var(--ink);
  font: 500 0.875rem/1.2 var(--ui);
}

.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.6rem;
  color: var(--teal);
  font: 600 0.9375rem/1.2 var(--ui);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.panel__cta:hover {
  color: var(--ink);
}

.explorer__note {
  margin-top: 0.75rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* ---------- Process ---------- */

.together {
  padding-bottom: var(--section);
}

.together__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1rem clamp(2rem, 4vw, 4rem);
  align-items: end;
}

.together__lead {
  max-width: 30em;
  color: var(--ink-2);
}

.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.path::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  left: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--lilac));
  opacity: 0.75;
}

.path__step {
  position: relative;
}

.path__n {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.1), 0 8px 20px -10px rgba(20, 48, 90, 0.45);
  color: var(--teal);
  font: 600 0.875rem/1 var(--ui);
  font-variant-numeric: tabular-nums;
}

.path__step h3 {
  margin-top: 1rem;
  font: 600 1.25rem/1.2 var(--ui);
  letter-spacing: -0.015em;
}

.path__step p {
  margin-top: 0.35rem;
  color: var(--ink-2);
}

.covers {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.covers__title {
  color: var(--ink-3);
  font: 600 0.8125rem/1.3 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.covers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 0.8rem;
}

.covers__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.covers__list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--lilac));
}

/* ---------- Care band ---------- */

.care {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-block: 1px solid rgba(12, 21, 34, 0.06);
  background: linear-gradient(90deg, rgba(103, 211, 200, 0.1), rgba(169, 164, 244, 0.12));
}

.care__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.care__glyph {
  position: relative;
  width: 76px;
  height: 76px;
}

.care__glyph span {
  position: absolute;
  border-radius: 50%;
}

.care__glyph span:nth-child(1) {
  inset: 0;
  background: radial-gradient(circle at 32% 28%, #fff, rgba(255, 255, 255, 0.3) 70%);
  box-shadow: inset 1px 1px 0 #fff, 0 0 0 1px rgba(11, 107, 100, 0.25), 0 12px 24px -14px rgba(20, 48, 90, 0.45);
}

.care__glyph span:nth-child(2) {
  inset: 20%;
  box-shadow: 0 0 0 1px rgba(11, 107, 100, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

.care__glyph span:nth-child(3) {
  inset: 38%;
  background: linear-gradient(135deg, var(--teal-2), var(--violet));
}

.care__title {
  font: 600 clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem)/1.1 var(--ui);
  letter-spacing: -0.03em;
}

.care__text p {
  max-width: 38em;
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.care__points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(12, 21, 34, 0.08);
  font-size: 0.9375rem;
  font-weight: 600;
}

.care__points li:last-child {
  border-bottom: 0;
}

.care__points li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-2) 0.22rem, rgba(42, 165, 151, 0.18) 0.25rem);
}

/* ---------- Start: the one strong glass surface ---------- */

.start {
  padding-block: var(--section);
}

.start__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  /* Same ceiling idea as --pad: unchanged from 320px up at normal text size. */
  padding: min(clamp(1.75rem, 5vw, 4.25rem), 8.75vw);
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(169, 164, 244, 0.3), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(103, 211, 200, 0.26), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74));
  box-shadow:
    inset 1px 1px 0 #fff,
    0 0 0 1px rgba(12, 21, 34, 0.07),
    0 40px 80px -50px rgba(20, 48, 90, 0.5);
}

.start__title {
  max-width: 14ch;
  font: 600 clamp(2rem, 1.2rem + 2.6vw, 3.5rem)/1.03 var(--ui);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.start__lead {
  max-width: 32em;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.start__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}

.start__email {
  max-width: 24em;
  color: var(--ink-2);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.start__email a,
.start__fallback a {
  color: var(--teal);
  font-weight: 600;
}

.start__fallback p {
  max-width: 34em;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--teal-2);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.start__steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

.start__steps::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: calc(1rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--aqua), var(--lilac));
  opacity: 0.8;
}

/* Grid (not flex) so the label column can shrink and wrap under enlarged text; same look otherwise. */
.start__steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.9rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.start__steps span {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 21, 34, 0.14), 0 6px 14px -8px rgba(20, 48, 90, 0.45);
  color: var(--teal);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.foot {
  padding-block: 2rem max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.foot__inner p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Wizard dialog ---------- */

.wizard {
  --wp: clamp(1.25rem, 4vw, 2.25rem);
  --safe-x: calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
  --safe-y: calc(env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  width: min(640px, calc(100vw - 1.5rem - var(--safe-x)));
  max-height: calc(100vh - 1.5rem - var(--safe-y));
  max-height: calc(100dvh - 1.5rem - var(--safe-y));
  margin: auto;
  padding: var(--wp);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(165deg, #ffffff, #f4f8fa);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(12, 21, 34, 0.08), 0 50px 100px -40px rgba(12, 21, 34, 0.55);
  font: 400 1rem/1.55 var(--ui);
}

.wizard::backdrop {
  background: rgba(214, 224, 232, 0.74);
  backdrop-filter: blur(4px);
}

.wizard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wizard__title {
  font: 600 1.5rem/1.15 var(--ui);
  letter-spacing: -0.025em;
}

.wizard__count {
  margin-top: 0.3rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.wizard__close {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 21, 34, 0.07);
}

.wizard__close:hover {
  background: rgba(12, 21, 34, 0.12);
}

.wizard__close span::before,
.wizard__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.wizard__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wizard__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wizard__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.wizard__progress span {
  height: 4px;
  border-radius: 4px;
  background: rgba(12, 21, 34, 0.1);
  transition: background-color 0.3s ease;
}

.wizard__progress [data-state="done"] {
  background: var(--teal-2);
}

.wizard__progress [data-state="current"] {
  background: linear-gradient(90deg, var(--teal-2), var(--violet));
}

.wizard__privacy {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.wizard__form {
  margin-top: 1.25rem;
}

.step__q {
  float: left;
  width: 100%;
  margin-bottom: 0.9rem;
  font: 600 1.25rem/1.25 var(--ui);
  letter-spacing: -0.015em;
}

.step__q + * {
  clear: both;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option {
  position: relative;
  display: inline-flex;
}

.option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--field);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.option:hover span {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.option input:checked + span {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}

.option input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wfield__label {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.wfield__label span {
  color: var(--ink-3);
  font-weight: 400;
}

.wfield {
  width: 100%;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--field);
  font-size: 1rem;
  line-height: 1.5;
}

.wfield:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wfield::placeholder {
  color: #6c7686;
  opacity: 1;
}

.wfield[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--error);
}

.wfield__error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.wfield__error::before {
  content: "!";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.wfield__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.wizard__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

/* Keep Back/Next reachable on short screens and with an on-screen keyboard. */
.wizard__form .wizard__nav {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 1.25rem calc(var(--wp) * -1) 0;
  padding: 1rem var(--wp);
  background: linear-gradient(rgba(245, 249, 250, 0), #f5f9fa 28%);
}

.wizard__nav [data-step-back] {
  margin-right: auto;
}

.wizard__nav--result {
  justify-content: flex-start;
  margin-top: 1rem;
}

.wizard__nav [data-copied] {
  background: var(--teal);
}

.wizard__done {
  margin-top: 1.25rem;
  font: 600 1.25rem/1.2 var(--ui);
}

.wizard__done:focus {
  outline: none;
}

.wizard__done:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.wizard__draft {
  background: #f7fafb;
  font: 400 0.875rem/1.6 "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  white-space: pre-wrap;
}

.wizard__note {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
  .topbar__nav {
    display: none;
  }
}

@media (max-width: 999px) {
  .build__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .stage-wrap {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 899px) {
  .hero__grid,
  .together__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__title {
    font-size: clamp(2.25rem, 0.75rem + 7.4vw, 3.5rem);
  }

  .hero__aside {
    margin-top: 1.25rem;
    padding-bottom: 0;
  }

  .care__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .care__points {
    grid-column: 1 / -1;
  }

  .start__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .start__steps {
    grid-row: 2;
  }
}

@media (max-width: 699px) {
  .topbar__cta {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px var(--field);
    color: var(--ink);
  }

  .stage-wrap {
    width: auto;
    max-width: none;
    margin-inline: calc(var(--pad) * -1);
  }

  .path {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .path::before {
    top: 1.4rem;
    right: auto;
    bottom: 1.4rem;
    left: calc(1.4rem - 1px);
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--aqua), var(--lilac));
  }

  .path__step {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .path__n {
    grid-row: span 2;
  }

  .path__step h3 {
    margin-top: 0.5rem;
  }

  .wfield__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .pane__label {
    font-size: 11px;
  }
}

@media (max-width: 479px) {
  .care__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .care__glyph {
    width: 56px;
    height: 56px;
  }

  .start__actions .pill {
    width: 100%;
  }

  .wizard {
    width: calc(100vw - 1rem - var(--safe-x));
    max-height: calc(100vh - 1rem - var(--safe-y));
    max-height: calc(100dvh - 1rem - var(--safe-y));
    border-radius: 22px;
  }
}

@media (max-width: 359px) {
  .topbar__cta {
    padding-inline: 0.9rem;
    font-size: 0.875rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1rem;
  }
}

/* ---------- Phones: the opening is one composed screen ---------- */

/*
 * Phones and short landscape open on one screen: headline, one line, the
 * stage, and the dial under it. Heights use svh and are only minimums, so
 * enlarged text grows and scrolls. Budgets mirrored in minis.mjs (tested).
 */
@media (max-width: 699px) and (orientation: portrait), (orientation: landscape) and (max-height: 500px) and (min-width: 480px) and (max-width: 1023px) {
  .topbar__inner {
    min-height: var(--bar-h);
    padding-block: 0.25rem;
  }

  /* The top bar carries the first screen's one "Start a project", so it is the solid action. */
  .topbar__cta {
    background: var(--ink);
    box-shadow: 0 10px 24px -12px rgba(12, 21, 34, 0.6);
    color: #fff;
  }

  .hero__more,
  .hero__actions {
    display: none;
  }

  /* The composition sits low in its box (3/4 of free space above), near the dial. */
  .stage {
    height: max(var(--geo-h), var(--stage-box));
  }

  .stage__light,
  .stage__view {
    top: calc((100% - var(--geo-h)) * 0.75);
    bottom: auto;
    height: var(--geo-h);
  }

  .explorer.is-tabbed {
    position: relative;
  }

  /* Still the section's heading for assistive tech; on screen the stage and dial say it. */
  .explorer.is-tabbed .explorer__head {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .explorer.is-tabbed .explorer__intro {
    display: none;
  }

  /* Under the stage: the dots and the cue, centred in the 52px slot the budgets reserve. */
  .dial {
    justify-content: center;
    margin-top: 0;
  }

  /* The selected capability's details start just below the first screen. */
  .explorer.is-tabbed .panels {
    margin-top: 3.5rem;
    padding-top: 0;
  }

  /* Less to read on a phone: these lists repeat the paragraph right beside them. */
  .care__points,
  .start__steps {
    display: none;
  }
}

/* Portrait: full-bleed stage, phone ring; spare height shared 1:2:1 around text and stage. */
@media (max-width: 699px) and (orientation: portrait) {
  .lumen {
    --bar-h: 60px;
    --h1-size: clamp(1.75rem, 0.5rem + 7.2vw, 2.625rem);
    /* Hero: top padding, three headline lines, gap, a two-line lead. */
    --hero-room: calc(var(--h1-size) * 3.06 + 4.375rem);
    /* 52px dial, then 1.25rem or bottom inset + 0.5rem; top inset (bar padding) counted once. */
    --tabs-room: calc(52px + max(1.25rem, var(--safe-bottom) + 0.5rem));
    --room: calc(100vh - var(--safe-top) - var(--bar-h) - var(--hero-room) - var(--tabs-room));
    --spare: max(0px, var(--room) - clamp(156px, min(70vw, var(--room) / 1.12), 320px) * 1.12);
    --stage-box: calc(var(--room) - var(--spare) / 2);
  }

  @supports (height: 100svh) {
    .lumen {
      --room: calc(100svh - var(--safe-top) - var(--bar-h) - var(--hero-room) - var(--tabs-room));
    }
  }

  .hero {
    display: grid;
    align-content: center;
    min-height: calc(var(--hero-room) + var(--spare) / 2);
    padding-block: 0.75rem 0;
  }

  .hero__title {
    font-size: var(--h1-size);
    line-height: 1.02;
  }

  .hero__aside {
    margin-top: 0.625rem;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .build__grid {
    row-gap: 0;
  }

  .stage {
    --pw: clamp(156px, min(70cqw, var(--room) / 1.12), 320px);
    --r: max(calc(var(--pw) * 0.24), 48px);
    --floor: calc(var(--pw) * 0.8);
    --geo-h: calc(var(--pw) * 1.12);
  }
}

/* Short landscape: text left, stage and dial right. 480px floor: keyboard-shrunk portrait stays out. */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 480px) and (max-width: 1023px) {
  .lumen {
    --bar-h: 52px;
    /* As in portrait: air or home-indicator inset under the control, top inset counted once. */
    --tabs-room: calc(52px + max(1rem, var(--safe-bottom) + 0.5rem));
    --room: calc(100vh - var(--safe-top) - var(--bar-h) - var(--tabs-room));
    --stage-box: var(--room);
  }

  @supports (height: 100svh) {
    .lumen {
      --room: calc(100svh - var(--safe-top) - var(--bar-h) - var(--tabs-room));
    }
  }

  .lumen main {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .together,
  .care,
  .start {
    grid-column: 1 / -1;
  }

  .hero {
    grid-column: 1;
    display: grid;
    align-content: center;
    min-height: calc(100vh - var(--safe-top) - var(--bar-h) - var(--safe-bottom));
    min-height: calc(100svh - var(--safe-top) - var(--bar-h) - var(--safe-bottom));
    padding-block: 0.5rem 1.25rem;
  }

  .build {
    grid-column: 2;
  }

  .hero > .wrap {
    padding-right: calc(var(--pad) / 2);
  }

  .build > .wrap {
    padding-left: calc(var(--pad) / 2);
  }

  .hero__grid,
  .build__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  /*
   * "that make everyday" measures 7.6em in Segoe UI Variable and up to about
   * 8.5em in wider system fonts; 9.6em of column keeps each line on one line.
   */
  .hero__title {
    font-size: clamp(1.25rem, calc((41.6667vw - 1.5 * var(--pad)) / 9.6), 2.5rem);
    line-height: 1.02;
  }

  .hero__aside {
    margin-top: 0.75rem;
    padding-bottom: 0;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .stage-wrap {
    width: auto;
    max-width: none;
    margin-inline: 0;
  }

  @container (max-width: 479px) {
    .stage {
      --pw: clamp(156px, min(70cqw, var(--room) / 1.12), 320px);
    }
  }

  @container (min-width: 480px) {
    .stage {
      --pw: clamp(180px, min(46cqw, var(--room) / 1.2), 360px);
    }
  }
}

/* ---------- Reduced motion ---------- */

/* No turn, follow, tilt or delayed label fade: a choice swaps the stage (lumen.js skips follow/tilt). */
@media (prefers-reduced-motion: reduce) {
  .pane,
  .pane__face,
  .pane__label,
  .pane[data-pos] .pane__label,
  .pane[data-pos] .pane__face,
  .stage__tilt,
  .stage.is-dragging .pane,
  .tab::before {
    transition: none;
  }
}


/* Spotlight desktop composition, selected 2026-10-11. Accepted phone rules stay above unchanged. */
@media (min-width: 1024px) {
  .lumen {
    --s-h1: clamp(2.5rem, 0.5rem + 2.9vw, 4rem);
    --s-lead: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
    --s-top: clamp(1rem, 3.4svh, 2.5rem);
    /* First-screen budget: top padding, two headline lines, gap, two lead lines, gap, actions. */
    --s-hero: calc(var(--s-top) + var(--s-h1) * 2.04 + 1.1rem + var(--s-lead) * 3.1 + 1.4rem + 48px);
    /* Height left for the stage under the bar and statement, above the dial and its air. */
    --s-room: calc(100svh - 76px - var(--s-hero) - 52px - 1.25rem);
  }

  /* ---------- Statement: centred, two lines ---------- */

  .hero {
    padding-block: var(--s-top) 0;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__title {
    max-width: 15em;
    font-size: var(--s-h1);
    line-height: 1.02;
    text-wrap: balance;
  }

  .hero__title .ln {
    display: inline;
  }

  .hero__aside {
    max-width: 46rem;
    margin-top: 1.1rem;
    padding-bottom: 0;
  }

  .hero__lead {
    font-size: var(--s-lead);
    line-height: 1.55;
    text-wrap: balance;
  }

  .hero__actions {
    justify-content: center;
    margin-top: 1.4rem;
  }

  /* ---------- The object ---------- */

  .build__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  /* Same scene as lumen.css, scaled: every length follows the pane width, perspective included. */
  .lumen .stage {
    --pw: clamp(260px, min(42cqw, var(--s-room) / 1.2), 540px);
    --ph: calc(var(--pw) * 0.66);
    --r: calc(var(--pw) * 0.72);
    --floor: calc(var(--pw) * 0.86);
    --t: calc(var(--pw) * 0.026);
    --geo-h: calc(var(--pw) * 1.2);
    height: calc(var(--pw) * 1.2);
  }

  .lumen .stage__view {
    perspective: calc(var(--pw) * 4.9);
  }

  /* A wider pool of light under the larger object. */
  .lumen .stage__light {
    background:
      radial-gradient(26% 7% at 50% 89%, rgba(24, 52, 96, 0.13), transparent 75%),
      radial-gradient(34% 50% at 46% 40%, rgba(255, 255, 255, 0.95), transparent 72%),
      radial-gradient(22% 40% at 30% 62%, rgba(103, 211, 200, 0.2), transparent 72%),
      radial-gradient(24% 42% at 72% 48%, rgba(169, 164, 244, 0.22), transparent 72%);
  }

  /* ---------- Caption under the object ---------- */

  .explorer {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "dial dial"
      "head panels"
      "intro panels"
      "note panels";
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  /* One hairline across the caption, under the dots. */
  .explorer::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
    margin-top: clamp(1.75rem, 3vw, 2.75rem);
    border-top: 1px solid var(--line);
  }

  .dial {
    grid-area: dial;
    justify-content: center;
    margin-top: 0;
  }

  .tabs {
    margin-left: 0;
  }

  .explorer__head {
    grid-area: head;
    align-self: start;
    margin-top: clamp(2.75rem, 4.5vw, 4rem);
  }

  .explorer__title {
    font-size: clamp(1.625rem, 1.1rem + 0.9vw, 2.125rem);
  }

  .explorer__intro {
    grid-area: intro;
    max-width: 22em;
  }

  .explorer__note {
    grid-area: note;
    max-width: 24em;
    margin-top: 1.25rem;
  }

  .panels {
    grid-area: panels;
    margin-top: clamp(2.75rem, 4.5vw, 4rem);
  }

  .panels.is-tabbed {
    margin-top: clamp(3rem, 4.75vw, 4.25rem);
  }

  /* Without JavaScript all four capabilities show: two by two. */
  .panels:not(.is-tabbed) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
  }

  .panels:not(.is-tabbed) .panel:nth-child(2) {
    border-top: 0;
  }

  .panels:not(.is-tabbed) .panel:nth-child(-n + 2) {
    padding-top: 0;
  }

  /* ---------- Below: the same centred axis ---------- */

  .together__head {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .together__lead {
    max-width: 34em;
  }

  .covers {
    text-align: center;
  }

  .covers__list {
    justify-content: center;
  }
}
