/* ==========================================================================
   AI Elevated Marketing — Shared Design System
   Direction B. One stylesheet, inherited by every page.
   Sections: 0) Self-hosted fonts  1) Tokens  2) Reset/base  3) Type scale
   4) Layout/container  5) Buttons & links  6) Cards  7) Section tint bands
   8) Chevron motif  9) Floating brand shapes  10) Navigation
   11) Language switcher  12) Mobile menu  13) Footer  14) Utilities
   15) Reduced motion
   ========================================================================== */

/* 0) ---------- SELF-HOSTED FONTS (OFL, no external requests) ----------
   Bricolage Grotesque — headings (700, 800)
   Figtree — body (400, 500, 600)
   Latin subset only; CJK is served by the system fallback stack in --font-*. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/figtree-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/figtree-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/figtree-600.woff2') format('woff2');
}

/* 1) ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --brand-purple:  #6200ED;  /* EXACT logo purple — hero base, site-wide */
  --brand-purple-deep: #4A00C2;  /* deeper same-hue shade — closing CTA band */
  --hero-accent:   #FFA894;  /* ONE signature emphasis colour for every hero
                                headline. 3.86:1 on the lightest point of the
                                hero gradient — clears AA large text (3:1). */
  --violet:        #5B2EE5;  /* leads everywhere */
  --violet-deep:   #4B1FD6;  /* hero gradient start */
  --violet-light:  #8A63F4;  /* hero gradient end */
  --violet-soft:   #BA9EFC;  /* decorative shapes */
  --pink:          #E31159;  /* PRIMARY CTAs only (nudged from #EC1E63 so white
                                button text passes WCAG AA 4.5:1 — measures 4.68:1) */
  --pink-deep:     #D0134F;  /* primary CTA hover */
  --coral:         #FF7F66;  /* accent */
  --teal:          #35C4B5;  /* accent */
  --navy:          #12142E;  /* body text */
  --ink-soft:      #45465F;  /* secondary text */
  --ink-mute:      #6B6C84;  /* tertiary / captions */

  /* Surfaces */
  --bg:            #FDFBF7;  /* warm white page bg */
  --white:         #FFFFFF;
  --line:          #EEEAE0;  /* hairline on warm white */
  --line-strong:   #E2DCD0;  /* control borders */

  /* Section tints */
  --tint-lavender: #F4F0FD;
  --tint-pink:     #FDEEF3;
  --tint-coral:    #FFF1ED;
  --tint-teal:     #EAF8F6;

  /* Footer */
  --footer-bg:     #12142E;
  --footer-text:   #B9BACE;
  --footer-mute:   #8082A0;

  /* Typography */
  --font-head: 'Bricolage Grotesque', 'Noto Sans SC', 'Noto Sans TC',
               'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Figtree', 'Noto Sans SC', 'Noto Sans TC',
               'PingFang SC', 'Microsoft YaHei', sans-serif;
  --tracking-head: -0.02em;

  /* Fluid type scale (mobile-first, clamps up to desktop).
     Display runs at full Bricolage scale for a confident hero; the jump
     from display -> h2 is deliberate so hierarchy reads as intentional. */
  --fs-display: clamp(3rem, 6.5vw, 5rem);            /* h1 hero          */
  --fs-h1:      clamp(2.1rem, 4.5vw + 1rem, 3rem);
  --fs-h2:      clamp(2rem, 3.5vw, 2.75rem);         /* section headings */
  --fs-h3:      clamp(1.3rem, 1.5vw + 1rem, 1.6rem);
  --fs-lead:    clamp(1.125rem, 0.5vw + 1rem, 1.25rem); /* intro paras 18-20px */
  --fs-body:    1.125rem;                               /* 18px         */
  --fs-small:   0.9375rem;                              /* 15px         */
  --fs-eyebrow: 0.8125rem;                              /* 13px label   */

  /* Spacing scale */
  --space-1: 0.5rem;   --space-2: 0.75rem;  --space-3: 1rem;
  --space-4: 1.5rem;   --space-5: 2rem;     --space-6: 3rem;
  --space-7: 4rem;     --space-8: 6rem;

  /* Radius */
  --radius-sm: 8px;   --radius: 14px;   --radius-lg: 20px;   --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 6px 18px rgba(18,20,46,0.06);
  --shadow:    0 14px 34px rgba(18,20,46,0.10);
  --shadow-lg: 0 24px 60px rgba(18,20,46,0.14);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --nav-h: 99px;   /* fixed header height: 66px logo + 2×16px padding + 1px border (81px on mobile, see media query) */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.2s;
}

/* 2) ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--violet); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--pink); }

button { font-family: inherit; }

/* Visible focus for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}
/* On dark surfaces a violet ring would vanish — use a light ring there */
.hero :focus-visible,
.band-violet :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--bg);
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--violet); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; font-size: var(--fs-small); z-index: 200;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

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

/* 3) ---------- TYPE SCALE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: var(--tracking-head);
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h2 { font-weight: 800; font-size: var(--fs-h2); }
h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
h1 { font-size: var(--fs-h1); }
.display { font-size: var(--fs-display); }

p { margin: 0 0 var(--space-3); text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.68; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Eyebrow / kicker label */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 var(--space-2);
}

/* 4) ---------- LAYOUT / CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1280px; }

/* Generous, varied vertical rhythm. Default is roomy; tentpole sections
   (hero, closing CTA) get the most air; --tight for incidental bands. */
.section { padding-block: clamp(5rem, 10vh, 9rem); }
.section--spacious { padding-block: clamp(6rem, 14vh, 10rem); }
.section--tight { padding-block: clamp(3.5rem, 6vh, 5rem); }
/* Extra bottom air for a content band that sits right before a closing band,
   so it doesn't butt up against the next section. */
.section--pre-close { padding-bottom: clamp(6rem, 12vh, 10rem); }

/* Section header block: eyebrow + heading, held apart from the content
   below by a deliberate gap so headings never sit lonely in dead space. */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head > * { margin: 0; }
.section-head .eyebrow + h2 { margin-top: calc(var(--space-2) - var(--space-3)); } /* tighten eyebrow->heading */

.stack > * + * { margin-top: var(--space-4); }

/* 5) ---------- BUTTONS & LINKS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Primary — hot pink filled pill. ONE per context. */
.btn--primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn--primary:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* Secondary — violet outlined pill */
.btn--secondary { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn--secondary:hover { background: var(--tint-lavender); color: var(--violet); }

/* On dark/hero surfaces */
.btn--ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Violet text link with pink hover + arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; color: var(--violet);
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--pink); }
.link-arrow:hover::after { transform: translateX(3px); }

/* 6) ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--lift { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* 7) ---------- SECTION TINT BANDS ---------- */
.tint-lavender { background: var(--tint-lavender); }
.tint-pink     { background: var(--tint-pink); }
.tint-coral    { background: var(--tint-coral); }
.tint-teal     { background: var(--tint-teal); }
.tint-white    { background: var(--white); }

/* Closing band — a deeper, richer violet than any hero, so every page
   reads open (hero) -> content -> deeper close. */
.band-violet {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand-purple-deep) 82%, var(--navy)) 0%,
    var(--brand-purple-deep) 58%,
    color-mix(in srgb, var(--brand-purple-deep) 88%, var(--brand-purple)) 100%);
  color: #fff;
}
.band-violet h1, .band-violet h2, .band-violet h3 { color: #fff; }

/* 8) ---------- CHEVRON MOTIF ---------- */
/* The upward chevron from the logo — momentum mark. */
.chevron {
  display: inline-block;
  width: 34px; height: 22px;
  background: var(--violet);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 100% 70%, 50% -30%, 0 70%);
}
.chevron--pink  { background: var(--pink); }
.chevron--coral { background: var(--coral); }
.chevron--teal  { background: var(--teal); }
.chevron--sm    { width: 15px; height: 11px; }

/* Climbing row of chevrons */
.chevron-climb { display: inline-flex; gap: 10px; align-items: flex-end; }
.chevron-climb .chevron:nth-child(2) { margin-bottom: 12px; }
.chevron-climb .chevron:nth-child(3) { margin-bottom: 24px; }
.chevron-climb .chevron:nth-child(4) { margin-bottom: 36px; }

/* Chevron bullet for lists */
.chev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.chev-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.chev-list li::before {
  content: ""; flex: none; width: 15px; height: 11px; margin-top: 0.4em;
  background: var(--c, var(--pink));   /* follows the accent token when set */
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 100% 64%, 50% -36%, 0 64%);
}

/* 9) ---------- FLOATING BRAND SHAPES ---------- */
/* Decorative, STATIC on scroll (no parallax). Gentle idle drift only. */
.shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.shapes > * { position: absolute; opacity: 0.55; }
.shape-ring   { border-radius: 50%; border: 12px solid var(--coral); }
.shape-ring--violet { border-color: var(--violet-soft); }
.shape--light { border-color: var(--white); }
.shape-dia    { border: 11px solid var(--teal); border-radius: 8px; transform: rotate(45deg); }
.shape-tri    { width: 0; height: 0; border-left: 36px solid transparent; border-right: 36px solid transparent; border-bottom: 62px solid var(--coral); }
.shape-content { position: relative; z-index: 1; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatDia { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-12px); } }
.anim-float    { animation: floatY 24s ease-in-out infinite; }
.anim-float-dia{ animation: floatDia 24s ease-in-out infinite; }

/* 10) ---------- NAVIGATION ----------
   Fixed header: transparent over the violet hero at page top; frosted
   violet glass once scrolled (.is-scrolled toggled in main.js). */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.site-nav.is-scrolled {
  background: rgba(98, 0, 237, 0.94);   /* fallback when backdrop-filter unsupported */
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(18, 20, 46, 0.22);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-nav.is-scrolled {
    /* Hero violet dominates so the bar reads the same over white, pink, mint
       and dark sections — only a faint glassy quality remains. */
    background: rgba(98, 0, 237, 0.90);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
  }
}
/* White ring reads on both header states */
.site-nav :focus-visible { outline-color: var(--bg); }
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 88px;
  padding-block: 16px;
}
.site-nav__logo { display: inline-flex; align-items: center; }
.site-nav__logo img { height: 66px; width: auto; }   /* largest element in the bar */

.site-nav__links {
  display: flex; align-items: center; gap: 36px;   /* roomy, confident spacing */
}
.nav-link {
  color: #fff; font-size: 1.3rem; font-weight: 600;   /* PRIMARY nav layer */
  white-space: nowrap;
  border-bottom: 3px solid transparent; padding-bottom: 2px;
}
.nav-link:hover { color: #fff; border-bottom-color: rgba(255, 127, 102, 0.55); }
.nav-link.is-active { color: #fff; font-weight: 700; border-bottom-color: var(--coral); }

.site-nav__actions { display: flex; align-items: center; gap: 12px; }

/* Booking pill in nav — the persistent pink primary */
.nav-contact {
  color: #fff; font-size: 0.875rem; font-weight: 600;
  background: var(--pink);
  border: 1.5px solid var(--pink); border-radius: var(--radius-pill);
  padding: 8px 18px; white-space: nowrap;
}
.nav-contact:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* 11) ---------- LANGUAGE SWITCHER ---------- */
.lang { position: relative; }
.lang__toggle {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 11px;
  color: #fff; font-size: 0.875rem; font-weight: 600;   /* supporting control */
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
}
.lang__toggle svg { width: 15px; height: 15px; }   /* globe no larger than link text */
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle:hover { border-color: #fff; color: #fff; }
.lang[open] .lang__toggle { border-color: #fff; color: #fff; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; min-width: 180px; z-index: 120;
  display: flex; flex-direction: column; gap: 2px;
}
.lang__opt {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--navy); font-weight: 600; font-size: var(--fs-small);
  padding: 11px 14px; border-radius: var(--radius-sm);
}
.lang__opt:hover { background: #F7F4EC; color: var(--navy); }
.lang__opt[aria-selected="true"] { color: var(--violet); font-weight: 700; background: var(--tint-lavender); }

/* 12) ---------- MOBILE MENU ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex-direction: column;
  justify-content: center; align-items: center; gap: 4px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  width: 22px; height: 2px; background: #fff;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-menu-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(98, 0, 237, 0.97);
}
.nav-menu-panel .container { display: flex; flex-direction: column; padding-block: var(--space-4); gap: 2px; }
.nav-menu-panel .nav-link { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.nav-menu-panel .nav-contact { margin-top: var(--space-3); text-align: center; }

/* Open state (toggled by JS via [data-open]) */
.site-nav[data-open="true"] .nav-menu-panel { display: block; }
.site-nav[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Breakpoint: collapse to hamburger */
@media (max-width: 960px) {
  :root { --nav-h: 81px; }   /* 48px logo + 2×16px padding + 1px border */
  .site-nav__links { display: none; }
  .site-nav__actions .nav-contact { display: none; }
  .nav-toggle { display: flex; }
  .site-nav__logo img { height: 48px; }
  .site-nav__inner { min-height: 68px; }
  .lang__toggle { height: 44px; }   /* keep the switcher a 44px tap target on mobile */
}

/* 13) ---------- FOOTER ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding-block: clamp(3rem, 6vw, 4rem) 2.5rem;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer__brand img { height: 72px; width: auto; }   /* balances column 1's height */
.site-footer__tagline { font-size: 1rem; line-height: 1.65; max-width: 340px; margin: 0 0 18px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 1rem; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;   /* 44px tap target */
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.site-footer__social a:hover { border-color: #fff; color: #fff; }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__col h4 {
  font-family: var(--font-head); font-size: var(--fs-eyebrow); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--footer-mute); margin: 0 0 4px;
}
.site-footer__email { color: #fff !important; font-weight: 600; }
.site-footer__email:hover { color: var(--coral) !important; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 44px; padding-top: 22px;
  font-size: 0.85rem; color: var(--footer-mute);
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 14) ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.clip { position: relative; overflow: hidden; }
.mt-4 { margin-top: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.flow > * + * { margin-top: var(--space-3); }
.grid { display: grid; gap: var(--space-4); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-eyebrow); font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--tint-lavender); color: var(--violet);
}

/* ==========================================================================
   16) EDITORIAL SECTION COMPONENTS  (reusable across content pages)
   Built only from Stage-1 tokens. Derived shades use color-mix on existing
   tokens — no new tokens, fonts, or colors are introduced.
   ========================================================================== */

/* Readable text measure */
.measure { max-width: 42rem; }


/* ---- Hero emphasis: colored key words (the swipe has been retired) ------
   One signature accent for every hero headline, so emphasis reads the same
   across the site. Rest of the headline stays pure white. */
.hl-word { color: var(--hero-accent); }

/* Editorial hero — left-aligned, tall and airy; shapes carry the right.
   Content is anchored to the container's left edge. */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Inner-page hero — a slim, concise banner on the EXACT logo purple,
     with only a subtle gradient for depth. Left-aligned.
     Top padding clears the fixed transparent header. */
  padding-top: calc(var(--nav-h) + clamp(2.75rem, 5.5vh, 4rem));
  padding-bottom: clamp(3.75rem, 7.5vh, 5.25rem);
  /* A whisper of depth — top-to-bottom deepening, barely perceptible. */
  background: linear-gradient(180deg, #6A0BF0 0%, var(--brand-purple) 52%, #5A00D6 100%);
  color: var(--bg);
}

/* Home hero — the centered, tall showpiece (same exact logo purple). */
.hero--home {
  min-height: clamp(30rem, 62vh, 42rem);
  padding-top: calc(var(--nav-h) + clamp(4.25rem, 11vh, 7rem));
  padding-bottom: clamp(5.75rem, 13.5vh, 9rem);
  text-align: center;
}
.hero--home .hero__actions { justify-content: center; }
.hero--home > .container { max-width: min(1120px, 100%); }
.hero > .container { position: relative; z-index: 1; }

/* Hero action buttons row */
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
/* Near-white lavender kicker — keeps the brand flavor, passes AA on violet */
.hero .eyebrow { color: color-mix(in srgb, var(--violet-soft) 45%, var(--white)); }
.hero h1 {
  max-width: 15ch;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--bg);                              /* warm white on navy */
}
.hero .lead { max-width: 52ch; margin-top: 1.5rem; color: #fff; }

/* Home (centered) uses wider measures so the content fills the field:
   headline over ~2-3 bold lines, subhead over ~2-3. Declared after the
   base .hero rules above so these win. */
.hero.hero--home h1 { max-width: 18ch; margin-inline: auto; }
.hero.hero--home .lead { max-width: 64ch; margin-inline: auto; }

/* Hero decorative shapes — FRAME the left-aligned headline from the corners
   (not clustered). Behind content, clipped by the hero, rebalanced per
   breakpoint, with a subtle slow drift (off under prefers-reduced-motion).
   Roster: hs-1 upper-right · hs-2 lower-right · hs-3 lower-left · hs-4 upper-left. */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-shapes .hs { position: absolute; }

/* Coral + teal + light accents that pop against the violet washes.
   INNER default = fewer/smaller/quieter; .hero--home turns the dial up. */
.hs-1 { border: 11px solid var(--coral); border-radius: 50%; opacity: .26; }        /* ring    */
.hs-2 { border: 10px solid var(--teal); border-radius: 12px; opacity: .28; }        /* diamond */
.hs-3 { width: 0; height: 0; border-left: 32px solid transparent; border-right: 32px solid transparent; border-bottom: 54px solid var(--violet-soft); opacity: .30; } /* triangle */
.hs-4 { border: 8px solid var(--coral); border-radius: 50%; opacity: .24; }         /* ring    */
/* Home-only extras (present only in the Home hero markup) */
.hs-5 { border: 9px solid var(--white); border-radius: 14px; transform: rotate(12deg); opacity: .38; }   /* square   */
.hs-6 { border: 11px solid var(--violet-soft); border-radius: 50%; opacity: .45; }                        /* ring     */
.hs-7 { background: var(--teal); border-radius: 50%; opacity: .55; }                                      /* glow dot */

/* Inner desktop: a right-anchored cluster framing the empty right side of
   the left-aligned banner — never behind the headline/subhead. */
.hs-1 { top: 6%;    right: -66px; width: 160px; height: 160px; }
.hs-2 { top: 16%;   right: 17%;   width: 88px;  height: 88px; }
.hs-3 { bottom: 6%; right: 9%; }
.hs-4 { top: 3%;    left: 7%;     width: 64px;  height: 64px; }
/* re-purpose hs-4 on inner heroes as a white square, low in the cluster */
.hero:not(.hero--home) .hs-4 {
  top: auto; bottom: -26px; left: auto; right: 24%;
  width: 92px; height: 92px;
  border: 8px solid var(--white); border-radius: 14px;
  transform: rotate(14deg); opacity: .28;
}
/* large low-opacity logo chevron bleeding off the right edge */
.hero:not(.hero--home) .hero-shapes::after {
  content: ""; position: absolute;
  right: -110px; top: 50%; transform: translateY(-44%);
  width: 440px; height: 300px; max-width: 42%;
  background: var(--white); opacity: .07;
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 100% 62%, 50% -38%, 0 62%);
}
@media (max-width: 1023px) {
  .hero:not(.hero--home) .hero-shapes::after { display: none; }
  .hero:not(.hero--home) .hs-4 { display: none; }
}

/* Home desktop: larger, more energetic, spread boldly (still behind text) */
/* Quieter now: fewer, smaller, softer — framing the headline, not crowding it */
.hero--home .hs-1 { top: -14%;  right: -205px; width: 250px; height: 250px; border-width: 11px; opacity: .30; }
.hero--home .hs-2 { bottom: 5%;  right: -58px;  width: 112px; height: 112px; border-width: 9px;  opacity: .28; }
.hero--home .hs-3 { bottom: -46px; left: 1%; border-left-width: 42px; border-right-width: 42px; border-bottom-width: 72px; opacity: .32; }
.hero--home .hs-4 { top: -30px; left: 3%;    width: 76px;  height: 76px;  border-width: 8px;  opacity: .28; }
.hero--home .hs-5,
.hero--home .hs-6 { display: none; }   /* retired: they crowded the centred headline */
.hero--home .hs-7 { bottom: 6%;  left: 45%;  width: 16px;  height: 16px; opacity: .38; }

.hs-1 { animation: heroDrift 34s ease-in-out infinite; }
.hs-2 { animation: heroDriftDia 30s ease-in-out 1.5s infinite; }
.hs-3 { animation: heroDrift 36s ease-in-out 2s infinite; }
.hs-4 { animation: heroDrift 28s ease-in-out 1s infinite; }
.hs-5 { animation: heroDrift 32s ease-in-out 2.5s infinite; }
.hs-6 { animation: heroDrift 27s ease-in-out .8s infinite; }
.hs-7 { animation: heroDrift 22s ease-in-out 1.8s infinite; }

@keyframes heroDrift    { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -9px); } }
@keyframes heroDriftDia { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(0, -8px); } }

/* Tablet: three shapes (drop the small upper-left ring + Home extras) */
@media (max-width: 1023px) {
  .hs-4, .hs-5, .hs-6, .hs-7 { display: none !important; }
  .hs-1 { top: 4%; right: -68px; width: 194px; height: 194px; }
  .hs-2 { bottom: 8%; right: 5%; width: 104px; height: 104px; }
  .hs-3 { bottom: 7%; left: 4%; }
  .hero--home .hs-1 { width: 230px; height: 230px; top: 2%; right: -74px; }
  .hero--home .hs-2 { width: 120px; height: 120px; }
  .hero--home .hs-3 { border-left-width: 40px; border-right-width: 40px; border-bottom-width: 68px; }
}

/* Mobile: two small shapes tucked into the top/bottom margin bands, in
   opposite corners — never under the text. */
@media (max-width: 640px) {
  .hs-2, .hs-4, .hs-5, .hs-6, .hs-7 { display: none !important; }
  .hs-1 { width: 48px; height: 48px; top: 13px; right: -14px; border-width: 8px; }
  .hs-3 { bottom: 10px; left: -8px; border-left-width: 26px; border-right-width: 26px; border-bottom-width: 46px; }
  .hero--home .hs-1 { width: 60px; height: 60px; }
  .hero--home .hs-3 { border-left-width: 32px; border-right-width: 32px; border-bottom-width: 56px; }
}

/* Centered CTA over decorative shapes */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { max-width: 40rem; margin-inline: auto; }

/* Light text inside the violet band */
.band-violet .lead { color: #fff; }

/* Pull quote — Bricolage, coral left rule */
.pull-quote {
  margin: 0;
  padding-left: 1.4rem;
  border-left: 5px solid var(--coral);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw + 1rem, 3.25rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-head);
  color: var(--navy);
  text-wrap: balance;
}

/* Oversized faint chevron watermark bleeding off an edge */
.chevron-watermark {
  position: absolute;
  z-index: 0;
  bottom: -120px;
  right: -70px;
  width: 420px;
  height: 290px;
  max-width: 60%;
  background: var(--violet);
  opacity: 0.07;
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 100% 62%, 50% -38%, 0 62%);
  pointer-events: none;
}

/* Card icon: a Lucide inline-SVG in a soft tinted circle chip, colored by the
   card's accent token. Sits inline-LEFT of the title (one unit); the title and
   body form a clean left column beside it. Site-wide card pattern. */
:root { --card-icon-size: 56px; --card-icon-gap: 0.9rem; }

.card-head {
  display: flex;
  align-items: center;
  gap: var(--card-icon-gap);   /* consistent icon-to-title air, site-wide */
  margin-bottom: 0;   /* description sits close under the title — one group */
}
.card-head h3 { margin: 0; }
/* content after an ICON head aligns to the TITLE's left edge, not under the
   icon. Heads without an icon leave their content flush left. */
.card-head:has(.card-icon) ~ * { margin: 0 0 0 calc(var(--card-icon-size) + var(--card-icon-gap)); }
.card-head:has(.card-icon) ~ * ~ * { margin-top: var(--space-2); }

.card-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--card-icon-size, 56px);
  height: var(--card-icon-size, 56px);
  border-radius: 50%;
  color: var(--c, var(--violet));
  background: color-mix(in srgb, var(--c, var(--violet)) 14%, transparent);
}
.card-icon svg { width: 30px; height: 30px; display: block; }

/* Accent tokens — set --c for .card-icon (and any accent-driven component) */
.accent-violet { --c: var(--violet); }
.accent-teal   { --c: var(--teal); }
.accent-coral  { --c: var(--coral); }
.accent-pink   { --c: var(--pink); }

/* Flat tinted card variant (no border/base shadow; tint sets the surface) */
.card--plain { border-color: transparent; box-shadow: none; }

/* Founder split: photo + text; stacks on mobile */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.founder-media { position: relative; padding: 1.6rem 0 2rem; }
.founder-media::before {          /* coral tint circle, top-left */
  content: ""; position: absolute; top: -6px; left: -18px;
  width: 210px; height: 210px; max-width: 90%; aspect-ratio: 1;
  border-radius: 50%; background: var(--tint-coral); z-index: 0;
}
.founder-media::after {           /* coral ring accent, bottom-right */
  content: ""; position: absolute; bottom: 8px; right: -14px;
  width: 128px; height: 128px; border-radius: 50%;
  border: 11px solid var(--coral); opacity: 0.5; z-index: 0;
}
.founder-frame {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 210px 210px 26px 26px;
  box-shadow: var(--shadow-lg);
}
.founder-badge {
  position: relative; z-index: 2;
  margin: -28px auto 0; width: fit-content;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: var(--radius-pill);
  padding: 12px 24px; box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
}
.founder-text { display: flex; flex-direction: column; gap: 1.25rem; }
.founder-text p { margin: 0; }

@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; gap: 2rem; }
  .founder-media { max-width: 340px; margin-inline: auto; }
}

/* Reusable pull-quote — a key line promoted to its own beat */
.pullquote {
  margin: clamp(1.75rem, 4vh, 2.75rem) 0;
  padding-left: 1.2rem;
  border-left: 5px solid var(--coral);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: var(--tracking-head);
  color: var(--navy);
  max-width: 24ch;
  text-wrap: balance;
}
/* Quieter voice variant — italic, centered, no rule (e.g. a motto line) */
.pullquote--voice {
  margin-inline: auto;
  padding-left: 0;
  border-left: 0;
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  max-width: 36ch;
}

/* Founder spotlight — the emotional peak reads as its own room:
   warm near-navy (nudged toward the brand purple), light text, and
   noticeably more air than the default section rhythm. */
.section--founder {
  padding-block: clamp(7rem, 15vh, 11.5rem);
  background: color-mix(in srgb, var(--navy) 94%, var(--brand-purple));
  color: var(--footer-text);
}
.section--founder .eyebrow { color: var(--violet-soft); }
.section--founder h2 { color: #fff; }
.section--founder p.muted { color: var(--footer-text); }
.section--founder .founder-text strong { color: #fff; }
.section--founder .pullquote { color: #fff; }
.section--founder .link-arrow { color: var(--violet-soft); }
.section--founder .link-arrow:hover { color: var(--pink); }

/* Row of equal quiet text-links (wraps on mobile) */
.link-row { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 0.25rem; }


/* ==========================================================================
   17) SERVICE BLOCKS  (alternating content + "includes" card; reusable)
   ========================================================================== */
.service {
  display: grid;
  /* Equal columns + one shared gap for EVERY block; only the card side flips */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}
/* Header (number + title) spans both columns, so the checklist card aligns to
   the CONTENT column — level with the body copy, not with the icon row. */
.service__header { grid-column: 1 / -1; grid-row: 1; }
/* Body spans rows 2-3 so an optional visual can sit under the includes card,
   filling the open space in that column rather than adding page height. */
.service__body { grid-column: 1; grid-row: 2 / 4; }
.service__card { grid-column: 2; grid-row: 2; }
.service__visual { grid-column: 2; grid-row: 3; }
/* Flip: card left, body right. Columns and gap unchanged — only sides swap. */
.service--flip .service__body { grid-column: 2; grid-row: 2 / 4; }
.service--flip .service__card { grid-column: 1; grid-row: 2; }
.service--flip .service__visual { grid-column: 1; grid-row: 3; }


.svc-head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.svc-head h2 { margin: 0; }

/* Lead service — quietly heavier: bigger heading + larger opening line.
   The heart of the studio, signalled by weight rather than a label. */
.service--lead .svc-head h2 { font-size: clamp(2.25rem, 4vw, 3.15rem); }
/* (the value statement below the H2 now carries the opening emphasis, so the
   first paragraph is no longer separately enlarged — one device, not two) */

.service__body > .eyebrow { margin-bottom: var(--space-2); }
.service__intro { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.service__bestfor {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--c, var(--violet)) 22%, transparent);
  max-width: 40rem;
}
.service__bestfor .eyebrow { margin-bottom: 0.35rem; }
.service__bestfor p { margin: 0; color: var(--navy); font-weight: 500; font-size: 1rem; }

/* Value statement beneath a service H2 — the 2-second scan line. Larger and
   heavier than body prose so a scanner grasps the service immediately. */
.svc-descriptor {
  width: 100%; margin: 0.35rem 0 0; max-width: 52rem;   /* full-width statement line */
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.35;
  color: color-mix(in srgb, var(--c, var(--violet)) 38%, var(--navy));
}

/* Pull-statement — the brand line for a commercial service. Set apart
   typographically rather than boxed in yet another card. */
.svc-pull {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding-left: 1.1rem;
  border-left: 4px solid var(--c, var(--violet));
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.3;
  letter-spacing: -0.01em; color: var(--navy);
}
.service__body .btn { margin-top: clamp(1.5rem, 3vw, 1.75rem); }

/* Editorial, not "SaaS dashboard": no float shadow, tighter radius, a tinted
   border in the block's accent, and deliberate list typography. */
.service__card {
  align-self: start;
  box-shadow: none;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--c, var(--violet)) 28%, transparent);
  background: color-mix(in srgb, var(--c, var(--violet)) 4%, var(--white));
  /* Fixed (not fluid) padding so all four cards share one rhythm at every
     viewport; extra bottom room keeps wrapped items off the border. */
  padding: 1.9rem 1.9rem 2.15rem;
}
.service__card h3 {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  /* navy-dominant mix keeps a hint of the accent hue but passes AA on the
     light teal/coral/pink tints (a colored bullet doesn't excuse pale text) */
  color: color-mix(in srgb, var(--c, var(--violet)) 38%, var(--navy));
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--c, var(--violet)) 20%, transparent);
}
.service__card .chev-list { gap: 0.7rem; font-size: 1rem; line-height: 1.55; }
.service__card .chev-list li { color: var(--ink-soft); }
.service__note {
  margin: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--navy);
}
/* Applications/note line sitting inside the body, above the CTA */
.service__body .service__note { margin-top: clamp(1.25rem, 3vw, 1.75rem); }

/* Mobile: one reading order for EVERY block regardless of desktop flip —
   number, title, copy, Best for, includes card, CTA.
   `display: contents` lifts the body's children into the same flex context
   so the card can be ordered between the Best-for line and the button. */
@media (max-width: 860px) {
  .service, .service--flip {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
  }
  .service__body { display: contents; }
  .service__card { order: 5; align-self: stretch; margin-top: clamp(1.75rem, 5vw, 2.5rem); }
  .service__visual { order: 6; align-self: stretch; margin-top: clamp(1.25rem, 4vw, 1.75rem); }
  .service__body > .btn { order: 7; align-self: flex-start; margin-top: clamp(1.5rem, 4vw, 1.75rem); }
}

/* ==========================================================================
   18) PORTFOLIO  (filter bar + case-study cards; reusable)
   ========================================================================== */
.filter-bar { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.filter-chip {
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius-pill);
  background: #F7F4EC; color: var(--ink-soft);
  border: 1.5px solid var(--line-strong); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--violet); color: var(--violet); }
.filter-chip[aria-pressed="true"] { background: var(--violet); color: #fff; border-color: var(--violet); }
.filter-note { max-width: 44rem; margin: 0; text-align: center; font-size: var(--fs-small); font-style: italic; line-height: 1.6; color: var(--ink-mute); }

.case-grid { display: flex; flex-direction: column; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.case-item[hidden] { display: none; }

.case {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.case__media {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  background: color-mix(in srgb, var(--c, var(--violet)) 10%, var(--white));
}
.case__body { padding: clamp(1.5rem, 3.2vw, 2.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.case__head { display: flex; flex-direction: column; gap: 0.35rem; }
.case__head h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; }
.case__loc { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--ink-mute); }
.case__summary {
  margin: 0; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--navy);
}
.case .label { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* Location + category tags beneath the visual */
.case__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case__tags li {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--white); color: color-mix(in srgb, var(--c, var(--violet)) 38%, var(--navy));
  border: 1px solid color-mix(in srgb, var(--c, var(--violet)) 28%, transparent);
}

/* Three-column story row: The challenge / What we did / The outcome */
.case__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.case__col { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.case__col .label { display: flex; align-items: center; gap: 0.4rem; color: color-mix(in srgb, var(--c, var(--violet)) 38%, var(--navy)); }
.case__col .label svg { flex: none; width: 16px; height: 16px; color: var(--c, var(--violet)); }
.case__col p:not(.label) { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 1rem; }
.case__col--outcome p:not(.label) { color: var(--navy); font-weight: 500; }
.case__col .chev-list { font-size: 1rem; line-height: 1.55; gap: 0.5rem; }
@media (max-width: 1100px) { .case__cols { grid-template-columns: 1fr; } }

/* Discretion line sits beneath the list (not above it) */
.case-discretion { margin-top: clamp(2rem, 4vw, 3rem); margin-inline: auto; }

/* Designed placeholder for cards without a consented screenshot — an abstract
   brand graphic (chevron motif in the card's tint). Deliberately NOT a browser
   mockup, so it can never be mistaken for a real client site. */
.case-graphic {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c, var(--violet)) 14%, var(--white));
}
.case-graphic::before {            /* oversized faint chevron, bleeding off */
  content: ""; position: absolute; bottom: -22%; right: -14%;
  width: 78%; height: 92%;
  background: var(--c, var(--violet)); opacity: 0.12;
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 100% 62%, 50% -38%, 0 62%);
}
.case-graphic .chevron-climb { position: relative; z-index: 1; transform: scale(1.35); }
/* Custom line-art icon as the feature graphic; the chevron trio is only a
   fallback shown if the icon file isn't supplied yet (never a broken image). */
.case-graphic__icon { position: relative; z-index: 1; display: block; width: 54%; height: auto; }
.case-graphic .chevron-climb { display: none; }
.case-graphic.is-missing .case-graphic__icon { display: none; }
.case-graphic.is-missing .chevron-climb { display: flex; }

/* browser-mockup screenshot slot */
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--white); box-shadow: var(--shadow-sm); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser__shot {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  background: color-mix(in srgb, var(--c, var(--violet)) 9%, var(--white));
  color: var(--ink-mute); font-family: ui-monospace, monospace; font-size: 0.8rem; letter-spacing: 0.03em;
}
/* real client screenshot in the same frame (1400x875 = 16:10, matches slot) */
.browser__img { display: block; width: 100%; height: auto; }
/* A taller source (e.g. a storefront capture) is cropped to the shared 16:10
   frame, anchored to the top, so every screenshot card keeps the same rhythm. */
.browser__img--fit { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* testimonial + links inside a case */
.testimonial { margin: 0.25rem 0 0; padding-left: 1.25rem; border-left: 4px solid var(--coral); }
.testimonial p { margin: 0 0 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.35; color: var(--navy); }
.testimonial cite { font-style: normal; font-size: var(--fs-small); color: var(--ink-soft); }
.case__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 0.25rem; }
.case-note { max-width: 46rem; margin: 0.9rem 0 0; font-size: var(--fs-small); font-style: italic; line-height: 1.6; color: var(--ink-mute); }

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
}

/* ==========================================================================
   19) COACHING  (walk-away, journey, featured story, callout, FAQ)
   ========================================================================== */
/* Outcome items with an inline-left icon */
.walkaway { display: flex; gap: 0.9rem; align-items: flex-start; }
.walkaway p { margin: 0; line-height: 1.6; color: var(--ink-soft); }
.walkaway strong { color: var(--navy); }

/* Journey — numbered milestones. Mobile: vertical stacked line.
   Desktop (>=768px): horizontal curved timeline (less vertical space). */
.journey { position: relative; }
.journey__num {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--coral); color: var(--coral);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.journey__content h3 { margin: 0 0 0.4rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.journey__content p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.journey__curve { display: none; }

/* Mobile: vertical stacked with a connecting line down the numerals */
@media (max-width: 767px) {
  .journey { display: flex; flex-direction: column; max-width: 46rem; }
  .journey__step {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.25rem; padding-bottom: clamp(1.5rem, 4vw, 2.25rem);
  }
  .journey__step:last-child { padding-bottom: 0; }
  .journey__step:not(:last-child)::before {
    content: ""; position: absolute; top: 56px; bottom: 0; left: 26px; width: 2px;
    background: color-mix(in srgb, var(--coral) 35%, transparent);
  }
  .journey__content { padding-top: 0.5rem; }
}

/* Desktop / tablet: horizontal curved timeline with text alternating above/below */
@media (min-width: 768px) {
  .journey { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(0.5rem, 1.5vw, 1.25rem); }
  /* zero-height item on the numeral row; the SVG overflows it, centered on the line */
  .journey__curve {
    display: block; grid-row: 2; grid-column: 1 / -1;
    position: relative; height: 0; align-self: center; z-index: 0; pointer-events: none;
  }
  .journey__curve svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 130px; }
  .journey__curve path {
    fill: none; stroke: color-mix(in srgb, var(--coral) 55%, transparent);
    stroke-width: 2; vector-effect: non-scaling-stroke;
  }
  /* each step spans the 3 shared rows so above/below sizes to content (no doubling).
     Explicit columns keep the full-width curve from bumping steps into new rows. */
  .journey__step { grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; justify-items: center; text-align: center; position: relative; z-index: 1; }
  .journey__step:nth-child(2) { grid-column: 1; }
  .journey__step:nth-child(3) { grid-column: 2; }
  .journey__step:nth-child(4) { grid-column: 3; }
  .journey__step:nth-child(5) { grid-column: 4; }
  .journey__step:nth-child(6) { grid-column: 5; }
  .journey__num { grid-row: 2; }
  .journey__step[data-pos="above"] .journey__content { grid-row: 1; align-self: end; padding-bottom: 1.1rem; }
  .journey__step[data-pos="below"] .journey__content { grid-row: 3; align-self: start; padding-top: 1.1rem; }
  /* compact timeline text so the horizontal layout stays short */
  .journey__content { max-width: 15rem; }
  .journey__content h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
  .journey__content p { font-size: 0.85rem; line-height: 1.45; }
}

/* Featured story — media + text, two columns */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.featured__body { display: flex; flex-direction: column; gap: 1.1rem; }
.featured__body p { margin: 0; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* The honest part — two-column (intro left, callout right); stacks on mobile */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.honest__text { display: flex; flex-direction: column; gap: 1.25rem; }
.honest__text .section-head { margin-bottom: 0; }
.honest .callout { margin-top: 0; }
@media (max-width: 767px) { .honest { grid-template-columns: 1fr; } }

/* Callout box (the honest part) */
.callout {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--white); border-radius: var(--radius);
  border-left: 4px solid var(--violet); box-shadow: var(--shadow-sm);
}
.callout .label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.callout p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* FAQ accordion — real <button> triggers with aria-expanded/aria-controls.
   Answers are always in the DOM (hidden attribute when collapsed). */
.faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 57rem; margin-inline: auto; }
/* Two-column desktop variant (stacks on mobile) */
.faq--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; align-items: start; max-width: 71rem; }
/* With an odd item count, the final item spans full width as a deliberate row */
.faq--cols .faq-item--full { grid-column: 1 / -1; }
@media (max-width: 860px) { .faq--cols { grid-template-columns: 1fr; } }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item__q { margin: 0; }
.faq-item__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.1rem, 3vw, 1.5rem);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy);
  border-radius: var(--radius);
}
.faq-item__btn::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq-item__btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq-item__a { padding: 0 clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.3rem); }
.faq-item__a p { margin: 0; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   20) CONTACT  (form + sidebar, process steps, centered quote)
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 60fr 40fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.req { color: var(--pink); }
.opt { font-weight: 400; color: var(--ink-mute); }
.field__help { margin: 0.15rem 0 0; font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.5; }
.form-control {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control::placeholder { color: var(--ink-mute); }
.form-control:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 20%, transparent);
}
textarea.form-control { min-height: 148px; resize: vertical; }
select.form-control {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235B2EE5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.form > .btn { align-self: flex-start; margin-top: 0.4rem; }
.form-status { margin: 0.25rem 0 0; font-size: var(--fs-small); line-height: 1.5; min-height: 1.5em; }
.form-status[data-state="error"] { color: var(--pink); font-weight: 600; }
.form-status[data-state="info"] { color: var(--ink-soft); }
.form-success { outline: none; }

/* Direct-contact sidebar list */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 20px; height: 20px; color: var(--violet); margin-top: 2px; }
.contact-list a { font-weight: 600; }
.contact-list address { font-style: normal; color: var(--ink-soft); line-height: 1.55; }
.contact-list__text { color: var(--ink-soft); line-height: 1.55; }

/* Numbered process steps (3 across; stack on mobile) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 0.75rem; }
.step__head { display: flex; align-items: center; gap: 0.9rem; }
.step__num {
  flex: none;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--coral); color: var(--coral);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); white-space: nowrap; }
.step p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 1.1875rem; }

/* Calendar embed — responsive frame around the live Google scheduler iframe */
.cal-embed {
  max-width: 46rem; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white);
}
.cal-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }

/* Section divider rule */
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Centered italic pull-quote */
.quote-center {
  max-width: 45rem; margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center; font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--navy);
}

/* ==========================================================================
   22) CONVERSION HOME  (pullquote, dark founder room, trust row, strip)
   ========================================================================== */
/* Hand-off pull-quote — coral bar, display face, inherits surface color */
.pullquote {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0;
  padding-left: 1.4rem;
  border-left: 5px solid var(--coral);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

/* Dark near-navy "room" — the founder section's distinct space */
.room-dark { background: var(--navy); color: rgba(255, 255, 255, 0.88); }
.room-dark h1, .room-dark h2, .room-dark h3 { color: #fff; }
.room-dark .eyebrow { color: color-mix(in srgb, var(--violet-soft) 45%, var(--white)); }
.room-dark p { color: rgba(255, 255, 255, 0.88); }
.room-dark .founder-text p { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.75; }
.room-dark .founder-text p strong { color: #fff; }
.room-dark .pullquote { color: #fff; }
.room-dark .quote-center { color: #fff; }
.room-dark .link-arrow { color: color-mix(in srgb, var(--violet-soft) 55%, var(--white)); }
.room-dark .link-arrow:hover { color: var(--coral); }
.room-dark :focus-visible { outline-color: var(--bg); }

/* Trust row under hero CTAs — real reasons-to-hire, not fine print */
.trust-row {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  font-size: 1.0625rem; font-weight: 600; color: #fff;
}
.hero--home .trust-row { justify-content: center; }
.trust-row li { display: inline-flex; align-items: center; gap: 0.6rem; }
.trust-row li + li::before { content: "·"; opacity: 0.7; }
/* Locales with fewer chips leave a slot empty — drop it (and its dot) */
.trust-row li:empty { display: none; }

/* Differentiators — three bold reasons with one supporting line each */
.diff-item h3 { font-size: 1.19rem; margin-bottom: 0.4rem; }
.diff-item p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* Editorial section header row: heading left, quiet action link right.
   flex-direction must reset to row — the base .section-head is a column. */
.section-head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; max-width: none;
}
.section-head--row > div { max-width: 46rem; }

/* Snug work card — trimmed padding + tighter grid so screenshots carry it.
   All text left-aligned with consistent spacing. */
/* Equal-height cards: stretch the row, then push the action link to a common
   baseline so all three "View case study" links line up. */
.work-grid { gap: 1rem; align-items: stretch; }
.work-card { padding: 1.1rem 1.1rem 1.4rem; display: flex; flex-direction: column; }
.work-card .card-head { margin-top: 1rem; }
.work-card h3 { font-size: 1.25rem; }
.work-card p { margin-bottom: 0.5rem; text-align: left; }
.work-card .link-arrow { margin-top: auto; padding-top: 0.75rem; align-self: flex-start; }

/* Typographic founder story (no photo on Home) */
.room-dark .story { position: relative; z-index: 1; max-width: 46rem; }
.room-dark .story p { font-size: 1.15rem; line-height: 1.65; }
/* Story column vertically centers against the tall headshot */
.room-dark .founder { align-items: center; }
.room-dark .founder-media { padding-top: 0; }
.room-dark .story p strong { color: #fff; }
.room-dark .chevron-watermark { background: var(--white); opacity: 0.05; }

/* ==========================================================================
   23) PROOF STRIP  (compact 3-up thumbnails; not a full portfolio card set)
   ========================================================================== */
.proof-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(2.25rem, 5vw, 3.25rem);   /* air under the kicker */
  align-items: stretch;                       /* equal-height items */
}
.proof-item { display: flex; flex-direction: column; }
.proof-item img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.proof-item h3 { margin: 0.85rem 0 0.15rem; font-size: 1.05rem; line-height: 1.3; }
.proof-item p { margin: 0; font-size: var(--fs-small); color: var(--ink-mute); }
@media (max-width: 720px) { .proof-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   23b) SCROLL STRIP  (horizontal scroll-snap row of work cards — user-driven,
        no auto-advance. Arrows on wide screens, native swipe on phones.)
   ========================================================================== */
.strip { position: relative; }
.strip__nav { display: flex; gap: 0.5rem; justify-content: flex-end; flex: none; }
/* Arrows live in the section header row (next to the "view all" link), so the
   strip adds no vertical space over the old three-card grid. */
.section-head__actions { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.section-head--row > .section-head__actions { max-width: none; }
.strip__btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--navy);
  cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.strip__btn svg { width: 20px; height: 20px; }
.strip__btn:hover { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }
.strip__btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.strip__btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.strip__btn[aria-disabled="true"]:hover { background: var(--white); border-color: var(--line-strong); color: var(--navy); }
.strip { --strip-gap: 1rem; }                                  /* Home work cards: same 1rem as the old grid */
.strip--proof { --strip-gap: clamp(1.5rem, 3vw, 2.25rem); }    /* Services proof strip: same gap as the old proof grid */
.strip__track {
  list-style: none; margin: 0; padding: 0.5rem 0 0.75rem;   /* top: room for the hover lift; bottom: scrollbar */
  display: flex; gap: var(--strip-gap); align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.strip__track:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: var(--radius); }
/* Three cards + two 1rem gaps = the old three-column grid, card for card */
.strip__item { flex: 0 0 calc((100% - 2 * var(--strip-gap)) / 3); min-width: 0; display: flex; scroll-snap-align: start; }
.strip__item > * { width: 100%; }
.strip .proof-item { height: 100%; }
@media (max-width: 900px) { .strip__item { flex-basis: calc((100% - var(--strip-gap)) / 2); } }
@media (max-width: 640px) {
  .strip__item { flex-basis: 82%; }          /* ~1.2 cards visible: the next peeks in */
  .strip__nav { display: none; }             /* phones: native swipe */
}
@media (prefers-reduced-motion: reduce) { .strip__track { scroll-behavior: auto; } }

/* ==========================================================================
   23c) FOR STUDENTS — comparison columns, grade timeline, note box
   ========================================================================== */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2rem, 4vw, 2.75rem); }
.compare__col h3 { font-size: 1.15rem; margin: 0 0 0.25rem; padding-bottom: 0.65rem; }
.compare__col--muted h3 { color: var(--ink-mute); border-bottom: 1px solid var(--line-strong); }
.compare__col--accent h3 { color: var(--brand-purple); border-bottom: 4px solid var(--brand-purple); }
.compare__col ul { list-style: none; margin: 0; padding: 0; }
.compare__col li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.compare__col--muted li { color: var(--ink-soft); }
.compare__col--accent li { color: var(--navy); font-weight: 500; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

.timeline { margin-top: clamp(2rem, 4vw, 2.75rem); max-width: 52rem; margin-inline: auto; }
.timeline__row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.25rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__label { margin: 0; font-weight: 700; color: var(--brand-purple); }
.timeline__text { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.timeline__text strong { color: var(--navy); }
@media (max-width: 640px) { .timeline__row { grid-template-columns: 1fr; padding: 0.9rem 0; } }

.note-box { max-width: 52rem; margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; padding: 1.25rem 1.5rem; background: var(--tint-lavender); border-left: 4px solid var(--brand-purple); border-radius: var(--radius); }
.note-box p { margin: 0; color: var(--navy); line-height: 1.6; }

/* Second featured story (For Students): one main frame + two supporting shots */
.featured--flip .featured__media { order: 2; }
.featured__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.85rem; }
.featured__thumbs img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .featured--flip .featured__media { order: 0; } }

/* ==========================================================================
   24) SERVICE CHOOSER  (question -> service, plain text + links for AIEO)
   ========================================================================== */
/* Answer-forward: the SERVICE is the headline, the question supports it.
   Brand-tinted + Lucide icon so it ties back to the service sections. */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.chooser-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--c, var(--violet)) 22%, transparent);
}
.chooser-card .card-head { margin-bottom: 0.85rem; }
.chooser-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); color: var(--navy); }
.chooser__for { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.6; font-size: 1rem; }
.chooser__for strong { color: color-mix(in srgb, var(--c, var(--violet)) 38%, var(--navy)); }
.chooser-card .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 720px) { .chooser { grid-template-columns: 1fr; } }

/* ==========================================================================
   25) BACK TO TOP  (revealed once the hero scrolls away; site-wide)
   ========================================================================== */
.to-top {
  position: fixed; right: 2rem; bottom: 2rem;
  z-index: 90;                       /* under the header (100), above content */
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-purple); color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 20, 46, 0.28);
  opacity: 0; transform: translateY(10px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease),
              background 200ms var(--ease);
}
.to-top[hidden] { display: none; }    /* keeps it out of the tab order when away */
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: color-mix(in srgb, var(--brand-purple) 82%, var(--navy)); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .to-top { right: 1.1rem; bottom: 1.1rem; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transform: none; transition: opacity 150ms linear; }
  .to-top.is-visible { transform: none; }
}

/* ==========================================================================
   26) MOBILE AUDIT FIXES  (≤640px) — tap targets, legibility, rhythm
   ========================================================================== */
.filter-chip { min-height: 44px; }        /* 44px tap target on every viewport */

@media (max-width: 640px) {
  /* Legibility: supporting text and control labels never below 16px */
  :root { --fs-small: 1rem; }
  .btn { font-size: 1rem; }
  .field > label { font-size: 1rem; }
  .case__tags li { font-size: 0.875rem; }

  /* Headlines scale down instead of running to 5 lines */
  .hero:not(.hero--home) h1 { font-size: clamp(2.25rem, 10.5vw, 2.6rem); }
  .hero--home h1 { font-size: clamp(2.5rem, 11.5vw, 2.85rem); }

  /* Rhythm: tighter than desktop, still airy */
  .section { padding-block: 4rem; }
  .section--spacious { padding-block: 5rem; }
  .section--tight { padding-block: 3rem; }
  .section--founder { padding-block: 5rem; }   /* About's founder spotlight has its own padding */
  .hero { padding-top: calc(var(--nav-h) + 2.25rem); padding-bottom: 3rem; }
  .hero--home { padding-top: calc(var(--nav-h) + 3.25rem); padding-bottom: 4rem; min-height: 0; }

  /* Contact sidebar links: comfortable touch area */
  .contact-list a { display: inline-block; padding-block: 0.45rem; }
}

/* ==========================================================================
   27) I18N  (language switcher states, CJK rendering)
   ========================================================================== */
/* Switcher: sub-line under an option — only used by the build's safety net
   (page not translated yet → that language's Home / coming soon). Once every
   page exists in every language these never render. */
.lang__opt { flex-wrap: wrap; }
.lang__sub { flex-basis: 100%; font-size: 0.8rem; font-weight: 500; color: var(--ink-mute); margin-top: 0.15rem; }
.lang__opt.is-disabled { color: var(--ink-mute); cursor: not-allowed; }
.lang__opt.is-disabled:hover { background: transparent; color: var(--ink-mute); }

/* CJK rendering: Chinese runs denser per glyph and has no word spaces, so
   give it more leading, drop Latin-style tracking, and allow safe breaks. */
html[lang^="zh"] body { line-height: 1.75; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4 { letter-spacing: 0; line-height: 1.28; }
html[lang^="zh"] .hero h1 { line-height: 1.2; }
html[lang^="zh"] .eyebrow, html[lang^="zh"] .case .label, html[lang^="zh"] .service__card h3 { letter-spacing: 0.08em; }
html[lang^="zh"] .svc-descriptor, html[lang^="zh"] .pullquote, html[lang^="zh"] .svc-pull { line-height: 1.45; }
html[lang^="zh"] p, html[lang^="zh"] li, html[lang^="zh"] .lead { overflow-wrap: anywhere; }

/* Chinese Home headline: CJK wraps at any glyph, so steer the breaks.
   Phones: a touch smaller so line 1 ends on the comma and the coral phrase
   starts a fresh line (3 lines instead of 4, no split "願景/愿景"). */
@media (max-width: 640px) {
  html[lang^="zh"] .hero--home h1 { font-size: clamp(2.35rem, 10.5vw, 2.6rem); }
  /* Inner heroes: the coral phrase stays whole even on phones (About's is
     8 glyphs — check any new page's phrase fits ~8 glyphs at 320px, or scope
     this out for that page). Floor lowered so 8 glyphs fit a 320px screen. */
  html[lang^="zh"] .hero:not(.hero--home) h1 { font-size: clamp(2rem, 10.5vw, 2.6rem); }
  html[lang^="zh"] .hero:not(.hero--home) h1 .hl-word { white-space: nowrap; }
}
/* Wider screens: keep the coral phrase on one line so the emphasis reads as
   a unit (Home: "你的公司與願景，" / "遠不止一個模板平台可以承托。" — 12 glyphs,
   always fits the container at --fs-display from 700px up). Home also drops
   its ch-based max-width; inner heroes keep theirs. */
@media (min-width: 700px) {
  html[lang^="zh"] .hero.hero--home h1 { max-width: none; }
  html[lang^="zh"] .hero h1 .hl-word { white-space: nowrap; }
}
/* Contact (zh) headline is 9 glyphs + 5-glyph coral phrase + 。. Headings
   use text-wrap: balance, which prefers the even 8/6 split and cuts "一次"
   in half. Wrap normally and cap the measure in em so line 1 is exactly
   "你的願景，值得一次" and the phrase starts line 2, at every width. */
html[lang^="zh"] .page-contact .hero h1 { max-width: 9.5em; text-wrap: auto; }
@media (max-width: 640px) {
  html[lang^="zh"] .page-contact .hero h1 { font-size: clamp(1.6rem, 9.2vw, 2.6rem); }
}
/* The denser CJK body leading must not grow the fixed header past --nav-h
   (it pushed it to 99px and under the language notice). */
html[lang^="zh"] .site-nav { line-height: 1.65; }

/* 15) ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
