/* Layout: a dark nave. The rose window is the ground of the welcome, with the products listed on
   frosted glass as in Ciquilize Photo's welcome window; one panel of glass lights each chapter below. */
:root {
  --nave: #0b0909;
  --stone: #110e0d;
  --cream: #f5e6de;
  --pick: #ede1a8;
  --text: #ebe2dc;
  --muted: #b3a8a1;
  --faint: #91877f;
  --hairline: rgba(245, 230, 222, 0.1);

  --pos: #ef5a4b;
  --pos-rgb: 214, 46, 36;
  --pos-button: #c9271c;
  --photo: #e2bb6f;
  --photo-rgb: 214, 160, 70;
  --photo-button: #d4a85c;
  --agro: #4fbd72;
  --agro-rgb: 40, 150, 80;
  --agro-button: #0d7a1f;

  --font-brand: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-app: "Poppins", system-ui, sans-serif;

  --gutter: max(16px, min(5vw, 64px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  scrollbar-color: #3a302c var(--nave);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--nave);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 168, 92, 0.38);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--pick);
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.skip {
  position: absolute;
  z-index: 10;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -64px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--nave);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: calc(16px + env(safe-area-inset-top, 0px));
}

/* ---------- Hero: the rose window ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 94svh, 940px);
  overflow: hidden;
  background: var(--nave);
}

.glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 160px), transparent);
}

/* Dimmed: the glass sets the mood, the list on it is what is read. The eye in the middle is glass too. */
.rose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.rose .glass-dim {
  opacity: 0.58;
  transition: opacity 0.7s var(--ease-out);
}

.rose .pane {
  animation: pane-in 520ms ease-out both;
}
.rose .family {
  transition:
    opacity 0.6s var(--ease-out),
    filter 0.6s var(--ease-out);
}

/* Choosing a product lights its glass and lets the rest fall back into the dark. */
[data-lit] .rose .glass-dim {
  opacity: 0.7;
}
[data-lit] .rose .family {
  opacity: 0.32;
}
[data-lit="pos"] .rose [data-family="pos"],
[data-lit="photo"] .rose [data-family="photo"],
[data-lit="agro"] .rose [data-family="agro"] {
  opacity: 1;
  filter: brightness(1.8) saturate(1.15);
}

.glow {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.glow-all {
  opacity: 1;
  background: radial-gradient(circle at var(--hx, 74%) var(--hy, 70%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) calc(var(--hr, 260px) * 1.3), transparent calc(var(--hr, 260px) * 2.4));
  animation: glow-breathe 3.6s ease-in-out 1s infinite alternate both;
}
.glow-pos {
  background: radial-gradient(circle at var(--hx, 74%) var(--hy, 70%), rgba(var(--pos-rgb), 0.34), transparent calc(var(--hr, 260px) * 2.6));
}
.glow-photo {
  background: radial-gradient(circle at var(--hx, 74%) var(--hy, 70%), rgba(var(--photo-rgb), 0.3), transparent calc(var(--hr, 260px) * 2.6));
}
.glow-agro {
  background: radial-gradient(circle at var(--hx, 74%) var(--hy, 70%), rgba(var(--agro-rgb), 0.32), transparent calc(var(--hr, 260px) * 2.6));
}
[data-lit="pos"] .glow-pos,
[data-lit="photo"] .glow-photo,
[data-lit="agro"] .glow-agro {
  opacity: 1;
}

/* A band of light passes now and then. */
.sweep {
  position: absolute;
  top: -80px;
  bottom: -80px;
  left: 0;
  width: 200px;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  animation: glass-sweep 9s ease-in-out 1.6s infinite both;
  will-change: transform;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 9, 0.94) 0%, rgba(11, 9, 9, 0.72) 30%, rgba(11, 9, 9, 0.18) 52%, rgba(11, 9, 9, 0) 62%),
    radial-gradient(120% 110% at var(--hx, 74%) var(--hy, 70%), transparent 36%, rgba(7, 5, 5, 0.8));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: clamp(56px, 10vh, 120px);
}

.brand {
  max-width: 620px;
  padding-top: clamp(0px, 4vh, 40px);
}

/* The wordmark: lowercase Comfortaa Bold, as Photo's `ciqui`. Its three i-dots are the three
   products; each takes its glass colour when the product is chosen. */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.wordmark .i {
  position: relative;
  display: inline-block;
}
.wordmark .i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--dot-top, 0.05em);
  width: 0.135em;
  height: 0.135em;
  margin-left: -0.0675em;
  border-radius: 50%;
  background: var(--pick);
  transition:
    background-color 0.5s var(--ease-out),
    scale 0.5s var(--ease-out);
  animation: dot-drop 0.9s var(--ease-out) both;
}
.wordmark [data-dot="pos"]::after {
  animation-delay: 1.05s;
}
.wordmark [data-dot="photo"]::after {
  animation-delay: 1.2s;
}
.wordmark [data-dot="agro"]::after {
  animation-delay: 1.35s;
}
[data-lit="pos"] .wordmark [data-dot="pos"]::after {
  background: var(--pos);
  scale: 1.18;
}
[data-lit="photo"] .wordmark [data-dot="photo"]::after {
  background: var(--photo);
  scale: 1.18;
}
[data-lit="agro"] .wordmark [data-dot="agro"]::after {
  background: var(--agro);
  scale: 1.18;
}

.tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.thesis {
  margin-top: clamp(32px, 6vh, 56px);
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}

.sub {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

/* The list on frosted glass, as the recent projects in Photo's welcome window. */
.selector {
  margin-top: clamp(0px, 4vh, 48px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(17, 14, 13, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 56px -16px rgba(0, 0, 0, 0.7);
}

.selector-title {
  padding: 14px 18px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.selector ul {
  display: grid;
  gap: 2px;
  padding: 0 6px 8px;
}

.row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.row:hover,
.row:focus-visible {
  background: rgba(255, 255, 255, 0.075);
}
.row:focus-visible {
  outline-offset: -2px;
}

/* Each product's square of glass; it brightens with its glass in the window. */
.mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
  transition: filter 0.4s var(--ease-out);
}
.row:hover .mark,
.row:focus-visible .mark {
  filter: brightness(1.15) saturate(1.1);
}

.row-text {
  display: grid;
  min-width: 0;
}
.row-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
}
.row-name b {
  font-weight: 600;
}
[data-product="pos"] .row-name b {
  color: var(--pos);
}
[data-product="photo"] .row-name b {
  color: var(--photo);
}
[data-product="agro"] .row-name b {
  color: var(--agro);
}
.row-meta {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(var(--agro-rgb), 0.18);
  color: var(--agro);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 2px;
}

kbd,
.row-key {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}

.selector-foot {
  padding: 11px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 9, 9, 0.55);
  font-size: 12px;
  color: var(--muted);
}
.selector-foot kbd {
  min-width: 20px;
  height: 20px;
  margin-inline: 1px;
  font-size: 11px;
}
.hint-touch {
  display: none;
}
@media (hover: none), (pointer: coarse) {
  .row-key,
  .hint-keys {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}

/* ---------- Chapters: one panel of glass each ---------- */

.chapter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nave);
}
/* The panel's light falls on the stone. */
.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 60% at var(--pool-x, 18%) 42%, rgba(var(--hue), 0.22), transparent 72%);
  opacity: 0.5;
  transition: opacity 1.4s var(--ease-out);
}
.chapter.is-lit::before {
  opacity: 1;
}
.chapter + .chapter {
  border-top: 1px solid var(--hairline);
}
.chapter-pos {
  --hue: var(--pos-rgb);
  --accent: var(--pos);
  --button: var(--pos-button);
  --button-ink: #fff;
}
.chapter-photo {
  --hue: var(--photo-rgb);
  --accent: var(--photo);
  --button: var(--photo-button);
  --button-ink: #1d1407;
  --pool-x: 82%;
}
.chapter-agro {
  --hue: var(--agro-rgb);
  --accent: var(--agro);
  --button: var(--agro-button);
  --button-ink: #fff;
}

.chapter-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 440px) minmax(0, 1fr);
  grid-template-areas:
    "panel copy screens"
    ".      film film";
  gap: clamp(32px, 4.4vw, 72px);
  align-items: start;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: clamp(88px, 11vw, 160px);
}
.chapter-photo .chapter-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px) 120px;
  grid-template-areas:
    "screens copy panel"
    "film    film .";
}

/* Each chapter's panel of glass, cut its product's way. It drifts slower than the page and its
   glass slides the other way inside the frame (site.js sets --drift). */
.glass-panel {
  grid-area: panel;
  position: relative;
  width: 120px;
  height: auto;
  margin-top: 8px;
  border-radius: 12% / 9%;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.8);
  opacity: 0.6;
  filter: brightness(0.8) saturate(0.85);
  transform: translateY(var(--drift, 0px));
  will-change: transform;
  transition:
    opacity 1.4s var(--ease-out),
    filter 1.4s var(--ease-out);
}
.chapter.is-lit .glass-panel {
  opacity: 1;
  filter: none;
}
.glass-panel .tile-glass,
.close-trio .tile-glass {
  transform: translateY(calc(var(--drift, 0px) * -0.6));
}

.copy {
  grid-area: copy;
  min-width: 0;
}

.chapter h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--muted);
  text-wrap: balance;
}
.chapter h2 span {
  color: var(--accent);
}

.lead {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--cream);
  text-wrap: pretty;
}

/* Pos: an order's real path, so the steps are numbered. */
.flow {
  counter-reset: step;
  display: grid;
  margin-top: 36px;
}
.flow li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 44px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.flow li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: rgba(var(--hue), 0.45);
}
.flow strong,
.facts dt {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
}

.facts {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.facts dd {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.note {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(var(--hue), 0.1);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.facts + .note {
  margin-top: 28px;
}
.note strong {
  display: block;
  font-weight: 600;
  color: var(--cream);
}
.perks {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.perks li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.perks b {
  font-weight: 600;
  color: var(--cream);
}

.where {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.65;
  color: var(--faint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    filter 0.15s ease,
    translate 0.1s ease;
}
.button:hover {
  filter: brightness(1.1);
}
.button:active {
  translate: 0 1px;
}
.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(245, 230, 222, 0.35);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.15s ease;
}
.text-link:hover {
  text-decoration-color: var(--cream);
}

/* A short note on what the visitor needs before the app opens fully (an account, a code). */
.status {
  flex-basis: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.status .text-link {
  font-size: inherit;
}

/* ---------- Screens ---------- */

.screens {
  grid-area: screens;
  position: relative;
  min-width: 0;
  padding-top: 8px;
}
.screens figcaption {
  margin-top: 18px;
  font-size: 12px;
  color: var(--faint);
}

.tablet {
  padding: 12px;
  border-radius: 28px;
  background: #0a0908;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 48px 90px -36px rgba(0, 0, 0, 0.85);
}
.tablet img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ticket {
  position: absolute;
  left: -7%;
  bottom: 6%;
  width: 40%;
  height: auto;
  border-radius: 4px;
  rotate: -4deg;
  box-shadow: 0 26px 44px -18px rgba(0, 0, 0, 0.75);
}
.chapter-pos figcaption {
  text-align: right;
}

.window {
  overflow: hidden;
  border-radius: 12px;
  background: #1e1e1e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 48px 90px -36px rgba(0, 0, 0, 0.9);
}
.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 30px;
  padding-left: 13px;
  background: #2a2a2a;
  border-bottom: 1px solid #0d0d0d;
}
.window-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window img {
  width: 100%;
  height: auto;
}

@media (min-width: 1101px) {
  /* The screen stays beside the words while they are read. */
  .screens {
    position: sticky;
    top: 12vh;
  }
}

/* The promo film made from the app, below the screen and the words. */
.film {
  grid-area: film;
  min-width: 0;
  margin-top: clamp(40px, 5vw, 80px);
}
.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 48px 90px -36px rgba(0, 0, 0, 0.85);
}
.film figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Agro: a redrawn phone screen (example data) ---------- */

.chapter-agro .screens {
  display: grid;
  justify-items: center;
}
.phone {
  width: min(100%, 340px);
  padding: 11px;
  border-radius: 48px;
  background: #0a0908;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 48px 90px -36px rgba(0, 0, 0, 0.85);
}
.agro-app {
  overflow: hidden;
  border-radius: 38px;
  background: #eef0ec;
  color: #1b1d1a;
  font-family: var(--font-app);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.agro-app b {
  font-weight: 600;
}
.agro-app small {
  display: block;
  font-size: 11px;
  color: #5d6259;
}
.agro-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 44px 18px 14px;
  font-size: 17px;
  font-weight: 600;
}
.agro-back {
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border-left: 2px solid #1b1d1a;
  border-bottom: 2px solid #1b1d1a;
  rotate: 45deg;
}
.agro-count {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  color: #5d6259;
}
.agro-card {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #e7e9e5;
  background: #fff;
}
.agro-seller {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e9e5;
}
.agro-store {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6f3e8;
  color: #0a5c1a;
  font-weight: 600;
}
.agro-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
}
.agro-thumb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e6f3e8;
  color: #087a17;
}
.agro-thumb svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agro-item-text {
  min-width: 0;
}
.agro-qty {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #5d6259;
}
.agro-qty b {
  color: #1b1d1a;
  white-space: nowrap;
}
.agro-line {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e7e9e5;
  color: #5d6259;
}
.agro-ok {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #087a17;
}
.agro-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f3e8;
  color: #0a5c1a;
  font-size: 11px;
  font-weight: 500;
}
.agro-card.is-out .agro-item-text b,
.agro-card.is-out .agro-qty b {
  color: #5d6259;
}
.agro-warn {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fbf1d3;
  color: #6b4500;
  font-size: 11px;
}
.agro-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 16px 24px;
  border-top: 1px solid #e7e9e5;
  background: #fff;
}
.agro-total b {
  font-size: 15px;
  white-space: nowrap;
}
.agro-cta {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #198030, #06601a);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Close: the three panels together, and who to ask ---------- */

.close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  background: var(--nave);
}
.close::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(28% 50% at 38% 30%, rgba(var(--pos-rgb), 0.12), transparent 70%),
    radial-gradient(28% 50% at 50% 34%, rgba(var(--photo-rgb), 0.12), transparent 70%),
    radial-gradient(28% 50% at 62% 30%, rgba(var(--agro-rgb), 0.12), transparent 70%);
}
.close-inner {
  display: grid;
  justify-items: center;
  max-width: 720px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: clamp(88px, 11vw, 150px) clamp(64px, 8vw, 104px);
  text-align: center;
}
.close-trio {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}
.close-trio svg {
  width: 52px;
  height: auto;
  border-radius: 17.6% / 13.5%;
  box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.8);
  transform: translateY(var(--drift, 0px));
}
.close h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-wrap: balance;
}
.close-inner > p {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.button-cream {
  --button: var(--cream);
  --button-ink: #1a1412;
}
.handle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 8px 0 20px;
  border: 1px solid rgba(245, 230, 222, 0.18);
  border-radius: 12px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.handle:hover {
  border-color: rgba(245, 230, 222, 0.4);
}
.handle #handle-text {
  user-select: all;
}
.handle-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 230, 222, 0.08);
  font-size: 13px;
  color: var(--muted);
}
.handle-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Motion ---------- */

@keyframes pane-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes glow-breathe {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 0.4;
  }
}
@keyframes glass-sweep {
  0% {
    transform: translateX(-260px) skewX(-18deg);
  }
  45%,
  100% {
    transform: translateX(calc(100vw + 260px)) skewX(-18deg);
  }
}
@keyframes dot-drop {
  from {
    opacity: 0;
    translate: 0 -0.7em;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .rose .pane,
  .glow-all,
  .wordmark .i::after {
    animation: none;
  }
  .sweep {
    display: none;
  }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  /* One column: the heading and lead, then the real screen, then the details and the action.
     The panel of glass stands beside the heading. */
  .chapter-inner,
  .chapter-photo .chapter-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-block: clamp(72px, 10vw, 120px) clamp(80px, 10vw, 128px);
  }
  .copy {
    display: contents;
  }
  .copy > * {
    order: 4;
    width: 100%;
    max-width: 620px;
  }
  .chapter h2 {
    order: 1;
  }
  .lead {
    order: 2;
  }
  .screens {
    order: 3;
    margin-block: 44px 8px;
  }
  .film {
    order: 5;
    width: 100%;
    margin-top: 48px;
  }
  .glass-panel {
    position: absolute;
    top: clamp(72px, 10vw, 120px);
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    width: 72px;
    margin-top: 0;
  }
  .chapter h2,
  .lead {
    padding-right: 96px;
  }
  .ticket {
    left: 0;
    bottom: 10%;
    width: 38%;
  }
}

@media (max-width: 1023px) {
  .hero {
    align-items: stretch;
    min-height: 0;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: clamp(48px, 9vw, 80px) clamp(40px, 8vw, 72px);
  }
  .brand {
    padding-top: 0;
  }
  /* Room between the words and the list, where the rose shows. */
  .selector {
    width: min(100%, 520px);
    margin-top: clamp(150px, 42vw, 300px);
  }
  .vignette {
    background:
      linear-gradient(180deg, rgba(11, 9, 9, 0.94) 0%, rgba(11, 9, 9, 0.78) 34%, rgba(11, 9, 9, 0.1) 54%, rgba(11, 9, 9, 0) 62%),
      radial-gradient(120% 90% at var(--hx, 75%) var(--hy, 55%), transparent 34%, rgba(7, 5, 5, 0.8));
  }
}

@media (max-width: 760px) {
  .glass-panel {
    width: 52px;
  }
  .chapter h2,
  .lead {
    padding-right: 62px;
  }
  .ticket {
    bottom: 12%;
    width: 46%;
  }
  .phone {
    width: min(100%, 320px);
  }
  .actions .button {
    flex: 1 1 auto;
  }
  .foot {
    justify-content: center;
    text-align: center;
  }
}
