/* Leafstep · leafstep.deverdonces.com
   Papel kinari, tinta sumi y un solo acento bermellón. Mucho aire (ma). */

:root {
  --kinari: #f3eee3;
  --washi: #ebe3d3;
  --paper-deep: #e2d8c4;
  --sumi: #1d1b18;
  --sumi-soft: #4b463f;
  --mist: #8a847a;
  --line: rgba(29, 27, 24, 0.14);
  --beni: #c4442d;
  --beni-soft: #e0705a;
  --ai: #2f4a6a;
  --matcha: #7c8a52;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --wide: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kinari) url("/assets/art/washi.jpg") repeat;
  background-size: 640px;
  color: var(--sumi);
  font: 400 clamp(17px, 1.05vw + 12px, 20px) / 1.65 var(--serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* El papel washi se aclara un poco para que la tinta respire. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(249, 246, 239, 0.86), rgba(245, 241, 233, 0.74) 55%, rgba(236, 229, 215, 0.66));
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(196, 68, 45, 0.18); }
:focus-visible { outline: 2px solid var(--beni); outline-offset: 4px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--sumi); color: var(--kinari); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 18px;
  font: 600 12px / 1.4 var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--beni);
}
.kanji { font-family: var(--mincho); font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.top.is-scrolled { background: rgba(243, 238, 227, 0.82); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 var(--line); }
.top.is-dark { background: rgba(23, 21, 19, 0.78); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); color: #ece6da; }
.top.is-dark .nav a { color: rgba(236, 230, 218, 0.75); }
.top.is-dark .nav .lang { border-color: rgba(255, 255, 255, 0.2); }
.top.is-dark .brand-mark .ink { filter: invert(0.92); }
.top.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; letter-spacing: 0.01em; }
.brand-mark { position: relative; width: 34px; height: 34px; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-mark .ink { filter: brightness(0.12); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--sumi-soft); transition: color 0.3s; }
.nav a:hover { color: var(--sumi); }
.nav .lang { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font: 600 11px/1.6 var(--sans); letter-spacing: 0.12em; }
@media (max-width: 760px) { .nav .section-link { display: none; } }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(96px, 12vh, 130px) var(--gutter) clamp(40px, 6vh, 80px);
}
.hero-vertical {
  position: absolute; left: max(12px, calc(var(--gutter) / 3)); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 15px; letter-spacing: 0.6em; color: var(--mist); opacity: 0.8;
}
.hero-copy h1 {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: clamp(54px, 7.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero-copy h1 em { font-style: italic; color: var(--sumi-soft); }
.lede { max-width: 31em; margin: 0 0 38px; color: var(--sumi-soft); font-size: clamp(18px, 1.2vw + 12px, 22px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 14px;
  background: var(--sumi); color: var(--kinari);
  font: 500 15px/1.25 var(--sans); text-decoration: none;
  box-shadow: 0 10px 30px -14px rgba(29, 27, 24, 0.6);
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.7; letter-spacing: 0.04em; }
.quiet-link { display: inline-flex; gap: 10px; align-items: center; color: var(--sumi-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s, color 0.3s; }
.quiet-link:hover { color: var(--sumi); border-color: var(--sumi); }
.platforms { margin: 34px 0 0; font: 500 12px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }

/* El rollo colgante (kakejiku) que enmarca el jardín vivo. */
.scroll-wrap { display: grid; justify-items: center; gap: 22px; }
.kakejiku {
  position: relative;
  width: min(100%, 380px, calc((100svh - 300px) * 0.575 + 40px));
  min-width: 260px;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, #d8ccb4, #cbbd9f 50%, #d3c6ab);
  border-radius: 3px;
  box-shadow: 0 50px 80px -50px rgba(40, 30, 15, 0.55), 0 20px 40px -30px rgba(40, 30, 15, 0.5);
}
.kakejiku::before, .kakejiku::after { /* varillas de madera */
  content: ""; position: absolute; left: -16px; right: -16px; height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, #5b4635, #2f241b 70%, #4a3829);
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.45);
}
.kakejiku::before { top: -7px; }
.kakejiku::after { bottom: -7px; }
.hanger { position: absolute; left: 50%; top: -58px; width: 110px; height: 56px; transform: translateX(-50%); }
.hanger::before { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(60, 45, 30, 0.55); border-bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 2px; background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(60, 45, 30, 0.55) 50%, transparent calc(50% + 1px)), linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(60, 45, 30, 0.55) 50%, transparent calc(50% + 1px)); border: 0; }

.garden {
  position: relative; overflow: hidden;
  aspect-ratio: 1179 / 2050;
  border-radius: 1px;
  background: #cfd6dc;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.garden .sky { position: absolute; inset: 0; transition: background 1.2s linear; }
.garden .orb { position: absolute; width: 13%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); transition: opacity 1.2s, left 1.2s, top 1.2s; }
.garden .orb.sun { background: radial-gradient(circle, rgba(255, 246, 225, 0.95) 0 38%, rgba(255, 226, 170, 0.45) 46%, rgba(255, 210, 150, 0) 70%); }
.garden .orb.moon { width: 8%; background: radial-gradient(circle at 38% 40%, #f6f1e2 0 45%, #dcd5c4 62%, rgba(220, 213, 196, 0) 72%); box-shadow: 0 0 40px 10px rgba(220, 225, 255, 0.18); }
.garden .stars { position: absolute; inset: 0 0 50%; transition: opacity 1.5s; background-image:
  radial-gradient(1px 1px at 12% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 8%, #fff 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 58% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 6%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 88% 22%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 22% 28%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 46% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 68% 34%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 36%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 94% 12%, #fff 50%, transparent 51%); }
.garden .depth { position: absolute; inset: -3% -4%; will-change: transform; }
.garden .depth img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity 1.4s var(--ease); }
.garden .depth img.is-back { opacity: 0; }
.garden .lantern { mix-blend-mode: screen; }
.garden canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.garden .veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(20, 16, 12, 0.18)); }

/* Tarjeta del bloque, como en la pantalla Hoy. */
.block-card {
  position: absolute; left: 7%; right: 7%; bottom: 6%;
  padding: 16px 18px 15px; border-radius: 20px;
  background: rgba(246, 241, 231, 0.72);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 14px; color: var(--sumi);
}
.block-card .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(47, 74, 106, 0.1); color: var(--ai); font-size: 12px; }
.block-card .chip svg { width: 14px; height: 14px; }
.block-card .title { margin: 8px 0 8px; font-size: 22px; line-height: 1.15; }
.block-card .timer { display: flex; align-items: center; gap: 12px; }
.block-card .ring { width: 38px; height: 38px; transform: rotate(-90deg); }
.block-card .ring circle { fill: none; stroke-width: 3; }
.block-card .ring .track { stroke: rgba(29, 27, 24, 0.12); }
.block-card .ring .fill { stroke: var(--sumi-soft); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.block-card .count { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.block-card .until { display: block; margin-top: 2px; color: var(--mist); font-size: 12px; }

/* Control de la hora y la estación del jardín. */
.dial { width: min(100%, 440px); }
.dial-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--sumi-soft); }
.dial-head output { font-variant-numeric: tabular-nums; color: var(--sumi); }
.dial-now { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--beni); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196, 68, 45, 0.35); }
.dial-now[hidden] { display: none; }
.hours { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: grab; }
.hours:active { cursor: grabbing; }
.hours::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #1e2a4e, #c98a72 26%, #a9c9e0 50%, #f0c27a 76%, #1e2a4e); }
.hours::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #1e2a4e, #c98a72 26%, #a9c9e0 50%, #f0c27a 76%, #1e2a4e); }
.hours::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--kinari); border: 1.5px solid var(--sumi); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5); }
.hours::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--kinari); border: 1.5px solid var(--sumi); }
.hours-scale { display: flex; justify-content: space-between; margin-top: 2px; font: 500 10px/1 var(--sans); letter-spacing: 0.08em; color: var(--mist); }
.seasons { display: flex; justify-content: center; gap: 10px; margin: 10px 0 0; padding: 0; border: 0; }
.seasons legend { float: left; width: auto; margin: 0 8px 0 0; align-self: center; text-align: center; font-size: 13px; color: var(--mist); }
.seal { position: relative; }
.seal input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seal span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--sumi-soft); font: 20px/1 var(--mincho);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease-out), border-color 0.4s;
}
.seal input:checked + span { background: var(--beni); border-color: var(--beni); color: #fff6ee; transform: rotate(-3deg); box-shadow: 0 6px 14px -8px rgba(196, 68, 45, 0.9); }
.seal input:focus-visible + span { outline: 2px solid var(--beni); outline-offset: 3px; }
.seal:hover span { border-color: var(--sumi-soft); }

/* ---------- Secciones ---------- */
.section { position: relative; max-width: var(--wide); margin: 0 auto; padding: clamp(90px, 14vw, 180px) var(--gutter); }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { margin: 0 0 18px; color: var(--beni); font-size: 12px; }
.silence .section-head .eyebrow { color: var(--beni-soft); }
.section h2, .silence h2 { margin: 0 0 22px; font-weight: 400; font-size: clamp(38px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--sumi-soft); font-size: clamp(18px, 1vw + 13px, 21px); }
.big-kanji { position: absolute; z-index: -1; font: 400 clamp(180px, 26vw, 380px)/1 var(--mincho); color: rgba(29, 27, 24, 0.045); pointer-events: none; user-select: none; }

/* El sendero */
.path-scene { position: relative; margin-top: clamp(60px, 8vw, 100px); }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path-svg path { fill: none; stroke: rgba(29, 27, 24, 0.16); stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.stones { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; list-style: none; margin: 0; padding: 0; }
.stones li { display: grid; justify-items: center; text-align: center; gap: 14px; }
.stones li:nth-child(odd) { transform: translateY(-34px); }
.stones img { width: min(150px, 100%); filter: drop-shadow(0 16px 14px rgba(40, 30, 15, 0.22)); transition: transform 0.9s var(--ease-out); }
.stones .is-rock img { width: auto; height: 120px; }
.stones time { font: 500 12px/1 var(--sans); letter-spacing: 0.1em; color: var(--mist); }
.stones strong { display: block; font-weight: 400; font-size: 18px; line-height: 1.25; }
.stones small { display: block; margin-top: 4px; font-size: 13px; color: var(--mist); font-style: italic; }
.stones li.is-current strong { color: var(--beni); }
.stones li.is-current img { transform: translateY(-8px); }
.stone-wrap { position: relative; }
.stone-wrap .leaf { position: absolute; width: 34px; left: 58%; top: -6px; transform: rotate(18deg); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2)); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(80px, 10vw, 130px); }
.trio article { border-top: 1px solid var(--line); padding-top: 26px; }
.trio .kanji { display: block; margin-bottom: 14px; font-size: 38px; line-height: 1; color: var(--beni); }
.trio h3 { margin: 0 0 10px; font-weight: 400; font-size: 24px; }
.trio p { margin: 0; color: var(--sumi-soft); font-size: 17px; }

/* El ritual del paso */
.ritual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.ritual-copy p:not(.eyebrow) { color: var(--sumi-soft); }
.ritual-copy ol { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.ritual-copy li { position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--line); color: var(--sumi-soft); font-size: 17px; }
.ritual-copy li::before { counter-increment: step; content: counter(step, cjk-ideographic); position: absolute; left: 0; top: 12px; font: 22px/1.2 var(--mincho); color: var(--beni); }
.ritual-copy li strong { color: var(--sumi); font-weight: 400; }

.end-card {
  position: relative; overflow: hidden;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(30px, 4vw, 44px);
  border-radius: 28px; text-align: center;
  background: #efe8da;
  box-shadow: 0 50px 90px -60px rgba(40, 30, 15, 0.6), inset 0 0 0 1px rgba(29, 27, 24, 0.06);
  }
.end-card canvas.gravel { position: absolute; inset: 0; width: 100%; height: 100%; }
.end-card > *:not(canvas) { position: relative; }
.end-card .title { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; }
.end-card .ask { margin: 8px 0 28px; color: var(--sumi-soft); font-size: 22px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 auto 34px; max-width: 440px; }
.choices button {
  display: grid; justify-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 18px;
  border: 0; background: rgba(255, 252, 245, 0.6); color: var(--sumi); font: 400 16px/1.2 var(--serif); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(29, 27, 24, 0.06);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.choices button .kanji { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-size: 18px; background: rgba(196, 68, 45, 0.1); color: var(--beni); transition: inherit; }
.choices button:hover { transform: translateY(-2px); }
.choices button[aria-pressed="true"] { background: var(--sumi); color: var(--kinari); }
.choices button[aria-pressed="true"] .kanji { background: var(--beni); color: #fff6ee; }
.step-stone {
  position: relative; display: grid; place-items: center; width: 240px; height: 168px; margin: 0 auto;
  border: 0; background: none; padding: 0; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.step-stone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(40, 30, 15, 0.28)); transition: transform 0.5s var(--ease-out), filter 0.5s; pointer-events: none; }
.step-stone .label { position: relative; font: 400 21px/1 var(--serif); color: #f7f2e8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.3); pointer-events: none; transform: translateY(-6px); }
.step-stone svg { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; transform: translate(-50%, -54%) rotate(-90deg); pointer-events: none; overflow: visible; }
.step-stone svg circle { fill: none; stroke: var(--beni); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 760; stroke-dashoffset: 760; opacity: 0; transition: opacity 0.3s; }
.step-stone.is-holding img { transform: scale(0.965) translateY(4px); filter: drop-shadow(0 12px 10px rgba(40, 30, 15, 0.3)); }
.step-stone.is-holding svg circle { opacity: 1; }
.end-foot { display: grid; margin-top: 22px; }
.end-foot > * { grid-area: 1 / 1; }
.hold-hint { margin: 0; color: var(--mist); font-size: 15px; }
.next-up { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.end-card.is-done .next-up { opacity: 1; visibility: visible; transform: none; }
.end-card.is-done .hold-hint { visibility: hidden; }
.next-up .eyebrow { margin-bottom: 6px; color: var(--matcha); }
.next-up strong { display: block; font-weight: 400; font-size: 26px; }
.next-up button { margin-top: 14px; border: 0; background: none; color: var(--sumi-soft); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Los ocho jardines */
.places { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 100px); align-items: start; margin-top: clamp(50px, 7vw, 90px); }
.place-list { margin-top: 40px !important; }
.place-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.place-list button {
  width: 100%; display: grid; grid-template-columns: 34px 72px 1fr; align-items: center; gap: 14px;
  padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
  font: 400 19px/1.3 var(--serif); color: var(--sumi-soft); cursor: pointer; transition: color 0.3s, padding 0.5s var(--ease-out);
}
.place-list svg { width: 28px; height: 28px; }
.place-list .kanji { white-space: nowrap; font-size: 20px; letter-spacing: 0.06em; color: var(--mist); transition: color 0.3s; }
.place-list button:hover { color: var(--sumi); }
.place-list button[aria-selected="true"] { color: var(--sumi); padding-left: 14px; }
.place-list button[aria-selected="true"] .kanji { color: var(--beni); }
.place-view { display: grid; justify-items: center; gap: 22px; }
.frame {
  position: relative; width: min(100%, 380px); aspect-ratio: 600 / 1100; overflow: hidden;
  border-radius: 34px; background: var(--washi);
  box-shadow: 0 60px 90px -60px rgba(40, 30, 15, 0.65), 0 0 0 10px #fbf8f1, 0 0 0 11px rgba(29, 27, 24, 0.08);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity 1s var(--ease), transform 6s var(--ease); }
.frame img.is-leaving { opacity: 0; }
.frame:hover img { transform: scale(1.03); }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; color: #fbf8f1; background: linear-gradient(180deg, transparent, rgba(15, 12, 9, 0.6)); font-size: 15px; }
.frame figcaption .kanji { display: block; font-size: 26px; letter-spacing: 0.1em; }

/* En silencio */
.silence { color: #ece6da; background: #171513; }
.silence-inner { position: relative; max-width: var(--wide); margin: 0 auto; padding: clamp(110px, 15vw, 200px) var(--gutter); }
.silence .eyebrow { color: var(--beni-soft); }
.silence h2 { color: #f4efe5; }
.silence .section-head p { color: rgba(236, 230, 218, 0.7); }
.silence .big-kanji { color: rgba(255, 255, 255, 0.035); right: var(--gutter); top: 40px; }
.virtues { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 70px); margin-top: clamp(70px, 9vw, 120px); }
.virtues article { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 28px; }
.virtues .kanji { display: block; font-size: 54px; line-height: 1; color: #f4efe5; margin-bottom: 20px; }
.virtues h3 { margin: 0 0 10px; font-weight: 400; font-size: 24px; color: #f4efe5; }
.virtues p { margin: 0; color: rgba(236, 230, 218, 0.68); font-size: 17px; }
.standby { margin: clamp(80px, 10vw, 130px) auto 0; max-width: 820px; }
.standby img { width: 100%; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -40px #000; }
.standby figcaption { margin-top: 18px; text-align: center; color: rgba(236, 230, 218, 0.55); font-size: 15px; font-style: italic; }

/* En todos tus aparatos */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(50px, 7vw, 90px); }
.device { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 34px 30px 30px; border-radius: 28px; background: rgba(251, 248, 241, 0.6); box-shadow: inset 0 0 0 1px rgba(29, 27, 24, 0.06); }
.device h3 { margin: 0; font-weight: 400; font-size: 26px; }
.device p { margin: 0; color: var(--sumi-soft); font-size: 17px; }
.device ul { margin: 0; padding: 0; list-style: none; color: var(--sumi-soft); font-size: 16px; }
.device li { padding: 9px 0; border-top: 1px solid var(--line); }
.device .watch-row { display: flex; gap: 10px; margin-top: auto; }
.device .watch-row img { width: calc((100% - 20px) / 3); border-radius: 18px; background: #000; }
.mac-veil { margin-top: auto; position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #2b2724, #171513); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); display: grid; place-items: center; text-align: center; color: #efe8da; }
.mac-veil::before { content: ""; position: absolute; inset: 0 0 auto; height: 7%; background: rgba(255, 255, 255, 0.06); }
.mac-veil .kanji { display: block; font-size: 34px; color: var(--beni-soft); }
.mac-veil small { display: block; margin-top: 6px; font-size: 13px; opacity: 0.7; }
.island { margin-top: auto; display: grid; gap: 12px; }
.island .pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 16px 0 10px; border-radius: 999px; background: #000; color: #efe8da; font: 500 15px/1 var(--sans); }
.island .pill .seal-mini { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--beni); color: #fff6ee; font: 15px/1 var(--mincho); }
.island .pill .left { display: flex; align-items: center; gap: 10px; }
.island .pill.is-end { color: var(--beni-soft); }
.island .pill time { font-variant-numeric: tabular-nums; }

/* Cierre */
.closing { position: relative; text-align: center; padding: clamp(110px, 16vw, 220px) var(--gutter) clamp(90px, 12vw, 150px); }
.closing-enso { position: relative; width: min(66vw, 360px); aspect-ratio: 1; margin: 0 auto 40px; }
.closing-enso img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-enso .brush { -webkit-mask: conic-gradient(from -30deg, #000 var(--sweep, 360deg), transparent 0); mask: conic-gradient(from -30deg, #000 var(--sweep, 360deg), transparent 0); }
.closing-enso .leaf { inset: 30%; width: 40%; height: 40%; transform: rotate(-8deg); filter: drop-shadow(0 10px 10px rgba(120, 30, 10, 0.25)); }
.closing h2 { margin: 0 0 18px; font-weight: 400; font-size: clamp(42px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.02em; }
.closing p { max-width: 34em; margin: 0 auto 34px; color: var(--sumi-soft); }

.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--wide); margin: 0 auto; padding: 40px var(--gutter) 50px; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; font-size: 15px; color: var(--mist); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { text-decoration: none; color: var(--sumi-soft); }
.foot a:hover { color: var(--sumi); }

/* Páginas de texto (privacidad, soporte) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(140px, 18vh, 190px) var(--gutter) clamp(80px, 10vw, 140px); }
.doc h1 { margin: 0 0 18px; font-weight: 400; font-size: clamp(42px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.02em; }
.doc .updated { margin: 0 0 46px; color: var(--mist); font-size: 15px; }
.doc h2 { margin: 54px 0 12px; font-weight: 400; font-size: 27px; }
.doc p:not(.eyebrow), .doc li { color: var(--sumi-soft); }
.doc ul { padding-left: 1.1em; }
.doc li { margin: 6px 0; }
.doc details { border-top: 1px solid var(--line); padding: 16px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--beni); font-family: var(--sans); transition: transform 0.4s var(--ease); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin: 12px 0 4px; }
.doc .mail { display: inline-block; margin-top: 8px; font-size: clamp(22px, 3vw, 30px); color: var(--sumi); text-decoration: none; border-bottom: 1px solid var(--beni); }
.lost { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 120px var(--gutter); }
.lost .kanji { font-size: 120px; line-height: 1; color: rgba(29, 27, 24, 0.12); }
.lost h1 { font-weight: 400; font-size: clamp(36px, 5vw, 56px); margin: 10px 0; }

/* Entradas suaves al leer */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Adaptación ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 120px; }
  .hero-vertical { display: none; }
  .scroll-wrap { margin-top: 40px; }
  .ritual, .places { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .place-view { order: -1; }
}
@media (max-width: 760px) {
  .stones { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding: 40px 4px 10px; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .stones::-webkit-scrollbar { display: none; }
  .stones li { scroll-snap-align: center; }
  .path-svg { display: none; }
  .trio, .virtues { grid-template-columns: 1fr; }
  .end-card { min-height: 0; border-radius: 22px; }
  .step-stone { width: 200px; height: 140px; }
  .step-stone svg { width: 240px; height: 240px; }
  .place-list button { grid-template-columns: 28px 64px 1fr; font-size: 17px; padding: 12px 2px; }
}
@media (max-width: 380px) {
  .choices button { font-size: 14px; }
  .kakejiku { padding: 16px 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --sumi-soft: #2b2824; --mist: #5a554d; --line: rgba(29, 27, 24, 0.35); }
}
