/* Teewah Tranquility, built on the Oakame design tokens (see /design)
   Mobile first: base styles are for phones, min-width queries add tablet (721px+) and desktop (1025px+) */
:root {
  --walnut: #403a34;
  --linen: #f6f1eb;
  --charcoal: #333333;
  --slate: #555555;
  --line: 1px solid var(--walnut);

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --max: 1400px;
  --section: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --header-h: 60px;

  /* Button shape: a "sail" with two soft corners and two sharp ones.
     On hover it flips, like a wave rolling over. */
  --shape: 22px 4px 22px 4px;
  --shape-flip: 4px 22px 4px 22px;
  --shape-sm: 12px 3px 12px 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--linen);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.004em;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--walnut); overflow-wrap: break-word; }
::selection { background: var(--walnut); color: var(--linen); }
:focus-visible { outline: 1px solid var(--walnut); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.056em;
  line-height: 0.95;
  color: var(--walnut);
}
.display--md { font-size: clamp(32px, 9.4vw, 60px); line-height: 1.05; letter-spacing: -0.05em; }
.display--lg { font-size: clamp(40px, 11.6vw, 64px); }

/* Line and letter splitting */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .line > span { transform: none; }
.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.is-in .line:nth-child(3) > span { transition-delay: .16s; }

/* Reveal helpers */
[data-reveal="up"] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal="up"].is-in { opacity: 1; transform: none; }
[data-reveal="wipe"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
[data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
[data-reveal="wipe"] img { transform: scale(1.25); transition: transform 2s var(--ease); }
[data-reveal="wipe"].is-in img { transform: scale(1.08); }

.parallax { width: 100%; height: 100%; will-change: transform; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }

/* Roll link: text rolls up on hover */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll > span { display: inline-block; position: relative; transition: transform .6s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.roll:hover > span, .roll:focus-visible > span { transform: translateY(-100%); }

/* Pill button: outline sail shape with a walnut fill sweep, no arrows */
.pill {
  --pc: var(--walnut); --pc-hover: var(--linen);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border: var(--line); border-radius: var(--shape); overflow: hidden;
  font-size: 12px; font-weight: 600; letter-spacing: 0.083em; text-transform: uppercase; color: var(--walnut);
  isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), border-radius .6s var(--ease);
}
.pill__fill { position: absolute; inset: 0; background: var(--walnut); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.pill__text { display: inline-block; position: relative; overflow: hidden; height: 1.3em; line-height: 1.3; color: transparent; }
.pill__text::before, .pill__text::after { content: attr(data-text); position: absolute; left: 0; top: 0; transition: transform .6s var(--ease); }
.pill__text::before { transform: translateY(100%); color: var(--pc-hover); }
.pill__text::after { color: var(--pc); }
.pill:hover, .pill:focus-visible { border-radius: var(--shape-flip); }
.pill:hover .pill__fill, .pill:focus-visible .pill__fill { transform: none; }
.pill:hover .pill__text::after, .pill:focus-visible .pill__text::after { transform: translateY(-100%); }
.pill:hover .pill__text::before, .pill:focus-visible .pill__text::before { transform: none; }
.pill:active { transform: scale(.97); }
.pill--sm { min-height: 44px; min-width: 88px; padding: 0 20px; }

.tag { display: inline-flex; align-items: center; flex: none; height: 28px; padding: 0 12px; border: var(--line); border-radius: var(--shape-sm); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--walnut); white-space: nowrap; }

/* Curtain intro */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--linen);
  display: grid; place-items: center; transition: clip-path 1.2s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.curtain__word {
  font-size: clamp(64px, 20vw, 250px); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  letter-spacing: -0.056em; color: var(--walnut); line-height: 1; display: flex; overflow: hidden;
}
.curtain__word .ch { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.curtain__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: rgba(64,58,52,.2); }
.curtain__bar span { display: block; height: 100%; background: var(--walnut); transform-origin: left; transform: scaleX(0); animation: bar 1.6s var(--ease-in-out) .2s forwards; }
.curtain.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes rise { to { transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* Cursor (mouse only) */
.cursor { display: none; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  color: var(--linen); transition: transform .6s var(--ease), color .4s, background-color .4s;
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--walnut); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.header.is-solid { background: var(--linen); color: var(--walnut); }
.header.is-solid::after { transform: scaleX(1); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; padding: 8px 0; }
.brand__big { font-size: 20px; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.04em; text-transform: uppercase; }
.brand__small { font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 3px; }
.nav { display: none; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.083em; text-transform: uppercase; }
.pill--header { display: none; min-height: 40px; padding: 0 20px; border-color: currentColor; color: inherit; }
.header:not(.is-solid) .pill--header { --pc: var(--linen); --pc-hover: var(--walnut); }
.header:not(.is-solid) .pill--header .pill__fill { background: var(--linen); }
.burger { display: block; width: 44px; height: 44px; position: relative; margin-right: -8px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--linen); padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { background: var(--linen); color: var(--walnut); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-size: clamp(30px, 9.4vw, 60px); font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.05em;
  text-transform: uppercase; color: var(--walnut); line-height: 1.15; border-bottom: var(--line); padding: 10px 0;
  transform: translateY(30px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.menu-open .menu__nav a { transform: none; opacity: 1; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .05s; } .menu-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .15s; } .menu-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: .25s; }
.menu__foot { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--slate); }
.menu__foot a { padding: 8px 0; overflow-wrap: anywhere; }

/* Hero: word and footer sit in normal flow at the bottom, so they can never overlap */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--linen);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease-in-out); z-index: 1; }
.hero__slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.hero__slide.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18) translate3d(var(--mx, 0), var(--my, 0), 0); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1.06) translate3d(var(--mx, 0), var(--my, 0), 0); }
.hero__veil { position: absolute; inset: 0; background: rgba(40, 36, 32, .3); z-index: 3; pointer-events: none; }
.hero__word {
  position: relative; z-index: 4; padding: 0 var(--gutter); margin-bottom: 20px;
  font-size: clamp(64px, 17vw, 250px); line-height: .9; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  letter-spacing: -0.056em; text-transform: uppercase; color: var(--linen); white-space: nowrap;
}
.hero__letters { display: flex; overflow: hidden; padding-bottom: .04em; }
.hero__letters .ch { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero__letters.is-in .ch { transform: none; }
.hero__letters.is-out .ch { transform: translateY(-105%); transition-duration: .6s; transition-timing-function: var(--ease-in-out); }
.hero__foot {
  position: relative; z-index: 4; padding: 0 var(--gutter) 20px;
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
}
.hero__lead { max-width: 340px; font-size: 17px; line-height: 1.4; font-weight: 500; }
.hero__thumbs { display: flex; gap: 6px; }
.thumb { position: relative; flex: 1; height: 52px; overflow: hidden; opacity: .55; transition: opacity .4s; border-radius: var(--shape-sm); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumb.is-active { opacity: 1; }
.thumb i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--linen); transform: scaleX(0); transform-origin: left; }
.thumb.is-active i { animation: progress var(--dur, 6s) linear forwards; }
.hero.is-paused .thumb.is-active i, .hero.is-off .thumb.is-active i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__scroll { display: none; position: absolute; z-index: 4; top: 50%; right: var(--gutter); width: 1px; height: 80px; background: rgba(246,241,235,.35); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 30px; background: var(--linen); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { from { transform: translateY(-30px); } to { transform: translateY(80px); } }

/* Statement */
.statement { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); display: flex; flex-direction: column; align-items: center; }
.statement__text {
  align-self: stretch;
  font-size: clamp(26px, 7.4vw, 60px); line-height: 1.12; font-weight: 700; font-stretch: 112%; font-variation-settings: "wdth" 112;
  letter-spacing: -0.045em; text-transform: uppercase; color: var(--walnut); margin-bottom: 40px; text-wrap: balance;
}
.statement__text .w { opacity: .14; transition: opacity .35s linear; }
.statement__text .w.on { opacity: 1; }

/* Split */
.split {
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; border-top: var(--line);
}
.split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.split__copy { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.split__text { display: flex; flex-direction: column; gap: 20px; max-width: 460px; color: var(--charcoal); }
.split__small { width: 70%; aspect-ratio: 1; overflow: hidden; align-self: flex-end; }

/* Facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line); border-bottom: var(--line); }
.fact { padding: 24px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 190px; min-width: 0; }
.fact:nth-child(even) { border-left: var(--line); }
.fact:nth-child(n+3) { border-top: var(--line); }
.fact__num { font-size: clamp(52px, 15vw, 80px); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.056em; line-height: .9; color: var(--walnut); display: flex; align-items: baseline; gap: 4px; }
.fact__num b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.fact__num small { font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.fact__label { font-size: 15px; color: var(--slate); max-width: 180px; }

/* Levels */
.levels { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }
.levels__title { margin-bottom: 40px; }
.levels__grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
.level { min-width: 0; }
.level__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.level__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), clip-path 1s var(--ease-in-out); }
.level__img--alt { clip-path: inset(100% 0 0 0); transform: scale(1.15); }
.level__media:hover .level__img--alt, .level__media:focus-visible .level__img--alt { clip-path: inset(0 0 0 0); transform: scale(1); }
.level__media:hover .level__img:not(.level__img--alt) { transform: scale(1.08); }
.level__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 12px; border-bottom: var(--line); margin-bottom: 20px; }
.level__name { font-size: clamp(28px, 8.4vw, 50px); font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; min-width: 0; }
.level__text { max-width: 520px; }

/* Trio */
.trio { border-top: var(--line); padding-top: var(--section); }
.trio__words { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr; gap: 64px; }
.trio__item { min-width: 0; }
.trio__word { font-size: clamp(44px, 14vw, 88px); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.056em; text-transform: uppercase; line-height: 1; margin-bottom: 20px; }
.trio__img { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 20px; }
.trio__item p { max-width: 380px; }

.marquee { margin-top: var(--section); border-top: var(--line); border-bottom: var(--line); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee span { font-size: clamp(32px, 9vw, 60px); font-weight: 700; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.05em; text-transform: uppercase; color: var(--walnut); white-space: nowrap; padding: 0 22px; }
.marquee i { width: 12px; height: 12px; border: 1px solid var(--walnut); border-radius: 6px 2px; flex: none; }

/* Inside */
.inside { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); display: grid; grid-template-columns: 1fr; gap: 48px; }
.inside__head { display: flex; flex-direction: column; gap: 24px; }
.inside__intro { max-width: 400px; }
.list { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.list__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 0; border-bottom: var(--line); position: relative; }
.list__row span:first-child { font-size: 12px; font-weight: 700; letter-spacing: 0.083em; text-transform: uppercase; color: var(--walnut); padding-top: 4px; transition: transform .5s var(--ease); }
.list__row span:last-child { font-size: 17px; line-height: 1.45; color: var(--charcoal); }

/* FAQ */
.faq { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); display: grid; grid-template-columns: 1fr; gap: 48px; border-top: var(--line); }
.faq__side { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.stack { font-size: clamp(44px, 13vw, 120px); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.056em; line-height: .92; text-transform: uppercase; }
.faq__img { aspect-ratio: 4 / 3; overflow: hidden; max-width: 420px; }
.faq__list { border-top: var(--line); min-width: 0; }
.acc { border-bottom: var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 0; font-size: 18px; font-weight: 600; color: var(--walnut);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary span { transition: transform .5s var(--ease); }
.acc summary i { position: relative; width: 18px; height: 18px; flex: none; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--walnut); transition: transform .5s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i::after { transform: rotate(0); }
.acc[open] summary i::before { transform: rotate(180deg); }
.acc__body { display: flex; flex-direction: column; gap: 14px; padding: 0 0 24px; color: var(--charcoal); overflow: hidden; }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr; border-top: var(--line); border-bottom: var(--line); }
.reviews__media { overflow: hidden; min-height: 300px; height: 52vh; }
.reviews__body { padding: 56px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; }
.reviews__track { display: grid; }
.review { grid-area: 1 / 1; margin: 0; }
.review p { font-size: clamp(22px, 6vw, 40px); line-height: 1.22; font-weight: 600; letter-spacing: -0.035em; color: var(--walnut); text-indent: 1.6em; }
.review .wl { display: inline-block; overflow: hidden; vertical-align: top; text-indent: 0; }
.review .wl > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.review.is-active .wl > span { transform: none; }
.review.is-leaving .wl > span { transform: translateY(-110%); transition-duration: .5s; }
.reviews__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reviews__count { font-size: 12px; font-weight: 600; letter-spacing: 0.083em; text-transform: uppercase; color: var(--slate); text-align: center; white-space: nowrap; }
.reviews__count b { color: var(--walnut); }

/* Gallery: swipe row on phones, pinned horizontal scroll from tablet up */
.gallery { position: relative; }
.gallery__pin { display: flex; flex-direction: column; gap: 32px; padding: var(--section) 0; }
.gallery__title { padding: 0 var(--gutter); font-size: clamp(36px, 10.4vw, 120px); }
.gallery__track {
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); height: 380px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.g { margin: 0; height: 100%; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; flex: none; scroll-snap-align: center; }
.g--tall { height: 100%; aspect-ratio: 3 / 4; }
.g--wide { height: 78%; aspect-ratio: 3 / 2; }
.g:nth-child(even) { align-self: flex-end; }
.g img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease); }

/* Booking */
.book { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); display: grid; grid-template-columns: 1fr; gap: 48px; position: relative; }
.book__head { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.book__head p { max-width: 360px; }
.book__phone { align-self: flex-start; font-size: clamp(28px, 8vw, 40px); font-weight: 700; letter-spacing: -0.04em; color: var(--walnut); font-stretch: 112%; font-variation-settings: "wdth" 112; }
.form { display: flex; flex-direction: column; gap: 32px; min-width: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.form__grid { display: grid; grid-template-columns: 1fr; column-gap: 20px; }
.field { position: relative; display: block; border-bottom: var(--line); padding-top: 26px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--walnut); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
/* 16px+ inputs stop iPhones zooming in on focus */
.field input, .field textarea { width: 100%; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--walnut); padding: 12px 0; outline: none; resize: vertical; border-radius: 0; }
.field > span { position: absolute; left: 0; top: 38px; max-width: 100%; font-size: 17px; color: var(--slate); pointer-events: none; transform-origin: left top; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .45s var(--ease), color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-30px) scale(.62); color: var(--walnut); letter-spacing: .04em; }
.field.is-error { border-bottom-color: #8a3b2a; }
.field.is-error > span { color: #8a3b2a; }
.field--count { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 8px; }
.field--count .count__label { position: static; transform: none; font-size: 17px; color: var(--slate); }
.count { display: flex; align-items: center; gap: 4px; }
.count button { width: 44px; height: 44px; border: var(--line); border-radius: var(--shape-sm); font-size: 18px; line-height: 1; color: var(--walnut); transition: background-color .3s, color .3s, transform .2s, border-radius .5s var(--ease); }
.count button:hover { background: var(--walnut); color: var(--linen); border-radius: 3px 12px 3px 12px; }
.count button:active { transform: scale(.9); }
.count output { min-width: 36px; text-align: center; font-size: 20px; font-weight: 700; color: var(--walnut); font-variant-numeric: tabular-nums; }
.count output.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: translateY(-6px); } }

/* Filled walnut button: the one main action, sail shape, no arrow */
.btn {
  position: relative; align-self: stretch; display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 40px; background: var(--walnut); color: var(--linen); border-radius: 28px 4px 28px 4px; overflow: hidden;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-radius .6s var(--ease), transform .2s;
}
.btn:hover, .btn:focus-visible { border-radius: 4px 28px 4px 28px; }
.btn:active { transform: scale(.98); }
.btn__text { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; color: transparent; }
.btn__text::before, .btn__text::after { content: attr(data-text); position: absolute; left: 0; color: var(--linen); transition: transform .6s var(--ease); }
.btn__text::before { top: 0; } .btn__text::after { top: 100%; }
.btn:hover .btn__text::before, .btn:hover .btn__text::after { transform: translateY(-100%); }
.form__note { font-size: 14px; color: #8a3b2a; min-height: 1.4em; }
.form__note:empty { display: none; }
.thanks { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; display: flex; align-items: center; opacity: 0; pointer-events: none; transform: translateY(30px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s; }
.book.is-sent .form { opacity: 0; transform: translateY(-30px); pointer-events: none; }
.book.is-sent .thanks { opacity: 1; transform: none; }

/* Footer */
.footer { border-top: var(--line); overflow: hidden; }
.footer__img { height: 50vh; min-height: 300px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px var(--gutter); border-bottom: var(--line); align-items: start; }
.footer__line { max-width: 280px; color: var(--slate); }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 18px; font-weight: 600; color: var(--walnut); }
.footer__top { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.083em; text-transform: uppercase; color: var(--walnut); }
.footer__word {
  display: flex; justify-content: space-between; padding: 20px var(--gutter) 0;
  font-size: 15.4vw; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.07em;
  line-height: .82; text-transform: uppercase; color: var(--walnut); overflow: hidden;
}
.footer__word .ch { display: inline-block; transform: translateY(calc(var(--p, 0) * 100%)); }
.footer__legal { padding: 20px var(--gutter) 24px; font-size: 12px; color: var(--slate); letter-spacing: 0.04em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: var(--linen); display: grid; place-items: center; padding: 72px var(--gutter); clip-path: inset(50% 50% 50% 50%); transition: clip-path .9s var(--ease-in-out); visibility: hidden; }
.lightbox.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; transform: scale(1.1); transition: transform 1.2s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 14px; right: var(--gutter); width: 48px; height: 48px; border: var(--line); border-radius: 18px 4px 18px 4px; transition: border-radius .5s var(--ease); }
.lightbox__close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: var(--walnut); transform: rotate(45deg); transition: transform .5s var(--ease); }
.lightbox__close span + span { transform: rotate(-45deg); }
.lightbox__close:hover { border-radius: 4px 18px 4px 18px; }
.lightbox__close:hover span { transform: rotate(135deg); } .lightbox__close:hover span + span { transform: rotate(45deg); }

/* ---------- Mouse and trackpad only ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
    background: var(--walnut); color: var(--linen); place-items: center;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    transform: translate3d(-200px, -200px, 0) scale(0); transition: scale .4s var(--ease);
  }
  .cursor.is-on { scale: 1; }
  .cursor span { transition: opacity .3s; }
  .thumb:hover { opacity: .9; } .thumb:hover img { transform: scale(1.1); }
  .list__row:hover span:first-child { transform: translateX(10px); }
  .acc summary:hover span { transform: translateX(10px); }
  .g:hover img { transform: scale(1.04); }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 721px) {
  :root { --section: 96px; --header-h: 68px; }
  body { font-size: 18px; }
  .display--lg { font-size: clamp(50px, 9.4vw, 120px); }
  .pill--header { display: inline-flex; }

  .hero__word { margin-bottom: 28px; }
  .hero__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; }
  .hero__lead { font-size: 18px; }
  .hero__thumbs { gap: 8px; flex: none; }
  .thumb { flex: none; width: 96px; height: 64px; }
  .hero__scroll { display: block; }

  .statement__text { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 48px; }

  .split { grid-template-columns: 7fr 5fr; gap: 20px; }
  .split__copy { gap: 40px; padding-top: 40px; }
  .split__small { width: 62%; margin-top: 20px; }

  .fact { padding: 40px var(--gutter); gap: 40px; min-height: 260px; }
  .fact__num { font-size: clamp(80px, 10vw, 180px); gap: 6px; }
  .fact__num small { font-size: 20px; }
  .fact__label { font-size: 18px; }

  .levels__title { margin-bottom: 68px; }
  .levels__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .level--offset { margin-top: 160px; }
  .level__name { font-size: clamp(30px, 4vw, 50px); }

  .list__row { grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; }
  .list__row span:last-child { font-size: 20px; }
  .acc summary { font-size: 20px; padding: 24px 0; }
  .acc__body { padding: 0 60px 28px 0; }

  .reviews { grid-template-columns: 1fr 1fr; min-height: 640px; }
  .reviews__media { height: auto; min-height: 420px; }
  .reviews__body { padding: var(--section) var(--gutter) 40px 40px; }
  .reviews__nav { justify-content: flex-start; gap: 20px; }

  /* the pinned gallery is driven by main.js above 720px */
  .gallery__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; justify-content: center; gap: 40px; padding: calc(var(--header-h) + 20px) 0 40px; }
  .gallery__title { white-space: nowrap; font-size: clamp(44px, 7.2vw, 120px); }
  .gallery__track { gap: 20px; width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; height: min(56vh, 520px); }

  .form { gap: 40px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field input, .field textarea { font-size: 20px; }
  .field > span, .field--count .count__label { font-size: 18px; }
  .count button { width: 40px; height: 40px; }
  .btn { align-self: flex-start; }

  .footer__img { height: 60vh; min-height: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr auto; gap: 20px; }
  .footer__links { font-size: 20px; gap: 8px 28px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {
  :root { --section: 120px; }
  .header { gap: 32px; }
  .nav { display: flex; }
  .burger { display: none; }

  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { min-height: 300px; }
  .fact:nth-child(n+3) { border-top: 0; }
  .fact + .fact { border-left: var(--line); }

  .trio__words { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .trio__item:nth-child(2) { margin-top: 80px; }
  .trio__item:nth-child(3) { margin-top: 160px; }
  .trio__word { font-size: clamp(44px, 5.4vw, 96px); }

  .inside, .faq, .book { grid-template-columns: 5fr 7fr; gap: 20px; }
  .inside__head, .faq__side { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .inside__head { gap: 28px; }
  .faq__side { gap: 40px; }
  .stack { font-size: clamp(50px, 7vw, 120px); }
  .book__head { gap: 28px; }
  .thanks { inset: var(--section) var(--gutter); left: auto; width: calc(58.333% - 20px); top: var(--section); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal="up"], .line > span, .hero__letters .ch, .review .wl > span { opacity: 1 !important; transform: none !important; }
  [data-reveal="wipe"] { clip-path: none !important; }
  .statement__text .w { opacity: 1; }
  .parallax, .marquee__track { transform: none !important; }
}
