:root {
  --paper: #f3efe8;
  --mist: #e7e0d5;
  --ink: #2a2724;
  --mute: #8a8278;
  --sage: #8fa393;
  --blush: #e8c9c0;
  --rabbit: #fffdf8;
  --line: rgba(42, 39, 36, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  cursor: none;
}

body.inside {
  cursor: auto;
}

body.inside .cursor-glow {
  opacity: 0;
}

.grain,
.wash,
#motes,
.cursor-glow,
.iris {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(143, 163, 147, 0.18), transparent 60%),
    radial-gradient(700px 480px at 12% 88%, rgba(232, 201, 192, 0.22), transparent 62%),
    linear-gradient(180deg, #f7f3ed 0%, var(--paper) 42%, var(--mist) 100%);
}

#motes {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.55), rgba(143, 163, 147, 0.08) 42%, transparent 70%);
  z-index: 2;
  transform: translate(-100px, -100px);
  transition: opacity 0.4s ease;
}

.top,
.floor {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 48px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.top {
  top: 0;
}

.floor {
  bottom: 0;
}

.floor .in {
  display: none;
}

body.inside .floor .out {
  display: none;
}

body.inside .floor .in {
  display: inline;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(143, 163, 147, 0.16);
  animation: pulse 3.6s var(--ease) infinite;
}

.credit em {
  font-style: normal;
  color: var(--sage);
  padding: 0 6px;
}

.stage {
  position: relative;
  z-index: 4;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 108px 24px 92px;
}

[hidden] {
  display: none !important;
}

.surface,
.hole {
  width: min(920px, 100%);
  text-align: center;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--mute);
}

.surface .kicker {
  margin-top: 22px;
}

.hole .kicker {
  margin-bottom: 20px;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.03em;
}

h1 .line {
  display: block;
}

h1 .quiet {
  font-size: clamp(28px, 5vw, 54px);
  font-style: italic;
  font-weight: 400;
  color: #5d574f;
}

h1 .loud {
  font-size: clamp(52px, 11vw, 118px);
  font-weight: 500;
  background: linear-gradient(180deg, #2a2724 20%, #6d675e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hint {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
}

.hint span {
  color: var(--sage);
  padding: 0 8px;
}

.rabbit-btn {
  position: relative;
  margin: 28px auto 0;
  display: grid;
  place-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: none;
  color: inherit;
  animation: bob 4.8s var(--ease) infinite;
}

.rabbit {
  width: min(168px, 46vw);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(80, 70, 58, 0.12));
  transition: transform 0.6s var(--ease);
}

.rabbit-btn:hover .rabbit,
.rabbit-btn:focus-visible .rabbit {
  transform: translateY(-6px) scale(1.03);
}

.rabbit-btn:focus-visible {
  outline: none;
}

.ear-front {
  transform-origin: 110px 90px;
  animation: twitch 5.4s ease-in-out infinite;
}

.eye {
  transform-origin: 148px 118px;
  animation: blink 6.2s ease-in-out infinite;
}

.enter {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sage);
}

.paw-trail {
  position: absolute;
  inset: auto auto 18px 8%;
  display: flex;
  gap: 10px;
  opacity: 0.45;
}

.paw-trail i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cfc4b4;
  animation: fade 2.8s ease-in-out infinite;
}

.paw-trail i:nth-child(2) { animation-delay: 0.2s; }
.paw-trail i:nth-child(3) { animation-delay: 0.4s; }
.paw-trail i:nth-child(4) { animation-delay: 0.6s; }
.paw-trail i:nth-child(5) { animation-delay: 0.8s; }

.hole h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 10vw, 108px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.letter {
  margin: 28px auto 0;
  max-width: 46ch;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.7;
  color: #5a544c;
}

.watch {
  margin-top: 36px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--sage);
}

.back {
  margin-top: 40px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.back:hover,
.back:focus-visible {
  background: rgba(255, 253, 248, 0.7);
  border-color: #c9c0b3;
  outline: none;
}

.iris {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: #1c1a18;
  clip-path: circle(0 at 50% 58%);
  opacity: 0;
  transition: clip-path 1.05s var(--ease), opacity 0.2s linear;
}

.iris.open {
  opacity: 1;
  clip-path: circle(150% at 50% 58%);
}

body.inside .wash {
  background:
    radial-gradient(800px 500px at 50% 20%, rgba(143, 163, 147, 0.14), transparent 55%),
    linear-gradient(180deg, #ece6dc, #ddd4c6);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes twitch {
  0%, 86%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-7deg); }
  94% { transform: rotate(3deg); }
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.08); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(143, 163, 147, 0.16); }
  50% { box-shadow: 0 0 0 10px rgba(143, 163, 147, 0.05); }
}

@keyframes fade {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.8; transform: scale(1); }
}

@media (max-width: 720px) {
  body { cursor: auto; }
  .cursor-glow { display: none; }
  .top, .floor { padding: 18px 18px; letter-spacing: 0.12em; }
  .credit, .copy { display: none; }
  .rabbit-btn { cursor: pointer; }
  .policy-hero .kicker {
    letter-spacing: 0.16em;
    font-size: 10px;
  }
  .policy-block {
    padding: 24px 20px;
    border-radius: 22px;
  }
}

@media (max-height: 760px) {
  h1 .quiet { font-size: clamp(22px, 4vw, 36px); }
  h1 .loud { font-size: clamp(44px, 9vw, 84px); }
  .rabbit { width: min(132px, 38vw); }
  .rabbit-btn { margin-top: 16px; }
  .kicker { margin-top: 14px; }
}

body.doc {
  overflow: auto !important;
  height: auto;
  min-height: 100%;
  cursor: auto;
}

body.doc .wash,
body.doc .grain {
  z-index: -1;
}

body.doc .top {
  background: linear-gradient(180deg, #f7f3ed 0%, rgba(243, 239, 232, 0.92) 55%, rgba(243, 239, 232, 0));
}

.policy {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 120px;
}

.policy-hero {
  text-align: center;
  margin-bottom: 72px;
}

.policy-hero h1 {
  margin-top: 10px;
}

.policy-lead {
  margin-top: 18px;
  font-family: "Sarabun", "Outfit", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 22px);
  color: #5a544c;
}

.lang-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lang-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c9c0b3;
  padding-bottom: 3px;
}

.lang-nav a:hover,
.lang-nav a:focus-visible {
  color: var(--sage);
  outline: none;
}

.lang-nav span {
  color: var(--sage);
}

.back-meadow {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
}

.back-meadow:hover,
.back-meadow:focus-visible {
  color: var(--ink);
  outline: none;
}

html {
  scroll-behavior: smooth;
}

.policy-block {
  scroll-margin-top: 108px;
  background: rgba(255, 253, 248, 0.48);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 36px;
}

.policy-lang {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.policy-block h2 {
  font-family: "Cormorant Garamond", "Sarabun", Georgia, serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 36px;
}

.policy-block[lang="th"] h2,
.policy-block[lang="th"] h3,
.policy-block[lang="th"] p:not(.num):not(.policy-lang) {
  font-family: "Sarabun", "Outfit", sans-serif;
}

.policy-block[lang="th"] h2 {
  font-weight: 500;
  letter-spacing: 0;
}

.policy-block section + section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.policy-block .num {
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--sage);
  margin-bottom: 8px;
}

.policy-block h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  margin-bottom: 16px;
}

.policy-block[lang="th"] h3 {
  font-weight: 600;
  letter-spacing: 0;
}

.policy-block p:not(.num):not(.policy-lang) {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: #5a544c;
}

.policy-block[lang="th"] p:not(.num):not(.policy-lang) {
  font-weight: 400;
  line-height: 1.95;
}

.policy-block p + p:not(.num):not(.policy-lang) {
  margin-top: 16px;
}

.policy-floor {
  position: relative;
  margin-top: 8px;
}

.policy-floor a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #c9c0b3;
  padding-bottom: 2px;
}

.floor a.policy-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  letter-spacing: inherit;
  text-transform: inherit;
}

.floor a.policy-link:hover,
.floor a.policy-link:focus-visible {
  border-bottom-color: #c9c0b3;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
