/* Visual addendum: warm paper, diluted WisdomPSY blue, matte paper sculptures.
   All decorative layers ignore input. No layer sits above reading content. */
:root {
  --paper: #f7f7f2;
  --line: #d9dfdc;
  --motion-ease: cubic-bezier(.25, .1, .25, 1);
  --art-ink: #6d99b5;
  --art-light: #d7e7ed;
}
.site-header {
  background: rgba(249, 249, 245, .89);
  border-bottom-color: rgba(205, 215, 216, .5);
}
.site-footer { background: #eff2ed; border-top-color: var(--line); }
.menu-dialog, .menu-dialog::backdrop { background: #f4f5ef; }
.menu-body > p { color: #607c89; }
.menu-toggle span, .menu-close, .service-link, .desktop-nav a, .menu-body nav a {
  transition-timing-function: var(--motion-ease);
}
.detail-hero {
  background: radial-gradient(ellipse at 18% 50%, rgba(170, 203, 219, .24), transparent 67%), #f0f3ee;
}
.detail-orbit { border-color: rgba(155, 192, 210, .13); }
.scene-backdrop { background: var(--paper); }
.scene-backdrop canvas { transition: opacity 1.2s var(--motion-ease); }
.scene-backdrop.is-ready canvas { opacity: .26; }
.scene-backdrop:after {
  background: linear-gradient(90deg, rgba(247, 247, 242, .05), rgba(247, 247, 242, .15) 42%, rgba(247, 247, 242, .76) 64%, rgba(247, 247, 242, .61));
}
.scene-wash, .scene-backdrop.is-ready .scene-wash {
  opacity: 1;
  background: radial-gradient(ellipse at 18% 72%, rgba(166, 201, 220, .28), transparent 54%), #f7f7f2;
}
.scene-wash:before, .scene-wash:after { content: none; }
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.paper-grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
/* Native free scrolling avoids abrupt snap jumps interrupting the sculptural studies. */
html[data-page="home"] { scroll-snap-type: none; }
.story-inner { gap: clamp(55px, 9vw, 145px); }
.story-title { position: relative; }
/* Five material studies: one scale, a shared light source and quiet folded edges. */
.story-art {
  width: min(100%, 440px);
  margin: 26px 0 -12px;
  pointer-events: none;
}
.story-art svg { width: 100%; height: auto; overflow: visible; display: block; }
.story-art .sculpture-edge {
  stroke-width: .8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.story-art .ripple-layer { transform-origin: 220px 140px; }
.atmosphere-ready .story-art [data-step] {
  transition: opacity .7s var(--motion-ease), transform 1s var(--motion-ease);
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .story-panel .story-title,
  .motion-ready .story-panel .story-copy,
  .motion-ready .reveal {
    transition-duration: 1s;
    transition-timing-function: var(--motion-ease);
  }
  .motion-ready .story-panel .story-copy { transition-delay: .12s; }
  .motion-ready .story-panel:first-child .story-copy {
    animation: first-copy 1s var(--motion-ease) both;
  }
  @keyframes first-copy { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 767px) {
  .scene-backdrop.is-ready canvas { opacity: .16; }
  .scene-backdrop:after { background: linear-gradient(180deg, transparent, rgba(247,247,242,.4) 45%, rgba(247,247,242,.76)); }
  .story-inner { gap: 32px; padding-top: 113px; padding-bottom: 66px; }
  .story-art { width: min(280px, 100%); margin-top: 18px; margin-bottom: -4px; }

  .paper-grain { opacity: .025; }
}
@media (max-height: 650px) and (min-width: 768px) {
  .story-art { width: 300px; margin-top: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); }
  .paper-grain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-art [data-step] {
    transition: none !important;
  }
}
@media print { .atmosphere { display: none; } .story-art { max-width: 240px; } }
/* Paint the pigment once; the compositor handles its slow parallax movement. */
#atmosphere-field { position: absolute; inset: 0; }
.pigment-cloud { position: absolute; pointer-events: none; background: radial-gradient(ellipse, rgba(113,169,194,.13), rgba(139,184,205,.075) 45%, transparent 70%); }
.cloud-near { width: 90%; height: 120%; left: -26%; top: 10%; }
.cloud-far { width: 80%; height: 90%; left: 40%; top: 53%; }
.cloud-low { width: 75%; height: 90%; left: -20%; top: 60%; }
.water-lines { position: absolute; width: 55%; height: auto; left: -5%; bottom: 3%; opacity: 0; transition: opacity 1s var(--motion-ease); }
.water-lines ellipse { stroke: #8badbd; stroke-width: .8; vector-effect: non-scaling-stroke; }
.is-narrative .water-lines { opacity: .28; }
.ambient-mote { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #79a2b7; visibility: hidden; }
.ambient-mote:nth-of-type(3n) { width: 2px; height: 2px; }
.is-narrative .ambient-mote { visibility: visible; }
@media(max-width:767px) { .water-lines { width: 92%; left: -22%; bottom: 9%; } .ambient-mote:nth-of-type(n+12) { display: none; } }
