/* ==========================================================================
   Basenine Labs — v7: "The agentic website model", restored from the live page.
   Same design as labs.basenine.co: pill eyebrow, 40px centred type, inline
   Webflow / GitHub / Claude marks, and a highlight that sweeps each block in
   reading order as you scroll (see model.js). Loads after the v2–v5 sheets.
   ========================================================================== */

.model-inner {
  display: grid;
  justify-items: center;
  gap: 44px;
  width: min(600px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  text-align: center;
}
.model-head { display: grid; justify-items: center; gap: 28px; width: 100%; }

.model-pill {
  margin: 0;
  padding: 5px 20px;
  border-radius: 65px;
  background: #e6e6d6;
  color: rgba(30, 30, 30, 0.6);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.model h2,
.model-p {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}
.model h2 { max-width: 510px; font-size: 40px; line-height: 1.2; letter-spacing: -0.04em; }
.model-p { max-width: 600px; font-size: 40px; line-height: 1.3; letter-spacing: -0.03em; }

/* Inline marks: each lockup highlights as one unit */
.lock { white-space: nowrap; }
.lock img { display: inline-block; }
.lock--wf img { width: 1.275em; height: 0.925em; margin-right: 0.25em; vertical-align: -0.1em; }
.lock--gh img { width: 1.2em; height: 1.2em; vertical-align: -0.28em; transform: rotate(-10deg); }
.lock--cl img { width: 1.2em; height: 1.2em; margin-inline: 0.2em; vertical-align: -0.28em; }

/* Split text (model.js): words never break mid-word */
.model .w { white-space: nowrap; }
.model .vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Grid rails: sit 20px outside the content column, so text never touches them ---------- */

.page::before { left: max(8px, calc(var(--gutter) - 20px), calc(50% - var(--content) / 2 - 20px)); }
.page::after { right: max(8px, calc(var(--gutter) - 20px), calc(50% - var(--content) / 2 - 20px)); }

/* ---------- Offer: two tiers, the migration first ---------- */

.offer-lede { max-width: 62ch; margin-bottom: clamp(36px, 4vw, 56px); }
.offer-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.tier {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 0.75px solid var(--rule);
  border-radius: 20px;
  background: var(--white);
}
.tier--lead { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.tier-flag {
  margin-bottom: 2px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.tier--lead .tier-flag { color: var(--signal-dark); }
.tier-name { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.04em; }
.tier-price { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.05em; }
.tier-price .pending { vertical-align: 0.4em; }
.tier-time {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.07);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.tier--lead .tier-time { background: rgba(255, 59, 48, 0.14); color: var(--signal-dark); }
.tier-what { max-width: 46ch; margin-top: 6px; color: var(--muted-strong); font-size: 16px; line-height: 1.5; letter-spacing: -0.015em; }
.tier-list { display: grid; gap: 9px; margin: 10px 0 0; padding: 14px 0 0; border-top: 0.75px solid var(--rule); list-style: none; }
.tier-list li { position: relative; padding-left: 20px; color: var(--muted-strong); font-size: 15px; line-height: 1.45; }
.tier-list li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-size: 12px; }
.offer-note { margin-top: clamp(24px, 2.6vw, 36px); color: var(--muted); }

@media (max-width: 860px) {
  .offer-tiers { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Hero art: the same sizes and crops as the live page ---------- */

/* v2 fades the art below 1100px and v3 hides it; the live page does neither, so reset both here */
.hero-deco { display: block; opacity: 1; mix-blend-mode: normal; object-fit: cover; }
.hero-deco--left { top: 96px; left: -370px; width: 645px; height: 417px; }
.hero-deco--right { top: 0; right: -70px; width: 360px; height: 411px; }

/* The full-size art only clears the headline box above ~1500px: the h1 is centred and roughly
   890px wide, so below that the margins aren't deep enough. Under 1500px the art steps down and
   sits further off-canvas, and the hero itself tightens up. */
@media (max-width: 1500px) {
  .hero-deco--left { top: 64px; left: -360px; width: 560px; height: 363px; }
  .hero-deco--right { top: 0; right: -70px; width: 320px; height: 366px; }
  .page > .hero { padding-top: clamp(130px, 12vw, 168px); }
  .hero-inner { gap: 26px; }
  .hero h1 { max-width: 22ch; font-size: clamp(32px, 3.1vw, 44px); }
  .hero-sub { max-width: 50ch; }
}
@media (max-width: 1150px) {
  .hero-deco--left { top: 56px; left: -330px; width: 470px; height: 304px; }
  .hero-deco--right { right: -100px; width: 262px; height: 300px; }
  .hero h1 { max-width: 20ch; }
}
@media (max-width: 1000px) {
  /* The live page hides the art below 810px, but its text column is far narrower than ours,
     so below 1000px the art would crowd the headline. */
  .hero-deco { display: none; }
}

/* ---------- Nav: the wordmark ---------- */

.nav-mark { display: flex; align-items: center; }
.nav-mark img { display: block; width: auto; height: 20px; }
.page > section { scroll-margin-top: 132px; } /* anchored sections clear the fixed nav */

@media (max-width: 640px) {
  .nav-mark img { height: 18px; }
}

/* ---------- Hero: two-sentence heading, square buttons ---------- */

.hero h1 { max-width: 28ch; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; }
.hero h1 .h1-soft { color: var(--muted); }
.cta { border-radius: 0; }

/* ---------- Button hover: the clip-path wipe from Osmo's Button 006, on Labs' own buttons ----------
   Two stacked labels in one grid cell. The top one is clipped to a hairline at 50% and opens to full
   height on hover while its label scales up from 0.85; the one underneath scales to 1.2 as it's covered.
   Labs keeps its square corners, sizes, arrow and colours. Swap the two --btn-*-hover pairs to retune. */

.cta,
.nav-cta {
  --btn-ease: cubic-bezier(0.675, 0.15, 0.1, 1);
  --btn-ease-click: cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-grid;
  padding: 0;
  overflow: hidden;
  background: none;
  line-height: 1;
  transition: scale 0.15s var(--btn-ease-click);
  -webkit-tap-highlight-color: transparent;
}
.cta:hover,
.nav-cta:hover { background: none; transform: none; }
.cta:active,
.nav-cta:active { scale: 0.975 0.94; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-cta:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

.cta-layer { grid-area: 1 / 1; display: grid; pointer-events: none; }
.cta-label {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 32px;
  transition: scale 0.35s var(--btn-ease);
}
.cta-layer--hover {
  z-index: 2;
  clip-path: polygon(0% 50%, 100% 50%, 100% 50%, 0% 50%);
  transition: clip-path 0.375s var(--btn-ease);
}
.cta-layer--hover .cta-label {
  scale: 0.85;
  opacity: 0;
  transition: scale 0.35s var(--btn-ease), opacity 0.15s 0.05s ease-out;
}

/* Colours: signal to ink on the page, paper to signal in the nav */
.cta .cta-layer--default { background: var(--signal); color: var(--ink-deep); }
.cta .cta-layer--hover { background: var(--ink); color: var(--paper); }
.nav-cta .cta-layer--default { background: var(--paper); color: #0c0c0c; }
.nav-cta .cta-layer--hover { background: var(--signal); color: var(--ink-deep); }
.nav-cta .cta-label { min-height: 0; padding: 8px 20px; font-size: 15px; }

/* The label scale replaces the old arrow nudge */
.cta:hover .cta-arrow { transform: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.cta, .nav-cta):is(:hover, :focus-visible) .cta-layer--hover {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: clip-path 0.425s 0.05s var(--btn-ease);
  }
  :is(.cta, .nav-cta):is(:hover, :focus-visible) .cta-layer--hover .cta-label {
    scale: 1;
    opacity: 1;
    transition: scale 0.35s 0.1s var(--btn-ease), opacity 0.15s 0.15s ease-out;
  }
  :is(.cta, .nav-cta):is(:hover, :focus-visible) .cta-layer--default .cta-label {
    scale: 1.2;
    transition: scale 0.35s 0.05s var(--btn-ease);
  }
}

/* Reduced motion still needs hover feedback, just without the movement */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  :is(.cta, .nav-cta):is(:hover, :focus-visible) .cta-layer--hover {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: none;
  }
  :is(.cta, .nav-cta):is(:hover, :focus-visible) .cta-layer--hover .cta-label {
    scale: 1;
    opacity: 1;
    transition: none;
  }
}

/* ---------- Story people: real photos over the initials (initials show if a photo fails) ---------- */

.pp--photo { position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(30, 30, 30, 0.08); }
.pp--photo img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* ---------- Story resolve: a bigger, branded build terminal with a live preview ---------- */

.page > .story { height: 720vh; }

.story-one {
  /* Sits closer to its heading than dead-centre. The px floor keeps the card
     inside the stage on short viewports, where 39% would ride up over the head. */
  top: clamp(232px, 39%, 50%);
  width: min(820px, 94%);
  border: 0.75px solid rgba(244, 244, 236, 0.14);
  border-radius: 20px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 59, 48, 0.12), transparent 55%), var(--ink);
  box-shadow: 0 60px 120px -50px rgba(30, 30, 30, 0.65), 0 0 0 1px rgba(30, 30, 30, 0.9);
}
.story-one [data-k] { opacity: 0; }

.story-one .one-top {
  gap: 14px;
  padding: 10px 14px;
  border-bottom-color: rgba(244, 244, 236, 0.1);
  background: rgba(244, 244, 236, 0.025);
}
.one-tabs { display: flex; flex: 1; gap: 4px; min-width: 0; }
.one-tab {
  padding: 4px 10px;
  border-radius: 6px;
  color: rgba(244, 244, 236, 0.42);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}
.one-tab.is-on { background: rgba(244, 244, 236, 0.08); color: var(--paper); }
.one-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); font-size: 14px; letter-spacing: -0.04em; white-space: nowrap; }
.one-brand i { width: 8px; height: 8px; background: var(--signal); }
.one-brand em {
  color: rgba(244, 244, 236, 0.42);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.one-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.story-one .one-body {
  align-content: start;
  gap: 7px;
  padding: 20px 22px;
  border-right: 0.75px solid rgba(244, 244, 236, 0.1);
  font-size: 13px;
  line-height: 1.6;
}
.one-cmd { margin-bottom: 6px !important; color: var(--paper); }
.one-caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--signal);
  animation: one-caret 1s steps(1) infinite;
}
@keyframes one-caret { 50% { opacity: 0; } }
.story-one .t-dim { color: rgba(244, 244, 236, 0.4); }
.story-one .t-hi { color: var(--paper); }
.story-one .one-l--live { color: var(--paper); }

/* Claude-style boot: red pixel wordmark, welcome box, spinner status line */
.one-hello { display: grid; gap: 12px; margin-bottom: 6px; }
.one-pixels { display: block; width: min(270px, 100%); height: auto; color: var(--signal); shape-rendering: crispEdges; }
.one-pixels rect { fill: currentColor; }
.one-welcome {
  display: grid;
  gap: 1px;
  justify-self: start;
  padding: 6px 12px;
  border: 0.75px solid rgba(255, 59, 48, 0.55);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.story-one .one-status { margin-top: 4px; color: rgba(244, 244, 236, 0.6); }
.one-status[data-state="idle"] { visibility: hidden; }
.one-status[data-state="done"] { color: var(--paper); }
.one-spin { display: inline-block; width: 1.4ch; color: var(--signal); }
.one-status[data-state="building"] .one-status-text {
  background: linear-gradient(90deg, rgba(244, 244, 236, 0.35) 20%, var(--paper) 50%, rgba(244, 244, 236, 0.35) 80%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: one-shimmer 1.6s linear infinite;
}
@keyframes one-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (max-height: 760px) { .one-welcome { display: none; } }

/* The page being built, block by block */
.one-preview { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 16px; }
.pv-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(244, 244, 236, 0.06);
  color: rgba(244, 244, 236, 0.6);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10.5px;
}
.pv-state { padding: 2px 8px; border-radius: 999px; background: var(--signal); color: var(--white); font-size: 9.5px; text-transform: uppercase; }
.pv-canvas {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 236px;
  padding: 12px;
  border-radius: 10px;
  background: var(--paper);
}
.pv-nav { display: flex; align-items: center; justify-content: space-between; }
.pv-nav b { width: 40px; height: 7px; border-radius: 2px; background: var(--ink); }
.pv-nav i { width: 26px; height: 9px; background: var(--signal); }
.pv-hero { display: grid; justify-items: center; gap: 5px; padding: 10px 0 4px; }
.pv-kicker { width: 30%; height: 5px; border-radius: 3px; background: rgba(30, 30, 30, 0.18); }
.pv-hero b { width: 80%; height: 11px; border-radius: 3px; background: var(--ink); }
.pv-hero .pv-short { width: 54%; }
.pv-btn { display: block; width: 64px; height: 12px; margin-top: 4px; background: var(--signal); }
.pv-speakers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-inline: 8%; }
.pv-speakers span { aspect-ratio: 1; border: 0.75px solid rgba(30, 30, 30, 0.14); border-radius: 50%; background: #e2ddd2; }
.pv-speakers span:first-child { background: rgba(255, 59, 48, 0.3); }
.pv-agenda { display: grid; gap: 5px; }
.pv-agenda i { height: 6px; border-radius: 3px; background: rgba(30, 30, 30, 0.1); }
.pv-agenda .pv-short { width: 60%; }
.pv-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 0.75px solid rgba(30, 30, 30, 0.14);
  border-radius: 6px;
}
.pv-form i { height: 10px; border-radius: 2px; background: rgba(30, 30, 30, 0.08); }
.pv-form .pv-btn { width: 44px; margin: 0; }

.story-one .one-foot { gap: 16px; padding: 11px 18px; border-top-color: rgba(244, 244, 236, 0.1); }
.one-meter { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(244, 244, 236, 0.12); }
.one-meter-bar { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

/* Maya's reply overlaps the terminal's bottom-right corner */
.story-reply { top: calc(50% + 226px); left: min(calc(50% + 150px), calc(100% - 310px)); }
@media (max-height: 760px) { .story-reply { top: calc(50% + 196px); } }

/* Static (mobile / reduced motion): everything shown, one column */
.story--static .story-one [data-k] { opacity: 1; }
.story--static .one-caret { display: none; }
.story--static .one-meter-bar { transform: none; }
@media (max-width: 860px) {
  .one-main { grid-template-columns: minmax(0, 1fr); }
  .story-one .one-body { border-right: 0; border-bottom: 0.75px solid rgba(244, 244, 236, 0.1); }
  .one-tab:not(.is-on) { display: none; }
}
@media (max-width: 560px) {
  .one-tabs, .one-brand em { display: none; }
  .story-one .one-top { justify-content: space-between; }
}

/* ---------- Story on mobile: no pin, no connectors; six cards slide in, then the terminal plays ---------- */

.story-turn { display: none; }

.story--mobile .story-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.story--mobile .story-stage { display: flex; flex-direction: column; gap: 46px; margin-top: 40px; }

.story--mobile .sc-vp,
.story--mobile .sc-gdoc,
.story--mobile .sc-slack,
.story--mobile .sc-mobile,
.story--mobile .sc-sales,
.story--mobile .sc-vp2 {
  position: relative;
  top: auto;
  left: auto;
  display: grid;
  width: min(330px, 92%);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.story--mobile .sc-vp { order: 1; }
.story--mobile .sc-gdoc { order: 2; align-self: flex-end; transform: translateX(20px); }
.story--mobile .sc-slack { order: 3; }
.story--mobile .sc-mobile { order: 4; align-self: flex-end; transform: translateX(20px); }
.story--mobile .sc-sales { order: 5; }
.story--mobile .sc-vp2 { order: 6; align-self: flex-end; transform: translateX(20px); }
.story--mobile .sc.is-in { opacity: 1; transform: none; }

/* Numbered caption above each card */
.story--mobile .sc::before {
  content: attr(data-mcap);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 2px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.story--mobile .sc-gdoc::before,
.story--mobile .sc-mobile::before,
.story--mobile .sc-vp2::before { right: 2px; left: auto; }

/* The turn, then the terminal and Maya's reply */
.story--mobile .story-turn {
  display: block;
  order: 7;
  margin: 18px 0 0;
  font-size: clamp(26px, 7.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.story--mobile .story-one {
  order: 8;
  margin: -18px auto 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.story--mobile .story-turn.is-in,
.story--mobile .story-one.is-in { opacity: 1; transform: none; }
.story--mobile .story-reply { order: 9; z-index: 5; width: min(290px, 86%); margin: -30px 10px 0 auto; }
.story--mobile .one-welcome { display: none; }

/* ---------- Why now: stats, then a small testimonial band (live-page order) ---------- */

.page > .why-now { border-top: 0.75px solid var(--rule); }
.source a { text-decoration: underline; text-decoration-thickness: 0.75px; text-underline-offset: 3px; }
.why-now > .band--quote {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  min-height: 0;
  height: clamp(240px, 26.2vw, 377px);
  margin: clamp(48px, 5vw, 72px) auto 0;
  padding: 28px;
}
.band--quote blockquote { margin: 0; gap: 14px; }
.band--quote blockquote p { max-width: 24ch; font-size: clamp(22px, 2.25vw, 32px); line-height: 1.2; letter-spacing: -0.035em; text-wrap: balance; }

/* ---------- Proof strip: who the client is ---------- */

.proof-meta { margin-top: 6px; max-width: 22ch; color: var(--muted); font-size: 15px; letter-spacing: -0.015em; }

/* ---------- Engraved globe, bled off the bottom-left of the dark cards ---------- */

.has-globe { position: relative; overflow: hidden; }
.card-globe { position: absolute; inset: 0; z-index: 0; display: block; pointer-events: none; }
.card-globe img {
  position: absolute;
  left: -54px;
  bottom: -104px;
  width: 340px;
  height: auto;
}

.reversal.has-globe { min-height: 430px; }
.reversal .card-globe img { bottom: -124px; }
.alt--us.has-globe { min-height: 280px; }
.alt--us .card-globe img { left: -58px; bottom: -120px; width: 260px; }

/* Text sits above the art */
.reversal > h3,
.reversal > div,
.alt--us > h3,
.alt--us > p { position: relative; z-index: 1; }

@media (max-width: 1000px) {
  .reversal.has-globe { min-height: 0; padding-bottom: 230px; }
  .reversal .card-globe img { left: -66px; bottom: -150px; width: 280px; }
}
@media (max-width: 860px) {
  .alt--us.has-globe { min-height: 0; padding-bottom: 200px; }
  .alt--us .card-globe img { left: -70px; bottom: -150px; width: 268px; }
}

/* ---------- Pull quote card: the portrait is the whole card ---------- */

.pull--face {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.pull--face .pull-art { display: block; }
.pull--face .pull-art img { display: block; width: 100%; height: auto; }

/* ---------- Alternatives: the wordmark on our own row ---------- */

.alt-mark { display: flex; align-items: center; gap: 9px; }
.alt-mark img { display: block; width: auto; height: 21px; }

/* ---------- Closing: same as the live page's footer section ---------- */

.page > .endcap {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 11.5vw, 166px) 20px 0;
  text-align: center;
}
.endcap-copy { position: relative; z-index: 2; display: grid; justify-items: center; max-width: 640px; margin-inline: auto; }
.endcap-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #e6e6d6;
  color: rgba(30, 30, 30, 0.75);
  font-size: 12px;
  letter-spacing: -0.02em;
}
.endcap-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.endcap h2 { margin: 0; font-size: clamp(35px, 3.75vw, 54px); font-weight: 400; line-height: 1.2; letter-spacing: -0.06em; text-wrap: balance; }
.endcap-body {
  max-width: 600px;
  margin: 12px 0 22px;
  color: rgba(30, 30, 30, 0.5);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.endcap-globe {
  position: relative;
  z-index: 1;
  width: min(998px, 100%);
  height: clamp(200px, 27vw, 390px);
  margin: clamp(32px, 3.5vw, 50px) auto 0;
  overflow: hidden;
}
.endcap-globe canvas { position: absolute; top: 0; left: 0; width: 100%; height: clamp(360px, 50vw, 716px); }

/* The TV band, with the calendar set into it */
.page > .book--tv {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(120px, 27.8vw, 400px) 20px 0;
  overflow: hidden;
  border-top: 0;
  background: var(--signal);
}
.book--tv > picture,
.book--tv > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.book--tv > picture > img { object-fit: cover; }
.book--tv .cal-shell { position: relative; z-index: 1; width: min(1000px, 100%); min-height: 575px; }
.book--tv #cal-booking { min-height: 575px; }

/* Footer: the centred mono rows, then the marquee */
.footer--live { padding-top: clamp(48px, 5vw, 70px); }
.footer-rows {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(12px, 1vw, 14.4px);
  line-height: 1.2;
  text-transform: uppercase;
}
.footer-rows > :nth-child(even) { justify-self: end; text-align: right; }
.footer-rows img { width: 14px; height: auto; }
.footer-rows a { text-decoration: underline; text-decoration-thickness: 0.75px; text-underline-offset: 3px; }
.footer--live .marquee { margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 640px) {
  .fasc--signal, .fasc--signal:nth-child(odd), .fasc--signal:nth-child(even) { padding: 26px 18px; }
  .fasc--signal::before, .fasc--signal:nth-child(even)::before { inset: 8px 0; }
}

/* Framer's tablet and phone sizes */
@media (max-width: 1199px) {
  .model h2, .model-p { font-size: 30px; }
  .model-inner { gap: 36px; }
}
@media (max-width: 809px) {
  .model h2, .model-p { font-size: 22px; }
  .model-inner { gap: 28px; }
  .model-head { gap: 20px; }
}
