/* TH0SHAN — personal-use meadow (re-typed styles; values mirror the decoded original) */

:root {
  --ink: #fbf8f1;
  --ink-soft: rgba(251, 248, 241, .78);
  --ink-faint: rgba(251, 248, 241, .5);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --glass: rgba(18, 20, 16, .38);
  --glass-deep: rgba(14, 16, 12, .55);
  --glass-line: rgba(255, 255, 255, .14);
  --btn-bg: rgba(252, 249, 240, .94);
  --btn-ink: #1e2416;
  --scrim: .30;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d0f0a; overflow: hidden; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
#page { position: fixed; inset: 0; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: none; }

/* fingertip cursor */
#tip { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none; z-index: 5;
  border: 1.5px solid rgba(255,255,255,.85); background: radial-gradient(circle, rgba(255,255,255,.28) 0 22%, rgba(255,255,255,.06) 23% 100%);
  box-shadow: 0 0 18px rgba(255, 244, 214, .35);
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1), opacity .3s, border-color .3s;
  opacity: 0; }
#tip.on { opacity: 1; }
#tip.press { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(255,255,255,1); }

.ui { position: absolute; z-index: 4; transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.ui button, .ui a { font: inherit; color: inherit; }
body.sitting .hide-sit { opacity: 0 !important; pointer-events: none !important; transform: translateY(10px); }
body.loading .ui { opacity: 0; }

header { top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 26px clamp(20px, 4vw, 54px); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 25px; letter-spacing: -.01em; text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.brand svg { width: 26px; height: 26px; }
nav { display: flex; gap: 6px; align-items: center; }
nav button { all: unset; cursor: pointer; font-size: 13.5px; letter-spacing: .01em; padding: 9px 15px; border-radius: 999px; color: var(--ink-soft); transition: background .25s, color .25s; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
nav button:hover { background: rgba(255,255,255,.12); color: var(--ink); }
nav button.sound { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--ink); }
nav button.sound i { width: 14px; height: 12px; display: inline-flex; gap: 2px; align-items: flex-end; }
nav button.sound i b { width: 2px; background: currentColor; border-radius: 1px; height: 3px; transition: height .3s; }
body.audio nav button.sound i b { animation: eq 1.1s ease-in-out infinite; }
body.audio nav button.sound i b:nth-child(2) { animation-delay: -.4s; }
body.audio nav button.sound i b:nth-child(3) { animation-delay: -.75s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }

.hero { left: clamp(20px, 5.2vw, 84px); top: 50%; transform: translateY(-58%); max-width: 520px; }
.scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(42% 34% at 16% 58%, rgba(18, 22, 10, calc(var(--scrim) + 0)), rgba(18, 22, 10, 0) 72%), linear-gradient(180deg, rgba(10,12,6,.08), rgba(10,12,6,0) 12%), linear-gradient(0deg, rgba(10,12,6, 0), rgba(10,12,6,0) 26%); transition: opacity 1.2s ease; }
body.sitting .scrim { opacity: 0; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 12px; margin-bottom: 22px; text-shadow: 0 0 16px rgba(18,22,10,.6), 0 1px 2px rgba(0,0,0,.4); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.6vw, 94px); line-height: .96; letter-spacing: -.028em; margin: 0 0 24px; text-shadow: 0 2px 30px rgba(20, 24, 10, .28); }
h1 em { font-style: italic; letter-spacing: -.015em; }
.lede { font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.6; color: var(--ink-soft); max-width: 400px; margin: 0 0 34px; text-shadow: 0 1px 16px rgba(0,0,0,.35); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px 15px 26px; border-radius: 999px; font-size: 15px; letter-spacing: .005em; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 10px 40px -10px rgba(10, 14, 4, .45); }
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn.primary svg { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn.primary:hover svg { transform: translateX(3px); }
.btn.ghost { color: var(--ink); border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.btn.ghost:hover { background: rgba(255,255,255,.16); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); }
body.ready .reveal { opacity: 1; transform: none; }
body.ready .reveal.d1 { transition-delay: .15s; } body.ready .reveal.d2 { transition-delay: .35s; }
body.ready .reveal.d3 { transition-delay: .55s; } body.ready .reveal.d4 { transition-delay: .8s; }

/* time of day dial */
.dial { right: clamp(18px, 3.6vw, 54px); bottom: clamp(18px, 3.4vw, 46px); width: 236px; padding: 16px 18px 14px; border-radius: 22px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); user-select: none; }
.dial .lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.dial .lbl b { font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.dial > svg { display: block; width: 100%; height: 74px; overflow: visible; touch-action: none; cursor: grab; }
.dial > svg:active { cursor: grabbing; }
.dial .stops { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.dial .stops span { cursor: pointer; transition: color .3s; }
.dial .stops span:hover, .dial .stops span.on { color: var(--ink); }

.wx { display: grid; gap: 6px; margin: -2px 0 12px; }
.dial .seg { display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.dial .seg button { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 10px; font-size: 10.5px; letter-spacing: .02em; color: var(--ink-faint); transition: background .3s, color .3s, box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.dial .seg button svg { width: 16px; height: 16px; display: block; }
.dial .seg button:hover { color: var(--ink); }
.dial .seg button.on { background: rgba(255,255,255,.16); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.dial .seg button:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }

.hint { left: clamp(20px, 5.2vw, 84px); bottom: clamp(20px, 3.6vw, 46px); font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 18px; align-items: center; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hint span { display: inline-flex; align-items: center; gap: 8px; }
.hint kbd { font: inherit; font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--glass-line); background: var(--glass); }
.hint.gone { opacity: 0; }

.notes { right: clamp(20px, 4vw, 54px); top: 84px; width: 300px; padding: 22px 22px 18px; border-radius: 20px; border: 1px solid var(--glass-line); background: var(--glass-deep); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); font-size: 13px; line-height: 1.55; color: var(--ink-soft); opacity: 0; transform: translateY(-8px); pointer-events: none; }
.notes.open { opacity: 1; transform: none; pointer-events: auto; }
.notes h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 12px; color: var(--ink); }
.notes ul { margin: 0 0 14px; padding: 0; list-style: none; }
.notes li { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; }
.notes li b { font-weight: 500; color: var(--ink); min-width: 74px; }
.notes small { display: block; font-size: 11px; color: var(--ink-faint); }

/* sitting */
.sit { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 9vh; pointer-events: none; opacity: 0; }
body.sitting .sit { opacity: 1; }
.breath { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); text-shadow: 0 2px 24px rgba(0,0,0,.35); height: 1.4em; transition: opacity .45s ease; }
.breath.fade { opacity: 0; }
.ring { margin-top: 16px; width: 140px; height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.ring i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.85); }
.ui.standup { position: absolute; z-index: 6; top: 22px; right: clamp(20px, 4vw, 54px); opacity: 0; pointer-events: none; }
body.sitting .standup { opacity: 1; pointer-events: auto; }
.done { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.done.on { opacity: 1; pointer-events: auto; }
.done p { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 48px); margin: 0 0 22px; text-shadow: 0 2px 30px rgba(0,0,0,.3); letter-spacing: -.02em; }
.done .ctas { justify-content: center; }

#err { position: fixed; inset: 0; display: none; place-items: center; text-align: center; padding: 30px; z-index: 11; background: #11140d; font-family: var(--serif); font-size: 22px; }

@media (max-height: 660px) and (min-width: 761px) {
  .hero { top: auto; bottom: 64px; transform: none; }
  h1 { font-size: clamp(40px, 9.5vh, 64px); margin-bottom: 14px; }
  .eyebrow { margin-bottom: 12px; }
  .lede { margin-bottom: 18px; }
  .hint { display: none; }
}
@media (max-width: 760px) {
  nav button:not(.sound) { display: none; }
  .hero { top: auto; bottom: 262px; transform: none; max-width: 92vw; }
  h1 { font-size: 48px; }
  .lede { margin-bottom: 24px; }
  .dial { width: auto; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px 10px; }
  .dial > svg { height: 50px; }
  .wx { display: flex; gap: 6px; margin: 0 0 8px; }
  .dial .seg span { display: none; }
  .dial .seg button { padding: 8px 0; }
  .hint { display: none; }
  .notes { left: 16px; right: 16px; width: auto; }
}
@media (max-width: 760px) and (max-height: 720px) {
  h1 { font-size: 38px; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 10px; }
  .lede { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
  .btn { padding: 12px 18px 12px 20px; font-size: 14px; }
}
