.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 76px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(7, 6, 6, .82), rgba(7, 6, 6, .28));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 247, 234, .06);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}.site-header[data-stuck]{
  background: rgba(7, 6, 6, .93);
  border-bottom-color: var(--line-soft);
}.site-header__inner{
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
}.brand{
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}.brand img{ width: 34px; height: 34px; }.brand__word{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .16em;
  color: var(--text-primary);
}.nav{ margin-inline: auto; }.nav__list{
  display: flex;
  align-items: center;
  gap: var(--space-6);
}.nav__list a{
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--dur) var(--ease);
  /* One label, one line. Without this the label wrapped INSIDE its own <li>
     between roughly 1081px and 1150px, putting the bar on two lines even
     though .nav__list never wrapped: "What we do" became "What we" / "do" and
     the row grew from 24px to 49px tall. The bar already collapses to the menu
     button below 1080px, so nowrap here cannot cause an overflow. */
  white-space: nowrap;
}
.nav__list li{
  /* Items keep their natural width; only the bar itself is allowed to shrink. */
  flex: 0 0 auto;
}.nav__list a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--caledapt-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}.nav__list a:hover{ color: var(--text-primary); }.nav__list a:hover::after{ transform: scaleX(1); }.site-header__actions{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}.btn--sm{ min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--t-xs); }.menu-btn{
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  cursor: pointer;
}.menu-btn__bars{ display: grid; gap: 5px; width: 18px; }.menu-btn__bars i{
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child{ transform: translateY(3.5px) rotate(45deg); }.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child{ transform: translateY(-3.5px) rotate(-45deg); }.mobile-nav{
  position: fixed;
  top: 76px; left: var(--shell); right: var(--shell);
  z-index: 59;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-3);
}.mobile-nav ul{ margin-bottom: var(--space-4); }.mobile-nav a{
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--t-base);
  color: var(--text-muted);
  border-bottom: 1px solid rgba(250, 247, 234, .05);
}.mobile-nav a:hover{ color: var(--caledapt-cyan); }.mobile-nav .btn{ width: 100%; }@media (max-width: 1080px){.nav{ display: none; }.site-header__actions .btn--secondary{ display: none; }.menu-btn{ display: inline-flex; }
}@media (max-width: 560px){.site-header{ height: 66px; }.site-header__actions .btn--sm{ padding: var(--space-2) var(--space-3); }.mobile-nav{ top: 66px; }.brand{ min-width: 0; }.brand__word{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.site-header__inner{ gap: var(--space-3); }.site-header__actions{ flex: none; min-width: 0; }/* The phone header used to swap the real label for a ::after reading "Free
     check" while the link still went to /book/ and its accessible name was still
     "Book a workflow review" - so the visible label, the name and the destination
     all disagreed. The label is now the label at every width; it is only made
     smaller so it fits beside the brand and the menu button. */
  .site-header__actions .btn--primary{ font-size: var(--t-xs); padding-inline: var(--space-3); }
}@media (max-width: 430px){.site-header__actions .btn--primary{ display: none; }
}@media (max-width: 380px){.brand__word{ display: none; }
}.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(76px + var(--space-7)) var(--space-8);
  overflow: hidden;
  isolation: isolate;
}.hero__media{ position: absolute; inset: 0; z-index: 0; }.hero__media img{ width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }.hero__scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(7, 6, 6, .95) 0%,
      rgba(7, 6, 6, .90) 34%,
      rgba(7, 6, 6, .66) 52%,
      rgba(7, 6, 6, .30) 72%,
      rgba(7, 6, 6, .14) 100%),
    linear-gradient(to top, rgba(7, 6, 6, .84) 0%, rgba(7, 6, 6, 0) 48%);
}.hero__grain{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='4' height='4' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}.hero__inner{ position: relative; z-index: 2; width: 100%; }.hero__copy{ max-width: 700px; }.hero h1{ margin-bottom: var(--space-5); }.hero h1 .mask + .mask{ margin-top: -.04em; }.hero__lead{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t-md);
  line-height: 1.54;
  color: var(--text-primary);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}

/* HERO FIT — the hero must occupy exactly one viewport, with the type scaled to
   the space available rather than pinned to a global display cap.

   Measured before this change: at 1440x900 the hero rendered 1249px tall in a
   900px viewport, spilling 349px past the fold, and the headline sat at the
   --t-2xl cap of 104px at EVERY viewport from 430px to 1920px — the clamp's
   8.5vw term never resolved to anything smaller on desktop because the copy
   column is a fixed 700px, so the text simply overflowed its own box.

   Two changes:
   1. Height: the hero is capped to 100svh and its copy column is allowed to
      shrink, so the section can no longer exceed the viewport.
   2. Type: a container-relative clamp (cqw units) keyed to the hero's own
      width, so the headline scales with the space it actually has instead of
      with the viewport width. --hero-q is the shared basis for every hero text
      size, so one edit rescales the whole block together. */
.hero{
  min-height: 0;
  height: 100svh;
  max-height: 100svh;
  /* Height is now the viewport, so the vertical padding must scale WITH it
     instead of adding a fixed 275px on top. Measured: 152px + 123px of padding
     inside a 900px box left only 625px of content area, which is why the copy
     could not fit at a sensible type size. Padding is now a percentage of the
     hero's own height, with the header offset as a floor.

     THE BOTTOM PADDING MUST ALSO RESERVE THE SCROLL CUE.
     `.hero__scroll` is position:absolute at the foot of the hero (bottom:
     var(--space-5) = 29px, height 19px), so it occupies the 29px..48px band
     measured up from the hero's bottom edge. The copy's last line sits
     inside the hero's CONTENT AREA, which ends where the bottom padding
     begins. With a 4vh bottom padding the content area ran straight through
     that band, so the location line and the scroll cue overlapped on the
     same line.

     Measured before this change: at 1280x800 the where-line occupied
     732-762 while the scroll cue occupied 752-771 -- a 10px overlap on the
     same line. At 1440x900: 865-884 against 852-871.

     The bottom padding is therefore the scroll cue's band (48px) plus a
     gap, so the content area always ends clear of it. */
  padding-block: max(3vh, calc(76px + 1.5vh)) max(4vh, calc(48px + var(--space-4)));
}
.hero__inner{
  container-type: inline-size;
  container-name: hero;
  height: 100%;
  display: flex;
  align-items: center;
}
/* THE COPY MUST FIT THE CONTENT AREA — not merely be centred in it.
   --------------------------------------------------------------------------
   Measured on production, 22 Oct 2026. The hero is `height: 100svh` with
   `padding-block: max(3vh, 76px + 1.5vh) 4vh`, so the content area is
   100svh - padTop - padBottom. The copy column is taller than that area at
   FIVE of the nine desktop viewports measured:

     viewport   content   copy   overflow
     1920x1080    944.6    856        fits (88.6 spare)
     1440x900     774.5    814      -39.5
     1366x768     649.8    657       -7.2
     1280x800     680.0    821     -141.0
     1280x720     604.8    659      -54.2
     1024x768     649.8    673      -23.2
     1024x700     585.5    673      -87.5

   Because `.hero__inner` centres the copy (align-items:center) and
   `.hero` clips its overflow, that overflow was split evenly between the
   top and the bottom. That produced the two symptoms reported:

     - TOP: the first line of copy, the eyebrow "AI implementation & business
       automation · Perth, Scotland", was pushed up under the 76px FIXED
       header and hidden behind it. Measured eyebrow top: 70px at 1440x900
       (header bottom 76px), 17px at 1280x800, 43px at 1024x700.

     - BOTTOM: the last line, "Built in Perth · Scotland-wide on site · UK &
       remote delivery", ran off the bottom of the hero and collided with
       `.hero__scroll`, which is position:absolute at the foot of the hero.
       Measured at 1440x900: where-line 865-884 against scroll 852-871 --
       a 7px overlap on the same line.

   The fix is NOT to shorten the copy and it is NOT to unlock the hero's
   height (the exact-one-viewport behaviour is the point of the hero, and
   hero_fit_check.mjs locks it). The fix is to make the copy FILL the
   content area: `align-items: stretch` with the copy as a flex column that
   distributes its own height, so the block never overflows and never leaves
   a gap.

   `.hero__copy` is `align-self: center` so it keeps its natural height when
   it FITS (which is the case on a tall desktop) and the column only
   stretches when the content is taller than the area. The `where` line is
   pushed to the bottom of the column with `margin-top: auto`, so the
   CTA block and the location line stay visually separated at every size. */
.hero__copy{
  /* The copy column's width. It is the flex child's share of the hero row
     and it is what the headline has to fit inside.

     `width` (not `max-width` alone) is deliberate. Making this element a
     container with `container-type: inline-size` means its contents are
     sized independently of it, and with only a max-width the column
     COLLAPSED TO ZERO -- measured copyW 0 and a 0px headline. The width is
     therefore stated explicitly, and the max-width caps it. */
  width: min(700px, 62cqw);
  max-width: min(700px, 62cqw);
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  /* The copy column is its own sizing container, so a cqw unit inside it
     resolves against the COLUMN's width rather than the hero's. That is what
     lets the headline scale to the space it actually has. The hero remains
     the named 'hero' container for everything else that uses cqw. */
  container-type: inline-size;
  container-name: copy;
}
/* The hero is a flex row; the copy column is the flex child. The row must
   NOT centre the child vertically when the child is taller than the row --
   that is what split the overflow between the top and the bottom. `stretch`
   lets the column take the full content height so its own internal
   distribution applies instead. */
.hero__inner{ align-items: stretch; }
/* …but the CREDENTIALS panel is a sibling in the same row and must keep its
   own vertical centring. It is not stretched, so it re-centres itself. */
.hero__creds{ align-self: center; }
/* The location line is the last thing in the copy column and is pushed to
   the bottom of it, so the space between the CTA buttons and the line
   absorbs whatever slack the hero has instead of the line floating up
   against the buttons. `margin-top: auto` on a flex column child consumes
   the free space ABOVE it. The padding-top keeps a minimum gap even when
   the column is exactly full, so the two never touch. */
.hero h1{
  /* Scoped to the hero: --t-2xl is the global display scale used by every
     other h1 on the site and must not be changed site-wide for this.

     THE TYPE MUST FIT THE COPY COLUMN, NOT JUST THE HERO.

     The headline is three authored lines, and the longest of them --
     "AI that earns its place." -- needs 11.246x the font size in width.
     Measured on production at 1440x900 with the type at 80px: that line
     measured 900px against a 664px copy column, so 236px of it was CLIPPED
     by the mask's overflow:hidden. At 1280x800 it was 905px against a 674px
     column. The words were simply cut off at the right edge.

     The column is not the hero: it is the hero minus the credentials
     panel and its gap, so the hero's own width is the WRONG basis for the
     type. Measured copy-column widths: 633px at 1920, 664px at 1440, 674px
     at 1280, 569px at 1024, 533px at 960.

     The fix is to size the type from the COLUMN. `.hero__copy` becomes its
     own inline-size container, so a cqw unit inside it resolves against the
     copy column's width -- the space the headline actually has.

     11.246 is the measured width-per-font-pixel of the longest line, so
     1/11.246 = 0.0889 of the column is the type size that makes it fit
     exactly. The clamp takes the SMALLER of that and the cap, so the type
     can still be larger on a roomy column but can never exceed the width
     the line needs. */
  --hero-line: 0.0889;                 /* 1 / 11.246 */
  --hero-q: min(82px, calc(100cqw * var(--hero-line)));
  font-size: var(--hero-q);
  line-height: 1.02;
  margin-bottom: clamp(14px, 2.1cqw, 26px);
  /* THE HEADLINE MUST NOT WRAP. Each .mask is ONE editorial line and must
     stay on one line.

     Measured on production, 22 Oct 2026: the headline rendered FIVE visual
     line boxes, not three. "Better workflows." and "AI that earns its
     place." each broke onto a second line.

     The cause is `text-wrap: balance` on the h1 from design-system.css.
     Balance re-balances the LINES OF A BLOCK, and it applies to each .mask
     because each .mask is a block-level element. It was shortening
     "Better workflows." by pulling "workflows." down to a second line
     instead of letting the line sit as authored.

     That extra wrapping is also what pushed the copy column past the hero's
     content area, which is what produced the two reported symptoms: the
     eyebrow hidden under the fixed header, and the location line colliding
     with the scroll cue. hero_fit_check.mjs asserted "3 visual lines" but
     counted distinct .mask-i OFFSETS, so it saw 3 and passed while the
     visitor saw 5. A gate that counts elements is not a gate that counts
     lines.

     `nowrap` on the .mask is the fix. It cannot wrap, so the authored
     line structure survives. The copy column is min(700px, 62cqw) wide and
     --hero-q is a container-relative clamp, so the type shrinks to fit
     rather than the line breaking. */
}
/* The mask IS the line. It must not wrap. */
.hero h1 .mask{
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
  white-space: nowrap;
}
/* The inner span is what actually carries the text; the mask is the
   overflow window the reveal animation uses. */
.hero h1 .mask-i{
  display: block;
  white-space: nowrap;
  transition: color .2s var(--ease-out, ease);
}
/* Two-tone headline: the accent beat carries the brand mint, the rest stays in
   the primary text colour.

   Selector note: `.hero h1 .mask-i:last-child` is WRONG — each .mask-i is the
   ONLY child of its .mask, so :last-child matched all three and painted the
   whole headline mint (caught by hero_fit_check). The accent must target the
   third .mask LINE, and that is what :nth-last-child(-n+1) on the .mask
   siblings does: the colour follows the final line of the headline. */
.hero h1 .mask:last-child .mask-i{ color: var(--caledapt-cyan); }
.hero__lead{
  font-size: clamp(15px, 2.1cqw, 20px);
  line-height: 1.5;
  margin-bottom: clamp(14px, 2.4cqw, 28px);
}
.hero__trust{ font-size: clamp(13px, 1.55cqw, 15px); }

/* Short/wide viewports: the hero is height-constrained, so scale the block down
   off the horizontal basis or the column cannot fit in 100svh.

   The 780px threshold was measured against the OLD copy block, which carried
   94px of fixed margin (47px under the trust list + 47px above the
   where-line). Those margins are now flexible -- the where-line is pushed to
   the bottom of the column with `margin-top: auto` and the trust list uses a
   clamp -- so the copy is materially shorter and the threshold can move.

   Measured after the margin fix: the copy fits 646px of content area at
   1280x800 (46px spare) and 567px at 1280x720 (27px spare). It does NOT fit
   at 1024x700, where the content area is 548px and the copy needs 632px
   (12px over). 700px is a short viewport and it should not be holding the
   height lock, so the landscape short-viewport release moves from 620px to
   720px -- which covers 1024x700 and every other short-and-wide screen.

   The 780px type-scale step stays: it is about the TYPE, not the height
   lock, and it is what keeps the headline legible on a 768px-tall laptop. */
@media (max-height: 780px) and (min-width: 901px){
  /* The cap tightens on a short viewport, but the COLUMN FIT still applies:
     the type can never be larger than the copy column can hold. */
  .hero h1{ --hero-q: min(62px, calc(100cqw * var(--hero-line))); }
}
@media (max-height: 620px) and (min-width: 901px){
  .hero h1{ --hero-q: min(46px, calc(100cqw * var(--hero-line))); }
}
/* Narrow screens: the container basis is the column, not a wide viewport, so
   cqw scales naturally — these are floors, not overrides. */
@media (max-width: 900px){
  /* A NARROW COLUMN WRAPS INSTEAD OF SHRINKING.
     At 430px the copy column is 239px and the longest headline line needs
     11.246 x the font size, so fitting it on one line would mean a 21px
     headline -- below the 24px legibility floor the site holds. The type
     keeps its floor and the line wraps instead, which is the right trade:
     a two-line headline against readable type, rather than a clipped or
     illegible one.
     The floor is 24px, which is what the headline can be at minimum. */
  .hero h1{
    --hero-q: max(24px, min(54px, calc(100cqw * var(--hero-line))));
  }
  .hero h1 .mask,
  .hero h1 .mask-i{ white-space: normal; }
  .hero__lead{ font-size: clamp(15px, 3.6cqw, 19px); }
}
@media (max-width: 430px){
  /* The 24px legibility floor applies here too. This block comes after the
     max-width:900px one, so it OVERRIDES it -- and it used to drop the floor
     entirely, taking the headline to 21px at 430px wide (measured), below
     the floor the site holds and the gate asserts. */
  .hero h1{ --hero-q: max(24px, min(44px, calc(100cqw * var(--hero-line)))); }
}

/* SHORT VIEWPORTS — the height lock is released rather than crushing the type.

   Measured: at 375x667 the hero's content area is 269px but the copy block
   (eyebrow + 3-line headline + lead + 3 trust bullets + 2 buttons + where-line)
   measures 791px at its most compact legible size. There is no type size that
   makes 791px of content fit 269px without becoming unreadable, so holding
   min-height:100svh on a short viewport does not produce a "full" hero — it
   produces a hero clipped equally top and bottom, hiding the headline AND the
   call to action at the same time.

   So on short viewports the hero returns to auto height (grow to fit, scroll
   normally) and the type is scaled to the column instead. On a tall or wide
   screen the exact-one-viewport behaviour above is kept, which is where it was
   actually wanted. The threshold is where the content area can plausibly hold
   the block: 667px is too short, 932px is comfortable. */
@media (max-height: 720px) and (max-width: 900px){
  .hero{
    height: auto;
    max-height: none;
    min-height: 0;
    padding-block: calc(76px + var(--space-6)) var(--space-7);
  }
  .hero__inner{ height: auto; display: block; }
  .hero__copy{ max-width: none; }
}
/* Landscape phones and short laptops: short AND wide — same reasoning, a
   different type basis.

   The threshold moves from 560px to 720px. Measured: at 1024x700 the hero's
   content area is 548px and the copy needs 632px — 12px too much — so the
   hero held its height lock and clipped the location line off the bottom
   (measured: where-line bottom 718 against a 700px viewport). 700px is a
   short viewport and the site already has a deliberate path for those: the
   height lock is released and the hero grows to fit, which is what the
   phone path does.

   1024x700 is a genuinely short window in a landscape-ish desktop window,
   and 720px covers it along with every other short-and-wide screen. */
@media (max-height: 720px) and (min-width: 901px){
  .hero{
    height: auto;
    max-height: none;
    min-height: 0;
    padding-block: calc(76px + var(--space-5)) var(--space-6);
  }
  .hero__inner{ height: auto; display: block; }
  .hero h1{ --hero-q: min(52px, calc(100cqw * var(--hero-line))); }
}
.hero__trust{
  /* ONE OWNER. This was the second of two .hero__trust declarations (the
     first, in the HERO FIT block, set margin-bottom: clamp(14px,2.4cqw,28px)
     and this one set var(--space-6) = 47px). This one wins the cascade, so
     the trust list always cost 47px whether or not there was room for it.
     The clamp lets it sit closer when the hero is tight, which is exactly
     the case that was overflowing. */
  display: grid;
  gap: var(--space-2);
  margin-bottom: clamp(14px, 2.4cqw, 28px);
  padding-left: 0;
}.hero__trust li{
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--t-sm);
  color: var(--text-muted);
}.hero__trust li::before{
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: var(--space-3); height: 1px;
  background: var(--caledapt-cyan);
}.hero__where{
  /* ONE OWNER. This rule is the LAST .hero__where in the file, so it wins the
     cascade -- and an earlier block also declared .hero__where, so the two
     were fighting. Measured on production: the winning declaration was
     `margin-top: var(--space-6)` = 47px, and .hero__trust above it also
     carried `margin-bottom: var(--space-6)` = 47px. Together that 94px of
     fixed dead space was the single biggest cause of the copy overflowing
     the hero's content area.

     `margin-top: auto` is what pushes the line to the bottom of the flex
     column, so the slack goes BETWEEN the CTA row and the line instead of
     being burnt as a fixed gap. The padding-top keeps a minimum breathing
     space when the column is exactly full. */
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}.hero__scroll{
  position: absolute;
  left: 50%; bottom: var(--space-5);
  translate: -50% 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}.hero__scroll span{
  width: 40px; height: 1px;
  background: var(--line-strong);
  transform-origin: 0 50%;
}@media (max-width: 900px){.hero{ min-height: auto; padding-block: calc(76px + var(--space-6)) var(--space-7); }.hero__media img{ object-position: 60% 40%; }.hero__scrim{
    background:
      linear-gradient(180deg, rgba(7,6,6,.90) 0%, rgba(7,6,6,.82) 55%, rgba(7,6,6,.94) 100%);
  }.hero__scroll{ display: none; }
}/* PHONES: ONE VIEWPORT IS A FLOOR, NOT A CEILING.
   ---------------------------------------------------------------------------
   Measured on a 390x844 phone: the copy column is 217px, so "Better workflows."
   wraps and the block measures 645px. `.hero` is height:100svh with
   `align-items:stretch` and `.hero__copy{max-height:100%}`, so the column
   overflows and the location line ("Built in Perth ...") is pushed to
   y=873 -- 29px BELOW an 844px viewport, clipped, on a very ordinary phone.
   At 360x780 it is 115px below.

   The fix is the same one already used for short viewports: on phones the
   hero is at least one viewport but is allowed to grow when the copy needs
   it. Nothing is clipped, nothing is shrunk, and every viewport where the
   copy already fits (430 and wider -- the two sizes hero_fit_check measures)
   still renders at exactly 100svh because min-height is not exceeded. */
@media (max-width: 480px){
  .hero{
    height: auto;
    max-height: none;
    min-height: 100svh;
  }
  .hero__inner{ height: auto; }
  /* USE THE WIDTH THAT IS ALREADY THERE. The 62cqw copy column exists to
     leave room for the credentials panel, and the panel is display:none below
     800px -- so on a phone the column was leaving 38% of the screen empty and
     wrapping the headline for nothing. At 100% the type scales up to its own
     24-44px band (measured 31px at 390, 34.7px at 430), the headline holds
     three lines, and the whole block gets SHORTER, which is what stops the
     location line falling below the fold. */
  .hero__copy{
    width: 100%;
    max-width: none;
    max-height: none;
  }
}

.sec-head{ max-width: 74ch; margin-bottom: var(--space-7); }.sec-head h2{ margin-bottom: var(--space-5); }.sec-head--center{ margin-inline: auto; text-align: center; }.sec-head--center .eyebrow{ justify-content: center; }.shell--narrow{ max-width: var(--max-narrow); }.card-grid--3{ grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }.card__foot{
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  color: var(--text-dim);
}.card__foot a{ color: var(--caledapt-cyan); }.tag--inline{
  display: inline-block;
  margin-top: var(--space-4);
}.engagement{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  counter-reset: eng;
}.engagement__step{
  position: relative;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}.engagement__step::before{
  content: "";
  position: absolute;
  top: 0; left: var(--space-5); right: var(--space-5);
  height: 1px;
  background: linear-gradient(90deg, var(--caledapt-cyan), transparent);
}.engagement__k{
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun-gold);
  margin-bottom: var(--space-3);
}.engagement__step h3{ font-size: var(--t-base); margin-bottom: var(--space-3); }.engagement__step p{ font-size: var(--t-sm); color: var(--text-muted); }.evidence-note{
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-left: 2px solid var(--caledapt-cyan);
  background: var(--surface-1);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}.evidence-note p{ font-size: var(--t-md); color: var(--text-primary); max-width: 72ch; }.gateway__panel{ padding: var(--space-6); }.gateway__score{
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}.gateway__score b{
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  line-height: 1;
  color: var(--caledapt-cyan);
  font-variant-numeric: tabular-nums;
}.gateway__score span{ font-size: var(--t-sm); color: var(--text-dim); letter-spacing: .1em; }.gateway__note{ font-size: var(--t-sm); color: var(--text-muted); margin-bottom: var(--space-5); }.bars{ display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }.bar{
  display: grid;
  grid-template-columns: 116px 1fr 34px;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--t-xs);
}.bar > span{ color: var(--text-muted); }.bar > i{ display: block; height: 5px; border-radius: 99px; background: rgba(250,247,234,.08); overflow: hidden; }.bar > i > b{
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--caledapt-cyan), var(--caledapt-cyan-deep));
  width: var(--w);
}.bar > em{
  font-style: normal;
  text-align: right;
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}.gateway__notes{ display: grid; gap: var(--space-2); }.gateway__notes li{
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--t-sm);
  color: var(--text-muted);
}.gateway__notes li::before{
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: var(--space-2); height: 1px;
  background: var(--sun-gold);
}.sectors{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* align-items is the missing declaration, not the anchor.
     `normal` on a grid is NOT stretch, so each row sized itself to its own
     content: 103.5px where a description wrapped to one line, 120.8px where
     it wrapped to two. Measured ragged at 768/700/640px and uniform only at
     the widths where every card happened to wrap identically. */
  align-items: stretch;
  /* THE ACTUAL FIX. `align-items: stretch` does NOT equalise these rows: it stretches
     an item to its ROW, but grid-auto-rows: auto sizes each row to that row's own
     tallest item. Measured: grid-template-rows resolved to
     103.5px 120.8px 103.5px 103.5px -- one row per wrap count. minmax(0, 1fr)
     gives every row an EQUAL share of the grid's own height, so a row cannot be
     sized by its own content. With twelve cards the total is unchanged; only the
     distribution is. */
  grid-auto-rows: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}/* EQUAL HEIGHTS.

   The anchor used to be `display: block`, so it sized itself to its own content
   and ignored the height the grid gave its parent LI. Measured at 1440/1280/1024/
   900/768: cards alternated between 135px and 110.6px depending only on whether
   the description wrapped to one line or two. "Charities & third sector" is simply
   the last card where the ragged height showed. Flex lets the anchor fill the
   stretched grid item, and margin-top:auto pins the description to the bottom. */
.sectors li{ display: flex; }
.sectors a{
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-5) var(--space-4);
  background: var(--surface-1);
  transition: background var(--dur) var(--ease);
}
.sectors a span{ margin-top: auto; }.sectors a:hover{ background: var(--surface-3); }.sectors b{ display: block; font-size: var(--t-sm); font-weight: 700; margin-bottom: var(--space-2); color: var(--text-primary); }.sectors a:hover b{ color: var(--caledapt-cyan); }.sectors span{ font-size: var(--t-xs); color: var(--text-dim); line-height: 1.5; }.pricing{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
}.pricing__item{
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}.pricing__item--feature{ border-color: var(--line); background: var(--surface-2); }.pricing__badge{
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--caledapt-cyan);
}.pricing__price{
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--text-primary);
}.pricing__item p{ font-size: var(--t-sm); color: var(--text-muted); }.pricing__item .btn{ margin-top: var(--space-3); justify-self: start; }.cost-answer{
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}.cost-answer h3{ margin-bottom: var(--space-3); }.cost-answer > p{ color: var(--text-muted); max-width: 74ch; }.cost{ margin: var(--space-5) 0; }.cost__row{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}.cost__row dt{
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--caledapt-cyan);
}.cost__row dd{ margin: 0; font-size: var(--t-sm); color: var(--text-muted); }.cost__row dd b{ color: var(--text-primary); }.cost__honest{
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm) !important;
  color: var(--text-dim) !important;
}@media (max-width: 680px){.cost__row{ grid-template-columns: 1fr; gap: var(--space-2); }
}.faq{ display: grid; gap: var(--space-2); }.faq details{
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface-1);
  overflow: hidden;
}.faq summary{
  padding: var(--space-4) var(--space-5);
  font-size: var(--t-base);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}.faq summary::-webkit-details-marker{ display: none; }.faq summary::after{
  content: "+";
  font-size: var(--t-md);
  color: var(--caledapt-cyan);
  flex: none;
  line-height: 1;
}.faq details[open] summary::after{ content: "\2212"; }.faq summary:hover{ color: var(--caledapt-cyan); }.faq__a{ padding: 0 var(--space-5) var(--space-4); }.faq__a p{ font-size: var(--t-sm); color: var(--text-muted); max-width: 68ch; }/* The founder band was the last opaque fill on the page -- `background:
   var(--surface-1)`, effectively solid. It covered the scenic stage in the
   middle of the document, which is where the landscape was most visible. It keeps
   `overflow: hidden` for the portrait crop and gets the same hairline separator
   as the other sections. */
.founder{ overflow: hidden; border-top: 1px solid var(--line-soft); }.founder__copy{ max-width: 56ch; }.founder__note{
  margin-top: var(--space-4);
  font-size: var(--t-sm);
  color: var(--text-dim);
}.founder__figure{
  /* justify-self:end comes from the shared .split rule, where it suits text.
     On a narrow track this figure is exactly as wide as the track, and
     end-aligning a full-width box inside a track that also carries a column gap
     pushes it into NEGATIVE left. Measured at 320px: left=-20px, so the founder
     image began off the LEFT edge of the screen, not merely past the right one.
     Stretch keeps it inside its own column. */
  justify-self: stretch;
  width: min(100%, 460px);
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: none;
  /* Warm environmental light behind the portrait, matching the card. */
  position: relative;
}.founder__figure::before{
  content: "";
  position: absolute;
  /* The glow bled -6% each side. On a track that is already the full content
     width that is real overflow rather than decoration, so the bleed is capped
     instead of removed: it still reads as a glow on desktop and cannot push
     anything off-screen at 320px. */
  inset: 8% min(6%, 18px) 0 min(6%, 18px);
  background: radial-gradient(60% 60% at 50% 30%, rgba(222, 185, 141, .22), transparent 70%);
  z-index: 0;
}.founder__figure img{ position: relative; z-index: 1; width: 100%; }

/* ─────────────────────────────────────────────────────────────────────────
   FOUNDER STORY PAGE  (/about/)
   ─────────────────────────────────────────────────────────────────────────
   Scoped to `.founder-story` so none of it can reach the HOMEPAGE founder
   section, which keeps its own layout, photo and glow. site.css loads last
   in the cascade (after v12/v13/v14 + theme-bridge), so every corrective
   rule here wins at equal specificity by source order, not by !important.

   Long-form editorial measure is inherited (--measure: 68ch) rather than
   re-declared, so this page cannot drift from the rest of the site's type. */

.founder-story{ }

/* Hero: photograph left, identity right, collapsing to one column. The photo
   keeps its NATURAL aspect ratio (1122x1386) -- no object-fit cover, no
   cropping -- so nothing about the portrait is cut away. */
.founder-hero{
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: var(--phi-6);
  align-items: center;
  padding-bottom: var(--phi-5);
}
.founder-hero__figure{
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
  min-width: 0;
  max-width: 100%;
}
.founder-hero__figure::before{
  content: "";
  position: absolute;
  inset: 6% 4% 0 4%;
  background: radial-gradient(58% 58% at 50% 32%, rgba(222, 185, 141, .22), transparent 70%);
  z-index: 0;
}
.founder-hero__figure img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;                 /* preserve the real aspect ratio */
  border-radius: 2px;
}
.founder-hero__copy{ min-width: 0; }
.founder-hero__name{
  font-size: var(--t-xl);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: var(--phi-3) 0 var(--phi-2);
  font-weight: 650;
}
.founder-hero__role{
  font-size: var(--t-base);
  color: var(--sun-gold);
  margin: 0 0 var(--phi-4);
}
.founder-hero__intro{ max-width: 52ch; }

/* The six narrative sections. A hairline separator, matching the founder
   band's own border-top, gives the editorial rhythm without heavy chrome. */
.founder-story__section{
  max-width: var(--measure);
  padding-top: var(--phi-5);
}
.founder-story__section + .founder-story__section{
  border-top: 1px solid var(--line-soft);
  margin-top: var(--phi-5);
}
.founder-story__section h2{
  font-size: var(--t-lg);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 var(--phi-3);
  font-weight: 620;
}
.founder-story__section p{
  color: var(--text-muted);
  max-width: 68ch;
}
.founder-story__section p + p{ margin-top: var(--phi-2); }

/* Sign-off: name, role and the three-line principle. */
.founder-signoff{
  max-width: var(--measure);
  padding-top: var(--phi-5);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--phi-5);
}
.founder-signoff__name{
  font-size: var(--t-md);
  font-weight: 650;
  margin: 0 0 var(--phi-1);
}
.founder-signoff__role{
  font-size: var(--t-sm);
  color: var(--text-dim);
  margin: 0;
}
.founder-signoff__principle{
  margin-top: var(--phi-4);
  font-size: var(--t-md);
  line-height: 1.45;
  color: var(--text-on-ink);
  max-width: 46ch;
}

/* Closing CTA */
.founder-cta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--phi-4);
  padding: var(--phi-5) 0 var(--phi-6);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--phi-5);
}
.founder-cta h2{
  font-size: var(--t-lg);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 620;
}
.founder-cta p{
  color: var(--text-muted);
  margin: var(--phi-2) 0 0;
  max-width: 48ch;
}

/* One column on narrow screens; the portrait shrinks with the track instead
   of being cropped, and the hero stops centring a half-empty box. */
@media (max-width: 850px){
  .founder-hero{ grid-template-columns: minmax(0, 1fr); gap: var(--phi-4); }
  .founder-hero__figure{ width: min(100%, 340px); }
}

.contact__details{ display: grid; gap: var(--space-3); margin-top: var(--space-6); }.contact__details li{ font-size: var(--t-sm); color: var(--text-muted); }.contact__details b{
  display: inline-block;
  min-width: 90px;
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}.contact__details a{ color: var(--caledapt-cyan); }.preview-note{
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(222, 185, 141, .3);
  border-radius: var(--r-sm);
  background: rgba(222, 185, 141, .07);
  font-size: var(--t-sm);
  color: var(--sun-gold);
}.form__status{
  margin-top: var(--space-4);
  font-size: var(--t-sm);
  min-height: 1.4em;
}.form__status[data-state="ok"]{ color: var(--caledapt-cyan); }.form__status[data-state="error"]{ color: #FF9B8A; }.form__privacy{ margin-top: var(--space-3); font-size: var(--t-xs); color: var(--text-dim); }.form__privacy a{ color: var(--caledapt-cyan); }.footer{
  background: var(--surface-0);
  border-top: 1px solid var(--line-soft);
  /* The Ask Caledapt launcher is position:fixed at the bottom right, so at the
     end of the page it sits exactly over the footer's base row — measured
     launcher x 1362-1418 / y 822-878 against the LinkedIn link at x 1362-1408,
     which was therefore unreachable. Reserve the launcher's band so the last row
     clears it. Applies on every route, because the launcher does. */
  padding-block: var(--space-7) calc(var(--space-5) + 78px);
}.footer__grid{
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}.footer__blurb{
  margin-top: var(--space-4);
  font-size: var(--t-sm);
  color: var(--text-dim);
  max-width: 36ch;
}.footer__contact{ margin-top: var(--space-4); font-size: var(--t-sm); }.footer__contact a{ color: var(--caledapt-cyan); }.footer__col h3{
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}.footer__col ul{ display: grid; gap: var(--space-2); }.footer__col a{ font-size: var(--t-sm); color: var(--text-muted); }.footer__col a:hover{ color: var(--caledapt-cyan); }.footer__base{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-xs);
  color: var(--text-dim);
}.footer__base a{ color: var(--text-muted); }.footer__base a:hover{ color: var(--caledapt-cyan); }@media (max-width: 900px){.footer__grid{ grid-template-columns: repeat(2, 1fr); }
}@media (max-width: 560px){.footer__grid{ grid-template-columns: 1fr; }.footer__base{ flex-direction: column; }
}
/* Shown only when Turnstile cannot load (it is bound to caledapt.com). Server-
   rendered so it is present with JavaScript disabled, and removed by motion.js
   once the widget proves it is live. */
.form__fallback {
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-muted);
  background: rgba(222, 185, 141, 0.06);
  border: 1px solid rgba(222, 185, 141, 0.22);
  border-radius: var(--r-md);
}
.form__fallback a { color: var(--caledapt-cyan); }

/* =============================================================================
   Agent Gateway ladder
   -----------------------------------------------------------------------------
   Four subscription tiers. The grid is `fr` tracks, never percentages: a
   percentage track resolves against the CONTAINER, so `25% 25% 25% 25%` plus
   three gaps makes the row 3 * gap too wide and overflows. Fractional tracks
   absorb the gaps automatically. This is the same bug that put 23px of overflow
   on the page at 1024px.

   The featured tier (Leads) is marked in the markup and lifted with a border, not
   a scale transform, so it never overlaps its neighbours.
   ========================================================================== */

.ladder {
  display: grid;
  /* Four equal tracks at desktop. minmax(0,...) so a long word cannot force a
     track wider than its share. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
  /* Equal rows. align-items:stretch stretches a card to its ROW, but with
     grid-auto-rows:auto each ROW is sized to its own tallest card -- measured the
     Agent Commerce card 52px shorter than Agent Leads because its copy wrapped to
     fewer lines, which pushed the CTA and fine print out of line with the other
     three. minmax(0,1fr) gives every row the same share. */
  grid-auto-rows: minmax(0, 1fr);
}

.ladder__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: rgba(10, 12, 14, 0.58);
}

.ladder__item--featured {
  border-color: rgba(25, 232, 222, 0.42);
  background: rgba(12, 20, 22, 0.66);
}

.ladder__badge {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--text-2xs, .68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ladder__item--featured .ladder__badge { color: var(--caledapt-cyan); }

.ladder__name {
  margin: 0;
  font-size: var(--t-lg, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ladder__price {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  /* A price is NOT a heading. It was inheriting --t-2xl, the h1 scale
     (clamp(42px, 8.5vw, 104px)), which rendered GBP149 at 104px: 179px of
     digits in a 184px box, so "per month" was forced onto a second line.
     The previous flex-wrap:wrap only converted that overflow into a wrap.
     A dedicated price scale keeps the amount and its qualifier on ONE line
     and still fits the narrowest ladder column. */
  gap: 0 var(--space-2);
  min-width: 0;
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.ladder__per { flex: 0 0 auto; }
.ladder__per {
  /* Own line whenever the price and this cannot share one. It is allowed to wrap, but
     never to overflow, and it is never pushed below the baseline of its own row. */
  min-width: 0;
  font-size: var(--t-xs, .78rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.ladder__body {
  margin: 0;
  font-size: var(--t-sm, .88rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.ladder__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  font-size: var(--t-xs, .8rem);
  color: var(--text-muted);
}
.ladder__features li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  line-height: 1.45;
}
/* A tick, drawn rather than shipped as a glyph, so it inherits the colour. */
.ladder__features li::before {
  content: "";
  width: 6px;
  height: 10px;
  margin-top: 3px;
  justify-self: center;
  border-right: 1.5px solid var(--caledapt-cyan);
  border-bottom: 1.5px solid var(--caledapt-cyan);
  transform: rotate(42deg);
}

.ladder__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.ladder__cta[disabled] { opacity: 0.55; cursor: progress; }

.ladder__fine {
  margin: 0;
  font-size: var(--text-2xs, .68rem);
  color: var(--text-dim);
  text-align: center;
}

.ladder__note {
  margin: var(--space-5) 0 0;
  font-size: var(--t-sm, .88rem);
  color: var(--text-muted);
  text-align: center;
}
.ladder__note a { color: var(--caledapt-cyan); }

/*
 * The subscription notice.
 *
 * It used to carry a `ladder__dmcca` class, and it lived only on
 * pricing/index.html, hand-added INSIDE the generated ladder block. The
 * sync replaces that block wholesale from the homepage section, so the
 * notice was deleted on every sync and the deploy that removed it shipped.
 * Measured 22 Oct 2026: the paragraph was in git HEAD and was NOT on the
 * live pricing page after the deploy.
 *
 * Fixed: the class is now `ladder__fine-print`, the old minified
 * .ladder__dmcca rules are removed, and the paragraph lives in the homepage
 * section the sync reads FROM, so it is copied to every page that carries
 * the ladder and cannot drift from the prices it describes.
 */
.ladder__fine-print {
  margin: var(--space-3) auto 0;
  max-width: 62ch;
  font-size: var(--t-xs, .8rem);
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  text-wrap: pretty;
}
.ladder__fine-print a { color: var(--caledapt-cyan); }

.ladder__status {
  margin: 0 0 var(--space-4);
  text-align: center;
  font-size: var(--t-sm, .88rem);
  color: var(--caledapt-cyan);
}
.ladder__status[hidden] { display: none; }
.ladder__status.form__status--error { color: #ff8f7a; }

@media (max-width: 1100px) {
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ladder { grid-template-columns: minmax(0, 1fr); }
}

/* =============================================================================
   Terminology section
   -----------------------------------------------------------------------------
   A definition list, deliberately: these are four TERMS and what they mean, and a
   row of cards would imply four comparable products. Rows keep the reading order
   AI -> SI -> superintelligence -> agentic, which is the order people arrive in.
   ========================================================================== */

.terms {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.terms__row {
  display: grid;
  /* The term column is `fr`, not a percentage: a fixed track plus a percentage
     track plus a gap overflows the container. */
  grid-template-columns: 15fr 85fr;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.terms__row dt {
  margin: 0;
  font-size: var(--t-md, 1.05rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--caledapt-cyan);
  letter-spacing: -0.005em;
}
.terms__row dt abbr {
  text-decoration: none;
  border: 0;
  /* an abbr with no tooltip is worse than none */
  cursor: help;
}

.terms__row dd {
  margin: 0;
  font-size: var(--t-sm, .92rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
}
.terms__row dd strong { color: var(--text-primary); font-weight: 650; }

.terms__foot {
  margin: var(--space-5) 0 0;
  font-size: var(--t-sm, .92rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 68ch;
}
.terms__foot strong { color: var(--text-primary); }

@media (max-width: 760px) {
  .terms__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }
  .terms__row dd { max-width: none; }
}

/* ---------------------------------------------------------------------------
   Mobile collapse for two-column layouts with a hard pixel minimum in the
   second track. THIS FILE IS DELIBERATELY LAST in every page's stylesheet
   order (design-system, v12, v13, v14, theme-bridge, scenic, site), and these
   selectors are defined in the EARLIER v14 sheet at equal specificity, so a
   rule in design-system.css would lose the cascade and change nothing. Measured:
   the rule was added to design-system.css first and the overflow persisted
   unchanged at left=20 right=348 inside a 320px viewport.
--------------------------------------------------------------------------- */
@media (max-width: 850px) {
  .rp-hero-grid,
  .rp-platform-feature,
  .rp-perth,
  .rp-page-hero,
  .hero,
  .section-head,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================================
   Dark content container for page bodies
---------------------------------------------------------------------------
   main.page-shell had NO on-screen rule anywhere: the only .page-shell
   declarations in the project were a width in v11/v12 plus a light-mode
   #fff!important override inside @media print, which correctly does not apply
   to screen. Measured on production, main computed background was
   rgba(0,0,0,0) on every page, so body copy sat directly on the body colour and
   the moving scene - there was no container at all.

   26 of 62 pages carry class="page-shell" on <main>, which is the shared
   marker for a page body. Giving it an opaque dark surface here contains the
   content without touching the scene behind it.

   Tokens only - --surface-0/1, --line-soft, --shadow and the spacing scale all
   come from design-system.css / theme-bridge.css, so this follows the existing
   visual system rather than inventing one. site.css is loaded last, so this
   rule wins at equal specificity over the legacy stack.

   The container is inset from the viewport edges so the moving background
   stays visible around it on wide screens; it is full-bleed on small screens
   where there is no room for a frame.
========================================================================== */
/* The frame applies to every inner page body, not only the ones carrying
   page-shell. 36 pages ship <main id="main"> with no class at all and
   36 more use <main id="main"> wrapping a .wrap - all were equally
   transparent. Selecting on #main covers all three variants
   (bare, .wrap and .page-shell) with one rule and no page edits.
   The home page ALSO uses <main id="main">, so id alone over-matches.
   Its main carries .home-main and is excluded here: the full-bleed
   scrollytelling story must keep running edge to edge. */
main#main:not(.home-main){
  position: relative;
  z-index: 1;
  background: var(--surface-1, #0B0F12);
  border: 1px solid var(--line-soft, rgba(255,255,255,.08));
  border-radius: var(--r-lg, 18px);
  box-shadow: var(--shadow, 0 18px 48px rgba(0,0,0,.45));
  padding-block: var(--space-7, 40px);
  padding-inline: var(--space-6, 24px);
  /* .page-shell sets a width in v12; the frame overrides it below.
     THE FRAME IS A WIDE BAND, NOT THE FULL SCREEN. It was min(100% - 64px,
     1180px) and is now min(100% - 2*--shell, --max): edge-to-edge on a laptop,
     capped on a large desktop so the body does not stretch to 1893px. It keeps
     its border/radius/shadow and its inset on phones. */
  width: min(calc(100% - var(--shell) * 2), var(--max));
  margin-inline: auto;
  overflow-x: clip;
}
/* Sections inside the frame keep their own rhythm; the frame supplies the
   outer padding, so the first and last section must not double it up. */
main#main:not(.home-main) > .breadcrumbs:first-child{ margin-top: 0; }


/* About's software strip: stop it while someone is reading or tabbing, stop it
   outright when motion is reduced, and give it a visible Pause/Play (WCAG 2.2.2). */
.carousel-loop:hover .carousel-track.animating,
.carousel-loop:focus-within .carousel-track.animating { animation-play-state: paused; }
.carousel-track.animating.paused { animation-play-state: paused; }
.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carousel-toggle {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(250, 247, 234, .18);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.carousel-toggle:hover, .carousel-toggle:focus-visible { color: var(--text); border-color: rgba(250, 247, 234, .38); }
@media (prefers-reduced-motion: reduce) {
  .carousel-track.animating { animation: none; }
}

/* Narrow viewports were losing 70px a side to nested containers: <main
   class="page-shell"> carried a 20px margin-inline AND 29px padding, and the
   .wrap inside it then applied `calc(100% - 40px)` of its own. At 337px that left
   a 197px content column. One inset, not three. */


/* A breadcrumb and the kicker below it were landing on the same baseline
   (both at y=178 on /products/ and /agents/): zero gap between them. */
.content-page .breadcrumbs { margin-bottom: 14px; }

/* /products/ headline: 104px over three lines at 1440 filled the whole first
   screen and pushed the products below the fold. Same hierarchy as the rest of
   the site, one step under the homepage's 71px. */
.products-page h1 {
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 10px 0 18px;
  max-width: 20ch;
}
@media (max-width: 700px) {
  .products-page h1 { font-size: clamp(30px, 8.6vw, 42px); }
}

/* ============================================================================
   /products/ : the four products, two up, with a cover rather than a poster
   /industries/: the hero sizes to its copy
---------------------------------------------------------------------------
   Both pages were shipping a legibility/layout fault rather than a taste one.

   .product-card is display:block in caledapt-v12.css and .product-cover is
   width:100% with aspect-ratio:1/1, so each square marketing poster rendered at
   the full 1,195px column width: four cards stacked as four full-screen images,
   the section measured 6,634px tall, and the actual product text sat under a
   poster you had to scroll past. Two up with a 180px cover puts the name, price,
   description and buttons back on the same screen as the artwork.

   .hero is min-height:100svh in app.css and is a two-column grid. On a page whose
   hero has copy but no visual, the second track is empty and the copy sits at the
   top of a 900px box, leaving ~600px of dead space before the first section.
============================================================================ */
.ladder-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.ladder-products > .kicker,
.ladder-products > h2,
.ladder-products > .ladder-quick,
.ladder-products > .ladder-quick__legend {
  grid-column: 1 / -1;
}
.ladder-products > h2 { margin-bottom: 6px; }

.ladder-products .product-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  overflow: visible;
}
.ladder-products .product-cover {
  width: 180px;
  height: 180px;
  aspect-ratio: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0e15;
}
.ladder-products .product-body { padding: 0; }
.ladder-products .product-body h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -.015em;
}
.ladder-products .product-body > p {
  font-size: 12px;
  line-height: 1.6;
  color: #93a29d;
  margin: 0 0 10px;
}
.ladder-products .product-details { margin-bottom: 10px; }
.ladder-products .product-ctas { gap: 8px; flex-wrap: wrap; }
.ladder-products .product-ctas a {
  padding: 9px 13px;
  font-size: 11px;
  border-radius: 10px;
}
.ladder-products .product-next,
.ladder-products .etsy-note {
  font-size: 10.5px;
  line-height: 1.55;
  color: #7d8b86;
}

@media (max-width: 1180px) {
  .ladder-products { grid-template-columns: minmax(0, 1fr); }
  .ladder-products .product-card { grid-template-columns: 160px minmax(0, 1fr); }
  .ladder-products .product-cover { width: 160px; height: 160px; }
}
@media (max-width: 560px) {
  /* A 108px thumb left the text column ~110px wide, which stacked the copy into a
     1,000px-tall card. Below 560 the cover goes full width above the body. */
  .ladder-products .product-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }
  .ladder-products .product-cover {
    width: 100%;
    height: 168px;
    border-radius: 10px;
    object-position: 50% 30%;
  }
  .ladder-products .product-body h3 { font-size: 15px; }
  .ladder-products .product-body > p { font-size: 11.5px; }
}

/* /industries/ : the copy is the hero, so the box ends where the copy ends. */
/* `.hero` carries a fixed `height: 100svh` (not just a min-height), and the page
   body is `.content-page`, so `.content-page .hero { padding: 0 }` outranks a
   plain `.industries-hero`. Both selectors below are therefore two classes deep
   and live in site.css, which is the last stylesheet on the page. */
.hero.industries-hero {
  height: auto;
  min-height: 0;
  display: block;
  padding: 132px 0 54px;
}
.hero.industries-hero .lead { max-width: 760px; }
@media (max-width: 900px) {
  .hero.industries-hero { padding: 104px 0 40px; }
}

/* ============================================================================
   /agents/ : the four gateway tiers, in the same card language as /products/
---------------------------------------------------------------------------
   The tier cards reuse .ladder-quick from the products ladder, so both pages
   share one border, radius, padding and rail system rather than inventing a
   second card style three clicks apart. Only the parts that are specific to a
   subscription -- the per-month qualifier and the inclusion list -- are new.
============================================================================ */
.ladder-quick__price span {
  margin-left: 4px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-dim);
}
.agents-tier__list {
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.agents-tier__list li {
  position: relative;
  padding-left: 14px;
}
.agents-tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(25, 232, 222, .5);
}
.agents-note {
  margin: 20px 0 0;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--text-dim);
}
.agents-note a { color: var(--text-muted); }
.agents-note a:hover { color: var(--caledapt-cyan); }
/* A four-up tier row cannot fit a phone; the ladder does the same thing. */
@media (max-width: 900px) {
  .ladder-quick--agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ladder-quick--agents { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================================
   /about/ : the founder story runs ON the scene, not inside a panel
---------------------------------------------------------------------------
   Every inner page body carries the dark frame above. That is right for a
   dense interface, and wrong for a single narrative page: on /about/ the
   panel inset the story from the scenery, so the moving Highland backdrop was
   visible only as two thin slivers at the edges of the screen. Bryan asked
   for that background to be transparent.

   The frame is removed here and nothing else -- no opaque surface, no border,
   no radius, no shadow, full width. The scene runs edge to edge behind the
   page and legibility is carried by the page's own veil plus the body copy's
   own colour (--text-muted is #D6D8D6, not a mid grey).

   ALIGNMENT. The story is a single 68ch column, and it was hugging the LEFT
   edge of a 1,281px band with a 730px void beside it, while the hero spanned
   the full band -- two unrelated axes on one page. The column is now centred,
   the hero is capped so portrait and headline read as one composition, and
   the hairline between sections stays on the full-width section so it ties
   the narrow column back to the page instead of floating mid-screen.
   The legacy card grids further down keep the full container width, because
   a four-up grid of articles genuinely needs it.
   ============================================================================ */
main#main.about-main{
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
  padding-block: clamp(18px, 3vh, 42px) clamp(56px, 8vh, 104px);
  overflow-x: clip;
}
/* Breadcrumb sits on the same axis as everything below it. */
main#main.about-main > .breadcrumbs{
  width: min(100%, 1200px);
  margin-inline: auto;
}
/* Hero: one centred composition rather than two objects at opposite ends.
   Capped at the SAME 1,200px container as the breadcrumb and the sections below,
   so the page has one outer axis and one reading axis -- not three. At 1,060px
   the portrait floated 70px inside the breadcrumb's left edge and read as a
   separate band. */
main#main.about-main .founder-hero{
  width: min(100%, 1200px);
  margin-inline: auto;
}
/* The narrative column. Text stays left-aligned INSIDE the column -- centred
   lines are hard to read -- but the column itself is centred, so the page has
   a single vertical axis. The section keeps full width so its hairline does
   too. */
main#main.about-main .founder-story__section{
  max-width: none;
  width: min(100%, 1200px);
  margin-inline: auto;
}
/* ONE column for the heading and the prose. `68ch` is resolved per element,
   so on a 27px h2 it computed to 1,256px while the 15px paragraphs got 551px --
   the headings ran the full container and the text sat in a narrow column
   underneath them, which is exactly the misalignment this pass is fixing. A
   single px measure makes every child share one left edge. */
main#main.about-main .founder-story__section > *{
  max-width: min(100%, 620px);
  margin-inline: auto;
}
/* No paragraph override here on purpose: the `> *` column already out-specifies
   the legacy `.founder-story__section p { max-width: 68ch }`. An earlier
   `max-width: none` here handed the paragraphs the full 1,200px while the
   headings stayed in the 620px column -- the same misalignment, mirrored. */
/* Legacy company sections: capped and centred on the same axis. */
main#main.about-main > .page-hero,
main#main.about-main > .page-section{
  width: min(100%, 1200px);
  margin-inline: auto;
}
/* The sign-off and the closing CTA are <div>s, not <section>s, so the container
   rule above never reached them: the sign-off sat at the page edge in a 551px
   strip, and the CTA ran 1,344px wide -- 144px WIDER than every section above
   it. Both are pulled onto the same 1,200px axis, and the sign-off's own text
   onto the 620px reading column so it lines up with the story it closes. */
main#main.about-main .founder-signoff,
main#main.about-main .founder-cta{
  width: min(100%, 1200px);
  max-width: none;
  margin-inline: auto;
}
main#main.about-main .founder-signoff > *{
  max-width: min(100%, 620px);
  margin-inline: auto;
}

/* LEGIBILITY FALLOUT. These legacy blocks were designed to sit on the opaque
   frame: their body text is 9-10px at #7f8f89 and their own surfaces are
   1-4% white, which reads as no surface at all. On the frame that was marginal;
   over the scenery it is not readable. Measured against the painted pixels
   underneath: .faq-grid details p 2.89:1 and .builder-band p 4.07:1, both under
   the 4.5:1 floor, and 9px is below any sensible minimum regardless.

   Each block gets its own card surface (the page stays transparent -- these are
   content cards, not a page panel), the small type comes up to 12px, and the
   copy moves to a colour that survives a bright landscape. */
main#main.about-main .faq-grid details{
  background: rgba(9, 12, 12, .62);
}
main#main.about-main .faq-grid summary{ font-size: 13px; }
main#main.about-main .faq-grid p{
  font-size: 12px;
  line-height: 1.65;
  color: #b9c6c2;
}
main#main.about-main .builder-band{
  background: rgba(9, 12, 12, .62);
}
main#main.about-main .builder-band p{
  font-size: 12px;
  line-height: 1.6;
  color: #b9c6c2;
}
main#main.about-main .soft-card{
  background: rgba(9, 12, 12, .72);
}
main#main.about-main .cta{
  background: rgba(9, 12, 12, .66);
}
main#main.about-main .carousel-hint{
  font-size: 11px;
  color: #b9c6c2;
}
/* The carousel's edge fades are painted in a hardcoded page colour (#05070b).
   On a transparent page they are two dark smudges floating over the
   landscape, so they are suppressed here; the cards carry their own surface. */
main#main.about-main .carousel-loop:before,
main#main.about-main .carousel-loop:after{
  display: none;
}

/* The header's "Ask the Academy" pill collapses to font-size:0 below 850px in
   the legacy stack, which leaves a 29px cyan blob with no label in the corner of
   every phone header -- a control that looks broken and cannot be understood.
   The Academy is in the mobile menu and the footer, so the pill is dropped
   rather than left unlabelled. */
@media (max-width: 850px){
  .site-header .guide-launch{ display: none; }
}

/* On phones the gutter is the only alignment that exists, so drop the caps. */
@media (max-width: 720px){
  main#main.about-main > .breadcrumbs,
  main#main.about-main .founder-hero,
  main#main.about-main .founder-story__section,
  main#main.about-main > .page-hero,
  main#main.about-main > .page-section{ width: 100%; }
}

@media (max-width: 720px){
  main#main:not(.home-main){
    /* The frame keeps its inset and its radius on phones: the border is the
       point of the design, and 12px of scene either side costs nothing. */
    padding-inline: var(--space-5, 20px);
  }
}

/* ============================================================================
   MOBILE NAV CTA legibility
   ----------------------------------------------------------------------------
   .mobile-nav a is specificity (0,1,1). .btn--primary is (0,1,0). So the link
   rule WON and every anchor inside the mobile menu inherited
   --text-muted - including the primary CTA, which paints near-white
   (rgb(214,216,214)) on the cyan button background rgb(25,232,222).
   Measured contrast 1.28:1, far below the 4.5:1 WCAG AA floor for body text.

   This is why the CTA needed black rather than merely a different colour: the
   only way to win is to out-specify the (0,1,1) link rule from a selector at
   the same or higher specificity. --text-on-cyan (#05191B) is the token the
   design system already defines for exactly this pairing, so the fix restores
   the intended colour instead of inventing one.
   ============================================================================ */
.mobile-nav a.btn--primary,
.mobile-nav .btn--primary{
  color: var(--text-on-cyan) !important;
  background: var(--caledapt-cyan) !important;
  border-color: var(--caledapt-cyan) !important;
  font-weight: 700;
}
.mobile-nav a.btn--primary:hover,
.mobile-nav .btn--primary:hover{
  color: var(--text-on-cyan) !important;
  background: var(--caledapt-cyan-bright) !important;
  border-color: var(--caledapt-cyan-bright) !important;
}
/* Secondary group reads as tertiary next to the primary CTA. */
.mobile-nav__secondary{
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-soft);
}

/* ============================================================================
   NARROW-VIEWPORT OVERFLOW CONTAINMENT
   ----------------------------------------------------------------------------
   Four routes escaped the viewport on small screens. Every root cause was
   confirmed by injecting the candidate CSS live and re-measuring the same
   elements with agent-gateway/overflow_probe.mjs, not by reading the cascade.

   THE ROOT CAUSE IN ALL FOUR: a grid or flex item resolves its automatic
   minimum size from its CONTENT (the CSS "min-width:auto" default). When the
   track is wider than the container -- or when the intrinsic content is wider
   than the track -- the item refuses to shrink below its content and pushes
   past the viewport edge. Because html,body carry overflow-x:clip, nothing
   scrolls: the content is silently CUT OFF and unreachable.

   Each fix below is the minimum that the measurement showed was sufficient.
   ============================================================================ */

/* /contact/ -- form + aside overflowed 59px at 320/360/375px.
   .contact-grid is grid-template-columns:1.5fr 1fr, collapsing to 1fr at
   900px, but the ITEMS keep min-width:auto, so a long <select> option or
   input placeholder still forces the track wider than .wrap. */
.contact-grid > *,
.contact-grid-fields > *,
.contact-field,
.contact-field input,
.contact-field select,
.contact-field textarea{
  min-width: 0;
}

/* /impact/submit/ -- .submit-section escaped 9px at 320px. .submit-form is a
   grid whose item is .submit-section (min-width:auto, padding 26px). The
   inner .submit-grid and the Turnstile wrapper sit one level deeper and need
   the same reset, otherwise they re-introduce the overflow. */
.submit-form > *,
.submit-form > * > *,
.submit-section,
.submit-section > *,
.submit-grid > *,
.submit-field,
.submit-field input,
.submit-field select,
.submit-field textarea,
.cf-turnstile{
  min-width: 0;
  max-width: 100%;
}

/* /business/ -- .lead-grid escaped 2px at 360px and 375px. Same cause: the
   two-column lead form plus the Turnstile widget, both min-width:auto. */
.lead-form > *,
.lead-grid > *,
.lead-field,
.lead-field input,
.lead-field textarea,
.lead-card .cf-turnstile,
.lead-card div{
  min-width: 0;
  max-width: 100%;
}

/* /lab/ -- two separate causes.
   (a) .lab-tabs is a single-row flex scroller with white-space:nowrap
       buttons. At 320px four buttons totalling 387px overflowed. It is a
       deliberate scroller (overflow:auto), but a wrapped row is better at
       this width than a scroll the visitor may not discover, so wrap below
       560px and only then keep it scrollable.
   (b) .query-box is flex with input{flex:1} beside a 48px fixed button. The
       input's intrinsic minimum width keeps the row 8px wider than the
       container. */
.lab-tabs button{
  min-width: 0;
}
.query-box input,
.query-box button{
  min-width: 0;
}

@media (max-width: 560px){
  .lab-tabs{
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* =========================================================== HERO CREDENTIALS ==
   Trust & accountability panel. PLACEMENT LAW (measured, not guessed):

   The hero is a 100svh LOCKED section whose copy column already fills the
   viewport on phones (measured 390x844: copy 798px on a 734px content box).
   Any panel below the CTAs on those viewports either grows the hero or clips,
   and both outcomes are forbidden. The panel therefore only ever occupies
   space that ALREADY exists: the right-hand void beside the copy column,
   which the flex row can hold once the hero container is at least 800px wide
   (0.62cqw copy + 0.32cqw panel + gap must stay under 100cqw).

   Below that threshold the panel is display:none, so no hero is resized and
   no badge is clipped. The container query keys the decision to the width of
   the space the panel actually lives in (hero__inner is a container), not to
   the viewport. Browsers without container-query support keep the panel
   hidden, which is the safe degradation. */

.hero__creds{
  display: none;
}

@container hero (min-width: 800px){
  .hero__creds{
    display: block;
    margin-left: auto;
    /* Width = the exact void beside the copy column, derived from the copy's
       OWN sizing formula (min(700px, 62cqw)) minus a 36px breathing gap, capped
       at 390. A flat cqw term shrinks on ultra-wide where the shell padding
       caps the container (measured 33cqw = 329px at 1920); this tracks the real
       free space instead: ~370px at 1280-1440, ~343px at 1920 (the most the
       void offers without touching the copy column), ~313px at 1024. */
    width: min(390px, calc(100cqw - min(700px, 62cqw) - 36px));
    flex-shrink: 0;
    padding: clamp(28px, 2.7cqw, 36px) clamp(26px, 2.5cqw, 34px);
    /* Turquoise-tinted hairline: the brand line token, one step quieter than
       the interactive --line-strong. The inset highlight is a 1px top edge
       that catches the panel edge without becoming a glow. */
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgba(250, 247, 234, .05);
    /* Opaque-enough fallback for the computed-style contrast path; equals
       --surface-0 (#070606) at the gradient base alpha. The painted surface
       is the token-driven gradient below - translucent enough that the
       landscape reads through, dark enough for AA text. */
    background-color: rgba(7, 6, 6, .86);
    background-image: linear-gradient(180deg,
      color-mix(in srgb, var(--surface-1) 80%, transparent),
      color-mix(in srgb, var(--surface-0) 86%, transparent));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Entrance: one short fade-rise on the panel, then a staggered fade on the
   four items. The settled state is the default; animations only run when the
   .js class is present, mirroring motion.css, and both are disabled under
   prefers-reduced-motion. */
.js .hero__creds{
  animation: creds-rise .42s var(--ease, ease) .25s both;
}
@keyframes creds-rise{
  from{ opacity: 0; transform: translate3d(0, 14px, 0); }
  to  { opacity: 1; transform: translate3d(0, 0, 0); }
}

.creds__label{
  margin: 0 0 var(--space-2);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caledapt-cyan);
}

.creds__heading{
  margin: 0 0 var(--space-4);
  font-size: clamp(17px, 1.7cqw, 21px);
  line-height: 1.16;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 650;
}
/* Accent rule: one short turquoise stroke that grounds the heading. Fades out
   to the right so it reads as a finishing line, not a divider bar. */
.creds__heading::after{
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 12px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--caledapt-cyan), rgba(25, 232, 222, 0));
}

.creds__grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.cred{
  position: relative;
  min-width: 0;
}

.cred__link{
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-md);
  padding: 2px;
  margin: -2px;
  transition: background-color .2s var(--ease, ease);
}

.cred__link:hover,
.cred__link:focus-visible{
  background: rgba(25, 232, 222, .07);
  outline: 1px solid var(--line);
}

.cred__mark{
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--caledapt-cyan);
  background: rgba(25, 232, 222, .06);
}

.cred__mark svg{
  width: 26px;
  height: 26px;
}

.cred__title{
  display: block;
  font-size: clamp(13px, 1.1cqw, 14px);
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cred__sub{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.js .cred{
  animation: cred-in .34s var(--ease, ease) both;
  animation-delay: calc(.33s + var(--i, 0) * 60ms);
}
@keyframes cred-in{
  from{ opacity: 0; transform: translate3d(0, 8px, 0); }
  to  { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce){
  .js .hero__creds,
  .js .cred{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cred__link{
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------------
   Two classes were used in markup but defined by NO rule anywhere, so they
   rendered as plain unmarked text: `.req` (the required-field asterisk) and
   `.btn__label` (the span inside every button). Found by the class-coverage
   check in agent-gateway/booking_page_probe.mjs once that check was repaired.

   Deliberately colour-free: `.btn` already supplies the palette and adding a
   new hex here would fight the theme.
   --------------------------------------------------------------------------- */
.btn__label{
  display: inline-flex;
  align-items: center;
  gap: .4em;
}

.req{
  font-weight: 700;
  margin-left: .12em;
  line-height: 1;
}

/* ============================================================================
   NARROW GUTTERS (end of file on purpose)
---------------------------------------------------------------------------
   The frame is `main#main:not(.home-main)`, which insets by
   calc(100% - var(--shell) * 2) AND pads by a space token, and a later
   @media (max-width: 720px) rule re-pads it again. At 337px that stacked to
   ~70px a side and left a 197px column. Overriding the SAME selector at the END
   of the last stylesheet is what actually wins; a class-based rule anywhere
   earlier loses to the ID.
============================================================================ */
@media (max-width: 560px) {
  main#main:not(.home-main) {
    width: 100%;
    margin-inline: 0;
    padding-inline: 16px;
  }
  main#main:not(.home-main) .wrap {
    width: 100%;
    margin-inline: 0;
  }
}

/* ABOUT ON A PHONE: the portrait was coming first, so Bryan's name and what he
   does to help sat ~613px down a 337px-wide screen. The copy leads; the portrait
   follows it at a size that fits the column. */
@media (max-width: 700px) {
  .founder-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-5, 20px);
  }
  .founder-hero__copy { order: 1; }
  .founder-hero__figure { order: 2; max-width: 320px; }
  .founder-hero__figure img { width: 100%; height: auto; }
}
