:root {
  --green: var(--laticelo-verde-sertao);
  --cream: var(--laticelo-creme-do-leite);
  --gold: var(--laticelo-sol-do-nordeste);
  --clay: var(--laticelo-terra-clara);
  --ink: #092e26;
  --muted: #476359;
  --line: #deddd0;
  --opening-depth: clamp(36px, 12svh, 115px);
  --scene-motion: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font: var(--laticelo-peso-texto) 1rem/1.55 var(--laticelo-font-interface);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--laticelo-terra-do-ceara); outline-offset: 5px; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 16px; left: 16px; z-index: 5; padding: 12px 18px; background: var(--cream); }
#demonstracao { scroll-margin-top: 24px; }

.screen {
  display: grid;
  min-block-size: 100vh;
  min-block-size: 100svh;
  min-block-size: 100dvh;
}
main > section.screen {
  align-items: center;
  padding-block: clamp(26px, 6svh, 80px);
}

.opening {
  position: relative;
  isolation: isolate;
  grid-template-rows: auto 1fr;
  background: var(--ink);
}
.opening-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.opening-art, .opening-light {
  position: absolute;
  inset: 0;
}
.opening-art {
  background: var(--green) url('assets/sertao.webp') center 52% / cover no-repeat;
}
.opening-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 27, 21, .90) 0%, rgba(5, 31, 23, .78) 30%, rgba(5, 28, 22, .34) 67%, rgba(5, 28, 22, .05) 100%),
    linear-gradient(180deg, rgba(4, 25, 19, .7), transparent 28%, transparent 69%, rgba(4, 25, 19, .8));
}
.opening-light {
  background: radial-gradient(ellipse at 78% 29%, #e0a52b57, transparent 54%);
  opacity: 0;
  animation: light-in 1.9s ease-out .15s both;
}
@keyframes light-in { to { opacity: .7; } }

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  position: relative;
  color: var(--cream);
  border-bottom: 1px solid #f7f1e646;
}
.site-header > a:first-child { justify-self: start; }
.site-header nav { display: flex; justify-self: end; gap: clamp(12px, 2.2vw, 34px); font-size: .86rem; font-weight: 500; }
.site-header nav a { padding-block: 10px; }
.site-header nav a:hover, .text-link:hover { color: #ffd487; }

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(24px, 5svh, 56px);
  padding-block: clamp(34px, 7svh, 86px) clamp(16px, 2.6svh, 28px);
  color: var(--cream);
}
.hero-copy { align-self: center; min-width: 0; animation: enter .9s cubic-bezier(.2,.65,.3,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow > span { width: 17px; height: 1px; background: var(--laticelo-terra-do-ceara); flex: 0 0 17px; }
.hero h1, .section-intro h2, .story h2, .scene-intro h2, .dispatch h2 {
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero h1 { margin-block: 25px 21px; font-size: clamp(4rem, 7.95vw, 7.55rem); }
.hero h1 em { color: #f1c289; font-style: normal; }
.hero-description { max-width: 420px; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #f7f1e6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 50px;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: .86rem;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.button-cream { color: var(--ink); background: var(--cream); }
.button-cream:hover { background: #f6d7aa; transform: translateY(-2px); }
.button span { font-size: 1rem; }
.text-link { padding-block: 12px; font-size: .86rem; font-weight: 600; }
.text-link span { margin-left: 6px; }
.hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  padding-top: 16px;
  border-top: 1px solid #f7f1e64d;
  font-size: .875rem;
}
.location { display: flex; align-items: center; gap: 8px; }
.location i { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.system { background: var(--cream); }
main > section.system { padding-block: clamp(20px, 3.6svh, 52px); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; gap: 36px; margin-bottom: clamp(20px, 4svh, 45px); }
.system .section-intro h2 { font-size: clamp(2.4rem, min(4.65vw, 8svh), 4.5rem); }
@supports (width: 1cqi) {
  .system .section-intro > div { container-type: inline-size; }
  .system .section-intro h2 { font-size: min(clamp(2.4rem, min(4.65vw, 8svh), 4.5rem), 16cqi); }
}
.section-intro h2, .story h2 { margin-top: 18px; font-size: clamp(2.8rem, 6vw, 5.7rem); }
.section-intro h2 em, .story h2 em { color: #8f4729; font-style: normal; }
.section-intro > p, .story-copy > p:not(.eyebrow) { max-width: 425px; color: var(--muted); }
.section-intro > p { padding-block: 0 3px; }

.experience {
  color: var(--cream);
  background: radial-gradient(ellipse at 90% 10%, var(--green), var(--ink) 66%);
  border-radius: 18px;
  padding: clamp(20px, min(4.2vw, 4.8svh), 55px);
}
.experience-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; gap: 8px 16px; }
.experience-heading h3 { font-size: clamp(1.4rem, 2.8vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
.demo-notice { color: #ffdaa3; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.demo {
  --panel-padding: clamp(14px, 2.25vw, 28px);
  display: grid;
  grid-template-columns: minmax(132px, .65fr) minmax(0, 3.4fr);
  color: var(--ink);
  background: #f7f1e6;
  border: 1px solid #f7f1e657;
  border-radius: 12px;
  box-shadow: 0 20px 45px #06231d60;
}
.stage-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px;
  border-inline-end: 1px solid var(--line);
  background: #efe9dd;
  border-end-start-radius: 12px;
}
.stage {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.stage:hover { background: #e6e8dd; }
.stage.is-active { background: var(--green); color: var(--cream); border-color: var(--green); }
.demo-screen { min-width: 0; }
.window-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px var(--panel-padding);
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}
.window-bar span { margin-inline-start: auto; color: var(--muted); font-size: .74rem; }
.demo-panel { padding: var(--panel-padding); font-variant-numeric: tabular-nums; scroll-margin-top: 16px; }
.demo-panel + .demo-panel { border-top: 1px solid var(--line); }
.demo-panel.is-entering { animation: enter .24s ease-out both; }
.panel-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.panel-title h4 { font-size: clamp(1.25rem, 2.3vw, 1.85rem); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.panel-title p { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.panel-action, .demo-workflow summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--green);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
}
.panel-action:hover, .demo-workflow summary:hover { background: var(--ink); }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.2rem), 1fr));
  gap: 8px;
  margin-top: 15px;
}
.metrics > div, .demo-chart, .demo-panel table, .demo-workflow[open] > dl {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metrics > div { padding: 10px; }
.metrics dt { font-size: .71rem; color: var(--muted); font-weight: 600; line-height: 1.25; }
.metrics dd { margin-top: 5px; font-size: clamp(.96rem, 1.75vw, 1.45rem); font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
.metrics .metric-warning { background: #fff3d9; border-color: #eac78a; }
.demo-chart { margin-top: 12px; padding: 11px 14px; }
.demo-chart h5 { margin: 0; font-size: .84rem; }
.demo-chart ul { margin: 8px 0 0; padding: 0; list-style: none; }
.demo-chart li { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 10px; margin-top: 6px; font-size: .76rem; }
.demo-chart li i { height: 10px; width: var(--volume); border-radius: 4px; background: var(--green); }
.demo-panel table { margin-top: 12px; width: 100%; border-spacing: 0; font-size: .77rem; }
.demo-panel caption { padding-bottom: 8px; text-align: left; font-weight: 700; font-size: .85rem; }
.demo-panel td, .demo-panel th { padding: 6px 9px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.demo-panel tbody tr:last-child td { border-bottom: 0; }
.demo-panel th { color: var(--muted); font-weight: 600; }
.demo-panel td:not(:first-child), .demo-panel th:not(:first-child) { text-align: right; }
.demo-panel td small { display: block; color: var(--muted); font-size: .7rem; }
.demo-status { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #eaf1e7; font-weight: 600; }
.demo-status.warning { background: #fff0d0; color: #7e4207; }
.demo-workflow { margin-top: 10px; }
.demo-workflow summary { cursor: pointer; list-style: none; }
.demo-workflow summary::-webkit-details-marker { display: none; }
.demo-workflow summary span::before { content: "+"; }
.demo-workflow[open] summary span::before { content: "−"; }
.demo-workflow p { margin-block: 10px 5px; font-size: .74rem; font-weight: 700; }
.demo-workflow dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap: 8px; padding: 9px; }
.demo-workflow dt { font-size: .7rem; color: var(--muted); }
.demo-workflow dd { font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }

.story { background: #efe7da; }
.story-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 6vw, 90px); align-items: center; }
.story-photo, .scene-photo { position: relative; overflow: hidden; border-radius: 12px; background: var(--green); }
.story-photo, .quality .scene-photo, .operation-layout .scene-photo {
  width: min(100%, max(240px, 89svh), 900px);
  aspect-ratio: 3 / 2;
}
.story-image, .scene-photo img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-size: clamp(2.65rem, 4.6vw, 4.6rem); margin-bottom: 20px; }
.story-copy > p + p:not(.eyebrow) { margin-top: 14px; }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  padding-block: 7px;
  border-bottom: 1px solid #8f4729;
  font-size: .86rem;
  font-weight: 600;
}
.story-link:hover { color: #8f4729; }

.operations, .operation-feature, .dispatch { background: var(--ink); color: var(--cream); }
.operation-feature { background: var(--green); }
.operation-feature-reverse { background: var(--ink); }
.operations .eyebrow > span, .dispatch .eyebrow > span { background: var(--gold); }
.scene-intro h2, .dispatch h2 { margin-top: 18px; font-size: clamp(2.9rem, 6.4vw, 6rem); }
.scene-intro h2 em, .dispatch h2 em { color: #f1c289; font-style: normal; }
.quality, .operation-layout {
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
.quality { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-top: clamp(18px, 4svh, 36px); }
.operation-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.operation-feature-reverse .operation-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.operation-feature-reverse .scene-photo { order: -1; }
.operation-layout .scene-intro { container-type: inline-size; }
.operation-layout h2 { margin-top: 0; font-size: clamp(1.9rem, 3.4vw, 4rem); }
@supports (width: 1cqi) {
  .operation-layout h2 { font-size: min(clamp(1.9rem, 4.65vw, 4.8rem), 13cqi); }
}
.scene h3 { font-size: clamp(1.45rem, 3.05vw, 2.7rem); line-height: 1.08; font-weight: 600; letter-spacing: -.043em; }
.scene p { color: #e0e7df; max-width: 435px; margin-top: 12px; }
.quality-copy { padding: 16px 0 16px clamp(20px, 3.2vw, 48px); border-left: 1px solid #e0a52b8c; }

.screen.dispatch { align-items: stretch; padding-block: 0; overflow: clip; }
.dispatch-frame {
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding-block: 40px clamp(30px, 7svh, 88px);
}
.dispatch-photo { position: absolute; z-index: -2; inset: 0; border-radius: 0; }
.dispatch-photo img { object-position: center 56%; }
.dispatch-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #061d17f2, #061d1766 50%, transparent 78%),
    linear-gradient(90deg, #061d1790, transparent 75%);
}
.dispatch-copy p:last-child { margin-top: 16px; max-width: 460px; }

.scale { background: #efe7da; }
.scale-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.scale-list article { border-top: 1px solid #bca797; padding-top: 17px; }
.scale-list h3 { font-size: clamp(1.18rem, 2.3vw, 1.7rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.scale-list p { color: var(--muted); margin-top: 9px; font-size: .92rem; }

.site-footer { padding-block: 47px; color: var(--cream); background: var(--ink); }
.footer-layout { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-layout p { font-size: .9rem; margin-top: 11px; }

.reveal.is-pending { opacity: .75; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .68s ease, transform .68s cubic-bezier(.22,.61,.36,1); }
.reveal.is-pending:focus-within { opacity: 1; transform: none; }

#origem { --photo-pan-x: 3%; --photo-pan-y: 2%; --scene-warmth: #f4bd7675; }
#operacao { --photo-pan-x: -3.5%; --photo-pan-y: 2%; --scene-warmth: #a0d3c063; }
#processamento { --photo-pan-x: 4%; --photo-pan-y: 1%; --scene-warmth: #b9ddab68; }
#producao-queijos { --photo-pan-x: -3.5%; --photo-pan-y: -2%; --scene-warmth: #f4bd7675; }
#expedicao { --photo-pan-x: 2%; --photo-pan-y: 3%; --scene-warmth: #efa86380; }

:is(.story-photo, .scene-photo) img {
  --travel: calc((1 - 2 * var(--scene-progress, .5)) * var(--scene-motion));
  transform: translate3d(calc(var(--photo-pan-x) * var(--travel)), calc(var(--photo-pan-y) * var(--travel)), 0)
    scale(calc(1 + .14 * max(var(--travel), -1 * var(--travel))));
}
:is(.story-photo, .scene-photo)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 16%, var(--scene-warmth) 51%, transparent 82%);
  opacity: .42;
  transform: translateX(calc(-40% + 80% * var(--scene-progress, .5)));
}

@supports (animation-timeline: view()) and (animation-range: entry 0% exit 100%) {
    body::before {
      content: "";
      position: fixed;
      z-index: 4;
      inset: 0 0 auto;
      height: 3px;
      pointer-events: none;
      background: linear-gradient(90deg, var(--clay), #f1c289);
      transform-origin: left;
      animation: reading-progress linear both;
      animation-timeline: scroll(root block);
    }
    .opening-art {
      inset-block-start: calc(-1 * var(--opening-depth));
      animation: opening-depth linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100dvh;
    }
    .opening-light {
      animation: opening-light-travel linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100dvh;
    }
    .reveal {
      animation: scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 56%;
    }
    .reveal:focus-within { animation: none; }
    :is(.story-photo, .scene-photo) { view-timeline: --photo-journey block; }
    :is(.story-photo, .scene-photo) img { animation-name: scene-pan; }
    :is(.story-photo, .scene-photo)::after { animation-name: scene-light; }
    :is(.story-photo, .scene-photo) img,
    :is(.story-photo, .scene-photo)::after {
      animation-duration: auto;
      animation-timing-function: ease-in-out;
      animation-fill-mode: both;
      animation-timeline: --photo-journey;
      animation-range: entry 0% exit 100%;
    }
}
@keyframes reading-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes opening-depth {
  from { translate: 0 0; }
  to { translate: 0 var(--opening-depth); }
}
@keyframes opening-light-travel {
  0% { opacity: .52; transform: translateX(0); }
  48% { opacity: .72; transform: translateX(-5%); }
  100% { opacity: .24; transform: translateX(-9%); }
}
@keyframes scroll-reveal {
  from { opacity: .72; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes scene-pan {
  0% {
    transform: translate3d(calc(var(--photo-pan-x) * var(--scene-motion)), calc(var(--photo-pan-y) * var(--scene-motion)), 0)
      scale(calc(1 + .14 * var(--scene-motion)));
  }
  48%, 51% { transform: none; }
  100% {
    transform: translate3d(calc(-1 * var(--photo-pan-x) * var(--scene-motion)), calc(-1 * var(--photo-pan-y) * var(--scene-motion)), 0)
      scale(calc(1 + .13 * var(--scene-motion)));
  }
}
@keyframes scene-light {
  0% { opacity: .12; transform: translateX(-34%); }
  30% { opacity: .62; }
  50% { opacity: .12; transform: translateX(4%); }
  100% { opacity: .44; transform: translateX(45%); }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 64px, 1280px); }
  .hero h1 { font-size: clamp(3.55rem, 9vw, 6.2rem); }
  .opening-art { background-position: 56% center; }
}

@media (max-width: 760px) {
  .site-header { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(57px, auto) auto; gap: 0; }
  .site-header img { width: 125px; height: auto; }
  .site-header nav {
    justify-self: stretch;
    flex-wrap: wrap;
    column-gap: clamp(12px, 4.5vw, 24px);
    row-gap: 0;
    border-top: 1px solid #f7f1e626;
  }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
}

@media (max-width: 650px) {
  :root { --scene-motion: .62; }
  .screen { min-block-size: 100svh; }
  .shell { width: calc(100% - clamp(28px, 9.23vw, 36px)); }
  .opening-art { background-position: 76% center; }
  .opening-art::after {
    background:
      linear-gradient(90deg, #071f18d1, #071f1854),
      linear-gradient(180deg, #071f18d6, #071f1826 31%, #071f184d 58%, #071f18d6);
  }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 4.15rem); margin-block: 20px 18px; }
  .hero-description { max-width: 345px; }
  .hero-actions { gap: 4px 15px; margin-top: 20px; }
  .hero-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-caption { font-size: .8125rem; }
  .section-intro, .story-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-intro { margin-bottom: 22px; }
  main > section.system { padding-block: clamp(18px, 2.4svh, 28px); }
  .system .section-intro { gap: 10px; margin-bottom: 16px; }
  .system .section-intro h2 { margin-top: 10px; }
  .system .section-intro > p { font-size: .94rem; }
  .section-intro h2 { font-size: clamp(2.85rem, 11vw, 4.6rem); }
  .experience { border-radius: 12px; padding: 14px; }
  .experience-heading { align-items: start; flex-wrap: wrap; margin-bottom: 12px; gap: 8px; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .stage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-inline-end: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px; }
  .stage:first-child { grid-column: 1 / -1; }
  .stage { justify-content: center; text-align: center; padding-inline: 5px; font-size: .77rem; }
  .demo { --panel-padding: 10px; box-shadow: none; }
  .demo-panel.is-entering { animation: none; }
  .metrics { margin-top: 12px; }
  .metrics > div { padding: 8px; }
  .demo-panel td, .demo-panel th { padding-inline: 5px; }
  .story-copy { grid-row: 1; }
  main > section.story { padding-block: clamp(24px, 4svh, 50px); }
  .quality, .operation-layout, .operation-feature-reverse .operation-layout, .scale-list { grid-template-columns: minmax(0, 1fr); }
  .quality { gap: 18px; }
  .quality-copy { padding-block: 0; }
  .operation-feature-reverse .scene-photo { order: 0; }
  .dispatch-photo img { object-position: 60% center; }
  .site-footer { padding-block: 34px; }
  .footer-layout { align-items: start; flex-direction: column; }
}

@media (max-width: 650px) and (orientation: portrait) {
  .opening {
    --opening-depth: 20px;
    --photo-top: clamp(42px, 9svh, 78px);
    --photo-height: 66.1vw;
  }
  .opening-art {
    inset-block-end: auto;
    block-size: calc(var(--photo-top) + var(--photo-height) + var(--opening-depth));
    background-color: var(--ink);
    background-image: url('assets/sertao-mobile.webp');
    background-position: center bottom;
    background-size: auto var(--photo-height);
  }
  .opening-art::after {
    background: linear-gradient(180deg, var(--ink), var(--ink) calc(var(--photo-top) + var(--opening-depth)), transparent calc(var(--photo-top) + var(--opening-depth) + 50px), transparent 77%, var(--ink));
  }
  .opening-light {
    background: radial-gradient(ellipse 38% 19% at 21% 22%, #ffcb6952, transparent 100%);
  }
  .hero {
    gap: 17px;
    padding-block-start: max(90px, calc(var(--photo-top) + var(--photo-height) - 110px));
  }
  .hero h1 { margin-block: 18px 14px; }
}

@media (max-width: 360px) and (max-height: 690px) and (orientation: portrait) {
  .hero { gap: 12px; padding-block-start: max(86px, calc(var(--photo-top) + var(--photo-height) - 110px)); }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.45rem); }
  .hero-actions { column-gap: 10px; margin-top: 14px; }
  .hero-actions .button { gap: 10px; padding-inline: 10px; font-size: .77rem; }
  .hero-actions .text-link { font-size: .76rem; }
  .hero-actions .text-link span { margin-inline-start: 4px; }
  .hero-caption { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .reveal, .opening-art, .demo-panel.is-entering, :is(.story-photo, .scene-photo) img {
    animation: none;
    transform: none;
  }
  .opening-art { inset-block-start: 0; }
  .opening-light { animation-name: opening-light-soft; }
  .reveal.is-pending, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .button-cream:hover { transform: none; }
  :is(.story-photo, .scene-photo)::after {
    transform: none;
    animation-name: scene-light-soft;
    opacity: calc(.08 + .23 * var(--scene-progress, .5));
  }
}
@keyframes opening-light-soft {
  0% { opacity: .56; }
  42% { opacity: .74; }
  100% { opacity: .3; }
}
@keyframes scene-light-soft {
  0%, 100% { opacity: .08; }
  38% { opacity: .29; }
  62% { opacity: .14; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .site-header { min-height: 56px; }
  .hero { gap: 24px; padding-block: 22px 14px; }
  .hero h1 { font-size: clamp(2.5rem, 7vh + 1rem, 4.4rem); margin-block: 14px 12px; }
  .hero-description { font-size: 1rem; }
  .hero-actions { margin-top: 16px; }
  .hero-caption { padding-top: 10px; }
}

