/* WebsiteBuildHouse — premium responsive design system (Step 4A redesign)
   Evolved from the verified baseline stylesheet. Preserves the black / charcoal /
   cream / gold identity, the gold-gradient button treatment, Georgia display +
   Inter body, focus states and reduced-motion support. Changes vs baseline:
   controlled/monotonic heading scale, added dark-navy + warm-panel surfaces,
   device-frame + accordion + comparison-card + package/care components, nav
   collapse at 1024px, and removal of the featured price-card negative lift. */

:root {
  color-scheme: dark;
  /* Core identity (unchanged from baseline) */
  --bg: #070809;
  --bg-deep: #040506;
  --bg-navy: #07111f;          /* dark-navy sectional surface */
  --surface: #0d0f12;
  --surface-soft: #111419;
  --surface-raised: #15191f;
  --text: #f6f2eb;
  --muted: #b7b0a7;
  --faint: #a49d94;            /* raised for legibility; decorative use only */
  --gold: #d9a84f;
  --gold-bright: #f4d79c;
  --gold-deep: #8b5b20;
  --blue: #2b8cff;
  /* Warm panel (restrained cream, never bright white) */
  --warm: #f1e9da;
  --warm-soft: #e9dfcb;
  --warm-ink: #1c150c;
  --warm-muted: #5a4f3d;
  --line: rgba(238, 208, 153, 0.15);
  --line-strong: rgba(238, 208, 153, 0.28);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.24);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --shadow-gold: 0 22px 50px rgba(164, 113, 39, 0.18);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 72px;
  --section-space: clamp(4rem, 7vw, 6.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden; /* safety net only; no component relies on this to hide breakage */
  background:
    radial-gradient(circle at 12% -8%, rgba(43, 140, 255, 0.10), transparent 28rem),
    linear-gradient(180deg, #080a0d 0%, var(--bg) 32%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Scope aggressive wrapping to elements that can carry long unbroken strings
   (URLs, WhatsApp links), NOT normal headings/labels. */
.break-anywhere,
a[href^="https://wa.me"],
.browser-address {
  overflow-wrap: anywhere;
}

p,
li {
  overflow-wrap: break-word;
}

::selection {
  background: rgba(217, 168, 79, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - clamp(2rem, 6vw, 4rem)));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  translate: 0 -150%;
  border-radius: var(--radius-xs);
  background: #fff;
  color: #090909;
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: translate 0.2s ease;
}

.skip-link:focus {
  translate: 0;
}

.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;
}

/* ============================================================= HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(238, 208, 153, 0.11);
  background: rgba(7, 8, 10, 0.88);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
}

.brand-logo {
  width: clamp(180px, 19vw, 240px);
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 9px 20px rgba(205, 155, 75, 0.17));
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.6rem);
  min-width: 0;
  color: #d1cbc2;
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a,
.footer-links a {
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  content: "";
  scale: 0 1;
  transition: scale 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.footer-links a:hover {
  color: #fff5e5;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  scale: 1 1;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* ==================================================================== BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  transition: translate 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn::after {
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: calc(var(--radius-sm) - 3px);
  content: "";
  pointer-events: none;
}

.btn:hover {
  translate: 0 -2px;
}

.btn:active {
  translate: 0 1px;
}

.btn-primary {
  border-color: rgba(255, 239, 203, 0.88);
  background: linear-gradient(180deg, #f5dda7 0%, #d8a94f 48%, #a56d27 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 0 rgba(76, 45, 16, 0.32), var(--shadow-gold);
  color: #171006;
}

.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 0 rgba(76, 45, 16, 0.31), 0 25px 48px rgba(164, 113, 39, 0.29);
}

.btn-primary:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 0 rgba(76, 45, 16, 0.3), 0 12px 22px rgba(164, 113, 39, 0.18);
}

.btn-ghost {
  border-color: rgba(238, 208, 153, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 28px rgba(0, 0, 0, 0.2);
  color: #fbf2e4;
}

.btn-ghost:hover {
  border-color: rgba(244, 215, 156, 0.72);
  background: linear-gradient(180deg, rgba(238, 208, 153, 0.13), rgba(168, 109, 35, 0.06));
}

.btn-small {
  min-height: 46px;
  padding-inline: 1.15rem;
  font-size: 0.84rem;
}

.btn-large {
  min-height: 58px;
  padding-inline: 1.65rem;
  font-size: 0.95rem;
}

.nav-cta {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ============================================================ EYEBROW / LABELS */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 168, 79, 0.12), 0 0 20px rgba(217, 168, 79, 0.34);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(244, 215, 156, 0.42);
  color: var(--gold-bright);
  padding-bottom: 0.25rem;
  font-weight: 800;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  gap: 0.75rem;
  border-color: var(--gold-bright);
}

/* ===================================================================== HERO */
.hero {
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  content: "";
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  top: -290px;
  left: -230px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(35, 125, 232, 0.14), transparent 68%);
}

.orb-two {
  right: -260px;
  bottom: -320px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217, 168, 79, 0.11), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.05rem, 5.2vw, 3.25rem); /* cap ~52px, monotonic */
  line-height: 1.04;
}

.hero-text {
  max-width: 56ch;
  margin: 1.4rem 0 1.9rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 680px;
  margin-top: 2.25rem;
}

.hero-trust > div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  border-left: 1px solid var(--line-strong);
  padding-left: 0.9rem;
}

.hero-trust strong {
  color: #fff8ed;
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-trust span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ==================================================== DEVICE-FRAME COMPONENTS */
.device-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.device-glow {
  position: absolute;
  z-index: -2;
  width: min(42vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 168, 79, 0.16), rgba(43, 140, 255, 0.07) 42%, transparent 70%);
  filter: blur(6px);
}

.frame-browser {
  width: 100%;
  border: 1px solid rgba(238, 208, 153, 0.26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(48, 41, 30, 0.96), rgba(12, 15, 20, 0.94));
  padding: 10px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
}

.frame-browser .browser-top {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 5px;
  padding-inline: 6px;
}

.frame-browser .browser-top > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(236, 221, 195, 0.4);
}

.browser-address {
  height: 18px;
  flex: 1;
  margin-left: 0.5rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 234, 216, 0.5);
  font-size: 0.6rem;
  line-height: 18px;
  padding-left: 0.6rem;
}

.frame-browser .frame-shot {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.frame-browser .frame-shot img {
  width: 100%;
  height: auto;
}

.frame-phone {
  position: absolute;
  right: -6px;
  bottom: -26px;
  width: clamp(96px, 24%, 150px);
  border: 3px solid rgba(20, 22, 26, 0.95);
  border-radius: 22px;
  background: #05070a;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.frame-phone img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.real-chip {
  position: absolute;
  top: 14px;
  left: -10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(238, 208, 153, 0.3);
  border-radius: 999px;
  background: rgba(10, 12, 15, 0.92);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  padding: 0.45rem 0.8rem;
  color: #fff5e5;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.real-chip .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #59d98f;
  box-shadow: 0 0 0 4px rgba(89, 217, 143, 0.12);
}

/* Framed media (screenshots inside sections) */
.media-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(238, 208, 153, 0.2);
  border-radius: var(--radius);
  background: #050607;
  box-shadow: var(--shadow-sm);
}

.media-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  content: "";
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.media-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #f9f1e5;
  padding: 2.6rem 1rem 0.85rem;
  font-size: 0.77rem;
  font-weight: 750;
}

/* ============================================================= VALUE STRIP */
.value-strip {
  border-block: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.94);
}

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

.value-grid > div {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 0.75rem;
  border-right: 1px solid var(--line);
  padding: 1rem 1.15rem;
}

.value-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.value-grid span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 850;
}

.value-grid strong {
  color: #f4eee5;
  font-size: 0.86rem;
  line-height: 1.35;
}

/* ================================================= SECTION SURFACES (contrast) */
.surface-navy {
  border-block: 1px solid rgba(238, 208, 153, 0.12);
  background:
    radial-gradient(circle at 88% 8%, rgba(43, 140, 255, 0.12), transparent 26rem),
    linear-gradient(150deg, #081019, #0a1420 58%, #070b12);
}

.surface-charcoal {
  border-block: 1px solid rgba(238, 208, 153, 0.10);
  background: linear-gradient(180deg, #0c0e12, #0a0b0e);
}

.surface-deep {
  background: linear-gradient(180deg, var(--bg-deep), #090b0e);
}

/* Section intro row */
.section-intro {
  margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.section-heading {
  font-size: clamp(1.9rem, 4.4vw, 3rem); /* cap ~48px */
  line-height: 1.08;
}

.lede {
  color: var(--muted);
  max-width: 62ch;
}

/* Split feature / two-col */
.split-feature,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split-feature h2,
.two-col h2,
.intro-row h2,
.final-cta h2,
.contact-main h2,
.full-case h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
}

.split-feature > div:first-child > p:not(.eyebrow),
.two-col p,
.intro-row p,
.final-cta-content > p:not(.eyebrow),
.contact-main > p,
.case-copy > p:not(.case-label) {
  color: var(--muted);
}

.split-feature > div:first-child > p:not(.eyebrow) {
  max-width: 60ch;
  margin: 1.3rem 0 1.6rem;
}

.feature-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 23, 28, 0.92), rgba(10, 12, 15, 0.88));
  box-shadow: var(--shadow-sm);
}

.feature-list > div {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding: 1.4rem;
}

.feature-list > div:last-child {
  border-bottom: 0;
}

.feature-list span,
.quick-process span,
.principles span,
.contact-steps span,
.work-metrics span,
.detail-card > span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.feature-list strong {
  color: #fff7eb;
  line-height: 1.35;
}

.feature-list p {
  grid-column: 2;
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ======================================================= FEATURED PROJECT */
.callout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.callout-grid.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.callout-grid h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.08;
}

.callout-grid .media-frame {
  aspect-ratio: 1.9 / 1;
}

.callout-grid .media-frame img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.3rem 0 1.6rem;
}

.project-tags span {
  border: 1px solid rgba(238, 208, 153, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #dcd4c8;
  padding: 0.45rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.case-label,
.plan-label {
  margin-bottom: 0.8rem;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.build-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.build-facts li {
  position: relative;
  padding-left: 1.45rem;
  color: #ded8cf;
  font-size: 0.94rem;
}

.build-facts li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  border: 1px solid var(--gold);
  content: "";
}

/* ================================================================= PROCESS */
.quick-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-process > div,
.work-metrics > div,
.contact-steps > div,
.principles > div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.9), rgba(9, 11, 14, 0.9));
  padding: clamp(1.45rem, 3vw, 2rem);
}

.quick-process > div::before,
.work-metrics > div::before,
.contact-steps > div::before,
.principles > div::before,
.detail-card::before,
.pkg-card::before {
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  content: "";
}

.quick-process h3,
.work-metrics h3,
.contact-steps h3,
.principles h3 {
  margin: 0.8rem 0 0.6rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.quick-process p,
.work-metrics p,
.contact-steps p,
.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

/* ============================================== FEATURE TEASER (home) / GRID */
.feature-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-teaser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.92), rgba(9, 11, 14, 0.92));
  box-shadow: var(--shadow-sm);
  padding: clamp(1.35rem, 2.6vw, 1.8rem);
}

.feature-teaser-card h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.feature-teaser-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-bright);
  font-size: 1.05rem;
}

.honesty-label {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid rgba(238, 208, 153, 0.22);
  border-radius: 999px;
  background: rgba(217, 168, 79, 0.08);
  color: var(--gold-bright);
  padding: 0.3rem 0.6rem;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ======================================================= AUDIENCES / CHECKS */
.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list > div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: #ece5db;
  padding: 1rem 1rem 1rem 3rem;
  font-weight: 700;
}

.check-list > div::before {
  position: absolute;
  top: 50%;
  left: 1rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  translate: 0 -50%;
  place-items: center;
  border: 1px solid rgba(244, 215, 156, 0.48);
  border-radius: 50%;
  color: var(--gold-bright);
  content: "\2713";
  font-size: 0.67rem;
}

/* ================================================= WARM TESTIMONIAL PANEL */
.testimonial {
  position: relative;
  overflow: hidden;
  max-width: 930px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 168, 79, 0.09), transparent 18rem),
    linear-gradient(150deg, #13161b, #090b0e);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 5vw, 3.75rem);
  text-align: center;
}

.testimonial .quote-mark {
  height: 2.6rem;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 4.4rem;
  line-height: 1;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial p,
.testimonial p.quote {
  margin: 0 auto 1.35rem;
  color: #e4ddd3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.55;
  max-width: 46ch;
}

.testimonial footer {
  display: grid;
  gap: 0.1rem;
}

.testimonial footer strong {
  color: #fff5e5;
}

.testimonial footer span {
  color: var(--faint);
  font-size: 0.85rem;
}

/* Warm variant (restrained cream panel) — used to break the dark run */
.testimonial.warm {
  border: 1px solid rgba(120, 96, 52, 0.4);
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.5), transparent 40%),
    linear-gradient(155deg, var(--warm), var(--warm-soft));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  color: var(--warm-ink);
}

.testimonial.warm .quote-mark {
  color: var(--gold-deep);
}

.testimonial.warm p,
.testimonial.warm p.quote {
  color: #241b0e;
}

.testimonial.warm footer strong {
  color: var(--warm-ink);
}

.testimonial.warm footer span {
  color: var(--warm-muted);
}

/* ============================================================ PAGE HERO */
.page-hero {
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 208, 153, 0.11);
  background:
    radial-gradient(circle at 82% 2%, rgba(217, 168, 79, 0.12), transparent 28rem),
    radial-gradient(circle at 7% 20%, rgba(43, 140, 255, 0.08), transparent 25rem),
    linear-gradient(160deg, #0b0d11, #070809 72%);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.page-hero .container {
  max-width: 980px;
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.05rem, 5.4vw, 3.5rem); /* cap ~56px, monotonic */
  line-height: 1.04;
}

.page-hero p:not(.eyebrow) {
  max-width: 64ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.page-hero .btn {
  margin-top: 1.6rem;
}

/* ================================================================= SERVICES */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 168, 79, 0.08), transparent 15rem),
    linear-gradient(150deg, rgba(20, 23, 28, 0.95), rgba(9, 11, 14, 0.95));
  box-shadow: var(--shadow-sm);
  padding: clamp(1.7rem, 4vw, 2.5rem);
}

.detail-card h2 {
  margin: 1rem 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.detail-card p {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.detail-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-card li {
  position: relative;
  padding-left: 1.45rem;
  color: #ded8cf;
  font-size: 0.92rem;
}

.detail-card li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  border: 1px solid var(--gold);
  content: "";
}

/* ==================================================================== WORK */
.full-case {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.3rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(217, 168, 79, 0.11), transparent 25rem),
    linear-gradient(150deg, #15181d, #0a0c0f);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4.5vw, 3.25rem);
}

.full-case .media-frame {
  aspect-ratio: 1.9 / 1;
}

.full-case .media-frame img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: 1rem;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-gallery .media-frame {
  aspect-ratio: 1.65 / 1;
}

.case-gallery .media-frame img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ================================================== PRICING — BUILD PACKAGES */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.1rem;
}

.pkg-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.95), rgba(9, 11, 14, 0.95));
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 2.8vw, 2.2rem);
}

/* Managed emphasis: brighter border + restrained glow + background only.
   No negative lift, no "Most Popular" claim. */
.pkg-card.emphasis {
  border-color: rgba(244, 215, 156, 0.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 168, 79, 0.14), transparent 18rem),
    linear-gradient(150deg, #1a1916, #0c0e11);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(217, 168, 79, 0.1) inset;
}

.pkg-name {
  color: #fff7ea;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.pkg-tagline {
  margin: 0.2rem 0 0.9rem;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
}

.pkg-price {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pkg-price small {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pkg-commit {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pkg-commit strong {
  color: #fbe9c6;
}

.pkg-intro {
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pkg-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pkg-card li {
  position: relative;
  padding-left: 1.45rem;
  color: #ded8cf;
  font-size: 0.9rem;
}

.pkg-card li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  border: 1px solid var(--gold);
  content: "";
}

.pkg-note {
  margin: 0 0 1.25rem;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pkg-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Managed vs ownership explainer */
.two-option {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.option-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.9), rgba(9, 11, 14, 0.9));
  padding: clamp(1.6rem, 3vw, 2.3rem);
}

.option-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================ COMPARISON (table + mobile cards) */
.cmp-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cmp-table caption {
  text-align: left;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp-table thead th {
  background: rgba(255, 255, 255, 0.03);
  color: #fff7ea;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.cmp-table tbody th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.cmp-table td {
  color: #e2dbd0;
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}

.cmp-table .emphasis-col {
  background: rgba(217, 168, 79, 0.06);
}

/* Mobile stacked comparison cards */
.cmp-cards {
  display: none;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cmp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.92), rgba(9, 11, 14, 0.92));
  overflow: hidden;
}

.cmp-card > h3 {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  color: #fff7ea;
}

.cmp-card dl {
  margin: 0;
  padding: 0.4rem 1.1rem 0.9rem;
}

.cmp-card .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.cmp-card .row:last-child {
  border-bottom: 0;
}

.cmp-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cmp-card dd {
  margin: 0;
  color: #e6ded3;
  font-size: 0.88rem;
  text-align: right;
}

/* ======================================================= CARE PLAN SECTION */
.care-section {
  border-top: 1px solid var(--line-strong);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.care-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(18, 21, 26, 0.95), rgba(9, 11, 14, 0.95));
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 2.8vw, 2.2rem);
}

.care-card .pkg-price {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.care-note {
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.82rem;
}

/* ================================================================ ACCORDION */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: #fbf3e6;
  padding: 1.1rem 1.2rem;
  font-size: 1rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.faq-q .faq-icon {
  flex: 0 0 auto;
  color: var(--gold-bright);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-a p {
  margin: 0;
}

/* Progressive enhancement: only collapse when JS is active. */
.js .faq-a {
  display: none;
}

.js .faq-item.open .faq-a {
  display: block;
}

/* ============================================================ ABOUT / CONTACT */
.about-grid {
  align-items: start;
}

.about-grid > div:first-child p {
  max-width: 62ch;
}

.principles,
.contact-steps {
  display: grid;
  gap: 0.8rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.contact-main {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.contact-main h2 {
  margin-bottom: 1rem;
}

.contact-main > p {
  max-width: 56ch;
}

.contact-main .btn {
  margin-block: 0.65rem 1rem;
}

.contact-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-hero > .container {
  max-width: 1180px;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.contact-channel {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, translate 0.2s ease;
}

.contact-channel:hover {
  border-color: rgba(244, 215, 156, 0.72);
  background: rgba(217, 168, 79, 0.09);
  translate: 0 -2px;
}

.contact-channel-primary {
  border-color: rgba(244, 215, 156, 0.58);
  background: linear-gradient(145deg, rgba(217, 168, 79, 0.16), rgba(217, 168, 79, 0.05));
}

.contact-channel strong {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-channel span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.74rem;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.contact-form-intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.contact-form-intro > p:not(.eyebrow) {
  max-width: 52ch;
  color: var(--muted);
}

.contact-form-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.contact-form-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d0c5;
  padding: 0.42rem 0.65rem;
  font-size: 0.7rem;
}

#enquiry-form {
  scroll-margin-top: var(--header-height);
}

.project-enquiry-form {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: radial-gradient(circle at 100% 0%, rgba(217, 168, 79, 0.1), transparent 22rem), var(--surface);
  padding: clamp(1.2rem, 3.5vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-enquiry-form label:not(.privacy-check) {
  display: grid;
  gap: 0.5rem;
}

.project-enquiry-form label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.project-enquiry-form label em {
  color: var(--faint);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-full {
  margin-top: 0.2rem;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.55;
}

.privacy-check input {
  width: 1.2rem;
  min-width: 1.2rem;
  min-height: 1.2rem;
  margin-top: 0.1rem;
  accent-color: var(--gold);
}

.privacy-check span {
  display: block;
}

.privacy-check a,
.thanks-contact-links a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-enquiry-form > .btn {
  justify-self: start;
}

.form-note {
  max-width: 66ch;
  margin: 0;
  color: var(--faint);
  font-size: 0.72rem;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.enquiry-thanks h1 {
  max-width: 15ch;
}

.thanks-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
}

/* ==================================================================== CTA */
.final-cta {
  overflow: hidden;
  border-top: 1px solid rgba(238, 208, 153, 0.12);
  background:
    radial-gradient(circle at 50% 120%, rgba(217, 168, 79, 0.16), transparent 36rem),
    radial-gradient(circle at 90% 0%, rgba(43, 140, 255, 0.08), transparent 25rem),
    linear-gradient(155deg, #0d1015, #070809 70%);
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.final-cta .eyebrow {
  justify-content: center;
}

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

.final-cta-content h2 + .hero-actions {
  margin-top: 2rem;
}

.final-cta-content > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 1.2rem auto 1.75rem;
}

.final-cta .hero-actions {
  justify-content: center;
}

.cta-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 860px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 168, 79, 0.08), transparent 65%);
  pointer-events: none;
}

/* ================================================================= FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050607;
}

.footer-top {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
}

.footer-brand .brand-logo {
  width: min(250px, 45vw);
  max-height: 56px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.35rem;
  color: #bfb8af;
  font-size: 0.82rem;
  font-weight: 650;
}

.footer-legal {
  border-top: 1px solid rgba(238, 208, 153, 0.10);
  color: var(--faint);
  font-size: 0.78rem;
  padding-block: 1rem;
}

.footer-bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(238, 208, 153, 0.10);
  color: #8a847b;
  font-size: 0.75rem;
}

.footer-bottom a {
  color: #cfc7bc;
  white-space: nowrap;
}

/* ============================================================ MOBILE WHATSAPP */
.mobile-whatsapp {
  display: none;
}

/* ===================================================================== FORMS */
form {
  display: grid;
  gap: 1rem;
}

label {
  color: #ece4d9;
  font-size: 0.86rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(238, 208, 153, 0.22);
  border-radius: var(--radius-sm);
  background: #0d1014;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7e776e;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-bright);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(217, 168, 79, 0.11);
}

/* ========================================================== STEP 4B PAGES */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card,
.process-grid > article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.94), rgba(9, 11, 14, 0.94));
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.15rem);
}

.capability-card::before,
.process-grid > article::before {
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  content: "";
}

.capability-card > span,
.process-grid span,
.service-number,
.feature-index,
.selector-group > div:first-child span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.capability-card h3,
.process-grid h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.16;
}

.capability-card > p,
.process-grid p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.capability-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-card li {
  position: relative;
  padding-left: 1.25rem;
  color: #e2dbd1;
  font-size: 0.9rem;
}

.capability-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  rotate: 45deg;
  border: 1px solid var(--gold);
  content: "";
}

.capability-card small,
.service-boundary,
.third-party-note {
  display: block;
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.55;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.service-row.reverse .service-copy {
  order: 2;
}

.service-copy h3 {
  margin: 0.65rem 0 0.9rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.08;
}

.service-copy > p:not(.service-number, .service-boundary) {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.service-visual {
  min-width: 0;
  aspect-ratio: 1.65 / 1;
}

.proof-label,
.demo-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.proof-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  border: 1px solid rgba(161, 245, 198, 0.45);
  background: rgba(5, 14, 11, 0.9);
  color: #baf5d3;
  padding: 0.45rem 0.65rem;
  backdrop-filter: blur(8px);
}

.demo-ui {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8dde5;
  border-radius: var(--radius);
  background: #f6f8fb;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  color: #17202c;
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.demo-ui .demo-label {
  margin-bottom: 1rem;
  border: 1px solid #c8d0dc;
  background: #e8edf4;
  color: #33445a;
  padding: 0.36rem 0.55rem;
}

.search-demo {
  display: grid;
  gap: 0.5rem;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.search-demo > span {
  color: #657286;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.search-demo strong {
  color: #1557a2;
  font-size: 1rem;
}

.search-demo p {
  margin: 0;
  color: #4e5c6d;
  font-size: 0.82rem;
}

.search-demo > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.search-demo b {
  border-radius: 7px;
  background: #e9f0f9;
  color: #355274;
  padding: 0.35rem 0.5rem;
  font-size: 0.67rem;
}

.chart-demo {
  display: grid;
  min-height: 100%;
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #17202c;
}

.chart-title small {
  color: #6b7788;
}

.chart-bars {
  display: flex;
  min-height: 150px;
  align-items: end;
  gap: 0.6rem;
  margin-top: 1.2rem;
  border-bottom: 1px solid #c7d0dc;
  padding-inline: 0.35rem;
}

.chart-bars i {
  width: 100%;
  height: var(--bar);
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #4b86c6, #315f91);
}

.flow-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

.flow-demo b {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid #ccd4df;
  border-radius: 12px;
  background: #fff;
  color: #27364a;
  padding: 0.7rem;
  text-align: center;
  font-size: 0.78rem;
}

.flow-demo span {
  color: #6080a5;
  font-weight: 850;
}

.status-demo {
  display: grid;
  gap: 0.65rem;
}

.status-demo > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #d3dae4;
  border-radius: 10px;
  background: #fff;
  padding: 0.8rem;
}

.status-demo i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2aab6f;
  box-shadow: 0 0 0 4px rgba(42, 171, 111, 0.12);
}

.status-demo span {
  color: #46566a;
  font-size: 0.78rem;
}

.status-demo b {
  color: #176d49;
  font-size: 0.72rem;
}

.integration-strip,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.integration-strip > div {
  display: grid;
  min-height: 112px;
  place-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem;
  text-align: center;
}

.integration-strip span {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 850;
}

.integration-strip strong {
  color: #eee7dc;
  font-size: 0.9rem;
}

.case-device-grid {
  position: relative;
  min-width: 0;
  padding: 0 2.6rem 2.8rem 0;
}

.case-device-grid .media-frame {
  margin: 0;
}

.case-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: clamp(105px, 24%, 158px);
  overflow: hidden;
  margin: 0;
  border: 5px solid #20242a;
  border-radius: 22px;
  background: #050607;
  box-shadow: var(--shadow);
}

.case-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.case-phone .proof-label {
  position: static;
  display: flex;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0.25rem;
  text-align: center;
}

.future-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px dashed rgba(238, 208, 153, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
}

.future-note .eyebrow,
.future-note p {
  margin: 0;
}

.future-note > p:last-child {
  color: var(--muted);
}

.founder-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.founder-block p:not(.eyebrow) {
  color: #c9d2de;
}

.warm-statement {
  border-block: 1px solid rgba(120, 96, 52, 0.4);
  background: linear-gradient(150deg, var(--warm), var(--warm-soft));
  color: var(--warm-ink);
  text-align: center;
}

.warm-statement .container {
  max-width: 900px;
}

.warm-statement .eyebrow {
  justify-content: center;
  color: #765018;
}

.warm-statement h2 {
  max-width: 20ch;
  margin-inline: auto;
  color: var(--warm-ink);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
}

.warm-statement p:not(.eyebrow) {
  max-width: 60ch;
  margin: 1.2rem auto 0;
  color: var(--warm-muted);
}

/* ========================================================== FEATURES LAB */
.feature-filter-section {
  position: sticky;
  top: var(--header-height);
  z-index: 70;
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.filter-title {
  margin: 0 0 0.15rem;
  color: #fff4e2;
  font-weight: 800;
}

.filter-row > div:first-child > p:last-child {
  margin: 0;
  color: var(--faint);
  font-size: 0.76rem;
}

.filter-chips,
.scope-tags,
.selector-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-chip,
.selector-options button,
.shortlist-toggle,
.shortlist-clear,
.demo-action,
.step-actions button,
.demo-choice-row button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #e9e1d6;
  padding: 0.65rem 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active,
.filter-chip[aria-pressed="true"],
.selector-options button[aria-pressed="true"],
.shortlist-toggle[aria-pressed="true"] {
  border-color: rgba(244, 215, 156, 0.72);
  background: rgba(217, 168, 79, 0.14);
  color: #fff2d9;
}

.feature-lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.feature-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 23, 28, 0.96), rgba(9, 11, 14, 0.96));
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 2.4vw, 1.65rem);
}

.feature-card.is-filtered {
  display: none;
}

.feature-card > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
}

.feature-index {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(217, 168, 79, 0.07);
}

.feature-card h3 {
  font-size: 1.25rem;
  line-height: 1.18;
}

.feature-card header p,
.feature-suits,
.third-party-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.feature-suits strong {
  color: #eee5d9;
}

.feature-card .demo-ui {
  min-height: 235px;
}

.scope-tags {
  margin-top: auto;
}

.scope-tags span {
  border: 1px solid rgba(238, 208, 153, 0.2);
  border-radius: 999px;
  background: rgba(217, 168, 79, 0.07);
  color: #ddceb3;
  padding: 0.35rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 750;
}

.shortlist-toggle {
  width: 100%;
  border-radius: var(--radius-sm);
}

.neutral-demo label {
  color: #334155;
  font-size: 0.75rem;
}

.neutral-demo input,
.neutral-demo select {
  min-height: 44px;
  border-color: #c8d1dd;
  background: #fff;
  color: #1e293b;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
}

.quote-demo {
  display: grid;
  gap: 0.55rem;
}

.demo-action,
.step-actions button,
.demo-choice-row button {
  min-height: 44px;
  border-color: #b9c6d6;
  border-radius: 9px;
  background: #e8eef6;
  color: #27405f;
  padding: 0.55rem 0.75rem;
  font-size: 0.76rem;
}

.demo-action {
  background: #315f91;
  color: #fff;
}

.demo-feedback {
  min-height: 1.2em;
  margin: 0;
  color: #315f91;
  font-size: 0.72rem;
}

.step-demo section {
  padding-block: 0.4rem;
}

.step-demo.step-enhanced section[data-step] {
  display: none;
}

.step-demo.step-enhanced section[data-step].is-active {
  display: block;
}

.step-demo small {
  color: #65758a;
  font-weight: 800;
}

.step-demo h4 {
  margin: 0.4rem 0 0.8rem;
  color: #1f2c3d;
  font-size: 1rem;
}

.step-demo section p {
  color: #526174;
  font-size: 0.8rem;
}

.step-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.step-progress i {
  height: 4px;
  border-radius: 99px;
  background: #d9e0e9;
}

.step-progress i.active {
  background: #4779ad;
}

.demo-choice-row,
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.mini-phone-demo {
  padding-bottom: 1rem;
}

.mini-phone-scroll {
  position: relative;
  height: 170px;
  overflow-y: auto;
  border: 5px solid #253142;
  border-radius: 18px;
  background: #fff;
  padding: 0.8rem;
  scrollbar-width: thin;
}

.mini-phone-scroll > p {
  color: #34445a;
  font-size: 0.75rem;
  font-weight: 800;
}

.mini-phone-scroll > div {
  height: 36px;
  margin-bottom: 0.55rem;
  border-radius: 7px;
  background: #e9eef4;
}

.mini-phone-scroll aside {
  position: sticky;
  bottom: -0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.5rem 0;
}

.mini-phone-scroll .demo-contact-chip {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #315f91;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.review-demo strong,
.review-demo p,
.map-demo strong,
.map-demo p {
  display: block;
  color: #26374c;
}

.review-demo p,
.map-demo p {
  margin: 0.45rem 0 0;
  color: #5d6b7d;
  font-size: 0.77rem;
}

.stars {
  margin-bottom: 0.65rem;
  color: #e49f24;
  letter-spacing: 0.1em;
}

.compare-stage {
  position: relative;
  height: 145px;
  overflow: hidden;
  border-radius: 10px;
  background: #d9e1ea;
}

.compare-before,
.compare-after {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #334155;
}

.compare-before {
  background: linear-gradient(135deg, #d5dae1, #aeb8c5);
}

.compare-after {
  width: var(--compare);
  overflow: hidden;
  background: linear-gradient(135deg, #b7dce0, #73aeb7);
  color: #173d43;
}

.compare-before span,
.compare-after span {
  display: block;
  width: 110px;
  height: 55px;
  margin-top: 0.5rem;
  border: 2px solid currentColor;
  border-radius: 12px;
  opacity: 0.35;
}

.compare-stage > i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  width: 3px;
  translate: -50% 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 32, 44, 0.25);
}

.compare-demo label {
  display: block;
  margin: 0.65rem 0 0.25rem;
}

.compare-demo input[type="range"] {
  min-height: 44px;
  padding: 0;
}

/* ======================================================== LEGAL + 404 */
.legal-updated {
  margin-top: 1.25rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.legal-summary {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.legal-summary h2 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.legal-summary p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-summary p:last-child {
  margin-bottom: 0;
}

.legal-copy {
  display: grid;
  gap: 2.5rem;
}

.legal-copy section {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-copy section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.legal-copy ul {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.legal-copy a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.not-found {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  background: radial-gradient(circle at 75% 25%, rgba(217, 168, 79, 0.13), transparent 28rem), var(--bg);
}

.not-found .container {
  max-width: 780px;
}

.not-found h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.not-found p:not(.eyebrow) {
  max-width: 55ch;
  color: var(--muted);
}

@media (max-width: 768px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal-summary {
    position: static;
  }
}

.map-grid {
  position: relative;
  display: grid;
  height: 130px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: #dfe8e4;
}

.map-grid::before,
.map-grid::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(35deg, transparent 0 24px, rgba(88, 114, 132, 0.18) 25px 27px, transparent 28px 48px);
  content: "";
}

.map-grid b {
  position: absolute;
  top: 50%;
  left: 52%;
  z-index: 2;
  width: 52px;
  height: 52px;
  translate: -50% -50%;
  border: 2px solid #3f83a8;
  border-radius: 50%;
  background: rgba(63, 131, 168, 0.2);
}

.payment-demo > div {
  display: grid;
  gap: 0.3rem;
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
}

.payment-demo > div span {
  color: #68778b;
  font-size: 0.72rem;
}

.payment-demo > div strong {
  color: #26374b;
}

.payment-demo > button {
  width: 100%;
  min-height: 44px;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 9px;
  background: #9aabba;
  color: #fff;
  font-weight: 800;
}

.faq-demo .faq-q {
  color: #26374b;
  font-size: 0.78rem;
}

.faq-demo .faq-a {
  color: #5b6979;
  font-size: 0.76rem;
}

.faq-demo .faq-item {
  border-color: #d3dae4;
  background: #fff;
}

.shortlist-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 96;
  display: flex;
  width: min(calc(100% - 2rem), 920px);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
  border: 1px solid rgba(244, 215, 156, 0.55);
  border-radius: var(--radius);
  background: rgba(10, 12, 15, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 0.75rem;
  backdrop-filter: blur(16px);
}

.shortlist-bar[hidden] {
  display: none;
}

.shortlist-copy {
  display: grid;
  gap: 0.2rem;
}

.shortlist-copy strong {
  color: #fff1d6;
}

.shortlist-copy span:last-child {
  max-width: 52ch;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortlist-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shortlist-clear {
  border-radius: var(--radius-sm);
}

body.shortlist-visible {
  padding-bottom: 110px;
}

/* ====================================================== CONTACT SELECTOR */
.contact-builder,
.selector-group {
  display: grid;
  gap: 1rem;
}

.selector-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.6rem;
}

.selector-group > div:first-child {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

.selector-group > div:first-child span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.selector-group h3 {
  font-size: 1.25rem;
}

.selector-options button {
  min-height: 48px;
  text-align: left;
}

.contact-summary {
  border: 1px solid rgba(244, 215, 156, 0.35);
  border-radius: var(--radius);
  background: radial-gradient(circle at 100% 0%, rgba(217, 168, 79, 0.13), transparent 18rem), rgba(255, 255, 255, 0.025);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.contact-summary > p:not(.eyebrow) {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.contact-summary .btn {
  width: 100%;
}

/* =============================================================== PLACEHOLDER */
.placeholder-note {
  max-width: 720px;
  margin: 0 auto;
  border: 1px dashed rgba(238, 208, 153, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.placeholder-note h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.placeholder-note p {
  color: var(--muted);
  margin: 0 auto 0.75rem;
  max-width: 56ch;
}

/* ====================================== SHARED FIGURE / FALLBACK COMPONENTS */
.soft-section {
  border-block: 1px solid rgba(238, 208, 153, 0.10);
  background:
    radial-gradient(circle at 90% 0%, rgba(43, 140, 255, 0.08), transparent 25rem),
    linear-gradient(180deg, #0b0d10, #090a0c);
}

.case-copy > p:not(.case-label) {
  color: var(--muted);
  margin: 1.15rem 0 1.45rem;
}

.full-case > figure,
.case-gallery > figure,
.callout-grid > figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(238, 208, 153, 0.2);
  border-radius: var(--radius);
  background: #050607;
  box-shadow: var(--shadow-sm);
}

.full-case > figure {
  aspect-ratio: 1.9 / 1;
}

.case-gallery > figure {
  aspect-ratio: 1.65 / 1;
}

.full-case > figure img,
.case-gallery > figure img,
.callout-grid > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #f9f1e5;
  padding: 2.6rem 1rem 0.85rem;
  font-size: 0.77rem;
  font-weight: 750;
}

/* ============================================================ REVEAL MOTION */
/* Content is fully visible by default. JS opts in to motion by adding
   .motion-enabled to <body>; heroes/first cards are never given .reveal. */
.reveal {
  opacity: 1;
  transform: none;
}

body.motion-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.motion-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.06s !important;
}

.reveal-delay-2 {
  transition-delay: 0.12s !important;
}

/* ======================================================= RESPONSIVE: <=1024 */
@media (max-width: 1024px) {
  :root {
    --header-height: 66px;
  }

  /* Navigation collapses to hamburger at 1024px and below */
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .nav-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 103;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-content: center;
    gap: 7px;
    border: 1px solid rgba(238, 208, 153, 0.34);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    border-radius: 99px;
    background: #f4ddaf;
    transition: transform 0.25s ease, translate 0.25s ease;
  }

  .menu-toggle.active span:first-child {
    translate: 0 4.25px;
    rotate: 45deg;
  }

  .menu-toggle.active span:last-child {
    translate: 0 -4.25px;
    rotate: -45deg;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 101;
    display: flex;
    /* backdrop-filter on the sticky header can make it the containing block
       for fixed descendants on mobile browsers. An explicit viewport height
       prevents the menu being squeezed into the header's remaining height. */
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    visibility: hidden;
    background:
      radial-gradient(circle at 85% 5%, rgba(217, 168, 79, 0.13), transparent 20rem),
      radial-gradient(circle at 5% 25%, rgba(43, 140, 255, 0.08), transparent 22rem),
      rgba(6, 7, 9, 0.985);
    opacity: 0;
    padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateY(-10px);
    /* Closing only: keep the panel visible (so it can fade out) until the
       opacity/transform transition finishes, then hide it. */
    transition: visibility 0.3s, opacity 0.3s ease, transform 0.3s ease;
    overscroll-behavior: contain;
  }

  .mobile-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    /* Opening: visibility switches immediately (no delay), so the panel is
       focusable as soon as the .open class is applied — it does not wait
       for the fade-in transition to finish. */
    transition: visibility 0s, opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-nav > a:not(.btn) {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(238, 208, 153, 0.13);
    color: #eee7dd;
    padding-inline: 0.45rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .mobile-nav > a:not(.btn)::after {
    color: var(--gold);
    content: "\2192";
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
  }

  .mobile-nav > a[aria-current="page"]:not(.btn) {
    color: var(--gold-bright);
  }

  .mobile-nav .btn {
    width: 100%;
    min-height: 58px;
    margin-top: 1.15rem;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  /* Packages 3 -> 2 columns (641-1024px). The third/final card centres on
     its own row at one-column width — never full-width, never left-aligned. */
  .pkg-grid,
  .feature-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-lab-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pkg-grid > :nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.1rem) / 2);
    margin-inline: auto;
  }

  /* Persistent mobile WhatsApp bar */
  .mobile-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 1rem;
    z-index: 90;
    display: flex;
    width: min(calc(100% - 2rem), 370px);
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-inline: auto;
    border: 1px solid rgba(255, 238, 198, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, #f4d99d 0%, #d5a349 49%, #9b641f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 7px 0 rgba(72, 41, 13, 0.34), 0 19px 42px rgba(0, 0, 0, 0.48);
    color: #160f06;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1;
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(100% + 2rem));
    transition: visibility 0.3s, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  }

  body.mobile-cta-visible:not(.menu-open) .mobile-whatsapp {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-whatsapp:active {
    translate: 0 2px;
  }

  .shortlist-bar {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }

  body.shortlist-visible {
    padding-bottom: calc(188px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 1024px) {
  .contact-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ======================================================== RESPONSIVE: <=900 */
@media (max-width: 900px) {
  .hero-grid,
  .split-feature,
  .two-col,
  .callout-grid,
  .callout-grid.reverse,
  .intro-row,
  .full-case,
  .contact-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .callout-grid .media-frame,
  .full-case .media-frame {
    order: -1;
  }

  .hero {
    padding-block: 2.5rem 3.25rem;
  }

  .hero-copy {
    max-width: 680px;
  }

  .device-stack {
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .contact-main {
    position: static;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-intro {
    position: static;
  }

  .two-option {
    grid-template-columns: 1fr;
  }

  .service-row,
  .service-row.reverse,
  .founder-block {
    grid-template-columns: 1fr;
  }

  .service-row.reverse .service-copy {
    order: initial;
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ======================================================== RESPONSIVE: <=768 */
@media (max-width: 768px) {
  :root {
    --section-space: clamp(3.25rem, 9vw, 4.25rem);
  }

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

  .value-grid > div,
  .value-grid > div:first-child {
    border-left: 0;
    padding: 0.95rem;
  }

  .value-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .value-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .quick-process,
  .work-metrics,
  .case-gallery,
  .service-detail-grid,
  .care-grid {
    grid-template-columns: 1fr;
  }

  /* Comparison: hide the table, show accessible stacked cards */
  .cmp-table-wrap {
    display: none;
  }

  .cmp-cards {
    display: grid;
  }

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

  .future-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ======================================================== RESPONSIVE: <=640
   Package and feature-teaser grids drop to one column here (not 768px), so
   the approved two-column tablet layout runs the full 641-1024px range. */
@media (max-width: 640px) {
  .pkg-grid,
  .feature-teaser-grid {
    grid-template-columns: 1fr;
  }

  /* Reset the tablet centring/width treatment — a single column needs no
     special final-card positioning. */
  .pkg-grid > :nth-child(3):last-child {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  .capability-grid,
  .feature-lab-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .feature-filter-section {
    position: static;
  }

  .filter-chips {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 auto;
  }
}

/* ======================================================== RESPONSIVE: <=520 */
@media (max-width: 520px) {
  :root {
    --section-space: clamp(3rem, 11vw, 3.75rem);
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-actions .btn,
  .final-cta .hero-actions .btn,
  .contact-main .btn,
  .page-hero .btn {
    width: 100%;
    min-width: 0;
  }

  .contact-channel-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-channel {
    min-height: 88px;
  }

  .project-enquiry-form > .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 0.5rem;
  }

  .hero-trust > div {
    padding-left: 0.6rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    padding-block: 2rem;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.8rem 1.2rem;
  }

  .footer-bottom {
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding-block: 1rem;
  }

  .frame-phone {
    width: clamp(84px, 26%, 120px);
    bottom: -18px;
  }

  .integration-strip {
    grid-template-columns: 1fr;
  }

  .flow-demo {
    grid-template-columns: 1fr;
  }

  .flow-demo > span {
    rotate: 90deg;
    text-align: center;
  }

  .case-device-grid {
    padding: 0 1.3rem 2rem 0;
  }

  .case-phone {
    width: 104px;
  }

  .shortlist-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .shortlist-actions {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .shortlist-actions .btn {
    min-width: 0;
  }

  body.shortlist-visible {
    padding-bottom: calc(260px + env(safe-area-inset-bottom));
  }
}

/* ======================================================== RESPONSIVE: <=360 */
@media (max-width: 360px) {
  :root {
    --header-height: 60px;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand-logo {
    width: min(166px, 58vw);
    max-height: 34px;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-grid > div,
  .value-grid > div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-grid > div:last-child {
    border-bottom: 0;
  }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  body.motion-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Landscape phones: keep menu usable, drop the fixed CTA */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  body {
    padding-bottom: 0;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    column-gap: 1rem;
  }

  .mobile-nav .btn {
    grid-column: 1 / -1;
  }

.mobile-whatsapp {
    display: none;
  }
}

/* Free website check lead magnet */
.lead-magnet-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 168, 79, 0.13), transparent 22rem),
    var(--bg-navy);
}

.lead-magnet-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(21, 25, 31, 0.98), rgba(7, 17, 31, 0.96));
  box-shadow: var(--shadow-gold);
}

.lead-magnet-copy h2 {
  max-width: 18ch;
  margin: 0.8rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.lead-magnet-copy > p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
}

.lead-magnet-points {
  display: grid;
  gap: 0.7rem;
}

.lead-magnet-points div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.lead-magnet-points span {
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lead-magnet-points strong {
  color: var(--text);
  font-size: 0.98rem;
}

@media (max-width: 840px) {
  .lead-magnet-card {
    grid-template-columns: 1fr;
  }
}
