/*
 * Angkor Design — design layer v2 (loaded after styles.css and design-flat.css).
 *
 * The structure, type and shapes come from the owner's own site, devolapp.com,
 * read from that site's stylesheet (ink #000000, line #e1e2da, panel #f4f4f2,
 * muted #55585e; dark: bg #000000, panel #0d0d0d, line #262626, text #f4f5ef,
 * muted #9a9da3; radius 4px buttons / 6px small / 10px cards / 14px menu bar;
 * Unbounded 600 headings with -0.04em tracking, Poppins text; buttons uppercase
 * 13-14px / 600 / +0.08em that invert on hover).
 *
 * The ACCENT is deliberately not Devol's lime: Angkor Design uses a light
 * marker-pen orange, #ffb236 (hover #ffc766, tint #fff1da), so the two sites do
 * not look like one. Ink text always sits on it (10:1).
 *
 * One file, so it can be reviewed as a whole and switched off by removing its
 * <link> in layouts/site.blade.php. It works by re-pointing the old colour
 * tokens (the names are historical: --gold* means "the accent", see CLAUDE.md
 * §5), then restyling shapes and type. Every rule starts with `:root` so it wins
 * over the stacked overrides in styles.css without !important. No gradients:
 * design-flat.css flattens them.
 */

/* ======================================================================
   1. Tokens
   ====================================================================== */
:root {
  --v2-mark: #ffb236;
  --v2-mark-hover: #ffc766;
  --v2-mark-tint: #fff1da;
  --v2-ink: #000000;
  --v2-panel: #0d0d0d;
  --v2-display: 'Unbounded', var(--font-body);

  --gold: #ffb236;
  --gold-bright: #ffb236;
  --gold-deep: #000000;
  --gold-soft: #f4f4f2;
  --ramp-1: #ffb236;
  --ramp-2: #ffb236;
  --ramp-3: #ffb236;
  --ramp-h1: #ffc766;
  --ramp-h2: #ffc766;
  --ramp-h3: #ffc766;
  --on-gold: #000000;
  --brand-burgundy: #000000;
  --brand-burgundy-mid: #0d0d0d;
  --brand-burgundy-deep: #000000;

  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --bg-tint: #f8f8f6;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #2b2d31;
  --muted: #55585e;
  --line: #e1e2da;
  --line-strong: #c9cbc0;
  --accent: #000000;

  --deep-bg: #000000;
  --deep-ink: #f4f5ef;
  --deep-muted: #9a9da3;
  --deep-line: #262626;
  --grad-deep-band: #000000;
  --grad-gold: #ffb236;
  --grad-gold-soft: none;
  --glass-bg: #ffffff;
  --glass-border: #e1e2da;
  --glass-rim: transparent;
  --glass-glow: none;

  --shadow-sm: none;
  --shadow-card: none;
  --shadow-card-hover: none;

  --radius: 10px;
  --radius-sm: 6px;

  --v2-rule: #e1e2da;
  --v2-float: 0 30px 60px -34px rgba(0, 0, 0, 0.35);
}

:root[data-theme='dark'],
:root[data-theme='auto'][data-night='1'] {
  --gold: #ffb236;
  --gold-bright: #ffb236;
  --gold-deep: #ffb236;
  --gold-soft: #1c1c1f;
  --ramp-1: #ffb236;
  --ramp-2: #ffb236;
  --ramp-3: #ffb236;
  --ramp-h1: #ffc766;
  --ramp-h2: #ffc766;
  --ramp-h3: #ffc766;
  --on-gold: #000000;

  --bg: #000000;
  --bg-alt: #0d0d0d;
  --bg-tint: #080808;
  --surface: #0d0d0d;
  --ink: #f4f5ef;
  --ink-soft: #d9dad2;
  --muted: #9a9da3;
  --line: #262626;
  --line-strong: #3a3a3a;
  --accent: #ffb236;

  --deep-bg: #000000;
  --deep-ink: #f4f5ef;
  --deep-muted: #9a9da3;
  --deep-line: #262626;
  --grad-gold: #ffb236;
  --grad-gold-soft: none;
  --grad-deep-band: #000000;
  --glass-bg: #0d0d0d;
  --glass-border: #262626;
  --v2-rule: #262626;
  --v2-float: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --gold: #ffb236;
    --gold-bright: #ffb236;
    --gold-deep: #ffb236;
    --gold-soft: #1c1c1f;
    --ramp-1: #ffb236;
    --ramp-2: #ffb236;
    --ramp-3: #ffb236;
    --ramp-h1: #ffc766;
    --ramp-h2: #ffc766;
    --ramp-h3: #ffc766;
    --on-gold: #000000;

    --bg: #000000;
    --bg-alt: #0d0d0d;
    --bg-tint: #080808;
    --surface: #0d0d0d;
    --ink: #f4f5ef;
    --ink-soft: #d9dad2;
    --muted: #9a9da3;
    --line: #262626;
    --line-strong: #3a3a3a;
    --accent: #ffb236;

    --deep-bg: #000000;
    --deep-ink: #f4f5ef;
    --deep-muted: #9a9da3;
    --deep-line: #262626;
    --grad-gold: #ffb236;
    --grad-gold-soft: none;
    --grad-deep-band: #000000;
    --glass-bg: #0d0d0d;
    --glass-border: #262626;
    --v2-rule: #262626;
    --v2-float: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
}

/* ======================================================================
   2. Type
   ====================================================================== */
:root h1,
:root h2,
:root .display {
  font-family: var(--v2-display);
  font-weight: 600;
  letter-spacing: -0.04em;
}
:root h2.display,
:root h2 {
  font-size: clamp(20px, 1.2vw + 12px, 28px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
/* Big, Devol-sized titles only for the home page's section headings. */
:root :is(.section-head, .home-build__intro, .home-process__head, .home-journal__head, .home-testimonials__head, .home-faq__main > .section-head) h2,
:root .home-welcome__title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
/* Content headings: calm. */
:root :is(.prose, .stack-lg .prose, .tool-page__copy, .reading-main, .article, .service-main, .author-block, .dl__copy) h2 {
  font-size: clamp(20px, 1.1vw + 13px, 26px);
  line-height: 1.25;
}
:root :is(.prose, .reading-main, .article, .service-main, .author-block, .dl__copy) h3 {
  font-size: clamp(16px, 0.6vw + 12px, 19px);
  line-height: 1.3;
}
:root .prose-box h2,
:root .aside-card__title,
:root .home-faq__tools-title,
:root .tool-page__shelf-name {
  font-size: clamp(15px, 0.5vw + 12px, 18px);
  line-height: 1.3;
}
:root .prose h2,
:root .stack-lg .prose h2,
:root .prose-box h2 {
  font-family: var(--v2-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}
:root .prose h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}
/* Devol's text links: ink, with a lime underline. */
:root .prose a,
:root .article a:not(.btn),
:root .reading-main p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--v2-mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:root .prose a:hover {
  background: var(--v2-mark);
  color: #000000;
}
:root .hairline::after,
:root .stack-lg .prose h2::after {
  height: 4px;
  width: 48px;
  border-radius: 0;
  background: var(--v2-mark);
}

/* Section labels: a short heavy rule, then "01  LABEL" (devolapp.com). */
:root main {
  counter-reset: v2-section;
}
:root .home-welcome,
:root .home-build,
:root .home-compare,
:root .home-pricing,
:root .home-work,
:root .home-process,
:root .home-journal,
:root .home-testimonials,
:root .home-faq {
  counter-increment: v2-section;
}
:root .section-head .eyebrow,
:root .home-build__intro > .eyebrow,
:root .home-process__head .eyebrow,
:root .home-journal__head .eyebrow,
:root .home-testimonials__head .eyebrow,
:root .home-welcome__meta .eyebrow,
:root .home-pricing .eyebrow,
:root .home-work .eyebrow,
:root .home-compare .eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  min-width: min(100%, 240px);
  max-width: 100%;
  margin: 0 0 14px;
  padding: 12px 0 0;
  background: none;
  border: 0;
  border-top: 3px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
:root .home-welcome .eyebrow::before,
:root .home-build .eyebrow::before,
:root .home-compare .eyebrow::before,
:root .home-pricing .eyebrow::before,
:root .home-work .eyebrow::before,
:root .home-process .eyebrow::before,
:root .home-journal .eyebrow::before,
:root .home-testimonials .eyebrow::before,
:root .home-faq .eyebrow::before {
  content: counter(v2-section, decimal-leading-zero);
  font-family: var(--v2-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
:root .section-head--center .eyebrow {
  margin-inline: auto;
}
:root .section-head--center .eyebrow::after {
  display: none;
}

/* ======================================================================
   3. Buttons: 4px corners, uppercase, lime, invert on hover
   ====================================================================== */
:root .btn {
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
:root .btn--primary {
  background: var(--v2-mark);
  color: #000000;
  border: 2px solid transparent;
  box-shadow: none;
}
:root .btn--primary::before {
  display: none;
}
:root .btn--primary:hover,
:root .btn--primary:focus-visible {
  background: var(--ink);
  color: var(--bg);
  transform: none;
}
:root .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
:root .btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
:root .btn--on-deep {
  background: var(--v2-mark);
  color: #000000;
}
:root .btn--on-deep:hover {
  background: #f4f5ef;
  color: #000000;
}

/* ======================================================================
   4. Header: the black "island"
   ====================================================================== */
:root .site-header__bar,
:root .site-header.is-scrolled .site-header__bar {
  --ink: #f4f5ef;
  --muted: #9a9da3;
  --surface: #000000;
  --line: rgba(255, 255, 255, 0.1);
  --gold-deep: #ffb236;
  background: #000000;
  border: 0;
  border-radius: 14px;
  padding: 6px 6px 6px clamp(14px, 1.6vw, 20px);
  min-height: 58px;
  color: #f4f5ef;
  box-shadow:
    0 18px 40px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root .site-header__logo-img--light {
  display: none;
}
:root .site-header__logo-img--dark {
  display: inline-block;
}
:root .site-header__bar a,
:root .site-header__bar button {
  color: inherit;
}
/* Menu links: uppercase, small, muted; the current one on a faint pill. */
:root .site-header__bar nav a,
:root .site-header__bar nav button,
:root .site-header__bar [class*='nav'] > a {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9da3;
}
:root .site-header__bar nav a:hover,
:root .site-header__bar nav button:hover,
:root .site-header__bar nav [aria-current='page'],
:root .site-header__bar nav .is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #f4f5ef;
}
:root .site-header__bar .btn,
:root .site-header__actions .btn--primary,
:root .site-header__bar [class*='cta'] {
  background: var(--v2-mark);
  color: #000000;
  border: 0;
  border-radius: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  box-shadow: none;
}
:root .site-header__bar .btn:hover {
  background: #f4f5ef;
  color: #000000;
}

/* ======================================================================
   5. Home hero
   ====================================================================== */
:root .hero {
  background: var(--bg);
  color: var(--ink);
  min-height: 0;
  padding-top: calc(var(--header-h) + clamp(44px, 5.5vw, 84px));
  padding-bottom: clamp(36px, 4vw, 64px);
}
:root .hero::after,
:root .hero__aura,
:root .hero__orb {
  display: none;
}
:root .hero__grid {
  display: none;
}
:root .hero__inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
}
:root .hero__copy {
  max-width: none;
}
:root .hero h1 {
  color: var(--ink);
  font-size: clamp(27px, 4.05vw, 64px); /* 25% smaller than before */
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 22px 0 26px;
}
:root .hero h1 .particle-text,
:root .hero h1 .accent {
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  background: none;
  animation: none;
  letter-spacing: inherit;
}
:root .hero h1 .particle-text__canvas {
  display: none;
}
:root .hero h1 .accent strong,
:root .home-welcome__accent {
  font-weight: 600;
  background: var(--v2-mark);
  color: #000000;
  -webkit-text-fill-color: #000000;
  padding: 0 0.14em;
  border-radius: 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
:root .hero .eyebrow--chip {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 7px 12px;
}
:root .hero .eyebrow--chip::before {
  background: var(--v2-mark);
  box-shadow: none;
}
:root .hero .lede {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  max-width: 46ch;
}
:root .hero__actions .btn--primary {
  background: var(--v2-mark);
  color: #000000;
}
:root .hero__actions .btn--primary:hover {
  background: var(--ink);
  color: var(--bg);
}
:root .hero__actions .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
:root .hero__actions .btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
:root .hero__tour,
:root .hero__tour-btn,
:root .hero__tour-btn .tourlink__pre {
  color: var(--muted);
  white-space: nowrap;
}
:root .hero__tour-btn .tourlink__label {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--v2-mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* Stats: a thin rule with a short lime stub, big Unbounded numerals. */
:root .hero__trust {
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
  margin-top: 36px;
  gap: clamp(20px, 3vw, 40px);
}
:root .hero__trust span {
  position: relative;
  border: 0;
  border-top: 1px solid var(--line-strong);
  padding: 16px 0 0;
  min-width: 120px;
}
:root .hero__trust span::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 28%;
  height: 3px;
  background: var(--v2-mark);
}
:root .hero__trust b {
  font-family: var(--v2-display);
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}
:root .hero__trust em {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
:root .hero__showcase-shell::before {
  display: none;
}
:root .hero-slider__frame {
  border-radius: 10px;
  border: 1px solid var(--ink);
  box-shadow: 16px 16px 0 -2px var(--v2-mark);
}

/* The domain search box under the hero buttons. */
:root .home-tools-search__form {
  border-radius: 8px;
  background: #000000;
  border: 0;
}
:root .home-tools-search__go {
  background: var(--v2-mark);
  color: #000000;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:root .home-tools-search__prefix {
  color: var(--v2-mark);
}

/* ======================================================================
   6. Panels and cards: 1px line, 10px corners, no shadow
   ====================================================================== */
:root .card,
:root .work-card,
:root .pricing-card,
:root .tool-card,
:root .aside-card,
:root .post-card,
:root .prose-box,
:root .aside-service,
:root .faq-ask,
:root .inquiry-form,
:root .case-hero__card,
:root .case-slider__stage,
:root .case-overview,
:root .case-facts,
:root .article__cover,
:root .author-card,
:root .tool-page__side,
:root .glossary__card,
:root .testi-card,
:root .faq-item,
:root .office-card,
:root .home-welcome__copy,
:root .home-studio-visual,
:root .home-story-card,
:root .home-faq__tools,
:root .compare__col,
:root .home-build__row,
:root .home-journal__figure {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--surface);
}
:root .home-welcome__inner,
:root .home-build__item,
:root .pricing__switch {
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root .work-card,
:root .post-card,
:root .tool-card,
:root .glossary__card,
:root .testi-card,
:root .home-build__row,
:root .pricing-card {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s,
    background-color 0.3s;
}
:root .work-card:hover,
:root .post-card:hover,
:root .tool-card:hover,
:root .glossary__card:hover,
:root .testi-card:hover,
:root .home-build__row:hover {
  border-color: var(--ink);
  box-shadow: none;
  transform: translateY(-3px);
}
:root .home-build__row:hover {
  background: var(--v2-mark);
  color: #000000;
  --ink: #000000;
  --muted: #2b2d31;
}
:root .section--tint {
  background: var(--bg-alt);
}

/* "Us vs them": the good column is the lime card (Devol's .is-accent). */
:root .compare__col--good {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  color: #000000;
  --ink: #000000;
  --muted: #2b2d31;
  --line: rgba(0, 0, 0, 0.2);
}
:root .compare__col--good strong,
:root .compare__col--good .compare__mark {
  color: #000000;
}
:root .compare__bridge {
  background: #000000;
  color: var(--v2-mark);
  box-shadow: none;
}

/* Black blocks: sidebar CTA, closing banner, plan cards. Lime button inside. */
:root .aside-cta,
:root .cta-band,
:root .closing-cta,
:root .pricing-card--quote {
  background: #000000;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  color: #f4f5ef;
  --ink: #f4f5ef;
  --muted: #9a9da3;
  --line: #262626;
}
:root .cta-band__mesh {
  display: none;
}
:root .aside-cta__title,
:root .cta-band h2,
:root .closing-cta h2,
:root .aside-card__title,
:root .home-faq__tools-title,
:root .tool-page__shelf-name {
  font-family: var(--v2-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}
:root .cta-band h2 {
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.1;
}
:root .aside-cta__btn,
:root .closing-cta__button,
:root .pricing-card--quote .pricing-card__cta,
:root .cta-band .btn--on-deep {
  background: var(--v2-mark);
  color: #000000;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12.5px;
}
:root .aside-cta__btn:hover,
:root .closing-cta__button:hover {
  background: #f4f5ef;
}
:root .pricing-card--featured {
  background: var(--v2-mark);
  border-color: #000000;
  color: #000000;
  --ink: #000000;
  --muted: #2b2d31;
  --line: rgba(0, 0, 0, 0.22);
  box-shadow: 10px 10px 0 -2px #000000;
}
:root .pricing-card__amount,
:root .pricing-card__name {
  font-family: var(--v2-display);
  font-weight: 600;
  letter-spacing: -0.04em;
}
:root .pricing-card__cta {
  border-radius: 4px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12.5px;
}
:root .pricing-card--featured .pricing-card__cta {
  background: #000000;
  color: var(--v2-mark);
}
:root .pricing-card__badge,
:root .pricing__save {
  border-radius: 4px;
}
:root .compare__col .compare__outcome strong {
  font-family: var(--v2-display);
  font-weight: 600;
}

/* ======================================================================
   7. Inner pages: banner, filters, forms, footer
   ====================================================================== */
:root .page-intro {
  background: var(--bg);
  color: var(--ink);
  padding-top: calc(var(--header-h) + clamp(36px, 4.6vw, 72px));
  padding-bottom: clamp(30px, 3.6vw, 56px);
  border-bottom: 2px solid var(--ink);
}
:root .page-intro::before {
  display: none;
}
/* A lime shape behind an outlined card on the right, the way Devol's banners
   carry an illustration. Decoration only. */
:root .page-intro::after {
  content: '';
  display: block;
  position: absolute;
  right: max(5vw, calc((100vw - var(--container)) / 2 + 40px));
  top: calc(var(--header-h) + 36px);
  bottom: auto;
  left: auto;
  width: clamp(120px, 17vw, 250px);
  height: clamp(150px, 21vw, 300px);
  background: var(--v2-mark);
  border-radius: 18px;
  transform: rotate(7deg);
  box-shadow: -34px 26px 0 -6px var(--bg), -34px 26px 0 -4px var(--ink);
  pointer-events: none;
  z-index: -1;
}
:root .page-intro__grid {
  display: block;
}
:root .page-intro__lead {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
:root .page-intro__lead::before {
  display: none;
}
:root .page-intro h1 {
  font-family: var(--v2-display);
  font-size: clamp(22px, 2.64vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.05em;
  text-transform: none;
  color: var(--ink);
  max-width: 16ch;
}
:root .page-intro h1::after {
  display: none;
}
:root .page-intro .lede,
:root .page-intro__grid .lede {
  margin: clamp(20px, 2.2vw, 30px) 0 0;
  padding: 2px 0 2px 18px;
  border: 0;
  border-left: 3px solid var(--v2-mark);
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
}
:root .page-intro__media {
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: 14px 14px 0 -2px var(--v2-mark);
}
:root .crumb a,
:root .crumb li {
  border-radius: 6px;
  font-weight: 500;
}
:root .crumb li[aria-current='page'] > span {
  background: #000000;
  color: #f4f5ef;
  border-radius: 6px;
}

/* Filters, tabs, toggles: square-ish, lime when active (Devol's TOPICS row). */
:root .glass-pill,
:root .glass-pill__opt,
:root .glass-pill__thumb,
:root .blog-explorer__select,
:root .faq-search,
:root .tool-vote__pill,
:root .portfolio-views,
:root .glossary__views,
:root .pricing__switch,
:root .pricing__opt,
:root .pricing__thumb,
:root .dt__tab,
:root .dt__bar,
:root .tool-finder__shelf {
  border-radius: 6px;
  box-shadow: none;
}
:root .glass-pill__thumb,
:root .pricing__thumb {
  background: var(--v2-mark);
}
:root .glass-pill__opt.is-active,
:root .glass-pill__opt[aria-selected='true'],
:root .tool-finder__shelf.is-active,
:root .pricing__opt[aria-pressed='true'] {
  color: #000000;
}
:root .tool-finder__shelf.is-active {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
}

:root .field__input,
:root .field select,
:root .field textarea,
:root .blog-explorer__select,
:root .faq-search input {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: none;
}
:root .field__input:focus,
:root .field select:focus,
:root .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--v2-mark);
  outline: 0;
}
:root .inquiry-form::before {
  display: none;
}
:root .inquiry-form__send {
  background: var(--v2-mark);
  color: #000000;
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:root .inquiry-form__send::before {
  display: none;
}
:root .inquiry-form__send:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Footer: light, with a black call-to-action card (as on devolapp.com). */
:root .site-footer {
  --deep-ink: var(--ink);
  --deep-muted: var(--muted);
  --deep-line: var(--line);
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
:root .site-footer a:not(.btn):hover {
  color: #000000;
  background: var(--v2-mark);
  text-decoration: none;
}
:root .footer-cta {
  background: transparent;
  border-bottom: 0;
  padding-block: clamp(36px, 5vw, 64px) 0;
}
:root .footer-cta__row {
  --deep-ink: #f4f5ef;
  --deep-muted: #9a9da3;
  --ink: #f4f5ef;
  --muted: #9a9da3;
  background: #000000;
  color: #f4f5ef;
  border-radius: 10px;
  padding: clamp(28px, 4vw, 56px);
}
:root .footer-cta__title {
  font-family: var(--v2-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.08;
  color: #f4f5ef;
}
:root .footer-cta__btn.btn--primary {
  background: var(--v2-mark);
  color: #000000;
}
:root .footer-cta__btn--ghost {
  border: 2px solid #f4f5ef;
  color: #f4f5ef;
  background: transparent;
}
:root .footer-cta__btn--ghost:hover {
  background: #f4f5ef;
  color: #000000;
}
:root .site-footer__heading,
:root .site-footer__wordmark {
  font-family: var(--v2-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
:root .site-footer__heading {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ======================================================================
   8. Narrow screens
   ====================================================================== */
@media (max-width: 980px) {
  :root .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  :root .hero__copy,
  :root .hero__showcase {
    max-width: none;
    width: 100%;
  }
  :root .hero__copy {
    text-align: left;
  }
  :root .hero h1 {
    font-size: clamp(24px, 6.75vw, 45px);
  }
  :root .hero .lede {
    max-width: 38ch;
  }
  :root .hero__actions {
    justify-content: flex-start;
  }
  :root .hero__trust {
    gap: 18px 28px;
  }
  :root .hero__trust span {
    min-width: 0;
    flex: 1 1 100px;
  }
  :root .page-intro::after {
    display: none;
  }
}
@media (max-width: 620px) {
  :root .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  :root .hero .eyebrow--chip {
    white-space: normal;
  }
  :root .hero-slider__frame {
    box-shadow: 8px 8px 0 -2px var(--v2-mark);
  }
  :root .footer-cta__row {
    padding: 24px;
  }
}

/* ---------- Fixes after the first look ---------- */
/* Text inside the lime card is ink, whatever the old rules set. */
:root .compare--journey .compare__col--good,
:root .compare--journey .compare__col--good :is(h3, p, li, span, strong, em) {
  color: #000000;
}
:root .compare--journey .compare__col--good .compare__card-index {
  border-color: rgba(0, 0, 0, 0.35);
}
:root .compare--journey .compare__col--good .compare__mark {
  border-color: rgba(0, 0, 0, 0.45);
  background: transparent;
}
:root .compare--journey .compare__col--bad {
  background: var(--surface);
}
/* No tinted washes behind sections or rows: flat white / light grey. */
:root .home-build,
:root .home-work,
:root .home-journal,
:root .home-testimonials,
:root .home-pricing,
:root .home-faq,
:root .home-compare,
:root .home-process {
  background-image: none;
}
:root .home-build__glow,
:root .home-build__rail {
  display: none;
}
:root .home-build__row {
  background-image: none;
}
:root .btn__icon,
:root .btn__arrow,
:root .btn--primary .btn__ic {
  background: #000000;
  color: var(--v2-mark);
  border-radius: 6px;
}
/* The tinted bands carried a soft radial wash on ::before; Devol's are flat. */
:root .section--tint::before,
:root .section--tint::after {
  display: none;
}
:root .hero-slider__index-rail {
  border-radius: 6px;
}
:root .hero-slider__index-item.is-active {
  color: #000000;
  background: var(--v2-mark);
}
/* Black bands keep light text: their local tokens flip, as the footer card does. */
:root .home-process,
:root .home-tools__copy,
:root .home-tools__close {
  --ink: #f4f5ef;
  --ink-soft: #d9dad2;
  --muted: #9a9da3;
  --line: #262626;
}
:root .home-process .eyebrow,
:root .home-process .eyebrow::before {
  color: #f4f5ef;
  border-top-color: var(--v2-mark);
}
:root .home-process__step,
:root .home-process .step {
  background: #0d0d0d;
  border: 1px solid #262626;
  border-radius: 10px;
  box-shadow: none;
}
:root .home-process__phase {
  color: var(--v2-mark);
}
/* The section number is plain text; drop any box the old eyebrow dot carried. */
:root .home-welcome .eyebrow::before,
:root .home-build .eyebrow::before,
:root .home-compare .eyebrow::before,
:root .home-pricing .eyebrow::before,
:root .home-work .eyebrow::before,
:root .home-process .eyebrow::before,
:root .home-journal .eyebrow::before,
:root .home-testimonials .eyebrow::before,
:root .home-faq .eyebrow::before {
  position: static;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  margin: 0;
  display: inline;
}
/* Light footer: office and contact cards read in ink, with a lime pin. */
:root .site-footer .office-card,
:root .site-footer .office-card h3,
:root .site-footer .office-card__summary,
:root .site-footer .office-card__addr,
:root .site-footer .office-card__direct a {
  color: var(--ink);
}
:root .site-footer .office-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
:root .site-footer .office-card__pin {
  background: var(--v2-mark);
  color: #000000;
  border-radius: 6px;
}
:root .site-footer .office-card__chevron {
  color: var(--ink);
}
:root .site-footer .soc-btn,
:root .site-footer .chat-btn {
  border-radius: 6px;
}

/* ---------- Search palette and small chips ---------- */
:root .search-cmdk__row-kind,
:root .badge-new,
:root .mega__badge {
  background: var(--v2-mark);
  color: #000000;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
:root .search-cmdk__tab,
:root .search-cmdk__tab.is-on {
  border-radius: 6px;
}
:root .search-cmdk__tab.is-on,
:root .search-cmdk__tab[aria-selected='true'] {
  background: var(--v2-mark);
  color: #000000;
}
/* Pill-shaped search and filter fields become the same 6px field as the forms. */
:root .glossary__search,
:root .glossary__search input,
:root .portfolio-search,
:root .portfolio-search input,
:root .blog-explorer__search,
:root .blog-explorer__search input,
:root .faq-search,
:root .glossary__views,
:root .portfolio-views,
:root .blog-explorer__views,
:root .glossary__views button,
:root .portfolio-views button,
:root .blog-explorer__views button {
  border-radius: 6px;
}
:root .glossary__views button[aria-pressed='true'],
:root .portfolio-views button[aria-pressed='true'],
:root .blog-explorer__views button[aria-pressed='true'],
:root .glossary__views .is-active,
:root .portfolio-views .is-active {
  background: var(--v2-mark);
  color: #000000;
}

/* No texture overlays: Devol's bands are flat. */
:root .hero__grid,
:root .home-process__grid,
:root .home-tools__grid,
:root .boot__grid,
:root .cta-band__mesh,
:root .tools-stage__aura,
:root .home-tools__aura {
  display: none;
}

/* ======================================================================
   9. Loading screen: the name fills in while "Loading......" works
   ====================================================================== */
:root[data-boot='1'] .boot {
  background: #000000;
  animation: boot-out 0.3s ease 1.5s forwards;
}
:root .boot__brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(92vw, 560px);
  min-width: 0;
  text-align: center;
}
/* The name is drawn twice: a dim copy, and a bright copy revealed left to right by
   a clip, with a lime cursor riding the edge. Flat colours only. */
:root .boot__name {
  position: relative;
  margin: 0;
  font-family: var(--v2-display);
  font-size: clamp(16px, 3.3vw, 34px);
  max-width: 100%;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  justify-self: center;
}
:root .boot__name-line {
  color: #2c2c31;
}
:root .boot__name-fill {
  position: absolute;
  inset: 0;
  color: #f4f5ef;
  clip-path: inset(0 100% 0 0);
  animation: boot-fill-x 1.25s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
:root .boot__name::after {
  content: '';
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 0;
  width: 3px;
  background: #ffb236;
  opacity: 0;
  animation: boot-cursor 1.25s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
:root .boot__tag {
  margin: 0;
  font-size: clamp(8px, 1.3vw, 11px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9a9da3;
  opacity: 0;
  animation: boot-rise 0.5s ease 0.45s forwards;
}
:root .boot__loading {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb236;
}
:root .boot__dot {
  opacity: 0.15;
  animation: boot-dot 0.9s ease-in-out infinite;
}
:root .boot__dot:nth-child(2) {
  animation-delay: 0.1s;
}
:root .boot__dot:nth-child(3) {
  animation-delay: 0.2s;
}
:root .boot__dot:nth-child(4) {
  animation-delay: 0.3s;
}
:root .boot__dot:nth-child(5) {
  animation-delay: 0.4s;
}
:root .boot__dot:nth-child(6) {
  animation-delay: 0.5s;
}
:root .boot__bar {
  display: block;
  width: min(220px, 60vw);
  height: 2px;
  background: #262626;
  overflow: hidden;
}
:root .boot__bar i {
  display: block;
  height: 100%;
  background: #ffb236;
  transform: scaleX(0);
  transform-origin: left;
  animation: boot-bar 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes boot-fill-x {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes boot-cursor {
  0% {
    left: 0;
    opacity: 1;
  }
  92% {
    left: calc(100% - 3px);
    opacity: 1;
  }
  100% {
    left: calc(100% - 3px);
    opacity: 0;
  }
}
@keyframes boot-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes boot-bar {
  to {
    transform: scaleX(1);
  }
}
@keyframes boot-dot {
  0%,
  100% {
    opacity: 0.15;
  }
  40% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-boot='1'] .boot {
    display: none;
  }
}

/* ======================================================================
   10. Hover and focus: always readable, light and dark
   Found by simulating :hover on every element that has a hover rule and
   measuring the text contrast. A lime surface always carries ink text,
   whatever the theme's text colour is.
   ====================================================================== */
:root :is(.site-footer a:not(.btn):hover, .office-card__direct a:hover, .chat-btn:hover, .soc-btn:hover, .pulse__cta:hover, .home-build__row:hover, .tool-finder__shelf:hover, .glass-pill__opt:hover),
:root :is(.site-footer a:not(.btn):hover, .office-card__direct a:hover, .chat-btn:hover, .soc-btn:hover, .pulse__cta:hover, .home-build__row:hover) :is(span, p, h3, svg, i, b, strong, em, small, path) {
  color: #000000;
  --ink: #000000;
  --muted: #2b2d31;
  --gold-deep: #000000;
  --gold-bright: #000000;
}
:root :is(.chat-btn:hover, .soc-btn:hover, .pulse__cta:hover) {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
}
:root .pulse__cta:hover,
:root .pulse__cta:hover * {
  color: #000000;
}

/* Lime cards (the featured plan, the "us" column): ink text on every child, in both themes. */
:root .pricing-card--featured,
:root .pricing-card--featured :is(h3, h4, p, li, span, strong, em, small, div, svg),
:root .pricing-card--featured:hover,
:root .pricing-card--featured:hover :is(h3, h4, p, li, span, strong, em, small, div, svg) {
  color: #000000;
  --ink: #000000;
  --muted: #2b2d31;
}
:root .pricing-card--featured .pricing-card__toggle,
:root .pricing-card--featured .pricing-card__toggle * {
  color: #000000;
  border-color: #000000;
}
:root .pricing-card--featured .pricing-card__toggle:hover,
:root .pricing-card--featured .pricing-card__toggle:hover * {
  background: #000000;
  color: var(--v2-mark);
}
:root .pricing-card--featured a.pricing-card__cta,
:root .pricing-card--featured a.pricing-card__cta * {
  background: #000000;
  color: var(--v2-mark);
}
:root .pricing-card--featured a.pricing-card__cta:hover,
:root .pricing-card--featured a.pricing-card__cta:hover * {
  background: #f4f5ef;
  color: #000000;
}
:root .pricing-card__tick {
  color: inherit;
}
/* Lime button on a black band: hover goes to paper with ink text. */
:root .cta-band .btn--on-deep:hover,
:root .cta-band .btn--on-deep:focus-visible,
:root .closing-cta__button:hover,
:root .aside-cta__btn:hover {
  background: #f4f5ef;
  color: #000000;
}

/* The search chip in the black menu bar, and its ⌘K key. */
:root .search-palette__btn {
  background: transparent;
  border: 1.5px solid rgba(244, 245, 239, 0.4);
  border-radius: 8px;
  color: #f4f5ef;
  box-shadow: none;
}
:root .search-palette__btn:hover,
:root .search-palette__btn:focus-visible {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  color: #000000;
}
:root .search-palette__kbd {
  background: rgba(244, 245, 239, 0.14);
  color: #f4f5ef;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}
:root .search-palette__btn:hover .search-palette__kbd,
:root .search-palette__btn:focus-visible .search-palette__kbd {
  background: rgba(0, 0, 0, 0.14);
  color: #000000;
}
/* One focus ring everywhere: lime on dark, ink on light. */
:root :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--v2-mark);
  outline-offset: 2px;
  box-shadow: none;
}
:root:not([data-theme='dark']) :is(.hero, .section, main) :is(a, button, summary):focus-visible {
  outline-color: #000000;
}

:root .pulse__cta:hover .pulse__cta-flag,
:root .pulse__cta:hover .pulse__cta-flag * {
  background: #000000;
  color: var(--v2-mark);
}

/* Chat buttons: lime on hover everywhere (the contact page sets its own dark hover). */
:root a.chat-btn.chat-btn:hover,
:root a.chat-btn.chat-btn:focus-visible {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  color: #000000;
}
:root a.chat-btn.chat-btn:hover *,
:root a.chat-btn.chat-btn:focus-visible * {
  color: #000000;
}
/* Filter chips: the active one is lime, so its text is ink, hovered or not. */
:root :is([class*='__cat'], [class*='__letter'], [class*='__chip'], [class*='__shelf'], [class*='__opt']):is(.is-active, .is-on, [aria-pressed='true'], [aria-selected='true'], [aria-current='true']),
:root :is([class*='__cat'], [class*='__letter'], [class*='__chip'], [class*='__shelf'], [class*='__opt']):is(.is-active, .is-on, [aria-pressed='true'], [aria-selected='true'], [aria-current='true']):hover {
  color: #000000;
}


/* ---------- Dark areas get a full dark token set (not only light text) ---------- */
:root :is(.site-header__bar, .footer-cta__row, .aside-cta, .cta-band, .closing-cta, .pricing-card--quote) {
  --bg: #000000;
  --bg-alt: #0d0d0d;
  --bg-tint: #080808;
  --surface: #0d0d0d;
  --ink: #f4f5ef;
  --ink-soft: #d9dad2;
  --muted: #9a9da3;
  --line: #262626;
  --line-strong: #3a3a3a;
  --gold-deep: #ffb236;
  --gold-bright: #ffb236;
}
:root .footer-cta__btn.btn--primary:hover,
:root .footer-cta__btn.btn--primary:focus-visible {
  background: #f4f5ef;
  color: #000000;
}

/* The light footer: accents read as ink, never lime-on-white. */
:root .site-footer {
  --gold-bright: var(--ink);
  --gold-deep: var(--ink);
}
:root .site-footer .footer-cta__row {
  --gold-bright: #ffb236;
  --gold-deep: #ffb236;
}
:root .site-footer button:hover,
:root .site-footer__cookie:hover,
:root .site-footer__tour:hover,
:root .site-footer__legal a:hover {
  color: #000000;
  background: var(--v2-mark);
}
:root .footer-connect__label {
  color: var(--muted);
}
/* The skip link: lime with ink text. */
:root .skip-link,
:root .skip-link:hover,
:root .skip-link:focus-visible {
  background: var(--v2-mark);
  color: #000000;
}

/* Links inside running text: ink on a lime highlight when hovered, in both themes. */
:root :is(p, li, small, label, td, dd, .consent, [class*='consent'], .inquiry-form__note) a:not(.btn):not([class]):hover,
:root :is(p, li, small, label, td, dd) a:not(.btn):not([class]):focus-visible {
  background: var(--v2-mark);
  color: #000000;
  text-decoration-color: transparent;
}
:root .hero__tour-btn:hover,
:root .hero__tour-btn:focus-visible {
  background: var(--v2-mark);
  border-radius: 4px;
}
:root .hero__tour-btn:hover *,
:root .hero__tour-btn:focus-visible * {
  color: #000000;
}
:root .hero__tour-btn:hover,
:root .hero__tour-btn:focus-visible,
:root .consent-check__txt a:hover,
:root .consent-check__txt a:focus-visible {
  color: #000000;
  background: var(--v2-mark);
  text-decoration-color: transparent;
}

/* ======================================================================
   11. Hosting plan cards: a plain dot pattern, no animated illustration
   ====================================================================== */
:root .pricing-card__motif,
:root .pricing-card .plan-motif {
  display: none;
}
:root .pricing-card {
  position: relative;
  isolation: isolate;
}
/* The pattern is a mask over the card's own text colour, so it follows light, dark and
   the orange card with no extra rules. It sits under the content and never moves. */
:root .pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: none;
  background-color: currentColor;
  opacity: 0.05;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='2' cy='2' r='1.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='2' cy='2' r='1.3'/%3E%3C/svg%3E");
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
  pointer-events: none;
  transition: none;
  animation: none;
}
:root .pricing-card--featured::before {
  opacity: 0.09;
}
:root .pricing-card::after {
  display: none;
}

/* ======================================================================
   12. The burger menu (tablet and phone): a compact dropdown, not a full-width slab
   ====================================================================== */
@media (max-width: 1200px) {
  :root .site-nav {
    left: auto;
    right: 0;
    width: max-content;
    min-width: min(280px, calc(100vw - 32px));
    max-width: min(360px, calc(100vw - 32px));
    padding: 8px;
    gap: 4px;
    background: #0d0d0d;
    border: 1px solid #262626;
    border-radius: 12px;
    box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.7);
  }
  :root .site-nav__thumb {
    display: none;
  }
  :root .site-nav__list {
    gap: 2px;
  }
  :root .site-nav__list > li > a,
  :root .site-nav__list > li > button {
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d9dad2;
    background: transparent;
  }
  /* Hover and the current page: a faint light row, never a light bar with grey text. */
  :root .site-nav__list > li > a:hover,
  :root .site-nav__list > li > button:hover,
  :root .site-nav__list > li > a:focus-visible,
  :root .site-nav__list > li > button:focus-visible {
    background: rgba(244, 245, 239, 0.08);
    color: #f4f5ef;
  }
  :root .site-nav__list > li > a[aria-current='page'],
  :root .site-nav__list > li > button[aria-current='true'] {
    background: rgba(244, 245, 239, 0.06);
    color: var(--v2-mark);
  }
  :root .site-nav .caret {
    flex: none;
    margin-left: 12px;
  }
  /* The quote button and the theme switch keep their own width inside the panel. */
  :root .site-header__actions--drawer {
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid #262626;
  }
  :root .cta-pill--drawer {
    flex: 1;
    justify-content: space-between;
  }
  :root .theme-drawer {
    margin-top: 8px;
  }
}

/* Menu number chips: always orange with ink text, including the current page's. */
:root .mega__index {
  background: var(--v2-mark);
  color: #000000;
  border-radius: 6px;
  box-shadow: none;
}
@media (max-width: 1200px) {
  :root .site-nav .mega a,
  :root .site-nav .mega button,
  :root .site-nav .mega__children a {
    color: #d9dad2;
  }
  :root .site-nav .mega a:hover,
  :root .site-nav .mega a:focus-visible {
    color: #f4f5ef;
    background: rgba(244, 245, 239, 0.08);
  }
}

/* ======================================================================
   13. Hero, welcome section and footer call to action
   ====================================================================== */

/* ---------- Hero ---------- */
:root .hero__actions .btn--primary svg,
:root .footer-cta__btn.btn--primary svg {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 8px;
  border-radius: 6px;
  background: #000000;
  color: var(--v2-mark);
  box-shadow: none;
}
:root .hero__actions .btn--primary:hover svg {
  background: var(--v2-mark);
  color: #000000;
}
:root .hero__actions .btn {
  min-height: 54px;
}
/* The orange block behind the work slider, tilted like a sticker (devolapp.com does it behind its phone). */
:root .hero__showcase {
  position: relative;
}
:root .hero__showcase::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  inset: auto;
  right: -4%;
  top: 7%;
  width: 66%;
  height: 90%;
  background: var(--v2-mark);
  background-image: none;
  border-radius: 28px;
  transform: rotate(6deg);
  filter: none;
  opacity: 1;
}
:root .hero__showcase-shell {
  position: relative;
  z-index: 1;
}
:root .hero-slider__frame {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
  border-color: #000000;
}
/* A small question above the domain box, so it reads as a tool and not a stray bar. */
:root .home-tools-search {
  flex-basis: 100%;
  margin-top: 6px;
}
:root .home-tools-search::before {
  content: 'Is your domain name free?';
  display: block;
  margin: 0 0 8px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
:root .home-tools-search__form {
  border-radius: 10px;
  padding: 6px;
}
:root .home-tools-search__go {
  min-height: 44px;
}

/* ---------- Welcome section: open copy on the left, a black studio panel on the right ---------- */
:root .home-welcome {
  background: var(--bg-alt);
}
:root .home-welcome__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  background: none;
  border: 0;
  border-radius: 0;
  padding-inline: var(--gutter);
}
:root .home-welcome__copy {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
:root .home-welcome__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
:root .home-welcome__edition {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
}
:root .home-welcome__title {
  margin: 20px 0 24px;
}
:root .home-welcome__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--v2-mark);
  padding-left: 18px;
}
:root .home-welcome__support {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}
:root .home-welcome__disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}
:root .home-welcome__disciplines li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
:root .home-welcome__disciplines li + li {
  border-left: 1px solid var(--line);
}
:root .home-welcome__disciplines li span {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--v2-mark);
  color: #000000;
  font-family: var(--v2-display);
  font-size: 12px;
  letter-spacing: 0;
}
/* The studio graphic sits on black, with the dark token set, so its cards and lines read on it. */
:root .home-studio-visual {
  --bg: #000000;
  --bg-alt: #0d0d0d;
  --bg-tint: #080808;
  --surface: #0d0d0d;
  --ink: #f4f5ef;
  --ink-soft: #d9dad2;
  --muted: #9a9da3;
  --line: #262626;
  --gold-soft: #1c1c1f;
  --gold-deep: #ffb236;
  --gold-bright: #ffb236;
  margin: 0;
  padding: 0;
  background: #000000;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}
:root .home-studio-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Footer call-to-action: title and promises on the left, stacked buttons on the right ---------- */
:root .footer-cta__row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5.5vw, 72px) clamp(28px, 5vw, 64px);
}
:root .footer-cta__row::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(28px, 5vw, 64px);
  width: 96px;
  height: 6px;
  background: var(--v2-mark);
}
:root .footer-cta__row::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background-color: #f4f5ef;
  opacity: 0.07;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='2' cy='2' r='1.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='2' cy='2' r='1.3'/%3E%3C/svg%3E");
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
  pointer-events: none;
}
:root .footer-cta__row > * {
  position: relative;
  z-index: 1;
}
:root .footer-cta__row .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #f4f5ef;
}
:root .footer-cta__row .eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--v2-mark);
}
:root .footer-cta__title {
  font-size: clamp(28px, 3.6vw, 56px);
  max-width: 14ch;
}
:root .footer-cta__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #b4b6bb;
}
:root .footer-cta__points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
:root .footer-cta__points li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--v2-mark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23000000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
:root .footer-cta__actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
:root .footer-cta__btn {
  min-height: 58px;
  justify-content: space-between;
  padding-inline: 22px;
  width: 100%;
}
:root .footer-cta__btn-spark {
  color: var(--v2-mark);
}
@media (max-width: 860px) {
  :root .home-welcome__inner,
  :root .footer-cta__row {
    grid-template-columns: minmax(0, 1fr);
  }
  :root .home-welcome__disciplines {
    grid-template-columns: minmax(0, 1fr);
  }
  :root .hero__showcase::before {
    right: -2%;
    width: 70%;
  }
}

/* Phone hero: everything shares the left edge of the headline. */
@media (max-width: 620px) {
  :root .hero__actions {
    align-items: stretch;
  }
  :root .hero__actions .btn--ghost {
    justify-content: space-between;
  }
  :root .home-tools-search {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  :root .home-tools-search__form {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 620px) {
  :root .hero h1::after {
    margin-inline: 0 !important;
  }
}

/* Tech strip: the scrolling rail is clipped to the content width, so its ends line up with
   the header logo and the footer text instead of running off both screen edges. */
:root .tech-strip__inner {
  padding-inline: 0;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--container) - 2 * var(--gutter)));
  margin-inline: auto;
  overflow: hidden;
}

/* Footer CTA card: same width as the header bar, so its edges line up with the menu
   above and the footer text below. */
:root .footer-cta__row {
  max-width: none;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--container) - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- Footer menu links: an orange marker slides in and the text moves over ---------- */
:root .site-footer__col {
  --fh: var(--ink); /* hover text colour, read from the footer before any hover rule rewrites --ink */
}
:root .site-footer .site-footer__col a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.18s ease, padding-left 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
:root .site-footer .site-footer__col a:not(.btn)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  background: var(--v2-mark);
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
:root .site-footer .site-footer__col a:not(.btn):hover,
:root .site-footer .site-footer__col a:not(.btn):focus-visible {
  background: transparent;
  color: var(--fh);
  padding-left: 18px;
}
:root .site-footer .site-footer__col a:not(.btn):hover::before,
:root .site-footer .site-footer__col a:not(.btn):focus-visible::before {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  :root .site-footer .site-footer__col a:not(.btn),
  :root .site-footer .site-footer__col a:not(.btn)::before {
    transition: none;
  }
}

/* ---------- Footer chat + social buttons: visible on the page, orange on hover ---------- */
/* They were drawn for a dark footer (white fills, white icons) and vanished on white. */
:root .site-footer .chat-btn,
:root .site-footer .soc-btn {
  border: 1px solid var(--line-strong, var(--line));
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: none;
}
:root .site-footer .chat-btn__ic {
  background: var(--bg-alt);
  color: var(--ink);
  border-radius: 5px;
}
:root .site-footer .chat-btn__ic::after {
  animation: none;
  box-shadow: none;
}
:root .site-footer .chat-btn__label {
  color: var(--ink);
}
:root .site-footer .chat-btn:hover,
:root .site-footer .chat-btn:focus-visible,
:root .site-footer .soc-btn:hover,
:root .site-footer .soc-btn:focus-visible {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  box-shadow: none;
  transform: translateY(-2px);
}
:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__ic,
:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__ic {
  background: #000000;
  color: var(--v2-mark);
  transform: none;
}
:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__ic svg,
:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__ic svg {
  color: var(--v2-mark);
}
:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__label,
:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__label {
  color: #000000;
}
:root .site-footer a.soc-btn:hover svg,
:root .site-footer a.soc-btn:focus-visible svg {
  color: #000000;
}

/* ---------- Desktop mega menus: one readable state set ---------- */
/* Rest: light text on black. Hover / focus / current page: orange fill with black text on
   EVERY line of the row (title, description, number chip). No grey-on-orange anywhere. */
@media (min-width: 1201px) {
  :root .site-nav .mega {
    background: #000000;
    border-color: #2e2e2e;
  }
  :root .site-nav .mega__list > li > a strong,
  :root .site-nav .mega__feature-title {
    color: #f4f5ef;
  }
  :root .site-nav .mega__list > li > a em,
  :root .site-nav .mega__feature-note,
  :root .site-nav .mega--about .mega__list em {
    color: #c3c6cc;
  }
  :root .site-nav .mega__children {
    border-left-color: #3a3a3a;
  }
  :root .site-nav .mega__children a {
    color: #e2e3dc;
  }

  /* hover, keyboard focus and "you are here" */
  :root .site-nav .mega__list > li > a:hover,
  :root .site-nav .mega__list > li > a:focus-visible,
  :root .site-nav .mega__list > li > a[aria-current='page'],
  :root .site-nav .mega__children a:hover,
  :root .site-nav .mega__children a:focus-visible,
  :root .site-nav .mega__children a[aria-current='page'] {
    background: var(--v2-mark);
    border-color: var(--v2-mark);
    color: #000000;
  }
  :root .site-nav .mega__list > li > a:hover :is(strong, em, span, svg, b),
  :root .site-nav .mega__list > li > a:focus-visible :is(strong, em, span, svg, b),
  :root .site-nav .mega__list > li > a[aria-current='page'] :is(strong, em, span, svg, b),
  :root .site-nav .mega__list > li > a[aria-current='page'] strong {
    color: #000000;
  }
  :root .site-nav .mega__list > li > a:hover .mega__index,
  :root .site-nav .mega__list > li > a:focus-visible .mega__index,
  :root .site-nav .mega__list > li > a[aria-current='page'] .mega__index {
    background: #000000;
    color: var(--v2-mark);
  }
  :root .site-nav .mega__children a:hover::before,
  :root .site-nav .mega__children a:focus-visible::before,
  :root .site-nav .mega__children a[aria-current='page']::before {
    background: #000000;
  }
  :root .site-nav .mega--about .mega__list > li:not(.mega__span) > a:hover::after {
    border-color: #000000;
  }
}

/* An older hover rule paints the icon's <path> black; on the black chip that hides it. */
:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__ic svg path,
:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__ic svg path {
  color: var(--v2-mark);
  fill: var(--v2-mark);
}

/* ---------- Footer legal row: an orange underline grows in; the cookie button fills orange ---------- */
:root .site-footer__legal ul a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.18s ease;
}
:root .site-footer__legal ul a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--v2-mark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
:root .site-footer .site-footer__legal ul a:not(.btn):hover,
:root .site-footer .site-footer__legal ul a:not(.btn):focus-visible {
  background: transparent;
  color: var(--fh, var(--ink));
}
:root .site-footer .site-footer__legal ul a:not(.btn):hover::after,
:root .site-footer .site-footer__legal ul a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}
:root .site-footer__legal {
  --fh: var(--ink);
}
:root .site-footer__cookie {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.22s ease;
}
:root .site-footer .site-footer__cookie:hover,
:root .site-footer .site-footer__cookie:focus-visible {
  background: var(--v2-mark);
  color: #000000;
  transform: translateY(-2px);
}
:root .site-footer__cookie:focus-visible {
  outline: 2px solid var(--v2-mark);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  :root .site-footer__legal ul a,
  :root .site-footer__legal ul a::after,
  :root .site-footer__cookie {
    transition: none;
  }
}

/* ======================================================================
   Card-style links inside .prose: no underline, no highlighter box.
   `.prose a` (ink text, orange underline, orange box on hover) is meant for words in a
   sentence. These are whole cards, so each gets its own treatment.
   ====================================================================== */
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card,
:root .prose a.founder-link,
:root .prose a.profile-dl__button,
:root .prose a.profile-dl__read {
  text-decoration: none;
  text-decoration-color: transparent;
  background-image: none;
}
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card *,
:root .prose a.founder-link *,
:root .prose a.profile-dl__button *,
:root .prose a.profile-dl__read * {
  text-decoration: none;
}

/* --- Link cards (Andy Sim's sites): white card, arrow chip fills orange on hover --- */
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card {
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card:hover,
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card:focus-visible {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--v2-mark);
  box-shadow: none;
  transform: translateY(-2px);
}
:root .link-card::before {
  background: var(--v2-mark);
}
:root .link-card__name {
  color: var(--ink);
}
:root .link-card__url {
  color: var(--muted);
}
:root .link-card__go {
  background: var(--bg-alt);
  color: var(--ink);
  border-radius: 6px;
}
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card:hover .link-card__go,
:root :is(.prose, .article, .reading-main, .aside-card) a.link-card:focus-visible .link-card__go {
  background: var(--v2-mark);
  color: #000000;
  transform: translate(2px, -2px);
}

/* --- "Meet Andy Sim" panel: black, light text, stays black on hover --- */
:root .prose a.founder-link {
  background: #000000;
  color: #f4f5ef;
  border-radius: 10px;
  --ink: #f4f5ef;
  --muted: #b9bcc2;
}
:root .prose a.founder-link:hover,
:root .prose a.founder-link:focus-visible {
  background: #000000;
  color: #f4f5ef;
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--v2-mark);
}
:root .prose a.founder-link .founder-link__sheen {
  display: none;
}

/* --- Company profile band --- */
:root .profile-dl {
  background: #000000;
  border-radius: 14px;
  box-shadow: none;
  --ink: #f4f5ef;
  --muted: #b9bcc2;
  --line: #2e2e2e;
}
:root .profile-dl::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #f4f5ef;
  opacity: 0.07;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='1.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='1.2'/%3E%3C/svg%3E");
  -webkit-mask-size: 22px 22px;
  mask-size: 22px 22px;
}
:root .profile-dl__text {
  color: #c3c6cc;
}
:root .profile-dl__fine {
  color: #b9bcc2;
}
:root .profile-dl__chips li {
  border-color: #3a3a3a;
}
/* Download button: orange, black text, black icon chip; inverts to white on hover. */
:root .profile-dl a.profile-dl__button,
:root .prose a.profile-dl__button {
  background: var(--v2-mark);
  background-image: none;
  color: #000000;
  -webkit-text-fill-color: #000000;
  border-radius: 8px;
  box-shadow: none;
}
:root .profile-dl a.profile-dl__button *,
:root .prose a.profile-dl__button * {
  color: #000000;
  -webkit-text-fill-color: #000000;
}
:root .profile-dl .profile-dl__icon {
  background: #000000;
  border-radius: 6px;
}
:root .profile-dl .profile-dl__icon svg {
  color: var(--v2-mark);
}
:root .profile-dl a.profile-dl__button:hover,
:root .profile-dl a.profile-dl__button:focus-visible,
:root .prose a.profile-dl__button:hover,
:root .prose a.profile-dl__button:focus-visible {
  background: #f4f5ef;
  background-image: none;
  color: #000000;
  box-shadow: none;
  transform: translateY(-2px);
}
/* Secondary link: light text, no underline; an orange bar grows in on hover. */
:root .profile-dl a.profile-dl__read,
:root .prose a.profile-dl__read {
  position: relative;
  background: transparent;
  color: #f4f5ef;
  -webkit-text-fill-color: #f4f5ef;
  text-decoration: none;
  padding: 4px 0;
}
:root .profile-dl a.profile-dl__read::after,
:root .prose a.profile-dl__read::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--v2-mark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
:root .profile-dl a.profile-dl__read:hover,
:root .profile-dl a.profile-dl__read:focus-visible,
:root .prose a.profile-dl__read:hover,
:root .prose a.profile-dl__read:focus-visible {
  background: transparent;
  color: var(--v2-mark);
  -webkit-text-fill-color: var(--v2-mark);
}
:root .profile-dl a.profile-dl__read:hover::after,
:root .profile-dl a.profile-dl__read:focus-visible::after,
:root .prose a.profile-dl__read:hover::after,
:root .prose a.profile-dl__read:focus-visible::after {
  transform: scaleX(1);
}
:root .profile-dl a.profile-dl__button .profile-dl__icon,
:root .profile-dl a.profile-dl__button .profile-dl__icon svg,
:root .prose a.profile-dl__button .profile-dl__icon,
:root .prose a.profile-dl__button .profile-dl__icon svg {
  color: var(--v2-mark);
  -webkit-text-fill-color: var(--v2-mark);
}

/* ---------- Buttons placed inside prose (CMS body text): the link style must not leak in ---------- */
:root .prose a.btn,
:root .article a.btn {
  text-decoration: none;
}
:root .prose a.btn--primary,
:root .article a.btn--primary {
  background: var(--v2-mark);
  color: #000000;
}
:root .prose a.btn--primary:hover,
:root .prose a.btn--primary:focus-visible,
:root .article a.btn--primary:hover,
:root .article a.btn--primary:focus-visible {
  background: var(--ink);
  color: var(--bg);
}
:root .prose a.btn--ghost,
:root .article a.btn--ghost {
  background: transparent;
  color: var(--ink);
}
:root .prose a.btn--ghost:hover,
:root .prose a.btn--ghost:focus-visible,
:root .article a.btn--ghost:hover,
:root .article a.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Blog sidebar "From the blog": no orange box; the thumbnail gets an orange frame ---------- */
:root .aside-recent__item {
  border-radius: 10px;
}
:root .aside-recent__thumb {
  border-radius: 8px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.18s ease;
}
:root .aside-recent__item:hover .aside-recent__thumb,
:root .aside-recent__item:focus-visible .aside-recent__thumb {
  outline-color: var(--v2-mark);
}
:root .aside-recent__item:hover .aside-recent__headline,
:root .aside-recent__item:focus-visible .aside-recent__headline {
  color: var(--ink);
}
:root .aside-recent__item:hover .aside-recent__date {
  color: var(--ink);
}

/* ======================================================================
   FAQ explorer: one search frame, orange active tab, square arrows, crisp cards
   ====================================================================== */
/* Search: a single frame (the input used to carry its own border inside the box). */
:root .faq-search {
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}
:root .faq-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--v2-mark);
}
:root .faq-search input,
:root .faq-search__input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}
:root .faq-search__icon {
  color: var(--ink);
  padding-left: 18px;
}

/* Tabs: orange block under the active label, black text. */
:root .faq-filter .glass-pill {
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  background: var(--surface);
}
:root .faq-filter .glass-pill__thumb {
  background: var(--v2-mark);
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}
:root .faq-filter .glass-pill__opt {
  color: var(--muted);
  font-weight: 600;
}
:root .faq-filter .glass-pill__opt:hover {
  color: var(--ink);
}
:root .faq-filter .glass-pill__opt[aria-selected='true'],
:root .faq-filter .glass-pill__opt[aria-selected='true']:hover {
  color: #000000;
}
:root .faq-filter .glass-carousel__nav {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line-strong, var(--line));
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
:root .faq-filter .glass-carousel__nav:hover:not(:disabled) {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  color: #000000;
}

/* Result count: small, left, uppercase. */
:root .faq-count {
  align-self: flex-start;
  margin: 4px 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Question cards */
:root .faq-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}
:root .faq-card:hover {
  border-color: var(--ink);
}
:root .faq-card[open] {
  border-color: var(--ink);
  box-shadow: none;
}
:root .faq-card[open]::before {
  background: var(--v2-mark);
  width: 4px;
}
:root .faq-card__q {
  color: var(--ink);
}
:root .faq-card__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-alt);
}
:root .faq-card__mark::before,
:root .faq-card__mark::after {
  background: var(--ink);
}
:root .faq-card:hover .faq-card__mark {
  background: var(--v2-mark);
}
:root .faq-card:hover .faq-card__mark::before,
:root .faq-card:hover .faq-card__mark::after {
  background: #000000;
}
:root .faq-card[open] .faq-card__mark {
  background: var(--v2-mark);
}
:root .faq-card[open] .faq-card__mark::before,
:root .faq-card[open] .faq-card__mark::after {
  background: #000000;
}

/* "Still not answered?" button: explicit rest and hover so nothing can leave it black on black. */
:root .faq-ask a.btn--primary {
  background: var(--v2-mark);
  color: #000000;
  -webkit-text-fill-color: #000000;
}
:root .faq-ask a.btn--primary:hover,
:root .faq-ask a.btn--primary:focus-visible {
  background: var(--ink);
  color: var(--bg);
  -webkit-text-fill-color: var(--bg);
}

/* About Us menu: five destinations plus "Start a project" = three rows of two. */
:root .mega--about .mega__list > li:nth-last-child(2):nth-child(odd) {
  grid-column: auto;
}
/* ...and "Start a project" no longer spans both columns, so it shares Impressum's row. */
:root .mega--about .mega__list > li.mega__span {
  grid-column: auto;
}

/* ======================================================================
   Search fields: ONE focus ring, never a ring inside a ring.
   The site-wide `input:focus-visible` outline used to land on the input as well as on the box
   that frames it. Boxes that frame their input now ring the box; bare bordered inputs ring
   themselves (ink border + orange halo), with no extra outline.
   ====================================================================== */
:root :is(.faq-search, .tool-finder__search, .dt__bar, .home-tools-search__form) input,
:root :is(.faq-search, .tool-finder__search, .dt__bar, .home-tools-search__form) input:focus,
:root :is(.faq-search, .tool-finder__search, .dt__bar, .home-tools-search__form) input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}
:root :is(.faq-search, .tool-finder__search, .dt__bar):focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--v2-mark);
}
:root .home-tools-search__form:focus-within {
  outline: 2px solid var(--v2-mark);
  outline-offset: 2px;
}
:root :is(.portfolio-search, .glossary__search) input:focus,
:root :is(.portfolio-search, .glossary__search) input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--v2-mark);
}

/* ======================================================================
   Even left / right padding on buttons and search boxes
   ====================================================================== */
/* Hero "Explore our work": it inherited a text-link padding (10px 2px 7px). */
:root .hero__actions .btn--ghost {
  min-height: 54px;
  padding: 0 24px;
  gap: 12px;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  transform: none;
}
:root .hero__actions .btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: none;
}
/* Buttons with an icon chip at the right: the chip sits the same distance from the right and the
   top/bottom edges, and the text keeps a normal left margin. */
:root .hero__actions .btn--primary {
  min-height: 54px;
  /* the chip is absolutely positioned at the right, so its column (32px + 9px inset + 18px gap) is reserved here */
  padding: 0 59px 0 24px;
}
:root .hero__actions .btn--primary svg {
  right: 9px;
}
:root .footer-cta__btn {
  padding: 0 10px 0 24px;
}
/* Domain tool tabs were 8px wide on each side. */
:root .dt__tab {
  padding-inline: 16px;
}
:root .tool-vote__pill {
  padding-inline: 14px;
}
/* Hero domain box: equal inset all round, and the "www." gets room from the left edge. */
:root .home-tools-search__form {
  padding: 10px;
}
:root .home-tools-search__prefix {
  padding-left: 12px;
}
:root .hero__actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ======================================================================
   Tab bars (.glass-pill): one rule set, light and dark.
   Active tab = solid orange block with black text; other tabs muted, light on hover.
   (premium-filter variants painted a dark chip under the active tab, so black text vanished.)
   ====================================================================== */
:root .glass-pill .glass-pill__thumb,
:root .premium-filter .glass-pill__thumb {
  background: var(--v2-mark) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
:root .glass-pill .glass-pill__thumb::after,
:root .premium-filter .glass-pill__thumb::after {
  display: none !important;
}
:root .glass-pill .glass-pill__opt:not(.is-under):not([aria-selected='true']),
:root .premium-filter .glass-pill__opt:not(.is-under):not([aria-selected='true']) {
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
}
:root .glass-pill .glass-pill__opt:hover:not(.is-under):not([aria-selected='true']),
:root .premium-filter .glass-pill__opt:hover:not(.is-under):not([aria-selected='true']) {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: transparent;
}
:root .glass-pill .glass-pill__opt.is-under,
:root .glass-pill .glass-pill__opt.is-under:hover,
:root .glass-pill .glass-pill__opt[aria-selected='true'],
:root .glass-pill .glass-pill__opt[aria-selected='true']:hover,
:root .premium-filter .glass-pill__opt.is-under,
:root .premium-filter .glass-pill__opt[aria-selected='true'],
:root .premium-filter .glass-pill__opt[aria-selected='true']:hover {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* ======================================================================
   Appearance (theme) dropdown: a solid black panel in the same language as the menus.
   No frosted glass, no sky animation. Selected mode = orange row with black text; hover = lifted
   dark row with an orange icon chip.
   ====================================================================== */
:root .theme-menu {
  width: 200px;
  padding: 8px;
  background: #000000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  color: #f4f5ef;
  --ink: #f4f5ef;
  --muted: #b9bcc2;
}
:root .theme-menu::before,
:root .theme-menu__sky {
  display: none;
}
:root .theme-menu__label {
  padding: 6px 10px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #b9bcc2;
}
:root .theme-menu__label::after {
  background: #2e2e2e;
}
:root .theme-menu__item {
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-radius: 6px;
  background: transparent;
  color: #f4f5ef;
  font-size: 14px;
  font-weight: 500;
}
:root .theme-menu__item > svg:first-of-type {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 6px;
  color: #f4f5ef;
  background: #1a1a1a;
}
:root .theme-menu__item:hover,
:root .theme-menu__item:focus-visible {
  background: #1a1a1a;
  color: #ffffff;
}
:root .theme-menu__item:hover > svg:first-of-type,
:root .theme-menu__item:focus-visible > svg:first-of-type {
  color: #000000;
  background: var(--v2-mark);
  transform: none;
}
:root .theme-menu__item[aria-checked='true'] {
  background: var(--v2-mark);
  color: #000000;
  font-weight: 600;
}
:root .theme-menu__item[aria-checked='true'] > svg:first-of-type {
  color: var(--v2-mark);
  background: #000000;
}
:root .theme-menu__check {
  color: #000000;
}
:root .theme-menu__item:not([aria-checked='true']) .theme-menu__check {
  display: none;
}

/* ======================================================================
   Welcome section between 861px and 1100px: two columns means two columns.
   (An older tablet rule left the panel stacked in column one with the right half empty.)
   ====================================================================== */
@media (min-width: 861px) {
  :root .home-welcome__copy {
    grid-column: 1;
    grid-row: 1;
  }
  :root .home-studio-visual {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 860px) {
  :root .home-studio-visual {
    width: min(560px, 100%);
    justify-self: center;
  }
}

/* Very small phones (<=400px): the footer's legal links wrap instead of forcing three columns. */
@media (max-width: 400px) {
  :root .site-footer__legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  :root .site-footer__legal ul li,
  :root .site-footer__legal ul a {
    white-space: normal;
  }
}

/* ======================================================================
   Button hover: explicit colours, never "ink on bg" tokens.
   The inverted hover (black fill, white text) used var(--ink) / var(--bg); inside some cards those
   resolve to the same dark value and the label disappeared. Light page: black fill + white text.
   Dark page: off-white fill + black text.
   ====================================================================== */
:root a.btn--primary:hover,
:root a.btn--primary:focus-visible,
:root button.btn--primary:hover,
:root button.btn--primary:focus-visible,
:root .btn--primary:hover,
:root .btn--primary:focus-visible,
:root .prose a.btn--primary:hover,
:root .article a.btn--primary:hover,
:root .faq-ask a.btn--primary:hover {
  background: #000000;
  background-image: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
:root .btn--primary:hover > span,
:root .btn--primary:focus-visible > span {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
:root .btn--ghost:hover,
:root .btn--ghost:focus-visible,
:root .prose a.btn--ghost:hover {
  background: #000000;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
:root[data-theme='dark'] a.btn--primary:hover,
:root[data-theme='dark'] a.btn--primary:focus-visible,
:root[data-theme='dark'] .btn--primary:hover,
:root[data-theme='dark'] .btn--primary:focus-visible,
:root[data-theme='dark'] .btn--primary:hover > span,
:root[data-theme='dark'] .btn--primary:focus-visible > span,
:root[data-theme='dark'] .btn--ghost:hover,
:root[data-theme='dark'] .btn--ghost:focus-visible,
:root[data-theme='auto'][data-night='1'] .btn--primary:hover,
:root[data-theme='auto'][data-night='1'] .btn--primary:focus-visible,
:root[data-theme='auto'][data-night='1'] .btn--primary:hover > span,
:root[data-theme='auto'][data-night='1'] .btn--ghost:hover {
  background: #f4f5ef;
  color: #000000;
  -webkit-text-fill-color: #000000;
}
:root[data-theme='dark'] .btn--primary:hover > span,
:root[data-theme='dark'] .btn--primary:focus-visible > span,
:root[data-theme='auto'][data-night='1'] .btn--primary:hover > span {
  background: transparent;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .btn--primary:hover,
  :root[data-theme='auto'] .btn--primary:focus-visible,
  :root[data-theme='auto'] .btn--primary:hover > span,
  :root[data-theme='auto'] .btn--ghost:hover {
    background: #f4f5ef;
    color: #000000;
    -webkit-text-fill-color: #000000;
  }
  :root[data-theme='auto'] .btn--primary:hover > span {
    background: transparent;
  }
}
/* Disc icon inside the button flips with the fill. */
:root .btn--primary:hover > svg,
:root .btn--primary:focus-visible > svg {
  background: var(--v2-mark);
  color: #000000;
}
/* Black areas carry their own dark tokens, so the token-based invert (light fill, dark text) is right there. */
:root :is(.footer-cta__row, .aside-cta, .cta-band, .closing-cta, .pricing-card--quote, .site-header__bar, .home-process, .tools-dark, .profile-dl, .mega, .theme-menu) .btn--primary:hover,
:root :is(.footer-cta__row, .aside-cta, .cta-band, .closing-cta, .pricing-card--quote, .site-header__bar, .home-process, .tools-dark, .profile-dl, .mega, .theme-menu) .btn--primary:focus-visible,
:root :is(.footer-cta__row, .aside-cta, .cta-band, .closing-cta, .pricing-card--quote, .site-header__bar, .home-process, .tools-dark, .profile-dl, .mega, .theme-menu) .btn--primary:hover > span,
:root :is(.footer-cta__row, .aside-cta, .cta-band, .closing-cta, .pricing-card--quote, .site-header__bar, .home-process, .tools-dark, .profile-dl, .mega, .theme-menu) .btn--ghost:hover {
  background: #f4f5ef;
  color: #000000;
  -webkit-text-fill-color: #000000;
}
:root :is(.footer-cta__row, .aside-cta, .cta-band, .closing-cta, .pricing-card--quote, .site-header__bar, .home-process, .tools-dark, .profile-dl, .mega, .theme-menu) .btn--primary:hover > span {
  background: transparent;
}

/* ======================================================================
   Project overview "Read more / Read less": one continuous text, one plain button.
   Closed: preview paragraph, then [READ MORE]. Open: the rest continues the same text with no
   divider, and [READ LESS] sits at the very end. No rules, no pill in the middle of the copy.
   ====================================================================== */
:root .case-overview__more {
  margin-top: 0;
}
:root .case-overview__rest {
  padding-top: 0;
}
:root .case-overview__rest .prose > :first-child {
  margin-top: 1em;
}
:root .case-overview__toggle {
  display: inline-flex;
  width: auto;
  margin-top: 16px;
}
:root .case-overview__toggle::before,
:root .case-overview__toggle::after {
  display: none;
}
:root .case-overview__more[open] > .case-overview__toggle {
  display: none;
}
:root .case-overview__end {
  margin-top: 4px;
}
:root .case-overview__toggle-pill,
:root .case-overview__less {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
:root .case-overview__toggle:hover .case-overview__toggle-pill,
:root .case-overview__toggle:focus-visible .case-overview__toggle-pill,
:root .case-overview__less:hover,
:root .case-overview__less:focus-visible {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  color: #000000;
  transform: none;
  box-shadow: none;
}
:root .case-overview__more[open] .case-overview__toggle-pill {
  background: transparent;
  color: var(--ink);
}
:root .case-overview__less svg {
  flex: none;
}

/* ======================================================================
   Contact sidebar cards (Siem Reap / Phnom Penh / Online support / Talk to us / Chat with us)
   The titles inherited the page-heading size (25px). They are card labels: 15px.
   ====================================================================== */
:root .contact-card h2,
:root .contact-card__head h2 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
:root .contact-card {
  border-radius: 10px;
  box-shadow: none;
  background: var(--surface);
  border: 1px solid var(--line);
}
:root .contact-card:hover,
:root .contact-card[open] {
  border-color: var(--ink);
  box-shadow: none;
}
:root .contact-card--chats {
  background: var(--surface);
}
:root .contact-card__ic {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink);
}
:root .contact-card[open] .contact-card__ic,
:root .contact-card:hover .contact-card__ic {
  background: var(--v2-mark);
  color: #000000;
}
/* Chat buttons inside the card: same visible square buttons as the footer. */
:root .contact-card--chats .chat-btn {
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
:root .contact-card--chats .chat-btn__ic {
  background: var(--bg-alt);
  color: var(--ink);
  border-radius: 5px;
}
:root .contact-card--chats .chat-btn__ic::after {
  animation: none;
  box-shadow: none;
}
:root .contact-card--chats a.chat-btn.chat-btn:hover,
:root .contact-card--chats a.chat-btn.chat-btn:focus-visible {
  background: var(--v2-mark);
  border-color: var(--v2-mark);
  box-shadow: none;
}
:root .contact-card--chats a.chat-btn.chat-btn:hover .chat-btn__ic,
:root .contact-card--chats a.chat-btn.chat-btn:focus-visible .chat-btn__ic {
  background: #000000;
  color: var(--v2-mark);
}
:root .contact-card--chats a.chat-btn.chat-btn:hover .chat-btn__ic svg,
:root .contact-card--chats a.chat-btn.chat-btn:hover .chat-btn__ic svg path,
:root .contact-card--chats a.chat-btn.chat-btn:focus-visible .chat-btn__ic svg,
:root .contact-card--chats a.chat-btn.chat-btn:focus-visible .chat-btn__ic svg path {
  color: var(--v2-mark);
  fill: var(--v2-mark);
}
:root .contact-card--chats a.chat-btn.chat-btn:hover .chat-btn__label {
  color: #000000;
}

/* Card and sidebar titles are labels, not page headings. */
:root .reviews-side__card h2,
:root .tool-page__side h2:not(.visually-hidden) {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
:root .post-card__title {
  font-size: clamp(17px, 0.5vw + 14px, 21px);
  line-height: 1.3;
}

/* ======================================================================
   Burger menu (<=1200px): the same readable states as the desktop dropdowns.
   Rest = light text. Hover / focus / current page = orange fill, black text on every line.
   ====================================================================== */
@media (max-width: 1200px) {
  :root .site-nav .mega__list > li > a strong,
  :root .site-nav .mega__feature-title {
    color: #f4f5ef;
  }
  :root .site-nav .mega__list > li > a em,
  :root .site-nav .mega__feature-note {
    color: #c3c6cc;
  }
  :root .site-nav .mega__children a {
    color: #e2e3dc;
    border-color: #3a3a3a;
  }
  :root .site-nav .mega__list > li > a:hover,
  :root .site-nav .mega__list > li > a:focus-visible,
  :root .site-nav .mega__list > li > a[aria-current='page'],
  :root .site-nav .mega__children a:hover,
  :root .site-nav .mega__children a:focus-visible,
  :root .site-nav .mega__children a[aria-current='page'] {
    background: var(--v2-mark);
    border-color: var(--v2-mark);
    color: #000000;
    -webkit-text-fill-color: #000000;
  }
  :root .site-nav .mega__list > li > a:hover :is(strong, em, span, svg, b),
  :root .site-nav .mega__list > li > a:focus-visible :is(strong, em, span, svg, b),
  :root .site-nav .mega__list > li > a[aria-current='page'] :is(strong, em, span, svg, b) {
    color: #000000;
    -webkit-text-fill-color: #000000;
  }
  :root .site-nav .mega__list > li > a:hover .mega__index,
  :root .site-nav .mega__list > li > a:focus-visible .mega__index,
  :root .site-nav .mega__list > li > a[aria-current='page'] .mega__index {
    background: #000000;
    color: var(--v2-mark);
    -webkit-text-fill-color: var(--v2-mark);
  }
  :root .site-nav .mega__children a:hover::before,
  :root .site-nav .mega__children a:focus-visible::before {
    background: #000000;
  }
  /* top-level burger rows (Home, Our Work, ...) keep readable text on hover too */
  :root .site-nav__list > li > a:hover,
  :root .site-nav__list > li > button:hover {
    color: #f4f5ef;
  }
}

/* Orange buttons inside the menus ("Meet Andy", "All services"): black text at every width.
   The burger menu's blanket link colour (#d9dad2) used to win over the button's own colour. */
:root .site-nav .mega a.mega__feature-cta,
:root .site-nav .mega a.mega__feature-cta *,
:root .site-nav .mega a.mega__feature-cta svg,
:root .site-nav .mega a.mega__feature-cta svg path {
  color: #000000;
  -webkit-text-fill-color: #000000;
  fill: none;
}
:root .site-nav .mega a.mega__feature-cta {
  background: var(--v2-mark);
  border-radius: 6px;
}
:root .site-nav .mega a.mega__feature-cta:hover,
:root .site-nav .mega a.mega__feature-cta:focus-visible {
  background: #f4f5ef;
  color: #000000;
}
:root .site-nav .mega a.mega__feature-cta svg path {
  fill: none;
  stroke: currentColor;
}

/* New logo (SVG lockup): a little taller so the mark and wordmark read clearly in the menu bar. */
:root .site-header__logo-img {
  height: clamp(38px, 3.2vw, 44px);
}
@media (max-width: 380px) {
  :root .site-header__logo-img {
    height: 32px;
  }
}

/* ======================================================================
   Header motion
   1. First visit of the session: the bar drops in, the logo pops, menu items rise one by one
      (after the home-page loader has finished; data-intro is set once per session by the head script).
   2. Scrolling: the logo condenses a little; the bar slides away on the way down and returns on the
      way up (is-compact is set by SiteHeaderClient). All of it is off under prefers-reduced-motion.
   ====================================================================== */
:root .site-header {
  transition: padding-top var(--dur) var(--ease), transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root .site-header__logo {
  transform-origin: left center;
}
:root .site-header__logo-img {
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root .site-header.is-scrolled .site-header__logo-img {
  transform: scale(0.92);
}

@keyframes hdr-drop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}
@keyframes logo-pop {
  0% { opacity: 0; transform: translateX(-12px) scale(0.86); }
  60% { opacity: 1; transform: translateX(2px) scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes nav-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-intro]:not([data-boot]) .site-header__bar {
    animation: hdr-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  html[data-intro]:not([data-boot]) .site-header__logo-img {
    animation: logo-pop 0.85s cubic-bezier(0.2, 0.9, 0.25, 1) 0.2s both;
  }
  html[data-intro]:not([data-boot]) .site-nav__list > li {
    animation: nav-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  html[data-intro]:not([data-boot]) .site-nav__list > li:nth-child(1) { animation-delay: 0.40s; }
  html[data-intro]:not([data-boot]) .site-nav__list > li:nth-child(2) { animation-delay: 0.47s; }
  html[data-intro]:not([data-boot]) .site-nav__list > li:nth-child(3) { animation-delay: 0.54s; }
  html[data-intro]:not([data-boot]) .site-nav__list > li:nth-child(4) { animation-delay: 0.61s; }
  html[data-intro]:not([data-boot]) .site-nav__list > li:nth-child(5) { animation-delay: 0.68s; }
  html[data-intro]:not([data-boot]) .site-nav__list > li:nth-child(6) { animation-delay: 0.75s; }
  html[data-intro]:not([data-boot]) .site-header__actions > * {
    animation: nav-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .site-header,
  :root .site-header__logo-img {
    transition: none;
  }
}

/* The built-in fallback logo is already in the brand colours: never tint it. */
:root .site-header__logo-img.is-default {
  filter: none;
}

/* ======================================================================
   Compact header: scrolling down collapses the bar to the logo and the menu, menu on the right;
   search, Get Quote and the theme switch tuck away and come back when you scroll up.
   ====================================================================== */
:root .site-header__actions--bar {
  max-width: 720px;
  overflow: visible;
  transition: max-width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, margin 0.35s ease;
}
:root .site-header.is-compact .site-header__actions--bar {
  max-width: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}
:root .site-header.is-compact .site-header__burger {
  margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  :root .site-header__actions--bar {
    transition: none;
  }
}
/* Compact bar: the hidden action cluster must not take a share of the free space, or the menu button
   ends up mid-bar instead of at the right edge. */
:root .site-header.is-compact .site-header__bar > .site-header__actions--bar {
  margin: 0;
  padding: 0;
}

/* Compact header: the bar itself gets shorter. It shrinks to fit the logo and the MENU button and sits at the
   right edge; the dropdown opens under it, right-aligned. (interpolate-size lets browsers that support it
   animate between full width and fit-content; elsewhere it just snaps.) */
:root {
  interpolate-size: allow-keywords;
}
:root .site-header__bar {
  width: 100%;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), min-height var(--dur) var(--ease);
}
:root .site-header.is-compact .site-header__bar {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  gap: clamp(18px, 3vw, 36px);
}
:root .site-header.is-compact .site-nav {
  left: auto;
  right: 0;
  width: min(380px, calc(100vw - 32px));
}
@media (prefers-reduced-motion: reduce) {
  :root .site-header__bar {
    transition: none;
  }
}

/* ======================================================================
   Brand guidelines download band (Impressum)
   ====================================================================== */
:root .brand-dl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(22px, 3.2vw, 44px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 14px;
  background: #000000;
  color: #f4f5ef;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: calc(var(--header-h, 76px) + 20px);
}
:root .brand-dl::before {
  content: '';
  position: absolute;
  left: clamp(24px, 3.4vw, 40px);
  top: 0;
  width: 96px;
  height: 6px;
  background: #ffb236;
}
:root .brand-dl__preview {
  position: relative;
  aspect-ratio: 16 / 11.4;
  min-width: 0;
  width: 100%;
  max-width: 440px;
}
:root .brand-dl__page {
  position: absolute;
  width: 74%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2a2a;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root .brand-dl__page--a { left: 0; top: 14%; z-index: 3; transform: rotate(-3deg); }
:root .brand-dl__page--b { left: 14%; top: 6%; z-index: 2; transform: rotate(2deg); }
:root .brand-dl__page--c { left: 26%; top: 0; z-index: 1; transform: rotate(6deg); }
:root .brand-dl:hover .brand-dl__page--a { transform: rotate(-5deg) translateX(-6px); }
:root .brand-dl:hover .brand-dl__page--c { transform: rotate(8deg) translateX(8px); }
:root .brand-dl__body {
  min-width: 0;
}
:root .brand-dl__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb236;
}
:root .brand-dl .brand-dl__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.4vw + 12px, 28px);
  line-height: 1.15;
  color: #f4f5ef;
}
:root .brand-dl .brand-dl__title::after {
  display: none;
}
:root .brand-dl__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #c3c6cc;
  max-width: 52ch;
}
:root .brand-dl__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
:root .brand-dl__facts li {
  margin: 0;
  padding: 5px 11px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f4f5ef;
}
:root .brand-dl__facts li::marker {
  content: '';
}
:root .brand-dl__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}
:root .brand-dl a.brand-dl__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  border: 2px solid #ffb236;
  border-radius: 6px;
  background: #ffb236;
  color: #000000;
  -webkit-text-fill-color: #000000;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
:root .brand-dl a.brand-dl__btn:hover,
:root .brand-dl a.brand-dl__btn:focus-visible {
  background: #f4f5ef;
  border-color: #f4f5ef;
  color: #000000;
  transform: translateY(-2px);
}
:root .brand-dl a.brand-dl__btn--ghost {
  padding: 10px 20px;
  background: transparent;
  border-color: #3a3a3a;
  color: #f4f5ef;
  -webkit-text-fill-color: #f4f5ef;
}
:root .brand-dl a.brand-dl__btn--ghost:hover,
:root .brand-dl a.brand-dl__btn--ghost:focus-visible {
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
  -webkit-text-fill-color: #000000;
}
:root .brand-dl a.brand-dl__btn * {
  color: inherit;
  -webkit-text-fill-color: inherit;
}
:root .brand-dl__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #000000;
  color: #ffb236;
}
:root .brand-dl a.brand-dl__btn:hover .brand-dl__icon {
  color: #ffb236;
}
:root .brand-dl__icon svg {
  color: #ffb236 !important;
  transition: transform 0.25s ease;
}
:root .brand-dl a.brand-dl__btn:hover .brand-dl__icon svg {
  transform: translateY(3px);
}
:root .brand-dl__label {
  display: grid;
  gap: 1px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}
:root .brand-dl__label small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.8;
}
:root .brand-dl__fine {
  display: block;
  font-size: 12px;
  color: #9a9da3;
}
@media (prefers-reduced-motion: reduce) {
  :root .brand-dl__page,
  :root .brand-dl a.brand-dl__btn,
  :root .brand-dl__icon svg {
    transition: none;
  }
}

/* ======================================================================
   Cookie preferences dialog
   Squarer panel with an orange top bar, a black icon chip, category cards, an orange switch, and three
   equal-weight buttons (Reject and Accept are the same size on purpose).
   ====================================================================== */
:root .ck-modal__scrim {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
:root .ck-modal__panel {
  width: min(640px, 100%);
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}
:root .ck-modal__panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 6px;
  background: #ffb236;
  z-index: 2;
}
:root .ck-modal__head {
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 2.8vw, 30px) clamp(20px, 2.4vw, 28px) clamp(18px, 2.2vw, 22px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
:root .ck-modal__ic {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #000000;
  color: #ffb236;
}
:root .ck-modal__head h2 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1vw + 12px, 22px);
  line-height: 1.2;
  color: var(--ink);
}
:root .ck-modal__head p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
:root .ck-modal__x {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}
:root .ck-modal__x:hover,
:root .ck-modal__x:focus-visible {
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
}
:root .ck-modal__body {
  padding: 16px clamp(20px, 2.4vw, 28px);
  display: grid;
  align-content: start;
  gap: 10px;
}
/* each category is a card */
:root .ck-cat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  background: var(--surface);
  transition: border-color 0.18s ease;
}
:root .ck-cat:hover,
:root .ck-cat.is-open {
  border-color: var(--ink);
}
:root .ck-cat:last-child {
  border-bottom: 1px solid var(--line);
}
:root .ck-cat.is-open:last-child,
:root .ck-cat:hover:last-child {
  border-color: var(--ink);
}
:root .ck-cat__top {
  padding: 14px 0;
}
:root .ck-cat__disclose {
  font-size: 14px;
  color: var(--ink);
}
:root .ck-cat__chev {
  color: var(--ink);
}
:root .ck-cat__desc {
  margin: 0 0 14px 24px;
  font-size: 12.5px;
  color: var(--muted);
}
:root .ck-cat__always {
  padding: 5px 11px;
  border-radius: 6px;
  background: #000000;
  color: #ffb236;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* switch: orange when on, black thumb */
:root .ck-switch__track {
  width: 48px;
  height: 26px;
  border-radius: 8px;
  background: var(--line-strong, #cfcfc8);
}
:root .ck-switch__thumb {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}
:root .ck-switch input:checked + .ck-switch__track {
  background: #ffb236;
}
:root .ck-switch input:checked + .ck-switch__track .ck-switch__thumb {
  background: #000000;
  transform: translateX(22px);
}
:root .ck-switch input:focus-visible + .ck-switch__track {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
/* three equal buttons */
:root .ck-modal__foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: clamp(16px, 2vw, 20px) clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
:root .ck-modal__foot .btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  padding-inline: 12px;
  font-size: 12.5px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  :root .ck-modal__foot {
    grid-template-columns: minmax(0, 1fr);
  }
  :root .ck-modal__foot .btn:last-child {
    order: -1;
  }
}

/* Cookie buttons: short and compact (banner and preferences dialog). */
:root .ck__actions .btn,
:root .ck-modal__foot .btn {
  min-height: 34px;
  height: 34px;
  padding-block: 0;
  padding-inline: 14px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  line-height: 1;
  border-width: 1.5px;
}
:root .ck-modal__foot {
  padding-block: 14px;
}

/* ======================================================================
   Brand guidelines band, restyle: compact and horizontal (like the company profile band).
   Pages fanned on the left with a PDF badge; text and buttons on the right. Wraps only when the card is narrow.
   ====================================================================== */
:root .brand-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 14px;
}
/* faint dot pattern, no gradients */
:root .brand-dl::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #f4f5ef;
  opacity: 0.06;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='11' cy='11' r='1.2'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='11' cy='11' r='1.2'/></svg>");
  -webkit-mask-size: 22px 22px;
  mask-size: 22px 22px;
  pointer-events: none;
}
:root .brand-dl__preview {
  flex: 0 0 clamp(190px, 34%, 240px);
  width: auto;
  max-width: none;
  aspect-ratio: 1 / 0.9;
  margin-inline: auto;
}
:root .brand-dl__preview::before {
  content: 'PDF';
  position: absolute;
  left: 0;
  top: 2%;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 6px;
  background: #ffb236;
  color: #000000;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
:root .brand-dl__page {
  width: 80%;
  border-radius: 6px;
}
:root .brand-dl__page--a { left: 0; top: 24%; }
:root .brand-dl__page--b { left: 10%; top: 12%; }
:root .brand-dl__page--c { left: 20%; top: 0; }
:root .brand-dl__body {
  flex: 1 1 310px;
  min-width: 0;
}
:root .brand-dl__eyebrow {
  margin-bottom: 8px;
  font-size: 10.5px;
}
:root .brand-dl .brand-dl__title {
  margin-bottom: 8px;
  font-size: clamp(19px, 1vw + 12px, 24px);
}
:root .brand-dl__text {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
}
:root .brand-dl__facts {
  gap: 6px;
  margin-bottom: 18px;
}
:root .brand-dl__facts li {
  padding: 4px 9px;
  font-size: 10.5px;
}
:root .brand-dl__actions {
  gap: 10px;
  margin-bottom: 12px;
}
:root .brand-dl a.brand-dl__btn {
  gap: 12px;
  padding: 8px 18px 8px 8px;
}
:root .brand-dl a.brand-dl__btn--ghost {
  padding: 8px 18px;
}
:root .brand-dl__icon {
  width: 34px;
  height: 34px;
}
:root .brand-dl__label {
  font-size: 12px;
}
:root .brand-dl__label small {
  font-size: 10px;
}
:root .brand-dl__fine {
  font-size: 11.5px;
}

/* Company profile band now shares the brand guidelines band (same markup classes). Its pages are 16:9. */
:root .brand-dl--profile .brand-dl__page {
  width: 84%;
}
:root .brand-dl--profile .brand-dl__page--a { left: 0; top: 30%; }
:root .brand-dl--profile .brand-dl__page--b { left: 8%; top: 15%; }
:root .brand-dl--profile .brand-dl__page--c { left: 16%; top: 0; }
:root .brand-dl--profile .brand-dl__preview {
  aspect-ratio: 1 / 0.78;
}

/* ======================================================================
   Sub-page banner: the two decorative cards drift a little.
   ::after = the orange card, ::before = the outlined card behind it.
   Idle: each floats and tilts on its own slow loop. Scrolling: they slide at different speeds, a
   little slower than the page, so the banner has depth. Only transform / translate are animated.
   ====================================================================== */
:root .page-intro::after {
  box-shadow: none;
  will-change: transform, translate;
  animation: ad-intro-float-a 9s ease-in-out infinite alternate;
}
:root .page-intro::before {
  content: '';
  display: block;
  position: absolute;
  right: max(5vw, calc((100vw - var(--container)) / 2 + 40px));
  top: calc(var(--header-h) + 36px);
  left: auto;
  bottom: auto;
  width: clamp(120px, 17vw, 250px);
  height: clamp(150px, 21vw, 300px);
  margin: 0;
  background: var(--bg);
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  transform: translate(-34px, 26px) rotate(7deg) scale(0.96);
  will-change: transform, translate;
  animation: ad-intro-float-b 12s ease-in-out infinite alternate;
}
@keyframes ad-intro-float-a {
  from { transform: translate3d(0, 0, 0) rotate(7deg); }
  to { transform: translate3d(6px, -12px, 0) rotate(5.2deg); }
}
@keyframes ad-intro-float-b {
  from { transform: translate(-34px, 26px) rotate(7deg) scale(0.96); }
  to { transform: translate(-42px, 36px) rotate(9.4deg) scale(0.96); }
}
@supports (animation-timeline: scroll()) {
  :root .page-intro::after {
    animation: ad-intro-float-a 9s ease-in-out infinite alternate, ad-intro-scroll-a linear both;
    animation-timeline: auto, scroll(root block);
    animation-range: normal, 0 520px;
  }
  :root .page-intro::before {
    animation: ad-intro-float-b 12s ease-in-out infinite alternate, ad-intro-scroll-b linear both;
    animation-timeline: auto, scroll(root block);
    animation-range: normal, 0 520px;
  }
  @keyframes ad-intro-scroll-a {
    from { translate: 0 0; }
    to { translate: 22px 70px; }
  }
  @keyframes ad-intro-scroll-b {
    from { translate: 0 0; }
    to { translate: -26px 28px; }
  }
}
@media (max-width: 980px) {
  :root .page-intro::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .page-intro::before,
  :root .page-intro::after {
    animation: none !important;
  }
}

/* ======================================================================
   Dotted backgrounds drift, like the banner cards.
   Idle: the dot grid slides one tile every few seconds (seamless loop, mask-position).
   Scrolling: the layer shifts a little as its card crosses the screen (view timeline).
   The layers are 32px oversize so the shift never shows an edge; their parents clip them.
   ====================================================================== */
:root .pricing-card::before,
:root .brand-dl::after {
  inset: -32px;
}
:root .footer-cta__row::after {
  top: -32px;
  bottom: -32px;
  right: -32px;
  width: calc(46% + 32px);
}
:root .pricing-card::before {
  animation: ad-dots-16 7s linear infinite;
}
:root .footer-cta__row::after {
  animation: ad-dots-16 7s linear infinite;
}
:root .brand-dl::after {
  animation: ad-dots-22 9s linear infinite;
}
@keyframes ad-dots-16 {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 16px 16px; mask-position: 16px 16px; }
}
@keyframes ad-dots-22 {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 22px 22px; mask-position: 22px 22px; }
}
@supports (animation-timeline: view()) {
  :root .pricing-card::before {
    animation: ad-dots-16 7s linear infinite, ad-dots-shift linear both;
    animation-timeline: auto, view();
    animation-range: normal, cover 0% cover 100%;
  }
  :root .footer-cta__row::after {
    animation: ad-dots-16 7s linear infinite, ad-dots-shift linear both;
    animation-timeline: auto, view();
    animation-range: normal, cover 0% cover 100%;
  }
  :root .brand-dl::after {
    animation: ad-dots-22 9s linear infinite, ad-dots-shift linear both;
    animation-timeline: auto, view();
    animation-range: normal, cover 0% cover 100%;
  }
  @keyframes ad-dots-shift {
    from { translate: -14px 10px; }
    to { translate: 14px -10px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .pricing-card::before,
  :root .footer-cta__row::after,
  :root .brand-dl::after {
    animation: none !important;
  }
}

/* ======================================================================
   Home hero: the orange sticker behind the work slider drifts like the banner cards.
   Idle float + tilt, and a slower slide as the page scrolls. The only other patterns and
   backgrounds on the site (banner cards, dot grids) drift in the sections above.
   ====================================================================== */
:root .hero__showcase::before {
  will-change: transform, translate;
  animation: ad-hero-float 10s ease-in-out infinite alternate;
}
@keyframes ad-hero-float {
  from { transform: translate3d(0, 0, 0) rotate(6deg); }
  to { transform: translate3d(8px, -14px, 0) rotate(4.4deg); }
}
@supports (animation-timeline: scroll()) {
  :root .hero__showcase::before {
    animation: ad-hero-float 10s ease-in-out infinite alternate, ad-hero-scroll linear both;
    animation-timeline: auto, scroll(root block);
    animation-range: normal, 0 600px;
  }
  @keyframes ad-hero-scroll {
    from { translate: 0 0; }
    to { translate: 24px 64px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root .hero__showcase::before {
    animation: none !important;
  }
}

/* ======================================================================
   /book/manage/: change or cancel a booking
   ====================================================================== */
:root .bkm { max-width: 720px; margin: 0 auto; }
:root .bkm__card { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
:root .bkm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
:root .bkm__ref { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
:root .bkm__state { padding: 4px 10px; border-radius: 6px; background: var(--v2-mark); color: #000000; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
:root .bkm[data-status='cancelled'] .bkm__state { background: var(--bg-alt); color: var(--muted); }
:root .bkm__title { margin: 0 0 16px; font-size: clamp(20px, 2vw + 10px, 28px); }
:root .bkm__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
:root .bkm__cell { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); }
:root .bkm__cell span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
:root .bkm__cell strong { font-size: 14px; color: var(--ink); }
:root .bkm__cell em { font-size: 12px; font-style: normal; color: var(--muted); }
:root .bkm__msg { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; }
:root .bkm__msg.is-ok { color: var(--ink); font-weight: 600; }
:root .bkm__msg.is-bad { color: var(--danger, #b3261e); font-weight: 600; }
:root .bkm__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
:root .bkm__move { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
:root .bkm__move h3 { margin: 0 0 12px; font-size: 16px; }
:root .bkm .bkm__danger:hover { border-color: var(--danger, #b3261e); color: var(--danger, #b3261e); }

/* ======================================================================
   Booking console v2 (/book/): clearer steps, orange selection, readable hover on every state.
   Black text on orange, black text on white; the selected state never depends on a hover colour.
   ====================================================================== */
:root .bk { gap: 16px; }

/* step rail */
:root .bk__rail { padding: 5px; border-radius: 12px; border-color: var(--line); background: var(--surface); }
:root .bk__rail-link { width: 26px; background: var(--line-strong); }
:root .bk__step { padding: 8px 14px 8px 8px; border-radius: 8px; color: var(--ink); font-weight: 600; }
:root .bk__step:hover:not(:disabled):not(.is-on) { background: var(--bg-alt); color: var(--ink); }
:root .bk__step.is-on,
:root .bk__step.is-on:hover { background: var(--ink); color: var(--bg); }
:root .bk__step.is-locked { color: var(--muted); opacity: 0.65; }
:root .bk__step-n { width: 22px; height: 22px; background: var(--bg-alt); color: #000000; font-size: 11px; }
:root .bk__step.is-on .bk__step-n { background: #ffb236; color: #000000; }
:root .bk__step:not(.is-on):not(.is-locked) .bk__step-n { background: #ffb236; color: #000000; }

/* console shell */
:root .bk__console { border-radius: 14px; border-color: var(--line); box-shadow: none; background: var(--surface); }
:root .bk__pane { border-color: var(--line); }
:root .bk__pane-head { padding: 13px 18px; background: var(--bg-alt); }
:root .bk__pane-head h3 { font-family: var(--v2-display); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
:root .bk__pane-head span { color: var(--muted); }
:root .bk__pane-body { padding: 18px; gap: 10px; max-height: none; overflow: visible; }

/* services */
:root .bk-type { padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; transition: border-color 0.18s, background-color 0.18s, transform 0.18s; }
:root .bk-type:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); transform: translateY(-1px); }
:root .bk-type:focus-visible { outline: 2px solid #ffb236; outline-offset: 2px; }
:root .bk-type.is-on,
:root .bk-type.is-on:hover { border-color: var(--ink); background: color-mix(in srgb, #ffb236 14%, var(--surface)); box-shadow: inset 4px 0 0 #ffb236; transform: none; }
:root .bk-type__tick { width: 20px; height: 20px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 800; }
:root .bk-type:hover .bk-type__tick { border-color: var(--ink); }
:root .bk-type.is-on .bk-type__tick { background: #ffb236; border-color: var(--ink); }
:root .bk-type__body strong { font-size: 14px; color: var(--ink); }
:root .bk-type__body em { color: var(--muted); }
:root .bk-type__meta { color: var(--ink); font-weight: 600; }

/* days */
:root .bk-days { gap: 8px; padding-bottom: 6px; }
:root .bk-day { width: 62px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color 0.18s, background-color 0.18s, transform 0.18s; }
:root .bk-day:hover:not(.is-on) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); transform: translateY(-1px); }
:root .bk-day.is-on,
:root .bk-day.is-on:hover { background: #ffb236; border-color: var(--ink); color: #000000; transform: none; }
:root .bk-day__n,
:root .bk-day__m { opacity: 0.8; }
:root .bk-day__c { background: var(--bg-alt); color: var(--ink); }
:root .bk-day.is-on .bk-day__c { background: #000000; color: #ffffff; }
:root .bk-day--more { color: var(--ink); border-color: var(--line-strong); }
:root .bk-day--more:hover { border-color: var(--ink); background: #ffb236; color: #000000; }

/* times */
:root .bk-time { padding: 10px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; transition: border-color 0.18s, background-color 0.18s, transform 0.18s; }
:root .bk-time:hover:not(.is-on) { border-color: var(--ink); background: color-mix(in srgb, #ffb236 14%, var(--surface)); transform: translateY(-1px); }
:root .bk-time.is-on,
:root .bk-time.is-on:hover { background: #ffb236; border-color: var(--ink); color: #000000; transform: none; }
:root .bk-day:focus-visible,
:root .bk-time:focus-visible,
:root .bk__step:focus-visible { outline: 2px solid #ffb236; outline-offset: 2px; }

/* empty and locked panes: readable, not ghosted */
:root .bk-locked { margin: 30px 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 13px; }
:root .bk-note { color: var(--muted); font-size: 12.5px; }

/* the form */

/* the dock */
:root .bk__dock { padding: 14px 18px; background: var(--bg-alt); border-top: 1px solid var(--line); }
:root .bk__summary strong { color: var(--ink); font-size: 14px; }
:root .bk__summary span { color: var(--ink-soft); }
:root .bk__dock .btn { min-width: 190px; justify-content: center; }
:root .bk__dock .btn:disabled { background: var(--bg-alt); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; transform: none; }
:root .bk__dock .btn:not(:disabled) { background: #ffb236; border-color: var(--ink); color: #000000; }
:root .bk__dock .btn:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:root .bk__error { border-radius: 8px; border: 1px solid var(--danger, #b3261e); background: color-mix(in srgb, var(--danger, #b3261e) 10%, var(--surface)); color: var(--ink); }
:root .bk-foot { color: var(--muted); }

/* booked */
:root .bk-done { border-radius: 14px; border-color: var(--line); }
:root .bk-done__head { background: #000000; color: #ffffff; }
:root .bk-done__mark { background: #ffb236; color: #000000; border-radius: 10px; }
:root .bk-done__title { color: #ffffff; font-family: var(--v2-display); font-size: 22px; letter-spacing: -0.04em; }
:root .bk-done__msg { color: #c3c6cc; opacity: 1; }
:root .bk-done__cell { border-radius: 10px; background: var(--bg-alt); }
:root .bk-done__cal { background: #ffb236; color: #000000; }
:root .bk-done__cal:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 1023px) {
  :root .bk__pane-body { padding: 16px; }
  :root .bk__dock .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  :root .bk-type, :root .bk-day, :root .bk-time { transition: none; transform: none !important; }
}


/* ======================================================================
   Fix My WordPress wizard: as wide as the header and footer, steps across the top,
   the form on the left, a black "what happens next" card on the right.
   ====================================================================== */
:root .wp-wizard {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0 clamp(20px, 3vw, 32px);
  align-items: start;
}
:root .wp-wizard__steps { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vw, 36px); padding: 18px clamp(16px, 3vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
:root .wp-wizard__step::before { top: 17px; height: 2px; background: var(--line-strong); }
:root .wp-wizard__step.is-done::before { background: #ffb236; }
:root .wp-wizard__step-dot { width: 36px; height: 36px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 14px; }
:root .wp-wizard__step.is-active .wp-wizard__step-dot { border-color: var(--ink); background: #ffb236; color: #000000; box-shadow: none; }
:root .wp-wizard__step.is-done .wp-wizard__step-dot { border-color: var(--ink); background: #ffb236; color: #000000; }
:root .wp-wizard__step-dot svg { stroke: #000000; }
:root .wp-wizard__step-label { font-size: 13px; }
:root .wp-wizard__form { grid-column: 1; border-radius: 14px; padding: clamp(22px, 3.4vw, 44px); background: var(--surface); border-color: var(--line); }
:root .wp-wizard__panel h2 { margin: 0 0 8px; font-family: var(--v2-display); font-size: clamp(20px, 1.4vw + 12px, 28px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; color: var(--ink); }
:root .wp-wizard__panel h2::after { display: none; }
:root .wp-wizard__hint { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
:root .wp-wizard__chips { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
:root .wp-wizard__chip,
:root .wp-wizard__choice { border-radius: 10px; border-color: var(--line-strong); color: var(--ink); transition: border-color 0.18s, background-color 0.18s, transform 0.18s; }
:root .wp-wizard__chip:hover,
:root .wp-wizard__choice:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); transform: translateY(-1px); }
:root .wp-wizard__chip::before { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); }
:root .wp-wizard__chip:has(input:checked),
:root .wp-wizard__choice.is-checked { border-color: var(--ink); background: color-mix(in srgb, #ffb236 14%, var(--surface)); transform: none; }
:root .wp-wizard__chip:has(input:checked)::before { border-color: var(--ink); background-color: #ffb236; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-size: 13px 13px; background-position: center; background-repeat: no-repeat; }
:root .wp-wizard__choice::before { border-color: var(--line-strong); background: var(--surface); }
:root .wp-wizard__choice.is-checked::before { border-color: var(--ink); background: #ffb236; box-shadow: inset 0 0 0 3px var(--surface); }
:root .wp-wizard__choice-label { color: var(--ink); }
:root .wp-wizard__choice-note { color: var(--muted); }
:root .wp-wizard__fieldset legend { font-size: 14px; color: var(--ink); }
:root .wp-wizard__summary { border-radius: 10px; background: var(--bg-alt); }
:root .wp-wizard__nav { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
:root .wp-wizard__cancel { color: var(--muted); font-weight: 500; }
:root .wp-wizard__cancel:hover { color: var(--ink); }
:root .wp-wizard__nav .btn { min-width: 170px; justify-content: center; }
:root .wp-wizard__nav .btn:disabled { background: var(--bg-alt); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; }
:root .wp-wizard__form .reply-promise { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; }
:root .wp-wizard__form .reply-promise svg { color: #ffb236; }

/* the side card */
:root .wp-wizard__aside {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 26px;
  border-radius: 14px;
  background: #000000;
  color: #f4f5ef;
  --ink: #f4f5ef;
}
:root .wp-wizard__aside h3 { margin: 0 0 18px; font-family: var(--v2-display); font-size: 15px; font-weight: 600; letter-spacing: -0.03em; color: #f4f5ef; }
:root .wp-wizard__aside h3::after { display: none; }
:root .wp-wizard__aside ol { display: grid; gap: 18px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: wpa; }
:root .wp-wizard__aside li { position: relative; display: grid; gap: 2px; padding-left: 42px; counter-increment: wpa; }
:root .wp-wizard__aside li::marker { content: ''; }
:root .wp-wizard__aside li::before { content: counter(wpa); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ffb236; color: #000000; font-size: 13px; font-weight: 700; }
:root .wp-wizard__aside li b { font-size: 14px; color: #f4f5ef; }
:root .wp-wizard__aside li span { font-size: 13px; line-height: 1.5; color: #b4b7bd; }
:root .wp-wizard a.wp-wizard__call { display: block; padding: 12px 16px; border: 1px solid #3a3a3a; border-radius: 6px; color: #f4f5ef; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; transition: background-color 0.18s, color 0.18s, border-color 0.18s; }
:root .wp-wizard a.wp-wizard__call:hover,
:root .wp-wizard a.wp-wizard__call:focus-visible { background: #ffb236; border-color: #ffb236; color: #000000; }

@media (max-width: 960px) {
  :root .wp-wizard { grid-template-columns: minmax(0, 1fr); }
  :root .wp-wizard__aside { grid-column: 1; grid-row: auto; position: static; margin-top: 20px; }
}
@media (max-width: 560px) {
  :root .wp-wizard__step-label { font-size: 11px; }
  :root .wp-wizard__steps { padding-inline: 8px; }
  :root .wp-wizard__nav .btn { min-width: 0; }
}

/* ======================================================================
   Forms: one standard. Contact, quote, consultation, Fix My WordPress, review and booking all use
   the same field (icon + floating label), the same option tiles and the same primary button.
   Field: 8px corners, white, hairline border, black on hover, black border + orange ring on focus.
   ====================================================================== */
:root .field__input,
:root .field select,
:root .field textarea {
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
:root .field__input:hover:not(:focus):not(:disabled) { border-color: var(--ink); }
:root .field__input:focus,
:root .field select:focus,
:root .field textarea:focus {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 178, 54, 0.5);
}
:root .field__input:disabled { opacity: 0.6; cursor: not-allowed; }
:root .field__label { color: var(--muted); }
:root .field__label span { color: var(--ink); }
:root .field:focus-within .field__label,
:root .field__input:not(:placeholder-shown) + .field__label,
:root .field--select .field__label { color: var(--ink-soft); }
:root .field:focus-within .field__ic { color: var(--ink); }
:root .field--select .field__input {
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355585e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root .field-row2, :root .field-row3 { gap: 14px; }

/* the stacked fields inside the booking panes and the review form keep one rhythm */
:root .bk__pane-body:has(.field) { gap: 14px; }
:root .review-form { gap: 14px; }
:root .review-form__grid { gap: 14px; }
:root .review-form__sum { max-width: 360px; }
:root .review-form__note { color: var(--muted); }
:root .review-form__error { border-radius: 8px; border-color: var(--danger, #b3261e); background: color-mix(in srgb, var(--danger, #b3261e) 10%, var(--surface)); color: var(--ink); }
:root .review-form--done { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
:root .review-form__tick { background: #ffb236; color: #000000; border-radius: 10px; }

/* option tiles: service tiles share the look of the booking and wizard options */
:root .svc-tile__face { border-radius: 10px; border-color: var(--line-strong); background: var(--surface); transition: border-color 0.18s, background-color 0.18s, transform 0.18s; }
:root .svc-tile__face::before { display: none; }
:root .svc-tile:hover .svc-tile__face { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); transform: translateY(-1px); box-shadow: none; }
:root .svc-tile input:checked + .svc-tile__face,
:root .svc-tile input:checked:hover + .svc-tile__face { border-color: var(--ink); background: color-mix(in srgb, #ffb236 14%, var(--surface)); box-shadow: none; transform: none; }
:root .svc-tile__ic { border-radius: 8px; background: color-mix(in srgb, #ffb236 22%, var(--surface)); color: var(--ink); }
:root .svc-tile__tick { background: #ffb236; color: #000000; }
:root .svc-tile input:focus-visible + .svc-tile__face { outline: 2px solid #ffb236; outline-offset: 2px; }

/* the primary submit button, and notices */
:root .btn.inquiry-form__send:disabled,
:root .review-form .btn:disabled { background: var(--bg-alt); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; }
:root .form-error { border-radius: 8px; }
:root .reply-promise { color: var(--muted); }
:root .reply-promise svg { color: #ffb236; }

/* consultation modal: day and time chips match the booking page's days and times */
:root .day-chip { border-radius: 10px; border-color: var(--line); background: var(--surface); color: var(--ink); }
:root .day-chip:hover:not(.is-on) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); transform: translateY(-1px); }
:root .day-chip.is-on,
:root .day-chip.is-on:hover { border-color: var(--ink); background: #ffb236; box-shadow: none; transform: none; }
:root .day-chip.is-on .day-chip__top,
:root .day-chip.is-on .day-chip__month,
:root .day-chip.is-on .day-chip__num { color: #000000; }
:root .slot-chip { border-radius: 8px; border-color: var(--line); background: var(--surface); color: var(--ink); }
:root .slot-chip:hover:not(.is-on) { border-color: var(--ink); background: color-mix(in srgb, #ffb236 14%, var(--surface)); color: var(--ink); }
:root .slot-chip.is-on,
:root .slot-chip.is-on:hover { border-color: var(--ink); background: #ffb236; color: #000000; box-shadow: none; }

/* ======================================================================
   Buttons: one standard across every page.
   Action buttons: 4px corners, 13px / 600, uppercase, 0.08em tracking, 2px border.
   Primary = orange, black text; hover flips to ink. Secondary = outline in ink; hover fills ink.
   Chips and toggles (filters, view switches, presets, small tool switches): 6px corners, never pills.
   Round icon buttons (arrows, back to top, theme, chat) stay round.
   ====================================================================== */
:root .aside-cta__btn,
:root .closing-cta__button,
:root .home-tools-search__go,
:root .solo__go,
:root .case-overview__less,
:root .ctool__btn:not(.kf-code-toggle),
:root .dt__go {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-width: 2px;
  border-style: solid;
}
:root .aside-cta__btn,
:root .closing-cta__button,
:root .home-tools-search__go,
:root .solo__go,
:root .case-overview__less,
:root .ctool__btn:not(.kf-code-toggle),
:root .brand-dl a.brand-dl__btn { border-radius: 4px; }

/* the tool pages' action buttons */
:root .ctool__btn:not(.kf-code-toggle) { padding: 10px 18px; background: transparent; color: var(--ink); border-color: var(--ink); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
:root .ctool__btn:not(.kf-code-toggle):hover:not(:disabled),
:root .ctool__btn:not(.kf-code-toggle):focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:root .ctool__btn.ctool__btn--primary { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .ctool__btn.ctool__btn--primary:hover:not(:disabled),
:root .ctool__btn.ctool__btn--primary:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:root .ctool__btn.ctool__btn--quiet { border-color: transparent; color: var(--muted); }
:root .ctool__btn.ctool__btn--quiet:hover:not(:disabled) { background: transparent; border-color: transparent; color: var(--ink); }
:root .ctool__btn:disabled { background: var(--bg-alt); border-color: var(--line); color: var(--muted); cursor: not-allowed; opacity: 1; }
:root .solo__go { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .solo__go:hover:not(:disabled),
:root .solo__go:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:root .home-tools-search__go { font-size: 13px; letter-spacing: 0.08em; }
:root .dt__go { font-weight: 600; }

/* chips, toggles and small switches: 6px, not pills */
:root .ctool__tab,
:root .glossary__cat,
:root .glossary__letter,
:root .qr-preset,
:root .ktype__level,
:root .ktype__hands-btn,
:root .ktype__tour-btn,
:root .ktype__full,
:root .ktype__foot-toggle,
:root .ktype__pick-cur,
:root .kf-pin,
:root .kf-code-toggle,
:root .kedit__spell,
:root .inv-status__btn,
:root .tool-vote__pill,
:root .pricing-card__toggle,
:root .home-stories__control,
:root .glossary-term__badge { border-radius: 6px; }

/* ======================================================================
   Phone app tab bar (620px and narrower): Home, Services, Work, Book, Menu.
   Fixed to the bottom with the home-indicator inset; the floating chat button, back-to-top,
   cookie card and page end all sit above it.
   ====================================================================== */
:root .app-tabs { display: none; }
@media (max-width: 620px) {
  :root { --tabs-h: calc(62px + env(safe-area-inset-bottom, 0px)); }
  :root body { padding-bottom: var(--tabs-h); }
  :root .app-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 6px 6px env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, 0.45);
  }
  :root .app-tabs__tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s;
  }
  :root .app-tabs__ic { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background-color 0.18s; }
  :root .app-tabs__tab.is-on { color: var(--ink); }
  :root .app-tabs__tab.is-on .app-tabs__ic { background: #ffb236; color: #000000; }
  :root .app-tabs__tab:active .app-tabs__ic { background: color-mix(in srgb, #ffb236 55%, transparent); }
  :root .app-tabs__tab:focus-visible { outline: 2px solid #ffb236; outline-offset: -2px; }

  /* everything that floats in the corner moves up out of the bar's way */
  :root .chatw__bubble { bottom: calc(var(--tabs-h) + 14px); right: 14px; }
  :root .to-top { bottom: calc(var(--tabs-h) + 14px + 40px + 12px); right: 14px; }
  :root .ck { bottom: calc(var(--tabs-h) + 10px); left: 10px; width: calc(100vw - 20px); }
  :root .chatw { bottom: 0; right: 0; left: 0; width: 100%; max-height: calc(100dvh - 60px); border-radius: 16px 16px 0 0; z-index: 130; }
  :root .toast, :root .ad-toast { bottom: calc(var(--tabs-h) + 12px); }
  :root .bk__dock { bottom: var(--tabs-h); }
  /* the open menu is the app's "more" sheet: keep the tab bar visible below it */
  :root .site-nav.is-open { padding-bottom: calc(var(--tabs-h) + 16px); }
}

/* The phone header has no "Get Quote" button, so the hero keeps its primary call to action. */
@media (max-width: 560px) {
  :root .hero__actions .btn--primary { display: inline-flex; }
}

/* ======================================================================
   Audit fixes (14 Nov 2026): contrast, small text and tap targets found by the site-wide sweep.
   ====================================================================== */
/* orange text does not read on a light page: these links are ink with an orange underline, an orange block on hover */
:root :is(.home-faq__more a, .home-faq__tools-all a, .home-build__all, .faq-card__more a) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #ffb236;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
:root :is(.home-faq__more a, .home-faq__tools-all a, .home-build__all, .faq-card__more a):hover,
:root :is(.home-faq__more a, .home-faq__tools-all a, .home-build__all, .faq-card__more a):focus-visible {
  background: #ffb236;
  color: #000000;
  text-decoration-color: transparent;
}
/* the service closing banner's pale message card keeps its colours in both themes */
:root .closing-cta__eyebrow { color: #000000; }
:root .closing-cta__eyebrow::before { height: 3px; background: #ffb236; }
:root .closing-cta__lede { color: #55585e; }
:root .sitemap-card__count { color: var(--bg); }
:root .bk__step-n { color: var(--ink); }
:root .bk__step.is-on .bk__step-n,
:root .bk__step:not(.is-on):not(.is-locked) .bk__step-n { color: #000000; }
/* the invoice preview is a white page in both themes */
:root .inv-doc__label,
:root .inv-doc b { color: #000000; }

@media (max-width: 620px) {
  /* 10px labels are too small on a phone */
  :root .portfolio-tag,
  :root .tool-vote__cta,
  :root .badge-new { font-size: 11px; }
  /* bigger touch targets: the menu button, footer lists and the small link rows */
  :root .site-header__burger { min-width: 44px; min-height: 44px; }
  :root .site-footer__col a:not(.btn),
  :root .site-footer__legal a { display: inline-block; padding-block: 8px; }
  :root .site-footer__cookie { min-height: 40px; }
}

/* Phone: nothing readable is smaller than 11px. */
@media (max-width: 620px) {
  :root :is(.hero-slider__tag, .pulse__short, .pulse__cta-flag, .pulse__outcome, .mega__badge, .compare__mark, .compare__outcome span, .pricing-card__badge, .home-process__phase, .home-journal__badge, .brand-dl__label small, .founder-photo__cap span, .founder-link__chips span, .glossary-term__badge, .author-card__status, .closing-cta__steps li, .hero__trust span, .badge-new) {
    font-size: 11px;
  }
}

/* ======================================================================
   Phone header and footer, built like an app (620px and narrower).
   Header: a full-width bar that never collapses: logo, search, Get Quote. The menu is the bottom tab bar's "Menu".
   Footer: the call to action, a brand block, then grouped list rows like a settings screen.
   ====================================================================== */
@media (max-width: 620px) {
  :root { --header-h: calc(56px + env(safe-area-inset-top, 0px)); }

  /* ---- header ---- */
  :root .site-header { padding-top: 0; }
  :root .site-header > .container,
  :root .site-header .container { max-width: none; width: 100%; padding-inline: 0; margin: 0; }
  :root .site-header__bar,
  :root .site-header.is-compact .site-header__bar {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: var(--header-h);
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
    gap: 10px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #1f1f1f;
    background: #000000;
    box-shadow: none;
  }
  :root .site-header.is-scrolled .site-header__bar { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.7); }
  :root .site-header__logo-img { height: 34px; width: auto; }
  :root .site-header.is-scrolled .site-header__logo-img { transform: none; }
  /* never collapsed: neutralise every compact rule */
  :root .site-header.is-compact .site-header__actions--bar { max-width: none; opacity: 1; pointer-events: auto; overflow: visible; }
  :root .site-header.is-compact .site-nav { left: 0; right: 0; width: auto; }
  :root .site-header { transform: none !important; }
  :root .site-header__actions--bar { margin-left: auto; gap: 8px; align-items: center; }
  :root .search-palette__btn { width: 44px; height: 44px; min-width: 44px; padding: 0; justify-content: center; border-radius: 10px; }
  :root .search-palette__label { display: none; }
  :root .cta-pill--bar { display: inline-flex; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 12px; }
  :root .cta-pill--bar .cta-pill__badge { display: none; }
  :root .theme-toggle { display: none; }
  :root .site-header__burger { display: none; }

  /* ---- footer ---- */
  :root .site-footer__brand { display: grid; gap: 12px; padding-top: 8px; }
  :root .site-footer__wordmark { font-family: var(--v2-display); font-size: 20px; letter-spacing: -0.04em; margin: 0; }
  :root .site-footer__desc { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
  :root .footer-connect { display: grid; gap: 8px; }
  :root .footer-connect__label,
  :root .site-footer__heading { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 0; padding: 0; }
  :root .footer-chats,
  :root .footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
  :root .footer-chats li a,
  :root .footer-socials li a { width: 48px; height: 48px; border-radius: 12px; }

  /* link lists become grouped rows */
  :root .site-footer__col { display: grid; gap: 10px; }
  :root .site-footer__col ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
  :root .site-footer__col li + li { border-top: 1px solid var(--line); }
  :root .site-footer .site-footer__col a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 50px; padding: 12px 16px; margin: 0;
    font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; background: transparent;
  }
  :root .site-footer .site-footer__col a:not(.btn)::before { display: none; }
  :root .site-footer .site-footer__col a:not(.btn)::after {
    content: ''; flex: none; width: 8px; height: 8px; margin-left: 12px;
    border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg);
  }
  :root .site-footer .site-footer__col a:not(.btn):active { background: var(--bg-alt); }
  :root .site-footer .site-footer__col a:not(.btn):hover { background: var(--v2-mark); color: #000000; }
  :root .site-footer .site-footer__col a:not(.btn):hover::after { border-color: #000000; }

  :root .site-footer__offices { display: grid; gap: 10px; }
  :root .office-card { border-radius: 14px; }
  :root .office-card__summary { min-height: 56px; }

  /* the legal row: centred, small, tidy */
  :root .site-footer__legal,
  :root .site-footer .container > p + ul { justify-content: center; }
  :root .site-footer__legal ul,
  :root .site-footer .container > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; padding: 0; margin: 8px 0 0; list-style: none; }
  :root .site-footer__legal ul a,
  :root .site-footer .container > ul a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; font-size: 13px; color: var(--muted); }
  :root .site-footer .container > p { text-align: center; font-size: 12.5px; color: var(--muted); }
  :root .site-footer__cookie { min-height: 40px; }
}
@media (max-width: 620px) {
  /* the floating chat and back-to-top buttons sit in this space, clear of the legal links */
  :root .site-footer { padding-bottom: 96px; }
}
@media (max-width: 620px) {
  /* The Menu tab opens a full-width sheet between the app bar and the tab bar. */
  :root .site-header .site-nav.is-open {
    position: fixed;
    top: var(--header-h);
    bottom: var(--tabs-h);
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid #1f1f1f;
    overflow-y: auto;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) 24px;
    background: #0d0d0d;
    box-shadow: none;
    z-index: 50;
  }
  :root .site-nav__list > li > a,
  :root .site-nav__list > li > button { min-height: 52px; }
}
@media (max-width: 620px) {
  /* a filter or backdrop on the bar would turn it into the sheet's containing block and clip the sheet */
  :root .site-header,
  :root .site-header__bar,
  :root .site-header > .container {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    contain: none;
    overflow: visible;
    will-change: auto;
  }
}
@media (max-width: 620px) {
  /* no intro animation or transform on the bar: any transform would clip the fixed menu sheet inside it */
  :root html[data-intro]:not([data-boot]) .site-header__bar,
  :root .site-header__bar { animation: none; transform: none; }
}
@media (max-width: 620px) {
  html[data-intro]:not([data-boot]) .site-header__bar,
  html[data-intro]:not([data-boot]) .site-header__logo-img,
  html[data-intro]:not([data-boot]) .site-header__actions > * { animation: none !important; transform: none !important; }
}

/* ======================================================================
   Phone app mode (620px and narrower): show what a person needs, hide what only a desktop page needs.
   Nothing here deletes content: it is hidden by CSS on phones only, and every page keeps its
   content on desktop and tablet.
   Hidden on a phone: long marketing sections that repeat the services, decorative graphics, section labels,
   sidebars, duplicate calls to action (the app bar, the tab bar and the footer already carry them),
   breadcrumbs and the back-to-top button.
   ====================================================================== */
@media (max-width: 620px) {
  :root { --section-pad: 40px; }

  /* shorter page banners: the title, and a two-line intro */
  :root .page-intro { padding-top: calc(var(--header-h) + 18px); padding-bottom: 18px; border-bottom-width: 1px; }
  :root .page-intro h1 { font-size: 24px; max-width: none; }
  :root .page-intro .lede,
  :root .page-intro__grid .lede { margin-top: 10px; padding-left: 12px; font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  :root .section--flush-top { padding-top: 20px; }

  /* labels that only decorate */
  :root main .eyebrow,
  :root .footer-cta .eyebrow,
  :root .hero .eyebrow--chip { display: none !important; }

  /* sidebars, breadcrumbs, back to top */
  :root .blog-aside,
  :root .case-rail .contact-aside,
  :root .breadcrumb,
  :root .case-hero .breadcrumb,
  :root .to-top { display: none !important; }

  /* duplicate calls to action */
  :root .closing-cta,
  :root .cta-band,
  :root .section--flush-top:has(> .cta-band) { display: none !important; }

  /* home page: keep the hero, the work, the services as a list, pricing, reviews and questions */
  :root .pulse,
  :root .home-welcome,
  :root .home-compare,
  :root .home-process,
  :root .home-journal,
  :root .tech-strip,
  :root .home-faq__tools { display: none !important; }
  :root .home-build__intro p,
  :root .home-build__text,
  :root .home-build__go { display: none !important; }
  :root .home-build__intro { padding-bottom: 0; }
  :root .home-build__list { gap: 10px; }
  /* section intros are one heading, no paragraph; the pricing note box and the share button go too */
  :root .home-pricing .section-head .lede,
  :root .home-work .section-head p,
  :root .home-testimonials .section-head p,
  :root .home-pricing__foot,
  :root .home-testimonials__buttons a:not(:last-child) { display: none !important; }

  /* footer: the call to action is the headline and two buttons */
  :root .footer-cta__points { display: none !important; }
  :root .site-footer__desc { display: none !important; }
}
@media (max-width: 620px) {
  :root nav.crumb,
  :root .crumb,
  :root .svc-row__ghost,
  :root .case-hero .crumb { display: none !important; }
}

/* ======================================================================
   Phone: scrolling down shows the tab bar and tucks the top bar away; scrolling up shows the top bar and tucks the tab bar.
   (html.hdr-off / html.tabs-off are set by the script in partials/app-tabs.blade.php.)
   ====================================================================== */
@media (max-width: 620px) {
  :root { --tabs-offset: var(--tabs-h); }
  :root.tabs-off { --tabs-offset: env(safe-area-inset-bottom, 0px); }
  :root .app-tabs { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  :root.tabs-off .app-tabs { transform: translateY(calc(100% + 6px)); }
  :root .site-header { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  :root.hdr-off:not(.has-menu-open) .site-header { transform: translateY(calc(-100% - 6px)) !important; }
  /* the floating chat button, the cookie card and toasts follow the tab bar down */
  :root .chatw__bubble { bottom: calc(var(--tabs-offset) + 14px); transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.24s ease; }
  :root .ck { bottom: calc(var(--tabs-offset) + 10px); transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  :root .bk__dock { bottom: var(--tabs-offset); }
}
@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  :root .app-tabs, :root .site-header, :root .chatw__bubble, :root .ck { transition: none; }
}

/* Floating chat and back-to-top buttons: 40px circles (were 46px). The icons keep their size: chat 19px, rocket 20px. */
:root .chatw__bubble { width: 40px; height: 40px; }
:root .chatw__bubble svg { width: 19px; height: 19px; }
:root .to-top {
  width: 40px;
  height: 40px;
  bottom: calc(clamp(16px, 3vw, 30px) + 40px + 14px);
}
:root .to-top::after { inset: 3.5px; }
:root .to-top__ship, :root .to-top__ship svg { width: 20px; height: 20px; }
@media (max-width: 620px) {
  :root .to-top { bottom: calc(var(--tabs-offset, var(--tabs-h)) + 14px + 40px + 12px); }
}

/* Phone app bar: the search and Get Quote buttons are as tall as the logo icon (34px), not 44px. */
@media (max-width: 620px) {
  :root:root .site-header__actions--bar { height: 34px; gap: 8px; }
  :root:root .site-header__actions--bar .search-palette__btn,
  :root:root .site-header__actions--bar > a,
  :root:root .site-header__actions--bar .btn {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
  }
  :root:root .site-header__actions--bar .search-palette__btn { width: 34px; min-width: 34px; padding: 0; }
  :root:root .site-header__actions--bar > a,
  :root:root .site-header__actions--bar .btn { padding-block: 0; padding-inline: 14px; font-size: 13px; line-height: 1; }
}

/* Chat header controls: black buttons with an orange icon on the orange header (were white circles). */
:root .chatw__icon {
  background: #000;
  color: #ffb236;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.4);
}
:root .chatw__icon:hover {
  background: #0d0d0d;
  color: #ffc766;
}
:root .chatw__icon:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* The status dot sat orange on the orange header and could not be seen. */
:root .chatw__dot.is-ai { background: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.22); }
:root .chatw__dot.is-on { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18); }

/* Phone chat sheet: 15px gap on the left and right (was edge to edge). */
@media (max-width: 620px) {
  :root:root .chatw {
    left: max(15px, env(safe-area-inset-left, 0px));
    right: max(15px, env(safe-area-inset-right, 0px));
    width: auto;
  }
}

/* Phone menu sheet: a card 10px in from the left and right, like the chat box. */
@media (max-width: 620px) {
  :root:root .site-header .site-nav.is-open {
    top: calc(var(--header-h) + 8px);
    bottom: calc(var(--tabs-h) + 8px);
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    border: 1px solid #262626;
    border-radius: 16px;
  }
}

/* Phone tab bar, Facebook-app style: icons only, a bar on top of the active tab, no pill. */
@media (max-width: 620px) {
  :root { --tabs-h: calc(52px + env(safe-area-inset-bottom, 0px)); }
  :root:root .app-tabs {
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: #000;
    border-top: 1px solid #1f1f1f;
    box-shadow: none;
  }
  :root:root .app-tabs__tab {
    position: relative;
    min-height: 52px;
    padding: 0;
    gap: 0;
    border-radius: 0;
    color: #8a8d93;
  }
  :root:root .app-tabs__tab::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #ffb236;
    transform: translateX(-50%);
    transition: width 0.2s ease;
  }
  :root:root .app-tabs__tab.is-on::before { width: 56%; }
  :root:root .app-tabs__ic {
    width: 48px;
    height: 40px;
    border-radius: 12px;
    background: transparent;
    transition: transform 0.12s ease, color 0.18s;
  }
  :root:root .app-tabs__ic svg { width: 26px; height: 26px; stroke-width: 1.9; }
  :root:root .app-tabs__tab.is-on { color: #ffb236; }
  :root:root .app-tabs__tab.is-on .app-tabs__ic { background: transparent; color: #ffb236; }
  :root:root .app-tabs__tab.is-on .app-tabs__ic svg { fill: currentColor; fill-opacity: 0.2; }
  :root:root .app-tabs__tab:active .app-tabs__ic { background: rgba(255, 255, 255, 0.07); transform: scale(0.92); }
  /* the word stays for screen readers; the bar shows icons only */
  :root:root .app-tabs__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Cookie preferences dialog: about 30% smaller (width 640px to 450px, tighter rows and type). */
:root:root .ck-modal__panel { width: min(450px, 100%); border-radius: 12px; }
:root:root .ck-modal__panel::before { width: 68px; height: 4px; }
:root:root .ck-modal__head { gap: 12px; padding: 18px 18px 14px; }
:root:root .ck-modal__ic { width: 34px; height: 34px; border-radius: 7px; }
:root:root .ck-modal__ic svg { width: 18px; height: 18px; }
:root:root .ck-modal__head h2 { margin: 0 0 2px; font-size: 16px; }
:root:root .ck-modal__head p { font-size: 12px; line-height: 1.45; }
:root:root .ck-modal__x { width: 28px; height: 28px; }
:root:root .ck-modal__body { padding: 12px 18px; gap: 7px; }
:root:root .ck-cat { padding: 0 12px; border-radius: 8px; }
:root:root .ck-cat__top { padding: 9px 0; }
:root:root .ck-cat__disclose { font-size: 13px; }
:root:root .ck-cat__desc { margin: 0 0 10px 22px; font-size: 12px; }
:root:root .ck-cat__always { padding: 3px 8px; font-size: 10px; }
:root:root .ck-switch__track { width: 38px; height: 21px; }
:root:root .ck-switch__thumb { width: 15px; height: 15px; }
:root:root .ck-switch input:checked + .ck-switch__track .ck-switch__thumb { transform: translateX(17px); }
:root:root .ck-modal__foot { gap: 8px; padding: 12px 18px; }
:root:root .ck-modal__foot .btn { padding-inline: 8px; font-size: 10.5px; letter-spacing: 0.05em; }

/* Menu appearance switch: much shorter (55px to 34px). */
@media (max-width: 1200px) {
  :root:root .theme-drawer { gap: 6px; margin-top: 6px; padding-top: 8px; }
  :root:root .theme-drawer__options { padding: 2px; gap: 2px; border-radius: 10px; }
  :root:root .theme-drawer__opt { padding: 0; height: 30px; min-height: 0; border-radius: 8px; }
  :root:root .theme-drawer__opt svg { width: 17px; height: 17px; }
  :root:root .theme-drawer__opt.is-active { transform: none; box-shadow: none; }
}

/* Tab names: shown while the page is still, faded out while it scrolls (html.is-scrolling, set in partials/app-tabs). */
@media (max-width: 620px) {
  :root { --tabs-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
  :root:root .app-tabs__tab { min-height: 58px; gap: 1px; align-content: center; }
  :root:root .app-tabs__ic { height: 30px; }
  :root:root .app-tabs__ic svg { width: 24px; height: 24px; }
  :root:root .app-tabs__label {
    position: static;
    width: auto;
    height: 12px;
    margin: 0;
    overflow: visible;
    clip-path: none;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 12px;
    opacity: 1;
    transition: opacity 0.18s ease, height 0.2s ease;
  }
  :root:root.is-scrolling .app-tabs__label { opacity: 0; height: 0; }
}
@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  :root:root .app-tabs__label { transition: none; }
}

/* Typing practice needs a physical keyboard: on phones the "type online" link gives way to a short note. */
:root .rel__desk, :root .dl__also-desk { display: none; }
@media (max-width: 620px) {
  :root .rel__online, :root .dl__also-type { display: none; }
  :root .dl__also-desk { display: inline; }
  :root .rel__desk {
    display: grid;
    gap: 2px;
    margin: 4px 0 0;
    padding: 14px 16px;
    border: 1px dashed rgba(255, 178, 54, 0.45);
    border-radius: 12px;
    background: #000;
    color: #d9dad2;
    font-size: 13px;
    line-height: 1.5;
  }
  :root .rel__desk strong { color: #ffb236; font-size: 14px; }
}

/* Phone footer: half the empty space under the legal links (96px to 48px). */
@media (max-width: 620px) {
  :root:root .site-footer { padding-bottom: 48px; }
}

/* Free download page on a phone: the download comes first, and the long reading is left for a bigger screen. */
@media (max-width: 620px) {
  :root .rel__mark { display: none; }
  :root .rel__head { padding-bottom: 14px; gap: 10px; }
  :root .rel__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 22px; }
  :root .rel__facts > div:nth-child(3) { display: none; } /* "Licence: Free" is already in the tagline */
  :root .rel__body { display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
  :root .rel__get { order: -1; }
  :root .rel__points,
  :root .rel__lists > section:first-child { display: none; }
  :root .log__item:not(.is-latest) { display: none; }
  :root .dl__copy > section:not(.dl__also):not(:nth-child(3)) { display: none; }
}

/* Phone footer: "Chat with us" and "Follow us" share one row, with smaller buttons (38px, were 48px). */
@media (max-width: 620px) {
  :root:root .site-footer__brand { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 10px; }
  :root:root .site-footer__brand > :not(.footer-connect) { grid-column: 1 / -1; }
  :root:root .site-footer__brand > .footer-connect { grid-column: auto; margin-top: 4px; }
  :root:root .site-footer__brand .footer-connect { gap: 6px; }
  :root:root .site-footer__brand .footer-connect__label { font-size: 10.5px; }
  :root:root .site-footer .footer-chats,
  :root:root .site-footer .footer-socials { gap: 8px; flex-wrap: wrap; }
  :root:root .site-footer .chat-btn,
  :root:root .site-footer .soc-btn { width: 38px; height: 38px; min-width: 38px; padding: 0; border-radius: 8px; }
  :root:root .site-footer .chat-btn__ic { width: 24px; height: 24px; }
  :root:root .site-footer .chat-btn__ic svg { width: 16px; height: 16px; }
  :root:root .site-footer .soc-btn svg { width: 17px; height: 17px; }
}

/* Phone footer: the "Angkor Design" text title is hidden (the logo is already in the app bar). */
@media (max-width: 620px) {
  :root:root .site-footer__wordmark { display: none; }
}

/* Menu sheet and its appearance switch: a brighter border so the edges read on black. */
@media (max-width: 620px) {
  :root:root .site-header .site-nav.is-open { border-color: #3d3d3d; }
  :root:root .theme-drawer { border-top-color: #333; }
  :root:root .theme-drawer__options { border: 1px solid #4a4a4a; }
  :root:root .theme-drawer__opt.is-active { background: #262626; box-shadow: inset 0 0 0 1px #5a5a5a; }
}

/* Disabled primary buttons ("Choose a service", wizard Next, send and review buttons): a pale orange tint with
   dark readable text, instead of grey on grey. Built from tokens, so it follows light and dark mode. */
:root:root .bk__dock .btn:disabled,
:root:root .wp-wizard__nav .btn:disabled,
:root:root .btn.inquiry-form__send:disabled,
:root:root .review-form .btn:disabled,
:root:root .btn--primary:disabled {
  background: color-mix(in srgb, #ffb236 24%, var(--bg));
  border-color: color-mix(in srgb, #ffb236 50%, var(--bg));
  color: color-mix(in srgb, var(--ink) 66%, var(--bg));
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Booking buttons (/book/ and the manage page): black, orange on hover, white text turning black.
   In dark mode the border is light so the black button still reads on the dark panel. */
:root:root :is(.bk__dock .btn, .bk .btn--primary, .bkm .btn--primary):not(.bk-done__cal) {
  background: #000000;
  border: 2px solid var(--ink);
  color: #ffffff;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
}
:root:root :is(.bk__dock .btn, .bk .btn--primary, .bkm .btn--primary):not(.bk-done__cal):hover,
:root:root :is(.bk__dock .btn, .bk .btn--primary, .bkm .btn--primary):not(.bk-done__cal):focus-visible {
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
}
:root:root :is(.bk__dock .btn, .bk .btn--primary, .bkm .btn--primary):not(.bk-done__cal):disabled {
  background: #000000;
  border-color: #4a4a4a;
  color: #ffffff;
  opacity: 1;
  cursor: not-allowed;
}
/* hover turns even a not-yet-ready button orange with black text (same specificity, later, so it wins) */
:root:root :is(.bk__dock .btn, .bk .btn--primary, .bkm .btn--primary):not(.bk-done__cal):disabled:hover {
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
}

/* Phone footer social buttons: every icon centred in an identical 38px square (the chat icons sat left of centre
   inside their own tile, and the Telegram/WhatsApp/Messenger tiles did not match the Facebook one). */
@media (max-width: 620px) {
  :root:root .site-footer .chat-btn,
  :root:root .site-footer .soc-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
  }
  :root:root .site-footer .chat-btn__label { display: none; }
  :root:root .site-footer .chat-btn__ic {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }
  :root:root .site-footer .chat-btn__ic svg,
  :root:root .site-footer .soc-btn svg { width: 18px; height: 18px; margin: 0; }
}

/* Footer social buttons: a tooltip on hover (the shared [data-tip] bubble) instead of the label sliding open. */
:root:root .site-footer .chat-btn,
:root:root .site-footer .soc-btn { overflow: visible; }
:root:root .site-footer .chat-btn__label { display: none; }
:root:root .site-footer .chat-btn[data-tip]::after,
:root:root .site-footer .soc-btn[data-tip]::after { z-index: 20; }
/* the contact page's chat buttons now get the same tooltip as the footer (see the end of this file) */

/* Home loading screen: 20% smaller (name, tagline, "Loading" and the progress bar scale together). */
:root:root .boot__brand { transform: scale(0.8); transform-origin: center; }

/* Footer social tooltips: below the icon, orange with black text, so they never cover the heading above
   and stay readable on the black footer. */
:root:root .site-footer .chat-btn[data-tip]::after,
:root:root .site-footer .soc-btn[data-tip]::after {
  bottom: auto;
  top: calc(100% + 8px);
  background: #ffb236;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7);
}
:root:root .site-footer .chat-btn[data-tip]::before,
:root:root .site-footer .soc-btn[data-tip]::before {
  bottom: auto;
  top: calc(100% + 3px);
  border-top-color: transparent;
  border-bottom-color: #ffb236;
}
@media (min-width: 621px) {
  /* room under the chat row for its tooltip, so the bubble clears the "Follow us" heading */
  :root:root .site-footer__brand .footer-connect + .footer-connect { margin-top: 36px; }
}

/* ======================================================================
   Consultation popup: cleaner, same field and button standard as every other form.
   - the form no longer sits in a second bordered card inside the panel
   - the day strip fades at its right edge so it reads as scrollable
   - the send button stays in view at the bottom of the panel
   - black send button with orange hover, like every other booking button
   ====================================================================== */
:root .consult::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(5px); }
:root .consult__panel {
  border-radius: 16px;
  border: 1px solid var(--line-strong, var(--line));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}
:root .consult__body { padding: 18px 24px 24px; }
:root .consult__form.inquiry-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  gap: 12px;
}
:root .consult__form .field__input { border-radius: 8px; }
:root .consult__form .booking {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
:root .consult__form .booking__days {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  padding-right: 24px;
}
:root .consult__form .booking__slots {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  padding-right: 24px;
}
:root .consult__form .booking__legend { color: var(--ink); font-weight: 700; letter-spacing: 0.08em; }
:root .consult__form .booking__hint { color: var(--muted); }
:root .consult__send {
  position: sticky;
  bottom: 0;
  z-index: 3;
  box-shadow: 0 0 0 10px var(--surface);
}
:root:root .btn.inquiry-form__send.consult__send {
  background: #000000;
  border: 2px solid var(--ink);
  color: #ffffff;
}
:root:root .btn.inquiry-form__send.consult__send:hover,
:root:root .btn.inquiry-form__send.consult__send:focus-visible {
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
}
:root:root .btn.inquiry-form__send.consult__send:disabled { opacity: 0.7; cursor: wait; }
@media (max-width: 620px) {
  :root .consult { width: calc(100vw - 20px); }
  :root .consult__panel { max-height: calc(100dvh - 24px); }
  :root .consult__body { padding: 14px 16px 18px; }
}

/* ======================================================================
   Home testimonials: a real carousel.
   Every slide is always in the DOM and placed by --d (its distance from the front slide), so changing slide is a
   transform transition of the same cards sliding along, not a remount. The front card is large and white with an
   orange top edge; neighbours are smaller and dimmer and can be pressed to bring them forward. The progress
   segment under the cards fills over the 8 seconds each slide stays, and pauses while the pointer is over it.
   ====================================================================== */
:root .home-reel {
  --cw: min(660px, 56cqw);
  --gap: 28px;
  --h: 430px;
  container-type: inline-size;
  position: relative;
  height: calc(var(--h) + 56px);
  margin-top: 8px;
  overflow: hidden;
  /* the side slides fade into the page instead of being cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
:root .home-reel__card {
  --s: 1;
  position: absolute;
  top: 28px;
  left: 50%;
  width: var(--cw);
  height: var(--h);
  margin-left: calc(var(--cw) / -2);
  transform: translateX(calc(var(--d) * (var(--cw) + var(--gap)))) scale(var(--s));
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    box-shadow 0.5s ease,
    border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.35);
  opacity: 0.55;
  will-change: transform, opacity;
  overflow: hidden;
}
:root .home-reel__card.is-near { --s: 0.9; }
:root .home-reel__card.is-far { --s: 0.8; opacity: 0; pointer-events: none; }
:root .home-reel__card.is-active {
  --s: 1;
  z-index: 2;
  opacity: 1;
  border-color: var(--ink);
  box-shadow: 0 40px 70px -42px rgba(0, 0, 0, 0.55);
}
/* orange top edge on the front card */
:root .home-reel__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 5px;
  background: #ffb236;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
:root .home-reel__card.is-active::before { transform: scaleX(1); }
/* big quote glyph bleeding off the bottom right, behind the text */
:root .home-reel__card::after {
  content: '\201D';
  position: absolute;
  right: 22px;
  bottom: -62px;
  color: color-mix(in srgb, #ffb236 16%, transparent);
  font-family: var(--font-body);
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
:root .home-reel__jump {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
}
:root .home-reel__card:not(.is-active):not(.is-far):hover { opacity: 0.9; border-color: var(--ink); }
:root .home-reel__jump:focus-visible { outline: 2px solid #ffb236; outline-offset: -3px; }
:root .home-reel__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
:root .home-reel__body .home-story-card__top { display: flex; align-items: center; justify-content: space-between; }
:root .home-reel__body .home-story-card__mark { color: #ffb236; font-size: 64px; height: 36px; line-height: 0.82; }
:root .home-reel__body .home-story-card__stars { color: var(--ink); font-size: 14px; letter-spacing: 0.14em; }
:root .home-reel__card blockquote { margin: 16px 0 14px; min-height: 0; }
:root .home-reel__card blockquote p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
}
:root .home-reel__card:not(.is-active) blockquote p { -webkit-line-clamp: 6; color: var(--ink-soft, var(--muted)); }
:root .home-reel__card .home-story-card__client {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
:root .home-reel__card .testi-avatar { transition: background-color 0.4s, color 0.4s; }
:root .home-reel__card.is-active .testi-avatar { background: #ffb236; color: #000000; box-shadow: none; }
:root .home-reel__card .testi-name { font-size: 15px; color: var(--ink); }
:root .home-reel__card .testi-role { font-size: 12.5px; color: var(--muted); }

/* controls */
:root .home-reel-ctl {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 460px) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
  margin-top: 18px;
}
:root .home-reel-ctl__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
:root .home-reel-ctl__arrow:hover,
:root .home-reel-ctl__arrow:focus-visible { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .home-reel-ctl__arrow:active { transform: scale(0.92); }
:root .home-reel-ctl__count { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
:root .home-reel-ctl__count b { color: var(--ink); font-weight: 700; }
:root .home-reel-ctl__dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: center; }
:root .home-reel-ctl__dots button {
  position: relative;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.25s;
}
:root .home-reel-ctl__dots button::before { content: ''; position: absolute; inset: -10px 0; } /* bigger hit area */
:root .home-reel-ctl__dots button:hover { background: color-mix(in srgb, var(--ink) 36%, transparent); }
:root .home-reel-ctl__dots button.is-active { background: color-mix(in srgb, var(--ink) 16%, transparent); }
:root .home-reel-ctl__dots button i {
  position: absolute;
  inset: 0;
  background: #ffb236;
  transform: scaleX(0);
  transform-origin: left;
  animation: reel-fill 8s linear forwards;
}
:root .home-testimonials[data-paused='true'] .home-reel-ctl__dots button i { animation-play-state: paused; }
@keyframes reel-fill { to { transform: scaleX(1); } }
:root .home-reel-ctl__dots button:focus-visible { outline: 2px solid #ffb236; outline-offset: 4px; }

@media (max-width: 1200px) {
  :root .home-reel { --cw: min(560px, 74cqw); --gap: 20px; --h: 430px; }
}
@media (max-width: 620px) {
  :root .home-reel { --cw: 80cqw; --gap: 10px; --h: 410px; -webkit-mask-image: none; mask-image: none; }
  :root .home-reel__card { padding: 20px 18px; }
  :root .home-reel__card blockquote p { font-size: 15px; -webkit-line-clamp: 9; }
  :root .home-reel__card:not(.is-active) blockquote p { -webkit-line-clamp: 9; }
  :root .home-reel-ctl { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  :root .home-reel-ctl__count { display: none; }
  :root .home-reel-ctl__arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  :root .home-reel__card, :root .home-reel__card::before { transition-duration: 0.01ms; }
  :root .home-reel-ctl__dots button i { animation: none; transform: scaleX(1); }
}

/* ======================================================================
   Compact header (desktop, after scrolling): a slim black pill with the logo and an orange MENU button.
   It animates between full width and a fixed pill width (a plain length, so it is smooth in every browser),
   the logo shrinks with it, and the menu button is the one orange thing on the bar.
   ====================================================================== */
@media (min-width: 1201px) {
  :root .site-header.is-compact .site-header__bar {
    width: 312px;
    min-height: 0;
    height: 54px;
    padding: 5px 5px 5px 16px;
    justify-content: space-between;
    gap: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.7);
  }
  :root .site-header__logo-img { transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
  :root .site-header.is-compact .site-header__logo-img { height: 36px; width: auto; }
  :root .site-header.is-compact .site-header__burger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    margin-left: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #ffb236;
    color: #000000;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
  }
  :root .site-header.is-compact .site-header__burger:hover,
  :root .site-header.is-compact .site-header__burger:focus-visible { background: #f4f5ef; color: #000000; }
  :root .site-header.is-compact .site-header__burger:active { transform: scale(0.96); }
  :root .site-header.is-compact .site-header__burger .burger,
  :root .site-header.is-compact .site-header__burger .burger::before,
  :root .site-header.is-compact .site-header__burger .burger::after { background-color: #000000; color: #000000; }
  :root .site-header.is-compact .site-header__burger-word { color: #000000; font-weight: 700; letter-spacing: 0.08em; }
  :root .site-header.is-compact .site-nav { right: 0; }
}

/* Footer social buttons, every screen size: one identical 44px square per icon (no grey tile inside, no growing on
   hover). Hover turns the square orange with a black icon and lifts it 2px; the tooltip names the channel. */
:root:root .site-footer .chat-btn,
:root:root .site-footer .soc-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  gap: 0;
  border-radius: 8px;
}
:root:root .site-footer .chat-btn:hover,
:root:root .site-footer .chat-btn:focus-visible { padding: 0; }
:root:root .site-footer .chat-btn__ic {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
}
:root:root .site-footer .chat-btn__ic svg,
:root:root .site-footer .soc-btn svg { width: 19px; height: 19px; margin: 0; }
:root:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__ic,
:root:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__ic { background: transparent; color: #000000; }
:root:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__ic svg,
:root:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__ic svg,
:root:root .site-footer a.soc-btn:hover svg,
:root:root .site-footer a.soc-btn:focus-visible svg { color: #000000; }
@media (max-width: 620px) {
  :root:root .site-footer .chat-btn,
  :root:root .site-footer .soc-btn { width: 38px; height: 38px; min-width: 38px; }
  :root:root .site-footer .chat-btn__ic svg,
  :root:root .site-footer .soc-btn svg { width: 18px; height: 18px; }
}

/* Hover: the icon was orange on the orange square (its path kept an orange fill), and the tooltip's pointer
   picked up the button's shine gradient. The icon turns black; the pointer is a plain triangle. */
:root:root .site-footer a.chat-btn.chat-btn:hover .chat-btn__ic svg path,
:root:root .site-footer a.chat-btn.chat-btn:focus-visible .chat-btn__ic svg path,
:root:root .site-footer a.soc-btn:hover svg path,
:root:root .site-footer a.soc-btn:focus-visible svg path { fill: #000000; stroke: none; }
:root:root .site-footer .chat-btn[data-tip]::before,
:root:root .site-footer .soc-btn[data-tip]::before {
  inset: auto;
  left: 50%;
  top: calc(100% + 3px);
  width: 0;
  height: 0;
  background: none;
  transform: translateX(-50%);
  animation: none;
  transition: opacity 0.12s;
}

/* Footer tooltips start at the button's left edge, so the first one is never cut off by the page edge. */
:root:root .site-footer .chat-btn[data-tip]::after,
:root:root .site-footer .soc-btn[data-tip]::after { left: 0; transform: none; }
:root:root .site-footer .chat-btn[data-tip]::before,
:root:root .site-footer .soc-btn[data-tip]::before { left: 22px; }

/* ======================================================================
   "bold." in the home headline: the orange marker wipes in left to right, a soft light sweeps across it every
   few seconds, and the highlight breathes with a faint orange glow. All of it is background and shadow, so the
   word keeps its exact box, wrapping and text, and nothing shifts. Starts when the loading screen leaves.
   ====================================================================== */
:root .hero h1 .accent strong {
  background:
    linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.7) 50%, transparent 64%) 220% 0 / 260% 100% no-repeat,
    linear-gradient(#ffb236, #ffb236) 0 0 / 0% 100% no-repeat;
}
:root:not([data-boot]) .hero h1 .accent strong {
  animation:
    ad-bold-wipe 0.95s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both,
    ad-bold-shine 6.5s ease-in-out 2.2s infinite,
    ad-bold-glow 3.4s ease-in-out 1.3s infinite alternate;
}
@keyframes ad-bold-wipe {
  from { background-size: 260% 100%, 0% 100%; }
  to { background-size: 260% 100%, 100% 100%; }
}
@keyframes ad-bold-shine {
  0%, 62% { background-position: 220% 0, 0 0; }
  100% { background-position: -140% 0, 0 0; }
}
@keyframes ad-bold-glow {
  from { box-shadow: 0 0 0 0 rgba(255, 178, 54, 0); }
  to { box-shadow: 0 12px 34px -10px rgba(255, 178, 54, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  :root .hero h1 .accent strong,
  :root:not([data-boot]) .hero h1 .accent strong {
    animation: none;
    background:
      linear-gradient(#ffb236, #ffb236) 0 0 / 100% 100% no-repeat;
  }
}

/* ======================================================================
   Review form: the same pieces as the contact, quote and consultation forms.
   - Rating is five stars you press (the browser's own dropdown cannot be styled), in the same field box
   - the same consent checkbox and the same arrow send button as the other forms
   ====================================================================== */
:root .field--rating {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 20px 14px 6px 44px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s;
}
:root .field--rating:hover,
:root .field--rating:focus-within { border-color: var(--ink); }
:root .field--rating .field__ic { top: 50%; transform: translateY(-50%); }
:root .field__label--static {
  position: absolute;
  top: 7px;
  left: 44px;
  font-size: 11.5px;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
}
:root .rating { display: flex; align-items: center; gap: 2px; width: 100%; }
:root .rating__star {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer;
  transition: color 0.15s, transform 0.18s cubic-bezier(0.3, 1.5, 0.5, 1);
}
:root .rating__star svg { fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
:root .rating__star.is-on { color: #ffb236; }
:root .rating__star:hover { transform: scale(1.18) rotate(-6deg); }
:root .rating__star:active { transform: scale(0.92); }
:root .rating__star:focus-visible { outline: 2px solid #ffb236; outline-offset: 2px; border-radius: 6px; }
:root .rating__word { margin-left: auto; padding-left: 12px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
:root .review-form .consent-check { margin-top: 2px; }
:root .review-form__send { justify-self: start; }
@media (prefers-reduced-motion: reduce) {
  :root .rating__star { transition: color 0.1s; }
  :root .rating__star:hover { transform: none; }
}

/* Booking: the service list shows three services at a time and scrolls for the rest. Cards are a uniform height
   (description held to three lines) so "three" is a fixed height, and a fade at the bottom hints at more. */
:root .bk__pane-body:has(.bk-type) {
  --card-h: 152px;
  --card-gap: 10px;
  max-height: calc(var(--card-h) * 3 + var(--card-gap) * 2 + 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 30%, transparent) transparent;
  gap: var(--card-gap);
  align-content: start;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);
}
:root .bk__pane-body:has(.bk-type) .bk-type {
  box-sizing: border-box;
  min-height: var(--card-h);
  max-height: var(--card-h);
  scroll-snap-align: start;
  overflow: hidden;
}
:root:root .bk__pane-body:has(.bk-type) .bk-type em {
  display: -webkit-box;
  max-height: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Booking step rail: as wide as its three steps, not the whole page. */
:root .bk__rail { width: fit-content; max-width: 100%; }

/* ======================================================================
   Desktop menu panel (the compact header's MENU dropdown)
   - opens with a short scale-and-fade from its top right corner; the rows follow one after another
   - larger rows with an orange marker that slides in on hover; the current page gets an orange dot
   - the Get a Quote button and the light / dark / auto switch, which the collapsed bar tucked away, live
     at the bottom of the panel, so nothing is lost by scrolling
   ====================================================================== */
@media (min-width: 1201px) {
  :root:root .site-header.is-compact .site-nav.is-open {
    width: 320px;
    max-width: none;
    padding: 10px;
    gap: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d0d0d;
    box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.4);
    transform-origin: 100% 0;
    animation: ad-menu-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li {
    animation: ad-menu-row 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li:nth-child(2) { animation-delay: 0.03s; }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li:nth-child(3) { animation-delay: 0.07s; }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li:nth-child(4) { animation-delay: 0.11s; }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li:nth-child(5) { animation-delay: 0.15s; }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li:nth-child(6) { animation-delay: 0.19s; }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li:nth-child(7) { animation-delay: 0.23s; }

  :root:root .site-header.is-compact .site-nav__list > li > a,
  :root:root .site-header.is-compact .site-nav__list > li > button {
    position: relative;
    min-height: 48px;
    padding: 12px 14px 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s, padding-left 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  /* the orange marker that slides in on hover and focus */
  :root:root .site-header.is-compact .site-nav__list > li > a::before,
  :root:root .site-header.is-compact .site-nav__list > li > button::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 2px;
    background: #ffb236;
    transform: translateY(-50%);
    transition: height 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  :root:root .site-header.is-compact .site-nav__list > li > a:hover::before,
  :root:root .site-header.is-compact .site-nav__list > li > button:hover::before,
  :root:root .site-header.is-compact .site-nav__list > li > a:focus-visible::before,
  :root:root .site-header.is-compact .site-nav__list > li > button:focus-visible::before { height: 22px; }
  :root:root .site-header.is-compact .site-nav__list > li > a:hover,
  :root:root .site-header.is-compact .site-nav__list > li > button:hover { padding-left: 22px; }
  /* the current page: orange text and a small orange dot */
  :root:root .site-header.is-compact .site-nav__list > li > a[aria-current='page']::after,
  :root:root .site-header.is-compact .site-nav__list > li > button[aria-current='true']::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: #ffb236;
  }
  :root:root .site-header.is-compact .site-nav .caret { transition: transform 0.25s ease; opacity: 0.8; }
  :root:root .site-header.is-compact .site-nav__list > li > button[aria-expanded='true'] .caret { transform: rotate(180deg); }

  /* the pieces the collapsed bar tucked away */
  :root:root .site-header.is-compact .site-nav.is-open .site-header__actions--drawer {
    display: flex;
    margin: 4px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer {
    display: grid;
    gap: 6px;
    margin: 4px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}
@keyframes ad-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes ad-menu-row {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root:root .site-header.is-compact .site-nav.is-open,
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li { animation: none; }
}

/* the panel's own styling for the quote button and the appearance switch at desktop width
   (their base styles were written for the phone menu only) */
@media (min-width: 1201px) {
  :root:root .site-header.is-compact .site-nav.is-open .cta-pill--drawer {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 8px 0 16px;
    border-radius: 10px;
    background: #ffb236;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
  }
  :root:root .site-header.is-compact .site-nav.is-open .cta-pill--drawer:hover { background: #f4f5ef; color: #000000; }
  :root:root .site-header.is-compact .site-nav.is-open .cta-pill--drawer .cta-pill__badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #000000;
    color: #ffb236;
  }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9da3;
  }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer__label svg { color: #ffb236; }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer__options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    background: transparent;
  }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer__opt {
    display: grid;
    place-items: center;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9a9da3;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer__opt:hover { color: #f4f5ef; background: rgba(255, 255, 255, 0.06); }
  :root:root .site-header.is-compact .site-nav.is-open .theme-drawer__opt.is-active { background: #262626; color: #ffb236; box-shadow: inset 0 0 0 1px #5a5a5a; }
}

/* ======================================================================
   Desktop menu panel with a submenu open: the panel grows to fit.
   The main links stay in a column on the left and the open submenu drops into a second column beside them,
   so the panel is as wide as both and only as tall as the taller of the two. (display: contents lets the
   list, the open item, its button and its submenu all be placed on one grid.)
   ====================================================================== */
@media (min-width: 1201px) {
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    column-gap: 14px;
    align-content: start;
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .site-nav__list { display: contents; }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .site-nav__list > li { grid-column: 1; }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .site-nav__list > li.has-dropdown:has(.mega) { display: contents; }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .site-nav__list > li > button { grid-column: 1; }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .mega {
    grid-column: 2;
    grid-row: 1 / span 8;
    align-self: start;
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 4px 2px 4px 0;
    animation: ad-menu-row 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .site-header__actions--drawer,
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .theme-drawer { grid-column: 1; }
}

/* Header search: just the magnifier, no ⌘K badge. */
:root:root .search-palette__kbd { display: none; }
:root:root .search-palette__btn { width: 44px; min-width: 44px; padding: 0; justify-content: center; }

/* ======================================================================
   Desktop menu panel, second pass: the open submenu column
   - a quiet divider between the two columns, and the open parent row stays lit with an orange bar
   - a short header on the submenu (what it is, and a link to the whole section)
   - submenu cards are lighter: title in capitals, the description in normal sentence case so it reads,
     the number chip turning black on hover and an arrow sliding in
   - sub-links as small pills that fill orange on hover
   ====================================================================== */
@media (min-width: 1201px) {
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) { column-gap: 20px; }
  /* divider */
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .mega {
    position: relative;
    padding: 2px 2px 6px 20px;
    display: grid;
    gap: 8px;
    align-content: start;
  }
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .mega::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }
  /* the open parent stays lit */
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li > button[aria-expanded='true'] {
    background: rgba(255, 178, 54, 0.1);
    color: #ffb236;
  }
  :root:root .site-header.is-compact .site-nav.is-open .site-nav__list > li > button[aria-expanded='true']::before { height: 22px; }

  /* submenu header */
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 4px 8px 4px;
    border: 0;
    background: none;
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature .eyebrow { display: none; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
    color: #b4b6bb;
    max-width: 34ch;
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature-note { display: none; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #f4f5ef;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature-cta:hover { background: #ffb236; border-color: #ffb236; color: #000000; }

  /* cards */
  :root:root .site-header.is-compact .site-nav.is-open .mega__list { gap: 8px; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a {
    position: relative;
    align-items: center;
    gap: 14px;
    padding: 12px 40px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #141414;
    transition: border-color 0.2s, background-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #ffb236;
    border-right: 2px solid #ffb236;
    transform: translate(-6px, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a:hover,
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a:focus-visible {
    border-color: #ffb236;
    background: #1b1b1b;
    transform: translateX(2px);
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a:hover::after,
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) rotate(45deg);
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #f4f5ef;
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li > a em {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-style: normal;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    color: #a5a8ad;
  }
  /* sub-links */
  :root:root .site-header.is-compact .site-nav.is-open .mega__children { gap: 8px; padding: 2px 0 4px 54px; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__children a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: #d9dad2;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  }
  :root:root .site-header.is-compact .site-nav.is-open .mega__children a:hover,
  :root:root .site-header.is-compact .site-nav.is-open .mega__children a:focus-visible {
    background: #ffb236;
    border-color: #ffb236;
    color: #000000;
  }
  /* the cards come in one after another */
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li { animation: ad-menu-row 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li:nth-child(2) { animation-delay: 0.04s; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li:nth-child(3) { animation-delay: 0.08s; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li:nth-child(4) { animation-delay: 0.12s; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li:nth-child(5) { animation-delay: 0.16s; }
  :root:root .site-header.is-compact .site-nav.is-open .mega__list > li:nth-child(6) { animation-delay: 0.2s; }
}

/* the submenu column is one column of rows (an older two-column rule for the mega panel must not apply) */
@media (min-width: 1201px) {
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .mega { grid-template-columns: minmax(0, 1fr); }
  :root:root .site-header.is-compact .site-nav.is-open .mega__feature,
  :root:root .site-header.is-compact .site-nav.is-open .mega__list { grid-column: 1; min-width: 0; }
}

/* Header theme button: on hover it fills orange with a black icon (the icon was light on a light fill). */
:root:root .theme-toggle__btn:hover,
:root:root .theme-toggle__btn:focus-visible,
:root:root .theme-toggle__btn[aria-expanded='true'] {
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
}
:root:root .theme-toggle__btn:hover .theme-toggle__icon,
:root:root .theme-toggle__btn:focus-visible .theme-toggle__icon,
:root:root .theme-toggle__btn[aria-expanded='true'] .theme-toggle__icon,
:root:root .theme-toggle__btn:hover .theme-toggle__icon svg,
:root:root .theme-toggle__btn:focus-visible .theme-toggle__icon svg,
:root:root .theme-toggle__btn:hover .theme-toggle__text,
:root:root .theme-toggle__btn:focus-visible .theme-toggle__text { color: #000000; }
:root:root .theme-toggle__btn:hover .theme-toggle__icon svg *,
:root:root .theme-toggle__btn:focus-visible .theme-toggle__icon svg * { stroke: #000000; }
:root:root .theme-toggle__btn:hover .theme-toggle__icon svg circle[fill='currentColor'],
:root:root .theme-toggle__btn:hover .theme-toggle__icon svg path[fill='currentColor'] { fill: #000000; }
:root:root .theme-toggle__btn:hover .theme-toggle__ring { opacity: 0; }

/* the submenu column sits in its grid cell: an older absolute-position rule's offsets must not move it */
@media (min-width: 1201px) {
  :root:root .site-header.is-compact .site-nav.is-open:has(.mega) .mega {
    inset: auto;
    left: auto;
    top: auto;
    right: auto;
    transform: none;
    min-width: 0;
  }
}

/* ======================================================================
   Desktop header bar (not scrolled): everything fits inside the black bar at every desktop width, the three
   controls share one height, and the links get a cleaner hover and current-page mark.
   ====================================================================== */
@media (min-width: 1201px) {
  :root .site-header:not(.is-compact) .site-header__actions--bar { gap: 8px; }
  :root .site-header:not(.is-compact) .search-palette__btn,
  :root .site-header:not(.is-compact) .theme-toggle__btn { width: 42px; height: 42px; min-width: 42px; }
  :root .site-header:not(.is-compact) .cta-pill--bar { min-height: 42px; height: 42px; }
  /* links: a quiet hover, and a small orange bar under the current page instead of a glowing pill */
  :root .site-header:not(.is-compact) .site-nav__list > li > a,
  :root .site-header:not(.is-compact) .site-nav__list > li > button {
    position: relative;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
  }
  :root .site-header:not(.is-compact) .site-nav__list > li > a::after,
  :root .site-header:not(.is-compact) .site-nav__list > li > button::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #ffb236;
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  :root .site-header:not(.is-compact) .site-nav__list > li > a:hover::after,
  :root .site-header:not(.is-compact) .site-nav__list > li > button:hover::after,
  :root .site-header:not(.is-compact) .site-nav__list > li > a:focus-visible::after,
  :root .site-header:not(.is-compact) .site-nav__list > li > button:focus-visible::after { width: 18px; }
  :root .site-header:not(.is-compact) .site-nav__list > li > a[aria-current='page']::after,
  :root .site-header:not(.is-compact) .site-nav__list > li > button[aria-current='true']::after { width: 18px; }
  :root .site-header:not(.is-compact) .site-nav__list > li > a[aria-current='page'],
  :root .site-header:not(.is-compact) .site-nav__list > li > button[aria-current='true'] {
    background: transparent;
    box-shadow: none;
    color: #f4f5ef;
  }
  :root .site-header:not(.is-compact) .site-nav__thumb { display: none; }
}
/* medium desktops: tighten so the links and the three controls all stay inside the bar */
@media (min-width: 1201px) and (max-width: 1400px) {
  :root .site-header:not(.is-compact) .site-nav__list { gap: 0; }
  :root .site-header:not(.is-compact) .site-nav__list > li > a,
  :root .site-header:not(.is-compact) .site-nav__list > li > button { padding-inline: 9px; font-size: 12px; letter-spacing: 0.05em; }
  :root .site-header:not(.is-compact) .site-header__actions--bar { gap: 6px; }
  :root .site-header:not(.is-compact) .cta-pill--bar { padding-inline: 12px; }
  :root .site-header:not(.is-compact) .search-palette__label { display: none; }
}

/* Header search button: always just the magnifier (the "Search" word used to slide open on hover and push the
   icon out). Hover fills it orange with a black icon, like the theme button next to it. */
:root:root .search-palette__label,
:root:root .search-palette__btn:hover .search-palette__label,
:root:root .search-palette__btn:focus-visible .search-palette__label { display: none; max-width: 0; opacity: 0; margin: 0; }
:root:root .search-palette__btn:hover,
:root:root .search-palette__btn:focus-visible {
  width: 44px;
  min-width: 44px;
  padding: 0;
  background: #ffb236;
  border-color: #ffb236;
  color: #000000;
}
:root:root .search-palette__btn:hover svg,
:root:root .search-palette__btn:focus-visible svg,
:root:root .search-palette__btn:hover svg path,
:root:root .search-palette__btn:focus-visible svg path { color: #000000; stroke: #000000; }

/* The theme button's mode tint is a gradient image, which paints over a plain colour: hover must clear it. */
:root:root .theme-toggle__btn:hover,
:root:root .theme-toggle__btn:focus-visible,
:root:root .theme-toggle__btn[aria-expanded='true'] {
  background-color: #ffb236 !important;
  background-image: none !important;
  box-shadow: 0 0 0 4px rgba(255, 178, 54, 0.22);
}

/* ======================================================================
   Colour mode menu: a small dock of three round buttons (light, dark, auto) under the header button.
   - an orange disc slides to the current mode with a little overshoot, and follows the pointer as it moves
     over the others, then springs back
   - the chosen glyph turns black on the disc; the sun turns slowly, the moon sways, the half-disc flips
   - names appear as small orange tooltips, so nothing in the dock is wider than its icon
   ====================================================================== */
:root:root .theme-menu {
  --k: 0;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  gap: 2px;
  width: auto;
  padding: 4px;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  background: #000000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.7);
  transform-origin: 100% 0;
  animation: ad-dock-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
:root:root .theme-menu[data-mode='dark'] { --k: 1; }
:root:root .theme-menu[data-mode='auto'] { --k: 2; }
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(1):hover),
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(1):focus-visible) { --k: 0; }
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(2):hover),
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(2):focus-visible) { --k: 1; }
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(3):hover),
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(3):focus-visible) { --k: 2; }
/* the disc (the old caret's slot) */
:root:root .theme-menu::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: block;
  background: #ffb236;
  box-shadow: 0 0 0 4px rgba(255, 178, 54, 0.18);
  clip-path: none;
  transform: translateX(calc(var(--k) * 42px));
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:root:root .theme-menu__sky,
:root:root .theme-menu__label,
:root:root .theme-menu__check,
:root:root .theme-menu__text { display: none; }
:root:root .theme-menu__item {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #9a9da3;
  animation: ad-dock-item 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms + 60ms);
  transition: color 0.25s;
}
:root:root .theme-menu__item > svg:first-of-type {
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:root:root .theme-menu__item:hover,
:root:root .theme-menu__item:focus-visible { background: transparent; color: #f4f5ef; }
:root:root .theme-menu__item[aria-checked='true'] { background: transparent; color: #000000; }
:root:root .theme-menu__item[aria-checked='true'] > svg:first-of-type { color: #000000; }
:root:root .theme-menu__item:hover > svg:first-of-type { transform: scale(1.15); }
:root:root .theme-menu__item[aria-checked='true']:hover { color: #000000; }
/* the disc is under the hovered item while it moves there, so a hovered glyph reads black on it */
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(1):hover) .theme-menu__item:nth-of-type(1),
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(2):hover) .theme-menu__item:nth-of-type(2),
:root:root .theme-menu:has(.theme-menu__item:nth-of-type(3):hover) .theme-menu__item:nth-of-type(3) { color: #000000; }
/* little life in the glyphs */
:root:root .theme-menu__item:nth-of-type(1):hover > svg:first-of-type,
:root:root .theme-menu__item:nth-of-type(1)[aria-checked='true'] > svg:first-of-type { animation: ad-spin 9s linear infinite; }
:root:root .theme-menu__item:nth-of-type(2):hover > svg:first-of-type,
:root:root .theme-menu__item:nth-of-type(2)[aria-checked='true'] > svg:first-of-type { animation: ad-sway 2.6s ease-in-out infinite; }
:root:root .theme-menu__item:nth-of-type(3):hover > svg:first-of-type { transform: rotate(180deg) scale(1.1); }
/* tooltips under the buttons */
:root:root .theme-menu__item[data-tip]::after {
  bottom: auto;
  top: calc(100% + 10px);
  left: 50%;
  background: #ffb236;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7);
}
:root:root .theme-menu__item[data-tip]::before { display: none; }
@keyframes ad-dock-in { from { opacity: 0; transform: scale(0.5) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes ad-dock-item { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes ad-spin { to { transform: rotate(360deg); } }
@keyframes ad-sway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) {
  :root:root .theme-menu, :root:root .theme-menu__item { animation: none; }
  :root:root .theme-menu::before { transition: none; }
  :root:root .theme-menu__item > svg:first-of-type { animation: none !important; }
}

/* "What we build" icon tile: a black tile with an orange icon that stays black when the row turns orange
   (the pale orange tile on an orange row made the icon hard to see). On hover the icon pops and tilts. */
:root:root .home-build__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #000000;
  color: #ffb236;
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:root:root .home-build__icon svg { width: 28px; height: 28px; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
:root:root .home-build__row:hover .home-build__icon,
:root:root .home-build__row:focus-visible .home-build__icon {
  background: #000000;
  color: #ffb236;
  transform: rotate(-6deg) scale(1.06);
}
:root:root .home-build__row:hover .home-build__icon svg,
:root:root .home-build__row:focus-visible .home-build__icon svg { color: #ffb236; transform: scale(1.08); }
:root:root .home-build__row:hover .home-build__icon svg *,
:root:root .home-build__row:focus-visible .home-build__icon svg * { color: #ffb236; stroke: #ffb236; }
@media (prefers-reduced-motion: reduce) {
  :root:root .home-build__icon, :root:root .home-build__icon svg { transition: none; }
}

/* ======================================================================
   City pages (/cambodia/…) and the footer's "Areas we serve" row
   ====================================================================== */
:root .loc-lede { max-width: 70ch; }
:root .loc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
:root .loc-facts li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
:root .loc-facts strong { font-family: var(--v2-display); font-size: 17px; letter-spacing: -0.03em; color: var(--ink); }
:root .loc-facts span { font-size: 13px; color: var(--muted); }
:root .loc-projects, :root .loc-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
:root .loc-projects a, :root .loc-cities a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.25s; }
:root .loc-projects a:hover, :root .loc-cities a:hover { border-color: var(--ink); transform: translateY(-2px); }
:root .loc-projects strong, :root .loc-cities strong { font-size: 15px; line-height: 1.35; color: var(--ink); }
:root .loc-projects span, :root .loc-cities span { font-size: 13px; line-height: 1.5; color: var(--muted); }
:root .loc-cities em { font-style: normal; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft, var(--muted)); }
:root .loc-cities strong { font-family: var(--v2-display); font-size: 18px; letter-spacing: -0.03em; }
:root .loc-steps { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
:root .loc-steps li { line-height: 1.6; color: var(--ink-soft, var(--ink)); }
:root .loc-others ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:root .loc-others a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 6px; color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
:root .loc-others a:hover { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .site-footer__areas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 13px; }
:root .site-footer__areas > span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
:root .site-footer__areas ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
:root .site-footer__areas a { color: var(--muted); text-decoration: none; }
:root .site-footer__areas a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: #ffb236; }

/* Booking pane titles became <h2> (they follow the page's <h1> directly); they keep the small label look. */
:root .bk__pane-head h2 { margin: 0; font-family: var(--v2-display); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); line-height: 1.4; }

/* "More work like this" on a case study and "Read next" on an article */
:root .case-more { padding-block: clamp(32px, 5vw, 64px); }
:root .case-more__links { margin: 0; font-size: 14px; color: var(--muted); }
:root .case-more__links a { color: var(--ink); font-weight: 600; }
:root .read-next { margin-top: clamp(28px, 4vw, 44px); }
:root .read-next .loc-projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* The hero's small label now sits inside the <h1> (it carries the words a search needs: what and where).
   It keeps its own small type and never inherits the headline's size. */
:root .hero h1 > .hero__kicker {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-text-fill-color: currentColor;
  white-space: normal;
}
:root .hero h1 > .hero__kicker .tw { letter-spacing: inherit; }
/* inside the <h1> every span is made a block by an older rule; the label's own spans keep their inline roles */
:root .hero h1 > .hero__kicker .tw { display: inline-block; }
:root .hero h1 > .hero__kicker .tw__ghost,
:root .hero h1 > .hero__kicker .tw__live { display: inline; }
:root .hero h1 > .hero__kicker,
:root .hero h1 > .hero__kicker span { color: var(--ink); -webkit-text-fill-color: currentColor; background-image: none; }
/* phones hide decorative labels, but this one is the heading's meaning: it stays, as a plain small line */
@media (max-width: 620px) {
  :root:root .hero h1 > .hero__kicker {
    display: block !important;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: #ffb236;
  }
  :root:root .hero h1 > .hero__kicker span { color: #ffb236; }
  :root:root .hero h1 > .hero__kicker::before { display: none; }
}
/* the headline's per-line animation must not replace the label's own; the label simply shows */
:root .hero h1 > .hero__kicker span { animation: none; }
:root .hero h1 > .hero__kicker .tw__live { clip-path: none; }
@media (max-width: 620px) {
  :root:root .hero h1 > .hero__kicker .tw { display: block; }
  :root:root .hero h1 > .hero__kicker .tw__ghost { display: none; }
  :root:root .hero h1 > .hero__kicker .tw__live { position: static; display: block; white-space: normal; line-height: 1.5; }
}

/* City pages: industry counts, client reviews and the office block */
:root .loc-industries { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
:root .loc-industries li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; color: var(--muted); }
:root .loc-industries strong { color: var(--ink); }
:root .loc-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-bottom: 18px; }
:root .loc-review { display: grid; gap: 12px; align-content: space-between; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
:root .loc-review blockquote { margin: 0; padding: 0; border: 0; }
:root .loc-review blockquote p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
:root .loc-review figcaption { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
:root .loc-review figcaption strong { color: var(--ink); }
:root .loc-review figcaption span { color: var(--muted); }
:root .loc-office { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid #ffb236; border-radius: 10px; background: var(--surface); }
:root .loc-office p { margin: 0 0 8px; line-height: 1.6; color: var(--ink); }
:root .loc-office p:last-child { margin: 0; }
:root .loc-office a { color: var(--ink); font-weight: 600; }

/* Article headings 5px smaller (h2 25px to 20px at most), with h3 stepped down so it stays below h2. */
:root .article .prose h2 { font-size: clamp(17px, 1.7vw, 20px); }
:root .article .prose h3 { font-size: clamp(15px, 1.3vw, 17px); }

/* Tool pages: the explanatory copy's headings 5px smaller (26px to 21px), h3 stepped down to stay below. */
:root:root .tool-page__copy .display,
:root:root .tool-page__copy .prose h2,
:root:root .tool-page__copy h2 { font-size: clamp(17px, 1.65vw, 21px); }
:root:root .tool-page__copy h3 { font-size: clamp(15px, 1.3vw, 17px); }

/* "Full profile and experience" on the author card: a black pill, so its text is a fixed light colour (it was
   black on black in light mode), and on hover the pill fills orange with black text. */
:root:root .author-card__more {
  background: #000000;
  color: #f4f5ef;
  border-color: rgba(244, 245, 239, 0.5);
}
:root:root .author-card__more::before { background: #ffb236; }
:root:root .author-card__more:hover,
:root:root .author-card__more:focus-visible { color: #000000; border-color: #ffb236; }

/* What's New: the month heading 5px smaller (26px to 21px) */
:root:root .updates__month-title,
:root:root .updates__month-title span { font-size: clamp(16px, 1.65vw, 21px) !important; }
:root:root .updates__month-title span { padding: 5px 12px; }

/* The closing call-to-action band is black: the link under its button is a fixed light colour (it was black on
   black on the city pages) and turns orange on hover. */
:root:root .closing-cta__response a { color: #f4f5ef; text-decoration-color: #ffb236; }
:root:root .closing-cta__response a:hover { color: #ffb236; background: transparent; }

/* All-provinces grid on /cambodia/ */
:root .loc-provinces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
:root .loc-provinces a { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
:root .loc-provinces a:hover { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .loc-provinces strong { font-size: 14px; color: inherit; }
:root .loc-provinces span { font-size: 12px; color: var(--muted); }
:root .loc-provinces a:hover span { color: #000000; }

/* The closing call-to-action is one design everywhere: a pale message card on a black band with the quote
   button beside it. The service pages had it; the city pages stacked the two halves. Same layout on both. */
:root .loc .closing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
  gap: 0;
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 18px);
  background: #000000;
  border-radius: 10px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
@media (max-width: 760px) {
  :root .loc .closing-cta,
  :root .service-layout .closing-cta { grid-template-columns: 1fr; }
  :root .closing-cta__steps li { white-space: normal; }
}

/* All-provinces grid, second pass: every card the same height, name on the left, an arrow that slides in on
   hover, and a small orange tag when we have projects there (it no longer changes a card's height). */
:root:root .loc-provinces { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
:root:root .loc-provinces a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.25s, color 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root:root .loc-provinces a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffb236;
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root:root .loc-provinces strong { font-size: 14.5px; line-height: 1.25; }
:root:root .loc-provinces__n {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffb236;
  color: #000000 !important;
  font-size: 11px !important;
  font-weight: 700;
  white-space: nowrap;
}
:root:root .loc-provinces__go { flex: none; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
:root:root .loc-provinces a:hover,
:root:root .loc-provinces a:focus-visible { background: var(--bg-alt); border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
:root:root .loc-provinces a:hover::before,
:root:root .loc-provinces a:focus-visible::before { transform: scaleY(1); }
:root:root .loc-provinces a:hover .loc-provinces__go,
:root:root .loc-provinces a:focus-visible .loc-provinces__go { opacity: 1; transform: none; }
:root:root .loc-provinces a:hover span { color: #000000; }
@media (max-width: 620px) { :root:root .loc-provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); } :root:root .loc-provinces strong { font-size: 13.5px; } }

/* "More places we work" on city and province pages: one heading, two labelled groups, each place a chip with an
   arrow. Places already shown under "Near" are not repeated in the second group. */
:root .loc-more { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--line); }
:root .loc-more h2 { margin: 0; }
:root .loc-more__group { display: grid; gap: 10px; }
:root .loc-more__label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:root .loc-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
:root .loc-more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root .loc-more a svg { flex: none; color: var(--muted); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s; }
:root .loc-more a:hover, :root .loc-more a:focus-visible { background: #ffb236; border-color: #ffb236; color: #000000; transform: translateY(-2px); }
:root .loc-more a:hover svg, :root .loc-more a:focus-visible svg { color: #000000; transform: translateX(3px); }
:root .loc-more__all a { border-style: dashed; background: transparent; }
@media (max-width: 620px) {
  :root .loc-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root .loc-more a { min-height: 44px; padding: 0 12px; font-size: 13px; }
}

/* "More places we work", third pass: chips take the width of their name (no more "Kampong / Chhnang" on two
   lines, no lone chip in a row of four), with an orange map dot in front and the arrow only on hover. */
:root:root .loc-more ul { display: flex; flex-wrap: wrap; gap: 8px; }
:root:root .loc-more li { flex: 0 0 auto; }
:root:root .loc-more a {
  position: relative;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13.5px;
}
:root:root .loc-more a::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb236;
  box-shadow: 0 0 0 3px rgba(255, 178, 54, 0.22);
  transition: background-color 0.2s, box-shadow 0.2s;
}
:root:root .loc-more a svg { width: 0; margin-left: -10px; opacity: 0; transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.25s, opacity 0.2s, transform 0.25s; }
:root:root .loc-more a:hover svg, :root:root .loc-more a:focus-visible svg { width: 15px; margin-left: 0; opacity: 1; transform: none; }
:root:root .loc-more a:hover::before, :root:root .loc-more a:focus-visible::before { background: #000000; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18); }
:root:root .loc-more__all a { border-style: dashed; }
:root:root .loc-more__all a::before { background: var(--muted); box-shadow: none; }
@media (max-width: 620px) { :root:root .loc-more ul { display: flex; } :root:root .loc-more a { font-size: 13px; padding: 0 14px 0 12px; } }
/* group labels were too small (11px): 13px, darker */
:root:root .loc-more__label { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft, var(--ink)); }
:root:root .loc-more__label { font-size: 16px; letter-spacing: 0.08em; }

/* ======================================================================
   Form dropdowns: the site's own list instead of the operating system's grey one
   (script: partials/select-dropdown.blade.php). Rows are 44px, the chosen one has an orange check, the row under
   the pointer or keyboard turns orange with black text, and the list opens up or down depending on the room.
   ====================================================================== */
.dd {
  position: fixed;
  z-index: 200;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.55);
  outline: 0;
  scrollbar-width: thin;
  animation: dd-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: 50% 0;
}
.dd--up { transform-origin: 50% 100%; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.dd__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.dd__opt i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex: none; opacity: 0; color: #000000; background: #ffb236; }
.dd__opt.is-on { font-weight: 700; }
.dd__opt.is-on i { opacity: 1; }
.dd__opt.is-active { background: #ffb236; color: #000000; }
.dd__opt.is-active i { background: #000000; color: #ffb236; }
.dd__opt.is-disabled { opacity: 0.45; cursor: not-allowed; }
/* the field itself while its list is open */
.field.is-open .field__input { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 178, 54, 0.3); }
.field--select.is-open .field__input { background-position: right 14px center; }
@media (prefers-reduced-motion: reduce) { .dd { animation: none; } }

/* Contact page chat buttons: a tooltip on hover (channel, plus the handle or number) instead of the label that
   slid open, so the buttons keep one size. Same orange bubble as the footer's. */
:root:root .contact-card--chats .chat-btn { overflow: visible; }
:root:root .contact-card--chats .chat-btn__label { display: none; }
:root:root .contact-card--chats .chat-btn:hover,
:root:root .contact-card--chats .chat-btn:focus-visible { padding: 5px; }
:root:root .contact-card--chats .chat-btn[data-tip]::after {
  display: block;
  z-index: 20;
  bottom: auto;
  top: calc(100% + 8px);
  left: 0;
  transform: none;
  background: #ffb236;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7);
}
:root:root .contact-card--chats .chat-btn[data-tip]::before {
  display: block;
  inset: auto;
  left: 22px;
  top: calc(100% + 3px);
  width: 0;
  height: 0;
  background: none;
  transform: translateX(-50%);
  animation: none;
  border: 5px solid transparent;
  border-top-color: transparent;
  border-bottom-color: #ffb236;
}
/* the card must not clip the tooltip, and leaves room under the buttons for it */
:root:root .contact-card--chats,
:root:root .contact-card--chats .contact-card__body { overflow: visible; }
:root:root .contact-card--chats .contact-card__body { padding-bottom: 34px; }

/* Phone footer, "Areas we serve": a label above and the places in ONE row of pills that swipes sideways (it was a
   tall column of centred links). The row fades at the right edge to show there is more. */
@media (max-width: 620px) {
  :root:root .site-footer__areas {
    display: grid;
    gap: 10px;
    padding: 16px 0 12px;
    border-top: 1px solid var(--line);
  }
  :root:root .site-footer__areas > span { padding-inline: var(--gutter, 16px); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
  :root:root .site-footer__areas ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 2px var(--gutter, 16px) 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter, 16px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  :root:root .site-footer__areas ul::-webkit-scrollbar { display: none; }
  :root:root .site-footer__areas li { flex: 0 0 auto; scroll-snap-align: start; }
  :root:root .site-footer__areas a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line-strong, var(--line));
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
  }
  :root:root .site-footer__areas a:active { background: #ffb236; border-color: #ffb236; color: #000000; }
  :root:root .site-footer__areas li:last-child a { border-style: dashed; }
}
@media (max-width: 620px) { :root:root .site-footer__areas-pre { display: none; } }
/* phone footer area pills: smaller type and a slimmer pill (13px to 11px) */
@media (max-width: 620px) {
  :root:root .site-footer__areas a { font-size: 11px; min-height: 32px; padding: 0 12px; }
  :root:root .site-footer__areas ul { gap: 6px; }
  :root:root .site-footer__areas > span { font-size: 10px; }
}
/* final size for the phone footer area pills (an older footer-link rule was keeping them at 13px) */
@media (max-width: 620px) {
  :root:root .site-footer .site-footer__areas a { font-size: 10px !important; font-weight: 600; min-height: 28px; padding: 0 10px; letter-spacing: 0.02em; }
  :root:root .site-footer .site-footer__areas ul { gap: 6px; }
}

/* Desktop footer, "Areas we serve": a small label above and the places as slim pills in one row (it was plain text
   that wrapped and left "All Cambodia" on a line of its own). Orange dot, orange fill on hover. */
@media (min-width: 621px) {
  :root:root .site-footer .site-footer__areas { display: grid; gap: 10px; padding-block: 18px 16px; }
  :root:root .site-footer .site-footer__areas > span { font-size: 10px; letter-spacing: 0.14em; }
  :root:root .site-footer .site-footer__areas ul { display: flex; flex-wrap: wrap; gap: 6px; }
  :root:root .site-footer .site-footer__areas a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 12px 0 10px;
    border: 1px solid var(--line-strong, var(--line));
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink) !important;
    font-size: 11.5px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  }
  :root:root .site-footer .site-footer__areas a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffb236; flex: none; transition: background-color 0.2s; }
  :root:root .site-footer .site-footer__areas a:hover { background: #ffb236; border-color: #ffb236; color: #000000 !important; text-decoration: none; transform: translateY(-1px); }
  :root:root .site-footer .site-footer__areas a:hover::before { background: #000000; }
  :root:root .site-footer .site-footer__areas li.is-all a { border-style: dashed; }
  :root:root .site-footer .site-footer__areas li.is-all a::before { background: var(--muted); }
}
@media (min-width: 621px) {
  :root:root .site-footer .site-footer__areas a { gap: 0; }
  :root:root .site-footer .site-footer__areas a::before { margin-right: 8px; }
  :root:root .site-footer .site-footer__areas .site-footer__areas-pre { margin-right: 0.28em; }
}
/* desktop footer area pills: 10px type, slimmer pill */
@media (min-width: 621px) {
  :root:root .site-footer .site-footer__areas a { font-size: 10px !important; min-height: 26px; padding: 0 10px 0 9px; }
  :root:root .site-footer .site-footer__areas a::before { width: 5px; height: 5px; margin-right: 7px; }
  :root:root .site-footer .site-footer__areas > span { font-size: 9.5px; }
}
/* desktop footer areas: one row that scrolls sideways when the window is too narrow for every place */
@media (min-width: 621px) {
  :root:root .site-footer .site-footer__areas ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  :root:root .site-footer .site-footer__areas li { flex: 0 0 auto; scroll-snap-align: start; }
}
/* case study sidebar button: one line, shorter */
:root:root .case-facts__cta { min-height: 44px; padding: 0 20px; white-space: nowrap; }

/* ======================================================================
   Our Work grid cards: a clean card (it was a dimmed photo with white text laid over it).
   - the screenshot sits on top, clear, with a small number badge
   - below it: the industry tag, the title, two lines about the project, and a "View project" link
   - hover lifts the card, zooms the picture, and the link's arrow slides
   (the home page's own work showcase keeps its overlay style)
   ====================================================================== */
:root:root .portfolio-grid { gap: clamp(14px, 2vw, 22px); }
:root:root .portfolio-grid .work-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  overflow: hidden;
}
:root:root .portfolio-grid .work-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.45); }
:root:root .portfolio-grid .work-card__media { position: relative; inset: auto; aspect-ratio: 3 / 2; border-radius: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
:root:root .portfolio-grid .work-card__media::after { display: none; }
:root:root .portfolio-grid .work-card__veil { display: none; }
:root:root .portfolio-grid .work-card::before {
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border: 0;
  background: #000000;
  color: #ffb236;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 11px;
  letter-spacing: 0.12em;
}
:root:root .portfolio-grid .work-card__body {
  position: relative;
  inset: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  color: var(--ink);
}
:root:root .portfolio-grid .work-card__tag {
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
:root:root .portfolio-grid .work-card__body h3,
:root:root .portfolio-grid .card.work-card:hover .work-card__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
:root:root .portfolio-grid .work-card__body p,
:root:root .portfolio-grid .work-card:hover .work-card__body p {
  display: -webkit-box;
  max-height: none;
  margin: 0;
  opacity: 1;
  transform: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
:root:root .portfolio-grid .work-card__cue {
  margin-top: auto;
  padding-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
:root:root .portfolio-grid .work-card__cue svg { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
:root:root .portfolio-grid .work-card:hover .work-card__cue { color: var(--ink); }
:root:root .portfolio-grid .work-card:hover .work-card__cue svg { transform: translateX(5px); }
:root:root .portfolio-grid .work-card__cue::after {
  content: '';
  position: absolute;
  inset: 0;
}
@media (max-width: 760px) { :root:root .portfolio-grid .work-card { aspect-ratio: auto; } }

/* Case study "Built with": the technology chips under the project facts */
:root .case-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
:root .case-stack li { padding: 4px 10px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.3; }

/* ======================================================================
   Home page Selected work cards (same card as Our Work): a clean card (it was a dimmed photo with white text laid over it).
   - the screenshot sits on top, clear, with a small number badge
   - below it: the industry tag, the title, two lines about the project, and a "View project" link
   - hover lifts the card, zooms the picture, and the link's arrow slides
   (the home page's own work showcase keeps its overlay style)
   ====================================================================== */
:root:root .home-work .cards-grid { counter-reset: work; gap: clamp(14px, 2vw, 22px); }
:root:root .home-work .cards-grid .work-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  overflow: hidden;
}
:root:root .home-work .cards-grid .work-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.45); }
:root:root .home-work .cards-grid .work-card__media { position: relative; inset: auto; aspect-ratio: 3 / 2; border-radius: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
:root:root .home-work .cards-grid .work-card__media::after { display: none; }
:root:root .home-work .cards-grid .work-card__veil { display: none; }
:root:root .home-work .cards-grid .work-card::before {
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border: 0;
  background: #000000;
  color: #ffb236;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 11px;
  letter-spacing: 0.12em;
}
:root:root .home-work .cards-grid .work-card__body {
  position: relative;
  inset: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  color: var(--ink);
}
:root:root .home-work .cards-grid .work-card__tag {
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
:root:root .home-work .cards-grid .work-card__body h3,
:root:root .home-work .cards-grid .card.work-card:hover .work-card__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
:root:root .home-work .cards-grid .work-card__body p,
:root:root .home-work .cards-grid .work-card:hover .work-card__body p {
  display: -webkit-box;
  max-height: none;
  margin: 0;
  opacity: 1;
  transform: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
:root:root .home-work .cards-grid .work-card__cue {
  margin-top: auto;
  padding-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
:root:root .home-work .cards-grid .work-card__cue svg { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
:root:root .home-work .cards-grid .work-card:hover .work-card__cue { color: var(--ink); }
:root:root .home-work .cards-grid .work-card:hover .work-card__cue svg { transform: translateX(5px); }
:root:root .home-work .cards-grid .work-card__cue::after {
  content: '';
  position: absolute;
  inset: 0;
}
@media (max-width: 760px) { :root:root .home-work .cards-grid .work-card { aspect-ratio: auto; } }

/* ======================================================================
   Home "Selected work" carousel: one row that scrolls and snaps, three cards across on desktop, two on a tablet,
   and one with the next one peeking on a phone. Under it: round arrow buttons, a bullet per screenful (the current
   one stretches into an orange bar) and a "01 / 13" counter.
   ====================================================================== */
:root:root .home-work .cards-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
:root:root .home-work .cards-grid::-webkit-scrollbar { display: none; }
:root:root .home-work .cards-grid.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
:root:root .home-work .cards-grid.is-drag a { pointer-events: none; }
:root:root .home-work .cards-grid:focus-visible { outline: 2px solid #ffb236; outline-offset: 4px; border-radius: 10px; }
:root:root .home-work .cards-grid > .reveal {
  flex: 0 0 calc((100% - 2 * clamp(14px, 2vw, 22px)) / 3);
  min-width: 0;
  scroll-snap-align: start;
  opacity: 1;
  transform: none;
}
:root:root .home-work .cards-grid > .reveal .work-card { height: 100%; }
@media (max-width: 1000px) { :root:root .home-work .cards-grid > .reveal { flex-basis: calc((100% - clamp(14px, 2vw, 22px)) / 2); } }
@media (max-width: 620px) { :root:root .home-work .cards-grid > .reveal { flex-basis: 84%; } }

:root .wk-ctl { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 22px); margin-top: 18px; }
:root .wk-ctl__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
}
:root .wk-ctl__arrow--prev svg { transform: scaleX(-1); }
:root .wk-ctl__arrow:hover:not(:disabled),
:root .wk-ctl__arrow:focus-visible { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .wk-ctl__arrow:active:not(:disabled) { transform: scale(0.92); }
:root .wk-ctl__arrow:disabled { opacity: 0.3; cursor: not-allowed; }
:root .wk-ctl__dots { display: flex; align-items: center; gap: 8px; }
:root .wk-ctl__dots button {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s;
}
:root .wk-ctl__dots button::before { content: ''; position: absolute; inset: -12px -4px; } /* bigger tap area */
:root .wk-ctl__dots button:hover { background: color-mix(in srgb, var(--ink) 45%, transparent); }
:root .wk-ctl__dots button.is-on { width: 34px; background: #ffb236; }
:root .wk-ctl__dots button:focus-visible { outline: 2px solid #ffb236; outline-offset: 3px; }
:root .wk-ctl__count { min-width: 56px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-align: center; }
@media (max-width: 620px) { :root .wk-ctl__count { display: none; } :root .wk-ctl__arrow { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { :root .wk-ctl__dots button { transition: none; } }

/* Selected work controls, second pass: one slim bar under the row. The count and the bullets sit on the left, the
   two arrows on the right as small square buttons with the site's 4px corners (they were big round ones, centred). */
:root:root .wk-ctl { justify-content: flex-start; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
:root:root .wk-ctl__count { order: 0; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
:root:root .wk-ctl__dots { order: 1; gap: 6px; }
:root:root .wk-ctl__arrow--prev { order: 2; margin-left: auto; }
:root:root .wk-ctl__arrow:not(.wk-ctl__arrow--prev) { order: 3; margin-left: -8px; }
:root:root .wk-ctl__arrow {
  width: 34px;
  height: 34px;
  border-width: 1.5px;
  border-radius: 4px;
}
:root:root .wk-ctl__arrow svg { width: 15px; height: 15px; }
:root:root .wk-ctl__dots button { width: 6px; height: 6px; }
:root:root .wk-ctl__dots button.is-on { width: 24px; }
@media (max-width: 620px) {
  :root:root .wk-ctl { gap: 12px; }
  :root:root .wk-ctl__arrow { width: 36px; height: 36px; }
  :root:root .wk-ctl__dots { gap: 5px; flex-wrap: nowrap; overflow: hidden; }
  :root:root .wk-ctl__dots button { width: 5px; height: 5px; }
  :root:root .wk-ctl__dots button.is-on { width: 18px; }
}
@media (max-width: 620px) { :root:root .wk-ctl__count { display: block; font-size: 11px; } }

/* Selected work: keyword lede under the heading, and the "Our work by place" links under the carousel */
:root .home-work__lede { max-width: 62ch; margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
:root .wk-places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
:root .wk-places__label { margin-right: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:root .wk-places ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
:root .wk-places a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11.5px; font-weight: 600; text-decoration: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
:root .wk-places a:hover { background: #ffb236; border-color: #ffb236; color: #000000; }
:root .home-work .cards-grid > .wk-clone .work-card { pointer-events: auto; }

/* footer areas: places, services and provinces in one scrollable row, fading at both ends */
:root:root .site-footer .site-footer__areas li.is-service a::before { background: var(--ink); }
:root:root .site-footer .site-footer__areas li.is-province a::before { background: var(--muted); opacity: 0.6; }
:root:root .site-footer .site-footer__areas li.is-service a:hover::before,
:root:root .site-footer .site-footer__areas li.is-province a:hover::before { background: #000000; opacity: 1; }
:root:root .site-footer .site-footer__areas ul[data-drag] { cursor: grab; }
:root:root .site-footer .site-footer__areas ul.is-drag { cursor: grabbing; scroll-snap-type: none; }
:root:root .site-footer .site-footer__areas ul.is-drag a { pointer-events: none; }

/* Case study facts card: tighter, with a coloured spine, small caps labels and a link that reads as a link */
:root:root .case-facts { position: relative; gap: 0; padding: 6px 22px 22px; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 24, 32, 0.04), 0 10px 28px -18px rgba(20, 24, 32, 0.2); }
:root:root .case-facts::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: #ffb236; }
:root:root .case-facts .case-fact { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); }
:root:root .case-facts .case-fact:first-child { padding-top: 18px; }
:root:root .case-facts .case-fact__label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
:root:root .case-facts .case-fact__value { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
:root:root .case-facts .case-fact__value a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid #ffb236; padding-bottom: 1px; word-break: break-all; transition: color 0.2s, border-color 0.2s; }
:root:root .case-facts .case-fact__value a::after { content: ''; flex: none; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M18 6H9M18 6v9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M18 6H9M18 6v9'/%3E%3C/svg%3E") center / contain no-repeat; }
:root:root .case-facts .case-fact__value a:hover { color: #000; border-bottom-color: #000; }
:root:root .case-facts .case-stack { gap: 5px; margin: 2px 0 0; }
:root:root .case-facts .case-stack li { padding: 3px 9px; font-size: 11px; font-weight: 600; background: var(--bg-alt); border-color: var(--line); }
:root:root .case-facts .case-facts__cta { margin-top: 18px; width: 100%; min-height: 42px; }

/* Case study "More work like this": image cards in one row (four across, two on tablets, one on phones) */
:root:root .case-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
:root:root .case-more__grid a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s; }
:root:root .case-more__grid a:hover { border-color: #ffb236; transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(20, 24, 32, 0.35); }
:root:root .case-more__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
:root:root .case-more__media picture, :root:root .case-more__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
:root:root .case-more__grid a:hover .case-more__media img { transform: scale(1.04); }
:root:root .case-more__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
:root:root .case-more__body strong { font-size: 15px; line-height: 1.3; }
:root:root .case-more__text { font-size: 12.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:root:root .case-more__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
:root:root .case-more__go svg { transition: transform 0.2s; }
:root:root .case-more__grid a:hover .case-more__go svg { transform: translateX(3px); }
:root:root .case-more__links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }

/* ---- Enquiry sent: confirmation card ---- */
:root:root .form-done { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(36px, 5.5vw, 64px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.4); }
:root:root .form-done::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 260px; background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%); }
:root:root .form-done__mark { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--gold); color: #000; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--gold) 70%, transparent); animation: form-done-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
:root:root .form-done__mark::before, :root:root .form-done__mark::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); animation: form-done-ring 2.4s ease-out 0.4s infinite; }
:root:root .form-done__mark::after { animation-delay: 1.4s; }
:root:root .form-done__kicker { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 20%, transparent); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
:root:root .form-done__title { margin: 0 auto 10px; max-width: 18ch; font-size: clamp(22px, 2.72vw, 30.6px); line-height: 1.12; text-wrap: balance; }
:root:root .form-done__lede { margin: 0 auto; max-width: 42ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
:root:root .form-done__steps { list-style: none; counter-reset: fd; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding: 0; text-align: center; }
:root:root .form-done__steps::before { content: ''; position: absolute; top: 15px; left: 16.66%; right: 16.66%; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--gold) 70%, transparent) 0 6px, transparent 6px 12px); }
:root:root .form-done__steps li { counter-increment: fd; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
:root:root .form-done__steps li::before { content: counter(fd); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--gold); color: #000; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 5px var(--surface); }
:root:root .form-done__steps b { font-size: 15px; }
:root:root .form-done__steps span { max-width: 22ch; font-size: 13px; line-height: 1.5; color: var(--muted); }
:root:root .form-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
:root:root .form-done__fast { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
:root:root .form-done__fast a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@keyframes form-done-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes form-done-ring { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) {
  :root:root .form-done__steps { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: left; }
  :root:root .form-done__steps::before { display: none; }
  :root:root .form-done__steps li { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0 14px; padding: 0; }
  :root:root .form-done__steps li::before { margin: 0; flex: none; }
  :root:root .form-done__steps b, :root:root .form-done__steps span { flex: 1 0 calc(100% - 50px); max-width: none; }
  :root:root .form-done__steps span { margin-left: 46px; margin-top: -2px; }
}
@media (prefers-reduced-motion: reduce) { :root:root .form-done__mark, :root:root .form-done__mark::before, :root:root .form-done__mark::after { animation: none; } }
/* In a pop-up: no card chrome, tighter. */
:root:root .form-done--compact { padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:root:root .form-done--compact::before { height: 180px; }
:root:root .form-done--compact .form-done__mark { width: 64px; height: 64px; margin-bottom: 14px; }
:root:root .form-done--compact .form-done__title { font-size: clamp(19px, 4.25vw, 23.8px); }
:root:root .form-done--compact .form-done__actions { margin-top: 22px; }

/* ======================================================================
   Phone type scale (<= 620px). Measured on the live pages: paragraphs were 14px,
   secondary text 13-14px, tags/labels/dates 10-12px, so everything needed a pinch
   zoom. Reading text 16px, secondary 15px, nothing meant to be read under 12.5px.
   Desktop and tablet are untouched. Appended last, and font-size is !important here because older, more specific
   rules (.site-footer__brand .x, :root:root .y) kept winning; this is a floor, not a style.
   ====================================================================== */
@media (max-width: 620px) {
  /* Reading text: 16px */
  :root:root .prose p, :root:root .prose li, :root:root .prose td, :root:root .prose th, :root:root .prose blockquote,
  :root:root .prose-sub, :root:root .prose-sub p, :root:root .prose-sub li { font-size: 16px !important; line-height: 1.7; }
  :root:root .lede, :root:root .consult__lede, :root:root .home-journal__lead-excerpt,
  :root:root .home-welcome__support, :root:root .post-card__excerpt, :root:root .aside-cta__text,
  :root:root .home-pricing__foot-copy, :root:root .footer-cta__points li { font-size: 16px !important; line-height: 1.6; }

  /* Secondary text: 15px */
  :root:root .work-card__body p, :root:root .faq-card__more, :root:root .post-card__more, :root:root .work-card__cue,
  :root:root .aside-recent__headline, :root:root .home-journal__row-title, :root:root .aside-service,
  :root:root .office-card__addr, :root:root .contact-card__body p, :root:root .brand-dl__text,
  :root:root .home-faq__tool-name, :root:root .pulse__domain, :root:root .pricing-card__list li,
  :root:root .field__label, :root:root .consent-check__txt, :root:root .tech-strip__name,
  :root:root .glass-pill__opt, :root:root .hero-slider__title, :root:root .btn { font-size: 15px !important; }
  :root:root .btn.btn--lg, :root:root .btn--lg { font-size: 15px !important; }

  /* Tags, dates, labels, meta: never below 12.5px */
  :root:root .work-card__tag, :root:root .testi-role, :root:root .post-card__meta, :root:root .aside-recent__date,
  :root:root .home-journal__meta, :root:root .pulse__outcome, :root:root .pulse__when, :root:root .pulse__tool,
  :root:root .slot-chip, :root:root .consult__promises li, :root:root .site-footer__heading, :root:root .eyebrow,
  :root:root .app-tabs__label, :root:root .brand-dl__facts li, :root:root .brand-dl__label, :root:root .brand-dl__fine,
  :root:root .footer-connect__label, :root:root .human-check__txt, :root:root .link-card__url,
  :root:root .booking__hint, :root:root .office-card__summary, :root:root .search-cmdk__hint,
  :root:root .hero-slider__tag, :root:root .cta-pill__label, :root:root .pricing-card__cta,
  :root:root .pricing__save, :root:root .founder-link__chips, :root:root .pricing-card__note,
  :root:root .booking__legend, :root:root .booking__caption, :root:root .aside-cta__eyebrow,
  :root:root .brand-dl__eyebrow, :root:root .theme-drawer__label, :root:root .home-faq__tools-lede,
  :root:root .cta-band__proof li, :root:root .office-card__summary h3, :root:root .human-check__txt small,
  :root:root .brand-dl__label small, :root:root .founder-link__chips span, :root:root .compare__kicker,
  :root:root .theme-toggle__text { font-size: 12.5px !important; }

  /* Footer "areas we serve" pills */
  :root:root .is-province, :root:root .is-service, :root:root .is-all,
  :root:root .wk-places a { font-size: 13px !important; }

  /* Same specificity as the footer-areas rules above, and later, so it wins them */
  :root:root .site-footer .site-footer__areas a { font-size: 13px !important; min-height: 34px; padding: 0 12px 0 10px; }
  :root:root .cta-band__eyebrow, :root:root .cta-band__tech-label { font-size: 12.5px !important; }

  /* Form fields: 16px stops iOS zooming the page when a field is tapped */
  :root:root .field__input, :root:root input, :root:root select, :root:root textarea { font-size: 16px !important; }
}

/* Home "Our work by place": one scrollable row on phones */
@media (max-width: 620px) {
  :root:root .wk-places { display: block; margin-top: 18px; }
  :root:root .wk-places__label { display: block; margin: 0 0 10px; }
  :root:root .wk-places ul {
    flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter, 20px); overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter, 20px)); padding: 2px var(--gutter, 20px) 6px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  }
  :root:root .wk-places ul::-webkit-scrollbar { display: none; }
  :root:root .wk-places li { flex: none; scroll-snap-align: start; }
  :root:root .wk-places a { white-space: nowrap; min-height: 38px; padding: 0 16px; }
}

/* Testimonial reel controls: smaller on every screen (desktop 44px arrows were heavy) */
:root:root .home-reel-ctl { grid-template-columns: auto auto minmax(160px, 340px) auto; gap: clamp(10px, 1.6vw, 16px); margin-top: 14px; }
:root:root .home-reel-ctl__arrow { position: relative; width: 34px; height: 34px; border-width: 1.5px; }
:root:root .home-reel-ctl__arrow svg { width: 15px; height: 15px; }
:root:root .home-reel-ctl__arrow::before { content: ''; position: absolute; inset: -5px; } /* keeps a 44px tap area */
:root:root .home-reel-ctl__count { font-size: 12px; letter-spacing: 0.06em; }
:root:root .home-reel-ctl__dots { gap: 4px; }
:root:root .home-reel-ctl__dots button { height: 3px; }

/* Testimonial reel controls: lighter on phones */
@media (max-width: 620px) {
  :root:root .home-reel-ctl { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; margin-top: 12px; }
  :root:root .home-reel-ctl__count { display: none; }
  :root:root .home-reel-ctl__arrow { position: relative; width: 32px; height: 32px; border-width: 1.5px; }
  :root:root .home-reel-ctl__arrow svg { width: 14px; height: 14px; }
  :root:root .home-reel-ctl__arrow::before { content: ''; position: absolute; inset: -6px; } /* keeps a 44px tap area */
  :root:root .home-reel-ctl__dots { gap: 3px; }
  :root:root .home-reel-ctl__dots button { height: 3px; }
}

/* Selected-work controls: lighter on phones */
@media (max-width: 620px) {
  :root:root .wk-ctl { gap: 10px; margin-top: 10px; padding-top: 10px; }
  :root:root .wk-ctl__count { font-size: 11px; }
  :root:root .wk-ctl__dots { gap: 4px; }
  :root:root .wk-ctl__dots button { width: 5px; height: 5px; }
  :root:root .wk-ctl__dots button.is-on { width: 20px; }
  :root:root .wk-ctl__arrow { position: relative; width: 32px; height: 32px; border-width: 1.5px; }
  :root:root .wk-ctl__arrow svg { width: 13px; height: 13px; }
  :root:root .wk-ctl__arrow::before { content: ''; position: absolute; inset: -6px; }
  :root:root .wk-ctl__arrow:not(.wk-ctl__arrow--prev) { margin-left: -4px; }
}

/* ======================================================================
   Light mode: accent orange (#ffb236) is a fill colour, not a text colour. On white
   it is only 1.8:1, which is unreadable on a phone in daylight. Where the accent was
   used as TEXT, use a dark amber (6.4:1) in light mode only; dark mode keeps the
   bright orange. Found by measuring every text element in light mode at 375px.
   ====================================================================== */
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) .hero .tw__live,
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) .hero__kicker,
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) .hero h1 > .eyebrow,
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) .pricing-card:not(.pricing-card--featured):not(.pricing-card--quote) .pricing-card__currency,
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) label span[aria-hidden='true'],
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) legend span[aria-hidden='true'],
:is(:root[data-theme='light'], :root[data-theme='auto']:not([data-night='1']), :root:not([data-theme])) .field__label span[aria-hidden='true'] {
  color: #8a5200;
}

/* Home loading screen on phones: 15% larger than the 0.8 above (0.8 x 1.15 = 0.92). */
@media (max-width: 620px) {
  :root:root .boot__brand { transform: scale(0.92); }
}

/* ======================================================================
   Selected work footer strip, restyled: one bar (count, progress track, arrows) and the
   "Our work by place" row under it. Appended last; it supersedes the earlier passes above.
   ====================================================================== */
:root:root .wk-ctl { display: flex; align-items: center; justify-content: flex-start; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
:root:root .wk-ctl__count { order: 0; display: block; min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
/* the progress track: one segment per set, the current one long and orange */
:root:root .wk-ctl__dots { order: 1; flex: 1 1 auto; max-width: 340px; gap: 5px; flex-wrap: nowrap; overflow: visible; }
:root:root .wk-ctl__dots button { position: relative; flex: 1 1 0; width: auto; min-width: 6px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); transition: flex-grow 0.35s ease, background-color 0.25s; }
:root:root .wk-ctl__dots button:hover { background: color-mix(in srgb, var(--ink) 34%, transparent); }
:root:root .wk-ctl__dots button.is-on { flex-grow: 3; width: auto; background: #ffb236; }
:root:root .wk-ctl__arrow--prev { order: 2; margin-left: auto; }
:root:root .wk-ctl__arrow:not(.wk-ctl__arrow--prev) { order: 3; margin-left: -8px; }
:root:root .wk-ctl__arrow { position: relative; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); }
:root:root .wk-ctl__arrow svg { width: 15px; height: 15px; }
:root:root .wk-ctl__arrow::before { content: ''; position: absolute; inset: -4px; } /* 46px tap area */
:root:root .wk-ctl__arrow:hover:not(:disabled), :root:root .wk-ctl__arrow:focus-visible { background: #ffb236; border-color: #ffb236; color: #000000; }

/* "Our work by place": a labelled row, each pill with an orange dot that fills on hover */
:root:root .wk-places { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
:root:root .wk-places__label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
:root:root .wk-places__label::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: #ffb236; }
:root:root .wk-places ul { gap: 8px; }
:root:root .wk-places a { gap: 9px; min-height: 36px; padding: 0 16px 0 14px; border-color: var(--line); background: var(--surface); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03); }
:root:root .wk-places a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffb236; flex: none; box-shadow: inset 0 0 0 2px var(--surface); outline: 1.5px solid #ffb236; transition: background-color 0.2s, box-shadow 0.2s; }
:root:root .wk-places a:hover { transform: translateY(-1px); }
:root:root .wk-places a:hover::before { background: #000000; box-shadow: none; outline-color: #000000; }

@media (max-width: 620px) {
  :root:root .wk-ctl { gap: 12px; margin-top: 16px; padding-top: 14px; }
  :root:root .wk-ctl__count { font-size: 12.5px; }
  :root:root .wk-ctl__dots { gap: 3px; max-width: none; }
  :root:root .wk-ctl__dots button { min-width: 3px; height: 4px; width: auto; }
  :root:root .wk-ctl__dots button.is-on { width: auto; }
  :root:root .wk-ctl__arrow { width: 34px; height: 34px; }
  :root:root .wk-ctl__arrow:not(.wk-ctl__arrow--prev) { margin-left: -4px; }
  :root:root .wk-places__label { margin-bottom: 4px; }
}

/* Header theme button at tablet/phone widths (<= 1200px): it is only an icon and a word, with no box.
   The desktop hover / focus / open style (a square orange fill with a glow ring, a hard outline) was leaking onto
   it. Here the hover / tap / open state is a soft rounded orange pill behind the icon and word, with a black icon.
   The 8px side padding is cancelled by an equal negative margin, so the header layout does not move. */
@media (max-width: 1200px) {
  :root:root .theme-toggle__btn { padding-inline: 8px; margin-inline: -8px; border-radius: 999px; }
  :root:root .theme-toggle__btn:hover,
  :root:root .theme-toggle__btn:active,
  :root:root .theme-toggle__btn:focus-visible,
  :root:root .theme-toggle__btn[aria-expanded='true'] {
    background: #ffb236 !important;
    background-color: #ffb236 !important;
    background-image: none !important;
    box-shadow: none !important;
    border-color: transparent;
    border-radius: 999px;
    color: #000000;
  }
  :root:root .theme-toggle__btn:hover .theme-toggle__icon,
  :root:root .theme-toggle__btn:active .theme-toggle__icon,
  :root:root .theme-toggle__btn:focus-visible .theme-toggle__icon,
  :root:root .theme-toggle__btn[aria-expanded='true'] .theme-toggle__icon,
  :root:root .theme-toggle__btn:hover .theme-toggle__icon svg,
  :root:root .theme-toggle__btn:active .theme-toggle__icon svg,
  :root:root .theme-toggle__btn:focus-visible .theme-toggle__icon svg,
  :root:root .theme-toggle__btn[aria-expanded='true'] .theme-toggle__icon svg,
  :root:root .theme-toggle__btn:hover .theme-toggle__text,
  :root:root .theme-toggle__btn:active .theme-toggle__text,
  :root:root .theme-toggle__btn:focus-visible .theme-toggle__text,
  :root:root .theme-toggle__btn[aria-expanded='true'] .theme-toggle__text { color: #000000; }
  :root:root .theme-toggle__btn:hover .theme-toggle__icon svg *,
  :root:root .theme-toggle__btn:active .theme-toggle__icon svg *,
  :root:root .theme-toggle__btn:focus-visible .theme-toggle__icon svg *,
  :root:root .theme-toggle__btn[aria-expanded='true'] .theme-toggle__icon svg * { stroke: #000000; }
  :root:root .theme-toggle__btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
}

/* ======================================================================
   Portfolio topics (tags): chips on the Our Work page, the topic pages and the project facts card
   ====================================================================== */
:root:root .topic-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
:root:root .topic-strip__label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
:root:root .topic-strip__label::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: #ffb236; }
:root:root .topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:root:root .topic-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
:root:root .topic-chips a span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 11.5px; font-weight: 700; color: var(--muted); }
:root:root .topic-chips a:hover { background: #ffb236; border-color: #ffb236; color: #000000; transform: translateY(-1px); }
:root:root .topic-chips a:hover span { background: rgba(0, 0, 0, 0.12); color: #000000; }
:root:root .topic-more { margin-top: 56px; }
:root:root .topic-more .topic-chips { margin-top: 18px; }
:root:root .topic-cta { margin: 36px 0 0; font-size: 16px; color: var(--muted); }
:root:root .topic-cta a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #ffb236; text-underline-offset: 3px; }
:root:root .topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
:root:root .topic-list__item { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
:root:root .topic-list__name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
:root:root .topic-list__name span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
:root:root .topic-list__name:hover { color: var(--ink); text-decoration: underline; text-decoration-color: #ffb236; text-underline-offset: 4px; }
:root:root .topic-list__item p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
:root:root .case-stack--links a { color: inherit; text-decoration: none; }
:root:root .case-stack--links li:hover { background: #ffb236; border-color: #ffb236; color: #000000; }
:root:root .case-fact__value a { color: inherit; text-decoration: underline; text-decoration-color: #ffb236; text-underline-offset: 3px; }
@media (max-width: 760px) { :root:root .topic-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  :root:root .topic-strip { display: block; }
  :root:root .topic-strip__label { margin-bottom: 10px; }
  :root:root .topic-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter, 20px)); padding: 2px var(--gutter, 20px) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
  :root:root .topic-chips::-webkit-scrollbar { display: none; }
  :root:root .topic-chips li { flex: none; }
  :root:root .topic-more .topic-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
:root:root .topic-page .portfolio-filter { display: none; }

/* Our Work "Browse by topic": one compact row (five topics) plus an All topics panel, grouped Industry / Type / Built with */
:root:root .topic-strip { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
:root:root .topic-strip__head { display: contents; }
:root:root .topic-strip__label { order: 1; }
:root:root .topic-chips--row { order: 2; }
:root:root .topic-all { order: 3; margin-left: auto; }
:root:root .topic-all > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 700; cursor: pointer; list-style: none; transition: background-color 0.2s, color 0.2s; }
:root:root .topic-all > summary::-webkit-details-marker { display: none; }
:root:root .topic-all > summary b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ffb236; color: #000000; font-size: 11.5px; }
:root:root .topic-all > summary::after { content: ''; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
:root:root .topic-all[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
:root:root .topic-all > summary:hover, :root:root .topic-all[open] > summary { background: var(--ink); color: var(--bg); }
:root:root .topic-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; padding: 24px 26px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.45); }
:root:root .topic-panel__group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
:root:root .topic-panel__group h3::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: #ffb236; }
:root:root .topic-panel__group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
:root:root .topic-panel__group a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; margin-inline: -10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color 0.15s; }
:root:root .topic-panel__group a span { font-size: 12px; font-weight: 700; color: var(--muted); }
:root:root .topic-panel__group a:hover { background: color-mix(in srgb, #ffb236 28%, transparent); }
:root:root .topic-panel__all { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: #ffb236; text-underline-offset: 4px; }
@media (max-width: 760px) { :root:root .topic-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 20px 16px; } }
@media (max-width: 620px) {
  :root:root .topic-strip { display: block; padding-bottom: 14px; }
  :root:root .topic-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  :root:root .topic-all { margin-left: 0; }
  :root:root .topic-all > summary { min-height: 34px; padding: 0 12px 0 14px; font-size: 13px; }
}

/* Topic page: closing call to action */
:root:root .topic-callout { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; padding: 30px 34px 30px 38px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.4); overflow: hidden; }
:root:root .topic-callout::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: #ffb236; }
:root:root .topic-callout__text { flex: 1 1 320px; min-width: 0; }
:root:root .topic-callout__text h2 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; text-wrap: balance; }
:root:root .topic-callout__text p { margin: 0; max-width: 52ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
:root:root .topic-callout__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 620px) {
  :root:root .topic-callout { margin-top: 40px; padding: 24px 20px 22px 24px; }
  :root:root .topic-callout__actions { width: 100%; }
  :root:root .topic-callout__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* All-topics panel on phones: wrapping pills instead of a long list */
@media (max-width: 760px) {
  :root:root .topic-panel { gap: 16px; padding: 18px 16px 14px; max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
  :root:root .topic-panel__group h3 { margin-bottom: 8px; }
  :root:root .topic-panel__group ul { display: flex; flex-wrap: wrap; gap: 8px; }
  :root:root .topic-panel__group a { margin-inline: 0; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; }
  :root:root .topic-panel__group a span { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 11.5px; }
  :root:root .topic-panel__all { padding-top: 12px; }
}

/* Internal links in the case facts (the places) are not "opens another site": no arrow */
:root:root .case-fact__value a[href^='/']::after { content: none; display: none; }

/* "More work like this" on phones: one swipeable row, cards snap into place like an app carousel */
@media (max-width: 760px) {
  :root:root .case-more__grid {
    display: flex; flex-wrap: nowrap; gap: 12px; margin: 0 calc(-1 * var(--gutter, 20px)) 20px; padding: 4px var(--gutter, 20px) 14px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 20px); overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent);
  }
  :root:root .case-more__grid::-webkit-scrollbar { display: none; }
  :root:root .case-more__grid > li { flex: 0 0 76%; max-width: 300px; scroll-snap-align: start; }
  :root:root .case-more__grid a:hover { transform: none; box-shadow: none; }
  :root:root .case-more__body { padding: 12px 14px 14px; }
  :root:root .case-more__text { -webkit-line-clamp: 2; }
}

/* Topic strip, smaller and self-fitting: label, as many topics as fit on ONE line, then All topics.
   The chip row is exactly one line tall and wraps inside it, so a chip that does not fit is hidden whole
   (it is still in the All topics panel), never cut in half and never pushing the button to a second line. */
:root:root .topic-strip { flex-wrap: nowrap; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; }
:root:root .topic-strip__label { flex: none; font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; }
:root:root .topic-strip__label::before { width: 16px; }
:root:root .topic-chips--row { flex: 1 1 0; min-width: 0; height: 32px; overflow: hidden; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
:root:root .topic-chips--row a { min-height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
:root:root .topic-all { flex: none; margin-left: 0; }
:root:root .topic-all > summary { min-height: 32px; padding: 0 12px 0 14px; font-size: 13px; gap: 7px; white-space: nowrap; }
:root:root .topic-all > summary b { min-width: 20px; height: 20px; font-size: 11px; }
:root:root .topic-panel { top: calc(100% + 6px); }
:root:root .topic-panel__group a { padding: 7px 10px; font-size: 14px; }
@media (max-width: 620px) {
  :root:root .topic-strip { display: block; }
  :root:root .topic-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  :root:root .topic-chips--row { height: auto; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; align-content: normal; }
  :root:root .topic-chips--row a { min-height: 34px; }
}

/* ======================================================================
   All topics dropdown, one design for every device: a compact popover under the button, one row per group
   (label, then the topics as pills). Replaces the earlier 3-column list and its phone variant.
   ====================================================================== */
:root:root .topic-strip { z-index: 30; }
:root:root .topic-panel {
  left: auto; right: 0; width: min(780px, 100%); max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 22px 16px;
  border-radius: 16px; transform-origin: top right; animation: topic-pop 0.18s ease-out;
}
:root:root .topic-panel__group { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
:root:root .topic-panel__group h3 { margin: 0; padding-top: 8px; font-size: 11px; letter-spacing: 0.12em; }
:root:root .topic-panel__group h3::before { display: none; }
:root:root .topic-panel__group ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
:root:root .topic-panel__group a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 0; padding: 0 8px 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
:root:root .topic-panel__group a span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 11.5px; font-weight: 700; color: var(--muted); }
:root:root .topic-panel__group a:hover, :root:root .topic-panel__group a:focus-visible { background: #ffb236; border-color: #ffb236; color: #000000; transform: translateY(-1px); outline: none; }
:root:root .topic-panel__group a:hover span, :root:root .topic-panel__group a:focus-visible span { background: rgba(0, 0, 0, 0.12); color: #000000; }
:root:root .topic-panel__all { display: inline-block; grid-column: auto; padding: 14px 0 0; border: 0; justify-self: end; margin-left: auto; font-size: 13.5px; }
@keyframes topic-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :root:root .topic-panel { animation: none; } }
@media (max-width: 760px) {
  :root:root .topic-panel { left: 0; right: 0; width: auto; padding: 4px 16px 14px; }
  :root:root .topic-panel__group { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; }
  :root:root .topic-panel__group h3 { padding-top: 0; }
  :root:root .topic-panel__group a { min-height: 36px; font-size: 13.5px; }
}
/* tighter: wider popover, slimmer pills, so each group needs fewer lines */
:root:root .topic-panel { width: min(880px, 100%); padding: 2px 20px 12px; }
:root:root .topic-panel__group { grid-template-columns: 84px minmax(0, 1fr); gap: 6px 14px; padding: 11px 0; }
:root:root .topic-panel__group h3 { padding-top: 6px; }
:root:root .topic-panel__group ul { gap: 6px; }
:root:root .topic-panel__group a { min-height: 30px; padding: 0 6px 0 11px; gap: 7px; font-size: 13px; }
:root:root .topic-panel__group a span { min-width: 20px; height: 20px; font-size: 11px; }
:root:root .topic-panel__all { padding-top: 10px; font-size: 13px; }
@media (max-width: 760px) {
  :root:root .topic-panel { padding: 2px 14px 12px; }
  :root:root .topic-panel__group { grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
  :root:root .topic-panel__group a { min-height: 34px; }
}

/* Blog posts: ":root .article a:not(.btn)" (black text, underlined) was beating the author card's button rule, so the
   black pill showed black text and an orange underline. Same colours as before, one step more specific. */
:root:root .article a.author-card__more { color: #f4f5ef; text-decoration: none; }
:root:root .article a.author-card__more:hover, :root:root .article a.author-card__more:focus-visible { color: #000000; text-decoration: none; }
:root:root .article a.author-card__more span[aria-hidden] { color: inherit; }

/* "Read next" cards at the end of a blog post. They are links inside .article, so they inherited the in-text link style
   (orange underline on every line, and on hover an orange fill with the light title and grey excerpt left on top of it).
   They are cards, not words: no underline, and the hover is a soft orange tint with the text colours unchanged. */
:root:root .article .read-next a,
:root:root .article .read-next a:hover { text-decoration: none; }
:root:root .article .read-next a { background: var(--surface); color: var(--ink); }
:root:root .article .read-next a:hover,
:root:root .article .read-next a:focus-visible { background: color-mix(in srgb, #ffb236 16%, var(--surface)); color: var(--ink); border-color: #ffb236; }
:root:root .article .read-next a strong { color: var(--ink); }
:root:root .article .read-next a span { color: var(--muted); }
:root:root .article .read-next a:hover span, :root:root .article .read-next a:focus-visible span { color: var(--ink-soft, var(--ink)); }

/* Tag chips at the end of a post are pills, not words in a sentence: no in-text underline. */
:root:root .article .article__tags a,
:root:root .article .article__tags a:hover { text-decoration: none; }

/* Website lists inside a post ("www.example.com ↗ (Hotel name)"): the link is bold and carries its own arrow, so the
   orange in-text underline is not needed. Links in running sentences keep their underline. */
:root:root .article .prose li > a[target='_blank'],
:root:root .article .prose li > a[target='_blank']:hover { text-decoration: none; }

/* Home hero headline "Build bold. Grow online.": larger on phones only. Was 6.75vw; now 8.91vw (+32%: 20% and then
   10% more, 6.75 x 1.2 x 1.1), with a 32px floor and a 59px cap. The kicker line above it and every wider screen keep
   their sizes. */
@media (max-width: 620px) {
  :root:root .hero h1 { font-size: clamp(32px, 8.91vw, 59px); }
}

/* "More work like this" cards on project pages: hover used to fill the whole card solid orange (from the in-text link
   hover) while the excerpt stayed grey and "View project" stayed near-white, so both were unreadable on the orange.
   Same hover as the blog's Read next cards: a soft orange tint and a thin orange border, text colours unchanged. */
:root:root .case-more__grid a:hover,
:root:root .case-more__grid a:focus-visible { background: color-mix(in srgb, #ffb236 16%, var(--surface)); border-color: #ffb236; color: var(--ink); text-decoration: none; }
:root:root .case-more__grid a:hover strong,
:root:root .case-more__grid a:focus-visible strong { color: var(--ink); }
:root:root .case-more__grid a:hover .case-more__text,
:root:root .case-more__grid a:focus-visible .case-more__text { color: var(--ink-soft, var(--ink)); }
:root:root .case-more__grid a:hover .case-more__go,
:root:root .case-more__grid a:focus-visible .case-more__go { color: var(--ink); }

/* Glossary list: the term titles ("Above the Fold") were the h3 size, too big against their short definitions.
   25% smaller, as a fraction of the heading token so it scales on every screen. */
:root:root .glossary-term__title { font-size: calc(var(--fs-h3) * 0.75); line-height: 1.25; }

/* "In short" box (a one-paragraph answer a search or AI assistant can quote) and the real last-updated line. */
:root:root .quick-answer {
  margin: 0 0 var(--space-5, 24px);
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid #ffb236;
  border-radius: var(--radius-sm);
}
:root:root .quick-answer__label {
  margin: 0 0 4px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
:root:root .quick-answer__text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
}
:root:root .updated-note {
  margin: 0 0 var(--space-4, 16px);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* "Related terms" heading under a glossary entry: a quieter size (was 26px). */
:root:root:root .glossary-related__title {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.25;
}

/* What's New month pill ("NOVEMBER 2026"): a quieter size (was up to 21px, 20.6px on a laptop). */
:root:root .updates__month-title,
:root:root .updates__month-title span { font-size: clamp(14px, 1.3vw, 16.5px) !important; }

/* Glossary sidebar: the "What we do" panel under the filters. */
:root:root .glossary__offer { gap: 12px; }
:root:root .glossary__offer-intro {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}
:root:root .glossary__offer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:root:root a.glossary__offer-item {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
:root:root a.glossary__offer-item:hover,
:root:root a.glossary__offer-item:focus-visible {
  border-color: #ffb236;
  color: var(--ink);
  transform: translateX(2px);
}
:root:root .glossary__offer-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}
:root:root .glossary__offer-blurb {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--muted);
}
:root:root a.glossary__offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: #ffb236;
  color: #000;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}
:root:root a.glossary__offer-cta:hover,
:root:root a.glossary__offer-cta:focus-visible { background: #ffc15e; color: #000; }
:root:root a.glossary__offer-all {
  font-size: var(--fs-caption);
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
}
:root:root a.glossary__offer-all:hover { color: var(--ink); }

/* Desktop: the sticky filter column is kept short enough to fit on the screen, so nothing scrolls inside it.
   The categories are one dropdown row and the "What we do" panel drops its intro line.
   On a short screen the column stops sticking and scrolls away with the page, rather than clipping. */
@media (min-width: 901px) {
  :root:root .glossary__side { gap: 14px; }
  :root:root .glossary__offer { gap: 8px; }
  :root:root .glossary__offer-intro { display: none; }
  :root:root .glossary__offer-list { gap: 6px; }
  :root:root a.glossary__offer-item { padding: 8px 12px; }
  :root:root a.glossary__offer-cta { padding: 9px 14px; }
}
@media (min-width: 901px) and (max-height: 780px) {
  :root:root .glossary__side { position: static; }
}

/* Tablet and phone: the column sits above the terms, so the panel becomes one swipe row, with no intro. */
@media (max-width: 900px) {
  :root:root .glossary__offer-intro,
  :root:root a.glossary__offer-all { display: none; }
  :root:root .glossary__offer-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 3px 0 6px;
  }
  :root:root .glossary__offer-list > li { flex: 0 0 min(250px, 74%); scroll-snap-align: start; }
  :root:root .glossary__offer-list::-webkit-scrollbar { display: none; }
  :root:root a.glossary__offer-item { height: 100%; align-content: start; }
}

/* View toggles (grid / list / compact) on the glossary, blog, portfolio and testimonials lists:
   a tooltip naming the view. Only where there is a hover; on a phone the labels are already visible. */
@media (hover: hover) {
  :root:root :is(.glossary__view, .portfolio-view)[data-tip] { position: relative; overflow: visible; }
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 30;
    padding: 6px 10px;
    border-radius: 6px;
    background: #ffb236;
    color: #000;
    font-size: var(--fs-caption);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, 4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    z-index: 30;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #ffb236;
    border-bottom-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }
  /* the end buttons keep their bubble inside the toggle, so a narrow column never clips it */
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:first-child::after { left: 0; transform: translate(0, 4px); }
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:last-child::after { left: auto; right: 0; transform: translate(0, 4px); }
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:hover::after,
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:first-child:hover::after,
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:first-child:focus-visible::after,
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:last-child:hover::after,
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:last-child:focus-visible::after { transform: translate(0, 0); }
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:hover::before,
  :root:root :is(.glossary__view, .portfolio-view)[data-tip]:focus-visible::before { opacity: 1; }
}

/* Glossary list view: one clean row per term (name, category, short summary and a "Read definition" button)
   instead of a tall card holding the whole definition. The full text is one click away on the term page. */
:root:root .glossary__list { gap: 10px; }
:root:root .glossary__list .glossary-term {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'title cats more' 'excerpt excerpt more';
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}
:root:root .glossary__list .glossary-term::after { display: none; }
:root:root .glossary__list .glossary-term:hover {
  transform: none;
  box-shadow: inset 3px 0 0 #ffb236;
  border-color: color-mix(in srgb, #ffb236 40%, var(--line));
}
:root:root .glossary__list .glossary-term__title { grid-area: title; margin: 0; }
:root:root .glossary__list .glossary-term__arrow { display: none; }
:root:root .glossary__list .glossary-term__cats { grid-area: cats; margin: 0; justify-self: start; }
:root:root .glossary__list .glossary-term__excerpt {
  grid-area: excerpt;
  max-width: 82ch;
  -webkit-line-clamp: 3;
}
:root:root a.glossary-term__more {
  grid-area: more;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
:root:root .glossary-term:hover a.glossary-term__more {
  background: #ffb236;
  border-color: #ffb236;
  color: #000;
}
@media (max-width: 700px) {
  :root:root .glossary__list .glossary-term {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'title more' 'cats cats' 'excerpt excerpt';
    padding: 14px 16px;
  }
  :root:root .glossary-term__more-text { display: none; }
  :root:root a.glossary-term__more { padding: 8px; }
}

/* Glossary category filter: one dropdown row instead of a stack of buttons. */
:root:root .glossary__select { position: relative; }
:root:root .glossary__select-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 42px 11px 14px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
:root:root .glossary__select-input:hover { border-color: color-mix(in srgb, #ffb236 45%, var(--line)); }
:root:root .glossary__select-input:focus-visible { outline: 2px solid #ffb236; outline-offset: 2px; }
:root:root .glossary__select-input option { background: var(--surface); color: var(--ink); }
:root:root .glossary__select > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Glossary A-Z index: the strip on desktop (one line), one dropdown row on tablet and phone (it wrapped to three). */
:root:root .glossary__az-select { display: none; }
@media (max-width: 900px) {
  :root:root .glossary__az { display: none; }
  :root:root .glossary__az-select {
    display: block;
    padding: 14px 0;
    border-block: 1px solid var(--line);
  }
}

/* Form dropdown list: the chosen row (no fill) was painted black by the general "active chip" rule, which is
   unreadable on the dark panel. It keeps the normal text colour; only the highlighted row is black on orange. */
:root:root .dd__opt.is-on:not(.is-active) { color: var(--ink); }
:root:root .dd__opt.is-active,
:root:root .dd__opt.is-active:hover { color: #000000; }

/* Home in the main menu: a small house instead of the word, on desktop and laptop only (the word stays on tablet
   and phone, and in the opened MENU panel). Roof and walls take the link colour; the door and the spark are the
   brand orange. Hover lifts the roof and lights the door; the page you are on gets a tinted wall. */
:root:root .nav-home__svg { display: none; }
:root:root .nav-home__door { fill: #ffb236; stroke: none; }
:root:root .nav-home__spark { fill: #ffb236; stroke: none; }
@media (min-width: 1201px) {
  :root:root .site-header:not(.is-compact) .nav-home__svg { display: block; overflow: visible; }
  :root:root .site-header:not(.is-compact) .nav-home__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  :root:root .nav-home__roof,
  :root:root .nav-home__door,
  :root:root .nav-home__spark { transform-box: fill-box; transform-origin: center; }
  :root:root .nav-home__roof { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
  :root:root .nav-home__door { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease; transform-origin: 50% 100%; }
  :root:root .nav-home__spark { transition: transform 0.35s ease, opacity 0.25s ease; opacity: 0.85; }
  :root:root .nav-home__walls { transition: fill 0.25s ease; }
  :root:root a.nav-home:hover .nav-home__roof,
  :root:root a.nav-home:focus-visible .nav-home__roof { transform: translateY(-1.3px); }
  :root:root a.nav-home:hover .nav-home__door,
  :root:root a.nav-home:focus-visible .nav-home__door { transform: scaleY(1.12); filter: drop-shadow(0 0 4px rgba(255, 178, 54, 0.75)); }
  :root:root a.nav-home:hover .nav-home__spark,
  :root:root a.nav-home:focus-visible .nav-home__spark { transform: rotate(90deg) scale(1.15); opacity: 1; }
  :root:root a.nav-home[aria-current='page'] .nav-home__walls { fill: rgba(255, 178, 54, 0.18); }
}
@media (min-width: 1201px) and (prefers-reduced-motion: reduce) {
  :root:root .nav-home__roof,
  :root:root .nav-home__door,
  :root:root .nav-home__spark,
  :root:root .nav-home__walls { transition: none; }
}
