:root {
  color-scheme: light;
  --forest: #18382f;
  --forest-deep: #102a23;
  --sage: #839283;
  --sage-pale: #c3cabd;
  --clay: #8b6753;
  --clay-light: #bd9d88;
  --stone: #666b64;
  --stone-light: #d8d8cf;
  --paper: #f4f2e9;
  --white: #fffef9;
  --ink: #26312c;
  --muted: #73786f;
  --line: rgba(30, 59, 49, .14);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(188, 159, 137, .25), transparent 31rem),
    radial-gradient(circle at 9% 86%, rgba(93, 121, 102, .19), transparent 32rem),
    linear-gradient(135deg, #e8e7dd 0%, #f2f0e7 48%, #dedfd5 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: .24;
  background-image:
    repeating-linear-gradient(108deg, rgba(28, 48, 40, .018) 0, rgba(28, 48, 40, .018) 1px, transparent 1px, transparent 6px),
    radial-gradient(circle at 28% 35%, rgba(255,255,255,.45) 0 .5px, transparent .7px);
  background-size: auto, 8px 9px;
  mix-blend-mode: multiply;
}

#ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.light-field {
  position: fixed;
  top: -18vw;
  right: -11vw;
  z-index: 0;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 46% 54% 63% 37% / 45% 36% 64% 55%;
  background: rgba(255, 254, 249, .17);
  transform: rotate(18deg);
}

header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 56px, 1240px);
  margin: 0 auto;
  padding: 30px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .08em;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(24, 56, 47, .55);
  border-radius: 50%;
  background: var(--sage-pale);
  box-shadow: 0 0 0 5px rgba(131, 146, 131, .1);
}

header > p {
  margin: 0;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

main {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(470px, 1.14fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  width: min(100% - 56px, 1160px);
  min-height: calc(100svh - 126px);
  margin: 0 auto;
  padding: 28px 0 78px;
}

.intro { align-self: center; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--clay);
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(4.4rem, 8.3vw, 7.8rem);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.065em;
}

.lead {
  max-width: 390px;
  margin: 34px 0 0;
  color: #4b564f;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.45;
}

.quiet-note {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.6;
}

.experience {
  --breath: 0;
  --session: 0;
  position: relative;
  display: grid;
  min-height: min(680px, calc(100svh - 150px));
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 46% 46% 12% 12% / 9% 9% 5% 5%;
  background:
    linear-gradient(158deg, rgba(255,255,250,.86), rgba(240,239,230,.72)),
    var(--paper);
  box-shadow:
    0 35px 80px rgba(51, 63, 55, .13),
    inset 0 1px 0 rgba(255,255,255,.8);
  place-items: center;
}

.experience::before {
  position: absolute;
  inset: 18px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(57, 80, 67, .08);
  border-radius: inherit;
}

.breath-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(250px, 33vw, 390px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,250,.04) 38%, rgba(160, 177, 153, .21) 65%, rgba(118, 139, 121, .04) 71%, transparent 73%);
  opacity: .65;
  filter: blur(.2px);
  transform: translate(-50%, -54%) scale(calc(.88 + var(--breath) * .2));
  transition: opacity .7s ease;
}

.contact-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, 390px);
  aspect-ratio: 1;
  place-items: center;
}

#contact-zone {
  position: relative;
  display: grid;
  width: 90%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 0;
  color: var(--forest);
  background:
    radial-gradient(circle, rgba(255,255,251,.84) 0 42%, rgba(198, 206, 191, .5) 43% 44%, rgba(255,255,250,.12) 45% 59%, transparent 60%),
    conic-gradient(from -90deg, var(--forest) calc(var(--session) * 1turn), rgba(24,56,47,.1) 0);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  place-items: center;
  transform: scale(calc(.96 + var(--breath) * .04));
  transition: filter .5s ease, box-shadow .5s ease;
}

#contact-zone::before {
  position: absolute;
  inset: 17%;
  content: "";
  border: 1px solid rgba(80, 105, 87, .21);
  border-radius: 50%;
  box-shadow: inset 0 0 48px rgba(123, 143, 124, .09);
}

#contact-zone:hover,
#contact-zone:focus-visible {
  filter: saturate(1.08);
  box-shadow: 0 0 0 9px rgba(131, 146, 131, .07);
}

#contact-zone:focus-visible::before { border-color: rgba(44, 79, 63, .48); }
body[data-state="running"] #contact-zone { box-shadow: 0 0 55px rgba(80, 112, 89, .18); }
body[data-state="paused"] #contact-zone { filter: grayscale(.25); }
body[data-state="countdown"] #contact-zone {
  box-shadow: 0 0 70px rgba(139, 103, 83, .2);
  filter: saturate(1.08);
}

body[data-input="desktop"] #contact-zone {
  pointer-events: none;
  cursor: default;
}

.hand-shape {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 57%;
  transform: translateX(-50%);
  overflow: visible;
}

.hand-fill {
  fill: rgba(184, 163, 141, .22);
  stroke: rgba(108, 81, 65, .52);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.hand-line {
  fill: none;
  stroke: rgba(108, 81, 65, .26);
  stroke-linecap: round;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.finger-core { display: none; }

.contact-copy {
  position: absolute;
  bottom: 11%;
  left: 50%;
  display: grid;
  width: 100%;
  gap: 4px;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
}

.contact-copy strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
}

.contact-copy small {
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mobile-copy { display: none; }

.guide {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 58px;
  align-content: start;
  gap: 5px;
  margin-top: -17px;
  text-align: center;
}

.guide strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -.02em;
}

.guide span {
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .05em;
}

body[data-state="countdown"] .guide strong {
  color: var(--clay);
  font-size: clamp(3.3rem, 7vw, 5.4rem);
  line-height: .8;
}

#desktop-ready {
  position: relative;
  z-index: 4;
  display: none;
  min-height: 42px;
  margin-top: -8px;
  padding: 0 23px;
  border: 1px solid rgba(24, 56, 47, .25);
  color: var(--forest);
  background: rgba(255, 254, 249, .56);
  cursor: pointer;
  font-size: .59rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

#desktop-ready:hover,
#desktop-ready:focus-visible {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
  outline: 0;
}

body[data-input="desktop"][data-state="idle"] #desktop-ready,
body[data-input="desktop"][data-state="paused"] #desktop-ready { display: inline-flex; align-items: center; }

.progress {
  position: absolute;
  right: 46px;
  bottom: 35px;
  left: 46px;
  height: 1px;
  overflow: hidden;
  background: rgba(37, 64, 51, .12);
}

.progress span {
  display: block;
  width: calc(var(--session) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--clay-light), var(--forest));
}

.session-count {
  position: absolute;
  right: 47px;
  bottom: 42px;
  margin: 0;
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .12em;
}

.complete {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px;
  pointer-events: none;
  background: rgba(244, 242, 233, .96);
  opacity: 0;
  text-align: center;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}

body[data-state="complete"] .complete {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.complete p {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: .62rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.complete h2 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.complete button {
  min-height: 46px;
  margin-top: 35px;
  padding: 0 25px;
  border: 1px solid rgba(24,56,47,.24);
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font-size: .61rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.truth {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 12;
  color: var(--muted);
}

.truth summary {
  cursor: pointer;
  font-size: .6rem;
  letter-spacing: .12em;
  list-style: none;
  text-transform: uppercase;
}

.truth summary::-webkit-details-marker { display: none; }

.truth-panel {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: min(390px, calc(100vw - 36px));
  padding: 27px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(246, 244, 236, .97);
  box-shadow: 0 20px 55px rgba(43, 55, 47, .17);
}

.truth-panel h2 {
  margin: 0 0 14px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.truth-panel p {
  margin: 0;
  color: #626860;
  font-size: .72rem;
  line-height: 1.6;
}

.truth-panel p + p { margin-top: 10px; }

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

@media (max-width: 850px) {
  header { width: calc(100% - 36px); padding: 20px 0; }
  header > p { display: none; }
  main {
    display: block;
    width: min(100% - 32px, 600px);
    min-height: auto;
    padding: 30px 0 78px;
  }
  .intro { margin-bottom: 34px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(4rem, 19vw, 6.5rem); }
  .lead { margin-top: 24px; }
  .quiet-note { display: none; }
  .experience { min-height: 620px; border-radius: 130px 130px 24px 24px; }
  .truth { right: 18px; bottom: 15px; }
}

@media (pointer: coarse), (max-width: 600px) {
  .hand-shape { display: none; }
  .desktop-copy { display: none; }
  .mobile-copy { display: block; }
  .finger-core {
    position: absolute;
    top: 28%;
    left: 50%;
    display: grid;
    width: 82px;
    height: 105px;
    border: 1px solid rgba(77, 103, 84, .36);
    border-radius: 48% 48% 44% 44%;
    transform: translateX(-50%);
    place-items: center;
  }
  .finger-core i {
    position: absolute;
    width: 55px;
    height: 76px;
    border: 1px solid rgba(77, 103, 84, .18);
    border-radius: 50%;
  }
  .finger-core i:nth-child(2) { width: 37px; height: 57px; }
  .finger-core i:nth-child(3) { width: 19px; height: 36px; }
}

@media (max-width: 520px) {
  main { padding-top: 18px; }
  .intro { margin-bottom: 25px; }
  .eyebrow { font-size: .54rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 5.3rem); }
  .lead { margin-top: 19px; font-size: 1.05rem; }
  .experience { min-height: 540px; padding: 22px; }
  .contact-wrap { width: min(100%, 350px); }
  .progress { right: 30px; bottom: 28px; left: 30px; }
  .session-count { right: 30px; bottom: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #ambient { opacity: .45; }
}
