/* 
 * File: concept.css
 * Purpose: Styles for the Punctilio brand-passport landing page.
 * Last modified: 2026-11-24
 * By: Grok
 * Completeness: 94
 */

:root {
  color-scheme: light;
  --paper: #faf6ef;
  --ink: #201429;
  --muted: #605565;
  --line: #e4d9e8;
  --purple: #5916c5;
  --dark-purple: #391076;
  --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.55 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
section[id], #spotcheck { scroll-margin-top: 1.25rem; }
.visually-hidden {
  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: min(100% - 4rem, 81rem); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; z-index: 1; padding: .7rem 1rem; background: white; transform: translateY(-110%); }
.skip:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
}
.wordmark { width: 9rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-header nav a { text-decoration: none; font-size: .9375rem; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.85rem;
  padding: .6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  color: white;
  background: var(--purple);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 130ms ease, color 130ms ease;
}
.button:hover { background: var(--dark-purple); }
.button.outline { color: var(--purple); background: transparent; border-color: #d5bcef; }
.button.outline:hover { background: #eee2fc; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #f1e2d1;
  border-radius: 1.5rem;
  background: #f9eada;
}
.hero-copy { padding: clamp(1.75rem, 5vw, 5.5rem); padding-right: .5rem; }
h1, h2, .sample h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3rem, 5.8vw, 6rem); line-height: .93; letter-spacing: -.075em; }
.hero-deck { margin: 1.05rem 0 0; max-width: 18rem; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }
.hero-lead { margin: .9rem 0 1.45rem; max-width: 36rem; font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.4; }
.ab-versus { display: none; margin: -.55rem 0 1.45rem; max-width: 36rem; color: var(--ink); font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.4; }
html[data-ab="b"] .hero-lead { margin-bottom: .75rem; }
html[data-ab="b"] .ab-versus { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; }
.text-link { font-weight: 650; text-underline-offset: .28em; }
.hero-art { height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.hero-art img { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; }
@media (prefers-reduced-motion: no-preference) {
  main[data-ui] .ui-enter {
    animation: image-rise 560ms ease both;
    animation-play-state: paused;
  }
  main[data-ui] .ui-enter.is-in { animation-play-state: running; }
  main[data-ui] .guide-page {
    animation: image-rise 560ms ease both;
    animation-play-state: paused;
  }
  main[data-ui] .guide.is-in .guide-page { animation-play-state: running; }
  main[data-ui] .guide.is-in .guide-page:nth-child(2) { animation-delay: 200ms; }
  main[data-ui] .guide.is-in .guide-page:nth-child(3) { animation-delay: 400ms; }
  main[data-ui] .guide.is-in .guide-page:nth-child(4) { animation-delay: 600ms; }
  main[data-ui] .guide.is-in .guide-page:nth-child(5) { animation-delay: 800ms; }
}
@keyframes image-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.guide {
  margin-top: clamp(3.25rem, 8vw, 6rem);
  padding-top: .25rem;
  overflow: hidden;
  max-width: 100%;
}
.guide .sources-label { margin-bottom: .9rem; }
.sources .sources-note { margin-top: 1.1rem; }
.guide-window {
  display: flex;
  width: 100%;
  overflow-x: auto;
  min-width: 0;
  scroll-snap-type: x mandatory;
}
.guide-track {
  display: flex;
  flex: 0 0 auto;
  gap: .7rem;
  padding-right: .7rem;
}
.guide-track[aria-hidden="true"] { display: none; }
.guide-page {
  flex: 0 0 11.25rem;
  height: 14.5rem;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #e4d7bf;
  border-radius: .35rem;
  background: #fff8e7;
  color: #1a1a1a;
  box-shadow: 0 .6rem 1.4rem #20142910;
}
.guide-page h2, .guide-page h3, .guide-page p, .guide-page span { font-family: var(--serif); }
.guide-page h3 { margin: 1rem 1rem .55rem; font-size: 1.55rem; }
.guide-page ul { margin: 0; padding: 0 1rem 0 1.7rem; font-size: .82rem; line-height: 1.35; }
.guide-page li + li { margin-top: .45rem; }
.guide-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: #1f6441;
  color: #fde767;
}
.guide-cover p { font-size: 2rem; line-height: .9; letter-spacing: -.04em; }
.guide-cover h2 { font-size: 1.35rem; font-weight: 400; line-height: 1.05; color: #fff8e7; }
.guide-cover span { margin-top: .7rem; font-family: system-ui, sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #c8de8c; }
.guide-colour img { width: 100%; height: 100%; object-fit: contain; background: #fff8e7; }
.guide-logo { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .8rem; padding: 1.2rem 1rem 0; }
.guide-logo img { width: 78%; height: auto; }
.guide-logo span { align-self: stretch; margin-top: auto; padding: .75rem .5rem; background: #1f6441; color: #fde767; font-family: system-ui, sans-serif; font-size: .72rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.guide-rule { display: flex; flex-direction: column; }
.guide-rule h3 { margin: 0; padding: .9rem 1rem .75rem; font-size: 2rem; }
.guide-do h3 { background: #1f6441; color: #fde767; }
.guide-dont h3 { background: #fde767; color: #1f6441; }
.guide-rule ul { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; margin: 0; padding: .9rem 1rem 1rem 1.55rem; font-size: 1rem; line-height: 1.3; }
.guide-rule li + li { margin-top: 0; }
@media (min-width: 52rem) {
  .guide-page { flex-basis: 15rem; height: 19rem; }
  .guide-cover p { font-size: 2.6rem; }
  .guide-cover h2 { font-size: 1.7rem; }
}
.sources { margin-top: clamp(1.5rem, 4vw, 2.4rem); }
.sources-label {
  margin: 0 0 .9rem;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee ul {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(2.2rem, 6vw, 4.5rem);
  margin: 0;
  padding: 0 clamp(1.1rem, 3vw, 2.25rem) 0 0;
  list-style: none;
  animation: sources-scroll 32s linear infinite;
}
.marquee li {
  color: #2a2033;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 680;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.marquee:hover ul { animation-play-state: paused; }
.sources-note {
  max-width: 36rem;
  margin: 1rem auto 0;
  padding-inline: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
@keyframes sources-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.carried {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.carried-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid #f1e2d1;
  border-radius: 1.5rem;
  background: #f9eada;
}
.carried-art img { width: 100%; height: 100%; object-fit: cover; }
.step {
  margin-bottom: .6rem;
  color: var(--purple);
  font-size: .85rem;
  font-weight: 650;
  letter-spacing: .04em;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.intro { max-width: 44rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.06em; text-wrap: balance; }
.intro p:not(.step) { max-width: 37rem; margin-top: 1rem; font-size: clamp(1rem, 1.55vw, 1.18rem); color: var(--muted); }
.passport { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1rem, 6vw, 6rem); align-items: start; }
.sample { border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; background: #fffdfa; box-shadow: 0 .75rem 2rem #38125509; }
.sample-header { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .85rem; padding: clamp(1rem, 3vw, 2rem); background: #f0e5fa; }
.sample-header .small { margin-bottom: .45rem; font-size: .85rem; color: #543477; }
.sample h3 { font-size: clamp(1.85rem, 3vw, 2.9rem); line-height: 1.05; margin-bottom: .35rem; letter-spacing: -.035em; }
.sample-header p { color: #50435a; }
.seal { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; color: #471290; border: 1px solid #d7bde9; border-radius: 2rem; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.sample-rows { padding-inline: clamp(1rem, 3vw, 2rem); }
.sample details + details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-weight: 650; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span::before { content: '+'; color: var(--purple); font-size: 1.2rem; }
details[open] summary span::before { content: '−'; }
.sample-body { padding: 0 0 1.25rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem 1.05rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .85rem; }
.swatches li { display: flex; align-items: center; gap: .45rem; }
.swatches i { display: block; width: 1rem; height: 1rem; border-radius: 50%; background: var(--swatch); border: 1px solid #24143230; }
.checks { padding-left: 1.25rem; margin-bottom: 0; }
.receipt { display: grid; gap: .7rem; margin-top: .75rem; }
.receipt dt { font-weight: 650; color: var(--ink); }

.workflow { background: transparent; }
.workflow-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: clamp(4.5rem, 10vw, 8rem);
}
.workflow-lead .generators-band {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.workflow-lead .generators-label { text-align: left; }
.workflow-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: -.045em;
}
.workflow-copy > p:not(.step) {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
}
@media (min-width: 56rem) {
  .workflow-lead { grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); }
}
.close { max-width: 44rem; }
.close p:not(.step) { max-width: 37rem; margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.18rem); }
.close .button { margin-top: 1.6rem; }
.studio-label {
  margin: 0 auto;
  padding-top: clamp(2.4rem, 5vw, 3.5rem);
  color: #dac4ee;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.workflow-body {
  display: grid;
  grid-template-columns: .65fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.workflow-body > * { min-width: 0; }
.workflow-copy { align-self: start; }
.spotcheck-method {
  margin: 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  letter-spacing: .01em;
}
.check-side { min-width: 0; }
.generators-band {
  width: 100%;
  margin-block: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.25rem);
  padding-block: .85rem 1rem;
  border-block: 1px solid var(--line);
}
.generators-band .generators-label {
  margin: 0 0 .75rem;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.generators-band .marquee ul { animation-duration: 28s; animation-direction: reverse; }
.seal-benefits { list-style: none; padding: 0; margin: 1.25rem 0 0; max-width: 37rem; }
.seal-benefits li { padding: .7rem 0; border-top: 1px solid var(--line); }
.seal-ids { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; list-style: none; padding: 0; margin: 1.35rem 0 0; }
.seal-ids li { font-weight: 680; letter-spacing: -.02em; }
.seal-beside { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid var(--line); padding: 1rem 0; }
.steps li:first-child { border-top: none; padding-top: 0; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p, figcaption { color: var(--muted); }
.proof { padding: .65rem; border-radius: 1rem; border: 1px solid var(--line); background: #fffdfa; }
.proof img { border-radius: .55rem; width: 100%; }
.proof figcaption { padding: .55rem .45rem .2rem; font-size: .875rem; }

@media (max-width: 56rem) {
  .hero-copy { padding: 1.6rem; padding-right: .2rem; }
  .passport, .workflow-body { grid-template-columns: 1fr; }
  .passport .intro { margin-bottom: 0; }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { gap: .6rem 1rem; padding-block: 1rem; flex-wrap: wrap; }
  .site-header nav { width: 100%; order: 1; padding-top: .2rem; }
  .wordmark { width: 7.3rem; }
  .button.outline { padding-inline: .75rem; }
  .hero, .carried { grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 1.3rem 1.65rem; }
  .carried-art { order: -1; }
  h1 { font-size: clamp(2.8rem, 12.5vw, 4.5rem); }
  .hero-art img { height: auto; }
  .edge-compose { flex-wrap: wrap; }
  .edge-field { flex: 1 0 100%; overflow: visible; text-overflow: unset; white-space: normal; }
  .edge-plus { order: 1; }
  .edge-send-wrap { order: 2; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .marquee ul, .guide-track, .guide-page, .edge-think li, .edge-think li:last-child::before, .edge-row, .hero-art img, .ui-enter { animation: none; animation-duration: 0s; }
  .edge-row, .edge-chat[data-stage] .edge-row { transition-duration: 0ms; opacity: 1; transform: none; }
}

.ad-stage { position: relative; overflow: hidden; border-radius: .55rem; }
.ad-marker { position: absolute; display: block; border: 2px solid #fff; border-radius: .4rem; box-shadow: 0 0 0 2px #5e1cc5, 0 0 0 100vmax #10091aa6; pointer-events: none; }
.ad-marker[hidden], .proof-evidence [hidden], .proof-step[hidden] { display: none; }
.ad-marker.measurement { inset: 20.1% 12.8% 14.6% 64.3%; }
.ad-marker.colour { inset: 78.1% 73.5% 12.9% 6.1%; }
.ad-marker.logo-check { inset: 6.8% 85.2% 81.1% 6.2%; }
.proof-label { font-weight: 600; padding-block: .35rem .25rem; }
.proof-evidence { min-height: 5.5rem; font-size: .94rem; }
.proof-evidence strong { display: block; color: var(--ink); margin-bottom: .4rem; font-size: 1rem; }
.proof-verdict {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .55rem .7rem;
  align-items: center;
}
.proof-status, .proof-source {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: .55rem;
  border: 1px solid #d9c9e3;
  background: #f6f0fa;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.proof-status svg, .proof-source svg {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
}
.proof-status--pass { color: #16854a; }
.proof-status--warn { color: #8a5a00; }
.proof-status--fail { color: #c4243b; }
.proof-detail { margin: 0; line-height: 1.42; }
.proof-rationale { display: block; margin-top: .2rem; }
.colour-chip { display: inline-block; width: .8rem; height: .8rem; border: 1px solid #6c5f23; border-radius: 50%; vertical-align: -.1rem; }
.hex-pair { white-space: nowrap; }
.colour-chip.observed { background: #f6d419; }
.colour-chip.approved { background: #fde767; }
.proof .approved-logo {
  display: inline-block;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 .45rem 0 0;
  vertical-align: middle;
  object-fit: contain;
}
@media (max-width: 26rem) {
  .proof-verdict { grid-template-columns: auto 1fr; }
  .proof-source { grid-column: 2; justify-self: end; margin-top: -.15rem; }
}
.proof-controls { display: flex; flex-wrap: wrap; gap: .45rem; padding-block: .7rem .2rem; border-top: 1px solid var(--line); }
.proof-controls button { font: inherit; font-weight: 600; background: transparent; color: var(--dark-purple); border: 1px solid #cbb6e4; border-radius: .5rem; padding: .5rem .65rem; cursor: pointer; }
.proof-controls button[aria-pressed="true"] { background: var(--dark-purple); color: white; }
.proof-controls button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.proof-controls [data-play] { margin-inline-start: auto; }

.dark-close { background: #17101f; color: #faf5fe; }
.dark-close:has(.lunar) {
  background:
    radial-gradient(ellipse 160% 26rem at 50% 100%, #42265b 0%, transparent 72%),
    #17101f;
}
.edge { display: grid; grid-template-columns: 1fr; align-items: start; gap: 1.75rem; }
.edge-copy p:not(.step) { margin-top: 1rem; color: var(--muted); max-width: 36rem; font-size: 1.05rem; line-height: 1.45; }
.edge-chat { border: 1px solid var(--line); border-radius: 1.25rem; background: #fffdfa; overflow: hidden; box-shadow: 0 .75rem 2rem #38125509; }
.edge-chat header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); background: #fffdfa; }
.edge-chat header span, .capability-card span { color: var(--muted); font-size: .875rem; }
.edge-scenes { padding: 1rem 1.15rem 1rem; background: #fffdfa; }
.edge-scene { min-height: 0; }
.edge-scene:not([hidden]) { animation: edge-appear .35s ease-out; }
.edge-command { padding: .8rem .9rem; margin-bottom: .85rem; background: #f3e9fb; border-radius: .7rem; }
.edge-command code, .edge-who { color: var(--purple); font-weight: 700; }
.edge-who { margin-right: .35rem; }
.edge-think { margin-top: .15rem; }
.edge-think-label { margin: 0 0 .45rem; color: var(--muted); font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.edge-think ul { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.edge-think li { position: relative; padding-left: 1.05rem; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.edge-think li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .42rem; height: .42rem; border-radius: 50%; background: #cbb6e4; }
.edge-think li:last-child { color: var(--ink); }
.edge-think li:last-child::before { background: var(--purple); animation: edge-pulse 1.4s ease-in-out infinite; }
.edge-more { display: inline-block; margin-top: .15rem; color: var(--purple); font-weight: 650; }
.edge-stage { display: grid; gap: .85rem; justify-items: start; }
.edge-compose { display: flex; align-items: end; gap: .45rem; padding: .85rem 1rem 1rem; border-top: 1px solid var(--line); background: #fffdfa; pointer-events: none; }
.edge-plus, .edge-send { border: 0; font: inherit; }
.edge-plus { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .7rem; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.edge-field { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; color: var(--muted); font: inherit; font-size: .95rem; }
.edge-send-wrap { display: grid; justify-items: end; gap: .28rem; flex: none; }
.edge-example { color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.edge-send { min-height: 2.75rem; padding: 0 1rem; display: grid; place-items: center; border-radius: .75rem; background: #1ec9a0; color: #07342c; font-weight: 700; }
@keyframes edge-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .edge-chat[data-stage] .edge-scene { animation: none; }
  .edge-chat[data-stage] .edge-row {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
    transition-delay: var(--row-delay, 0ms);
  }
  .edge-chat[data-stage] .edge-row.is-onstage { opacity: 1; transform: none; }
  .edge-chat[data-stage] .edge-row.is-offstage { opacity: 0; transition-duration: 280ms; transition-delay: 0ms; }
  .edge-chat[data-stage] .edge-row.is-offstage[data-exit="up"] { transform: translateY(-14px); }
  .edge-chat[data-stage] .edge-row.is-offstage[data-exit="down"] { transform: translateY(16px); }
}
.edge-controls { display: flex; flex-wrap: wrap; gap: .45rem; padding: .75rem 1.15rem; border-top: 1px solid var(--line); }
.edge-controls[hidden] { display: none; }
.edge-controls button { font: inherit; font-weight: 600; font-size: .9rem; color: var(--dark-purple); border: 1px solid #cbb6e4; border-radius: .5rem; padding: .5rem .7rem; background: transparent; cursor: pointer; min-height: 44px; }
.edge-controls button:hover { background: #f3e9fb; }
.edge-controls [data-edge-play] { margin-inline-start: auto; }
@media (min-width: 56rem) {
  .edge { grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
}
.dark-close :focus-visible { outline: 2px solid #e4b8ff; outline-offset: 3px; }
.product-row { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 1rem clamp(2rem, 7vw, 7rem); border-top: 1px solid #493a53; padding-block: clamp(2rem, 5vw, 4.5rem); }
.product-row h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.product-row p { color: #d4c7df; font-size: 1.1rem; max-width: 31rem; }
.di-logo {
  position: relative;
  width: min(48vw, 12rem);
  transform: translateY(10px);
}
.di-logo img { display: block; width: 100%; height: auto; }
.di-lit, .di-lights { position: absolute; inset: 0; pointer-events: none; }
.di-logo .di-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-duration: 16s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.di-lights .di-glow:nth-child(1) { animation-name: di-fade-0; }
.di-lights .di-glow:nth-child(2) { animation-name: di-fade-1; }
.di-lights .di-glow:nth-child(3) { animation-name: di-fade-2; }
.di-lights .di-glow:nth-child(4) { animation-name: di-fade-3; }
@keyframes di-fade-0 {
  0%, 8% { opacity: 0; }
  15% { opacity: .5; }
  22% { opacity: 1; }
  29% { opacity: .5; }
  36%, 100% { opacity: 0; }
}
@keyframes di-fade-1 {
  0%, 22% { opacity: 0; }
  29% { opacity: .5; }
  36% { opacity: 1; }
  43% { opacity: .5; }
  50%, 100% { opacity: 0; }
}
@keyframes di-fade-2 {
  0%, 36% { opacity: 0; }
  43% { opacity: .5; }
  50% { opacity: 1; }
  57% { opacity: .5; }
  64%, 100% { opacity: 0; }
}
@keyframes di-fade-3 {
  0%, 50% { opacity: 0; }
  57% { opacity: .5; }
  64% { opacity: 1; }
  71% { opacity: .5; }
  78%, 100% { opacity: 0; }
}
.lunar { background: none; }
.lunar p { color: #eed9ff; }
.edge-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; padding-block: 1.1rem 1.35rem; border-top: 1px solid #493a53; }
.edge-footer > :first-child { margin-inline-end: auto; }
.edge-footer a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
.edge-footer .wordmark { filter: brightness(1.65) saturate(.7); }
.footer-legal { flex: 1 1 100%; margin: 0; color: #b7a8c4; font-size: .8rem; line-height: 1.45; }
@keyframes edge-appear { from { opacity: 0; transform: translateY(.25rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 52rem) { .edge, .product-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .edge-scene:not([hidden]) { animation: none; }
  .di-logo .di-glow { animation: none; opacity: 0; }
}

.lunar-mark { display: block; position: relative; width: min(48vw, 12rem); justify-self: center; }
.lunar h2 + p { margin-top: .75rem; }
  @property --bdna-clock-in { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
  @property --bdna-clock-out { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
  .lunar-mark img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .lunar-mark .lunar-reveal {
    --bdna-clock-in: 0deg;
    --bdna-clock-out: 0deg;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    clip-path: circle(0% at 50% 50%);
    -webkit-mask-image: conic-gradient(from -90deg at 50% 50%, transparent 0deg, transparent var(--bdna-clock-out), #000 var(--bdna-clock-out), #000 var(--bdna-clock-in), transparent var(--bdna-clock-in));
    mask-image: conic-gradient(from -90deg at 50% 50%, transparent 0deg, transparent var(--bdna-clock-out), #000 var(--bdna-clock-out), #000 var(--bdna-clock-in), transparent var(--bdna-clock-in));
    animation: bdna-lunar-wipe 26s infinite;
    animation-play-state: paused;
    pointer-events: none;
    z-index: 2;
  }
  .lunar-mark .lunar-moon {
    position: absolute;
    left: 6.6%;
    top: 8.4%;
    width: 86.6%;
    height: auto;
    z-index: 1;
    transform-origin: center;
    border-radius: 50%;
    animation: lunar-lens 26s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
  }
  .lunar-mark.is-playing .lunar-reveal,
  .lunar-mark.is-playing .lunar-moon { animation-play-state: running; }
  @keyframes lunar-lens {
    0%, 70% { transform: scale(1); clip-path: circle(50% at 50% 50%); filter: none; }
    80% { transform: scale(1.16); clip-path: circle(44% at 50% 50%); filter: contrast(1.14) saturate(1.18) brightness(1.05); }
    90%, 100% { transform: scale(1); clip-path: circle(50% at 50% 50%); filter: none; }
  }
  @keyframes bdna-lunar-wipe {
    0% { clip-path: circle(0% at 50% 50%); --bdna-clock-in: 360deg; --bdna-clock-out: 0deg; animation-timing-function: ease-in-out; }
    12% { clip-path: circle(100% at 50% 50%); --bdna-clock-in: 360deg; --bdna-clock-out: 0deg; animation-timing-function: ease-in-out; }
    24% { clip-path: circle(0% at 50% 50%); --bdna-clock-in: 360deg; --bdna-clock-out: 0deg; animation-timing-function: linear; }
    26% { clip-path: inset(0); --bdna-clock-in: 0deg; --bdna-clock-out: 0deg; animation-timing-function: linear; }
    42% { clip-path: inset(0); --bdna-clock-in: 360deg; --bdna-clock-out: 0deg; animation-timing-function: linear; }
    58%, 66% { clip-path: inset(0); --bdna-clock-in: 360deg; --bdna-clock-out: 360deg; animation-timing-function: linear; }
    68% { clip-path: circle(0% at 50% 50%); --bdna-clock-in: 360deg; --bdna-clock-out: 360deg; animation-timing-function: linear; }
    70%, 100% { clip-path: circle(0% at 50% 50%); --bdna-clock-in: 360deg; --bdna-clock-out: 0deg; animation-timing-function: ease-in-out; }
  }

@media (max-width: 52rem) { .lunar-mark { justify-self: start; } }
@media (prefers-reduced-motion: reduce) {
  .lunar-mark .lunar-reveal { animation: none; clip-path: none; mask-image: none; -webkit-mask-image: none; }
  .lunar-mark .lunar-moon { animation: none; }
}

.product-row h2 + p { margin-top: .75rem; }
.di-logo { justify-self: center; }
.lunar-link { display: inline-block; margin-top: .85rem; text-underline-offset: .25em; }
.proof-controls button, .edge-controls button { min-height: 44px; }
.hero-art { min-width: 0; }
@media (max-width: 52rem) { .di-logo { justify-self: start; } }
@media (max-width: 40rem) {
  .site-header nav { flex-wrap: wrap; }
  .site-header nav a { display: flex; align-items: center; min-height: 44px; }
  h1 { font-size: clamp(2.5rem, 11.4vw, 4.4rem); }
}

.book { scroll-margin-top: 1.25rem; }
#demo-calendar {
  min-height: 44rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
}
.book-fallback { margin-top: .85rem; color: var(--muted); font-size: .9rem; }
.book-fallback a { font-weight: 650; text-underline-offset: .25em; }
@media (min-width: 56rem) { #demo-calendar { min-height: 48rem; } }

.legal { padding: 1.25rem 0 3.5rem; }
.legal h1 { font-size: clamp(2.6rem, 10vw, 4.4rem); letter-spacing: -.05em; }
.legal .lead { margin-top: 1rem; max-width: 38rem; color: var(--muted); }
.legal h2 { margin-top: 2rem; font-size: 1.6rem; }
.legal p, .legal li { max-width: 40rem; }
.legal ul { margin: .55rem 0 0; padding-left: 1.15rem; }
.legal li { margin: .6rem 0; }
.legal a { text-underline-offset: .22em; }
