/* Fennwell — clinic & wellness vertical. Light, airy: linen, stone, sage. Tokens first, then sections top to bottom. */
@font-face { font-family: 'Instrument Serif'; src: url(../vendor/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../vendor/fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(../vendor/fonts/instrument-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f2eee6;
  --paper: #faf8f3;
  --ink: #262a22;
  --muted: #6b6e62;
  --sage: #8b9a82;
  --sage-deep: #4b5a47;
  --clay: #a8754f;
  --accent: #4b5a47;
  --line: rgba(38, 42, 34, 0.13);
  --card: rgba(250, 248, 243, 0.66);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body { font-family: var(--sans); font-size: 16px; background: var(--bg); }
/* The water canvas sits behind everything; without WebGL, or under reduced motion, a still gradient stands in. */
.water { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: -1; display: block; opacity: 0; transition: opacity 1.6s ease; }
.water.live { opacity: 1; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(120% 80% at 15% 10%, #f7f3ec 0%, transparent 60%), radial-gradient(90% 70% at 85% 60%, #c9d5c6 0%, transparent 70%),
    radial-gradient(80% 60% at 30% 100%, #e3d5c2 0%, transparent 70%), var(--bg); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(44px, 6.4vw, 96px); }
h3 { font-size: clamp(28px, 2.6vw, 38px); }
em { font-style: italic; }
.eyebrow { font: 600 11px/1.2 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 18px; }
.lede { color: var(--muted); max-width: 44ch; font-size: 17px; margin: 0; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 99px;
  border: 1px solid var(--sage-deep); color: var(--sage-deep); text-decoration: none; background: transparent; cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.pill:hover, .pill.solid, .pill[aria-pressed="true"] { background: var(--sage-deep); color: var(--paper); }
.pill.solid:hover { background: var(--ink); border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.link-btn:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Engine overrides for a light page */
.sr-frame { background: linear-gradient(140deg, #e6dfd2, #d5dccd 55%, #e9e1d3); }
.sr-concept { background: rgba(250, 248, 243, 0.78); color: var(--muted); border-color: var(--line); }
.sr-concept a { color: var(--ink); }

/* Loader: one slow breath, then the page */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 26px; }
.loader-dot { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #dfe7da, var(--sage) 70%); transform: scale(0.5); opacity: 0.7; }
.loader-mark { font: 400 clamp(30px, 4vw, 44px)/1 var(--serif); letter-spacing: 0.02em; color: var(--ink); }
html.reduced .loader, html:not(.js) .loader { display: none; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter); transition: transform 0.6s var(--ease), background 0.4s, box-shadow 0.4s;
}
.top.solid { background: rgba(246, 243, 236, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.hide { transform: translateY(-100%); }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font: 400 26px/1 var(--serif); color: var(--ink); }
.top nav { display: flex; gap: 28px; align-items: center; }
.top nav a:not(.pill) { text-decoration: none; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.top nav a:not(.pill):hover { color: var(--ink); }
.top nav .pill { padding: 10px 16px; }
@media (max-width: 760px) { .top nav a:not(.pill) { display: none; } .brand { font-size: 22px; } }

/* Hero: copy on the water, the bathhouse in an arch that opens to full bleed */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.arch-ghost { position: absolute; right: 7vw; top: 15vh; bottom: 9vh; width: min(33vw, 520px); visibility: hidden; pointer-events: none; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(160deg, #dfe6dc, #b9cdc6); clip-path: inset(15vh 7vw 9vh 60vw round 16.5vw 16.5vw 0 0); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 26, 22, 0.12), rgba(20, 26, 22, 0.28) 50%, rgba(20, 26, 22, 0.5)); opacity: var(--shade, 0); pointer-events: none; }
.hero-copy { position: absolute; left: var(--gutter); bottom: 13vh; max-width: 52vw; }
.hero-title { font-size: clamp(76px, 15vw, 250px); line-height: 0.84; letter-spacing: -0.035em; margin-left: -0.04em; }
.hero-sub { font-size: clamp(16px, 1.45vw, 20px); color: var(--ink); opacity: 0.8; margin: 26px 0 0; max-width: 38ch; }
.hero-sub br { display: block; }
.hero-scroll { position: absolute; left: var(--gutter); top: 50%; display: none; }
.hero-after { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; width: min(16ch, 86vw); text-align: center; color: #fbf8f1;
  font: 400 clamp(40px, 6vw, 92px)/1.02 var(--serif); opacity: 0; text-shadow: 0 2px 30px rgba(10, 20, 15, 0.35); pointer-events: none; }
@media (min-width: 761px) {
  .hero-scroll { display: grid; top: auto; bottom: 13vh; left: auto; right: calc(7vw + min(33vw, 520px) + 3vw); justify-items: center; gap: 10px;
    font: 600 10px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
  .hero-scroll i { width: 1px; height: 54px; background: linear-gradient(var(--sage-deep), transparent); animation: drip 2.6s ease-in-out infinite; transform-origin: top; }
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .arch-ghost { left: 9vw; right: 9vw; width: auto; top: 47svh; bottom: 6svh; }
  .hero-media { clip-path: inset(47svh 9vw 6svh 9vw round 41vw 41vw 0 0); }
  .hero-copy { top: 12svh; bottom: auto; max-width: none; right: var(--gutter); }
  .hero-title { font-size: 23vw; }
  .hero-sub { margin-top: 16px; font-size: 15px; }
}

/* Statement + stats */
.statement { padding: 18vh var(--gutter) 16vh; max-width: 1280px; margin: 0 auto; }
.statement-text { font: 400 clamp(32px, 4.7vw, 70px)/1.08 var(--serif); margin: 0; max-width: 22ch; letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 12vh 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.stats dt { font: 600 11px/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); max-width: 16ch; }
.stats dd { margin: 14px 0 0; font: 400 clamp(52px, 6.4vw, 96px)/1 var(--serif); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* Breathe */
.breathe { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.breathe-inner { width: min(1200px, 100%); display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 6vw; align-items: center; }
.breathe-copy { display: grid; gap: 18px; justify-items: start; }
.breathe-copy h2 { max-width: 10ch; }
.breathe-copy .pill { margin-top: 10px; }
.breathe-ring { position: relative; aspect-ratio: 1; width: 100%; display: grid; place-items: center; }
.breathe-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.br-track { fill: none; stroke: var(--line); stroke-width: 1; }
.br-arc { fill: none; stroke: var(--sage-deep); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.br-disc { position: absolute; inset: 8%; border-radius: 50%; transform: scale(0.55); will-change: transform;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.9), rgba(222, 231, 218, 0.75) 40%, rgba(139, 154, 130, 0.55) 100%);
  box-shadow: 0 30px 80px -30px rgba(75, 90, 71, 0.45), inset 0 0 60px rgba(255, 255, 255, 0.5); }
.br-text { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.br-phase { font: 400 clamp(30px, 3.4vw, 50px)/1 var(--serif); }
.br-count { font: 500 13px/1 var(--sans); letter-spacing: 0.24em; color: var(--muted); font-variant-numeric: tabular-nums; }
.br-steps { position: absolute; left: 50%; bottom: 8vh; translate: -50% 0; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
  font: 600 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.br-steps li { opacity: 0.45; transition: opacity 0.5s, color 0.5s; }
.br-steps li.on { opacity: 1; color: var(--sage-deep); }
@media (max-width: 760px) {
  .breathe-inner { grid-template-columns: 1fr; gap: 5svh; text-align: left; }
  .breathe-copy h2 { font-size: 46px; }
  .breathe-copy .lede { font-size: 15px; }
  .breathe-ring { width: min(72vw, 40svh); justify-self: center; }
  .br-steps { bottom: 4svh; gap: 18px; }
}
html.reduced .breathe { height: auto; padding: 16vh var(--gutter); }
html.reduced .br-steps { position: static; translate: none; justify-content: center; margin-top: 40px; }
html.reduced .br-disc { transform: scale(0.8); }

/* Treatments */
.treatments { padding: 16vh var(--gutter) 14vh; max-width: 1380px; margin: 0 auto; }
.tx-head { display: grid; gap: 14px; margin-bottom: 7vh; }
.tx-head h2 { max-width: 13ch; }
.tx-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.finder { position: sticky; top: 96px; background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 22px; padding: 28px; box-shadow: 0 30px 70px -40px rgba(60, 70, 55, 0.4); min-height: 440px; display: flex; flex-direction: column; }
.finder-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.finder-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.finder-dots li { width: 18px; height: 3px; border-radius: 2px; background: var(--line); transition: background 0.4s; }
.finder-dots li.on { background: var(--sage-deep); }
.finder-stage { flex: 1; display: grid; align-content: start; }
.fq h3 { font-size: clamp(30px, 2.6vw, 38px); margin: 6px 0 22px; max-width: 14ch; }
.fq-opts { display: grid; gap: 8px; }
.fq-opts button { text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); border-radius: 14px; padding: 15px 18px; cursor: pointer;
  font: 500 15px/1.3 var(--sans); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.fq-opts button::after { content: '→'; color: var(--sage); transition: transform 0.3s var(--ease); }
.fq-opts button:hover { background: #fff; border-color: rgba(75, 90, 71, 0.35); }
.fq-opts button:hover::after { transform: translateX(4px); }
.fq-opts button[aria-pressed="true"] { background: var(--sage-deep); color: var(--paper); border-color: var(--sage-deep); }
.fq-opts button[aria-pressed="true"]::after { color: var(--paper); }
.fr h3 { font-size: 34px; margin: 6px 0 6px; }
.fr > p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.fr-list { display: grid; gap: 10px; }
.fr-item { border-radius: 14px; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 6px; }
.fr-item:first-child { background: #fff; border-color: rgba(75, 90, 71, 0.3); }
.fr-item b { font: 400 24px/1.05 var(--serif); }
.fr-item .tx-mins { font-size: 12px; }
.fr-item p { margin: 0; color: var(--muted); font-size: 14px; }
.fr-actions { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.fr-actions .pill { padding: 10px 16px; font-size: 11px; }
.finder-foot { display: flex; justify-content: space-between; margin-top: 18px; min-height: 28px; }

.tx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tx-filters button { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.4); padding: 10px 16px; border-radius: 99px; cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); transition: background 0.3s, color 0.3s; }
.tx-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tx-list { border-top: 1px solid var(--line); }
.tx { border-bottom: 1px solid var(--line); transition: background 0.4s; }
.tx.flash { background: rgba(255, 255, 255, 0.55); }
.tx summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto 28px; align-items: baseline; gap: 18px; padding: 24px 6px; }
.tx summary::-webkit-details-marker { display: none; }
.tx-name { font: 400 clamp(28px, 2.7vw, 40px)/1.05 var(--serif); transition: transform 0.5s var(--ease), color 0.3s; }
.tx summary:hover .tx-name { transform: translateX(8px); color: var(--sage-deep); }
.tx-cat { font: 600 10px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tx-mins { font: 500 13px/1 var(--sans); color: var(--sage-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx summary i { position: relative; width: 14px; height: 14px; align-self: center; justify-self: end; }
.tx summary i::before, .tx summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform 0.45s var(--ease); }
.tx summary i::after { transform: rotate(90deg); }
.tx details[open] summary i::after { transform: rotate(0deg); }
.tx-body { padding: 0 6px 30px; display: grid; gap: 18px; max-width: 760px; }
.tx details[open] .tx-body { animation: txin 0.6s var(--ease); }
@keyframes txin { from { opacity: 0; transform: translateY(-8px); } }
.tx-sum { margin: 0; font-size: 18px; max-width: 46ch; }
.tx dl { margin: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.tx dt { font: 600 10px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 8px; }
.tx dd { margin: 0; color: var(--muted); font-size: 15px; }
.tx-body .pill { justify-self: start; }
.tx.out { display: none; }
@media (max-width: 980px) {
  .tx-grid { grid-template-columns: minmax(0, 1fr); }
  .finder { position: relative; top: 0; min-height: 0; }
}
@media (max-width: 760px) {
  .tx summary { grid-template-columns: 1fr auto 22px; gap: 12px; padding: 20px 2px; }
  .tx-cat { display: none; }
  .tx dl { grid-template-columns: 1fr; gap: 14px; }
  .finder { padding: 22px; border-radius: 18px; }
  .tx-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tx-filters button { flex: none; }
}

/* Materials interlude */
.materials { position: relative; padding: 6vh 0 18vh; display: grid; justify-items: center; overflow: hidden; }
.mat-img { width: min(1300px, 100% - 2 * var(--gutter)); aspect-ratio: 21 / 9; border-radius: 999px 999px 18px 18px; }
.mat-words { margin: -0.62em 0 0; position: relative; font: 400 clamp(52px, 10.5vw, 176px)/0.95 var(--serif); letter-spacing: -0.03em; text-align: center; white-space: nowrap; }
.mat-words span { display: inline-block; margin: 0 0.06em; }
.mat-words em { color: var(--sage-deep); }
.mat-note { color: var(--muted); max-width: 36ch; text-align: center; margin: 22px var(--gutter) 0; }
@media (max-width: 760px) { .mat-img { aspect-ratio: 4 / 5; border-radius: 999px 999px 14px 14px; } .mat-words { white-space: normal; font-size: 56px; margin-top: -0.9em; padding: 0 var(--gutter); } }

/* The space: stacked rooms, crossfaded while pinned */
.space { position: relative; }
.walk-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #d9dccf; }
.room { position: absolute; inset: 0; margin: 0; opacity: 0; }
.room:first-child { opacity: 1; }
.room .sr-frame { position: absolute; inset: 0; }
.room img { will-change: transform; }
.room .sr-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 24, 20, 0.35) 0%, rgba(18, 24, 20, 0) 26%, rgba(18, 24, 20, 0) 55%, rgba(18, 24, 20, 0.62) 100%); }
.room figcaption { position: absolute; left: var(--gutter); bottom: 12vh; max-width: min(520px, 84vw); color: #fbf8f1; font-size: 17px; display: grid; gap: 10px; }
.room figcaption b { font: 400 clamp(48px, 6.4vw, 100px)/0.95 var(--serif); letter-spacing: -0.02em; }
.room-n { font: 600 11px/1 var(--sans); letter-spacing: 0.26em; opacity: 0.8; }
.walk-stage::after { content: ''; position: absolute; inset: 0; z-index: 10; pointer-events: none; background: linear-gradient(270deg, rgba(18, 24, 20, 0.42), rgba(18, 24, 20, 0) 34%); }
.walk-head { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; gap: 4px; justify-items: end; z-index: 20; text-shadow: 0 1px 18px rgba(10, 16, 12, 0.35); }
.walk-head .eyebrow { color: #fbf8f1; opacity: 0.8; }
.walk-nav { display: grid; gap: 2px; justify-items: end; }
.walk-nav button { background: none; border: 0; cursor: pointer; padding: 6px 0; color: rgba(251, 248, 241, 0.6); font: 400 22px/1.1 var(--serif); transition: color 0.4s, transform 0.5s var(--ease); }
.walk-nav button[aria-current="true"] { color: #fff; transform: translateX(-10px); }
.walk-nav button:hover { color: #fff; }
.walk-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6vh; height: 1px; background: rgba(251, 248, 241, 0.25); z-index: 20; }
.walk-bar span { display: block; height: 100%; background: #fbf8f1; transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .walk-head { top: 84px; translate: none; left: var(--gutter); right: var(--gutter); justify-items: start; }
  .walk-stage::after { background: linear-gradient(180deg, rgba(18, 24, 20, 0.4), rgba(18, 24, 20, 0) 30%); }
  .walk-nav { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .walk-nav button { font-size: 18px; white-space: nowrap; flex: none; }
  .walk-nav button[aria-current="true"] { transform: none; }
  .room figcaption { bottom: 10svh; font-size: 15px; }
}
html.reduced .walk-stage { height: auto; overflow: visible; background: none; display: grid; gap: 8vh; padding: 12vh 0; }
html.reduced .room { position: relative; opacity: 1; aspect-ratio: 16 / 9; }
html.reduced .walk-head, html.reduced .walk-bar, html.reduced .walk-stage::after { display: none; }
html:not(.js) .walk-stage { height: auto; display: grid; gap: 4vh; }
html:not(.js) .room { position: relative; opacity: 1; aspect-ratio: 16 / 9; }

/* Team */
.team { padding: 18vh var(--gutter) 16vh; max-width: 1380px; margin: 0 auto; }
.team-head { display: grid; gap: 14px; margin-bottom: 8vh; }
.team-head h2 { max-width: 12ch; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.person { display: grid; gap: 8px; align-content: start; }
.person:nth-child(even) { margin-top: 10vh; }
.person-img { aspect-ratio: 3 / 4; border-radius: 999px 999px 10px 10px; margin-bottom: 14px; }
.mono { position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(250, 248, 243, 0.85); backdrop-filter: blur(6px); font: 400 18px/1 var(--serif); letter-spacing: 0.04em; color: var(--sage-deep); }
.person h3 { font-size: 32px; }
.person .role { margin: 0; font: 600 10px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-deep); }
.person p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 30ch; }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { gap: 14px; row-gap: 36px; } .person h3 { font-size: 24px; } .person p:last-child { font-size: 14px; } .person:nth-child(even) { margin-top: 6vh; } }

/* Booking */
.book { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 16vh var(--gutter); overflow: hidden; }
.book-bg { position: absolute; inset: -12% 0; }
.book-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(242, 238, 230, 0.35) 30%, rgba(242, 238, 230, 0.6) 100%); }
.book-card { position: relative; width: min(760px, 100%); background: rgba(250, 248, 243, 0.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 26px; padding: clamp(24px, 4.4vw, 56px); box-shadow: 0 40px 90px -50px rgba(60, 70, 55, 0.55); }
.book-head h2 { font-size: clamp(40px, 5vw, 66px); max-width: 12ch; }
.book-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 30px 0 26px; counter-reset: s; }
.book-steps li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 10px; font: 600 10px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: border-color 0.4s, color 0.4s; }
.book-steps li::before { content: '0' counter(s) ' '; opacity: 0.6; }
.book-steps li.done, .book-steps li[aria-current="step"] { border-color: var(--sage-deep); color: var(--ink); }
.bstep { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.bstep legend { font: 400 30px/1.1 var(--serif); padding: 0; margin-bottom: 16px; }
html.js .bstep { display: none; }
html.js .bstep.on { display: block; animation: txin 0.5s var(--ease); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choices label:not(.plain) { position: relative; cursor: pointer; }
.choices input[type="radio"] { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choices label > span { display: grid; gap: 4px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55);
  font: 500 15px/1.2 var(--sans); transition: background 0.25s, border-color 0.25s, color 0.25s; }
.choices label > span small { font-size: 12px; color: var(--muted); font-weight: 500; }
.choices label:hover > span { border-color: rgba(75, 90, 71, 0.4); background: #fff; }
.choices input:checked + span { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.choices input:checked + span small { color: rgba(250, 248, 243, 0.75); }
.choices input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.choices input:disabled + span { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(38, 42, 34, 0.3); }
.day-choices { grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-choices label > span { text-align: center; padding: 10px 4px; justify-items: center; }
.day-choices label > span small { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }
.day-choices label > span b { font: 400 26px/1 var(--serif); }
.slot-choices { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.slot-choices label > span { text-align: center; font-variant-numeric: tabular-nums; padding: 12px 6px; }
.slot-group { grid-column: 1 / -1; font: 600 10px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 10px 0 2px; }
.slot-group:first-child { margin-top: 0; }
.slot-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.plain { display: grid; gap: 6px; font: 600 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields label, .plain { display: grid; gap: 8px; font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
.book input:not([type="radio"]), .book select, .book textarea { font: 400 16px/1.3 var(--sans); color: var(--ink); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; letter-spacing: 0.01em; text-transform: none; width: 100%; resize: vertical; }
.book input:focus, .book select:focus, .book textarea:focus { outline: none; border-color: var(--sage-deep); background: #fff; }
.book-summary { margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; background: rgba(139, 154, 130, 0.14); font-size: 15px; }
.book-summary:empty { display: none; }
.book-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
html:not(.js) .book-nav [data-bnext], html:not(.js) .book-nav [data-bprev] { display: none; }
.book-nav [data-bprev] { visibility: hidden; }
.book-nav [data-bprev].on { visibility: visible; }
html.js .book-nav [data-bsubmit] { display: none; }
html.js .book-nav [data-bsubmit].on { display: inline-flex; }
html.js .book-nav [data-bnext].off { display: none; }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.book-done { display: grid; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); animation: txin 0.6s var(--ease); }
.book-done:focus { outline: none; }
.book-done h3 { font-size: clamp(36px, 4vw, 52px); }
.book-done p { margin: 0; }
.book-done .link-btn { justify-self: start; }
@media (max-width: 600px) {
  .choices { grid-template-columns: 1fr 1fr; }
  .day-choices { grid-template-columns: repeat(4, 1fr); }
  .slot-choices { grid-template-columns: repeat(3, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .book-steps li { font-size: 9px; letter-spacing: 0.1em; }
  .book-steps li::before { display: block; margin-bottom: 4px; }
  .bstep legend { font-size: 26px; }
}

/* Footer */
.foot { padding: 8vh var(--gutter) 90px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 10px; max-width: 1280px; margin: 0 auto; }
.foot p { margin: 0; max-width: 80ch; }
.foot strong { color: var(--ink); font-weight: 600; }
