/* ============================================================
   AVEA — design A, Night / Day (D-2026-10-24-01), in Postal.id's
   Fourmula look (AVEA D-2026-11-03-01, A-084).
   Postal.id's layout and components — a fixed header capsule,
   a menu panel, pill buttons, large rounded panels, outlined
   chips, a label column on the left, a footer card with the
   large wordmark — in Postal.id's own colours, type and motion,
   read from proofli's apps/web/app/[locale]/fourmula.css and
   globals.css, with AVEA's wordmark. Night is the default;
   <html data-theme="day"> is Day. Every page uses it: the inner
   pages are the home page's blocks plus a few of their own, at
   the end.
   ============================================================ */

/* — Self-hosted Hanken Grotesk (variable; 400 and 500 used), the face after Apple's own — */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* — The two colour sets: Fourmula's, by role. Every colour on the page comes from here. — */
:root {
  color-scheme: dark;
  --bg:      #020108;                  /* page: ink (Fourmula --mainbg) */
  --bg0:     #02010800;                /*   its see-through twin, for the marquee's edge fades */
  --raised:  #111111;                  /* panels and the footer card (--secondbg) */
  --card:    #020108;                  /* card inside a panel: the page colour */
  --menu:    #1A1A1A;                  /* menu panel (Fourmula's raised, --dots-pattern) */
  --dots:    #1A1A1A;                  /* the faint dot pattern behind the opening section */
  --cap:     #272727;                  /* header capsule (--menu) */
  --capfg:   #FFFFFF;                  /*   its text: white in both modes */
  --capsoft: #FFFFFFA3;                /*   its quieter links */
  --capline: #FFFFFF33;                /*   the ring of the buttons inside it (--menu-colors) */
  --capbtn:  #FFFFFF;                  /*   its small primary button: white with ink text in both modes */
  --capbtnfg: #020108;
  --line:    #2A2A30;                  /* rules (--lines) */
  --fg:      #FFFFFF;                  /* text at 100% (--fonts-100) */
  --body:    #FFFFFFA3;                /* text at 64%: secondary text (--fonts-64) */
  --soft:    #FFFFFF80;                /* text at 50%: a big heading's second line, 24px and up in Day (--fonts-50) */
  --faint:   #FFFFFF4D;                /* text at 30%: the outlined pill's ring (--fonts-30) */
  --hint:    #FFFFFF33;                /* text at 20%: chip and outline-button rings (--fonts-20) */
  --label:   #FFFFFFA3;                /* small labels */
  --chip:    #FFFFFF33;                /* chip ring */
  --pri:     #FFFFFF;                  /* primary button: the text colour, filled */
  --prifg:   #020108;                  /*   and its text: the page colour */
  --ghost:   #FFFFFF33;                /* outline button ring */
  --ghostfg: #FFFFFFA3;                /*   and its text */
  --dot:     #FFFFFF;                  /* dots: full-strength text */
  --hover:   #FF6B02;                  /* Fourmula's one accent: a primary button while the pointer is on it, nowhere else */
  --hoverfg: #FFFFFF;

  /* Postal.id's highlight gradient (D-2026-11-02-09), blue to a soft violet a quarter down, then a long fade to orange.
     Since A-088 (D-2026-11-11-25) no surface paints it: its violet is the foot panels' flat colour, and its blue to orange
     are the seven offer cards' colours. Its text tokens below serve the flat violet panel. */
  --grad:     linear-gradient(#3A54FF, #7A67C5 23%, #FD7B03);
  --gradfg:   #FFFFFF;                 /*   its text */
  --gradsoft: rgba(255,255,255,0.9);   /*   the soft second line of its heading */
  --gradline: rgba(255,255,255,0.55);  /*   its label chip's ring */
  --glass:    rgba(12,8,30,0.35);      /*   the darker see-through panel */
  --glow:     0 30px 80px -30px rgba(58,84,255,0.4);   /* the soft glow under it */

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fade: background-color .35s ease, color .35s ease, border-color .35s ease;
  --quick: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg:      #FFFFFF;
  --bg0:     #FFFFFF00;
  --raised:  #F7F7F7;
  --card:    #FFFFFF;
  --menu:    #D9D9D9;
  --dots:    #D9D9D9;
  --cap:     #020108;
  --line:    #D7D7D6;
  --fg:      #020108;
  --body:    #020108A3;
  --soft:    #02010880;                /* large text only: 24px and up */
  --faint:   #0201084D;
  --hint:    #02010833;
  --label:   #020108A3;
  --chip:    #02010833;
  --pri:     #020108;
  --prifg:   #FFFFFF;
  --ghost:   #02010833;
  --ghostfg: #020108A3;
  --dot:     #020108;
}

/* Every colour fades with the mode. */
body, body * { transition: var(--fade); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4, strong, b { font-weight: 500; }      /* nothing heavier than 500 */
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a, button { transition: var(--fade), opacity .2s ease; }
a:hover { opacity: .64; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.capsule :focus-visible { outline-color: var(--capfg); }

.soft { color: var(--soft); }
.dot { display: block; flex: none; width: .4rem; height: .4rem; border-radius: 999px; background: var(--dot); }

/* ---------- Buttons: design A's three, in Fourmula's dress ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .9rem 1.6rem;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  transition: var(--quick);
}
/* Below 360px a button's words may wrap to a second line rather than run past its box or the page; it keeps its variant
   and its pill shape. At 320px "Bring 3T3RN4L to your property" was 288px wide and made the page scroll sideways
   (A-197, revision 6). */
@media (max-width: 359px) { .btn { white-space: normal; } }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--pri); color: var(--prifg); }
/* The orange, while the pointer is on it — never on keyboard focus, which has its own ring (AVEA D-2026-11-03-03). */
.btn--primary:hover { background: var(--hover); color: var(--hoverfg); opacity: 1; }
.btn--outline { border-color: var(--ghost); background: transparent; color: var(--ghostfg); }   /* clear on a <button> too: never the browser's grey (A-088 In scope item 15) */
.btn--outline:hover { background: var(--raised); color: var(--fg); opacity: 1; }
.btn--arrow { width: 64px; height: 64px; padding: 0; background: var(--pri); color: var(--prifg); }
.btn--arrow:hover { background: var(--hover); color: var(--hoverfg); opacity: 1; transform: scale(.9); }
.btn--arrow svg { width: 22px; height: 22px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Chips, pills and labels ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--chip); border-radius: 999px; padding: .55rem 1.1rem; font-size: 15px; color: var(--body); background: var(--bg); white-space: nowrap; }
/* The outlined pill with a pulsing dot: the eyebrow over a heading, the label on a panel. */
.tag {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: 14px;
}
.tag .dot { animation: pulse 2s ease infinite; }
.label { font-size: 14px; color: var(--label); }

/* ============================================================
   HEADER — one capsule: the wordmark, the page links, Menu,
   Night/Day, member sign-in and "For hotels". Fixed.
   ============================================================ */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 90; pointer-events: none; }
.head__bar { display: flex; align-items: center; padding: 20px 32px; }
.capsule, .menu { pointer-events: auto; }

.capsule { display: flex; align-items: center; gap: 18px; max-width: 100%; background: var(--cap); color: var(--capfg); border-radius: 999px; padding: 6px 6px 6px 22px; }
.capsule__mark { display: flex; flex: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; letter-spacing: .32em; white-space: nowrap; }
/* The mark beside the name (A-192; avea-site D-2026-11-21-05, -07, "This is the small logo"): the glass infinity
   band itself, shrunk, in its own colours in Night and Day, at the Campus two-pager's size beside its name: 40/13em wide,
   46.2 × 24.0px at the name's 15px, in the band's proportion (2326 : 1212). It dims with the link and never turns. */
.capsule__mark img { flex: none; width: calc(40em / 13); height: auto; aspect-ratio: 2326 / 1212; }
/* The name at the top left (A-176, A-197; avea-site D-2026-11-20-21): 3T3RN4L, said "Eternal", whose E/3, E/3 and A/4
   turn together like a coin, each spinning round its own upright (A-192; avea-site D-2026-11-22-02, the studio's option b:
   its film's 4em depth), so it reads ETERNAL at first paint, then 3T3RN4L, ETERNAL, 3T3RN4L, at rest on 3T3RN4L
   after 4.5 s; and ETERNAL, then 3T3RN4L again while the pointer is on it, at rest after 2.25 s. Keyboard focus does not
   start it.
   Only CSS, so it is the same without JavaScript; the site's one reduced-motion rule (end of file) stops it, and then
   the name is 3T3RN4L from the first paint.
   At rest nothing is turned: the 3s and the 4 face the viewer, the Es and the A are turned away with their backs hidden.
   Each turning letter sits in a slot as wide as its wider face, so the name never changes width. A screen reader reads
   only the hidden "3T3RN4L"; the turning letters are hidden from it. Its hover dims it at once: nothing fades on the name. */
.capsule__mark { transition: var(--fade); }
.name__said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name__turn { display: inline-grid; margin-right: .32em; letter-spacing: 0; perspective: 4em; }
.name__open, .name__hover { display: grid; transform-style: preserve-3d; }
.name__now, .name__was { grid-area: 1 / 1; justify-self: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.name__was { transform: rotateY(180deg); }
.name__open { animation: name-open 4.5s ease-in-out; }
.capsule__mark:hover .name__hover { animation: name-hover 2.25s ease-in-out; }
@keyframes name-open {
  0%, 20%  { transform: rotateY(180deg); }   /* ETERNAL */
  35%, 55% { transform: rotateY(360deg); }   /* 3T3RN4L */
  70%, 85% { transform: rotateY(540deg); }   /* ETERNAL */
  100%     { transform: rotateY(720deg); }   /* 3T3RN4L, as at rest */
}
@keyframes name-hover {
  0%       { transform: rotateY(0deg); }     /* 3T3RN4L */
  30%, 70% { transform: rotateY(180deg); }   /* ETERNAL */
  100%     { transform: rotateY(360deg); }   /* 3T3RN4L, as at rest */
}
.capsule__links { display: flex; gap: 18px; font-size: 14px; }
.capsule__links a { color: var(--capsoft); }
.capsule__menu {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 4px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-size: 15px;
  letter-spacing: -.02em;
  cursor: pointer;
}
.capsule__menu:hover { opacity: .64; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 16px; height: 1px; background: currentColor; transition: var(--fade), transform .25s ease; }
.capsule__menu[aria-expanded="true"] .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.capsule__menu[aria-expanded="true"] .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
.capsule__theme, .capsule__account {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--capline);
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.capsule__theme:hover, .capsule__account:hover { border-color: var(--capsoft); opacity: 1; }
.capsule__theme svg, .capsule__account svg { width: 17px; height: 17px; }
.icon-sun, [data-theme="day"] .icon-moon { display: none; }
[data-theme="day"] .icon-sun { display: block; }
.capsule .btn--primary { padding: .6rem 1.1rem; font-size: 14px; background: var(--capbtn); color: var(--capbtnfg); }
.capsule .btn--primary:hover { background: var(--hover); color: var(--hoverfg); }

.lessonbar { position: fixed; right: 32px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 14px; padding: 6px; background: var(--cap); color: var(--capfg); border-radius: 999px; }
.lessonbar :focus-visible { outline-color: var(--capfg); }
.lessonbar__prev { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--capline); border-radius: 999px; color: inherit; }
.lessonbar__prev:hover { border-color: var(--capsoft); opacity: 1; }
.lessonbar svg { flex: none; width: 17px; height: 17px; }
.lessonbar__where { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.lessonbar__course { overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--capsoft); }
.lessonbar .btn--primary { gap: 8px; padding: .6rem 1rem .6rem 1.1rem; font-size: 14px; background: var(--capbtn); color: var(--capbtnfg); }
.lessonbar .btn--primary:hover { background: var(--hover); color: var(--hoverfg); }
.lessonbar + .foot { margin-bottom: 88px; }
@media (max-width: 680px) {
  .lessonbar { left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .lessonbar__where { flex: 1; }
}
/* Small phones (360px and less, 11 Nov 2026): "Free lesson 3 of 10" was cut short behind the button, so the button keeps
   only its arrow, a round 40px white button like the back arrow; its spoken name stays "Next lesson: …" or "All courses". */
@media (max-width: 370px) {
  .lessonbar__label { display: none; }
  .lessonbar .btn--primary { width: 40px; height: 40px; padding: 0; justify-content: center; }
}

/* ---------- The menu panel, dropping from behind the capsule ---------- */
.menu {
  position: fixed;
  top: 84px;
  left: clamp(16px, 2.2vw, 32px);
  right: clamp(16px, 2.2vw, 32px);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: clamp(24px, 2.8vw, 40px);
  border-radius: 32px;
  background: var(--menu);
  color: var(--fg);
  box-shadow: 0 24px 60px -24px rgba(2,1,8,.5);
  transform: translateY(-16px);
  opacity: 0;
  visibility: hidden;
  transition: var(--fade), transform .3s var(--ease), opacity .3s ease, visibility .3s;
}
.menu.is-open { transform: none; opacity: 1; visibility: visible; }
.menu__group { flex: 1 1 220px; display: flex; flex-direction: column; gap: 20px; }
.menu__group + .menu__group { border-left: 1px solid var(--line); padding-left: 40px; }
.menu__label, .foot__label { font-size: 12px; color: var(--body); }
.menu__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 16px; }
.menu__links--big { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.menu__note { color: var(--body); }
.menu__actions { flex: 0 1 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }

.hero {
  display: flex;
  flex-direction: column;
  padding: 104px 32px 0;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(20px, 3vw, 40px); padding-top: clamp(24px, 5vw, 72px); }
.hero__text { flex: 1.15 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.hero__lede { max-width: 46ch; font-size: 18px; color: var(--body); animation: fade-in 1.2s .35s ease both; }
.hero .actions { animation: fade-in 1.2s .45s ease both; }
.hero__text { max-width: 600px; }
.hero__art { position: relative; flex: 1 1 340px; align-self: center; display: flex; justify-content: center; margin: 0; pointer-events: none; animation: fade-in 1.2s .25s ease both; }
.hero__art img { display: block; width: min(100%, 520px); height: auto; filter: drop-shadow(0 0 70px rgba(58,84,255,.4)); animation: hero-float 7s ease-in-out 1.4s infinite; }
:root[data-theme="day"] .hero__art img { filter: drop-shadow(0 30px 26px rgba(2,1,8,.2)); }
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@media (max-width: 900px) { .hero__text { max-width: none; } .hero__art { flex-basis: 100%; justify-content: flex-end; } .hero__art img { width: clamp(200px, 44vw, 300px); } }
.page-title { font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.5rem); line-height: .94; letter-spacing: -.03em; animation: slide-up .8s var(--ease) both; }

/* Each line masks its own rise, so the type comes up out of nothing; the second follows a tenth of a second later. */
.rise { display: block; overflow: hidden; padding-bottom: .06em; }
.rise > span { display: block; animation: rise 1s var(--ease) both; }
.rise + .rise > span { animation-delay: .1s; }

.panel--ice .tag { border-color: var(--gradline); background: var(--glass); }
.panel--ice .dot { background: var(--gradfg); }

/* The treatments slide past, faded into the page at both edges. js/site.js doubles the list so the loop is seamless. */

/* ============================================================
   LEFT-LABEL ROWS — "The concept", "The intelligence", "For hotels"
   ============================================================ */
.row { display: flex; flex-wrap: wrap; margin-top: 160px; border-top: 1px solid var(--line); }
.row__label { flex: 1 1 280px; max-width: 456px; padding: 32px; font-size: 18px; }
.row__body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; padding: 32px; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.title { max-width: 640px; font-weight: 400; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.lead { max-width: 380px; color: var(--body); }

/* ============================================================
   PANELS — the feature panel, the portfolio, retail and concierge
   ============================================================ */
.wrap { position: relative; padding: 0 8px; margin-top: 8px; }
.wrap--first { margin-top: 64px; }
.panel { position: relative; border-radius: 48px; padding: clamp(32px, 5.5vw, 80px); background: var(--raised); }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-top: 40px; }
.panel__title { max-width: 760px; font-weight: 500; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.panel__lead { max-width: 400px; color: var(--body); }

/* The foot panel: one flat violet, the same in both modes, with white text and a soft glow under it (D-2026-11-11-25). Its
   title (36px and up) sits on the violet; its label chip and lead are under 24px, so each sits on the darker see-through
   panel. */
.panel--ice { background: #7A67C5; color: var(--gradfg); box-shadow: var(--glow); }
.panel--ice .soft { color: var(--gradsoft); }
.panel--ice .panel__lead { border-radius: 24px; padding: 24px 28px; background: var(--glass); color: var(--gradfg); }
.step p { color: var(--gradfg); }

.steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5.5vw, 80px); }
.step { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; border-radius: 24px; padding: 32px; background: var(--glass); }
.step .step__num { font-size: 64px; line-height: 1; letter-spacing: -.03em; color: inherit; }
.step h3,.step h4 { font-size: 20px; font-weight: 500; }
/* The six machines, on How it works only (design studio, 5 Nov; off the home page 8 Nov): three across, each with its minutes in a small ringed pill. */

.sys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: clamp(40px, 5.5vw, 80px); }
.sys__tile { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: clamp(200px, 20vw, 280px); border-radius: 24px; padding: clamp(24px, 2.4vw, 36px); background: var(--card); }
.sys__num { font-size: clamp(3rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.sys__tile p + p { font-size: 15px; line-height: 1.35; color: var(--body); }
.sys__chips { margin-top: 24px; }
.js [data-reveal] .sys__tile { opacity: 0; transform: scale(.95); transition: var(--fade), opacity .6s ease, transform .6s var(--ease); }
.js [data-reveal].in .sys__tile { opacity: 1; transform: none; }
.js [data-reveal].in .sys__tile:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].in .sys__tile:nth-child(3) { transition-delay: .16s; }
.js [data-reveal].in .sys__tile:nth-child(4) { transition-delay: .24s; }
@media (max-width: 980px) { .sys { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sys__tile { min-height: 180px; } }
@media (max-width: 560px) {
  .sys { grid-template-columns: 1fr; gap: 6px; }
  .sys__tile { min-height: 0; justify-content: flex-start; gap: 8px; padding: 20px 24px; }
  .sys__num { font-size: 2.75rem; }
}
/* How it runs on the home page (design studio, 8 Nov): a plain panel, so its steps sit on page-coloured tiles in the
   page's own text colours, not on the gradient's see-through panel. */
.steps--plain .step { background: var(--card); }
.steps--plain .step p { color: var(--body); }
.steps--plain .step .step__num { color: var(--fg); }

/* ---------- Stat cells, beside a block ---------- */
.media { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.stat { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-radius: 24px; padding: 32px; background: var(--raised); }
.stat__num { font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.stat p + p { color: var(--body); }

/* ---------- For hotels: the ruled list ---------- */
.ruled { display: flex; flex-wrap: wrap; gap: 0 32px; }
.ruled li { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding: 24px 0; }
.ruled h3 { font-size: 20px; font-weight: 500; }
.ruled p { font-size: 15px; color: var(--body); }

/* ============================================================
   FOOTER CARD, with the large wordmark
   ============================================================ */
.foot { padding: 0 8px 8px; margin-top: 160px; }
.foot__card { display: flex; flex-direction: column; gap: 80px; border-radius: 48px; padding: clamp(32px, 5.5vw, 80px); background: var(--raised); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.foot__lead { display: flex; flex-direction: column; gap: 24px; max-width: 440px; }
.foot__line { font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot__base { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.foot__mark { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); font-size: clamp(4rem, 12vw, 10rem); font-weight: 500; line-height: .8; letter-spacing: .02em; }
/* The footer's mark: the same band at the two-pager's footer size beside its name, 84/54em wide, in proportion (A-192). */
.foot__mark img { flex: none; width: calc(84em / 54); height: auto; aspect-ratio: 2326 / 1212; }
/* The large name stays whole inside the footer card at every width (A-197; avea-site D-2026-11-20-21). 3T3RN4L, seven
   letters, ran past the card below about 440px (79px at 360px, and the page scrolled sideways): there the mark and the
   name get smaller together, just enough to fit the width of the row they sit in. The name is 4.43em wide in Apple's
   face and 4.18em in Hanken Grotesk, the band 1.56em (A-192; the old A was 1em, and 5.5em fitted): 6.05em and the gap
   fit. Their weight, tracking, colour and order stay; from 768px up nothing here applies. It replaces A-176's rule for a
   five-letter name below 360px (3.25rem). */
@media (max-width: 767px) {
  .foot__base { container-type: inline-size; }
  .foot__mark { font-size: min(clamp(4rem, 12vw, 10rem), (100cqi - clamp(12px, 2vw, 28px)) / 6.05); }
}
.foot__copy { font-size: 12px; color: var(--body); }

/* ============================================================
   INNER PAGES — the home page's blocks, plus the opening row,
   plain cards, a question list and running text
   ============================================================ */
/* The opening row: the page's label on the left, its title and lead on the right. */
.row--intro { margin-top: 0; border-top: 0; padding-top: 72px; }
.row--intro .lead { max-width: 560px; font-size: 18px; }
.lead--wide { max-width: 680px; }

/* Plain cards: a label, a title and a few lines, on the panel colour. */
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.note { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; padding: 32px; background: var(--raised); }
.note h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.note p:not(.label), .note li { font-size: 15px; color: var(--body); }
.note ul { display: flex; flex-direction: column; gap: 6px; }

/* A question list: each question beside its answer, under a rule. */
.faq li { display: flex; flex-wrap: wrap; gap: 8px 32px; border-top: 1px solid var(--line); padding: 24px 0; }
.faq h3 { flex: 1 1 240px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.faq p { flex: 2 1 320px; max-width: 600px; color: var(--body); }

/* Running text: the evidence articles, the privacy policy, the longer arguments. */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--body); }
.prose h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.prose h2:not(:first-child) { margin-top: 24px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 1.25em; list-style: disc; }
.note a, .prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   MOTION — sections slide up gently and the cards in them scale
   in as they come into view (js/site.js adds .in). Nothing waits
   or moves under reduced motion.
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--fade), opacity .7s ease, transform .7s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-stagger] .reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--fade), opacity .6s ease var(--stagger, 0ms), transform .6s var(--ease) var(--stagger, 0ms);
}
.js [data-reveal-stagger].in .reveal-child { opacity: 1; transform: none; }
.js [data-reveal] .step,.js [data-reveal] .stat {
  opacity: 0;
  transform: scale(.95);
  transition: var(--fade), opacity .6s ease, transform .6s var(--ease);
}
.js [data-reveal].in .step,.js [data-reveal].in .stat { opacity: 1; transform: none; }
.js [data-reveal].in .step:nth-child(2),.js [data-reveal].in .stat:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].in .step:nth-child(3) { transition-delay: .16s; }

@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.offer { padding: 0 8px; margin-top: 8px; }
.offer__list { display: flex; flex-direction: column; gap: 32px; }
.offer__sticky { position: sticky; top: 96px; }
.offer__card { display: flex; flex-direction: column; min-height: min(38rem, calc(100svh - 120px)); border-radius: 48px; padding: clamp(28px, 4vw, 56px); color: #FFFFFF; box-shadow: 0 -24px 60px -36px rgba(2,1,8,.7); }
.offer__card--prime      { background: #3A54FF; }
.offer__card--express    { background: #6561D8; }
.offer__card--custom     { background: #8969AF; }
.offer__card--series     { background: linear-gradient(rgba(12,8,30,.16), rgba(12,8,30,0) 50%), #A66E84; }
.offer__card--membership { background: linear-gradient(rgba(12,8,30,.24), rgba(12,8,30,0) 50%), #C37259; }
.offer__card--stay       { background: linear-gradient(rgba(12,8,30,.30), rgba(12,8,30,0) 50%), #E0772E; }
.offer__card--company    { background: linear-gradient(rgba(12,8,30,.34), rgba(12,8,30,.12)), #FD7B03; }   /* the shade stays to the foot: white reaches 3:1 there (A-088 In scope item 14) */
.offer__card .tag { border-color: var(--gradline); background: var(--glass); color: #FFFFFF; }
.offer__card .dot { background: #FFFFFF; }
.offer__title { margin-top: 20px; font-weight: 500; font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.offer__sub { margin-top: 8px; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.03em; }
.offer__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: clamp(24px, 3vw, 40px); }
.offer__facts li { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-radius: 24px; padding: clamp(18px, 2.2vw, 32px); background: var(--glass); }
.offer__num { font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.offer__facts li p + p { font-size: 15px; line-height: 1.35; }
.offer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 16px; }
.offer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.offer__chips li { border: 1px solid var(--gradline); border-radius: 999px; padding: .5rem 1rem; background: var(--glass); font-size: 15px; white-space: nowrap; }

/* The page behind the cards: one section for each, on AVEA's own Night and Day surfaces. */
.row[id] { scroll-margin-top: 88px; }
.notes--even { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.note--wide { grid-column: 1 / -1; }
.note p.note__big { font-size: clamp(2.25rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--fg); }
.note .route { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.note .route li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.route li:not(:last-child)::after { content: "→"; color: var(--body); }
.route--plain li:not(:last-child)::after { content: none; }
.route span { border: 1px solid var(--chip); border-radius: 999px; padding: .25rem .7rem; color: var(--fg); white-space: nowrap; }
.media--even { align-items: stretch; }
.media--even .stats { flex: 1 1 300px; }
.media--even .stat { gap: 12px; padding: 24px; }
.media--even .stat__num { font-size: clamp(2.5rem, 3.6vw, 3.25rem); white-space: nowrap; }
.wrap--end { margin-top: 160px; }
.panel--ice .tag { color: #FFFFFF; }

/* ============================================================
   PHONE — the canvas's fluid layout stacks; the gutter is 16px
   ============================================================ */
/* ---- HOW IT WORKS, EVIDENCE (design studio, 7 Nov): small additions to the existing pieces, the site's own tokens only. ---- */
.panel__actions { margin-top: 24px; }
/* On a phone one card fills the width, so wide machines are already held smaller by the box; shrink them less. */

.machines { margin-top: clamp(32px, 4vw, 56px); }
.machines__track { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: 4px; }
.machines__track::-webkit-scrollbar { display: none; }
.machine { flex: 0 0 min(86%, 1040px); scroll-snap-align: start; padding-top: 220px; }
.machine__card { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: 48px; padding: clamp(28px, 4vw, 56px); background: var(--card); }
.machine__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 400px; }
.machine__name { font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.035em; }
.machine__body .card__min { border: 1px solid var(--chip); border-radius: 999px; padding: .2rem .75rem; font-size: 13px; }
.machine__text { color: var(--body); }
.machine__pic { position: absolute; right: clamp(16px, 5vw, 72px); bottom: clamp(24px, 3vw, 40px); width: 52%; height: calc(100% + 130px); margin: 0; }
.machine__pic img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 40px rgba(58,84,255,.5)); }
:root[data-theme="day"] .machine__pic img { filter: drop-shadow(0 26px 22px rgba(2,1,8,.22)); }
.machine__pic--bar img { scale: .62; transform-origin: 50% 100%; }
.machine__pic--bed img { scale: .8; transform-origin: 50% 100%; }
.machines__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.machines__nav .btn--arrow:disabled { opacity: .3; cursor: default; transform: none; }
.machines__nav .btn--arrow:disabled:hover { background: var(--pri); color: var(--prifg); }
.machine--grey .machine__card { background: color-mix(in srgb, var(--fg) 9%, var(--card)); }
.machine--red .machine__card { background: color-mix(in srgb, #9A0101 22%, var(--card)); }
.machine--amber .machine__card { background: color-mix(in srgb, #E0772E 18%, var(--card)); }
:root[data-theme="day"] .machine--red .machine__card { background: color-mix(in srgb, #9A0101 10%, var(--card)); }
:root[data-theme="day"] .machine--amber .machine__card { background: color-mix(in srgb, #E0772E 12%, var(--card)); }
:root[data-theme="day"] .machine--grey .machine__card { background: color-mix(in srgb, var(--fg) 6%, var(--card)); }
/* In Night each machine's glow takes its card's colour (the plain and grey cards keep the blue glow). */
.machine--red .machine__pic img { filter: drop-shadow(0 0 44px rgba(154,1,1,.6)); }
.machine--amber .machine__pic img { filter: drop-shadow(0 0 44px rgba(224,119,46,.42)); }
@media (max-width: 760px) {
  .machine { flex-basis: 88%; padding-top: 0; }
  .machine__card { flex-direction: column; align-items: stretch; min-height: 0; margin-top: 110px; padding-top: 0; }
  .machine__pic { order: -1; position: relative; right: auto; bottom: auto; width: 100%; height: 330px; margin: -110px 0 8px; }
}
.notes--read { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.note[id] { scroll-margin-top: 88px; }
.note .note__figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.note .note__limit { border-top: 1px solid var(--line); padding-top: 12px; }
.note .note__more { margin-top: auto; padding-top: 4px; }
.note .note__sources { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.note .note__sources .route { margin: 0; padding: 0; }
.note .route a { text-decoration: none; }
.note .route a:hover span { background: var(--raised); }
.faq a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- LEARN, HEALTH CONCIERGE, THE APP, CONTACT (design studio, 10 Nov 2026): built from the parts above (notes, steps,
   the faq list, chips, panels). Three small additions, each made of existing pieces: a course's lesson list (rows split
   by the same hairline as .faq and .ruled, --line), the "Free" mark (the outlined pill of .route span, --chip), and the
   comment box (24px corners like a note, on the page colour --card, with the hairline: a border, no shadow). ---- */
.lessons { display: flex; flex-direction: column; }
/* A lesson's row: its title, and on the right its meta line or the Free chip. The title takes what room is left and wraps
   as before; the meta line stays on one line wherever it fits beside the title at its narrowest, and wraps only where
   it would otherwise run past the row (A-197, revision 7: at BASE /learn/eating-for-recovery/ was 361.5px wide on a
   340–360px screen). Where it fits, the row is laid out as it was with flex and space-between. */
.lessons li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.note .lessons li { font-size: 15px; color: var(--body); padding: 10px 0; }
.lessons__meta { font-size: 13px; color: var(--label); }
.free { flex: none; border: 1px solid var(--chip); border-radius: 999px; padding: .15rem .65rem; font-size: 12px; line-height: 1.4; color: var(--fg); }
.lessons__note { margin: -28px 0 0; font-size: 15px; color: var(--body); }   /* 20px under the list: the row's 48px gap, less 28 */
.lessons__note a { text-decoration: underline; text-underline-offset: 3px; }
.lessons__note a { color: var(--fg); }
.row__label a { color: inherit; }
.steps--five .step { flex-basis: 200px; }
/* An outline button on the colour panel: small white text sits on the panel's darker see-through glass, never on the
   bare gradient (DESIGN.md), with the tag's own border there (--gradline, --glass, --gradfg). */
.panel--ice .btn--outline { border-color: var(--gradline); background: var(--glass); color: var(--gradfg); }
.panel--ice .btn--outline:hover { background: var(--glass); color: var(--gradfg); }

.spot { --spot-c: #7A67C5; --spot-glow: rgba(58,84,255,.4); position: relative; display: flex; align-items: center; min-height: 400px; border-radius: 48px; padding: clamp(32px, 5vw, 72px); background: color-mix(in srgb, var(--spot-c) 18%, var(--bg)); }
:root[data-theme="day"] .spot { background: color-mix(in srgb, var(--spot-c) 12%, var(--bg)); }
/* one card per colour of the gradient; the object's Night glow is its card's own colour */
.spot--blue { --spot-c: #3A54FF; }
.spot--orange { --spot-c: #FD7B03; --spot-glow: rgba(253,123,3,.32); }
.spot__text { position: relative; z-index: 1; max-width: 660px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.spot__title { font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: .96; letter-spacing: -.045em; }
/* the soft second line, when it wraps (on a phone), splits into even lines, never one short word alone (design studio, 11 Nov 2026) */
.spot__title .soft { display: inline-block; text-wrap: balance; }
.spot__lead { max-width: 420px; color: var(--body); }
.spot__art { position: absolute; right: clamp(8px, 7vw, 120px); top: 50%; width: clamp(240px, 30vw, 440px); margin: 0; translate: 0 -50%; pointer-events: none; }
.spot__art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 60px var(--spot-glow)); }
:root[data-theme="day"] .spot__art img { filter: drop-shadow(0 30px 26px rgba(2,1,8,.2)); }
/* a tall object (the microscope) stands narrower, so it slips past the card no more than the others */
.spot__art--tall { width: clamp(170px, 19vw, 290px); }
.spot__art--pair { display: flex; align-items: flex-end; justify-content: flex-end; }
.spot__art--pair img { width: 72%; }
.spot__art--pair img + img { width: 46%; margin-left: -20%; margin-bottom: -4%; position: relative; }
@supports (animation-timeline: view()) {
  .spot__art img { animation: spot-turn linear both; animation-timeline: view(); animation-range: cover; }
}
@keyframes spot-turn { from { transform: translateY(40px) rotate(-8deg); } to { transform: translateY(-40px) rotate(8deg); } }
@media (max-width: 760px) {
  .spot { flex-direction: column; align-items: flex-start; min-height: 0; margin-bottom: 48px; }
  .spot__art { position: relative; right: auto; top: auto; translate: none; align-self: flex-end; width: 210px; margin: 8px -8px -72px 0; }
}

.comment { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.comment textarea { width: 100%; min-height: 128px; resize: vertical; border: 1px solid var(--line); border-radius: 24px; padding: 20px 24px; background: var(--card); color: var(--fg); font: inherit; font-size: 16px; }
.comment textarea::placeholder { color: var(--label); }
.comment textarea:disabled { cursor: not-allowed; }
.capsule__short { display: none; }
/* Up to 457px the header's pill says "Book" or "Join": with 3T3RN4L and the glass infinity beside it (A-192), "Book a
   walkthrough" needs a 457px window and "Become a member" 452px, measured every 2px in headless Chrome; below that the
   pill stood out of the capsule. It was 389px until A-176, 409px for its five-letter name, 429px for 3T3RN4L and the
   old A (A-197). */
@media (max-width: 457px) { .capsule__long { display: none; } .capsule__short { display: inline; } }

.joins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 8px; }
.join { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-radius: 24px; padding: clamp(28px, 4vw, 48px); background: var(--raised); }
.join > p:not(.label):not(.join__note) { color: var(--body); max-width: 46ch; }
.join__title { font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -.03em; }
.join__note { font-size: 14px; color: var(--label); }
.join .actions { margin-top: auto; padding-top: 8px; }
.pick { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; }
.pick__box { position: relative; display: block; }
.pick__box::after { content: ""; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--label); border-bottom: 1.5px solid var(--label); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pick select { appearance: none; -webkit-appearance: none; width: 100%; height: 56px; border: 1px solid var(--line); border-radius: 999px; padding: 0 52px 0 24px; background: var(--card); color: var(--fg); font: inherit; font-size: 16px; }
.pick select:disabled { opacity: 1; color: var(--label); cursor: not-allowed; }   /* not the browser's own fade: "No AVEA space has opened yet" must read at 4.5:1 (A-088 In scope item 13) */
/* On a phone "No 3T3RN4L space has opened yet" shows whole, never cut short with "…" (A-161): its 257.6px of text, at
   16px, had 234px inside the list at 360px wide, and less than 258px up to 424px. Up to 440px wide the list has the width
   less 98px, 262px at 360. The card and the list keep their look, a little nearer the edge. */
@media (max-width: 440px) {
  .join { padding-left: 12px; padding-right: 12px; }
  .pick select { padding: 0 28px 0 12px; }
  .pick__box::after { right: 12px; }
}
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.member-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); padding: 12px 12px 12px 32px; border-radius: 999px; background: var(--raised); animation: fade-in 1.2s .55s ease both; }
.member-bar p { color: var(--body); font-size: 18px; }
.member-bar b { color: var(--fg); font-weight: 500; }
.member-bar .btn--arrow { flex: none; }
@media (max-width: 680px) { .member-bar { align-items: flex-end; border-radius: 24px; padding: 20px 12px 12px 20px; } .member-bar p { font-size: 16px; } }

.aud { display: flex; flex: none; padding: 3px; border: 1px solid var(--capline); border-radius: 999px; font-size: 13px; line-height: 1; }
.aud a { padding: 7px 12px; border-radius: 999px; color: var(--capsoft); transition: color .2s ease, background-color .2s ease; }
.aud a:hover { color: var(--capfg); }
.aud a[aria-current="true"] { background: color-mix(in srgb, var(--capfg) 16%, transparent); color: var(--capfg); }
/* the membership numbers side by side, as the hotel pages show them beside a picture */
.stats--row { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.stats--row .stat { gap: 12px; padding: 24px; }
.stats--row .stat__num { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }
/* where the page links and the switch would not both fit in the capsule (981–1140px), the switch waits for the menu panel */
@media (min-width: 981px) and (max-width: 1140px) { .aud { display: none; } }
/* up to 806px the capsule cannot hold the switch and its button side by side (measured with 3T3RN4L and the glass infinity:
   it needs 806px; 776px with the old A, A-197; 760px for the shorter names), so the menu panel's link takes over (A-192) */
@media (max-width: 806px) { .aud { display: none; } }

.signin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 128px 32px 64px;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px); background-size: 22px 22px; }
.signin__wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 72px 48px; width: 100%; max-width: 1180px; margin: 0 auto; }
.signin__text { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; animation: fade-in 1.2s .2s ease both; }
.signin__text h1 { font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: .98; letter-spacing: -.045em; }
.signin__lede { max-width: 40ch; font-size: 18px; color: var(--body); }
.signin__card { position: relative; flex: 0 1 460px; border-radius: 24px; padding: clamp(28px, 3.4vw, 44px); padding-top: 96px; background: var(--raised); animation: fade-in 1.2s .35s ease both; }
.signin__art { position: absolute; top: -120px; right: 28px; width: 132px; margin: 0; }
.signin__art img { width: 100%; height: auto; filter: drop-shadow(0 14px 32px rgba(58,84,255,.42)); animation: hero-float 7s ease-in-out 1.4s infinite; }
:root[data-theme="day"] .signin__art img { filter: drop-shadow(0 16px 14px rgba(2,1,8,.2)); }
.signin__form, .signin__sent { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.signin__sent { align-items: flex-start; }
.signin__sent[hidden], .signin__form[hidden] { display: none; }
.signin__title { font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input { width: 100%; height: 56px; border: 1px solid var(--line); border-radius: 999px; padding: 0 24px; background: var(--card); color: var(--fg); font: inherit; font-size: 16px; }
.field input::placeholder { color: var(--label); }
.signin__check { display: grid; place-items: center; height: 65px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--label); }
.signin__go { width: 100%; }
.signin__note { font-size: 14px; color: var(--label); }
.signin__foot { width: 100%; max-width: 1180px; margin: 0 auto; font-size: 15px; color: var(--body); }
.signin__foot a { color: var(--fg); }
@media (max-width: 760px) {
  .signin { justify-content: flex-start; padding: 112px 16px 48px; }
  .signin__wrap { gap: 120px; }
  .signin__card { flex-basis: 100%; padding-top: 80px; }
  .signin__art { top: -96px; right: 20px; width: 108px; }
}
/* Face ID on the members' sign-in (D-2026-11-11-06): the outline pill with a face-scan icon, a centred note, and an "or use your
   email" divider in the rule colour, as the app draws it */
.signin__passkey svg { width: 20px; height: 20px; margin-right: 10px; flex: none; }
.signin__go svg { width: 20px; height: 20px; margin-right: 10px; flex: none; }
.signin__note--center { text-align: center; margin-top: -8px; }
.signin__or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--label); }
.signin__or::before, .signin__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin__form[data-step="scan"], .signin__form[data-step="code"], .signin__form[data-step="type"] { align-items: flex-start; }
.signin__form[data-step] .signin__go { align-self: stretch; }
.signin-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 7px 20px 7px 7px; border: 1px solid var(--ghost); border-radius: 999px; color: var(--fg); text-align: left; transition: var(--quick); }
.signin-row:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); opacity: 1; }
.signin-row__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.signin-row__icon svg { width: 20px; height: 20px; }
.signin-row__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.signin-row__name { font-size: 16px; font-weight: 500; }
.signin-row__who { font-size: 13px; color: var(--label); }
.signin-row__go { flex: none; width: 18px; height: 18px; color: var(--label); transition: transform .2s ease; }
.signin-row:hover .signin-row__go { transform: translateX(3px); }
.actions .signin-row { width: auto; }
/* on the violet end panel, small text sits on its darker see-through backing, as the outline buttons there do */
.panel--ice .signin-row { border-color: var(--gradline); background: var(--glass); color: var(--gradfg); }
.panel--ice .signin-row__who, .panel--ice .signin-row__go { color: var(--gradsoft); }
.panel--ice .signin-row__icon { background: rgba(255,255,255,.14); }
.signins { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }

.price { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; border-radius: 32px; padding: clamp(24px, 3vw, 40px); color: #FFFFFF; }
.price--prime      { background: #3A54FF; }
.price--express    { background: #6561D8; }
.price--custom     { background: #8969AF; }
.price--series     { background: linear-gradient(rgba(12,8,30,.16), rgba(12,8,30,0) 50%), #A66E84; }
.price--membership { background: linear-gradient(rgba(12,8,30,.24), rgba(12,8,30,0) 50%), #C37259; }
.price--stay       { background: linear-gradient(rgba(12,8,30,.30), rgba(12,8,30,0) 50%), #E0772E; }
.price--company    { background: linear-gradient(rgba(12,8,30,.34), rgba(12,8,30,0) 50%), #FD7B03; }
.price .tag { border-color: var(--gradline); background: var(--glass); color: #FFFFFF; }
.price .dot { background: #FFFFFF; }
.price__head { display: flex; flex-direction: column; gap: 6px; }
.price__lead { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; letter-spacing: -.03em; }
.price__big { font-weight: 500; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.price__per { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 400; letter-spacing: -.03em; }
.price__panel { margin-top: auto; border-radius: 24px; padding: 6px 20px 16px; background: var(--glass); }
.price__list { margin: 0; padding: 0; list-style: none; }
.price__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--gradline); font-size: 15px; line-height: 1.3; }
.price__list small { display: block; margin-top: 2px; font-size: 13px; color: var(--gradsoft); }
.price__list li > span:last-child { flex: none; max-width: 55%; font-weight: 500; text-align: right; }
.price__note { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--gradsoft); }
@media (max-width: 680px) { .price { border-radius: 32px; padding: 22px 18px; } .price__panel { padding: 4px 16px 14px; } }

.capsule__links a { position: relative; }
.capsule__links a[aria-current="page"] { color: var(--capfg); }
.capsule__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; top: calc(100% + 5px); width: 4px; height: 4px; border-radius: 999px; background: var(--capfg); transform: translateX(-50%); }
.menu__links a[aria-current="page"] { display: inline-flex; align-items: center; gap: .45em; color: var(--fg); }
.menu__links a[aria-current="page"]::before { content: ""; flex: none; width: .3em; height: .3em; min-width: 5px; min-height: 5px; border-radius: 999px; background: var(--dot); }

[data-side-nav][hidden] { display: none !important; }
.side-nav { display: contents; }
.title--small { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.hero--members .hero__text { max-width: 880px; }
.hero--members .hero__lede, .hero--members .join__note { max-width: 600px; }
.steps--icons { margin-top: clamp(64px, 7vw, 104px); gap: 48px 8px; }   /* room above each card for its icon when they wrap */
.steps--icons .step { position: relative; }
.step__icon { position: absolute; top: -40px; right: 20px; width: auto; height: 132px; filter: drop-shadow(0 12px 28px rgba(58,84,255,.38)); pointer-events: none; }
:root[data-theme="day"] .step__icon { filter: drop-shadow(0 16px 14px rgba(2,1,8,.2)); }
.book { flex: 1 1 380px; max-width: 480px; margin-left: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  border-radius: 24px; padding: clamp(24px, 3vw, 40px); background: var(--raised); animation: fade-in 1.2s .45s ease both; }
.book__title { font-weight: 500; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; letter-spacing: -.03em; }
.book__way { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; border-top: 1px solid var(--line); padding-top: 18px; }
.book__way .label { margin-bottom: -4px; }
.book__how { font-size: 20px; font-weight: 500; }
.book__way > p { color: var(--body); }
@media (max-width: 900px) { .book { max-width: none; margin-left: 0; } }
@media (max-width: 440px) { .book { padding-left: 12px; padding-right: 12px; } }   /* the space list whole on a phone (A-161, at .pick) */
@media (max-width: 680px) { .step__icon { top: -28px; height: 104px; } }

.ring {
  --bg: #FFFFFF; --raised: #F7F7F7; --card: #FFFFFF; --line: #D7D7D6; --fg: #020108; --body: #020108A3; --soft: #02010880;
  --faint: #0201084D; --hint: #02010833; --label: #020108A3; --chip: #02010833; --pri: #020108; --prifg: #FFFFFF;
  --ghost: #02010833; --ghostfg: #020108A3; --dot: #020108;
  color-scheme: light;
  position: relative;
  height: max(560px, 100svh);                 /* one screen tall, as the reference */
  border-radius: 48px;
  background: var(--raised);
  color: var(--fg);
  overflow: hidden;
}
html:has([data-ring]) { scroll-snap-type: y proximity; }
#machines { scroll-snap-align: start; }
.ring__stage { position: absolute; inset: 0; z-index: 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: opacity .35s ease, visibility 0s linear 0s; }
.ring.is-dragging .ring__stage { cursor: grabbing; }
.ring__head { position: absolute; left: 32px; top: 112px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  max-width: calc(100% - 180px); pointer-events: none; transition: opacity .35s ease, visibility 0s linear 0s; }
.ring__title { font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.ring__hint { font-size: 15px; color: var(--body); }
/* the six, before the script places them (and if it never runs): a plain row */
.ring__list { position: absolute; inset: auto 32px 120px; display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.ring__item { flex: 0 1 140px; }
.ring.is-ready .ring__list { inset: 0; display: block; }
.ring.is-ready .ring__item { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; }
.ring.is-moving .ring__item { will-change: transform; }
.ring__machine { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 24px; }
.ring__machine img, .ring__bigbox img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ring__machine img { transition: translate .45s var(--ease); }
.ring__machine:hover img { translate: 0 -8px; }
.ring__machine:focus-visible { outline-offset: 6px; }
.ring__floor { position: absolute; left: 10%; right: 10%; bottom: -3%; height: 9%; border-radius: 50%; background: rgba(2,1,8,.22); filter: blur(8px); }
.ring__item.is-picked { visibility: hidden; }
.ring__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ring__play { position: absolute; top: 112px; right: 24px; z-index: 2; padding: .55rem 1.1rem; font-size: 15px; }
.ring__play[hidden] { display: none; }   /* .btn sets display, which would override the hidden attribute (reduced motion: no Pause, Example 21) */
.ring__bar { position: absolute; left: 32px; right: 24px; bottom: 24px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  transition: opacity .35s ease, visibility 0s linear 0s; }
.ring__now { display: flex; flex-direction: column; gap: 4px; }
.ring__nowname { font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.03em; }
.ring__nowname.is-new { animation: fade-in .7s var(--ease) both; }
.ring.is-focus .ring__stage, .ring.is-focus .ring__bar, .ring.is-focus .ring__play, .ring.is-focus .ring__head {
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }

/* one machine, up close: large on the left, its facts on a card on the right */
.ring__focus { position: absolute; inset: 0; z-index: 3; }
.ring__focus[hidden] { display: none; }
.ring__back { position: absolute; top: 112px; left: 32px; z-index: 2; gap: 8px; padding: .55rem 1.1rem .55rem .9rem; font-size: 15px; animation: fade-in .6s .25s var(--ease) both; }
.ring__back svg { width: 18px; height: 18px; }
.ring__area { position: absolute; top: 176px; bottom: 48px; left: 48px; right: calc(min(440px, 42%) + 64px); display: flex; align-items: flex-end; justify-content: center; cursor: zoom-out; }
.ring__bigbox { position: relative; display: block; flex: none; cursor: default; }
.ring__bigbox.is-swap img { animation: fade-in .6s var(--ease) both; }
.ring__card { position: absolute; top: 24px; right: 24px; bottom: 24px; width: min(440px, 42%); display: flex; flex-direction: column; justify-content: center; gap: 24px;
  overflow-y: auto; border-radius: 24px; padding: clamp(24px, 3vw, 40px); background: var(--card); animation: fade-in .8s .3s var(--ease) both; }
.ring__card.is-closing, .ring__back.is-closing { animation: ring-out .3s ease both; }
@keyframes ring-out { to { opacity: 0; } }
.ring__cardtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ring__info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ring__info[hidden] { display: none; }
.ring__name { font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.035em; }
.ring__info .card__min { border: 1px solid var(--chip); border-radius: 999px; padding: .2rem .75rem; font-size: 13px; }
.ring__text { color: var(--body); max-width: 34em; }
.ring__info .label { margin-top: 8px; }
.ring__steps { align-self: stretch; margin: 0; padding: 0; list-style: none; }
.ring__steps li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; }
.ring__steps li:last-child { border-bottom: 1px solid var(--line); }
.ring__steps li span + span { color: var(--body); font-size: 15px; text-align: right; }

@media (max-width: 680px) {
  .ring { height: max(600px, 100svh); border-radius: 32px; }
  .ring__head { top: 92px; left: 16px; max-width: calc(100% - 32px); gap: 8px; }
  .ring__title { font-size: 1.5rem; }
  .ring__hint { font-size: 14px; }
  .ring__play { top: auto; bottom: 96px; right: 16px; }
  .ring__bar { left: 24px; right: 16px; bottom: 16px; }
  /* up close on a phone the facts sit under the machine, and the panel grows to hold them */
  .ring.is-focus { height: auto; min-height: 640px; }
  .ring__focus { position: relative; display: flex; flex-direction: column; padding: 148px 8px 8px; }
  .ring__back { top: 92px; left: 16px; }
  .ring__area { position: relative; inset: auto; height: 260px; margin-bottom: 24px; }
  .ring__card { position: relative; inset: auto; width: auto; overflow: visible; padding: 24px 20px; }
}

@media (max-width: 980px) {
  .capsule__links { display: none; }
}
@media (max-width: 680px) {
  .head__bar { padding: 16px; }
  .capsule { gap: 10px; padding-left: 16px; }
  .capsule__word, .capsule__account { display: none; }
  .menu { top: 80px; }
  .menu__group + .menu__group { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .menu__actions { flex-basis: 100%; }
  .hero { padding: 96px 16px 0; }
  .row, .foot { margin-top: 96px; }
  .row__label, .row__body { padding: 24px 16px; }
  .note { padding: 24px; }
  .offer__sticky { top: 80px; }
  .offer__card { min-height: 34.5rem; border-radius: 32px; padding: 20px; }
  .offer__title { margin-top: 12px; font-size: 2.75rem; }
  .offer__sub { margin-top: 4px; font-size: 1.5rem; }
  .offer__facts { grid-template-columns: 1fr; gap: 6px; padding-top: 14px; }
  .offer__facts li { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 10px 16px; border-radius: 18px; }
  .offer__num { flex: none; min-width: 2.2ch; font-size: 1.75rem; }
  .offer__facts li p + p { font-size: 14px; }
  .offer__foot { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
  .offer__chips { gap: 6px; }
  .offer__chips li { padding: .3rem .75rem; font-size: 13px; }
  .wrap--end { margin-top: 96px; }
}
/* On narrow phones the glass infinity beside the name is as wide as the bar has room for, between 23px and its full
   40/13em (A-192, In scope 3): at 366px and less, 321px less than the window, so the pill "Book" keeps 1px inside the
   capsule; full from 368px. */
@media (max-width: 366px) { .capsule__mark img { width: clamp(23px, 100vw - 321px, 40em / 13); } }
/* At 343px and less the header gives itself room: with 3T3RN4L the pill "Book" stood 17px out of the capsule at 320px.
   The bar's side margins 16 → 10px, the capsule's gaps 10 → 8px and its left padding 16 → 10px: 24px (A-197, revision 6,
   at 339px and less with the side margins at 12px; A-192, revision 7: 10px and up to 343px, so "Book" stays inside beside
   the 23px infinity, which stood 3px out of the capsule at 340px and 1px at 342px). */
@media (max-width: 343px) { .head__bar { padding-left: 10px; padding-right: 10px; } .capsule { gap: 8px; padding-left: 10px; } }

/* offer-short: where a screen is too short to hold a whole card under the header, the cards simply follow one another,
   so no button is ever out of reach. */
@media (max-height: 620px), (max-width: 680px) and (max-height: 640px) {
  .offer__sticky { position: static; }
  .offer__card { min-height: 0; }
}

/* ---------- The private preview, /preview/ (A-152) ----------
   One panel, centred: the sign-in card with its glass object (the padlock), the page's title, and either the e-mail
   form above (the studio's member sign-in form) or the one "Come in" button. Its messages are in the text colour,
   never a new hue. While Cloudflare's check draws, the form is out of sight (never display: none, inside which the
   check may not draw); once drawn, the check's own frame replaces the box's ring. The header keeps its one link, to
   the privacy notice, at every width. On the narrowest phones the panel gives Cloudflare's 300px frame room. */
.head .capsule__links--keep { display: flex; }
.preview { align-items: center; }
.preview__card { flex: none; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
.preview__title { font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: .98; letter-spacing: -.045em; }
.preview__message { font-size: 15px; color: var(--fg); }
.preview__message a, .preview .signin__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.preview__message[hidden], .preview [data-plain][hidden], .preview [data-welcome][hidden], .preview .btn[hidden] { display: none; }
.preview__form.is-drawing { visibility: hidden; }
.signin__check.is-drawn { border-color: transparent; }
@media (max-width: 400px) {
  .preview { padding-left: 12px; padding-right: 12px; }
  .preview__card { padding-left: 16px; padding-right: 16px; }
}

/* ---------- The two forms that ask the back office (A-151) ----------
   On /members/sign-in/ and /join/#tell-me, from the parts the studio drew for the member sign-in: the field pill and
   the security check's box (above), a checkbox and one error line, all in the text colour, never a new hue. Each form is
   hidden as served. While Cloudflare's check draws inside it, it is out of sight, out of reach of the Tab key and takes
   no room (never display: none, inside which the check may not draw); then it takes the place of A-088's way in, which
   stays whenever the check cannot load. */
.signin__lede--small { font-size: 16px; }
.ask { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.ask.is-drawing { position: absolute; left: 0; right: 0; visibility: hidden; pointer-events: none; }
.ask__message { font-size: 15px; color: var(--fg); }
.ask__note { font-size: 14px; color: var(--label); }
.ask__message a, .ask__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.tick { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; color: var(--fg); cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--fg); cursor: pointer; }
.tell { max-width: 520px; }
.tell__ask { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tell__ask .ask { align-self: stretch; }
.tell__sent { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
[data-asking][hidden], [data-sent][hidden], [data-fallback][hidden], [data-no-check][hidden], [data-with-form][hidden],
[data-message][hidden], [data-ask][hidden] { display: none; }

/* Nothing moves when the device asks for less motion: no fades, no slides, no rise, no marquee; every block at rest. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, body *, body *::before, body *::after { transition: none !important; animation: none !important; }
  .btn:active, .btn--arrow:hover { transform: none; }
}
