/* The sales page (goal 97). Since 3 Dec 2026 it is pine and brass, Rahul's pick after seeing charcoal, blue night and
   pine side by side (it is taken from the reference page inspiritation1): a pine-black ground, cream text, brass for
   the labels and accent words, sage for the step numbers, and cream for the one primary action. The film's teal,
   aurora, aqua rings and Mukta (25 Nov 2026, PR #121) are gone; the page keeps look.md's glass, copied here rather
   than imported so it shares no code with the product. The layout follows the AAPA Industries site's language: Sora headings, a small mono label with a rule in
   front, the hero's screen framed with corner marks, the three steps as a staggered timeline and the data facts as
   hairline rows. Dark only. Body text stays on the system stack. */

/* Sora (SIL Open Font License), the AAPA site's heading face: one variable file, weights 300 to 600. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/sora-latin-wght-normal.fa26406e.woff2") format("woff2");
}

:root {
  /* Pine and brass (3 Dec 2026). Named by role, not hue, so a later palette changes values only. */
  --text: #f3efe6;
  --soft: #b8b6ab; /* 8:1 on the ground */
  --faint: #6b706a; /* never text (look.md): separators and marks only */
  --action: #f3efe6; /* cream: the one primary action, links, the focus ring */
  --action-rgb: 243, 239, 230;
  --accent: #c9a064; /* brass: labels and the accent words */
  --accent-rgb: 201, 160, 100;
  --second: #9fb0a8; /* sage: step numbers and the examples' labels */
  --second-rgb: 159, 176, 168;
  --on-accent: #0e1311;
  --ground: #0e1311;
  --ground-deep: #0a0e0c;
  --ground-raised: #151a18;
  /* The lifted band behind every other section: between the ground and the raised surface. */
  --band: #122019;
  --band-top: #18291f;
  --band-edge: rgba(243, 239, 230, 0.1);
  --line: rgba(243, 239, 230, 0.09);
  --r-card: 16px;
  --r-window: 26px;
  --gutter: 20px;
  --font: ui-sans-serif, -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --display: "Sora", ui-sans-serif, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* The reference page's long curves: an expo-style ease-out for arrivals, and an ease-in-out for the curtains. */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* A column, so the footer sits at the bottom of a short page (the 404) and under the content of a long one. */
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The ground (look.md), on a fixed layer rather than background-attachment: fixed, which phones paint badly. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 20% 14%, rgba(var(--accent-rgb), 0.08), transparent 72%),
    radial-gradient(48% 42% at 84% 80%, rgba(var(--second-rgb), 0.05), transparent 72%),
    radial-gradient(44% 40% at 88% 12%, rgba(var(--accent-rgb), 0.03), transparent 74%),
    radial-gradient(80% 70% at 50% 44%, var(--ground-raised) 0%, var(--ground) 55%, var(--ground-deep) 100%);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links are cream like the text, so their underline carries them: in brass. */
a {
  color: var(--action);
  text-decoration-color: rgba(var(--accent-rgb), 0.75);
  text-underline-offset: 3px;
}

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

/* Sora is wide-set: medium weight, near-neutral tracking and roomy leading. Each size below sets its own line-height
   with it, so nothing can leave a heading's lines stacked on each other. */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

main {
  flex: 1 0 auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

/* A section of words alone keeps a reading width, on the page's left edge like the rest. */
.measure > * {
  max-width: 44rem;
}

/* Glass (look.md): a white wash brightest at the top, the lit top edge and a hairline ring. No backdrop blur: the
   cards sit on the page's still ground, where a blur shows nothing, and on a slow phone it is the costliest paint. */
.glass {
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035) 40%, rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 18px 50px rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  transition: transform 0.22s var(--ease), filter 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

/* The one primary action, in cream. */
.btn-primary {
  background: var(--action);
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(var(--action-rgb), 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(var(--action-rgb), 0.32);
}

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn-quiet:hover {
  text-decoration: underline;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.actions-center {
  justify-content: center;
}

/* ----------------------------------------------------------------------------------------- the top bar */

.topbar {
  position: relative;
  z-index: 2;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

/* The emblem on look.md's neutral glass tile. */
.brand-mark {
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ----------------------------------------------------------------------------------------- type */

/* What the section is, as a small mono label with a short rule in front, in brass. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent);
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.014em;
}

h2 {
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
}

/* The words of a heading that carry its point, in brass. */
.accent {
  color: var(--accent);
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  color: var(--soft);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
}

.body-text {
  margin-top: 18px;
  color: var(--soft);
  font-size: 18px;
}

.note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
}

/* ----------------------------------------------------------------------------------------- the hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.hero-shot {
  margin: 0;
}

/* The screen, framed with four corner marks like a screen on a bench. The marks are drawn by the picture's own layer,
   so the caption under it stays outside the frame and nothing sits over the picture. */
.hero-shot picture {
  position: relative;
  display: block;
}

.hero-shot picture::before {
  content: "";
  position: absolute;
  inset: -14px;
  pointer-events: none;
  --mark: rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(var(--mark), var(--mark)) top left / 20px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) top left / 1px 20px no-repeat,
    linear-gradient(var(--mark), var(--mark)) top right / 20px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) top right / 1px 20px no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom left / 20px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom left / 1px 20px no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom right / 20px 1px no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom right / 1px 20px no-repeat;
}

/* The hero's box is sized before its picture arrives, so nothing under it moves: the laptop's Home and, under 720 px,
   the phone's (tools/make-images.py makes them 1440 × 900 and 780 × 1540). */
.hero-shot img {
  width: 100%;
  aspect-ratio: 1440 / 900;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero-shot .demo-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.demo-note {
  margin-top: 12px;
  color: var(--soft);
  font-size: 13px;
}

/* ----------------------------------------------------------------------------------------- sections */

/* Each section is a full-width band with even padding above and below. Every other one (the film, how it works,
   the studio) sits on a lifted pine with a hairline at each edge, so the page reads as separate rooms rather than
   one continuous ground (Rahul, 3 Dec 2026: "sections do not look separate"). The band is set in the HTML, not by
   :nth-of-type, because the film section is left out of a build without films. */
.section {
  padding: 80px 0;
}

.section-band {
  background: linear-gradient(180deg, var(--band-top) 0%, var(--band) 100%);
  border-top: 1px solid var(--band-edge);
  border-bottom: 1px solid var(--band-edge);
}

.section-last {
  padding-bottom: 96px;
}

.section h2 {
  max-width: 22em;
}

/* The three steps: a timeline, each step under its own rule, stepping down as it goes on a wide screen. */
.steps {
  display: grid;
  gap: 36px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.step-number {
  display: block;
  margin-bottom: 12px;
  color: var(--second);
  font: 400 13px/1.4 var(--mono);
}

.step-number::before {
  content: "Step ";
}

.step p,
.feature p,
.fact p,
.example p {
  margin-top: 10px;
  color: var(--soft);
}

.shot {
  margin: 20px 0 0;
}

.shot img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.45);
}

.shot-wide {
  margin-top: 48px;
  max-width: 620px;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--soft);
  font-size: 14px;
}

/* A tall screen is shown down to a height and fades out, so the cards beside it stay level. */
.shot-tall picture {
  display: block;
  max-height: 440px;
  overflow: hidden;
  border-radius: 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.shot-phone {
  max-width: 300px;
}

.features {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.feature {
  padding: 26px;
}

.chat {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px var(--line);
}

.chat-label {
  color: var(--soft);
  font: 400 12px/1.4 var(--mono);
}

.bubble {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px 14px 5px 14px;
  font-size: 15px;
}

/* Inside .chat, so it outranks .feature p's soft colour: the owner's words in the action colour. */
.chat .bubble-owner {
  margin-left: auto;
  max-width: 92%;
  background: rgba(var(--action-rgb), 0.18);
  color: var(--text);
}

/* ----------------------------------------------------------------------------------------- the film */

/* The film, the page's centrepiece: a glass frame. */
.film {
  margin-top: 36px;
  padding: 8px;
  border-radius: 22px;
}

.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  background: var(--ground-deep);
}

.film-lede {
  margin-top: 18px;
  max-width: 40em;
  color: var(--soft);
  font-size: 18px;
}

.lang {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lang[hidden] {
  display: none;
}

.lang-option {
  min-width: 96px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font: 600 15px/1 var(--font);
  cursor: pointer;
}

.lang-option[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ----------------------------------------------------------------------------------------- the studio, the data */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.example {
  padding: 26px;
}

.example-eyebrow {
  margin-bottom: 10px;
  color: var(--second);
  font: 400 13px/1.4 var(--mono);
}

/* The data facts as hairline rows: two columns on a wide screen, the rule above each. */
.facts {
  display: grid;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}

.fact h3 {
  font-size: 18px;
}

/* The row under the pointer or holding focus stays bright; its siblings step back. */
.focus-list > * {
  transition: opacity 0.3s ease;
}

.focus-list:has(> :hover) > :not(:hover),
.focus-list:has(> :focus-within) > :not(:focus-within) {
  opacity: 0.45;
}

.more {
  margin-top: 24px;
}

.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------------------- book a demo */

/* Book a demo: a glass card lit from inside by brass and cream. */
.book {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 24px;
  text-align: center;
}

.book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    radial-gradient(60% 80% at 85% 100%, rgba(var(--action-rgb), 0.14), transparent 70%);
}

.book h2 {
  margin: 0 auto;
}

.phone {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

/* The address under the number: smaller, and free to break on a narrow phone rather than push the card wider. */
.email {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.email a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.email a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------------------------------- the footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  color: var(--soft);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  border-radius: 5px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ----------------------------------------------------------------------------------------- /security and the 404 */

.statement {
  padding-top: 24px;
  padding-bottom: 80px;
}

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.statement h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.statement h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.3;
}

.statement p,
.statement li {
  margin-top: 12px;
  color: var(--soft);
  font-size: 17px;
}

.statement strong {
  color: var(--text);
  font-weight: 650;
}

.statement ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.statement li::marker {
  color: var(--soft);
}

.missing {
  padding: 96px 0 120px;
}

.missing h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

/* ----------------------------------------------------------------------------------------- wider screens */

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .section {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .section-last {
    padding-bottom: 128px;
  }

  .book {
    padding: 80px 40px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    align-items: center;
    gap: 64px;
  }

  /* Each step a little lower than the one before it. */
  .steps {
    align-items: start;
  }

  .step:nth-child(2) {
    margin-top: 56px;
  }

  .step:nth-child(3) {
    margin-top: 112px;
  }

  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 64px;
  }

  /* The Updates screen beside its caption, so the block has no empty half. */
  .shot-wide {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
    max-width: none;
  }

  .shot-wide figcaption {
    margin-top: 0;
    font-size: 18px;
  }
}

/* The hero's words above the screen on a phone and a tablet, and the screen no wider than it reads well. */
@media (max-width: 959px) {
  .hero-shot {
    max-width: 720px;
  }
}

@media (max-width: 719px) {
  .hero-shot img {
    aspect-ratio: 780 / 1540;
    border-radius: 22px;
  }

  /* Its full width up to 390, never its picture's: centred by auto margins, a grid item would otherwise shrink to the
     picture's width, which is unknown until it loads, and move what is beside it. Narrower by the frame's marks. */
  .hero-shot {
    width: calc(100% - 28px);
    max-width: 362px;
    margin: 0 auto;
  }

  /* A phone gets each screen's one card, cropped short, so it is shown whole rather than faded out. */
  .shot-tall:not(.shot-phone) picture {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .actions .btn {
    width: 100%;
  }

  .actions .btn-quiet {
    margin: 0 auto;
  }
}

/* ----------------------------------------------------------------------------------------- motion */
/* Subtle motion (Rahul, 25 Nov 2026: "subtle animations ... hover animations ... cards which slightly get bigger ...
   don't overdo it ... and the clickable components, don't add animation that the clicking function will not work").
   The rules that keep every click working:
   - a hover only ever grows a thing in place (scale up from its centre) and never moves it, so it never slides out
     from under the pointer, and nothing shrinks on press, so a press and its release land on the same thing;
   - hover motion is only for a mouse or a trackpad ((hover: hover) and (pointer: fine)), so a tap on a phone is a
     plain tap, with no sticky hover state;
   - the film's frame and its player never move: their controls stay exactly where they are;
   - nothing here adds a layer over anything that takes a click (the hero's corner marks ignore the pointer);
   - under prefers-reduced-motion none of it runs (the block at the end turns every transition and animation off). */

.feature,
.example,
.hero-shot picture,
.brand-mark,
.btn .icon,
.btn-quiet .icon {
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
}

.film,
.lang-option,
a {
  transition: box-shadow 0.28s ease, background-color 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  /* A card grows a little and its ring brightens. */
  .feature:hover,
  .example:hover {
    transform: scale(1.012);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.16),
      0 22px 54px rgba(0, 0, 0, 0.46);
  }

  .hero-shot:hover picture {
    transform: scale(1.01);
  }

  /* The film's frame brightens only: it never moves under its controls. */
  .film:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.16),
      0 18px 50px rgba(0, 0, 0, 0.4);
  }

  .btn-primary:hover,
  .btn-glass:hover {
    transform: scale(1.03);
  }

  /* A button's or a link's icon grows inside it; the hit area is the button's, unchanged. */
  .btn:hover .icon,
  .btn-quiet:hover .icon {
    transform: scale(1.12);
  }

  .brand:hover .brand-mark {
    transform: scale(1.07);
  }

  .lang-option[aria-pressed="false"]:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* "Watch the film" and the other in-page links glide rather than jump. */
  html {
    scroll-behavior: smooth;
  }

  /* The hero opens once, on load, and is the page's one orchestrated moment (3 Dec 2026, after the reference page
     inspiritation2): the words rise on a long ease-out, the headline clears from a blur (wide screens only: a blur
     over large type is costly on a phone), the screen opens like a curtain from its middle, and its corner marks
     settle in as it finishes. Everything ends exactly where it is without motion, and none of it takes a click: the
     buttons are never covered, and the marks ignore the pointer. Pure CSS, so nothing waits on the script. */
  .hero-text > * {
    animation: rise 1.1s var(--ease-out) both;
  }

  .hero-text > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-text > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero-text > :nth-child(4) {
    animation-delay: 0.28s;
  }

  .hero-shot img {
    animation: curtain 1.5s var(--ease-in-out) 0.15s both;
  }

  .hero-shot picture::before {
    animation: marks 0.9s var(--ease-out) 1.1s both;
  }

  .hero-shot .demo-note {
    animation: rise 1.1s var(--ease-out) 1.2s both;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 720px) {
  .hero-text h1 {
    animation-name: defog;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes defog {
  from {
    opacity: 0.12;
    filter: blur(10px);
    transform: translateY(16px);
  }
}

/* Opens from a narrow band across the middle to the whole screen, its corners rounded throughout. */
@keyframes curtain {
  from {
    clip-path: inset(46% 0 46% 0 round 12px);
  }

  to {
    clip-path: inset(0 0 0 0 round 12px);
  }
}

@keyframes marks {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
}

/* Below the fold, each block fades up as it scrolls into view (site.js adds .reveal only to blocks not yet on screen,
   and only when the browser has IntersectionObserver and motion isn't reduced; without the script nothing is hidden).
   A block is never hidden from a click: it is shown the moment any of it enters the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* look.md: under reduced transparency, solid surfaces with the same lit edge and no gradients. */
@media (prefers-reduced-transparency: reduce) {
  body::before {
    background: var(--ground);
  }

  .glass {
    background: var(--ground-raised);
  }

  .book::before {
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
