/* ============================================================
   HELYASS
   Paper + ink base, one confetti palette shared by the ribbons
   and the page, architecture-scale display type.
   ============================================================ */

:root {
  /* --- base --- */
  --paper: #F8F5EC;
  --paper-2: #F1EDE0;
  --ink: #171A16;
  --ink-2: #21261F;
  --line: #DCD6C4;
  --line-dark: rgba(248, 245, 236, 0.16);

  /* --- confetti: the ribbons and the page share ONE family --- */
  --orange: #F0491C;
  --orange-band: #D93A0B;   /* ribbon red, darkened so white type clears 4.5:1 */
  --orange-deep: #C6350C;
  --lime: #C9EC5F;
  --acid: #EDF25C;
  --green: #23A863;
  --green-mid: #5CBC7C;
  --green-deep: #10603F;
  --green-deepest: #06301D;
  --pink: #FBB8EE;
  --plum: #7A1B52;

  /* --- type --- */
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --wordmark: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- rhythm --- */
  --gutter: clamp(20px, 4vw, 64px);
  --sec-y: clamp(88px, 11vw, 176px);
  --maxw: 1440px;

  /* --- motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.32, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
}

/* paper grain — the page is a material, not a default background */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--acid); color: var(--ink); }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.25s var(--ease-out);
}
.skip:focus-visible { top: 16px; }

.c-orange { color: var(--orange); }

/* ---------- shared display / heading system ----------
   Anton is the architecture. Space Grotesk does everything else. */
.hero-h, .sec-h, .close-h, .lesson-num {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: 0.002em;
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.topbar.is-stuck {
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
}

/* inverts while a dark section sits under the bar */
.topbar.is-dark {
  background: color-mix(in srgb, var(--ink) 66%, transparent);
  color: var(--paper);
  border-bottom-color: var(--line-dark);
}
.topbar.is-dark .logo-a { color: var(--paper); }
.topbar.is-dark .ask-btn {
  border-color: color-mix(in srgb, var(--paper) 34%, transparent);
  color: var(--paper);
}
.topbar.is-dark .ask-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.logo {
  font-family: var(--wordmark);
  font-weight: 800;
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0.9;
  flex: none;
  display: inline-flex;
}

/* HEL / YASS split in two colours — the "hell yes" is the whole point */
.logo-a { color: var(--ink); transition: color 0.3s var(--ease-out); }
.logo-b { color: var(--orange); }
.logo:hover .logo-a { color: var(--orange); }
.logo:hover .logo-b { color: var(--ink); }

/* ---------- ASK BUTTON (banner) ----------
   Deliberately small and quiet: a hairline pill that leans on the bar's own
   blur rather than adding another solid block of colour. */
.ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  padding: 7px 15px 7px 12px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 45%, transparent);
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
}

.ask-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ask-btn-i { width: 17px; height: 17px; flex: none; color: #25D366; }
.ask-btn:hover .ask-btn-i { color: #4ae08a; }

.topnav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  margin-right: auto;
  margin-left: clamp(18px, 3vw, 52px);
}

.topnav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.6;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease-out);
}

.topnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.topnav a:hover { opacity: 1; }
.topnav a:hover::after { transform: scaleX(1); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 15px 30px;
  transition: background 0.32s var(--ease-out), color 0.32s var(--ease-out),
              border-color 0.32s var(--ease-out), transform 0.32s var(--ease-snap);
  will-change: transform;
}

.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.btn-mini { padding: 10px 20px; font-size: 11px; letter-spacing: 0.12em; flex: none; }
.btn-big { padding: 19px 38px; font-size: 14px; }

.btn-wa-i { width: 18px; height: 18px; flex: none; color: #25D366; }
.btn-wa:hover .btn-wa-i { color: #4ae08a; }

.btn .arrow { display: inline-block; transition: transform 0.32s var(--ease-snap); }
.btn:hover .arrow { transform: translateX(5px); }


/* ---------- DECORATIVE MARKS ----------
   Hand-drawn arrow / scribble / funnel connector. stroke-dasharray and
   stroke-dashoffset are inherited SVG properties, so setting them on the
   <svg> reaches the <use> shadow content that CSS selectors cannot. */
/* the dash only hides a mark when JS is there to draw it back in */
.js-motion .habit-down,
.js-motion .btn-scribble {
  stroke-dasharray: var(--len, 900);
  stroke-dashoffset: var(--len, 900);
}

/* ---------- SECTION HEAD ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.sec-h {
  font-size: clamp(42px, 7.4vw, 112px);
  grid-column: 1;
}

.sec-h-light { color: var(--paper); }

.sec-lede {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 34ch;
  grid-column: 2;
  padding-bottom: 0.35em;
}

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(112px, 13vh, 152px) var(--gutter) clamp(32px, 5vh, 60px);
  position: relative;
}

/* the headline block — ribbon stage is clipped to exactly this box.
   Its height tracks the comp aspect (2600:1080) so all ten ribbon lanes
   stay inside the frame instead of being cropped top and bottom. */
.hero-head {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: min(35vw, 496px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 44px) 0;
}

.hero-h {
  position: relative;
  z-index: 1;
  font-size: clamp(40px, 12.2vw, 174px);
  text-align: center;
  /* em-based max-width fixes WHERE the headline breaks at every size:
     "BUSY ALL YEAR." fits, adding "NOTHING" does not. Two lines, always. */
  max-width: 6.9em;
  margin: 0 auto;
}

/* the extra sentence-internal breaks, live only on narrow screens */
.br-sm { display: none; }

/* ---------- RIBBON STAGE ----------
   Faithful port of the reference's After Effects comp:
   a stationary sine path, stroked 85 units thick, with a ~10% trim window
   sliding along it. All geometry lives in a 2600x1080 comp so band
   thickness, text size and speed stay a fixed % of the container width.  */
.ribbons {
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: 2;            /* over the headline, like the reference */
  overflow: hidden;      /* ribbons are clipped to the headline block */
  pointer-events: none;
}

.ribbons-svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  /* lock to width-fit so comp scale is always containerWidth / 2600 */
  aspect-ratio: 2600 / 1080;
  transform: translateY(-50%);
  overflow: visible;
}

.rb-band {
  fill: none;
  stroke-width: 85;            /* 3.27% of container width */
  stroke-linecap: butt;        /* flat tape ends */
  stroke-linejoin: miter;
  /* static fallback (no JS / reduced motion): ~368-unit window at --o of 360 */
  stroke-dasharray: 368 4200;
  stroke-dashoffset: calc(var(--o, 120) * -10.236);
}

.rb-text {
  font-family: var(--body);
  font-size: 44px;             /* 0.52 x band thickness */
  font-weight: 700;
  letter-spacing: 0.004em;
  white-space: pre;
}

/* ---------- HERO FOOT ---------- */
.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(26px, 3vw, 36px);
  margin: clamp(8px, 2vh, 26px) auto 0;
  max-width: 840px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 64ch;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   2 · THE LESSON  (dark, with the photo)
   ============================================================ */
.lesson {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sec-y) var(--gutter);
}

.lesson-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.lesson-num {
  font-size: clamp(64px, 11vw, 176px);
  line-height: 0.86;
  color: var(--orange);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  /* the comma is a descender — 0.86 leading was clipping it against the
     heading below, so the number gets its own breathing room */
  line-height: 1;
  padding-bottom: 0.06em;
  margin-bottom: clamp(14px, 1.6vw, 26px);
}

.lesson-h { font-size: clamp(34px, 5.2vw, 82px); }

.lesson-body {
  margin-top: clamp(30px, 3.6vw, 52px);
  display: grid;
  gap: clamp(14px, 1.5vw, 22px);
  max-width: 52ch;
}

.lesson-body p {
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
  color: color-mix(in srgb, var(--paper) 84%, transparent);
}

.lesson-body .hl {
  color: var(--acid);
  font-weight: 700;
}

.lesson-figure { position: relative; }

.lesson-photo {
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  /* lift the low-light phone shot and pull it toward the page's warmth */
  filter: contrast(1.1) brightness(1.1) saturate(0.82);
}

.lesson-photo img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}

.lesson-figure:hover .lesson-photo img { transform: scale(1.06); }

/* ============================================================
   3 · BEFORE YOU ASK
   ============================================================ */
.ask {
  padding: var(--sec-y) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.ask-body {
  grid-column: 2;
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  padding-bottom: 0.35em;
  max-width: 40ch;
}

.ask-lead {
  font-size: clamp(21px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.ask-sub {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  padding-left: clamp(16px, 1.6vw, 26px);
  border-left: 3px solid var(--orange);
  opacity: 0.82;
}

/* ============================================================
   4 · FOUR BAD HABITS
   ============================================================ */
.sec-head-solo { grid-template-columns: 1fr; }
.sec-head-solo .sec-h { grid-column: 1; }

.habits {
  padding: 0 var(--gutter) var(--sec-y);
  max-width: var(--maxw);
  margin: 0 auto;
}

.habit-list {
  --numcol: clamp(72px, 8vw, 128px);
  list-style: none;
  margin-top: clamp(44px, 5.5vw, 84px);
  border-top: 2px solid var(--ink);
}

.habit {
  display: grid;
  grid-template-columns: var(--numcol) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(26px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.45s var(--ease-out);
}

/* funnel connector — the four habits are one machine, in order */
.habit-down {
  position: absolute;
  left: calc(var(--numcol) / 2 - 8px);
  bottom: -13px;                 /* straddles the row divider */
  width: 16px;
  height: 23px;
  color: var(--orange);
  opacity: 0.6;
  overflow: visible;
  z-index: 1;
  background: var(--paper);      /* keeps the divider from cutting through it */
  padding: 3px 4px;
  box-sizing: content-box;
}

.habit:hover .habit-down { background: transparent; opacity: 0.85; }

.habit.in .habit-down {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-out) 0.35s;
}

/* colour swipe fills from the left on hover — the confetti palette,
   one step per habit */
.habit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--swipe, var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}

.habit-1 { --swipe: var(--lime); }
.habit-2 { --swipe: var(--acid); }
.habit-3 { --swipe: var(--pink); }
.habit-4 { --swipe: var(--green-mid); }

.habit:hover::before { transform: scaleX(1); }
.habit:hover { padding-left: clamp(14px, 2vw, 32px); }

.habit-no {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  color: var(--orange);
  transition: color 0.4s var(--ease-out);
}

.habit:hover .habit-no { color: var(--ink); }

.habit-h {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.habit-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.habit-tags li {
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1.5px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  padding: 7px 15px;
  background: color-mix(in srgb, var(--paper) 65%, transparent);
  transition: border-color 0.4s var(--ease-out);
}

.habit:hover .habit-tags li { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }

/* ============================================================
   5 · BEFORE YOU BOOK
   ============================================================ */
.pledge {
  padding: 0 var(--gutter) var(--sec-y);
  max-width: var(--maxw);
  margin: 0 auto;
}

.pledge-card {
  background: var(--acid);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.pledge-h {
  grid-column: 1;
  font-size: clamp(38px, 5.6vw, 92px);
  color: var(--ink);
}


.pledge-body { display: grid; gap: clamp(16px, 1.8vw, 26px); max-width: 64ch; }

.pledge-body p { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; }

.pledge-lead {
  font-size: clamp(19px, 1.9vw, 30px) !important;
  font-weight: 700;
  line-height: 1.3 !important;
  letter-spacing: -0.012em;
}

/* ============================================================
   6 · CLOSE
   ============================================================ */
.close {
  padding: 0 var(--gutter) clamp(44px, 5vw, 76px);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-h {
  /* sized so each sentence holds its own line — "AWAY." stranded alone
     on a fifth line was the giveaway that this was wrapping, not composed */
  font-size: clamp(30px, 6.9vw, 100px);
  max-width: 13.4em;
  margin-bottom: clamp(28px, 3.2vw, 46px);
}

.close-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   7 · BOOK  (cal.com inline)
   ============================================================ */
.book {
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  padding: clamp(40px, 4.5vw, 68px) var(--gutter) clamp(48px, 5.5vw, 80px);
}

.booking { width: 100%; max-width: 940px; margin: 0 auto; }
.booking[hidden] { display: none; }

.booking-shell {
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  text-align: left;
}

.booking-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
}

.booking-cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.booking-cap-dim { opacity: 0.55; letter-spacing: 0.14em; }

/* the embed manages its own height; this just stops a collapsed iframe
   from looking like a broken box while it loads */
.booking-frame { min-height: 560px; width: 100%; }
.booking-frame iframe { display: block; width: 100% !important; border: 0; }

.booking-fallback { padding: 40px 24px; text-align: center; font-size: 16px; }
.booking-fallback a { font-weight: 700; text-decoration: underline; }

.booking-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(24px, 2.6vw, 34px) 0 clamp(16px, 1.8vw, 22px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.42;
}

.booking-or::before,
.booking-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.book-alt { display: flex; justify-content: center; }

/* ============================================================
   FOOTER — modelled on the reference: newsletter left, contact right,
   legal along the bottom, and a quiet arc pointing at the socials.
   ============================================================ */
.footer {
  border-top: 2px solid var(--ink);
  padding: clamp(48px, 6vw, 92px) var(--gutter) clamp(22px, 2.4vw, 32px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.ft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  padding-bottom: clamp(44px, 5vw, 76px);
}

/* --- left: newsletter --- */
.ft-news-label {
  display: block;
  font-size: clamp(19px, 1.9vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  max-width: 18ch;
}

.ft-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  background: var(--paper);
  max-width: 430px;
  transition: border-color 0.3s var(--ease-out);
}

.ft-field:focus-within { border-color: var(--orange); }

.ft-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 0;
}

.ft-input:focus { outline: none; }
.ft-input::placeholder { color: color-mix(in srgb, var(--ink) 42%, transparent); }

.ft-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.ft-submit:hover { background: var(--orange); color: var(--ink); }
.ft-submit .arrow { transition: transform 0.3s var(--ease-snap); }
.ft-submit:hover .arrow { transform: translateX(4px); }

.ft-news-note { font-size: 13px; opacity: 0.5; margin-top: 12px; min-height: 1.4em; }
.ft-news-note.is-good { color: var(--green-deep); opacity: 1; font-weight: 600; }
.ft-news-note.is-bad { color: var(--orange-deep); opacity: 1; font-weight: 600; }

/* --- right: email, then follow --- */
.ft-contact { display: grid; gap: clamp(28px, 3.4vw, 52px); align-content: start; }

.ft-mail {
  position: relative;   /* anchors the hover scribble */
  justify-self: start;
  font-size: clamp(20px, 2.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding-bottom: 0.12em;
  transition: color 0.3s var(--ease-out);
}

.ft-mail:hover { color: var(--orange); }

/* scribble underline, injected by main.js, drawn on hover */
.ft-mail .btn-scribble {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: auto;
  color: var(--orange);
  overflow: visible;
  pointer-events: none;
  transition: stroke-dashoffset 0.75s var(--ease-out);
}

.ft-mail:hover .btn-scribble { stroke-dashoffset: 0; }

.ft-cap {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 14px;
}

.ft-social { display: flex; gap: clamp(20px, 3vw, 46px); }

.ft-social a {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.ft-social a:hover { border-bottom-color: var(--orange); color: var(--orange); }

/* --- base --- */
.ft-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
}

.ft-copy {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}

.ft-legal { display: flex; gap: clamp(16px, 2vw, 30px); }

.ft-legal a {
  font-size: 13px;
  text-decoration: none;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.ft-legal a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.is-legal .topbar { position: sticky; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(120px, 15vh, 168px) var(--gutter) clamp(72px, 9vw, 128px);
}

.legal-cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 18px;
}

.legal-h {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.93;
  font-size: clamp(40px, 6.5vw, 88px);
  margin-bottom: 14px;
}

.legal-updated {
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.5;
  padding-bottom: clamp(28px, 3.4vw, 44px);
  border-bottom: 2px solid var(--ink);
}

.legal-body { padding-top: clamp(28px, 3.4vw, 44px); }

.legal-draft {
  background: var(--acid);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: clamp(30px, 3.6vw, 48px);
}

.legal-body h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: -0.015em;
  margin: clamp(28px, 3vw, 40px) 0 10px;
}

.legal-body p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; opacity: 0.85; }
.legal-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.is-legal .footer { border-top: 2px solid var(--ink); padding-top: clamp(22px, 2.4vw, 32px); }
.is-legal .ft-base { border-top: none; padding-top: 0; }

/* ============================================================
   REVEALS
   ============================================================ */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal].in { opacity: 1; transform: translateY(0); }

/* word-mask reveal — the reference's signature move */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.word > span { display: block; }

.js-motion .word > span {
  transform: translateY(112%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-split].in .word > span { transform: translateY(0); }

/* line-mask heading reveal (same move, per authored line) */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}

.line > span { display: block; }

.js-motion .line > span {
  transform: translateY(110%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-split].in .line > span { transform: translateY(0); }

/* failsafe: once the reveal window has passed the mask stops mattering, so
   release the transform. A half-finished mask hides the headline outright. */
[data-split].is-settled .word > span,
[data-split].is-settled .line > span { transform: none; transition: none; }

[data-split].is-settled .word,
[data-split].is-settled .line { overflow: visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-figure { max-width: 420px; }
  .ft-grid { gap: clamp(34px, 5vw, 60px); }
}

@media (max-width: 860px) {
  .topnav { display: none; }

  .sec-head { grid-template-columns: 1fr; row-gap: clamp(18px, 3vw, 26px); }
  .sec-h, .sec-lede { grid-column: 1; }
  .sec-lede { padding-bottom: 0; }

  .hero { padding-top: clamp(104px, 15vh, 140px); }
  .hero-head { padding: clamp(40px, 8vh, 76px) 0; }

  /* the reference runs the comp above 100% of the container on small screens:
     it keeps band-thickness-to-cap-height near desktop's ratio while leaving
     the ribbon type just large enough to read */
  .ribbons-svg { width: 108%; left: -4%; }
  .rb-text { font-size: 48px; }


  .close-h { font-size: clamp(30px, 8.6vw, 58px); }

  .habit {
    grid-template-columns: clamp(52px, 12vw, 72px) minmax(0, 1fr);
    align-items: start;
    gap: 8px 18px;
  }
  .habit-tags { grid-column: 2; justify-content: flex-start; margin-top: 12px; }
  .habit:hover { padding-left: 12px; }

  .pledge-card { grid-template-columns: 1fr; gap: clamp(18px, 3vw, 26px); }
  .ask-body { grid-column: 1; max-width: none; padding-bottom: 0; }

  .booking-frame { min-height: 560px; }
  .booking-bar { padding: 11px 16px; }
  .booking-cap { font-size: 10px; letter-spacing: 0.14em; }
  .book-alt .btn { width: 100%; }

  .ft-grid { grid-template-columns: 1fr; gap: 40px; }
  .ft-base { justify-content: flex-start; }
}

/* Below 620 the headline breaks into four short lines instead of two long
   ones. That keeps it large enough that the ribbons still read as garnish —
   band-to-cap-height stays near the 0.28 the reference holds. */
@media (max-width: 620px) {
  .br-sm { display: block; }
  .hero-h { font-size: clamp(40px, 22vw, 124px); max-width: none; }
  .ribbons-svg { width: 150%; left: -25%; }
  .rb-text { font-size: 58px; }
}

@media (max-width: 520px) {
  .btn-big { padding: 17px 26px; font-size: 13px; }
  .hero-actions, .close-btns { align-self: stretch; }
  .hero-actions .btn, .close-btns .btn { width: 100%; }
}

/* ============================================================
   REDUCED MOTION — the ribbons become a static, composed still
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
  .hero-foot { opacity: 1; animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .line > span, .word > span { transform: none; transition: none; }
  .btn, .habit, .habit::before, .lesson-photo img { transition: none; }
  .mark, .habit-down, .btn-scribble { stroke-dashoffset: 0 !important; transition: none; }
}
