/* Remansia — remansia.app.
   Like the game, the palette follows the visitor's time of day (data-phase on
   <html>); without JavaScript the page stays in daylight. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
}

:root,
:root[data-phase='day'] {
  --bg: #f5eee4;
  --bg-2: #e8f1ec;
  --ink: #21433d;
  --soft: #4c6e68;
  --faint: #86a09b;
  --line: rgba(33, 67, 61, 0.12);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(250, 247, 241, 0.78);
  --em: #2f8a7d;
  --accent: #d9442b;
  --pool-1: #9ed2c1;
  --pool-2: #2f6f6a;
  --shadow: rgba(24, 58, 52, 0.22);
  --cta-1: #f4e3d3;
  --cta-2: #d7e9e3;
}

:root[data-phase='dawn'] {
  --bg: #f6ece9;
  --bg-2: #ece5f0;
  --ink: #3f3852;
  --soft: #665c78;
  --faint: #9a90a8;
  --line: rgba(63, 56, 82, 0.12);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(250, 244, 243, 0.8);
  --em: #b0617a;
  --pool-1: #b9d8d2;
  --pool-2: #557f8c;
  --shadow: rgba(60, 40, 70, 0.2);
  --cta-1: #f7dccf;
  --cta-2: #e2dcee;
}

:root[data-phase='dusk'] {
  --bg: #f2e3d7;
  --bg-2: #eadbe5;
  --ink: #3a2943;
  --soft: #604a69;
  --faint: #8f7a95;
  --line: rgba(58, 41, 67, 0.13);
  --glass: rgba(255, 248, 242, 0.5);
  --glass-strong: rgba(246, 232, 222, 0.82);
  --em: #b05a3c;
  --pool-1: #d9b893;
  --pool-2: #3e5d6c;
  --shadow: rgba(50, 25, 50, 0.24);
  --cta-1: #f3c49c;
  --cta-2: #b9a3c9;
}

:root[data-phase='night'] {
  --bg: #0f1a2e;
  --bg-2: #13223b;
  --ink: #e6eef5;
  --soft: #b4c3d3;
  --faint: #7b8ea7;
  --line: rgba(230, 238, 245, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(15, 26, 46, 0.82);
  --em: #8fd0c4;
  --accent: #f08a6e;
  --pool-1: #2f5670;
  --pool-2: #0d1d31;
  --shadow: rgba(0, 0, 0, 0.45);
  --cta-1: #15253f;
  --cta-2: #2a2447;
}

:root {
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(18px, 4.5vw, 44px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 em,
h3 em {
  font-style: italic;
  color: var(--em);
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--em);
  margin-bottom: 18px;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(44px, 7vw, 88px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--soft);
  max-width: 54ch;
}

.center .section-lead {
  margin-inline: auto;
}

section {
  position: relative;
}

/* Reveal as you scroll (only when the script can bring things back). */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease),
    filter 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}

html.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Header */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
  transition:
    background 0.6s var(--ease),
    color 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.top.scrolled {
  background: var(--glass-strong);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
}

.nav a,
.lang {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav a:hover,
.lang:hover {
  opacity: 1;
}

.lang {
  font-size: 0.9rem;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }
}

/* Hero: the living pond */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #2f6f6a;
  isolation: isolate;
}

:root[data-phase='night'] .hero {
  background: #0d1d31;
}

.pond {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 18% 78%, rgba(6, 28, 30, 0.42), transparent 70%),
    linear-gradient(to top, rgba(6, 28, 30, 0.38), transparent 45%),
    linear-gradient(to bottom, rgba(6, 28, 30, 0.28), transparent 18%);
}

.hero-inner {
  position: relative;
  pointer-events: none;
  padding-top: 120px;
  padding-bottom: clamp(96px, 14vh, 150px);
}

.hero-inner a,
.hero-inner button {
  pointer-events: auto;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  animation: rise 1.6s var(--ease) 0.2s both;
}

.hero h1 {
  font-size: clamp(4.6rem, 16vw, 12rem);
  line-height: 0.84;
  letter-spacing: -0.025em;
  margin-left: -0.04em;
  text-shadow: 0 2px 40px rgba(0, 25, 30, 0.35);
  animation: emerge 2.4s var(--ease) 0.1s both;
}

.hero .lead {
  margin-top: 26px;
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 18px rgba(0, 25, 30, 0.35);
  animation: rise 1.6s var(--ease) 0.6s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
  animation: rise 1.6s var(--ease) 0.9s both;
}

@keyframes emerge {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(24px);
    letter-spacing: 0.06em;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(16px);
  }
}

/* Listen button and store pills */

.listen {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background 0.4s,
    transform 0.4s var(--ease);
}

.listen:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.bars i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  transition: height 0.4s;
}

.bars i:nth-child(2),
.bars i:nth-child(3) {
  height: 11px;
}

.listening .bars i {
  animation: breathe-bar 2.4s ease-in-out infinite;
}

.listening .bars i:nth-child(2) {
  animation-delay: -0.6s;
}

.listening .bars i:nth-child(3) {
  animation-delay: -1.2s;
}

.listening .bars i:nth-child(4) {
  animation-delay: -1.8s;
}

@keyframes breathe-bar {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 18px;
  }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  padding: 9px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 500;
  font-size: 0.98rem;
}

.store small {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.touch-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(96px, 14vh, 150px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
  transition: opacity 1.2s;
  animation: rise 1.6s var(--ease) 1.6s both;
}

.touched .touch-hint {
  opacity: 0;
}

.drop {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.drop::before,
.drop::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: drop-ring 3s ease-out infinite;
}

.drop::after {
  animation-delay: 1.5s;
}

@keyframes drop-ring {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  left: 0;
  width: 1px;
  height: 18px;
  background: #fff;
  animation: cue 2.6s var(--ease) infinite;
}

@keyframes cue {
  from {
    transform: translateY(-20px);
  }
  to {
    transform: translateY(56px);
  }
}

@media (max-width: 700px) {
  .touch-hint {
    left: 50%;
    right: auto;
    top: 92px;
    bottom: auto;
    transform: translateX(-50%);
    animation: none;
  }
  .hero h1 {
    font-size: clamp(4.2rem, 21vw, 6.5rem);
  }
}

/* re·man·so */

.remanso {
  padding-block: clamp(110px, 15vw, 190px);
  text-align: center;
  overflow: hidden;
}

.breath {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86vw, 700px);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}

.breath i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: breathe 14s ease-in-out infinite;
}

.breath i:nth-child(2) {
  animation-delay: -4.6s;
}

.breath i:nth-child(3) {
  animation-delay: -9.3s;
}

@keyframes breathe {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.remanso .wrap {
  position: relative;
}

.word {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.word span {
  font-style: italic;
  font-size: 0.32em;
  color: var(--faint);
  letter-spacing: 0.04em;
  vertical-align: 0.9em;
}

.meaning {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  color: var(--em);
}

.manifesto {
  margin: 34px auto 0;
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  font-weight: 300;
  color: var(--soft);
}

/* How it plays: the phone follows the step you read */

.story-section {
  padding-block: clamp(80px, 12vw, 160px);
  background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg));
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 110px);
}

.story-phone {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  margin: 0;
  aspect-ratio: 600 / 1300;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(145deg, #2a3a40, #10181c);
  box-shadow:
    0 50px 90px -40px var(--shadow),
    0 20px 40px -20px var(--shadow),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}

.story-phone .phone {
  height: min(76vh, 700px);
}

.story-phone .phone::before {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 36px;
  background: var(--pool-2);
}

.story-phone img {
  position: absolute;
  inset: 11px;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  object-fit: cover;
  border-radius: 36px;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1s var(--ease),
    transform 1.4s var(--ease);
}

.story[data-active='0'] [data-shot='0'],
.story[data-active='1'] [data-shot='1'],
.story[data-active='2'] [data-shot='2'],
.story[data-active='3'] [data-shot='3'],
.story[data-active='4'] [data-shot='4'] {
  opacity: 1;
  transform: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-text {
  max-width: 470px;
  transition: opacity 0.8s var(--ease);
}

html.js .story .step:not(.current) .step-text.in {
  opacity: 0.35;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--em);
  margin-bottom: 10px;
}

.step h3 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.step p {
  margin-top: 18px;
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--soft);
}

.step p em {
  font-style: italic;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--soft);
}

.phone-inline {
  display: none;
}

@media (max-width: 900px) {
  .story {
    display: block;
  }
  .story-phone {
    display: none;
  }
  .step {
    min-height: 0;
    padding-block: 36px 56px;
  }
  .phone-inline {
    display: block;
    width: min(268px, 72vw);
    margin: 0 auto 36px;
    border-radius: 40px;
    padding: 9px;
  }
  .phone-inline img {
    width: 100%;
    height: auto;
    border-radius: 31px;
  }
  html.js .story .step:not(.current) .step-text.in {
    opacity: 1;
  }
}

/* Varieties */

.varieties {
  padding-block: clamp(90px, 12vw, 160px);
}

.koi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.koi-card {
  padding: 14px 14px 22px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--glass);
  transition:
    transform 0.8s var(--ease),
    box-shadow 0.8s var(--ease),
    opacity 1.2s var(--ease),
    filter 1.2s var(--ease);
}

.koi-card:hover,
html.js .koi-card.in:hover {
  transform: translateY(-5px);
  transition-delay: 0s;
  box-shadow: 0 30px 50px -34px var(--shadow);
}

.koi-pool {
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 28% 22%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(150deg, var(--pool-1), var(--pool-2));
}

.koi-art {
  width: 100%;
  height: auto;
}

.koi-faces path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.koi-shadow {
  fill: #0b2e2b;
  opacity: 0.28;
}

.koi-swim {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: sway 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0) * -1.7s);
}

.koi-tail {
  transform-box: view-box;
  animation: wag 1.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0) * -0.4s);
}

@keyframes sway {
  from {
    transform: translate(-4px, 3px) rotate(-3deg);
  }
  to {
    transform: translate(4px, -3px) rotate(3deg);
  }
}

@keyframes wag {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(12deg);
  }
}

.koi-card h3 {
  margin: 18px 6px 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.koi-card p {
  margin: 6px 6px 0;
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--soft);
}

.koi-card.butterfly {
  background: linear-gradient(160deg, var(--glass), color-mix(in srgb, var(--em) 14%, transparent));
}

.koi-card.butterfly h3 {
  font-style: italic;
  color: var(--em);
}

@media (max-width: 560px) {
  .koi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .koi-card {
    padding: 10px 10px 16px;
    border-radius: 24px;
  }
  .koi-pool {
    border-radius: 16px;
  }
  .koi-card h3 {
    margin: 12px 4px 0;
    font-size: 1.4rem;
  }
  .koi-card p {
    margin: 4px 4px 0;
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

/* The garden at every hour */

.hours {
  padding-block: clamp(100px, 13vw, 170px);
  overflow: hidden;
  color: var(--ink);
  transition: color 0.6s;
}

.hours[data-dark='true'] {
  --ink: #e6eef5;
  --soft: #c2d0dc;
  --faint: #8ea1b8;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.08);
  --em: #8fd0c4;
}

.hours:not([data-dark='true']) {
  --ink: #2a3442;
  --soft: #4e5b6b;
  --em: #2f8a7d;
}

.sky,
.sky i {
  position: absolute;
  inset: 0;
}

.sky-night {
  background: linear-gradient(180deg, #0b1426, #1c2c4e);
  opacity: var(--w-night, 0);
}

.sky-dawn {
  background: linear-gradient(180deg, #f3cec0, #dcd5ea);
  opacity: var(--w-dawn, 0);
}

.sky-day {
  background: linear-gradient(180deg, #d6ece6, #f5eee4);
  opacity: var(--w-day, 1);
}

.sky-dusk {
  background: linear-gradient(180deg, #f1b487, #9077a9);
  opacity: var(--w-dusk, 0);
}

.hours-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.hours .section-head,
.hours-text .section-lead {
  margin-bottom: 0;
}

.dial {
  margin-top: 40px;
}

.clock {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.slider {
  display: block;
  margin-top: 18px;
}

.slider input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: grab;
}

.slider input::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c2c4e 0%, #2c3c64 18%, #f3cec0 29%, #bfe3da 40%, #cfe8df 70%, #f1b487 79%, #6d5c94 86%, #1c2c4e 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.slider input::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1c2c4e 0%, #2c3c64 18%, #f3cec0 29%, #bfe3da 40%, #cfe8df 70%, #f1b487 79%, #6d5c94 86%, #1c2c4e 100%);
}

.slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fffaf2;
  border: 0;
  box-shadow:
    0 0 0 6px rgba(255, 250, 242, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.25);
}

.slider input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fffaf2;
  border: 0;
  box-shadow:
    0 0 0 6px rgba(255, 250, 242, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.25);
}

.phase-notes {
  margin-top: 14px;
  min-height: 4.6em;
  color: var(--soft);
}

.phase-notes strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--ink);
}

.garden {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: clamp(28px, 4vw, 48px);
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.45);
}

.garden img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s linear;
}

@media (max-width: 860px) {
  .hours-grid {
    grid-template-columns: 1fr;
  }
}

/* Gifts: a path of seven stepping stones */

.gifts {
  padding-block: clamp(90px, 12vw, 160px);
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
}

.days {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: day;
}

.days::before {
  content: '';
  position: absolute;
  left: 7%;
  right: 7%;
  top: 38px;
  border-top: 1px dashed var(--line);
  border-top-color: color-mix(in srgb, var(--em) 40%, transparent);
}

.days li {
  position: relative;
  counter-increment: day;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.gift-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 18px 30px -22px var(--shadow);
}

.gift-icon::after {
  content: counter(day);
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--em);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
}

.gift-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

@media (max-width: 1000px) {
  .days {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
    gap: 18px;
  }
  .days::before {
    left: 38px;
    right: auto;
    top: 20px;
    bottom: 20px;
    border-top: 0;
    border-left: 1px dashed var(--line);
    border-left-color: color-mix(in srgb, var(--em) 40%, transparent);
  }
  .days li {
    flex-direction: row;
    text-align: left;
    gap: 22px;
  }
  .gift-icon {
    flex: none;
  }
}

/* Sound: always a calm night band */

.sound {
  --ink: #e6eef5;
  --soft: #b9c8d7;
  --faint: #7b8ea7;
  --line: rgba(230, 238, 245, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --em: #8fd0c4;
  padding-block: clamp(100px, 13vw, 170px);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(47, 111, 106, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(80, 70, 140, 0.35), transparent 70%),
    #0d1828;
  overflow: hidden;
}

.sound-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.sound .section-head {
  margin-bottom: 30px;
}

.ticks {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--soft);
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticks li::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--em);
  box-shadow: 0 0 0 4px rgba(143, 208, 196, 0.12);
}

.kalimba {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(28px, 5vw, 54px) clamp(18px, 4vw, 40px);
  border-radius: 40px;
  border: 1px solid var(--line);
  background: var(--glass);
}

.stones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 16px;
}

.stone {
  --size: 76px;
  position: relative;
  width: var(--size);
  height: calc(var(--size) * 0.84);
  border: 0;
  border-radius: 48% 52% 46% 54% / 55% 50% 50% 45%;
  background:
    radial-gradient(ellipse at 35% 28%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(160deg, #8fb3ad, #3c625e);
  box-shadow:
    0 14px 24px -12px rgba(0, 0, 0, 0.6),
    inset 0 -6px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

.stone:nth-child(2) {
  --size: 70px;
}
.stone:nth-child(3) {
  --size: 64px;
}
.stone:nth-child(4) {
  --size: 58px;
}
.stone:nth-child(5) {
  --size: 53px;
}
.stone:nth-child(6) {
  --size: 48px;
}

.stone:active {
  transform: scale(0.94);
}

.stone span,
.stone::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(143, 208, 196, 0.9);
  opacity: 0;
  pointer-events: none;
}

.stone.ring span {
  animation: stone-ring 1.6s ease-out;
}

.stone.ring::after {
  animation: stone-ring 1.6s ease-out 0.25s;
}

@keyframes stone-ring {
  from {
    transform: scale(0.8);
    opacity: 1;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

.kalimba-hint {
  font-size: 0.95rem;
  color: var(--soft);
  text-align: center;
}

.sound .listen {
  border-color: rgba(143, 208, 196, 0.5);
  background: rgba(143, 208, 196, 0.12);
}

@media (max-width: 860px) {
  .sound-grid {
    grid-template-columns: 1fr;
  }
}

/* Calm promises */

.calm {
  padding-block: clamp(100px, 13vw, 170px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--glass);
  transition:
    transform 0.8s var(--ease),
    opacity 1.2s var(--ease),
    filter 1.2s var(--ease);
}

.tile:hover,
html.js .tile.in:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

.tile.wide {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--glass), color-mix(in srgb, var(--em) 10%, transparent));
}

.tile svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--em);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 26px;
}

.tile h3 {
  font-size: 1.75rem;
  line-height: 1.1;
}

.tile p {
  margin-top: 10px;
  font-weight: 300;
  color: var(--soft);
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile.wide {
    grid-column: auto;
  }
}

/* Call to action */

.cta {
  padding-block: clamp(110px, 15vw, 200px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cta-1), var(--cta-2));
}

.cta-koi {
  position: absolute;
  top: 18%;
  left: 0;
  width: clamp(200px, 26vw, 340px);
  opacity: 0.5;
  animation: cross 46s linear infinite;
  pointer-events: none;
}

.cta-koi .koi-shadow {
  opacity: 0.12;
}

@keyframes cross {
  from {
    transform: translateX(-110%) translateY(0) rotate(4deg);
  }
  50% {
    transform: translateX(45vw) translateY(40px) rotate(-3deg);
  }
  to {
    transform: translateX(100vw) translateY(0) rotate(4deg);
  }
}

.cta .wrap {
  position: relative;
}

.emblem {
  margin: 0 auto 30px;
  border-radius: 24px;
  box-shadow: 0 24px 50px -24px var(--shadow);
}

.cta h2 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.cta p {
  margin: 22px auto 0;
  max-width: 44ch;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--soft);
}

.cta .stores {
  justify-content: center;
  margin-top: 34px;
}

.cta .store {
  color: var(--ink);
  border-color: var(--line);
  background: var(--glass);
}

.cta .cta-mail {
  font-size: 1rem;
}

/* Footer */

footer {
  padding-block: 34px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--faint);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* Legal pages and 404 */

.legal-page .top {
  position: sticky;
  top: 0;
  color: var(--ink);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.legal {
  padding: 56px 0 96px;
}

.legal article {
  max-width: 44em;
}

.legal h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.legal h2 {
  font-size: 1.8rem;
  margin: 40px 0 8px;
}

.legal h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  color: var(--soft);
  margin: 0 0 12px;
}

.legal .updated {
  color: var(--faint);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 18px;
  color: var(--soft);
}

.legal dt {
  color: var(--ink);
  font-weight: 450;
}

.legal dd {
  margin: 0;
}

@media (max-width: 520px) {
  .legal dl {
    grid-template-columns: 1fr;
  }
  .legal dd {
    margin-bottom: 8px;
  }
}

/* Stillness for those who ask for it */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
