/* cotoaga-net-site — structural styles. Brand-blind: --brand-* only. */

* {
  box-sizing: border-box;
}

body {
  background: var(--brand-surface);
  color: var(--brand-text-body);
  font-family: var(--font-primary);
  line-height: var(--leading-normal);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

a {
  color: var(--brand-primary);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--brand-accent);
}

/* ---------- Masthead (curtain, light) ---------- */

.site-masthead {
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: clip;
  background: var(--brand-hero-bg);
}

.site-masthead-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--space-lg);
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.site-brand-logo {
  display: block;
  width: clamp(240px, 40vw, 480px);
  height: auto;
}

/* ai D-lockup: rule spans the wordmark, byline "powered by" + ai mark */
.site-brand-rule {
  align-self: stretch;
  border-top: 1px solid var(--brand-border);
}

.site-brand-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-text-secondary);
}

.site-brand-tagline-logo {
  height: 1.5em;
  width: auto;
}

.hero-mark {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 4vw, 3rem);
  width: min(clamp(180px, 28vh, 300px), 30vw);
  aspect-ratio: 1;
  translate: 0 -50%;
  color: var(--brand-primary);
  opacity: 0.4;
  pointer-events: none;
}
.hero-mark svg {
  width: 100%;
  height: 100%;
}
/* live canvas (COT-276) replaces the static SVG; paper = masthead bg, so no visible box */
.hero-mark.is-live { opacity: 1; }
.hero-mark.is-live svg { display: none; }
.moebius-live { display: block; width: 100%; height: 100%; }

/* Narrow: the mark leaves the wordmark's row and sits above it (no overlap at 320px) */
@media (max-width: 640px) {
  .hero-mark {
    position: relative;
    top: auto;
    right: auto;
    translate: none;
    width: 120px;
    margin: var(--space-lg) var(--space-lg) calc(-1 * var(--space-lg)) auto;
  }
}

/* Sheet over masthead */
.sheet {
  position: relative;
  z-index: 2;
  background: var(--brand-surface);
  box-shadow: 0 -32px 80px rgba(6, 10, 9, 0.1);
  overflow-x: clip; /* full-bleed bands (COT-270) never cause sideways scroll */
}

/* ---------- Sticky navbar ---------- */

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-hero-bg);
  border-bottom: 1px solid var(--brand-border);
}

.site-navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.navbar-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--brand-primary);
}

/* Hierarchical nav — WP primary-menu tree */
.site-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
}

.nav-item {
  position: relative;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-text-body);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--brand-primary);
}

.nav-link[aria-current="page"],
.nav-item.is-active > .nav-item-row > .nav-link {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.nav-expand {
  display: none;
  background: none;
  border: 0;
  color: var(--brand-text-secondary);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.35rem 0.4rem;
  margin: 0;
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  margin: 0;
  padding: var(--space-sm) 0;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-hover-shadow);
  z-index: 20;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav-sub .nav-item {
  width: 100%;
}

.nav-sub .nav-link {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 0;
  font-weight: 500;
  font-size: 0.8125rem;
}

.nav-sub .nav-link:hover {
  background: var(--brand-tint-bg);
}

.nav-sub .nav-sub {
  top: 0;
  left: 100%;
  margin-left: -1px;
}

@media (hover: hover) and (min-width: 901px) {
  .nav-item.has-children:hover > .nav-sub,
  .nav-item.has-children:focus-within > .nav-sub {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-text-body);
  margin: 4px 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item-row {
    justify-content: space-between;
    border-bottom: 1px solid var(--brand-border);
  }

  .nav-link {
    display: block;
    flex: 1;
    padding: var(--space-sm) 0;
    border-bottom: 0;
  }

  .nav-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 var(--space-md);
    background: transparent;
  }

  .nav-item.is-open > .nav-sub {
    display: flex;
  }

  .nav-item.is-open > .nav-item-row > .nav-expand {
    transform: rotate(180deg);
  }

  .nav-sub .nav-link {
    padding: var(--space-sm) 0;
  }

  .nav-sub .nav-sub {
    margin-left: 0;
  }
}

/* ---------- Seam ---------- */

.seam {
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0;
  color: var(--brand-border);
}
.seam .tess {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

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

.site-footer {
  border-top: 1px solid var(--brand-border);
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  font-size: 0.875rem;
  color: var(--brand-text-secondary);
  line-height: var(--leading-relaxed);
}

.site-footer p {
  margin: 0 0 var(--space-sm);
}

.site-footer a {
  color: var(--brand-text-secondary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer a:hover {
  color: var(--brand-primary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.footer-identity strong {
  color: var(--brand-text-body);
  font-weight: 600;
}

/* ---------- Content basics ---------- */

main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--brand-text-body);
  margin: 0 0 var(--space-lg);
}

main h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: var(--space-2xl) 0 var(--space-md);
}

main p {
  margin: 0 0 var(--space-md);
  max-width: 48rem;
}

main .lede {
  font-size: 1.125rem;
  color: var(--brand-text-secondary);
  max-width: 40rem;
}

.archive-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-tint-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: var(--space-xs) var(--space-sm);
  margin: 0 0 var(--space-lg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: var(--brand-button-text);
}
.cta:hover {
  background: transparent;
  color: var(--brand-primary);
}

.cta-secondary {
  background: transparent;
  color: var(--brand-text-body);
  border-color: var(--brand-border);
}
.cta-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ---------- Story page (ported content, not Elementor chrome) ---------- */

.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-2xl);
}

.story-card {
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  padding: var(--space-lg);
  border-radius: var(--brand-radius);
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 var(--space-md);
  color: var(--brand-primary);
}

.story-card p {
  max-width: none;
}

.stat-row {
  list-style: none;
  margin: var(--space-xl) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--space-md);
}

.stat-row li {
  border: 1px solid var(--brand-border);
  background: var(--brand-tint-bg);
  padding: var(--space-md);
  text-align: center;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand-primary);
  line-height: 1.1;
}

.stat-row span {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--brand-text-secondary);
}

.duo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-xl);
  margin: var(--space-lg) 0;
}

.duo-photo {
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
}

.duo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.duo-card h3 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-sm);
}

.duo-card p {
  max-width: none;
}

.story-quote blockquote {
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--brand-primary);
  background: var(--brand-tint-bg);
  max-width: 40rem;
}

.story-quote p {
  font-size: 1.1rem;
  font-style: italic;
  max-width: none;
}

.story-quote footer {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--brand-text-secondary);
  font-style: normal;
}

.story-hero-fig {
  margin: var(--space-3xl) 0 0;
  padding: 0;
}

.story-hero-fig img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--brand-border);
}

/* ---------- /story/ (COT-269) — static stand-ins for Elementor slides,
   CTA cover, testimonial carousel and counters; reuses the cards above ---------- */

.story-slide,
.story-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: 24rem;
  padding: var(--space-xl) var(--space-lg);
  color: var(--cotoaga-white);
  text-shadow: 0 2px 8px rgba(25, 25, 25, 0.6);
}

.story-slide > img,
.story-banner > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

main .story-slide h2,
main .story-banner h2 {
  margin: 0;
}

.story-slide .cta,
.story-banner .cta {
  text-shadow: none;
}

.story-banner {
  min-height: 0;
  margin: var(--space-2xl) 0;
}

/* Palau fallback (no scroll timelines, or reduced motion): the whole photo,
   uncropped — cockpit and archipelago both visible. Grows with content;
   contain letterboxes instead of cropping. */
.story-banner {
  aspect-ratio: 1600 / 1066;
  background: var(--cotoaga-net-ink);
}
.story-banner > img {
  object-fit: contain;
  object-position: top;
}

main .duo-card h2 {
  margin-top: 0;
}

.duo-card h2 + h3 {
  font-size: 1rem;
  color: var(--brand-text-secondary);
}

.testimonials {
  --wave-h: clamp(32px, 5vw, 72px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-lg);
  margin: calc(var(--space-2xl) + var(--wave-h)) var(--bleed) var(--space-2xl);
  padding: var(--space-xl) var(--bleed-pad) var(--space-2xl);
  background: var(--brand-tint-bg);
}

/* Waves shape divider, full width, on top of the testimonial band */
.testimonials::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--wave-h);
  background: inherit;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V44C100 14 200 4 300 22S500 74 600 56 800 6 900 18 1100 62 1200 36V80Z'/%3E%3C/svg%3E")
    0 0 / 100% 100% no-repeat;
}

.testimonials figure {
  margin: 0;
  padding: var(--space-lg);
  border-left: 3px solid var(--brand-primary);
  background: var(--brand-surface);
}

.testimonials blockquote {
  margin: 0 0 var(--space-md);
  font-style: italic;
}

.testimonials figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--brand-text-secondary);
}

.testimonials figcaption img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
}

.testimonials cite {
  font-style: normal;
}

.testimonials cite strong {
  display: block;
  color: var(--brand-text-body);
}

.stat-row-plain li {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-primary);
}

/* Count-up (count.js): the real number stays in the DOM for screen readers,
   visually hidden while an aria-hidden twin counts; tabular digits hold width. */
.stat-row .is-counting {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.stat-row .count-twin {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- Carousel (COT-270) — one component, two looks: hero + quotes.
   Without JS the children stay stacked; .is-live is set by carousel.js ---------- */

:root {
  --bleed: calc(50% - 50vw); /* margin that takes a block from container to viewport edges */
  --bleed-pad: max(var(--space-lg), 50vw - 700px + var(--space-lg)); /* realigns content */
}

[data-carousel].is-live {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.is-live > .carousel-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
}

.is-live > .carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.is-ready > .carousel-slide {
  transition: opacity 0.9s ease, visibility 0s 0.9s;
}

.is-ready > .carousel-slide.is-active {
  transition: opacity 0.9s ease;
}

.carousel-nav {
  grid-area: 2 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
}

.carousel-arrow,
.carousel-toggle {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font: 600 1.1rem/1 var(--font-primary);
  color: var(--brand-text-body);
  background: transparent;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  cursor: pointer;
}
.carousel-toggle {
  font-size: 0.7rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--brand-primary);
  border-radius: var(--brand-radius);
  cursor: pointer;
}
.carousel-dot[aria-current="true"] {
  background: var(--brand-primary);
}

.carousel-nav button:hover {
  border-color: var(--brand-primary);
}
.carousel-nav button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Hero look — full-bleed slides, overlay #00000020, Ken Burns on the active one */
.story-hero.is-live {
  margin: calc(-1 * var(--space-2xl)) var(--bleed) var(--space-2xl);
}

.story-hero.is-live .story-slide {
  overflow: hidden;
  justify-content: center;
  min-height: clamp(32rem, 75vh, 46rem);
  padding: var(--space-2xl) var(--bleed-pad) calc(var(--space-2xl) + 3rem);
}

.story-hero.is-live .story-slide > img {
  filter: none;
}

.story-hero.is-live .story-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #00000020;
}

main .story-hero.is-live h2 {
  max-width: 44rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: var(--leading-tight);
  text-shadow: 5px 5px 10px var(--h-shadow);
}

.story-hero.is-live p {
  max-width: 40rem;
  font-size: 1.05rem;
}

.story-hero.is-live .carousel-nav {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 1;
  padding: var(--space-lg);
}

.story-hero .carousel-nav button {
  color: var(--cotoaga-white);
  border-color: rgba(250, 251, 251, 0.6);
}
.story-hero .carousel-dot {
  background: transparent;
}
.story-hero .carousel-dot[aria-current="true"] {
  background: var(--cotoaga-white);
}

.story-hero .is-active > img {
  animation: kenburns 16s ease-out both;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

/* Quotes look — one at a time, centred in the wave band */
.testimonials.is-live figure {
  justify-self: center;
  align-self: center;
  width: min(100%, 48rem);
}

.testimonials.is-live blockquote {
  font-size: 1.1rem;
}

/* Scroll-driven motion, CSS only — unsupported browsers keep the fallbacks.
   Duo photos zoom inside their frames: Tanja out (travel = the wider
   terrain), Kurt in (diving = going deeper). The Palau photo
   pans from the cockpit (its bottom edge) out to the archipelago (its top
   edge) as the section crosses the viewport: scrolling is the flight. Only
   where the banner is wider than 3:2 — narrower, cover has nothing to pan. */
@keyframes zoom {
  from { scale: var(--zoom-from); }
  to { scale: var(--zoom-to); }
}

@keyframes flight {
  from { object-position: 50% 100%; }
  to { object-position: 50% 0%; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 600px) {
    .story-banner {
      min-height: 20rem;
      aspect-ratio: auto;
      view-timeline: --palau block;
    }
    .story-banner > img {
      object-fit: cover;
      animation: flight linear both;
      animation-timeline: --palau;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .duo-photo {
      view-timeline: --photo block;
    }
    .duo-photo > img {
      animation: zoom linear both;
      animation-timeline: --photo;
    }
    .zoom-out { --zoom-from: 1.2; --zoom-to: 1; }
    .zoom-in { --zoom-from: 1; --zoom-to: 1.2; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-ready > .carousel-slide,
  .is-ready > .carousel-slide.is-active {
    transition: none;
  }
  .story-hero .is-active > img {
    animation: none;
  }
}

/* ---------- Parallax section (COT-271) — archive component, first used on
   /18-trillion-market/. Full-bleed photo, translucent box, highlight headline.
   Fallback: static cover photo, no marker. Motion lives in the @supports block. */

.parallax-stack {
  margin: calc(-1 * var(--space-2xl)) var(--bleed) 0;
}

.parallax {
  --box: #00000050;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 100px var(--bleed-pad); /* Elementor: 100px */
  color: #ffffff;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-box {
  position: relative; /* anchors reveal panels */
  width: 70%;
  padding: var(--space-xl);
  background: var(--box);
  font-size: calc(1em * var(--scale, 1)); /* section 1: Elementor scale(1.3) */
}

main .parallax-headline {
  margin: 0 0 var(--space-lg);
  font-size: 1.75em; /* Elementor: 28px */
  line-height: var(--leading-tight);
  text-align: center;
}

.parallax-box a {
  color: inherit;
}
.parallax-box a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Highlight: words colour per section; Kalium k_color_1 marker (live site CSS) */
.hl {
  position: relative;
  display: inline-block;
  color: var(--words, inherit);
}

.marker {
  display: none;
}

/* Reveal: hover (real pointers), focus, or .is-open; .is-closed wins (reveal.js) */
.reveal-trigger {
  text-decoration-style: dotted;
}

.reveal-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  width: min(18rem, 90%);
  margin-inline: auto;
  border: 1px solid #ffffff;
  background: var(--cotoaga-net-ink);
}
.reveal-panel img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) {
  .reveal:hover > .reveal-panel {
    display: block;
  }
}
.reveal:focus-within > .reveal-panel,
.reveal.is-open > .reveal-panel {
  display: block;
}
.reveal.is-closed > .reveal-panel {
  display: none;
}

.parallax-coda {
  margin: var(--space-2xl) 0 0;
  text-align: center;
}

@media (max-width: 800px) {
  .parallax {
    padding: var(--space-2xl) var(--space-md);
  }
  .parallax-box {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    font-size: 1em; /* section 1's 1.3× is a desktop size */
  }
}

/* Marker: Elementor's default "circle", drawn once by marker.js (which also
   skips reduced motion) — the stroke animates from nothing to closed. */
@media (prefers-reduced-motion: no-preference) {
  .marker-live > .marker {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    translate: -50% -50%;
    overflow: visible;
    pointer-events: none;
  }
  .marker path {
    fill: none;
    stroke: #2f6eba;
    stroke-width: 9;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.2s ease-in-out; /* Elementor: 1200ms */
  }
  .is-drawn > .marker path {
    stroke-dashoffset: 0;
  }
}

/* Parallax: the photo layer is 160% of the section and travels against the
   scroll across the view() timeline — slower than the page, never uncovering
   an edge (±18% of 160% < 30% overhang). Tune the rate here (Kurt's eyeball). */
@keyframes parallax {
  from { translate: 0 -18%; }
  to { translate: 0 18%; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax {
      view-timeline: --parallax block;
    }
    .parallax-bg {
      top: -30%;
      height: 160%;
      animation: parallax linear both;
      animation-timeline: --parallax;
    }
  }
}

/* ---------- Archive banner (COT-271) — one line above the page content;
   not .archive-banner, which is the archive home badge ---------- */

main .archived-note {
  max-width: none; /* full-width strip, not a body paragraph */
  margin: 0;
  padding: var(--space-sm) var(--bleed-pad);
  border-bottom: 1px solid var(--brand-border);
  background: var(--brand-tint-bg);
  color: var(--brand-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* ---------- /start/ (COT-345) — live core page. Old WP theme colours mapped to
   the frame: primary / k_color_1 → --brand-primary, k_color_2 → --brand-accent,
   text → --brand-text-body. WP centred every block. ---------- */

.start-hero,
.start-block > h2,
.start-block > .start-sub,
.start-now > p {
  text-align: center;
}
main .start-hero p,
main .start-block > .start-sub,
main .start-now > p {
  margin-inline: auto;
}
main .start-sub {
  color: var(--brand-text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
}
main .start-lead {
  font-size: 1.25rem; /* WP: 20px */
}
.cta-arrow::after {
  content: " →"; /* WP icon, right; decorative */
}
#persona-container {
  scroll-margin-top: calc(var(--nav-h, 0px) + var(--space-md));
}

.start-ctas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 300px)); /* WP: 300px */
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0 var(--space-2xl);
}
.start-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--brand-border);
}
.start-cta > :not(img, .ribbon) {
  margin-inline: var(--space-lg);
}
.start-cta img {
  display: block;
  width: 100%;
  height: auto;
}
main .start-cta h3 {
  margin-block: var(--space-lg) var(--space-sm);
  font-family: var(--font-display);
  color: var(--brand-primary);
}
.start-cta .cta {
  margin-block: auto var(--space-lg);
}
.ribbon {
  position: absolute;
  top: var(--space-md);
  right: 0;
  padding: var(--space-xs) var(--space-md);
  background: var(--brand-accent);
  color: var(--brand-button-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.start-now ul {
  text-align: start;
}
.start-now .tabs {
  margin-top: var(--space-2xl);
}

.start-closer {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  margin: var(--space-2xl) var(--bleed) calc(-1 * var(--space-2xl));
  padding: var(--space-3xl) var(--bleed-pad);
}
.start-closer > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.start-closer-box {
  max-width: 40rem;
  padding: var(--space-xl);
  background: color-mix(in srgb, var(--brand-surface) 92%, transparent);
  text-align: center;
}
main .start-closer-box h2 {
  margin-top: 0;
}

/* ---------- Pair card (COT-345) — /start/ personas, /services/ next. Two halves,
   both always visible: tinted situation above, primary-coloured answer below. ---------- */

.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0 var(--space-2xl);
}
.pair-card {
  display: flex;
  flex-direction: column;
}
.pair-card > div {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}
.pair-card-top {
  flex: 1; /* fallback: bottoms line up across a row */
  border: 1px solid var(--brand-border);
  border-bottom: 0;
  background: var(--brand-tint-bg);
}
.pair-card-bottom {
  background: var(--brand-primary);
  color: var(--brand-button-text);
}
main .pair-card h3 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  color: var(--brand-primary);
}
main .pair-card p {
  margin: 0;
}

/* subgrid: the divide between the halves lines up across a row */
@supports (grid-template-rows: subgrid) {
  .pair-card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    gap: 0;
  }
}

/* ---------- Tabs (COT-345) — /start/ offers, /services/ next. Without JS every
   panel sits under its own heading; tabs.js builds the tablist. ---------- */

.tab-panel + .tab-panel {
  margin-top: var(--space-xl);
}
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}
.tab {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-text-body);
  font: 600 0.95rem var(--font-display);
  text-align: start;
  cursor: pointer;
}
.tab:hover {
  border-color: var(--brand-primary);
}
.tab[aria-selected="true"] {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--brand-button-text);
}
.tab:focus-visible,
.tab-panel:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media (min-width: 801px) {
  .tabs-vertical.is-live {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }
  .tabs-vertical > .tab-list {
    flex-direction: column;
    margin: 0;
  }
  .tabs-vertical > .tab-panel {
    margin: 0;
  }
}
main .tab-panel h5 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-primary);
}
