/* Home page only: full-screen tiles that snap on scroll. The healing story pins the schematic
   while five text tiles pass beside it; each tile sets how far the healing has progressed. */

:root { --head: 64px; }
html { scroll-snap-type: y proximity; scroll-padding-top: var(--head); }
@media (min-width: 861px) and (min-height: 640px) { html { scroll-snap-type: y mandatory; } }
.site-footer { scroll-snap-align: end; }

.tile { min-height: calc(100svh - var(--head)); scroll-snap-align: start; display: grid; align-content: center; padding-block: clamp(32px, 6vh, 72px); }
.tile--tint { background: var(--gel-soft); }
.tile--rule { border-top: 1px solid var(--line); }
.tile .section-head { margin-bottom: clamp(1rem, 3vh, 2rem); }
.tile .track { padding-block: clamp(0.9rem, 2.4vh, 1.8rem); }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.steps { min-width: 0; }
.step { min-height: calc(100svh - var(--head)); scroll-snap-align: start; display: grid; align-content: center; gap: 1.25rem; padding-block: 48px; opacity: 0.28; transition: opacity 0.5s ease; }
.step.is-active { opacity: 1; }
.step h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.03em; }
/* The first screen sits on a full-width mint band so the slogan stands out */
.step--hero { background: var(--gel-soft); box-shadow: 0 0 0 100vmax var(--gel-soft); clip-path: inset(0 -100vmax); }
.step--hero h1 { color: var(--hero-ink); }
.step--hero .btn--ghost { border-color: color-mix(in srgb, var(--gel) 45%, transparent); }
.cue { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-size: var(--step-small); margin-top: 0.5rem; }
.cue svg { width: 16px; height: 16px; animation: cue-nudge 1.8s ease-in-out infinite; }
@keyframes cue-nudge { 50% { transform: translateY(4px); } }

.pin { position: sticky; top: var(--head); height: calc(100svh - var(--head)); display: grid; align-content: center; gap: 0.75rem; min-width: 0; margin: 0; }
.pin canvas { display: block; width: 100%; height: min(62svh, 560px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.82rem; color: var(--ink-2); }
.key .k-ves { width: 16px; height: 3px; border-radius: 2px; background: #b3283c; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stage { font-size: 0.78rem; line-height: 1.3; color: var(--ink-2); }
.stage .prog { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.stage .prog b { display: block; height: 100%; width: 0; background: var(--gel); }
.stage.on { color: var(--ink); font-weight: 600; }
.concept { font-size: 0.78rem; color: var(--ink-2); }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .pin { order: -1; height: auto; z-index: 2; background: var(--paper); margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 8px; gap: 0.5rem; border-bottom: 1px solid var(--line); }
  .pin canvas { height: 34svh; }
  .story.at-hero .pin { background: var(--gel-soft); transition: background-color 0.4s ease; }
  .legend, .concept { display: none; }
  .steps { position: relative; z-index: 1; }
  .step { min-height: calc(100svh - var(--head) - 34svh - 84px); align-content: start; padding-block: 24px 40px; scroll-margin-top: calc(34svh + 84px); }
  .step h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); }
  .stage { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step { transition: none; }
  .cue svg { animation: none; }
}

/* People tile */
.people-tile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.people-tile > * { min-width: 0; }
.people-photo { margin: 0; display: grid; gap: 0.6rem; }
.people-photo img { width: 100%; height: min(70svh, 640px); object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.people-photo figcaption { font-size: var(--step-small); color: var(--ink-2); }
.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1.1rem; max-width: 620px; }
.face { all: unset; box-sizing: border-box; display: grid; gap: 0.2rem; cursor: pointer; width: 100%; border-radius: var(--radius); }
.face img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--gel-soft); margin-bottom: 0.45rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.face:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 38, 31, 0.14); }
.face:focus-visible { outline: 2px solid var(--gel); outline-offset: 4px; }
.face .name { font: 600 1.02rem/1.25 var(--font-display); color: var(--ink); }
.face .role { font-size: 0.85rem; line-height: 1.3; color: var(--gel-deep); font-weight: 500; }
.face .more { font-size: 0.8rem; color: var(--ink-2); margin-top: 0.15rem; }
@media (max-width: 860px) {
  .people-tile { grid-template-columns: 1fr; }
  .people-photo img { height: 46svh; }
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .face img { transition: none; } .face:hover img { transform: none; } }

/* Dressing: slider that opens the dressing layer by layer */
.peel { margin: 0; display: grid; gap: 0.9rem; }
.peel-stage { position: relative; aspect-ratio: 1404 / 1000; max-width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e3bca6; }
.peel-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peel-mark { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; box-sizing: border-box; border-radius: 50%; background: #0e4f3c; color: #ffffff; border: 2px solid #ffffff; font: 600 14px/26px var(--font-body); text-align: center; pointer-events: none; }
.peel-mark--wound { background: #c0706c; }
.peel-control { display: grid; gap: 0.25rem; }
.peel-control input[type="range"] { width: 100%; margin: 0; height: 32px; accent-color: var(--gel-deep); cursor: ew-resize; }
.peel-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); color: var(--ink-2); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.layers li { display: flex; gap: 0.8rem; align-items: flex-start; }
.layers li > span:last-child { display: grid; gap: 0.1rem; min-width: 0; }
.layers .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #0e4f3c; color: #ffffff; font: 600 13px/26px var(--font-body); text-align: center; margin-top: 1px; }
.layers .n--wound { background: #c0706c; }
.layers b { font: 600 1.05rem/1.3 var(--font-display); }
.layers li > span:last-child > span { font-size: 0.93rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 860px) { .layers li > span:last-child > span { font-size: 0.88rem; } }
.face-initials { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: var(--radius); background: var(--gel-soft); color: var(--gel-deep); font: 600 clamp(2rem, 1.4rem + 1.6vw, 2.8rem) var(--font-display); letter-spacing: -0.02em; margin-bottom: 0.45rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.face:hover .face-initials { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 38, 31, 0.14); }
@media (prefers-reduced-motion: reduce) { .face-initials { transition: none; } .face:hover .face-initials { transform: none; } }
