/* website_approved.html only — layered over site.css and hero-v4.css, which the draft pages share. */

/* ---------- Hero: the screen lights the room ---------- */

/* The warm mint haze gives way to a low olive floor; the photo itself supplies the colour. */
.hero--v4::before {
  top: 70%;
  background: radial-gradient(closest-side, rgba(120, 150, 60, 0.12), rgba(120, 150, 60, 0.03) 60%, transparent);
}

/* A blurred, saturated copy of the screen, spilling light around the laptop.
   Brightens as the bracket folds in (--c from js/hero-v4.js). */
.v4-glow {
  position: absolute; z-index: -1;
  left: 50%; top: 54%;
  width: calc(var(--dw) * 1.55);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  background: url("../assets/coccinella-glow.webp") center / cover no-repeat;
  filter: blur(calc(var(--dw) * 0.08)) saturate(1.05);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
  mask-image: radial-gradient(closest-side, #000 35%, transparent);
  opacity: calc(0.42 + 0.3 * var(--c));
  pointer-events: none;
  animation: v4-glow-in 1.6s ease-out 0.2s backwards;
}
@keyframes v4-glow-in { from { opacity: 0; } }

/* ---------- Hero: the bracket ---------- */

/* The frames are graded dark at the edges already; keep the depth falloff gentle so they stay legible. */
.v4-frame {
  filter: brightness(calc(1.04 - 0.1 * var(--d)));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.6);
}
.v4-frame__tag {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .v4-frame { filter: brightness(calc(1.12 - 0.1 * var(--d))); }
  .v4-glow { width: calc(var(--dw) * 1.3); }
}

/* ---------- Sections: bigger type, each lit from its own side ---------- */

/* The section glows reach past the content column; clip them at the screen edge, never scroll. */
.page--home { overflow-x: clip; }

.band, .cta { position: relative; isolation: isolate; }

.band::before, .cta::before {
  content: ""; position: absolute; z-index: -1;
  pointer-events: none;
}
/* Workflow: mint from the upper left. */
#workflow::before {
  left: -20%; top: -10%;
  width: 90%; aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(89, 214, 160, 0.10), transparent);
}
/* Methods: the ladybird's red from the right. */
.band--methods::before {
  right: -25%; top: 5%;
  width: 85%; aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(214, 72, 48, 0.09), transparent);
}
/* Closing call: the hero's light again, low and wide. */
.cta::before {
  left: 50%; top: 50%;
  width: min(1100px, 120vw); aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  background: url("../assets/coccinella-glow.webp") center / cover no-repeat;
  filter: blur(80px) saturate(1.2);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
  opacity: 0.35;
}

.band__header { max-width: 860px; gap: 16px; margin-bottom: clamp(40px, 5vw, 56px); }
.band h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #aab5b0);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.band .hud-label { color: var(--accent); }

/* Cards: a lit top edge and a faint vertical gradient, so they read as glass rather than holes. */
.step a, .method {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.step a { padding: 28px 24px; gap: 14px; }
.step a:hover { background: linear-gradient(180deg, rgba(89, 214, 160, 0.09), rgba(89, 214, 160, 0.015)); }
.step__index { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--font); opacity: 0.9; }
.step h3 { font-size: 24px; }
.method { padding: 28px 24px; }
.method p:nth-child(2) { color: var(--text); opacity: 0.72; }

.spec-strip strong {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}
.spec-strip div { padding: 36px 24px; }

.cta h2 {
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 25%, #b9c4bf 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.cta p { font-size: clamp(17px, 1.6vw, 20px); }

@media (prefers-reduced-motion: reduce) {
  .v4-glow { animation: none; }
}
