:root {
  --cream: #fbf6e3;          /* the pill, the panel and the words */
  --cream-soft: #efe8d2;     /* the panel, a shade deeper at the bottom */
  --ink: #26352a;            /* words on the cream */
  --ink-soft: #6f7a68;       /* quiet words on the cream */
  --sage: #7d9076;           /* the square tile beside the pill */

  --lodge-deep: #1f3325;     /* The Lodge: forest green */
  --lodge-lit: #4b6f50;
  --springs-deep: #4a2a12;   /* Hot Springs: copper */
  --springs-lit: #a6622a;
  --meadow-deep: #3f4f3b;    /* Meadow Cabins: sage */
  --meadow-lit: #8a9c80;
  --stables-deep: #3e3222;   /* Ridge Stables: dark cream, the colour of saddle leather and dry grass */
  --stables-lit: #9b845a;

  --deep: var(--lodge-deep);
  --lit: var(--lodge-lit);
  --serif: 'Fraunces Variable', Georgia, serif;
  --sans: 'Instrument Sans Variable', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--deep); color: var(--cream); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }

.stage { position: relative; height: 100vh; min-height: 300px; overflow: hidden; isolation: isolate; }

/* ---------------------------------------------------------------- the ground of each area */
.scene { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(120% 90% at 50% 38%, var(--lit) 0%, color-mix(in oklab, var(--lit) 45%, var(--deep)) 42%, var(--deep) 100%); }
.scene__lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene__light { position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 214, .2), rgba(255, 246, 214, .06) 55%, transparent);
  mix-blend-mode: soft-light; pointer-events: none; }
.scene__grain { position: absolute; inset: -50%; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.scene::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .28), transparent 22%, transparent 70%, rgba(0, 0, 0, .34)); }

/* ---------------------------------------------------------------- header */
.head { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 3.4vh, 28px) clamp(16px, 4vw, 36px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 18px; font-variation-settings: 'opsz' 36, 'SOFT' 60; letter-spacing: .005em; }
.brand__sub { margin-top: 3px; font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; }
.inquire { color: var(--cream); text-decoration: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.inquire__in { position: relative; display: inline-flex; flex-direction: column; height: 1.3em; overflow: hidden; line-height: 1.3; }
.inquire__in span { transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
@media (hover: hover) { .inquire:hover .inquire__in span { transform: translateY(-100%); } }

/* ---------------------------------------------------------------- the area */
.area { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; padding: 0 20px; }
.area__eyebrow { margin: 0 0 clamp(8px, 1.8vh, 16px); font-size: clamp(9px, 1.4vh, 11.5px); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; opacity: .78; }
.area__title { margin: 0; font-family: var(--serif); font-weight: 340; font-size: clamp(34px, min(10.5vw, 15vh), 124px); line-height: 1.02;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 0; letter-spacing: -.012em; text-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 18px 40px rgba(0, 0, 0, .18); }
.area__title .w { display: inline-block; overflow: hidden; padding: 0 .02em .1em; margin-bottom: -.1em; vertical-align: top; }
.area__title .c { display: inline-block; will-change: transform; }
.area__line { max-width: 34em; margin: clamp(8px, 2vh, 18px) auto 0; font-family: var(--serif); font-style: italic; font-weight: 330;
  font-size: clamp(13px, min(2.1vw, 2.6vh), 19px); line-height: 1.4; opacity: .88; }
.area__facts { list-style: none; display: flex; justify-content: center; gap: 0; margin: clamp(10px, 2.6vh, 22px) 0 0; padding: 0;
  font-size: clamp(9px, 1.35vh, 11px); letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.area__facts li { padding: 0 14px; }
.area__facts li + li { border-left: 1px solid rgba(251, 246, 227, .32); }

/* ---------------------------------------------------------------- the dock: tile, pill and panel */
.scrim { position: absolute; inset: 0; z-index: 3; background: radial-gradient(90% 70% at 50% 100%, rgba(10, 14, 10, .5), rgba(10, 14, 10, .18)); opacity: 0; pointer-events: none; }
.dock { position: absolute; z-index: 4; left: 50%; bottom: clamp(12px, 3.6vh, 30px); transform: translateX(-50%); width: min(330px, calc(100vw - 32px)); }
.dock__row { display: flex; gap: 4px; height: clamp(40px, 6.4vh, 48px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .22)); }
.dock__tile { flex: none; width: clamp(40px, 6.4vh, 48px); display: grid; place-items: center; background: var(--sage); border-radius: 3px; }
.dock__tile svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-linejoin: round; }

.pill { position: relative; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 0 16px;
  border: 0; border-radius: 3px; background: linear-gradient(to bottom, #fffdf1, var(--cream)); color: var(--ink); cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(38, 53, 42, .06), inset 0 1px 0 #fff;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); -webkit-tap-highlight-color: transparent; }
.pill:active, .pill.is-pressed { transform: scale(.975); transition-duration: .12s; }
.pill:focus-visible { outline: 1px solid var(--cream); outline-offset: 3px; }
.pill__label { position: relative; overflow: hidden; height: 1.4em; line-height: 1.4; display: block; }
.pill__words { display: block; white-space: nowrap; }
.pill__chev { position: relative; width: 16px; height: 16px; overflow: hidden; flex: none; }
.pill__chev svg { position: absolute; inset: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1); }
.pill__chev svg:last-child { transform: translateY(100%); }
.pill.is-hover .pill__chev svg:first-child, .pill[aria-expanded='true'] .pill__chev svg:first-child { transform: translateY(-100%); }
.pill.is-hover .pill__chev svg:last-child, .pill[aria-expanded='true'] .pill__chev svg:last-child { transform: translateY(0); }
.pill[aria-expanded='true'] .pill__chev { transform: rotate(180deg); transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.pill__chev { transition: transform .5s cubic-bezier(.65, 0, .35, 1); }

.panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); overflow: hidden; border-radius: 3px; }
.panel[hidden] { display: block; visibility: hidden; }
.panel__inner { position: relative; padding: clamp(10px, 1.8vh, 16px) 8px 8px; color: var(--ink);
  background: linear-gradient(to bottom, #fffdf1, var(--cream) 40%, var(--cream-soft)); box-shadow: inset 0 0 0 1px rgba(38, 53, 42, .06), inset 0 1px 0 #fff; }
.panel__head { margin: 0 10px clamp(4px, 1vh, 8px); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.panel__list { list-style: none; margin: 0; padding: 0; }
.panel__item { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; padding: clamp(6px, 1.25vh, 10px) 10px clamp(6px, 1.25vh, 10px) 22px;
  border: 0; border-radius: 2px; background: none; color: inherit; cursor: pointer; text-align: left; opacity: .58; transition: opacity .3s, background-color .3s; }
.panel__item[aria-current='true'], .panel__item.is-hover { opacity: 1; }
.panel__item.is-hover { background: rgba(38, 53, 42, .045); }
.panel__item:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.panel__name { font-family: var(--serif); font-size: clamp(16px, 2.6vh, 20px); font-variation-settings: 'opsz' 36, 'SOFT' 50; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.panel__item.is-hover .panel__name { transform: translateX(3px); }
.panel__what { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.panel__mark { position: absolute; left: 18px; top: 0; width: 1.5px; height: 18px; border-radius: 1px; background: var(--ink); opacity: 0; transform-origin: 50% 50%; }

/* ---------------------------------------------------------------- the curtain */
.veil { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(100% 80% at 50% 45%, var(--veil-lit, #4b6f50), var(--veil-deep, #1f3325)); clip-path: inset(0 100% 0 0); pointer-events: none; }
.comet { width: clamp(70px, min(16vw, 20vh), 120px); height: auto; overflow: visible; }
.comet__track { fill: none; stroke: var(--cream); stroke-opacity: .14; stroke-width: 1; }
.comet__trail { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.comet__head { fill: var(--cream); filter: drop-shadow(0 0 4px rgba(255, 249, 225, .7)); }
.comet__spin { transform-origin: 60px 60px; }
.veil__to { margin: 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream); opacity: .8; }

/* ---------------------------------------------------------------- the drawn pointer of the autopilot */
.hand { position: absolute; z-index: 8; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  fill: #fff; stroke: #1b241d; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); }

@media (max-width: 520px) {
  .area__facts li { padding: 0 9px; }
  .brand__name { font-size: 16px; }
}
