@font-face {
  font-family: 'Strichpunkt Sans';
  src: url('assets/fonts/StrichpunktSans-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Kangmas';
  src: url('assets/fonts/KangmasDemoRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6ddbd;
  --ink: #120704;
  --orange: #d94d27;
  --orange-shadow: #8e3219;
  --cream: #ebe5db;
  --white: #ffffff;

  --note-orange: #db5028;
  --note-blue: #284baf;
  --note-cream: #ebe5db;
  --note-border: #1f396b;
  --note-shadow: #122446;
  --font-display: 'Strichpunkt Sans', 'Montserrat', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(18, 7, 4, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 7, 4, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Preserve the original scroll track so the light-content/CTA hand-off
     stays aligned, even while the video itself remains paused. */
  height: 160vh;
}

.hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 24px;
}

.hero__card {
  position: relative;
  overflow: hidden;
  /* Scales with viewport width (56px was tuned for the ~1923px design
     width) instead of staying fixed - a flat 56px looks disproportionately
     round once the card itself has shrunk a lot on a narrow screen. */
  border-radius: clamp(24px, 2.91vw, 56px);
  background: var(--paper);
  max-width: 1923px;
  /* Fills .hero__pin's whole padded box instead of keeping a fixed 1923:1080
     aspect-ratio - that used to either get clipped by the viewport (wide-
     but-not-proportionally-tall screens) or, once capped by height, leave a
     letterboxed gap above/below on narrower ones (aspect-ratio always
     produces a shorter card as width shrinks, and centering it in the pin
     put that shortfall on show as bare background). The video inside
     already uses object-fit:cover, so it just crops to whatever shape this
     ends up being instead of ever leaving dead space. */
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.hero__video-wrap {
  /* Always full-bleed (object-fit:cover on the video below crops instead of
     letterboxing). Letterboxing was tried for narrower desktop windows, but
     a fixed 1923:1080 shape inside a fixed 100vh pin *will* leave a gap
     somewhere - top, bottom, or split - any time the available width can't
     support that ratio at the full pin height; there is no anchor that
     makes the gap disappear, only where it shows up. Cropping is the only
     way to guarantee no gap at all, and true small-screen mobile is a
     separate static design anyway, not handled by this scaling. */
  position: absolute;
  inset: 0;
  border-radius: 0 0 clamp(28px, 3.33vw, 64px) clamp(28px, 3.33vw, 64px);
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hero__intro-text {
  margin: 0;
  width: 46%;
  transform: rotate(-2.36deg) translateY(-16px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 118px);
  line-height: 0.918;
  text-align: center;
  color: #373737;
  mix-blend-mode: hard-light;
}

.hero__intro-text--accent {
  color: #122446;
}

.float-menu {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 41px;
  transform: translateX(-50%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 36px;
  background: rgba(13, 13, 13, 0.11);
  backdrop-filter: blur(61px);
  -webkit-backdrop-filter: blur(61px);
  width: min(573px, calc(100vw - 48px));
}

.float-menu.is-hidden,
.float-menu.is-entering {
  transform: translateX(-50%) translateY(150%);
}

.float-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 28px;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(61px);
  -webkit-backdrop-filter: blur(61px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-menu__panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-menu__panel a {
  display: block;
  padding: 14px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  text-align: center;
  color: #f2ebdd;
  text-decoration: none;
  transition: background 0.15s ease;
}

.float-menu__panel a:hover {
  background: rgba(242, 235, 221, 0.12);
}

.float-menu__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  text-decoration: none;
  /* Neo-brutalist "peel off the shadow, press flush on click" interaction:
     resting state sits on a flat shadow (per-variant below), hover lifts it
     up-left and grows the shadow to sell the extra height, active slams it
     back down flush with the shadow gone entirely. */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
}

.float-menu__btn:hover {
  transform: translate(-3px, -3px);
  border-radius: 18px;
}

.float-menu__btn:active {
  transform: translate(0, 0);
  border-radius: 28px;
  box-shadow: none !important;
}

.float-menu__btn--icon {
  width: 70px;
  padding: 21px 16px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
}

.float-menu__btn--icon:hover {
  box-shadow: 7px 7px 0 0 var(--ink);
}

.float-menu__btn--icon img {
  width: 28px;
  height: 24px;
}

.float-menu__hamburger {
  /* The two bars are position:absolute (so rotating them doesn't shove the
     others around), which means they contribute no in-flow height of their
     own - without an explicit height the button collapsed to just its
     padding. 70px matches the sibling icon buttons' own height with their
     24px-tall <img>. */
  position: relative;
  height: 70px;
}

.float-menu__hamburger-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%) translateY(-5px);
  transition: transform 0.3s ease;
}

.float-menu__hamburger-line + .float-menu__hamburger-line {
  transform: translate(-50%, -50%) translateY(5px);
}

.float-menu__hamburger[aria-expanded="true"] .float-menu__hamburger-line {
  transform: translate(-50%, -50%) rotate(45deg);
}

.float-menu__hamburger[aria-expanded="true"] .float-menu__hamburger-line + .float-menu__hamburger-line {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.float-menu__btn--main {
  flex: 1 0 0;
  padding: 21px 44px;
  background: var(--orange);
  border: 2px solid var(--orange-shadow);
  box-shadow: 0 4px 0 0 var(--orange-shadow);
  color: var(--white);
  font-weight: 900;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

.float-menu__btn--main:hover {
  box-shadow: 7px 7px 0 0 var(--orange-shadow);
}

/* ---------- Shared: scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* One-shot blur reveal, line by line: each line starts blurred/faded and
   sharpens into place the first time its group scrolls into view. Shares
   the [data-reveal-group] stagger + IntersectionObserver wiring in
   script.js with ".reveal". */
.blur-line {
  display: block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
}

.blur-line.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .blur-line {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ---------- Shared: sticky note card ---------- */

.sticky-note {
  border: 4px solid var(--note-border);
  border-radius: 44px;
  padding: 54px;
  text-align: center;
}

.sticky-note--orange {
  background: var(--note-orange);
  color: var(--white);
  box-shadow: -7px 16px 0 0 rgba(18, 36, 70, var(--shadow-fade, 1));
}

.sticky-note--blue {
  background: var(--note-blue);
  color: var(--white);
  box-shadow: -3px 6px 0 0 rgba(18, 36, 70, var(--shadow-fade, 1));
}

.sticky-note--cream {
  background: var(--note-cream);
  color: var(--ink);
  box-shadow: -3px 6px 0 0 rgba(18, 36, 70, var(--shadow-fade, 1));
}

.sticky-note--white {
  background: var(--white);
  color: var(--ink);
  box-shadow: -7px 16px 0 0 rgba(18, 36, 70, var(--shadow-fade, 1));
}

.sticky-note h2,
.sticky-note h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  margin: 0;
}

.sticky-note p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.4;
  opacity: 0.81;
  margin: 0;
}

.pill {
  display: inline-block;
  background: var(--white);
  color: var(--note-shadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 12px 23px;
  border-radius: 999px;
}

/* ---------- Benefits ---------- */

.benefits {
  position: relative;
  height: 500vh;
}

.benefits__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: 160px;
}

/* The available space - was .benefits__scene's own size before, now just
   the slot's, so the fixed-size scene inside can be scaled down uniformly
   (script.js) instead of having width (vw) and height (vh) clamp
   independently, which distorted the card's proportions whenever a
   viewport's width and height didn't shrink at the same rate. */
.benefits__scene-slot {
  position: relative;
  width: min(630px, 90vw);
  height: min(576px, 68vh);
}

.benefits__scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 630px;
  height: 576px;
  transform-origin: center;
  perspective: 1200px;
}

.benefits__flip {
  position: absolute;
  inset: 0;
  z-index: 5;
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.benefits__header {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 82px;
  backface-visibility: hidden;
}

.benefits__header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.benefits__header-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
}

.benefits__title {
  font-size: 73px;
  letter-spacing: -0.04em;
  color: #f6e5cf;
}

.benefits__lead {
  max-width: 480px;
  color: #f6e5cf;
}

.benefits__arrow-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits__arrow-btn img {
  width: 32px;
  height: 32px;
}

.benefits__stack {
  position: absolute;
  inset: 0;
}

.benefits__card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: rotate(var(--rotate, 0deg));
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease-out, opacity 0.3s ease-out var(--fade-delay, 0s);
  will-change: transform, opacity;
}

.benefits__card.is-visible {
  opacity: 1;
}

.benefits__icon {
  width: 242px;
  height: 242px;
  object-fit: contain;
}

.benefits__card h3 {
  font-size: 40px;
  letter-spacing: -0.02em;
}

.benefits__card[data-card-index="0"] {
  /* This is the back face of the header card (glued together, one flip -
     see .benefits__flip). Its opacity is driven entirely by inline style
     from JS (visible mid-flip through its own slide-away, hidden before
     and after), not by the shared .is-visible class. */
  backface-visibility: hidden;
}
.benefits__card[data-card-index="1"] { z-index: 3; }
.benefits__card[data-card-index="2"] { z-index: 2; }
.benefits__card[data-card-index="3"] { z-index: 1; }

/* ---------- Mission ---------- */

.mission {
  padding: 24px 40px;
}

.mission__card {
  position: relative;
  overflow: hidden;
  border-radius: 56px;
  background: #fcca95;
  max-width: 1869px;
  margin: 0 auto;
  padding: 190px 40px 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 58px;
}

.mission__quote {
  max-width: 1171px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw + 20px, 122px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-align: center;
  color: #201c1d;
}

.mission__quote-accent {
  color: #d94d27;
}

.mission__subtitle {
  max-width: 863px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 1.4vw + 14px, 40px);
  line-height: 1.11;
  letter-spacing: 0.01em;
  text-align: center;
  color: #201c1d;
}

.mission__sticker {
  position: absolute;
  transform: rotate(var(--rotate, 0deg));
  object-fit: contain;
  pointer-events: none;
}

.mission__sticker--note {
  left: 8.29%;
  top: 61.44%;
  width: clamp(90px, 15.76vw, 294px);
}

.mission__sticker--crumpled {
  left: 24%;
  top: 3%;
  width: clamp(70px, 9.62vw, 180px);
}

.mission__sticker--speech {
  right: 17.22%;
  top: 30.94%;
  width: clamp(75px, 12.04vw, 225px);
}

.mission__sticker--question {
  right: 20%;
  top: 64%;
  width: clamp(80px, 10.48vw, 196px);
}

/* ".reveal" also sets "transform", so combine it with the sticker's own
   rotation here instead of letting one silently override the other. */
.mission__sticker.reveal {
  transform: rotate(var(--rotate, 0deg)) translateY(24px);
}

.mission__sticker.reveal.is-visible {
  transform: rotate(var(--rotate, 0deg)) translateY(0);
}

/* ---------- Product (live board demo) ---------- */

.product {
  padding: 24px 40px 64px;
}

.product__card {
  position: relative;
  max-width: 1869px;
  margin: 0 auto;
  padding: 90px 24px 0;
}

.product__title {
  margin: 0 auto 40px;
  max-width: 1171px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6.3vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-align: center;
  color: #201c1d;
}

.product__scribble {
  position: absolute;
  top: 78px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe Script', 'Bradley Hand', cursive;
  font-size: 24px;
  opacity: 0.81;
  color: #201c1d;
  white-space: nowrap;
}

.product__scribble--left {
  left: 4%;
  transform: rotate(-16.41deg);
}

.product__scribble--right {
  right: 4%;
  transform: rotate(12.55deg);
}

/* Two hand-drawn arrow doodles (real assets, not redrawn). Deliberately
   asymmetric sizing/timing so they don't read as a mirrored pair - the
   clip-path "draw in on scroll" version kept going invisible for good in
   testing, so this trades that polish for always being visible. */
.scribble-arrow {
  display: block;
  margin-top: 6px;
}

.scribble-arrow--left {
  width: 76px;
}

.scribble-arrow--right {
  width: 60px;
}

.board-demo {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 56vw, 860px);
  border-radius: 56px;
  border: 10px solid #000;
  overflow: hidden;
  background-color: var(--navy-deep-bg, #1f396b);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.board-demo__loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #1f396b;
  transition: opacity 0.35s ease;
}

.board-demo__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.board-demo__loader-logo {
  font-family: 'Kangmas', serif;
  font-size: 40px;
  color: #fff;
}

.board-demo__loader-bar {
  width: 200px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.board-demo__loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: #fff;
}

.board-demo.is-ready .board-demo__loader-bar-fill {
  animation: boardDemoFill 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes boardDemoFill {
  from { width: 0%; }
  to { width: 100%; }
}

.board-demo__title {
  position: absolute;
  left: 32px;
  top: 24px;
  z-index: 6;
  margin: 0;
  font-family: 'Kangmas', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  color: #eadec8;
  pointer-events: none;
}

.board-demo__toolbar {
  position: absolute;
  right: calc(24px + min(360px, 30vw) + 16px);
  top: 24px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 44px;
  background: #fff;
  box-shadow: 0 4px 0 0 #122446, 0 2px 0 0 #0c172b;
  pointer-events: none;
}

.board-demo__toolbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #1f396b;
  overflow: hidden;
  flex-shrink: 0;
}

.board-demo__toolbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-demo__toolbar-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #373737;
  opacity: 0.6;
  flex-shrink: 0;
}

.board-demo__toolbar-divider {
  width: 1px;
  height: 24px;
  background: #e7e7d9;
  flex-shrink: 0;
}

.board-demo__toolbar-zoom {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #373737;
  white-space: nowrap;
}

.board-demo__toolbar-create {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #d94d27;
  border: 2px solid #8e3219;
  box-shadow: 0 3px 0 0 #8e3219;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #eadec8;
  white-space: nowrap;
}

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

.board-demo__sidebar {
  position: absolute;
  left: 32px;
  top: 90px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The sidebar wrapper allows pointer events again (unlike the toolbar and
   agenda) purely so the folder hover fan-out below can trigger - folders
   still don't click/switch to anything. */
.folder {
  pointer-events: auto;
}

.board-demo__viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.board-demo__world {
  position: relative;
  width: 100%;
  height: 100%;
}

.board-demo__agenda {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(360px, 30vw);
  padding: 28px;
  border-radius: 36px;
  background: #c3bbaf;
  box-shadow: 0 8px 0 0 #0c172b;
  pointer-events: none;
  overflow: hidden;
}

.board-demo__agenda-title {
  margin: 0;
  font-family: 'Kangmas', serif;
  font-size: 30px;
  color: #373737;
}

.board-demo__agenda-filters {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.board-demo__agenda-pill {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1.5px dashed #a69c8e;
  border-radius: 128px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #373737;
  white-space: nowrap;
}

.board-demo__agenda-pill--active {
  border-color: #d94d27;
}

.board-demo__agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-demo__agenda-card {
  padding: 16px;
  border-radius: 22px;
  background: #f2ebdd;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.13);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-demo__agenda-card--active {
  background: #fff;
}

.board-demo__agenda-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-demo__agenda-card-title {
  margin: 0;
  font-family: 'Kangmas', serif;
  font-size: 17px;
  color: #373737;
}

.board-demo__agenda-star {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.board-demo__agenda-card-desc {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(55, 55, 55, 0.47);
}

.board-demo__agenda-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding-left: 4px;
}

.board-demo__agenda-tag {
  padding: 3px 8px;
  border-radius: 40px;
  background: #d9d9d9;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #201c1d;
}

.board-demo__agenda-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-demo__agenda-time {
  padding: 6px 10px;
  border-radius: 44px;
  border: 1px solid rgba(211, 209, 205, 0.4);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  color: #201c1d;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .board-demo__sidebar,
  .board-demo__agenda {
    display: none;
  }
}

/* ---- Folder tiles (decorative, non-interactive - adapted from recap's
   real board folders) ---- */

.folder {
  position: relative;
  width: 130px;
  height: 117px;
  filter: drop-shadow(0 3px 0 #122446);
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* A little "papers fan out" life on hover, inspired by
   rareui.com/components/foldercomponent - the papers spread further
   apart and the whole tile lifts slightly. Decorative only; the folders
   themselves stay non-interactive (no click/switch behavior). */
.folder:hover {
  filter: drop-shadow(0 6px 0 #122446);
  transform: translateY(-3px);
}

.folder__stack {
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 108px;
  background: #122446;
  -webkit-mask-image: url('assets/img/card-union-blue.svg');
  mask-image: url('assets/img/card-union-blue.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.folder--active .folder__stack {
  background: #d94d27;
  -webkit-mask-image: url('assets/img/card-union-orange.svg');
  mask-image: url('assets/img/card-union-orange.svg');
}

.folder__base {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 61px;
  border-radius: 0 0 9px 9px;
  background: #2d4c7f;
}

.folder--active .folder__base {
  background: #bb401d;
}

.folder__papers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.folder__card {
  position: absolute;
  width: 47px;
  height: 44px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 1.3px;
  border-radius: 5px;
  background: #283f6b;
  transition: transform 0.2s ease;
}

.folder__card span {
  height: 2px;
  border-radius: 4px;
  flex-shrink: 0;
  background: #556d9b;
}

.folder__card span:nth-child(2) { width: 46%; }
.folder__card span:nth-child(4) { width: 76%; }
.folder__card span:nth-child(5) { width: 62%; }

.folder__card--1 { left: 14px; top: 23px; transform: rotate(-9.37deg); }
.folder__card--2 { left: 35px; top: 35px; transform: rotate(7.11deg); }
.folder__card--3 { left: 60px; top: 27px; width: 57px; transform: rotate(-4.96deg); }

.folder:hover .folder__card--1 { transform: rotate(-16deg) translate(-4px, -3px); }
.folder:hover .folder__card--2 { transform: rotate(7.11deg) translateY(2px); }
.folder:hover .folder__card--3 { transform: rotate(11deg) translate(5px, -3px); }

.folder--active .folder__card { background: #ffd2c6; }
.folder--active .folder__card span { background: #ffac94; }

.folder__num {
  position: absolute;
  left: 9px;
  top: 82px;
  font-size: 12px;
  font-weight: 700;
  color: #eadec8;
  opacity: 0.28;
}

.folder__name {
  position: absolute;
  left: 9px;
  top: 65px;
  font-family: 'Kangmas', serif;
  font-size: 16px;
  color: #eadec8;
}

/* ---- Sticky notes on the board (the only draggable part of the demo) ---- */

.note {
  position: absolute;
  z-index: 1;
  width: clamp(210px, 22vw, 300px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  border-radius: 28px;
  border: 3px solid #1f396b;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.48);
  transform: rotate(var(--note-rotate, 0deg));
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow 0.15s ease, filter 0.15s ease, transform 0.25s ease;
}

.note--pending { opacity: 0; }

.note--tan { background: #e3cfae; }
.note--white { background: #fff; z-index: 2; }

.note.is-dragging {
  cursor: grabbing;
  z-index: 10;
  transition: none;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
}

.note:hover {
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  filter: brightness(1.03);
}

.note--loading-in { animation: boardDemoNoteIn 0.4s ease both; }
.note--loading-in:nth-child(1) { animation-delay: 0.1s; }
.note--loading-in:nth-child(2) { animation-delay: 0.22s; }
.note--loading-in:nth-child(3) { animation-delay: 0.34s; }
.note--loading-in:nth-child(4) { animation-delay: 0.46s; }
.note--loading-in:nth-child(5) { animation-delay: 0.58s; }
.note--loading-in:nth-child(6) { animation-delay: 0.7s; }

@keyframes boardDemoNoteIn {
  from { opacity: 0; transform: rotate(var(--note-rotate, 0deg)) translateY(16px) scale(0.92); }
  to { opacity: 1; transform: rotate(var(--note-rotate, 0deg)) translateY(0) scale(1); }
}

.note__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.note__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.note__meta {
  font-size: 12px;
  font-weight: 500;
  color: #373737;
  opacity: 0.4;
}

.note__text {
  font-family: 'Kangmas', serif;
  font-size: 21px;
  line-height: 1.15;
  color: #373737;
}

.note__text span {
  color: rgba(55, 55, 55, 0.4);
}

.badge {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1.5px solid rgba(55, 55, 55, 0.4);
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #373737;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #373737;
  overflow: hidden;
  margin-right: -12px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--solo { margin-right: 0; }
.note--white .avatar { border-color: #fff; }

.avatar--counter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf1e2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 8px;
  color: #373737;
  margin-right: 0;
}

.avatar-stack--sm .avatar {
  width: 26px;
  height: 26px;
  border-width: 1.5px;
  margin-right: -8px;
}

.avatar-stack--sm .avatar--counter {
  font-size: 9px;
}

/* ---------- Services (Prepare / During / After) ---------- */
/*
  Each of the three steps carries its own background (not the page's paper
  grid) so the group reads as one self-contained block. Static for now -
  micro-animations come later.
*/

/* Pinned scroll-stack: the 3 steps sit exactly on top of each other and
   scroll like the Benefits card pile - each one slides up and off to
   reveal the next, staying pinned the whole time instead of just
   stacking in normal document flow. */
.services {
  position: relative;
  height: 400vh;
}

.services__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: 24px 40px;
}

.service {
  position: absolute;
  inset: 0 40px auto;
  top: 50%;
  /* Vertically centered (translateY below) instead of pinned to top:24px -
     height:auto (next) means a shorter stage (less content, or a scaled-
     down board) is a shorter card, and anchoring from the top alone just
     left the *extra* space stranded below it as a stray gap of bare
     .light-content background before the next section. Centering instead
     distributes the found space evenly above/below, which reads as
     intentional at any height. */
  transform: translateY(-50%);
  max-width: 1869px;
  /* height:auto instead of a fixed 890px so the card hugs its content - 890
     was really just "the board's natural 810px height plus 40px top/bottom
     padding" at full scale, but stayed fixed even when .service__board-slot
     scales down on narrower screens, leaving a tall card with dead space
     below a shrunken board. */
  margin: 0 auto;
  border-radius: 56px;
  background: #f2ebdd;
  display: flex;
  align-items: center;
  /* space-between, not just a gap: once .service__board-slot hits its own
     1010px cap while the card itself keeps growing toward its 1869px cap
     (roughly >1700px viewports), nothing was left to absorb the extra
     width, so it just sat as dead space to the right of the board. This
     pins the board to the card's right edge instead. */
  justify-content: space-between;
  gap: 40px;
  padding: 40px 40px 40px 89px;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.service[data-stage-index="0"] { z-index: 1; }
.service[data-stage-index="1"] { z-index: 2; }
.service[data-stage-index="2"] { z-index: 3; }

/* Alternative to the slide-stack above (see index-services-slide-backup.html
   for that version): stages stay put and crossfade into each other, with
   their words fading/sliding in one at a time while active - closer to the
   zero.university reference the user pointed at. */
.services-fade {
  position: relative;
  height: 400vh;
}

.services-fade__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: 24px 40px;
}

.services-fade__stage {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.services-fade__stage.is-active {
  opacity: 1;
  pointer-events: auto;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.services-fade__stage.is-active .word-reveal,
.hero__intro.is-revealed .word-reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service__text {
  /* A fixed-ish preferred width (with room to shrink at the very narrowest
     viewports) rather than flex:1 - flex:1 let the board's own fixed 1010px
     width push text down to almost nothing before the board itself finally
     ran out of room and overflowed the card. Giving text priority here, and
     letting .service__board-slot (below) absorb the squeeze instead, fixes
     both problems at once. */
  flex: 0 1 460px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.service__badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  color: #122446;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: #201c1d;
}

.service__desc {
  margin: 0;
  max-width: 420px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(32, 28, 29, 0.81);
}

.service__scribble {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 4px;
  font-family: 'Segoe Script', 'Bradley Hand', cursive;
  font-size: 20px;
  opacity: 0.6;
  color: #201c1d;
  transform: rotate(-4deg);
}

.service__scribble-arrow {
  width: 32px;
  height: 32px;
}

/* .service__board-slot is the flex item and owns the responsive size: it
   shrinks (down to whatever .service__text doesn't need) instead of the old
   fixed-width board overflowing the card on narrower screens. script.js
   measures the slot's actual rendered width each resize and scales
   .service__board - which stays a constant 1010x810 internally, so none of
   its fixed-px children (folders/waveform/processing-loader/qa chat) need
   to know anything changed - to fit inside it. */
.service__board-slot {
  position: relative;
  flex: 1 1 0%;
  max-width: 1010px;
  aspect-ratio: 1010 / 810;
  align-self: center;
  border-radius: 44px;
  overflow: hidden;
}

.service__board {
  position: absolute;
  top: 0;
  left: 0;
  width: 1010px;
  height: 810px;
  transform-origin: top left;
  background: #1f396b;
}

.service__board-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

/* ---- Prepare: live hover-fan folders overlaid on the flat board image ----
   .service__board always renders at a fixed 1010x810 (aspect-ratio locked
   against the card's own fixed height), so plain pixel positions here line
   up with the source image's own coordinates - no percentage math needed.
   The image itself should leave this area blank (see
   service-board-prepare.png) so there's no double artwork. Sizing reuses
   the same transform:scale trick as the Product section's sidebar, since
   the folder's internal pieces are all positioned in fixed px against its
   natural 130x117 size. */
.service__folders {
  position: absolute;
  z-index: 1;
  left: 91px;
  top: 91px;
  width: 236px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.service__folder-slot {
  width: 111px;
  height: 100px;
}

.service__folder-slot .folder {
  transform: scale(0.855);
  transform-origin: top left;
}

/* ---- During: live waveform + pixel-loader overlays ---- */

.service__wave-live {
  position: absolute;
  left: 50%;
  top: 300px;
  transform: translateX(-50%);
  width: 420px;
  height: 220px;
}

.service__processing-loader {
  position: absolute;
  left: 762px;
  top: 92px;
  width: 220px;
  align-items: center;
  gap: 10px;
}

.service__processing-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  color: #373737;
}

/* ---- After: live chat bubbles (one shows the "still thinking" state) ---- */

.service__qa {
  /* Percentages here used to resolve to left:0/right:0 - .service__board's
     width comes from aspect-ratio rather than a literal width, and that
     tripped up percentage insets on an absolutely positioned child. Fixed
     px against the board's own known 1010x810 render size sidesteps it
     (same fix as .service__folders/.service__processing-loader above). */
  position: absolute;
  left: 165px;
  right: 165px;
  top: 300px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* Same fade+rise entrance as the real recap chat/transcript bubbles
   (.modal__recap-msg / @keyframes msgIn in recap/styles.css) - only
   applied while this stage is active, so it replays each time the user
   scrolls back into "After" instead of only once on page load. */
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.services-fade__stage.is-active .service__qa > * {
  animation: msgIn 0.3s ease both;
}

.services-fade__stage.is-active .service__qa > *:nth-child(1) { animation-delay: 0.05s; }
.services-fade__stage.is-active .service__qa > *:nth-child(2) { animation-delay: 0.15s; }
.services-fade__stage.is-active .service__qa > *:nth-child(3) { animation-delay: 0.25s; }
.services-fade__stage.is-active .service__qa > *:nth-child(4) { animation-delay: 0.35s; }
.services-fade__stage.is-active .service__qa > *:nth-child(5) { animation-delay: 0.45s; }
.services-fade__stage.is-active .service__qa > *:nth-child(6) { animation-delay: 0.55s; }

.service__bubble {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 80%;
  flex-shrink: 0;
}

.service__bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #eadec8;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.service__bubble-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  border: 2px dashed #dfcfb2;
  border-radius: 21px;
  background: #fff;
}

.service__bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Kangmas', serif;
  font-size: 16px;
  color: #373737;
}

.service__bubble-head span:last-child {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #827a6d;
}

.service__bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.service__bubble-row p {
  margin: 0;
  flex: 1;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #201c1d;
}

.service__bubble-row time,
.service__answer time {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #d94d27;
}

.service__answer {
  align-self: flex-end;
  width: 52%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 16px;
  border: 2px dashed #dfcfb2;
  border-radius: 21px;
  background: #b5aa9a;
}

.service__answer p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.3;
  font-family: 'Inter', system-ui, sans-serif;
  color: #201c1d;
}

/* Pixel-grid "wavefront" loader, ported from the real recap app - a
   chevron of lit cells sweeping across a 3x3 grid. Reused here for the
   "Processing recap" card and the still-thinking answer bubble. */
.pixel-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.pixel-loader__grid {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 2px;
}

.pixel-loader__grid span {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--orange);
  opacity: 0.15;
  animation: pixel-on 650ms ease-in-out infinite;
}

@keyframes pixel-on {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

.pixel-loader__timer {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .pixel-loader__grid span { animation: none; opacity: 0.5; }
}

@media (max-width: 1500px) {
  .service {
    gap: 24px;
    padding: 40px 24px 40px 48px;
  }
}

@media (max-width: 900px) {
  .service {
    flex-direction: column;
    padding: 60px 24px;
  }

  .service__text {
    flex: none;
  }

  .service__board-slot {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}

/* ---------- Light content -> CTA hand-off ---------- */
/* Everything before the CTA sits in this wrapper so it can "drive away"
   off the blue: the wrapper stays in normal flow (so it still scrolls) but
   is pulled down over the CTA by a negative margin, while the CTA is
   position:sticky underneath at a lower z-index. For that whole overlap,
   the wrapper (on top, opaque, rounded bottom corners) keeps scrolling
   normally and slides up past the pinned CTA, revealing it through the
   rounded corners exactly like a sheet of paper being pulled off a colored
   table. Keep this in sync with .cta__pin's own height (below) - it must
   be <= that, or the CTA would still be scrolling past (not yet stuck) by
   the time the reveal finishes. */
.light-content {
  position: relative;
  z-index: 2;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(18, 7, 4, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 7, 4, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  border-radius: 0 0 72px 72px;
  margin-bottom: -20vh;
}

/* ---------- CTA + Footer ---------- */
/* Both sit on the same blue as .service__board's real product screens, and
   reuse the page-wide dotted grid (body, styles.css:37-46) recolored for a
   dark background - background-attachment:fixed anchors both layers to the
   viewport rather than the document, so the grid cells line up across the
   seam automatically with no offset math needed. */

.cta__pin,
.site-footer {
  background-color: #1f396b;
  background-image:
    linear-gradient(rgba(242, 235, 221, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 235, 221, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

/* Same pinned-scroll-track pattern already used by .hero/.hero__pin and
   .services-fade/.services-fade__pin: a tall, plain (non-sticky) track
   holding a single-viewport-tall sticky pin. Content is centered within
   exactly one viewport height, so it stays reliably visible whatever the
   screen's aspect ratio - a min-height box with the content merely centered
   inside it depended on how tall vs. wide the viewport was and broke on
   wide-but-short screens. This track's height is 100vh (matching the pin)
   plus however much extra dwell time we want the CTA to stay fully
   revealed before the footer's normal flow arrives and pushes it off; the
   70vh overlap itself comes from .light-content's negative margin above,
   not from anything here. */
.cta {
  height: 170vh;
}

.cta__pin {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cta__inner {
  position: relative;
  width: 100%;
  max-width: 1923px;
  aspect-ratio: 1923 / 864;
  margin: 0 auto;
}

.cta__title {
  position: absolute;
  left: 50%;
  top: 33%;
  transform: translateX(-50%);
  width: 61%;
  max-width: 1171px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.3vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-align: center;
  color: #f2ebdd;
}

.cta__title-accent {
  color: #f06945;
}

.cta__form-wrap {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translateX(-50%);
  width: 38%;
  min-width: 320px;
  max-width: 730px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #ebe5db;
  border: 2px solid #120704;
  border-radius: 88px;
  padding: 4px 4px 4px 24px;
  box-shadow: 0 4px 0 #120705;
}

.cta__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #201c1d;
  outline: none;
}

.cta__input::placeholder {
  color: #201c1d;
  opacity: 0.4;
}

.cta__submit {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #201c1d;
  color: #fff;
  border-radius: 128px;
  padding: 20px 32px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
  /* No border/hard-shadow on this one (flat design, unlike the float-menu
     buttons), so just a plain scale for the press feedback. */
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta__submit:hover {
  transform: scale(1.04);
  background: #35302f;
}

.cta__submit:active {
  transform: scale(0.97);
}

.cta__note {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
  opacity: 0.81;
}

.cta__scribble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  text-align: center;
}

.cta__scribble span {
  font-family: 'Kaushan Script', cursive;
  font-size: 24px;
  line-height: 1.1;
  color: #f2ebdd;
  opacity: 0.81;
}

.cta__scribble-arrow {
  width: 56px;
  height: auto;
  /* Both svgs curl from a tail to an arrowhead at their top edge, so sitting
     right below the scribble text naturally points the arrow up at it. */
}

.cta__scribble--left {
  left: 9%;
  top: 38%;
  transform: rotate(-8deg);
}

.cta__scribble--right {
  right: 9%;
  top: 38%;
  transform: rotate(8deg);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 3;
  overflow: hidden;
  color: #f2ebdd;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1923 / 664;
  padding: 19px 56px 24px 57px;
}

/* Caps the columns/legal row to the site's usual content grid (matches
   .service/.benefits__track/etc.) so they stay a comfortable reading width
   instead of chasing the true page edge on very wide screens - unlike the
   wordmark, which is deliberately full-bleed. */
.site-footer__content {
  /* width:100% is needed alongside max-width here because .site-footer__inner
     is a column flex container - a flex item with margin:auto ignores the
     default cross-axis stretch and shrinks to its content's width instead,
     which silently broke .site-footer__bottom's space-between spread. */
  width: 100%;
  max-width: 1869px;
  margin: 0 auto;
}

.site-footer__columns {
  /* width:fit-content so this shrinks to its own content instead of
     filling .site-footer__content's full width like a normal block box -
     only then does margin-left:auto have any leftover space to push it
     against the right edge of the (now width-capped) content wrapper. */
  display: flex;
  width: fit-content;
  gap: min(10vw, 160px);
  margin-left: auto;
  margin-bottom: 40px;
}

.site-footer__col h3 {
  margin: 0 0 31px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.site-footer__col p {
  margin: 0 0 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  opacity: 0.81;
}

.site-footer__col p:last-child {
  margin-bottom: 0;
}

.site-footer__content--wordmark {
  margin-top: auto;
}

.site-footer__wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  /* Starting guess only - a block element's own width always fills its
     container regardless of text length, so vw alone can't make the glyphs
     themselves reach the edge (letter shapes/kerning eat into it). script.js
     measures the actual rendered text and corrects this size to fit exactly. */
  font-size: max(48px, 20.65vw);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.site-footer__legal {
  display: flex;
  gap: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  opacity: 0.81;
}

/* .site-footer__inner's aspect-ratio was measured off a 1923px-wide Figma
   frame, and only the wordmark's own size actually scales with viewport
   width (font-size: vw-based) - the columns/bottom row use fixed px sizes,
   so past ~1920px the aspect-ratio box keeps growing taller while the
   content above the wordmark doesn't, and margin-top:auto dumps all of
   that extra height into a growing gap that pushes "recap." away from the
   nav columns. Past that width, drop the ratio and go back to a normal
   fixed gap instead, the same way the mobile breakpoint below already
   does at the other extreme. */
@media (min-width: 1921px) {
  .site-footer__inner {
    aspect-ratio: auto;
  }

  .site-footer__content--wordmark {
    margin-top: 24px;
  }
}

@media (max-width: 860px) {
  .cta__title {
    top: 14%;
    font-size: clamp(32px, 9vw, 122px);
  }

  .cta__form-wrap {
    top: 42%;
    width: 80%;
  }

  .cta__scribble {
    display: none;
  }

  .site-footer__inner {
    aspect-ratio: auto;
    padding: 32px 24px 24px;
  }

  .site-footer__columns {
    margin-left: 0;
    gap: 40px;
  }

  .site-footer__wordmark {
    margin-top: 48px;
    font-size: 16vw;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
  }
}

/* ---------- Page loader ---------- */
/* Same brief splash as the real recap app (recap/styles.css .board-loader,
   recap/script.js) - ported verbatim: logo + fill bar on navy, timed with a
   plain setTimeout rather than tied to real asset-load state, then fades. */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #1f396b;
  transition: opacity 0.35s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader__logo {
  font-family: 'Kangmas', serif;
  font-weight: 400;
  font-size: 48px;
  color: #fff;
}

.page-loader__bar {
  width: 220px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.page-loader__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: #fff;
  animation: pageLoaderFill 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pageLoaderFill {
  from { width: 0%; }
  to { width: 100%; }
}
