/* =========================================================
   Loftward Studio — Design System
   Plain CSS. No build step.
   ---------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout
   5.  UI components
   6.  Header & navigation
   7.  Hero
   8.  Sections
   9.  Footer
   10. Motion
   11. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  /* Brand colour */
  --ink: #101828;          /* headings, dark sections */
  --amber: #f5a524;        /* the one accent — FILLS only on light backgrounds */
  --amber-deep: #d98c0f;   /* amber button hover (ink on it = 6.5:1) */
  --amber-text: #8a5a00;   /* amber-family TEXT + icons on light (5.5:1 cloud, 5.9:1 white) */
  --cloud: #f8f7f4;        /* page background */
  --slate: #5b6577;        /* secondary text (5.48:1 on cloud — AA) */
  --white: #ffffff;        /* cards */

  /* Derived neutrals */
  --mist: #a9b2c1;         /* secondary text on ink (8.30:1 — AA) */
  --line: #e4e2dd;         /* hairlines on cloud */
  --line-white: #ebe9e4;   /* hairlines on white */
  --line-dark: rgba(255, 255, 255, 0.14);
  --ink-soft: #1b2639;     /* raised surface inside dark sections */

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --step-label: 0.6875rem;
  --step-sm: 0.875rem;
  --step-body: 1rem;
  --step-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --step-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-h3: clamp(1.3125rem, 1.15rem + 0.7vw, 1.625rem);
  --step-h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --step-h1: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);
  --step-display: clamp(3.25rem, 1.5rem + 7vw, 7rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1240px;
  --container-narrow: 860px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Radius & shadow — restrained, no glassmorphism */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 12px 28px -12px rgba(16, 24, 40, 0.12);
  --shadow-lift: 0 4px 8px rgba(16, 24, 40, 0.05), 0 22px 48px -18px rgba(16, 24, 40, 0.2);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 0.45s;
  --dur-fast: 0.22s;

  --header-h: 76px;
}

/* ---------------------------------------------------------
   MISSING TOKENS — align with the design system above
   --------------------------------------------------------- */
:root {
  --step-1: var(--step-h4);  /* alias used in older components */
  --ff-head: var(--font-display);
  --ff-body: var(--font-body);
}

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-size: var(--step-sm);
  font-weight: 500;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-h1);
}

h2 {
  font-size: var(--step-h2);
}

h3 {
  font-size: var(--step-h3);
  line-height: 1.18;
  letter-spacing: -0.028em;
}

h4 {
  font-size: var(--step-h4);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--slate);
  letter-spacing: -0.012em;
}

.muted {
  color: var(--slate);
}

/* Small uppercase tracked section label */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
}

.label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  flex: none;
}

/* On dark backgrounds amber text clears AA (8.7:1), so the label itself warms up */
.section--dark .label {
  color: var(--amber);
}

.u-amber {
  color: var(--amber);
}

/* Amber underline for emphasis inside headings on light backgrounds */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.07em;
  height: 0.085em;
  background: var(--amber);
  border-radius: 2px;
  z-index: -1;
}

/* ---------------------------------------------------------
   4. LAYOUT
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark .lead,
.section--dark .muted {
  color: var(--mist);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.section__head .label {
  margin-bottom: 1.5rem;
}

.section__head h2 + .lead {
  margin-top: 1.5rem;
}

/* Split head: title left, supporting copy right */
.section__head--split {
  max-width: none;
  display: grid;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: end;
  grid-template-columns: 1fr;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.section--dark .rule {
  background: var(--line-dark);
}

/* ---------------------------------------------------------
   5. UI COMPONENTS
   --------------------------------------------------------- */

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn svg {
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Primary — amber fill, ink text: 8.70:1 */
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Secondary — outlined on light */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 24, 40, 0.18);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 24, 40, 0.03);
  transform: translateY(-2px);
}

/* Solid ink */
.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: #1d2a42;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* On dark sections */
.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--cloud);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--line-dark);
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

/* Text link with animated amber rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-sm);
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur) var(--ease);
}

.link-arrow svg {
  transition: transform var(--dur-fast) var(--ease);
}

.link-arrow:hover {
  background-size: 100% 2px;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.section--dark .link-arrow {
  color: var(--white);
}

/* --- Button group --- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  transition: opacity var(--dur-fast) var(--ease);
}

.logo:hover {
  opacity: 0.78;
}

.logo__mark {
  flex: none;
  width: 34px;
  height: 34px;
  overflow: visible;
}

/* The two structural strokes inherit, so the mark flips for dark surfaces.
   The wing tip stays amber on both. */
.logo__stroke {
  stroke: currentColor;
}

.logo__wing {
  stroke: var(--amber);
}

.logo--light {
  color: var(--white);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.logo__sub {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--slate);
  margin-top: 4px;
}

.logo--light .logo__sub {
  color: var(--mist);
}

/* --- Card --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #ddd9d1;
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-text);
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card__desc {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Tag list --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 100px;
  white-space: nowrap;
}

/* Tags that link through to a service page */
.tag--link {
  transition: background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.tag--link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Emphasis inside dark sections */
.section--dark strong {
  color: var(--white);
  font-weight: 500;
}

/* --- Checked list --- */
.ticks {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.ticks li {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.55;
}

.ticks svg {
  flex: none;
  margin-top: 0.3em;
  color: var(--amber-text);
}

.section--dark .ticks li {
  color: var(--mist);
}

.section--dark .ticks svg {
  color: var(--amber);
}

/* ---------------------------------------------------------
   6. HEADER & NAVIGATION
   --------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.header.is-scrolled {
  background: rgba(248, 247, 244, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  padding-block: 0.4rem;
  transition: color var(--dur-fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-right: -10px;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--cloud);
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer__nav {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--line);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease);
}

.drawer__link:hover {
  color: var(--amber-text);
}

.drawer__link svg {
  color: var(--slate);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.drawer__meta {
  font-size: var(--step-sm);
  color: var(--slate);
}

.drawer__meta a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 7.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

/* Oversized wing watermark bleeding off the right edge.
   Line art, not a blob. */
.hero__watermark {
  position: absolute;
  top: 48%;
  right: -16%;
  width: min(760px, 72vw);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  color: var(--ink);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--step-display);
  /* ch resolves against the display font here, so the measure scales with the type */
  max-width: 16ch;
  margin-block: 1.75rem 0;
}

.hero__sub {
  max-width: 52ch;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.hero .btn-row {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Service index strip at the foot of the hero */
.index {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.index__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.index__item {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

/* Mobile 2-col: divider between odd/even columns */
.index__item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.index__link {
  display: block;
}

.index__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-text);
  margin-bottom: 0.625rem;
}

.index__name {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.55rem;
}

/* Hover marks the item with an amber rule rather than recolouring the word —
   amber text on Cloud cannot reach AA, and a colour shift read as a glitch. */
.index__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}

.index__link:hover .index__name::after,
.index__link:focus-visible .index__name::after {
  width: 1.75rem;
}

.index__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ---------------------------------------------------------
   8. SECTIONS
   --------------------------------------------------------- */

/* --- Value / trust strip --- */
.values {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}

.value__icon {
  display: block;
  color: var(--amber-text);
  margin-bottom: 1.125rem;
}

.value h4 {
  margin-bottom: 0.5rem;
}

.value p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

/* --- Services grid --- */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}

/* --- Story (dark, two column) --- */
.story {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

.story__figure {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.story__figure svg {
  width: 100%;
  height: auto;
  color: var(--white);
}

.story__quote {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.028em;
  color: var(--white);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}

.story__body p + p {
  margin-top: 1.125rem;
}

/* --- Products --- */
.product {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--line-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product + .product {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.product__body {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.product__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.product__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.875rem;
}

.product__desc {
  color: var(--slate);
  font-size: var(--step-lead);
  line-height: 1.6;
  max-width: 46ch;
}

.product__links {
  margin-top: 2rem;
}

.product__visual {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--ink);
  overflow: hidden;
}

.product__visual::after {
  /* a single quiet diagonal, not a gradient blob */
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 46%,
    rgba(245, 165, 36, 0.14) 50%,
    transparent 54%,
    transparent 100%
  );
  pointer-events: none;
}

.product__logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  color: var(--white);
  text-align: center;
}

.product__logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.625rem;
}

/* --- Process --- */
.steps {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber-text);
  margin-bottom: 0.875rem;
  display: block;
}

.step h3 {
  margin-bottom: 0.625rem;
}

.step p {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 54ch;
}

/* --- CTA panel --- */
.cta {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-white);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta::before {
  /* thin amber rule across the top edge — the one flourish */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(80px, 18%, 160px);
  height: 3px;
  background: var(--amber);
  border-radius: 0 0 3px 3px;
}

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta .lead {
  max-width: 50ch;
  margin: 1.5rem auto 0;
}

.cta .btn-row {
  justify-content: center;
  margin-top: 2.25rem;
}

.cta__note {
  margin-top: 1.75rem;
  font-size: var(--step-sm);
  color: var(--slate);
}

/* ---------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 2rem;
}

/* The footer is dark in both themes, so ink-coloured links vanish on it */
.footer .link-arrow {
  color: var(--white);
}

.footer__top {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-dark);
}

.footer__intro p {
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 38ch;
  margin-top: 1.5rem;
}

.footer__cols {
  display: grid;
  gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.footer__title {
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.footer__list {
  display: grid;
  gap: 0.75rem;
}

.footer__list a,
.footer__list span {
  font-size: 0.9375rem;
  color: var(--mist);
  transition: color var(--dur-fast) var(--ease);
}

.footer__list a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--step-sm);
  color: var(--mist);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__legal a:hover {
  color: var(--white);
}

/* ---------------------------------------------------------
   10. MOTION
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Honour the OS setting: no transforms, no smooth scroll, nothing hidden. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .product:hover,
  .btn:hover,
  .btn--primary:hover,
  .btn--ghost:hover,
  .btn--ink:hover,
  .btn--light:hover,
  .btn--outline-light:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------
   11. RESPONSIVE
   --------------------------------------------------------- */
@media (min-width: 560px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .index__list {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Desktop 4-col: even spacing on both sides; divider on first 3 items */
  .index__item {
    padding: 1.75rem 1.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .index__item:nth-child(odd),
  .index__item:nth-child(even) {
    /* reset mobile-only rules */
  }

  .index__item:last-child {
    border-right: 0;
  }

  .product {
    grid-template-columns: 1.35fr 1fr;
  }

  .product__visual {
    min-height: 100%;
  }

  .story {
    grid-template-columns: 1fr 0.85fr;
  }

  .story__figure {
    order: 2;
  }

  .footer__top {
    grid-template-columns: 1fr 1.25fr;
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1.1fr 1fr;
  }

  .section__head--split .lead {
    padding-bottom: 0.4rem;
  }

  .values {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }

  .step:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {
  .nav,
  .header__actions {
    display: flex;
  }

  .burger {
    display: none;
  }

  .drawer {
    display: none;
  }
}

/* Keep the watermark from crowding small screens */
@media (max-width: 767px) {
  .hero__watermark {
    top: auto;
    bottom: -4%;
    right: -30%;
    width: 420px;
    transform: none;
    opacity: 0.05;
  }
}

/* =========================================================
   12. MEGAMENU
   ========================================================= */

/* The panel is absolute inside the fixed header. It must not be `fixed`:
   .header gets a backdrop-filter when scrolled, which would make the header
   the containing block anyway and pin the panel to the wrong box. */
.nav__item--mega {
  position: static;
}

.nav__link--panel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link--panel .chev {
  transition: transform var(--dur-fast) var(--ease);
  opacity: 0.6;
}

.nav__link--panel[aria-expanded="true"] {
  color: var(--ink);
}

.nav__link--panel[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__link--panel[aria-expanded="true"]::after {
  width: 100%;
}

.nav__link.is-current {
  color: var(--ink);
}

.nav__link.is-current::after {
  width: 100%;
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.mega[hidden] {
  display: none;
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega__sheet {
  background: var(--white);
  border-top: 1px solid var(--line-white);
  border-bottom: 1px solid var(--line-white);
  box-shadow: 0 24px 48px -24px rgba(16, 24, 40, 0.22);
  padding-block: clamp(2rem, 3vw, 2.75rem);
}

/* Header turns solid while the panel is down, so the two read as one surface */
.header.is-mega-open {
  background: var(--white);
  border-bottom-color: transparent;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(1rem, 2vw, 2rem);
}

.mega__col + .mega__col {
  border-left: 1px solid var(--line-white);
  padding-left: clamp(1rem, 2vw, 2rem);
}

.mega__colhead {
  padding-bottom: 1.125rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-white);
}

.mega__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber-text);
  margin-bottom: 0.5rem;
}

.mega__group {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.mega__blurb {
  font-size: 0.78125rem;
  line-height: 1.45;
  color: var(--slate);
}

.mega__list {
  display: grid;
  gap: 2px;
}

.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: var(--radius);
  transition: background-color var(--dur-fast) var(--ease);
}

.mega__item:hover {
  background: var(--cloud);
}

.mega__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--slate);
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.mega__item:hover .mega__icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--amber);
}

.mega__text {
  display: block;
  min-width: 0;
}

.mega__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin-bottom: 0.18rem;
}

.mega__short {
  display: block;
  font-size: 0.78125rem;
  line-height: 1.45;
  color: var(--slate);
}

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-white);
}

.mega__note {
  font-size: var(--step-sm);
  color: var(--slate);
}

.mega__note a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Below the desktop breakpoint the drawer takes over entirely */
@media (max-width: 1023px) {
  .mega {
    display: none;
  }
}

/* =========================================================
   13. DRAWER ACCORDION
   ========================================================= */
.drawer__group {
  border-bottom: 1px solid var(--line);
}

.drawer__group .drawer__link {
  border-bottom: 0;
  width: 100%;
  text-align: left;
}

.drawer__toggle .chev {
  transition: transform var(--dur-fast) var(--ease);
  color: var(--slate);
}

.drawer__toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.drawer__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.drawer__panel.is-open {
  grid-template-rows: 1fr;
}

.drawer__panelinner {
  overflow: hidden;
  min-height: 0;
}

.drawer__panel.is-open .drawer__panelinner {
  padding-bottom: 1.5rem;
}

.drawer__grouplabel {
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber-text);
  margin: 1.25rem 0 0.75rem;
}

.drawer__sublist {
  display: grid;
  gap: 0.6rem;
  padding-left: 0.875rem;
  border-left: 1px solid var(--line);
}

.drawer__sublist a {
  font-size: 0.9375rem;
  color: var(--slate);
}

.drawer__sublist a:hover {
  color: var(--ink);
}

.drawer__panelinner .link-arrow {
  margin-top: 1.5rem;
}

/* Footer: several stacked lists in one column need breathing room */
.footer__list--spaced {
  margin-bottom: 2rem;
}

/* =========================================================
   14. INNER PAGES
   ========================================================= */

/* --- Breadcrumbs --- */
.crumbs {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* --- Page hero --- */
.phero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.phero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

.phero__title {
  font-size: var(--step-h1);
  max-width: 17ch;
  margin-top: 1.5rem;
}

.phero__lead {
  max-width: 54ch;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.phero__mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--amber);
}

.phero__mark svg {
  width: 100%;
  height: auto;
}

/* --- Split: body copy beside pull-out highlights --- */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

.split__side {
  display: grid;
  gap: 0;
}

.hl {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-white);
}

.hl:last-child {
  border-bottom: 1px solid var(--line-white);
}

.hl__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.hl__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate);
}

/* --- What's included --- */
.inc {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
}

.inc__item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.inc__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-text);
  margin-bottom: 0.75rem;
}

.inc__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.inc__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate);
}

/* --- Process on dark --- */
.psteps {
  display: grid;
  gap: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}

.pstep {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.pstep__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 1rem;
}

.pstep h3 {
  margin-bottom: 0.5rem;
}

.pstep p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mist);
}

/* --- FAQs --- */
.faqs {
  border-top: 1px solid var(--line-white);
}

.faq {
  border-bottom: 1px solid var(--line-white);
}

.faq__head {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.375rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-h4);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}

.faq__q:hover {
  color: var(--amber-text);
}

.faq__icon {
  flex: none;
  margin-top: 0.3em;
  color: var(--amber-text);
}

.faq__bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.faq__q[aria-expanded="true"] .faq__bar {
  transform: scaleY(0);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.faq__a.is-open {
  grid-template-rows: 1fr;
}

.faq__ainner {
  overflow: hidden;
  min-height: 0;
}

.faq__ainner p {
  padding-bottom: 1.5rem;
  max-width: 68ch;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.68;
}

/* --- Related service cards --- */
.rel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.rel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #ddd9d1;
}

.rel__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--slate);
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.rel:hover .rel__icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--amber);
}

.rel__body {
  min-width: 0;
  flex: 1;
}

.rel__group {
  display: block;
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.rel__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.rel__short {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate);
}

.rel__arrow {
  flex: none;
  color: var(--slate);
  margin-top: 0.2rem;
  transition: transform var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.rel:hover .rel__arrow {
  color: var(--ink);
  transform: translateX(3px);
}

/* =========================================================
   15. FORMS
   ========================================================= */
.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.field__opt {
  font-weight: 400;
  color: var(--slate);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #d4d0c8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.22);
}

.field [aria-invalid="true"] {
  border-color: #b4291f;
}

.field__err {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: #b4291f;
}

.form__note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* Honeypot — off-screen rather than display:none, which some bots detect */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Alerts --- */
.alert {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--cloud);
}

.alert--ok {
  border-left: 3px solid var(--amber);
}

.alert--bad {
  border-left: 3px solid #b4291f;
  margin-bottom: 1.75rem;
}

.alert__title {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 0.75rem;
}

.alert p {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.alert a,
.link-plain {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* =========================================================
   15b. PANEL + BACK TO TOP
   ========================================================= */

/* A white card used to lift a form off the page background */
.panel {
  background: var(--white);
  border: 1px solid var(--line-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
}

.panel__head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-white);
}

.panel__title {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 0.5rem;
}

.panel__sub {
  font-size: 0.9375rem;
  color: var(--slate);
}

.req {
  color: var(--amber-text);
  font-weight: 600;
}

/* Heading above the contact sidebar */
.side__title {
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

/* Give the form the wider column */
@media (min-width: 900px) {
  .split--form {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* --- Back to top --- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 95;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.14), 0 14px 32px -12px rgba(16, 24, 40, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: #1d2a42;
  color: var(--amber);
  transform: translateY(-3px);
}

.to-top:active {
  transform: translateY(0);
}

.to-top svg {
  transition: transform var(--dur-fast) var(--ease);
}

.to-top:hover svg {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top:hover {
    transform: none;
  }

  .to-top:hover svg {
    transform: none;
  }
}

/* =========================================================
   16. LEGAL PAGES
   ========================================================= */
.phero--legal {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
}

.stamp svg {
  color: var(--amber-text);
}

.legal {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

/* --- Table of contents --- */
.toc__title {
  font-size: var(--step-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  padding-bottom: 0.875rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-white);
}

.toc__list {
  display: grid;
  gap: 1px;
}

.toc__list a {
  display: flex;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  margin-inline: -0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.toc__list a:hover {
  color: var(--ink);
  background: var(--cloud);
}

.toc__num {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--line);
  padding-top: 0.15em;
  transition: color var(--dur-fast) var(--ease);
}

.toc__list a:hover .toc__num {
  color: var(--slate);
}

.toc__list a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.toc__list a.is-active .toc__num {
  color: var(--amber-text);
}

/* --- Numbered sections --- */
.legal__section {
  scroll-margin-top: calc(var(--header-h) + 2rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-white);
}

.legal__section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-text);
  margin-bottom: 0.75rem;
}

.legal__body h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.legal__body p:last-child,
.legal__body ul:last-child {
  margin-bottom: 0;
}

.legal__body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal__foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.legal__foot p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .legal {
    grid-template-columns: 230px 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .legal__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .legal__body {
    max-width: 68ch;
  }
}

/* --- Long-form legal pages --- */
.prose h2 {
  font-size: var(--step-h3);
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

@media (min-width: 640px) {
  .inc {
    grid-template-columns: repeat(2, 1fr);
  }

  .psteps {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row {
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
  }
}

@media (min-width: 900px) {
  .phero__grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .split {
    grid-template-columns: 1.15fr 1fr;
  }

  .inc {
    grid-template-columns: repeat(3, 1fr);
  }

  .psteps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================
   17. BLOG
   ========================================================= */

/* --- Tag filter strip --- */
.blog-tagbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.tag:not(.tag--link):hover {
  color: var(--ink);
  border-color: var(--ink);
}

.tag--active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* --- Blog card grid --- */
.blog-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-grid--small {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Blog card --- */
.bcard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.bcard:hover {
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.07), 0 1px 4px rgba(16, 24, 40, 0.04);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .bcard:hover { transform: none; }
}

.bcard__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bcard__tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-text);
  background: rgba(245, 165, 36, 0.1);
  border-radius: 100px;
}

.bcard__date {
  font-size: 0.8125rem;
  color: var(--slate);
}

.bcard__title {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.bcard__link {
  color: var(--ink);
}

.bcard__link:hover {
  color: var(--amber-text);
}

.bcard__excerpt {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.bcard__more {
  align-self: flex-start;
  margin-top: auto;
}

/* --- Blog empty state --- */
.blog-empty {
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

/* --- Simple post list --- */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}

.post-item:hover {
  box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .post-item:hover { transform: none; }
}

.post-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.125rem 1.25rem 1.375rem;
}

.post-item__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: var(--slate);
  margin-bottom: .75rem;
}

.post-item__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--amber-text);
  background: rgba(245, 165, 36, .1);
  padding: .15rem .55rem;
  border-radius: 99px;
  text-decoration: none;
}

.post-item__tag:hover {
  background: rgba(245, 165, 36, .2);
}

.post-item__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .6rem;
}

.post-item__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-item__title a:hover {
  color: var(--amber-text);
}

.post-item__excerpt {
  font-size: .9375rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

/* --- Blog post / listing images --- */
.post-item__img {
  width: 100%;
  height: clamp(160px, 18vw, 210px);
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
  flex-shrink: 0;
}
.post-item__img-placeholder {
  width: 100%;
  height: clamp(160px, 18vw, 210px);
  background: var(--surface, #f4f4f5);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  margin-bottom: 0;
  flex-shrink: 0;
}
.bpost__img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  display: block;
}
.bpost__img-placeholder {
  width: 100%;
  height: clamp(200px, 30vw, 380px);
  background: var(--surface, #f4f4f5);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* --- Blog post page --- */
.phero--blog {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.bpost__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

/* Additional prose styles for blog posts */
.prose h3 {
  font-size: var(--step-h4, 1.125rem);
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose ol li,
.prose ul li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--amber);
  background: var(--cloud);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   18. PORTFOLIO
   --------------------------------------------------------- */

/* Placeholder notice bar */
.pf-notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1.25rem;
  background: rgba(245, 165, 36, 0.08);
  border: 1px solid rgba(245, 165, 36, 0.2);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--slate);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
}

.pf-notice svg { flex-shrink: 0; margin-top: 2px; color: var(--amber-text); }
.pf-notice strong { color: var(--ink); }

/* Portfolio filter tabs */
.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.pf-tab {
  padding: .4rem 1.1rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background: none;
  font-size: .8125rem;
  font-weight: 500;
  font-family: var(--ff-body);
  color: var(--slate);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.pf-tab:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.pf-tab.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

html[data-theme="dark"] .pf-tab {
  border-color: var(--line-dark);
  color: var(--mist);
}

/* Outranks the rule above, which would otherwise put mist on the amber fill */
html[data-theme="dark"] .pf-tab.is-active {
  color: var(--ink);
}

html[data-theme="dark"] .pf-tab:hover {
  border-color: var(--amber);
  color: var(--white);
}

/* Portfolio card grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.pf-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: box-shadow var(--dur) ease, transform var(--dur) ease;
}

.pf-card:hover {
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.09);
  transform: translateY(-2px);
}

.pf-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.pf-card__industry {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--amber-text);
}

.pf-card__market {
  font-size: .72rem;
  padding: .18rem .5rem;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--slate);
}

.pf-card__name {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.pf-card__blurb {
  font-size: .875rem;
  color: var(--slate);
  line-height: 1.6;
  flex: 1;
}

.pf-card__services {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.pf-card__svc {
  font-size: .72rem;
  padding: .18rem .55rem;
  background: var(--cloud);
  border-radius: 20px;
  color: var(--ink);
}

.pf-card__result {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--amber-text);
  padding: .625rem .75rem;
  background: rgba(245, 165, 36, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 165, 36, 0.15);
}

.pf-card__result svg { flex-shrink: 0; margin-top: 1px; }

/* ---------------------------------------------------------
   19. PRICING
   --------------------------------------------------------- */

/* Three-column pricing grid */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  position: relative;
}

.price-card--featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 32px rgba(245, 165, 36, 0.12);
}

.price-card__eyebrow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--amber);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .2rem .75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.price-card__tier {
  font-family: var(--ff-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.price-card__price {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.price-card__amount {
  font-family: var(--ff-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
}

.price-card__note {
  font-size: .8rem;
  color: var(--slate);
}

.price-card__desc {
  font-size: .875rem;
  color: var(--slate);
  line-height: 1.6;
}

.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0;
  flex: 1;
}

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink);
}

.price-card__list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a524' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-footnote {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--slate);
}

.price-todo-note {
  font-size: .875rem;
  color: var(--slate);
  padding: .625rem .875rem;
  background: rgba(245, 165, 36, 0.06);
  border: 1px solid rgba(245, 165, 36, 0.2);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Marketing add-on grid */
.price-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.price-addon {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.price-addon__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 165, 36, 0.08);
  border-radius: 10px;
  color: var(--amber-text);
  flex-shrink: 0;
}

.price-addon__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .3rem;
}

.price-addon__desc {
  font-size: .875rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: .625rem;
}

.price-addon__price {
  font-size: .875rem;
  color: var(--slate);
}

.price-addon__price strong {
  color: var(--ink);
}

/* Smaller button variant */
.btn--sm {
  padding: .375rem .875rem;
  font-size: .875rem;
}

/* section--light variant */
.section--light {
  background: var(--cloud);
}

/* =========================================================
   DARK / LIGHT MODE TOGGLE BUTTON
   ========================================================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--slate);
  transition: color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--ink);
  background: rgba(16, 24, 40, 0.06);
  border-color: var(--line);
}

/* =========================================================
   DARK MODE — html[data-theme="dark"]
   ========================================================= */
html[data-theme="dark"] {
  --cloud:       #111827;
  --slate:       #9ca3af;
  --amber-text:  #f5a524;  /* only ever used as text; the light-bg brown is unreadable here */
  --line:        #374151;
  --line-white:  #2d3748;
  --line-dark:   rgba(255, 255, 255, 0.07);
  --ink-soft:    #131c2e;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:      0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, 0.35), 0 22px 48px -18px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  color: #e4e6eb;
}

/* ---- Logo ---- */
html[data-theme="dark"] .logo {
  color: #e4e6eb;
}

/* ---- Header ---- */
html[data-theme="dark"] .header.is-scrolled {
  background: rgba(17, 24, 39, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

html[data-theme="dark"] .header.is-mega-open {
  background: #1f2937;
}

html[data-theme="dark"] .nav__link { color: #9ca3af; }
html[data-theme="dark"] .nav__link:hover,
html[data-theme="dark"] .nav__link.is-current,
html[data-theme="dark"] .nav__link[aria-current="page"],
html[data-theme="dark"] .nav__link--panel[aria-expanded="true"] { color: #e4e6eb; }

html[data-theme="dark"] .theme-toggle { color: #9ca3af; }
html[data-theme="dark"] .theme-toggle:hover {
  color: #e4e6eb;
  background: rgba(255, 255, 255, 0.08);
  border-color: #374151;
}

/* ---- Megamenu ---- */
html[data-theme="dark"] .mega__sheet {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .mega__col + .mega__col,
html[data-theme="dark"] .mega__colhead { border-color: #374151; }

html[data-theme="dark"] .mega__group { color: #e4e6eb; }

html[data-theme="dark"] .mega__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

html[data-theme="dark"] .mega__note { color: var(--slate); }

/* ---- Mobile drawer ---- */
html[data-theme="dark"] .drawer__link { color: #9ca3af; }
html[data-theme="dark"] .drawer__link:hover { color: var(--amber-text); }
html[data-theme="dark"] .drawer__meta a:hover { color: #e4e6eb; }

/* ---- Cards ---- */
html[data-theme="dark"] .card {
  background: #1f2937;
  border-color: #374151;
}

html[data-theme="dark"] .card:hover { border-color: #4b5563; }

/* ---- Products ---- */
html[data-theme="dark"] .product {
  background: #1f2937;
  border-color: #374151;
}

/* ---- Sections ---- */
html[data-theme="dark"] .section--white { background: #131722; }
html[data-theme="dark"] .section--dark  { background: #090d16; }

/* ---- Buttons ---- */
html[data-theme="dark"] .btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e4e6eb;
}

html[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .btn--ink {
  background: #1f2937;
  color: #e4e6eb;
  border-color: #374151;
}

html[data-theme="dark"] .btn--ink:hover { background: #2d3748; }

/* ---- Links ---- */
html[data-theme="dark"] .link-arrow { color: #e4e6eb; }

/* ---- Blog cards ---- */
html[data-theme="dark"] .post-card {
  background: #1f2937;
  border-color: #374151;
}

html[data-theme="dark"] .post-card:hover { border-color: #4b5563; }
html[data-theme="dark"] .post-item { border-color: #374151; }
html[data-theme="dark"] .post-item:hover { background: rgba(255, 255, 255, 0.03); }

/* ---- Pricing ---- */
html[data-theme="dark"] .plan { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .plan--featured { background: #0d1424; border-color: var(--amber); }
html[data-theme="dark"] .plan__name,
html[data-theme="dark"] .plan__price { color: #e4e6eb; }

html[data-theme="dark"] .pricing-sticky { background: #111827; border-color: #374151; }
html[data-theme="dark"] .currency-bar    { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .currency-sw__btn:hover { background: rgba(255,255,255,0.07); color: #e4e6eb; }

html[data-theme="dark"] .price-nav__link { color: #9ca3af; border-color: transparent; }
html[data-theme="dark"] .price-nav__link:hover,
html[data-theme="dark"] .price-nav__link.is-active { color: #e4e6eb; }

html[data-theme="dark"] .price-row { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .price-row__left h4,
html[data-theme="dark"] .price-row__price,
html[data-theme="dark"] .price-service-head h3,
html[data-theme="dark"] .price-addon__price strong { color: #e4e6eb; }

html[data-theme="dark"] .price-quote-card { background: rgba(255,255,255,0.03); border-color: #374151; }

/* ---- Global heading colour in dark mode ---- */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
  color: #ffffff;
}

/* ---- CTA card in dark mode — keep readable on its own background ---- */
html[data-theme="dark"] .cta {
  background: #131c2e;
  border-color: #1e2d47;
}

html[data-theme="dark"] .cta h2 { color: #f1f5f9; }
html[data-theme="dark"] .cta .lead { color: #9ca3af; }
html[data-theme="dark"] .cta__note { color: #6b7280; }

/* ---- Contact form panel ---- */
html[data-theme="dark"] .panel {
  background: #1f2937;
  border-color: #374151;
}

html[data-theme="dark"] .panel__head {
  border-bottom-color: #374151;
}

html[data-theme="dark"] .panel__sub { color: #9ca3af; }

/* ---- Form fields ---- */
html[data-theme="dark"] .field label { color: #d1d5db; }

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: #111827;
  border-color: #374151;
  color: #e4e6eb;
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder { color: #6b7280; }

html[data-theme="dark"] .field input:hover,
html[data-theme="dark"] .field select:hover,
html[data-theme="dark"] .field textarea:hover {
  border-color: #4b5563;
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus {
  background: #0f172a;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.15);
}

html[data-theme="dark"] .form__note { color: #6b7280; }

/* ---- Text that uses --ink ----
   --ink stays dark in dark mode because it is also a background
   (amber buttons, active tags, hover fills) and must not flip. These
   are the places it is used as text, which need lifting instead. */
html[data-theme="dark"] .mega__note a,
html[data-theme="dark"] .faq__q,
html[data-theme="dark"] .drawer__sublist a:hover,
html[data-theme="dark"] .crumbs a:hover,
html[data-theme="dark"] .crumbs [aria-current="page"],
html[data-theme="dark"] .toc__list a:hover,
html[data-theme="dark"] .toc__list a.is-active,
html[data-theme="dark"] .alert a,
html[data-theme="dark"] .link-plain,
html[data-theme="dark"] .rel__title,
html[data-theme="dark"] .rel:hover .rel__arrow,
html[data-theme="dark"] .bcard__link,
html[data-theme="dark"] .post-item__title a,
html[data-theme="dark"] .prose a,
html[data-theme="dark"] .prose strong,
html[data-theme="dark"] .prose blockquote p,
html[data-theme="dark"] .legal__body strong,
html[data-theme="dark"] .pf-card__name,
html[data-theme="dark"] .pf-card__market,
html[data-theme="dark"] .pf-notice strong,
html[data-theme="dark"] .price-card__tier,
html[data-theme="dark"] .price-card__amount,
html[data-theme="dark"] .price-card__list li,
html[data-theme="dark"] .price-addon__name,
html[data-theme="dark"] .price-addon__price strong,
html[data-theme="dark"] .price-service-head h3,
html[data-theme="dark"] .price-nav__link:hover,
html[data-theme="dark"] .price-nav__link.is-active,
html[data-theme="dark"] .currency-sw__btn:hover {
  color: #e4e6eb;
}

/* ---- Portfolio cards + tag pills ---- */
html[data-theme="dark"] .pf-card {
  background: #1f2937;
  border-color: #374151;
}

html[data-theme="dark"] .pf-card__market,
html[data-theme="dark"] .pf-card__svc {
  background: #374151;
  color: #e4e6eb;
}

html[data-theme="dark"] .tag {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

html[data-theme="dark"] .tag--link:hover {
  background: #374151;
  border-color: #4b5563;
  color: #ffffff;
}

/* ---- Remaining white surfaces ---- */
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .rel {
  background: #1f2937;
  border-color: #374151;
}

html[data-theme="dark"] .blog-tagbar {
  background: #1f2937;
  border-bottom-color: #374151;
}

/* ---------------------------------------------------------
   20. CURRENCY SWITCHER + PRICING NAV
   --------------------------------------------------------- */

/* Bar that holds the currency switcher */
.pricing-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 39;
  background: var(--cloud);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.currency-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: .75rem 0;
  position: sticky;
  top: 72px; /* below the site header */
  z-index: 40;
}

.currency-sw {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .625rem .875rem;
}

.currency-sw__label {
  font-size: .8rem;
  color: var(--slate);
  white-space: nowrap;
}

.currency-sw__group {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.currency-sw__btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3rem .875rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
  white-space: nowrap;
}

.currency-sw__btn:hover {
  background: var(--cloud);
  color: var(--ink);
}

.currency-sw__btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.currency-sw__note {
  font-size: .78rem;
  color: var(--slate);
  margin: 0;
}

/* Sticky service-group anchor nav on the pricing page */
.price-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--cloud);
}

.price-nav::-webkit-scrollbar { display: none; }

.price-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 1.25rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

[data-tab-panel].tab-hidden { display: none !important; }

.price-card__sub {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--slate);
  margin-top: .2rem;
  letter-spacing: .01em;
}

.price-nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

.price-nav__link.is-active {
  color: var(--ink);
  border-color: var(--amber);
}

.price-nav__num {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber-text);
  opacity: .8;
}

/* Service-within-group pricing cards with sub-heading */
.price-service-block {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.price-service-block + .price-service-block {
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.price-service-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.price-service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 165, 36, 0.08);
  border-radius: 10px;
  color: var(--amber-text);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-service-head h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}

.price-service-head p {
  font-size: .875rem;
  color: var(--slate);
}

/* contact-quote card (for services that need a scope call) */
.price-quote-card {
  background: var(--cloud);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.price-quote-card p {
  font-size: .875rem;
  color: var(--slate);
  flex: 1;
  min-width: 200px;
}

/* Two-column grid variant */
.price-grid--2up {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Row-style pricing (for Hosting / Email) */
.price-row-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.price-row__left h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .2rem;
}

.price-row__left p {
  font-size: .82rem;
  color: var(--slate);
}

.price-row__price {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.price-row__dual {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.price-row__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
}

.price-row__or {
  font-size: .75rem;
  color: var(--slate);
  flex-shrink: 0;
}

.price-save {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--amber);
  padding: .15rem .45rem;
  border-radius: 99px;
  margin-top: .2rem;
  letter-spacing: .02em;
}

.price-row__price small {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 400;
  color: var(--slate);
  margin-left: .25rem;
}

/* =========================================================
   SMOOTH SCROLLING & RESPONSIVE POLISH
   ========================================================= */

/* Smooth momentum scroll on iOS */
html {
  -webkit-overflow-scrolling: touch;
}

/* Mobile header: keep theme-toggle and burger grouped on the right */
@media (max-width: 1023px) {
  .theme-toggle {
    margin-left: auto;
  }
}

/* ---- Pricing page tabs: fade hint at right edge ---- */
@media (max-width: 540px) {
  .price-nav {
    -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  }
}

/* Price rows: stack on very narrow screens */
@media (max-width: 480px) {
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    padding: 1rem;
  }
  .price-row__price {
    white-space: normal;
  }
}

/* Pricing page: extra scroll-padding so sticky bars don't obscure jump targets */
html:has(.pricing-sticky) {
  scroll-padding-top: calc(var(--header-h) + 100px);
}

/* ---- Responsive grid helpers ---- */

/* Blog grid: single column below 480px */
@media (max-width: 479px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Values / trust strip: 2-col min on small phones */
@media (min-width: 480px) and (max-width: 559px) {
  .values { grid-template-columns: repeat(2, 1fr); }
}

/* Steps: single column below 480px (they already go 1-col by default, keep it clean) */
@media (max-width: 899px) {
  .step:nth-child(2) {
    border-top: 0;
  }
}

/* Footer: single column on very small phones */
@media (max-width: 479px) {
  .footer__cols {
    grid-template-columns: 1fr;
  }
}

/* Hero buttons: stack on very small screens */
@media (max-width: 360px) {
  .btn-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-row .btn--ghost {
    width: 100%;
    justify-content: center;
  }
}

/* Breadcrumbs: smaller text on tiny screens */
@media (max-width: 360px) {
  .crumbs ol {
    font-size: .78rem;
  }
}

/* Pricing cards: ensure readable on small screens */
@media (max-width: 479px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* currency-sw: stack label and buttons on narrow screens */
@media (max-width: 360px) {
  .currency-sw {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dark mode: smooth-scroll colour for scrollbar */
html[data-theme="dark"] {
  color-scheme: dark;
  scrollbar-color: #374151 #111827;
}


/* ---- Image responsive safety net ---- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Table overflow on mobile ---- */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ---- Avoid text overflow on all headings ---- */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---- Long words / URLs in prose ---- */
p, li, td, th {
  overflow-wrap: break-word;
}

/* =========================================================
   DARK HERO (OC Labs inspired)
   ========================================================= */

/* The hero follows the theme: light on light, deep navy on dark. */
html[data-theme="dark"] .hero {
  background: #0c1220;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero h1 {
  color: var(--white);
}

html[data-theme="dark"] .hero .label           { color: var(--amber); }
html[data-theme="dark"] .hero .hero__sub       { color: var(--mist); }
html[data-theme="dark"] .hero .hero__watermark { color: rgba(255, 255, 255, 0.04); }

html[data-theme="dark"] .hero .index,
html[data-theme="dark"] .hero .index__item,
html[data-theme="dark"] .hero .index__item:nth-child(odd) {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hero .index__num  { color: var(--amber); }
html[data-theme="dark"] .hero .index__name { color: var(--white); }
html[data-theme="dark"] .hero .index__desc { color: var(--mist); }
html[data-theme="dark"] .hero .index__link { color: var(--white); }

html[data-theme="dark"] .hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

html[data-theme="dark"] .hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* ---- Hero: floating UI decoration cards ---- */
.hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

@media (max-width: 899px) {
  .hero__floats { display: none; }
}

.hero__float {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__float--build {
  right: clamp(2rem, 10%, 11rem);
  top: 34%;
  padding: 11px 16px 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink);
}

.fl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fl-dot--green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.fl-build-label {
  line-height: 1.3;
}

.fl-build-label small {
  display: block;
  font-size: .68rem;
  opacity: .6;
  font-weight: 400;
  margin-top: 2px;
}

.hero__float--settings {
  right: clamp(2rem, 14%, 15rem);
  bottom: 24%;
  padding: 11px 15px;
  min-width: 162px;
}

.fl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .73rem;
  color: var(--slate);
  padding: 5px 0;
}

.fl-row + .fl-row {
  border-top: 1px solid var(--line);
}

.fl-toggle {
  width: 28px;
  height: 15px;
  border-radius: 999px;
  background: #d9d6cf;
  position: relative;
  flex-shrink: 0;
}

.fl-toggle::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
}

.fl-toggle--on {
  background: var(--amber);
}

.fl-toggle--on::after {
  background: #fff;
  left: 15px;
}

/* Floats on the dark hero: translucent white glass instead of a white card */
html[data-theme="dark"] .hero__float {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

html[data-theme="dark"] .hero__float--build { color: rgba(255, 255, 255, 0.9); }
html[data-theme="dark"] .fl-row            { color: rgba(255, 255, 255, 0.72); }
html[data-theme="dark"] .fl-row + .fl-row  { border-top-color: rgba(255, 255, 255, 0.07); }

html[data-theme="dark"] .fl-toggle          { background: rgba(255, 255, 255, 0.15); }
html[data-theme="dark"] .fl-toggle::after   { background: rgba(255, 255, 255, 0.4); }
html[data-theme="dark"] .fl-toggle--on      { background: var(--amber); }
html[data-theme="dark"] .fl-toggle--on::after { background: #fff; }

/* ---- Statement section ---- */
.statement {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--cloud);
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}

.statement__text em {
  font-style: normal;
  color: var(--amber-text);
}

html[data-theme="dark"] .statement__text {
  color: #e4e6eb;
}

html[data-theme="dark"] .statement__text em {
  color: var(--amber);
}

/* =========================================================
   IMAGE PLACEMENTS
   ========================================================= */

/* ---- Hero: particle canvas ---- */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Story figure: real photo instead of SVG ---- */
.story__figure--img {
  padding: 0;
  background: none;
  border: none;
}

.story__figure--img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}


/* ---------------------------------------------------------
   REGION PICKER (footer)
   Quiet by design: the edition is chosen by IP, this is the
   way out for anyone travelling or behind a VPN.
   --------------------------------------------------------- */
.region-pick {
  position: relative;
  display: inline-block;
}

.region-pick__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  background: none;
  font-family: var(--ff-body);
  font-size: .78rem;
  color: var(--mist);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.region-pick__btn:hover,
.region-pick__btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.region-pick__btn svg:last-child {
  transition: transform var(--dur-fast) var(--ease);
}

.region-pick__btn[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

.region-pick__menu {
  position: absolute;
  bottom: calc(100% + .5rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: .3rem;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.7);
}

.region-pick__menu[hidden] {
  display: none;
}

.region-pick__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
}

.region-pick__item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.region-pick__item.is-current {
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 599px) {
  .region-pick__menu { right: auto; left: 0; }
}
