/* Penstone redesign concept. Pearl palette, Apple-level craft.
   Tokens first; every colour, size and space comes from here. */

:root {
  color-scheme: light;

  /* Colour */
  --pearl: #F7F6F2;        /* page */
  --paper: #FFFFFF;        /* raised surfaces */
  --ink: #0B1220;          /* brand navy, used as text */
  --slate: #4A5568;        /* body text, 7.5:1 on white */
  --mist: #5B6B82;         /* labels, 5.4:1 on white */
  --signal: #2a6cb2;       /* the logo's deepest blue: buttons and links */
  --signal-deep: #225a94;  /* hover */
  --electric: #4E9EFF;     /* brand electric blue: fills only, never text */
  --dusk: #E4E9F1;         /* the page drifts toward this after 18:30 */
  --line: rgba(11, 18, 32, 0.1);
  --rule: #7A8599;         /* form lines: 3.6:1 on white, enough to see where to write */
  --error: #B42318;        /* form errors: 6.3:1 on white */

  /* Type */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --t-hero: clamp(2.75rem, 1.55rem + 5.3vw, 6rem);
  --t-h2: clamp(2.125rem, 1.4rem + 3vw, 4rem);
  --t-h3: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem);
  --t-clock: clamp(4rem, 2.2rem + 7vw, 9.5rem);
  --t-lede: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* Space (one scale for everything) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Depth: layered, navy-tinted */
  --shadow-raised: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px -10px rgba(11, 18, 32, 0.16);
  --shadow-float:
    0 2px 6px rgba(11, 18, 32, 0.06),
    0 30px 60px -22px rgba(11, 18, 32, 0.32),
    0 80px 120px -50px rgba(42, 108, 178, 0.38);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 76px;
  --wrap: 75rem;
}
@media (max-width: 599px) {
  :root { --nav-h: 68px; }
}

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

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

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

[hidden] { display: none !important; } /* hidden wins over any display rule */

img, svg { display: block; }

::selection { background: rgba(78, 158, 255, 0.28); }

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

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: var(--s-4); }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--s-6);
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1 var(--f-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--signal);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12), 0 8px 20px -8px rgba(42, 108, 178, 0.55);
}
.btn--primary:hover {
  background: var(--signal-deep);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.14), 0 12px 26px -10px rgba(42, 108, 178, 0.6);
}

.btn--small {
  min-height: 44px;
  padding: 0 var(--s-5);
  font-size: 0.9375rem;
}

.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(11, 18, 32, 0.28);
  text-underline-offset: 0.32em;
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }
.link:active { color: var(--signal); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}
/* No full-width bar: the logo, the pill and the button float on their own, each readable by itself.
   The nav fades with the scroll: --nav-v runs from 1 (shown) to 0 (gone), set by the script as
   you scroll down, and back to 1 as you scroll up. The short linear transition smooths out the
   jumps of a mouse wheel. Only the contents change: fading or moving .nav itself would trap the
   fixed phone menu inside it. */
.nav { --nav-v: 1; }
.nav.is-hidden { pointer-events: none; } /* no taps on a nav you can barely see */

.nav__inner {
  opacity: var(--nav-v);
  transform: translateY(calc((1 - var(--nav-v)) * -8px));
  transition: opacity 0.2s linear, transform 0.2s linear;
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.brand__mark { height: 50px; width: auto; }
.brand__word {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
/* One frosted pill, centred: logo and name on their own at the left end, open space, then the
   section links. On phones and tablets it holds the logo and the menu button. */
.nav__bar {
  grid-column: 2;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(11, 18, 32, 0.04);
}
.nav .brand {
  padding: 0 0.6rem 0 0.55rem;
  gap: 0.5rem;
  border-radius: 999px;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav .brand:hover { opacity: 0.78; }
.nav .brand:active { transform: scale(0.98); }
.nav .brand__mark { height: 36px; }
.nav .brand__word { font-size: 1.5rem; }
/* Open space between the logo and the links (no divider line) */
.nav__divider {
  flex: none;
  width: clamp(2rem, 16vw - 7rem, 13rem);
}

/* The section you're reading gets a raised white highlight (set by the script;
   without it the links simply have no highlight). */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(11, 18, 32, 0.045); }
.nav__links a:active { background: rgba(11, 18, 32, 0.09); }
.nav__links a[aria-current="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.07), 0 4px 12px -6px rgba(11, 18, 32, 0.2);
}
.nav__links a:focus-visible { border-radius: 999px; }

/* The nav's own "Book a free audit". Visible by default; the script hides it while the hero's
   button or the form is on screen, so the page never shows the same button twice. */
.nav__cta {
  white-space: nowrap; /* never squeezed onto two lines by the pill */
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.35s var(--ease),
    transform 0.5s var(--ease),
    visibility 0s linear 0s;
}
.nav.cta-armed .nav__cta:not(.is-shown) {
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.nav__cta:focus-visible { border-radius: 999px; }

.nav__end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* Menu button: two lines that turn into a cross, inside the pill on the right */
.nav__toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__toggle:hover { background: rgba(11, 18, 32, 0.045); }
.nav__toggle:active { transform: scale(0.95); background: rgba(11, 18, 32, 0.09); }
.nav__toggle:focus-visible { border-radius: 999px; }
.nav__bars {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 10px;
  margin: -5px 0 0 -10px;
}
.nav__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.nav__bars i:first-child { top: 0; }
.nav__bars i:last-child { bottom: 0; }
.nav.is-open .nav__bars i:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.is-open .nav__bars i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Phone menu panel */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: calc(var(--nav-h) + var(--s-5)) var(--s-5) var(--s-7);
  overflow-y: auto;
  background: rgba(247, 246, 242, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.5s var(--ease),
    visibility 0s linear 0.5s;
}
.nav.is-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s;
}
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu__list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.5s var(--ease);
}
.nav.is-open .menu__list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--d) * 45ms + 90ms);
}
.menu__list a {
  display: block;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.menu__list a:hover { color: var(--signal); }
.menu__cta { width: 100%; margin-top: var(--s-6); }
html.menu-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Below 1000px the links move into the menu; below 600px the button does too */
@media (max-width: 999px) {
  .nav__links,
  .nav__divider { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__bar { grid-column: 1; justify-self: start; gap: var(--s-5); } /* compact: logo, then menu */
  .nav__end { grid-column: 2; }
}
@media (min-width: 1000px) {
  .menu { display: none; }
}
@media (max-width: 599px) {
  .brand__mark { height: 44px; }
  .brand__word { font-size: 1.5rem; }
  .nav .brand__mark { height: 34px; }
  .nav .brand__word { font-size: 1.375rem; }
  .nav__cta { display: none; } /* on phones it lives in the menu */
  .nav__end { display: none; }
  .nav__inner { grid-template-columns: 1fr; }
  .nav__bar { justify-self: stretch; } /* phones: the pill spans the screen, menu on the far right */
}

/* Hero */
.hero {
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + var(--s-9)) var(--s-5) var(--s-9);
  text-align: center;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero__title .hero__line { display: block; }

.hero__lede {
  max-width: 36rem;
  margin: var(--s-6) auto 0;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
  text-wrap: balance; /* even line lengths, so no single word hangs on the last line */
}

.hero__actions {
  margin-top: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4) var(--s-6);
}

/* The one page-load moment: hero lines rise in sequence once fonts are ready */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line {
    opacity: 0;
    transform: translateY(28px);
  }
  .js.is-loaded .hero__line {
    animation: rise 1.2s var(--ease) forwards;
    animation-delay: calc(var(--d) * 120ms + 80ms);
  }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* A day at your business */
.day__intro {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-10) var(--s-5) var(--s-7);
}
.day__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.day__lede {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
}

/* Tall track; the stage inside stays pinned while it scrolls past. Half a screen per moment. */
.day__track {
  position: relative;
  height: calc(100vh + 6 * 50vh);
  height: calc(100svh + 6 * 50svh);
}

.day__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--s-5)) var(--s-5) var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy phone";
  align-items: center;
  column-gap: clamp(2rem, 7vw, 7rem);
}

.day__copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  min-width: 0;
}

/* Business switch: a segmented control. The white thumb slides under the chosen business. */
.biz {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 21rem);
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
}
.biz__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-raised);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.5s var(--ease);
}
.biz__btn {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: 999px;
  background: none;
  font: 500 0.875rem/1 var(--f-body);
  color: var(--slate);
  cursor: pointer;
  transition: color 0.3s var(--ease), transform 0.25s var(--ease);
}
.biz__btn:hover { color: var(--ink); }
.biz__btn:active { transform: scale(0.97); }
.biz__btn[aria-pressed="true"] { color: var(--ink); }

/* The clock: type as the centrepiece. Each digit sits in a fixed cell so it never jitters. */
.clock {
  display: flex;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-clock);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.clock span {
  display: inline-block;
  width: 0.56em;
  text-align: center;
}
.clock .clock__colon {
  width: 0.26em;
  transform: translateY(-0.05em);
}

.moments {
  display: grid;
  max-width: 30rem;
}
/* The old moment leaves quickly; the new one arrives just after, so text never overlaps */
.moment {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.moment.is-past { transform: translateY(-16px); }
.moment.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease) 0.18s, transform 0.9s var(--ease) 0.12s;
}
.moment__by {
  margin-bottom: var(--s-3);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--mist);
}
.moment__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Timeline: a sequence of times, so numbered stops are honest here */
.timeline {
  position: relative;
  max-width: 30rem;
}
.timeline__track {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--electric);
  transform-origin: left center;
  transform: scaleX(0.08);
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.timeline__list button {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 18px 0 8px;
  border: 0;
  background: none;
  font: 400 var(--t-micro)/1 var(--f-mono);
  color: var(--mist);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.timeline__list button::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid rgba(11, 18, 32, 0.22);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.4s var(--ease);
}
.timeline__list button:hover { color: var(--ink); }
.timeline__list button:active::before { transform: scale(0.9); }
.timeline__list button.is-reached::before {
  background: var(--electric);
  border-color: var(--electric);
}
.timeline__list button[aria-current="step"] { color: var(--ink); }
.timeline__list button[aria-current="step"]::before { transform: scale(1.3); }

/* Phone. Everything inside is sized in em, so the whole phone scales from one font-size
   that fits the screen height. */
.day__phone {
  grid-area: phone;
  display: flex;
  justify-content: center;
}

.phone {
  --stage-chrome: 200px;
  font-size: clamp(9px, calc((100vh - var(--stage-chrome)) / 38.5), 16px);
  font-size: clamp(9px, calc((100svh - var(--stage-chrome)) / 38.5), 16px);
  position: relative;
  width: 18.75em;
  height: 38.5em;
  padding: 0.6em;
  border-radius: 3em;
  background: linear-gradient(150deg, #1d2534 0%, #0b1220 60%, #151c2a 100%);
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 2.45em;
  overflow: hidden;
  background: #EEF0F3;
  isolation: isolate;
}

.phone__island {
  position: absolute;
  top: 0.65em;
  left: 50%;
  z-index: 6;
  width: 6em;
  height: 1.75em;
  margin-left: -3em;
  border-radius: 1em;
  background: #000;
}

.phone__status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 3em;
  padding: 0.15em 1.65em 0 2.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 0.9em/1 var(--f-body);
  color: #0B1220;
  transition: color 0.4s var(--ease);
}
.phone__icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.phone__icons svg { height: 0.78em; width: auto; fill: currentColor; }
.phone.is-night .phone__status { color: #fff; }

/* Screens stack; one is shown at a time */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 3em;
  background: #EEF0F3;
  opacity: 0;
  /* The outgoing screen stays put underneath until the new one has faded in on top */
  transition: opacity 0s linear 0.6s;
}
.screen.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity 0.55s var(--ease);
}
.screen--search { background: #fff; }
.screen--night { background: #0B141A; }

/* Chat */
.chat__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.9em 0.65em;
  background: #F7F8FA;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}
.chat__back { width: 0.55em; height: auto; fill: none; stroke: #0B1220; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat__avatar {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  font: 600 0.8em/1 var(--f-body);
}
.chat__who { display: flex; flex-direction: column; }
.chat__name { font: 600 0.9em/1.25 var(--f-body); color: #0B1220; }
.chat__sub { font: 400 0.7em/1.3 var(--f-body); color: #5B6B82; }

.chat__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 0.9em 0.75em;
  overflow: hidden;
}
.chat__day {
  align-self: center;
  margin-bottom: 0.3em;
  padding: 0.45em 0.8em;
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.85);
  font: 500 0.66em/1 var(--f-body);
  color: #5B6B82;
}

.msg {
  max-width: 80%;
  padding: 0.5em 0.65em 0.35em;
  border-radius: 0.85em;
  font: 400 0.84em/1.38 var(--f-body);
  color: #0B1220;
  box-shadow: 0 1px 0.5px rgba(11, 18, 32, 0.08);
}
.msg time {
  display: block;
  margin-top: 0.25em;
  text-align: right;
  font: 400 0.72em/1 var(--f-mono);
  color: #5B6B82;
}
.msg--in {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 0.3em;
}
.msg--out {
  align-self: flex-end;
  background: #D9FDD3; /* WhatsApp's own bubble colour: WhatsApp elements only */
  border-bottom-right-radius: 0.3em;
}

.doc {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.6em;
  border-radius: 0.6em;
  background: #F2F4F7;
}
.doc__icon { width: 1.7em; height: auto; flex: none; fill: var(--signal); }
.doc__icon .doc__fold { fill: rgba(255, 255, 255, 0.5); }
.doc__text { display: flex; flex-direction: column; }
.doc__text b { font-weight: 600; font-size: 0.95em; line-height: 1.3; }
.doc__text small { font-size: 0.8em; color: #5B6B82; }
/* Contact card (the 02:00 emergency line): round phone icon instead of a page */
.doc--contact .doc__icon { width: 1.9em; }
.doc--contact .doc__phone { fill: #fff; }
.screen--night .doc { background: #111B21; }
.screen--night .doc__text small { color: #8696A0; }

.chat__composer {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.7em 1.4em;
}
.chat__input {
  flex: 1;
  height: 2.5em;
  padding: 0 1em;
  display: flex;
  align-items: center;
  border-radius: 1.25em;
  background: #fff;
  font: 400 0.8em/1 var(--f-body);
  color: #8A94A6;
}
.chat__mic {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  flex: none;
  border-radius: 50%;
  background: #25D366; /* WhatsApp green: WhatsApp elements only */
}
.chat__mic svg { width: 1.1em; height: auto; fill: #fff; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }
.chat__mic svg path { fill: none; }

/* Night screens follow the phone's dark mode */
.screen--night .chat__head { background: #1F2C34; border-color: rgba(255, 255, 255, 0.04); }
.screen--night .chat__back { stroke: #E9EDEF; }
.screen--night .chat__name { color: #E9EDEF; }
.screen--night .chat__sub { color: #8696A0; }
.screen--night .chat__day { background: #1F2C34; color: #8696A0; }
.screen--night .msg { color: #E9EDEF; box-shadow: none; }
.screen--night .msg time { color: #8696A0; }
.screen--night .msg--in { background: #1F2C34; }
.screen--night .msg--out { background: #005C4B; }
.screen--night .chat__input { background: #1F2C34; color: #8696A0; }
.screen--night .chat__mic { background: #00A884; }

/* Search */
.search {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  padding: 0.9em 0.9em 0;
}
.search__bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.2em;
  padding: 0 1.1em;
  border-radius: 1.6em;
  background: #F1F3F5;
  font: 400 0.85em/1 var(--f-body);
  color: #0B1220;
}
.search__bar svg { width: 1em; height: auto; fill: none; stroke: #5B6B82; stroke-width: 1.8; stroke-linecap: round; }
.search__tabs {
  display: flex;
  gap: 1.3em;
  padding: 0 0.35em 0.6em;
  border-bottom: 1px solid #ECEEF1;
  font: 500 0.72em/1 var(--f-body);
  color: #5B6B82;
}
.search__tabs .is-on { color: #0B1220; }

.result {
  padding: 0.95em;
  border-radius: 1em;
  background: #fff;
  border: 1px solid #E6E8EC;
  box-shadow: var(--shadow-raised);
}
.result__site { display: flex; align-items: center; gap: 0.55em; }
.result__icon {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  font: 600 0.62em/1 var(--f-body);
}
.result__meta { display: flex; flex-direction: column; }
.result__name { font: 600 0.74em/1.25 var(--f-body); color: #0B1220; }
.result__url { font: 400 0.66em/1.3 var(--f-body); color: #5B6B82; }
.result__title {
  margin: 0.6em 0 0.35em;
  font: 500 0.98em/1.3 var(--f-body);
  color: var(--signal);
}
.result__desc { font: 400 0.74em/1.45 var(--f-body); color: #4A5568; }
.result__chips { display: flex; gap: 0.4em; margin-top: 0.8em; }
.result__chips span {
  padding: 0.55em 0.85em;
  border-radius: 2em;
  border: 1px solid #DADDE3;
  font: 500 0.66em/1 var(--f-body);
  color: #0B1220;
}

.ghost { display: flex; flex-direction: column; gap: 0.5em; padding: 0.4em 0.35em; }
.ghost span { height: 0.6em; border-radius: 0.3em; background: #EEF0F3; }
.ghost span:nth-child(1) { width: 45%; }
.ghost span:nth-child(2) { width: 90%; height: 0.75em; }
.ghost span:nth-child(3) { width: 75%; }

/* Messages appear one by one once the day is on screen */
.js .pop {
  opacity: 0;
  transform: translateY(0.7em) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}
/* --t is when an item appears (ms after the screen goes live).
   A reply inside a .slot first shows "typing" for --dur ms, then the message replaces it. */
.js .is-live .screen.is-active .pop {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--t, 0) * 1ms);
}
.js .is-live .screen.is-active .slot .pop {
  transition-delay: calc((var(--t) + var(--dur)) * 1ms);
}

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.typing {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.28em;
  padding: 0.8em 0.85em;
  border-radius: 0.85em;
  border-bottom-left-radius: 0.3em;
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 18, 32, 0.08);
  opacity: 0;
}
.typing i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: #8A94A6;
}
.screen--night .typing { background: #1F2C34; box-shadow: none; }
.screen--night .typing i { background: #8696A0; }

.js .is-live .screen.is-active .typing {
  animation: typing-life calc(var(--dur) * 1ms) var(--ease) calc(var(--t) * 1ms) both;
}
.js .is-live .screen.is-active .typing i {
  animation: typing-dot 1s ease-in-out infinite;
}
.js .is-live .screen.is-active .typing i:nth-child(2) { animation-delay: 0.15s; }
.js .is-live .screen.is-active .typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-life {
  0% { opacity: 0; transform: translateY(0.4em) scale(0.96); }
  20% { opacity: 1; transform: none; }
  85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes typing-dot {
  0%, 60%, 100% { transform: none; opacity: 0.45; }
  30% { transform: translateY(-0.28em); opacity: 1; }
}
.js .is-live .screen.is-active .result {
  box-shadow: var(--shadow-raised), 0 0 0 2px rgba(78, 158, 255, 0.45);
}

/* Services. The intro and index stay put on the left; the three groups scroll past on the
   right. Each visual is a small scene that assembles itself, layer by layer, as it arrives. */
.services__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-10) var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.services__aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-8));
}
.services__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.services__lede {
  max-width: 26rem;
  margin-top: var(--s-5);
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
}

/* Index: a quiet "you are here" for the three groups */
.svc-index {
  list-style: none;
  margin: var(--s-7) 0 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.svc-index a {
  position: relative;
  display: block;
  padding: var(--s-2) var(--s-5);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.svc-index a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transition: transform 0.5s var(--ease);
}
.svc-index a:hover { color: var(--ink); }
.svc-index a:active { color: var(--signal); }
.svc-index a[aria-current="true"] { color: var(--ink); }
.svc-index a[aria-current="true"]::before { transform: none; }

.svc { scroll-margin-top: calc(var(--nav-h) + var(--s-6)); }
.svc + .svc { margin-top: var(--s-10); }

/* Everything we can set up: six one-line rows under the three groups. Same open/close and plus
   icon as the FAQ, one size smaller, so the detail is there only when someone asks for it. */
.kit { margin-top: var(--s-10); }
.kit__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kit__lede { margin-top: var(--s-3); line-height: 1.6; color: var(--slate); }
.kit__list { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.faq__q.kit__q { padding: var(--s-4) 0; font: inherit; }
.kit__head { display: grid; gap: 0.2rem; min-width: 0; }
.kit__name {
  font: 400 1.25rem/1.25 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.kit__line { font-size: 0.9375rem; line-height: 1.5; color: var(--slate); }
.kit__q:hover .kit__name { color: var(--signal); }
.kit__q .faq__icon { width: 32px; height: 32px; }
.kit__a { padding: 0 3.25rem var(--s-5) 0; }
.kit__item[open] .kit__a { animation: faq-open 0.6s var(--ease) both; }
.kit__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.kit__points li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.6; color: var(--slate); }
.kit__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.55rem;
  height: 1.5px;
  border-radius: 1px;
  background: var(--signal);
}
@media (max-width: 860px) {
  .kit { margin-top: var(--s-9); }
  .kit__a { padding-right: 0; }
}

.svc__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
/* Lists: a checklist that ticks itself, one line after another, as it scrolls into view.
   Without the script (or with reduced motion) every line simply shows as ticked. */
.svc__list {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-1) var(--s-5);
}
.svc__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-left: -0.5rem; /* the tick lines up with the text above; the hover card reaches past it */
  padding: 0.6rem 0.75rem 0.6rem 0.5rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.45s var(--ease);
}
.svc__tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -1px;
  border-radius: 50%;
  background: #E8F0FB;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc__tick svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc__tick path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Armed: empty circles waiting to be ticked */
.svc__list.is-armed .svc__tick {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  transform: scale(0.86);
}
.svc__list.is-armed .svc__tick path { stroke-dashoffset: 1; }
/* Ticked: each circle fills with a small bounce, then the pen draws the tick */
.svc__list.is-ticked .svc__tick {
  background: #E8F0FB;
  box-shadow: inset 0 0 0 0 transparent;
  transform: none;
  transition-delay: calc(var(--i) * 160ms);
}
.svc__list.is-ticked .svc__tick path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.45, 0, 0.25, 1);
  transition-delay: calc(var(--i) * 160ms + 180ms);
}
/* Once the whole list is ticked, hover reacts straight away */
.svc__list.is-done .svc__tick,
.svc__list.is-done .svc__tick path { transition-delay: 0s; }

/* Desktop: a line lifts like a card when you point at it, and its tick gives a little nod */
@media (hover: hover) {
  .svc__list li:hover {
    background: var(--paper);
    box-shadow: var(--shadow-raised);
    transform: translateY(-2px);
  }
  .svc__list li:hover .svc__tick { transform: rotate(-10deg) scale(1.1); }
}
.svc__note {
  margin-top: var(--s-5);
  font-size: var(--t-small);
  color: var(--mist);
}

/* The scene. Everything inside is sized in em from the scene's width, so it scales like a
   picture; positions are in %. */
.svc__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  margin-bottom: var(--s-7);
  border-radius: 28px;
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(78, 158, 255, 0.16), transparent 60%),
    linear-gradient(170deg, #EEF2F8 0%, var(--dusk) 100%);
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, 0.04);
}
.svc__visual > * { font-size: clamp(8px, 2.2cqi, 15px); }

/* 1. Website, Google listing and email */
.browser {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 78%;
  border-radius: 1em;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-float);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  height: 2.6em;
  padding: 0 1em;
  background: #F4F5F7;
  border-bottom: 1px solid #E8EAEE;
}
.browser__bar i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: #D5D9E0;
}
.browser__url {
  margin: 0 auto;
  padding: 0.4em 1.3em;
  border-radius: 0.6em;
  background: #fff;
  font: 400 0.75em/1 var(--f-body);
  color: #5B6B82;
}
.browser__page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.4em;
  padding: 1.8em 1.6em;
}
.browser__title {
  font: 400 1.75em/1.08 var(--f-display);
  letter-spacing: -0.025em;
  color: #0B1220;
}
.browser__text {
  margin-top: 0.75em;
  font: 400 0.78em/1.5 var(--f-body);
  color: #4A5568;
}
.browser__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.2em;
  padding: 0.7em 1.1em;
  border-radius: 2em;
  background: #0B1220;
  font: 500 0.75em/1 var(--f-body);
  color: #fff;
}
.browser__btn::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #25D366; /* WhatsApp green: WhatsApp elements only */
}
.browser__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.45em;
  aspect-ratio: 1 / 1;
}
.browser__photos span { border-radius: 0.6em; }
.browser__photos span:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(165deg, #C9D6E6 0%, #8FA6C4 100%);
}
.browser__photos span:nth-child(2) { background: linear-gradient(165deg, #E9E4DB 0%, #CFC5B6 100%); }
.browser__photos span:nth-child(3) { background: linear-gradient(165deg, #DCE3EC 0%, #B3C2D6 100%); }

.gcard {
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: 38%;
  padding: 1.1em 1.2em;
  border-radius: 1em;
  background: #fff;
  box-shadow: var(--shadow-float);
}
.gcard__name { font: 600 1em/1.3 var(--f-body); color: #0B1220; }
.gcard__meta { font: 400 0.75em/1.55 var(--f-body); color: #5B6B82; }
.gcard__meta + .gcard__meta { color: #188038; } /* Google's own "open" green */
.gcard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.8em;
}
.gcard__chips span {
  padding: 0.5em 0.85em;
  border-radius: 2em;
  border: 1px solid #DADDE3;
  font: 500 0.68em/1 var(--f-body);
  color: var(--signal);
}

.mailchip {
  position: absolute;
  left: 6%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.1em;
  border-radius: 2em;
  background: #fff;
  box-shadow: var(--shadow-raised);
  font: 500 0.76em/1 var(--f-body);
  color: #0B1220;
}
.mailchip svg {
  width: 1.2em;
  height: auto;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2. The assistant's day, as notifications */
.events {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0 12%;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75em;
}
.event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9em;
  padding: 0.9em 1.1em;
  border-radius: 1.1em;
  background: #fff;
  box-shadow: var(--shadow-raised);
}
.event__icon {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.75em;
  background: #E8F0FB;
}
.event__icon svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.event b { display: block; font: 600 0.9em/1.3 var(--f-body); color: #0B1220; }
.event small { display: block; font: 400 0.76em/1.4 var(--f-body); color: #5B6B82; }
.event time {
  align-self: start;
  font: 400 0.7em/1.7 var(--f-mono);
  color: #5B6B82;
}
/* The one the assistant passes to a person stands out */
.event--you { box-shadow: var(--shadow-float), 0 0 0 2px rgba(78, 158, 255, 0.55); }
.event--you .event__icon { background: var(--signal); }
.event--you .event__icon svg { stroke: #fff; }

/* 3. Care: a monthly check and a quick change */
.report {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 56%;
  padding: 1.3em 1.4em 1.1em;
  border-radius: 1.1em;
  background: #fff;
  box-shadow: var(--shadow-float);
}
.report__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid #ECEEF1;
}
.report__head b { font: 400 1.3em/1.2 var(--f-display); letter-spacing: -0.01em; color: #0B1220; }
.report__head span { font: 400 0.7em/1 var(--f-mono); color: #5B6B82; }
.report__rows { list-style: none; margin: 0.4em 0 0; padding: 0; }
.report__rows li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 0;
  font: 400 0.82em/1.35 var(--f-body);
  color: #0B1220;
}
.tick {
  display: grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  flex: none;
  border-radius: 50%;
  background: #E8F0FB;
}
.tick svg {
  width: 0.85em;
  height: 0.85em;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.report__foot {
  margin-top: 0.5em;
  padding-top: 0.8em;
  border-top: 1px solid #ECEEF1;
  font: 400 0.7em/1 var(--f-mono);
  color: #5B6B82;
}

.note {
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: 42%;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.note .msg {
  max-width: 100%;
  font-size: 0.9em;
  box-shadow: var(--shadow-raised);
}

/* Assembly: layers rise in one after another (--l is the order) */
.js .svc__visual .layer {
  opacity: 0;
  transform: translateY(1.6em);
  transition: opacity 0.7s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--l, 0) * 140ms + 100ms);
}
.js .svc.is-in .svc__visual .layer {
  opacity: 1;
  transform: none;
}
/* Then each check is ticked off, with a small overshoot */
.js .report .tick svg {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s var(--ease), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.js .svc.is-in .report .tick svg { opacity: 1; transform: none; }
.report__rows li:nth-child(1) .tick svg { transition-delay: 0.6s; }
.report__rows li:nth-child(2) .tick svg { transition-delay: 0.75s; }
.report__rows li:nth-child(3) .tick svg { transition-delay: 0.9s; }
.report__rows li:nth-child(4) .tick svg { transition-delay: 1.05s; }
.report__rows li:nth-child(5) .tick svg { transition-delay: 1.2s; }

/* Depth while scrolling: front layers drift a little further than back ones.
   --py (-1 to 1) is set from the scene's position on screen. Uses `translate`, so it never
   fights the assembly's `transform`. */
.svc__visual .layer {
  --depth: calc(var(--l, 0) * 14 + 4);
  translate: 0 calc(var(--py, 0) * var(--depth) * 1px);
}
.events .layer { --depth: calc(var(--l, 0) * 3 + 4); }
.note .layer { --depth: 30; }

/* How it works. One sheet of paper: "Your plan". A blue margin line draws down as you scroll
   and each step is written onto the sheet when the line reaches it. Once written, it stays. */
.how { padding: var(--s-10) var(--s-5); }
.how__intro {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.how__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.how__lede {
  max-width: 32rem;
  margin: var(--s-5) auto 0;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
}

.plan {
  --num: 2.75rem;     /* number column */
  --gutter: 1.75rem;  /* the margin line sits in the middle of this gap */
  position: relative;
  max-width: 46rem;
  margin: var(--s-8) auto 0;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}
.plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.plan__title {
  font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--f-display);
  letter-spacing: -0.02em;
}
.plan__for {
  margin-top: var(--s-2);
  font: 400 var(--t-micro)/1.4 var(--f-mono);
  color: var(--mist);
}
.plan__mark { height: 46px; width: auto; flex: none; }

.plan__body { position: relative; margin-top: var(--s-4); }
.plan__steps { list-style: none; margin: 0; padding: 0 0 var(--s-8); }

/* The margin line. It fades out below the last step: the care doesn't stop. */
.plan__rule {
  position: absolute;
  z-index: 1;
  top: var(--s-6);
  bottom: 0;
  left: calc(var(--num) + var(--gutter) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(78, 158, 255, 0.16);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.plan__fill {
  position: absolute;
  inset: 0;
  background: var(--electric);
  transform-origin: top center;
  transform: scaleY(0);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--num) minmax(0, 1fr);
  column-gap: var(--gutter);
  padding: var(--s-5) 0;
}
/* A dot on the margin line for each step */
.step::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(var(--s-5) + 0.6rem);
  left: calc(var(--num) + var(--gutter) / 2 - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid rgba(78, 158, 255, 0.45);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step__num {
  padding-top: 0.45rem;
  text-align: right;
  font: 400 var(--t-small)/1.4 var(--f-mono);
  color: var(--mist);
  transition: color 0.5s var(--ease);
}
.step__title {
  position: relative;
  width: fit-content;
  font: 400 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.15 var(--f-display);
  letter-spacing: -0.02em;
}
.step__text {
  max-width: 34rem;
  margin-top: var(--s-2);
  color: var(--slate);
}

.step.is-written::before {
  background: var(--electric);
  border-color: var(--electric);
  transform: scale(1.15);
}
.step.is-written .step__num { color: var(--signal); }

/* Writing: a white veil with a soft left edge slides off the title, left to right, then the
   sentence settles in underneath. JS arms the sheet, so nothing hides if the script fails. */
.step__title::after {
  content: "";
  position: absolute;
  inset: -0.1em -0.2em -0.2em -0.6em;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #fff 0.6em);
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}
.plan.is-armed .step__title::after { transform: none; }
.plan.is-armed .step.is-written .step__title::after {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.25, 1);
}
.plan.is-armed .step__text {
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.plan.is-armed .step.is-written .step__text {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

.how__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s-7);
}

/* About Penstone. The promise on the left, what we do on the right, and a quiet note at the
   end that Penny is ours and the client's assistant gets its own name. */
.about__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-10) var(--s-5) 0;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: start;
  gap: var(--s-7) clamp(2rem, 6vw, 6rem);
}
.about__title {
  font-family: var(--f-display);
  font-weight: 300;
  text-wrap: balance;
}
.about__body {
  max-width: 36rem;
  padding-top: var(--s-2);
}
.about__body p { line-height: 1.7; color: var(--slate); }
.about__body p + p { margin-top: var(--s-4); }
.about__body p:first-child {
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--ink);
}
.about__body .about__penny {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(11, 18, 32, 0.12);
  font-size: var(--t-small);
  line-height: 1.6;
}
.about__penny .penny-face { font-size: 1.75rem; }
.about__chat {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(11, 18, 32, 0.28);
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
.about__chat:hover { text-decoration-color: currentColor; }
.about__chat:active { color: var(--signal); }
.about__chat:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

/* The paragraphs rise in one after another when they scroll into view. JS arms it, so
   nothing hides without the script or with reduced motion. */
.about__body.is-armed p { opacity: 0; transform: translateY(14px); }
.about__body.is-in p {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--k) * 140ms);
}

@media (max-width: 860px) {
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    padding-top: var(--s-9);
  }
  .about__body { padding-top: 0; }
}

/* Who you'll work with. The story set large, then both names "signed" above a line that
   draws itself like a pen stroke. */
.team__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-10) var(--s-5);
}
.team__story span { display: block; } /* one sentence per line */
.team__story {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.team__lede {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
}

.team__signs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  gap: var(--s-7) clamp(2rem, 6vw, 6rem);
  margin-top: var(--s-9);
}
.sign__name {
  font: 400 clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem)/1.1 var(--f-display);
  letter-spacing: -0.02em;
}
.sign__line {
  display: block;
  height: 1.5px;
  margin: var(--s-3) 0 var(--s-4);
  border-radius: 2px;
  background: rgba(11, 18, 32, 0.28);
  transform-origin: left center;
}
.sign__role { max-width: 20rem; color: var(--slate); }
.team__where {
  max-width: 36rem;
  margin-top: var(--s-7);
  font-size: var(--t-small);
  color: var(--mist);
}

/* Signing: the line draws left to right, the name settles onto it, then the role.
   Menzi's block goes first, Wazeer's just after (--k). JS arms it, so nothing hides
   without the script. */
.team__signs.is-armed .sign__line { transform: scaleX(0); }
.team__signs.is-armed .sign__name,
.team__signs.is-armed .sign__role {
  opacity: 0;
  transform: translateY(0.5em);
}
.team__signs.is-in .sign__line {
  transform: none;
  transition: transform 1s cubic-bezier(0.45, 0, 0.25, 1);
  transition-delay: calc(var(--k) * 250ms);
}
.team__signs.is-in .sign__name,
.team__signs.is-in .sign__role {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 1s var(--ease);
}
.team__signs.is-in .sign__name { transition-delay: calc(var(--k) * 250ms + 300ms); }
.team__signs.is-in .sign__role { transition-delay: calc(var(--k) * 250ms + 600ms); }

/* FAQ. Quiet on purpose: the heading stays put while the questions scroll past. */
.faq__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-10) var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--s-8) clamp(2rem, 6vw, 6rem);
}
.faq__aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-8));
}
.faq__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.faq__lede {
  max-width: 26rem;
  margin-top: var(--s-5);
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
}
.faq__penny { margin-top: var(--s-6); }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  font: 400 clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem)/1.25 var(--f-display);
  letter-spacing: -0.015em;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--signal); }
.faq__q:focus-visible { outline-offset: 4px; }

/* Plus that turns into a minus: both strokes spin half a turn, the upright one lands flat */
.faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.55s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q:hover .faq__icon {
  background: var(--paper);
  box-shadow: var(--shadow-raised), inset 0 0 0 1px var(--line);
}
.faq__q:active .faq__icon { transform: scale(0.92); }
.faq__item[open] > .faq__q .faq__icon {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.faq__item[open] .faq__icon::before { transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(180deg); }

.faq__a { padding: 0 3.75rem var(--s-6) 0; }
.faq__a p { max-width: 36rem; line-height: 1.7; color: var(--slate); }
.faq__item[open] .faq__a { animation: faq-open 0.6s var(--ease) both; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* The questions rise in one after another as the list comes into view. JS arms it. */
.faq__list.is-armed .faq__item { opacity: 0; transform: translateY(18px); }
.faq__list.is-in .faq__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--k) * 70ms);
}

/* Contact. The form is step 01 of the plan: same paper sheet, and you write on its lines. */
.contact__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s-10) var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: var(--s-8) clamp(2rem, 6vw, 6rem);
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact__lede {
  max-width: 28rem;
  margin-top: var(--s-5);
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--slate);
}
.contact__ways {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.contact__note {
  min-height: 1.5em;
  margin-top: var(--s-3);
  font-size: var(--t-small);
  color: var(--mist);
}

/* A quieter button for the second choice */
.btn--quiet {
  gap: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-raised), inset 0 0 0 1px var(--line);
}
.btn--quiet:hover { box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line); }
.btn__wa { width: 1.25rem; height: 1.25rem; fill: #25D366; } /* WhatsApp green: WhatsApp elements only */
.btn__wa .btn__wa-phone { fill: #fff; }

.penny-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 var(--s-2) 0 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font: 500 0.9375rem/1.3 var(--f-body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.penny-toggle__text {
  text-decoration: underline;
  text-decoration-color: rgba(11, 18, 32, 0.28);
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.3s var(--ease);
}
.penny-toggle:hover .penny-toggle__text { text-decoration-color: currentColor; }
.penny-toggle:active { color: var(--signal); }
/* Penny's face: her own drawn avatar (assets/penny), used as provided.
   Sized in em, so one rule serves the launcher, the chat and the FAQ and contact links. */
.penny-face {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  font-size: 2rem;
}
.penny-face picture,
.penny-face img { display: block; width: 100%; height: 100%; }
/* While she writes, the typing Penny (pulsing rings, glowing antenna) fades in on top */
.penny-face__typing {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.penny-float.is-typing .penny-launch .penny-face__typing,
.penny__row.is-typing .penny-face__typing { opacity: 1; }

/* Online dot: a calm green (not WhatsApp's), with a slow ring */
.penny-dot {
  position: absolute;
  right: -0.01em;
  bottom: 0.01em;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: #1F9D55;
  box-shadow: 0 0 0 0.05em #fff;
}
.penny-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1F9D55;
  animation: penny-pulse 2.6s var(--ease) infinite;
}
@keyframes penny-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Floating Penny, bottom right */
.penny-float {
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45; /* under the nav and its menu */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none; /* the empty corner never blocks the page */
}
.penny-float > * { pointer-events: auto; }
html.menu-open .penny-float { visibility: hidden; }

.penny-launch {
  display: inline-flex;
  flex-direction: row-reverse; /* face on the outside edge, so bubbles point at her */
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 6px 6px 6px 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 2px rgba(11, 18, 32, 0.08),
    0 14px 34px -14px rgba(11, 18, 32, 0.38),
    0 28px 60px -30px rgba(42, 108, 178, 0.5);
  transition:
    opacity 0.45s var(--ease),
    transform 0.7s var(--ease-pop),
    box-shadow 0.3s var(--ease),
    visibility 0s linear 0s;
}
.penny-launch .penny-face { font-size: 2.75rem; }
.penny-launch__text { display: grid; line-height: 1.25; }
.penny-launch__text b { font-weight: 600; font-size: 0.9375rem; }
.penny-launch__text small {
  font-size: var(--t-micro);
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}
.penny-launch:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 2px 4px rgba(11, 18, 32, 0.08),
    0 20px 40px -14px rgba(11, 18, 32, 0.4),
    0 36px 70px -30px rgba(42, 108, 178, 0.55);
}
.penny-launch:active { transform: scale(0.97); transition-duration: 0.15s; }
.penny-launch:focus-visible { border-radius: 999px; }

/* Arrives a moment after the page settles */
.penny-float.is-waiting .penny-launch { opacity: 0; transform: translateY(16px) scale(0.94); }

/* Steps aside while the contact section is on screen (it offers Penny already) */
.penny-float.is-away:not(.is-open) .penny-launch,
.penny-float.is-away:not(.is-open) .penny-bubble {
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

/* The chat panel */
.penny {
  position: relative;
  width: min(22rem, calc(100vw - 32px));
  padding: var(--s-4);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.55s var(--ease);
}
.penny.is-shown { opacity: 1; transform: none; }
/* Full-body Penny stands on the top edge of the chat and pops up just after it opens */
.penny__mascot {
  position: absolute;
  bottom: 100%;
  left: var(--s-3);
  width: 72px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  transform-origin: 50% 100%;
  transition: opacity 0.3s var(--ease) 0.12s, transform 0.7s var(--ease-pop) 0.12s;
}
.penny.is-shown .penny__mascot { opacity: 1; transform: none; }
.penny__head { display: flex; align-items: center; gap: 0.6rem; }
.penny__who { flex: 1; min-width: 0; }
.penny__who b { display: block; font-weight: 600; line-height: 1.2; }
.penny__who small { display: block; font-size: var(--t-micro); color: var(--mist); font-variant-numeric: tabular-nums; }
.penny__close,
.penny-bubble__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.penny__close svg,
.penny-bubble__close svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.penny__close:hover { background: #EEF2F8; color: var(--ink); }
.penny__close:active,
.penny-bubble__close:active { transform: scale(0.9); }
.penny__close:focus-visible,
.penny-bubble__close:focus-visible { border-radius: 50%; }
/* The conversation: her messages with her small face beside them, yours on the right in blue.
   It scrolls inside the panel, so the panel always fits above her button. */
.penny__log {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-3);
  max-height: clamp(9rem, 100svh - 27rem, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
/* Once older messages scroll up, they fade out under the header instead of being cut off */
.penny__log.is-scrolled {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.5rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.5rem);
}
.penny__row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: penny-row-in 0.45s var(--ease) both;
}
.penny__row[data-penny-greet] { animation: none; }
@keyframes penny-row-in {
  from { opacity: 0; transform: translateY(8px); }
}
.penny__row--you { justify-content: flex-end; }
.penny__row--you .penny__msg {
  flex: 0 1 auto;
  max-width: 85%;
  border-radius: 14px 14px 4px 14px;
  background: var(--signal);
  color: #fff;
}
.penny__row--error .penny__msg { background: #FDF0EF; color: var(--error); }
.penny-face--msg { font-size: 1.75rem; }
.penny__msg {
  position: relative;
  flex: 1;
  min-width: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  padding: var(--s-3);
  border-radius: 14px 14px 14px 4px;
  background: #EEF2F8;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.penny__text { display: block; transition: opacity 0.4s var(--ease); }
/* Typing dots hold the message's place, so the chat doesn't jump when the words arrive */
.penny__dots {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 1.5em;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.penny__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.35;
}
.penny__row.is-typing .penny__text { opacity: 0; }
.penny__row.is-typing .penny__dots { opacity: 1; }
.penny__row.is-typing .penny__dots i { animation: penny-typing 1.1s var(--ease) infinite; }
.penny__row.is-typing .penny__dots i:nth-child(2) { animation-delay: 0.15s; }
.penny__row.is-typing .penny__dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes penny-typing {
  0%, 60%, 100% { transform: none; opacity: 0.35; }
  30% { transform: translateY(-3px); opacity: 0.9; }
}
/* Questions to tap: each one sends itself. They step aside once the chat has started. */
.penny__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.penny__chip {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: 400 0.8125rem/1.3 var(--f-body);
  color: var(--signal);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.penny__chip:hover { background: #EEF2F8; border-color: #D5DEEB; }
.penny__chip:active { transform: scale(0.96); }
.penny__chip:focus-visible { border-radius: 999px; }
.penny__chip:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Handover buttons under Penny's message: continue on WhatsApp, or fill in the audit form */
.penny__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding-left: calc(28px + 0.5rem); /* lines up with her bubble, past her face */
  animation: penny-row-in 0.45s var(--ease) both;
}
.penny__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border: 1px solid #D5DEEB;
  border-radius: 999px;
  background: var(--paper);
  font: 500 0.8125rem/1.3 var(--f-body);
  color: var(--signal);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.penny__action:hover { background: #EEF2F8; border-color: var(--signal); }
.penny__action:active { transform: scale(0.96); }
.penny__action:focus-visible { border-radius: 999px; }
.penny__action:disabled { opacity: 0.6; cursor: progress; transform: none; }
.penny__action svg { width: 16px; height: 16px; fill: #25a35a; flex: none; }
.penny__link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.penny__link:hover { color: var(--signal); }

/* Typing line with a round send button inside it */
.penny__form { position: relative; margin-top: var(--s-3); }
.penny__input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 3.25rem 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pearl);
  font: 400 0.9375rem/1.2 var(--f-body);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.penny__input::placeholder { color: var(--mist); opacity: 1; }
.penny__input:focus { background: var(--paper); border-color: #C9D6E8; }
.penny__input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.penny__input:disabled { cursor: not-allowed; opacity: 0.7; }
.penny__send {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s var(--ease);
}
.penny__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.penny__send:hover { background: var(--signal-deep); }
.penny__send:active { transform: scale(0.92); }
.penny__send:focus-visible { border-radius: 50%; outline-offset: 2px; }
.penny__send:disabled { opacity: 0.45; cursor: progress; transform: none; }
@media (max-width: 599px) {
  .penny__input { font-size: 1rem; } /* 16px stops iPhones zooming the page when you tap in */
}
@media (prefers-reduced-motion: reduce) {
  .penny__row { animation: none; }
  .penny__actions { animation: none; }
}

/* Speech bubble: what Penny says about the part of the page you're on */
.penny-bubble {
  position: relative;
  max-width: min(17.5rem, calc(100vw - 32px));
  margin-right: 8px;
  padding: 0.8rem 2.6rem 0.85rem 1rem;
  border-radius: 16px 16px 4px 16px; /* the sharp corner points down at her */
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.12), 0 24px 48px -20px rgba(11, 18, 32, 0.5);
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  transform-origin: bottom right;
  transition: opacity 0.25s var(--ease), transform 0.6s var(--ease-pop), visibility 0s linear 0s;
}
.penny-bubble.is-shown { opacity: 1; transform: none; }
.penny-bubble__text { font-size: 0.9375rem; line-height: 1.45; }
.penny-bubble__link {
  color: #9CC8FF; /* 10:1 on navy */
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease);
}
.penny-bubble__link:hover { color: #fff; }
.penny-bubble__link:active { color: #9CC8FF; opacity: 0.8; }
.penny-bubble__link:focus-visible { outline-color: #9CC8FF; border-radius: 4px; }
.penny-bubble__close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.72);
}
.penny-bubble__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.penny-bubble__close:focus-visible { outline-color: #9CC8FF; outline-offset: -2px; }

/* Phones: Penny folds into a round button */
@media (max-width: 599px) {
  .penny-launch { padding: 6px; }
  .penny-launch__text { display: none; }
}

/* The sheet */
.audit {
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}
.audit__head {
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.audit__title {
  font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--f-display);
  letter-spacing: -0.02em;
}
.audit__step {
  margin-top: var(--s-2);
  font: 400 var(--t-small)/1.4 var(--f-body);
  color: var(--slate);
}
.audit__step span { margin-right: 0.4rem; font-family: var(--f-mono); color: var(--signal); }

.audit__form { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label {
  display: block;
  padding: 0;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink);
}
.field__optional { margin-left: 0.35rem; font-weight: 400; color: var(--mist); }

/* Inputs are lines on the paper. The line turns blue and thicker while you write. */
.field__input {
  display: block;
  width: 100%;
  padding: 0.55rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font: 400 1.0625rem/1.5 var(--f-body);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field__input::placeholder { color: #8A94A6; }
.field__input:hover { border-bottom-color: var(--ink); }
.field__input:focus { outline: none; border-bottom-color: var(--signal); box-shadow: 0 1px 0 0 var(--signal); }
.field__input:focus-visible { outline: none; }
.field__input--area { resize: vertical; min-height: 5.5rem; }
.field__input[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__error {
  min-height: 0;
  margin-top: var(--s-1);
  font-size: 0.8125rem;
  color: var(--error);
}
.field__error:empty { display: none; }
.field__hint { margin-top: var(--s-1); font-size: 0.8125rem; color: var(--signal); }
.field__hint[hidden] { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.choice:hover span { border-color: var(--ink); }
.choice:active span { transform: scale(0.97); }
.choice input:checked + span {
  background: #E8F0FB;
  border-color: var(--signal);
  color: var(--signal-deep);
}
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.field--choices[aria-invalid="true"] .choice span { border-color: var(--error); }

.audit__submit { width: 100%; margin-top: var(--s-2); }

/* After sending: the thank-you settles onto the sheet */
.audit__done { margin-top: var(--s-6); outline: none; }
.audit__thanks {
  font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--f-display);
  letter-spacing: -0.02em;
}
.audit__next { margin-top: var(--s-3); color: var(--slate); }
.audit__wa { margin-top: var(--s-5); }
.audit__concept { margin-top: var(--s-5); font: 400 var(--t-micro)/1.4 var(--f-mono); color: var(--mist); }
.audit__done.is-shown > * { animation: settle 0.9s var(--ease) both; }
.audit__done.is-shown > :nth-child(2) { animation-delay: 0.12s; }
.audit__done.is-shown > :nth-child(3) { animation-delay: 0.24s; }
@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Footer */
.footer {
  padding: var(--s-9) var(--s-5) var(--s-8);
}
.footer__inner {
  max-width: calc(var(--wrap) - 2 * var(--s-5)); /* the gutter sits outside here, so match the nav's content edge */
  margin: 0 auto;
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
}
.footer__lockup { display: flex; flex-direction: column; align-items: flex-start; }

/* The slogan is the signature: set large, in the display face */
.footer__slogan {
  position: relative;
  margin-top: var(--s-5);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* "Written" in: a pearl veil with a soft left edge slides off to the right, so the words
   appear left to right. JS arms it (so the slogan never hides if the script doesn't run). */
.footer__slogan::after {
  content: "";
  position: absolute;
  inset: -0.1em -0.15em -0.2em -1.2em;
  background: linear-gradient(90deg, rgba(247, 246, 242, 0) 0, var(--pearl) 1.2em);
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}
.footer__slogan.is-armed::after { transform: none; }
.footer__slogan.is-armed.is-in::after {
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(0.45, 0, 0.25, 1) 0.15s;
}

.footer__line { margin-top: var(--s-2); color: var(--slate); font-size: var(--t-small); }
.footer__copy { color: var(--mist); font-size: var(--t-small); }

/* Phone widths: stack the stage, timeline on top, phone fills what's left */
@media (max-width: 860px) {
  .day__intro { padding-top: var(--s-9); }

  .day__stage {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--s-4);
    padding: calc(var(--nav-h) + var(--s-2)) var(--s-5) var(--s-4);
    transition: transform 0.45s var(--ease);
  }
  /* While the top bar is away, the stage slides up into its space, in step with the bar */
  html.nav-hidden .day__stage { transform: translateY(calc(var(--s-3) - var(--nav-h))); }
  .day__copy { gap: var(--s-3); }
  .biz { order: -2; width: 100%; }
  .biz__btn { min-height: 36px; }
  .timeline { order: -1; max-width: none; }
  .moments { max-width: none; }
  .moment__by { margin-bottom: var(--s-1); font-size: 0.8125rem; }
  .day__phone { flex: 1; align-items: flex-start; min-height: 0; }
  .phone { --stage-chrome: 380px; } /* room for the switch, timeline, clock and headline above */
}

/* Services stack below 860px: intro first, then the groups; the index isn't needed */
@media (max-width: 860px) {
  .services__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
  }
  .services__aside { position: static; }
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
  }
  .faq__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
  }
  .faq__aside { position: static; }
  .faq__a { padding-right: 0; }
  .svc-index { display: none; }
  .svc + .svc { margin-top: var(--s-9); }
}
@media (max-width: 600px) {
  .svc__visual {
    aspect-ratio: 4 / 3; /* shorter on phones, so each scene doesn't fill the screen */
    margin-bottom: var(--s-6);
    border-radius: 22px;
  }
  .svc__visual > * { font-size: clamp(8px, 2.6cqi, 13px); }
  .svc__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: var(--s-5);
  }
  .svc__list li { padding-top: 0.4rem; padding-bottom: 0.4rem; }

  .how { padding-top: var(--s-9); padding-bottom: var(--s-9); }
  .plan {
    --num: 1.75rem;
    --gutter: 1.25rem;
    margin-top: var(--s-7);
    padding: var(--s-6) var(--s-4) var(--s-5);
    border-radius: 18px;
  }
  .plan__mark { height: 38px; }
  .step__text { font-size: 1rem; }
  .how__cta .btn { width: 100%; }

  .team__inner { padding-top: var(--s-9); padding-bottom: var(--s-9); }
  .contact__ways .btn { width: 100%; }
  .audit { padding: var(--s-6) var(--s-5); border-radius: 18px; }
  .team__signs { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-8); }
}

@media (max-width: 480px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: everything still shows, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .moment,
  .moment.is-past { transform: none; }
  .js .pop { transform: none; }
  .typing { display: none; }
  .js .svc__visual .layer,
  .js .report .tick svg { transform: none; }
  .svc__visual .layer { translate: none; }
}

/* ===== Hero: Penny at work (centred headline, Penny with her speech bubble, cards around her) ===== */
/* The whole hero fits one screen: text on top, Penny's stage takes whatever height is left */
.hero--orbit {
  display: flex;
  flex-direction: column;
  height: max(100vh, 560px);
  height: max(100svh, 560px);
  min-height: 0;
  padding: calc(var(--nav-h) + clamp(0.75rem, 4vh, 3rem)) var(--s-5) 0;
  text-align: center;
  overflow: hidden;
}
.hero--orbit .hero__copy { flex: none; width: 100%; max-width: 64rem; margin: 0 auto; }
/* Headline that stands out: bigger, a step heavier (Fraunces 500 instead of 300), set tight */
.hero--orbit .hero__title {
  font-size: clamp(2.5rem, min(1.1rem + 5.6vw, 10vh), 6.5rem); /* also shrinks on short screens */
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero--orbit .hero__lede {
  margin-top: clamp(0.75rem, 2.2vh, 1.5rem);
  max-width: 38rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);
  color: #36404F; /* a touch darker than the body grey: 9.8:1 on the page */
}


/* The stage: Penny stands at the bottom centre, cut flat at the hero's bottom edge */
.orbit {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: min(1100px, 100%);
  margin: clamp(0.5rem, 2vh, 1.5rem) auto 0;
  container-type: size; /* lets Penny and the cards size themselves to the space left */
}
/* --ph: Penny's height. Up to 400px, never more than 92% of the stage */
.orbit > * { --ph: min(400px, 92cqh, calc(100cqh - 140px)); } /* room above her for the bubble */
.orbit__penny {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: var(--ph);
  width: calc(var(--ph) * 200 / 260);
  transform: translateX(-50%);
}
.orbit__penny svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* She's a button that opens her chat. Only her drawing takes the tap, not the empty space around her */
button.orbit__penny {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  pointer-events: none;
}
.orbit__penny svg * { pointer-events: visiblePainted; cursor: pointer; }
.orbit__penny:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; border-radius: 28px; }

/* Glass cards circling her head, turned slightly as if on a ring around her */
.orbit { perspective: 900px; }
.ocard {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 182px;
  padding: 0.6rem 0.75rem 0.6rem 0.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(11, 18, 32, 0.06),
    0 18px 36px -16px rgba(11, 18, 32, 0.32),
    0 30px 60px -30px rgba(42, 108, 178, 0.35);
  text-align: left;
}
.ocard img { flex: none; width: 28px; height: 28px; }
.ocard p { display: grid; line-height: 1.25; font-size: 0.75rem; color: var(--slate); }
.ocard b { font-weight: 600; font-size: 0.8125rem; color: var(--ink); }
.ocard--a { left: calc(50% - 182px - var(--ph) * 0.21); top: calc(100cqh - var(--ph) * 0.9); transform: rotateY(26deg); }
.ocard--b { left: calc(50% + var(--ph) * 0.105); top: calc(100cqh - var(--ph) * 0.59); transform: rotateY(-16deg); }
.ocard--c { left: calc(50% + var(--ph) * 0.21); top: calc(100cqh - var(--ph) * 0.9); transform: rotateY(-26deg); }

/* Side cards, joined to Penny by thin lines */
.side {
  position: absolute;
  display: grid;
  justify-items: start;
  gap: 0.3rem;
  width: 230px;
  padding: var(--s-4);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-raised);
  text-align: left;
}
.side img { width: 32px; height: 32px; margin-bottom: 0.35rem; }
.side b { font: 400 1.125rem/1.2 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.side span { font-size: 0.8125rem; line-height: 1.45; color: var(--slate); }
.side--left { left: 2.5%; top: calc(100cqh - var(--ph) * 0.947); }
.side--right { right: 2.5%; top: calc(100cqh - var(--ph) * 1.037); }

/* One entrance: Penny rises, then the cards and lines arrive */
@media (prefers-reduced-motion: no-preference) {
  .js .orbit__penny { opacity: 0; transform: translate(-50%, 40px); }
  .js.is-loaded .orbit__penny { animation: penny-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; }
  .js .ocard, .js .side { opacity: 0; }
  .js .ocard { translate: 0 14px; }
  .js .side { translate: 0 14px; }
  .js.is-loaded .ocard, .js.is-loaded .side { animation: card-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
  .js.is-loaded .ocard--a { animation-delay: 1.05s; }
  .js .nstack { opacity: 0; translate: 0 14px; }
  .js.is-loaded .nstack { animation: card-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards; }
  .js.is-loaded .ocard--b { animation-delay: 1.15s; }
  .js.is-loaded .ocard--c { animation-delay: 1.25s; }
  .js.is-loaded .side--left { animation-delay: 1.4s; }
  .js.is-loaded .side--right { animation-delay: 1.5s; }
}
@keyframes penny-rise { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes card-in { to { opacity: 1; translate: 0 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* Below 1200px: no side cards (they'd collide with the cards around Penny) */
@media (max-width: 1199px) {
  .side { display: none; }
}
/* Thin lines joining the cards to Penny (drawn by the script from where the cards really are) */
.orbit__net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit__net path { fill: none; stroke: rgba(11, 18, 32, 0.17); stroke-width: 1.25; }
.orbit__net circle { fill: var(--signal); }

/* Penny's speech bubble: white (her navy tip bubbles are further down), tail pointing at her */
.say {
  position: absolute;
  left: 50%;
  bottom: calc(var(--ph) + 8px);
  z-index: 2;
  width: max-content;
  max-width: min(392px, calc(100% - 8px));
  padding: 0.9rem 1rem 1rem;
  border-radius: 20px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 2px rgba(11, 18, 32, 0.06),
    0 20px 40px -18px rgba(11, 18, 32, 0.3),
    0 34px 70px -34px rgba(42, 108, 178, 0.4);
  transform: translateX(-50%);
  text-align: left;
}
.say::after { /* the tail */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--paper);
  box-shadow: 1px 1px 0 0 var(--line);
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}
.say__text { font: 400 1.25rem/1.25 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.say .say__actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem 1.1rem;
}
.say__link { font-size: 0.9375rem; }
.say__dots {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  display: flex;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
}
.say__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); opacity: 0.4; }

/* Phone notification stack (hidden on bigger screens) */
.nstack { display: none; }

/* Penny reacts when you point at her button, or at her: she nods and her chest light brightens */
.pm-light { transform-box: fill-box; transform-origin: 50% 50%; transition: fill 0.3s var(--ease), transform 0.4s var(--ease); }
.orbit:has(.say .btn:hover, .say .btn:focus-visible, .orbit__penny:hover, .orbit__penny:focus-visible) .pm-light { fill: #5cbbe6; transform: scale(1.3); animation: none; }

/* Penny's idle life: head bobs and tilts on her neck, her eye blinks, her chest light breathes */
@media (prefers-reduced-motion: no-preference) {
  .pm-head { transform-box: fill-box; transform-origin: 50% 100%; animation: pm-head 7s ease-in-out infinite; }
  .pm-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: pm-blink 5.5s ease-in-out infinite 2.5s; }
  .pm-light { animation: pm-light 2.8s ease-in-out infinite; }
}
@keyframes pm-head {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-2.5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(2.5deg); }
}
@keyframes pm-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.1); }
  96% { transform: scaleY(1); }
}
@keyframes pm-light { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes pm-nod {
  0%, 100% { transform: translateY(0); }
  25%, 75% { transform: translateY(5px) rotate(0deg); }
  50% { transform: translateY(-1px); }
}
@keyframes say-dots { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot-bounce { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 0.9; } }
@media (prefers-reduced-motion: no-preference) {
  .orbit:has(.say .btn:hover, .say .btn:focus-visible, .orbit__penny:hover, .orbit__penny:focus-visible) .pm-head { animation: pm-nod 0.9s ease-in-out 1; }
  /* the bubble pops in after the cards, types for a moment, then shows her words */
  .js .say { opacity: 0; translate: 0 12px; }
  .js.is-loaded .say { animation: card-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.65s forwards; }
  .js .say__body { opacity: 0; }
  .js.is-loaded .say__body { animation: fade-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 3s forwards; }
  .js.is-loaded .say__dots { animation: say-dots 1.3s linear 1.75s forwards; }
  .js.is-loaded .say__dots i { animation: dot-bounce 1s ease-in-out infinite; }
  .js.is-loaded .say__dots i:nth-child(2) { animation-delay: 0.15s; }
  .js.is-loaded .say__dots i:nth-child(3) { animation-delay: 0.3s; }
}
/* Phones: smaller Penny, three short cards in an arc around her head, joined by lines */
@media (max-width: 599px) {
  .hero--orbit { padding-top: calc(var(--nav-h) + clamp(0.5rem, 3vh, 1.5rem)); }
  /* Penny fills the space under the bubble, up to 320px; 230px where the browser can't measure it */
  .orbit > * { --ph: min(280px, calc(100cqh - 104px)); }
  /* Penny steps a little left; the stack of what she did sits on her right */
  .orbit__penny { left: 30%; }
  /* a plain triangle tail pointing at her antenna */
  .say::after {
    left: 30%;
    bottom: -8px;
    width: 0;
    height: 0;
    margin-left: -8px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid var(--paper);
    filter: drop-shadow(0 1px 0 rgba(11, 18, 32, 0.1));
  }
  .nstack {
    display: block;
    position: absolute;
    left: calc(30% + var(--ph) * 0.2);
    right: 0;
    bottom: calc(var(--ph) * 0.4);
    height: 96px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ncard {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem 0.55rem 0.55rem;
    border-radius: 16px;
    background: var(--paper);
    box-shadow:
      inset 0 0 0 1px var(--line),
      0 1px 2px rgba(11, 18, 32, 0.06),
      0 14px 30px -14px rgba(11, 18, 32, 0.32),
      0 26px 50px -28px rgba(42, 108, 178, 0.35);
    text-align: left;
    transform-origin: 50% 0;
    opacity: 0;
    transform: translateY(-26px) scale(0.84);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .ncard img { flex: none; width: 24px; height: 24px; }
  .ncard img, .ncard p { transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
  /* cards behind show only their edge, like phone notifications */
  .ncard:not(.is-0) img, .ncard:not(.is-0) p { opacity: 0; }
  .ncard p { display: grid; line-height: 1.25; font-size: 0.6875rem; color: var(--slate); min-width: 0; }
  .ncard b { font-weight: 600; font-size: 0.75rem; color: var(--ink); }
  /* positions in the pile: front, one behind, two behind */
  .ncard.is-0 { opacity: 1; transform: none; z-index: 3; }
  .ncard.is-1 { opacity: 1; transform: translateY(-10px) scale(0.93); z-index: 2; background: #F1F2F4; }
  .ncard.is-2 { opacity: 1; transform: translateY(-19px) scale(0.86); z-index: 1; background: #E7E9ED; }
  .ncard.is-enter { opacity: 0; transform: translateY(26px) scale(0.96); transition: none; z-index: 4; }
  /* Compact bubble right under the text: question on one line, button and link side by side */
  .say { top: max(0px, calc((100cqh - var(--ph) - 104px) / 2)); bottom: auto; width: auto; max-width: calc(100% - 4px); padding: 0.65rem 0.75rem 0.75rem; border-radius: 18px; }
  .say__text { font-size: 1rem; white-space: nowrap; }
  .say .say__actions { margin-top: 0.5rem; flex-wrap: nowrap; gap: 0.85rem; }
  .say .btn--small { padding: 0.55rem 0.95rem; font-size: 0.875rem; white-space: nowrap; }
  .say__link { font-size: 0.875rem; white-space: nowrap; }
  .say__dots { top: 0.85rem; left: 0.8rem; }
  /* Two short cards beside her head, placed from the bottom so they land right on any phone */
  .ocard { width: auto; padding: 0.35rem 0.65rem 0.35rem 0.35rem; gap: 0.35rem; border-radius: 999px; }
  .ocard img { width: 20px; height: 20px; }
  .ocard b { font-size: 0.75rem; white-space: nowrap; }
  .ocard p span { display: none; } /* one short label each on phones */
  .ocard { display: none; } /* the stack replaces the floating cards on phones */
  .orbit__net path { stroke: rgba(11, 18, 32, 0.22); }
}
/* Older phones that can't size to the space left: a fixed, safe Penny size */
@supports not (height: 1cqh) {
  .orbit > * { --ph: 300px; }
  .orbit { min-height: 340px; }
  @media (max-width: 599px) { .orbit > * { --ph: 220px; } .orbit { min-height: 330px; } }
}
/* Short phones: a little less space between the text parts so Penny keeps room */
@media (max-width: 599px) and (max-height: 720px) {
  .hero--orbit .hero__lede { line-height: 1.5; }
}
/* ===== Phone hero, three clear blocks: the words, Penny's question, Penny at work ===== */
@media (max-width: 599px) {
  /* 1. The words: one centred column, a headline set for its real size so the words breathe */
  .hero--orbit {
    text-align: center;
    /* tall phones: the spare height goes above the words too, not only between the words and Penny */
    padding-top: calc(var(--nav-h) + clamp(0.5rem, 3vh, 1.5rem) + clamp(0px, (100vh - 700px) * 0.6, 5.5rem));
    padding-top: calc(var(--nav-h) + clamp(0.5rem, 3vh, 1.5rem) + clamp(0px, (100svh - 700px) * 0.6, 5.5rem));
  }
  .hero--orbit .hero__title {
    font-size: clamp(2.5rem, 11.2vw, 3rem);
    font-variation-settings: normal;
    font-optical-sizing: auto;
    letter-spacing: -0.012em;
    line-height: 1.04;
  }
  .hero--orbit .hero__lede { margin: 0.9rem auto 0; max-width: 22rem; font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }

  /* Penny's size: fits the height left, and leaves at least 176px beside her for the stack */
  .orbit > * { --ph: min(250px, calc((100cqh - 150px) * 1.2), calc((100cqw - 176px) * 1.3)); }

  /* 2. Her question: lined up with the text, a step quieter, tail pointing down at her */
  .say {
    left: 0;
    right: auto;
    transform: none;
    top: auto;
    bottom: calc(var(--ph) * 0.82 + 10px); /* sits just above her antenna, so she is the one asking */
    max-width: 100%;
    padding: 0.8rem 0.9rem 0.85rem;
  }
  .say__text { font-size: 1.0625rem; white-space: normal; }
  .say .say__actions { margin-top: 0.6rem; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .say .btn--small { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
  .say__link { font-size: 0.875rem; }
  .say::after { left: min(calc(100% - 24px), calc(100cqw - 8px - var(--ph) * 0.385)); }

  /* 3. Penny at work: Penny from the chest up on the right, the stack of what she did on the left */
  .orbit__penny {
    left: auto;
    right: 8px;
    transform: none;
    height: calc(var(--ph) * 0.82 + 8px); /* chest up: the rest of her body is below the edge */
    overflow: hidden;
  }
  .orbit__penny svg { height: var(--ph); margin-top: 8px; }
  .nstack {
    left: 0;
    right: auto;
    width: calc(100% - var(--ph) * 0.77 - 14px);
    bottom: calc(var(--ph) * 0.24);
  }
  .ncard { padding: 0.6rem 0.75rem 0.6rem 0.6rem; gap: 0.55rem; }
  .ncard img { width: 28px; height: 28px; }
  .ncard p { font-size: 0.8125rem; line-height: 1.3; }
  .ncard b { font-size: 0.875rem; }
}
/* Very short phones (iPhone SE with Safari's bars): only the front card, so the pile doesn't touch the bubble */
@media (max-width: 599px) and (max-height: 600px) {
  .ncard.is-1, .ncard.is-2 { opacity: 0; }
}
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  /* she rises straight up here (no centring shift on phones) */
  .js .orbit__penny { transform: translateY(40px); }
  .js.is-loaded .orbit__penny { animation-name: penny-rise-phone; }
}
@keyframes penny-rise-phone { to { opacity: 1; transform: none; } }
@supports not (height: 1cqh) {
  @media (max-width: 599px) {
    .say { top: 0; bottom: auto; }
    .say::after { left: 72%; }
    .nstack { width: 52%; }
  }
}
/* Section headings: big and heavy first line, light italic second line (like Mindly's headline).
   The h2 keeps its own alignment (left or centred) from styles.css. */
.h-split {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: none;
  text-wrap: wrap;
}
.h-split__bold,
.h-split__soft { display: block; }
.h-split__bold { font-weight: 500; font-variation-settings: "opsz" 144; }
.h-split__soft {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--ink); /* black, like the first line */
}

/* The floating Penny button waits until you scroll past the hero (Penny is already in it) */
.penny-float.is-hero:not(.is-open) .penny-launch,
.penny-float.is-hero:not(.is-open) .penny-bubble {
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
@media (prefers-reduced-motion: no-preference) {
  .js .orbit__net { opacity: 0; }
  .js.is-loaded .orbit__net { animation: fade-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.45s forwards; }
}
