/* ============================================================
   PERSPECTIVE SOLUTIONS — DESIGN TOKENS + GLOBAL STYLES
   ============================================================ */

:root {
  /* Brand */
  --orange:       #FF8C42;
  --orange-deep: #E76A1F;
  --orange-soft: #FFE2CE;
  --orange-tint: #FFF4EC;

  --navy:        #001F5C;
  --navy-700:    #102F73;
  --navy-500:    #3B4E85;
  --navy-300:    #8C97B5;
  --navy-tint:   #EEF1F8;

  /* Neutrals */
  --ink:         #0B1224;
  --ink-700:     #2A3145;
  --ink-500:     #5B6378;
  --ink-400:     #8A91A4;
  --line:        #E5E7EE;
  --line-soft:   #EFF1F6;
  --bg:          #FFFFFF;
  --bg-soft:     #F7F8FB;
  --bg-warm:     #FBF8F4;

  /* Type */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, sans-serif;

  /* Radii — tweak-controlled at .app root */
  --r-card: 14px;
  --r-btn:  10px;
  --r-pill: 999px;

  /* Shadow — tweak-controlled at .app root */
  --card-shadow: 0 1px 2px rgba(11, 18, 36, 0.04), 0 8px 24px -12px rgba(11, 18, 36, 0.10);
  --card-shadow-hover: 0 2px 4px rgba(11, 18, 36, 0.06), 0 18px 40px -18px rgba(11, 18, 36, 0.18);

  /* Layout */
  --container:   1240px;
  --gutter:      32px;
  --section-y:   clamp(52px, 6vw, 88px);
}

/* Card-style tweaks (applied via [data-cards="..."] on .app) */
[data-cards="sharp"] {
  --r-card: 0px;
  --r-btn:  2px;
  --card-shadow: 0 0 0 1px var(--line);
  --card-shadow-hover: 0 0 0 1px var(--ink-700);
}
[data-cards="rounded"] {
  --r-card: 18px;
  --r-btn:  12px;
  --card-shadow: 0 0 0 1px var(--line);
  --card-shadow-hover: 0 0 0 1px var(--navy-300);
}
[data-cards="shadowed"] {
  --r-card: 18px;
  --r-btn:  12px;
  --card-shadow: 0 1px 2px rgba(11, 18, 36, 0.05), 0 12px 30px -14px rgba(11, 18, 36, 0.18);
  --card-shadow-hover: 0 2px 6px rgba(11, 18, 36, 0.08), 0 28px 50px -20px rgba(11, 18, 36, 0.28);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * 0.65) 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--navy {
  background: var(--navy);
  color: #DCE3F0;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--orange); }
/* Clickable eyebrow (links to detail page) */
a.eyebrow--link { text-decoration: none; transition: color .15s ease; }
a.eyebrow--link:hover { color: var(--navy); }

h1, .h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
}
h2, .h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
}
h3, .h3 {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 600;
  line-height: 1.25;
}
.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 56ch;
}
.section--navy .lede { color: #B7C2DB; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(231, 106, 31, 0.6);
}
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--white {
  background: #fff;
  color: var(--navy);
}
.btn--white:hover { background: var(--orange); color: #fff; }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-header__logo img {
  height: 60px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-700);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--orange);
  width: 22px;
  margin: 4px auto 0;
  border-radius: 2px;
}
.site-header__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .site-nav, .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open + .mobile-nav { display: block; }
}
.mobile-nav {
  display: none;
  padding: 12px var(--gutter) 24px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
}
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #B7C2DB;
  padding: 80px 0 36px;
  margin-top: 40px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand img {
  height: 56px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-brand p { color: #B7C2DB; max-width: 36ch; font-size: 14px; }
.footer-col a {
  display: block;
  padding: 6px 0;
  color: #B7C2DB;
  font-size: 14px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--orange); }
.footer-contact a, .footer-contact span {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.footer-contact svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8A95B0;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ============================================================
   HERO — layered isometric frames
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 110px) 0 clamp(72px, 9vw, 120px);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__content { max-width: 620px; }
.hero__content .eyebrow { margin-bottom: 22px; }
.hero__content h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero__content .lede { margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__stats .stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.hero__stats .stat-lbl {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 6px;
}

/* Animated isometric capture stack — echoes the logo */
.iso-scene {
  position: relative;
  max-width: 600px;
  margin-left: auto;
}
.iso-scene svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.lyr-a { animation: isoFloat 6s ease-in-out infinite; }
.lyr-b { animation: isoFloat 6s ease-in-out infinite .5s; }
.lyr-c { animation: isoFloat 7s ease-in-out infinite 1s; }
@keyframes isoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.pc { animation: pcPulse 3s ease-in-out infinite; }
.pc-cloud .pc:nth-child(2n)  { animation-delay: .4s; }
.pc-cloud .pc:nth-child(3n)  { animation-delay: .9s; }
.pc-cloud .pc:nth-child(4n)  { animation-delay: 1.4s; }
@keyframes pcPulse {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}
.scan-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: scanRing 3.5s ease-out infinite;
}
@keyframes scanRing {
  0%   { opacity: .7; transform: scale(.25); }
  80%  { opacity: 0;  transform: scale(1); }
  100% { opacity: 0;  transform: scale(1); }
}
.scan-ring--2 { animation-delay: 1.75s; }
.scan-sweep {
  transform-box: fill-box;
  transform-origin: center;
  animation: scanSweep 3.4s ease-in-out infinite;
}
@keyframes scanSweep {
  0%   { transform: translateY(20px);  opacity: 0; }
  15%  { opacity: .7; }
  50%  { transform: translateY(-26px); opacity: .7; }
  85%  { opacity: 0; }
  100% { transform: translateY(20px);  opacity: 0; }
}
.beam  { animation: dashFlow 1.4s linear infinite; }
.orbit { animation: dashFlow 4s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -22; } }
.pkt {
  transform-box: view-box;
  animation: pktFall 3.3s cubic-bezier(.55,0,.45,1) infinite;
}
.pkt--2 { animation-delay: 1.1s; }
.pkt--3 { animation-delay: 2.2s; }
@keyframes pktFall {
  0%   { transform: translate(300px, 110px); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate(300px, 466px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lyr-a, .lyr-b, .lyr-c, .pc, .scan-ring, .scan-sweep,
  .beam, .orbit, .pkt, .drone, .node-pulse { animation: none; }
  .pkt { transform: translate(300px, 288px); opacity: .6; }
  .node-pulse { display: none; }
}
.node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.9s ease-out infinite;
}
.node-pulse--2 { animation-delay: .95s; }
.node-pulse--3 { animation-delay: 1.9s; }
@keyframes nodePulse {
  0%   { opacity: .55; transform: scale(.35); }
  70%  { opacity: 0;   transform: scale(1.5); }
  100% { opacity: 0;   transform: scale(1.5); }
}

/* Interactive stack — layers are clickable shortcuts into each service */
.lyr--link { cursor: pointer; }
.lyr--link .top-face {
  transition: stroke .2s ease, stroke-width .2s ease;
}
.lyr--link:hover .top-face,
.lyr--link:focus-visible .top-face {
  stroke: var(--orange);
  stroke-width: 3;
}
.lyr--link:focus { outline: none; }
.iso-scene__hint {
  text-align: right;
  margin: 14px 8px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.iso-scene__hint svg { width: 14px; height: 14px; color: var(--orange); }
@media (max-width: 900px) {
  .iso-scene__hint { justify-content: center; text-align: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Scan-on-hover for portfolio / bento cards ---------- */
.case-card__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.case-card__scan::before {
  /* point-cloud dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--orange) 1.3px, transparent 1.6px);
  background-size: 20px 20px;
  opacity: 0.5;
  mix-blend-mode: screen;
}
.case-card__scan::after {
  /* sweeping scan line */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 66, 0.55), transparent);
  box-shadow: 0 0 24px 4px rgba(255, 140, 66, 0.4);
  animation: scanSweep 2.4s ease-in-out infinite;
}
.case-card:hover .case-card__scan { opacity: 1; }
@keyframes scanSweep {
  0%   { top: -28%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .case-card__scan::after { animation: none; display: none; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .iso-scene { max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   ISOMETRIC PATTERN (toggleable via [data-pattern="on"])
   ============================================================ */
.iso-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s ease;
  background-image:
    linear-gradient(115deg, rgba(0, 31, 92, 0.04) 1px, transparent 1px),
    linear-gradient(65deg,  rgba(0, 31, 92, 0.04) 1px, transparent 1px);
  background-size: 64px 36px, 64px 36px;
}
[data-pattern="on"] .iso-pattern { opacity: 1; }
.hero, .section { position: relative; }
.hero > .container, .section > .container { position: relative; z-index: 1; }

/* ============================================================
   SERVICES — 3 core cards
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { max-width: 14ch; }
.section-head .lede { max-self: end; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.service-card__media {
  aspect-ratio: 5 / 3;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.04); }

/* Digital-render visual (for Digital Assets card) */
.service-card__media--digital {
  background: linear-gradient(160deg, #0E1A3A 0%, #001F5C 100%);
  position: relative;
}
.digital-render {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.digital-render svg {
  width: 100%;
  height: 100%;
  display: block;
}
.digital-render::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.digital-render__chips {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.digital-render__chips span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 140, 66, 0.18);
  border: 1px solid rgba(255, 140, 66, 0.45);
  border-radius: 4px;
  padding: 4px 7px;
  backdrop-filter: blur(4px);
}
.digital-render__corner {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}
.digital-render__corner svg {
  width: 13px; height: 13px;
  color: #FF8C42;
}
.service-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.18);
}
.service-card__badge svg { width: 16px; height: 16px; color: var(--orange); }
.service-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.service-card__body p { color: var(--ink-500); font-size: 15px; }
/* Clickable card title */
.card-title-link {
  color: var(--navy);
  text-decoration: none;
  transition: color .15s ease;
}
.card-title-link:hover { color: var(--orange-deep); }
.service-card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card__link:hover { color: var(--navy); }

/* ============================================================
   VALUE PROPS
   ============================================================ */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.value {
  padding: 32px 28px;
  border-left: 3px solid var(--orange);
  background: var(--bg-soft);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.value h3 { color: var(--navy); margin-bottom: 8px; }
.value .num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange-deep);
  margin-bottom: 18px;
  display: block;
}
.value p { color: var(--ink-500); font-size: 15px; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTFOLIO — bento grid
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 20px;
}
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  background: var(--navy);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.case-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.case-card:hover img { transform: scale(1.06); }
.case-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 12, 36, 0.85) 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.case-card__type {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.case-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 4px;
  color: #fff;
}
.case-card__loc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.case-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, margin .35s ease;
  margin-top: 0;
}
.case-card:hover .case-card__desc {
  max-height: 80px;
  margin-top: 10px;
}
.case-card--lg { grid-column: span 4; grid-row: span 2; }
.case-card--md { grid-column: span 2; grid-row: span 2; }
.case-card--sm { grid-column: span 2; grid-row: span 2; }
.case-card--wide { grid-column: span 4; grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .case-card--lg, .case-card--md, .case-card--sm, .case-card--wide { grid-column: span 2; grid-row: span 1; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--orange);
  line-height: 0.8;
  height: 16px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.testimonial__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.testimonial__role { font-size: 12px; color: var(--ink-500); }
.testimonial__placeholder-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 3px 6px;
}
.testimonial { position: relative; }
@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 7vw, 88px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: #B7C2DB; margin-top: 16px; max-width: 50ch; }
.cta-band__ctas {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cta-band__deco {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 400px;
  height: 400px;
  opacity: 0.08;
  pointer-events: none;
}
@media (max-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr; gap: 24px; }
  .cta-band__ctas { justify-content: flex-start; }
}

/* ============================================================
   Page hero (subpages)
   ============================================================ */
.page-hero {
  padding: clamp(56px, 7vw, 100px) 0 clamp(48px, 5vw, 72px);
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}
.page-hero__inner {
  max-width: 760px;
}
.page-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  margin-bottom: 18px;
}
.page-hero .lede { font-size: 18px; }
.page-hero__crumbs {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-hero__crumbs a:hover { color: var(--orange-deep); }
.page-hero__crumbs span { color: var(--ink-400); }

/* ============================================================
   Service detail (services page)
   ============================================================ */.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-row:last-child { border-bottom: 0; }
.service-row--reverse .service-row__media { order: -1; }
.service-row__media {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row__content .eyebrow { margin-bottom: 18px; }
.service-row__content h2 { margin-bottom: 18px; max-width: 16ch; }
.service-row__content p { color: var(--ink-500); font-size: 16px; margin-bottom: 12px; }
.service-row__list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.service-row__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-700);
}
.service-row__list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-row__list .check svg { width: 12px; height: 12px; }
.service-row ul { list-style: none; padding: 0; margin: 0; }
.service-row__cta { margin-top: 32px; }
@media (max-width: 900px) {
  .service-row, .service-row--reverse { grid-template-columns: 1fr; gap: 40px; }
  .service-row--reverse .service-row__media { order: 0; }
}

/* ============================================================
   Matterport viewer mock
   ============================================================ */
.viewer-mock {
  background: #0b1224;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}
.viewer-mock__scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 20%, rgba(255,140,66,0.12), transparent 70%),
    linear-gradient(180deg, #1a2649 0%, #0b1224 100%);
}
.viewer-mock__room {
  position: absolute;
  inset: 12% 14% 14% 14%;
  perspective: 900px;
}
.viewer-mock__floor {
  position: absolute;
  inset: 60% 0 0 0;
  transform-origin: top center;
  transform: rotateX(60deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.06) 0 1px, transparent 1px 60px),
    linear-gradient(180deg, rgba(255,140,66,0.15), rgba(255,140,66,0));
  border-top: 1px solid rgba(255,140,66,0.3);
}
.viewer-mock__wall {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}
.viewer-mock__wall--left  { top: 0; left: 0;  width: 35%; height: 60%; transform: skewY(15deg); transform-origin: top right;}
.viewer-mock__wall--right { top: 0; right: 0; width: 35%; height: 60%; transform: skewY(-15deg); transform-origin: top left;}
.viewer-mock__wall--back  { top: 0; left: 35%; right: 35%; height: 60%; }
.viewer-mock__doorway {
  position: absolute;
  top: 18%; left: 50%;
  transform: translateX(-50%);
  width: 22%; height: 42%;
  border: 1px solid rgba(255,140,66,0.5);
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,140,66,0.15), transparent);
}
.viewer-mock__dots {
  position: absolute; inset: 0;
}
.viewer-mock__dot {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 6px rgba(255,140,66,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse 2.4s ease-in-out infinite;
}
.viewer-mock__dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255,140,66,0.25); }
  50%      { box-shadow: 0 0 0 12px rgba(255,140,66,0.08); }
}
.viewer-mock__ui {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.viewer-mock__toolbar {
  display: flex;
  background: rgba(11,18,36,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 6px;
  gap: 4px;
  backdrop-filter: blur(8px);
}
.viewer-mock__toolbar button {
  width: 36px; height: 36px;
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.viewer-mock__toolbar button.is-active,
.viewer-mock__toolbar button:hover {
  background: var(--orange);
  color: #fff;
}
.viewer-mock__toolbar svg { width: 18px; height: 18px; }
.viewer-mock__info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(11,18,36,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.viewer-mock__info .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.25);
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0.08); }
}
.viewer-mock__minimap {
  position: absolute;
  top: 20px; right: 20px;
  width: 140px; height: 100px;
  background: rgba(11,18,36,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px;
  z-index: 5;
}
.viewer-mock__minimap svg { width: 100%; height: 100%; }
.viewer-mock__label {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(11,18,36,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.viewer-mock__label svg { width: 14px; height: 14px; color: var(--orange); }

/* ============================================================
   Contact / form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
.contact-info {
  background: var(--navy);
  color: #DCE3F0;
  padding: 48px;
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
}
.contact-info h3 { color: #fff; margin-bottom: 8px; }
.contact-info p { color: #B7C2DB; margin-bottom: 32px; }
.contact-info__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-info__row:last-child { padding-bottom: 0; }
.contact-info__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,140,66,0.18);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg { width: 18px; height: 18px; }
.contact-info__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A95B0;
  margin-bottom: 2px;
}
.contact-info__value { color: #fff; font-size: 16px; font-family: var(--font-display); font-weight: 500; }
.contact-info__value a:hover { color: var(--orange); }

.form {
  display: grid;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,140,66,0.15);
}
.form__submit { margin-top: 8px; justify-self: flex-start; }

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 480px;
  width: 100%;
  justify-self: start;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 1;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange);
  border-radius: var(--r-card);
  pointer-events: none;
  transform: translate(16px, 16px);
  opacity: 0.85;
  z-index: 0;
}
.about-content p { color: var(--ink-700); font-size: 17px; margin-bottom: 18px; }
.about-content p:first-of-type { font-size: 19px; color: var(--navy); font-family: var(--font-display); font-weight: 500; line-height: 1.5; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about-stats .stat-num { font-family: var(--font-display); font-weight: 700; color: var(--orange-deep); font-size: 30px; line-height: 1; }
.about-stats .stat-lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); margin-top: 6px; }

/* ============================================================
   Image slot styling
   ============================================================ */
image-slot {
  background: var(--bg-warm);
  border: 2px dashed var(--orange-soft) !important;
}
image-slot::part(empty), image-slot[empty] {
  color: var(--orange-deep);
}

/* ============================================================
   Tweaks panel — light tweak so it matches the brand a bit
   ============================================================ */
.tweaks-host {
  font-family: var(--font-display);
}

/* ============================================================
   SERVICE SUB-PAGE PATTERNS
   ============================================================ */

/* Detail hero — image + text grid */
.detail-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}
.detail-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.detail-hero__content .eyebrow { margin-bottom: 22px; }
.detail-hero__content h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  margin-bottom: 22px;
}
.detail-hero__content .lede { margin-bottom: 32px; }
.detail-hero__crumbs {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.detail-hero__crumbs a:hover { color: var(--orange-deep); }
.detail-hero__crumbs span { color: var(--ink-400); }
.detail-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-hero__media {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 5/4;
  background: var(--bg-soft);
}
.detail-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .detail-hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Industries grid (6 cards) */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } }
.industry {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.industry:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.industry__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.industry__icon svg { width: 22px; height: 22px; }
.industry h3 { color: var(--navy); font-size: 18px; }
.industry p { color: var(--ink-500); font-size: 14.5px; line-height: 1.55; }

/* Capabilities (4 columns) */
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .capabilities { grid-template-columns: 1fr; } }
.capability {
  padding: 28px 24px;
  border-radius: var(--r-card);
  background: var(--bg-soft);
  border-top: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capability h4 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}
.capability p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
}
.capability__tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }
.process__step {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.process__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}
.process__step h4 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0;
}
.process__step p { color: var(--ink-500); font-size: 14.5px; }

/* Compliance grid */
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) { .compliance-grid { grid-template-columns: 1fr; gap: 32px; } }
.compliance-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}
.compliance-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-700);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.compliance-list li:last-child { border-bottom: 0; }
.compliance-list .badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compliance-list .badge svg { width: 16px; height: 16px; }
.compliance-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 2px;
}
.compliance-list span { font-size: 13.5px; color: var(--ink-500); }

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p {
  padding: 0 28px 24px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.6;
}

/* Deliverables list */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 600px) { .deliverables { grid-template-columns: 1fr; } }
.deliverables li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-700);
}
.deliverables .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.deliverables .check svg { width: 12px; height: 12px; }

/* ============================================================
   MOBILE REFINEMENTS — clean, comfortable phone view
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-y: clamp(46px, 12vw, 64px);
  }
  h1, .h1 { font-size: clamp(29px, 8.6vw, 40px); line-height: 1.08; }
  .hero__content h1 { font-size: clamp(29px, 8.4vw, 38px); line-height: 1.08; }
  .page-hero h1,
  .detail-hero__content h1 { font-size: clamp(27px, 7.6vw, 34px); }
  h2, .h2 { font-size: clamp(24px, 6.8vw, 33px); }
  .lede { font-size: 16px; }

  /* Header: trim the oversized logo + height */
  .site-header__inner { padding: 12px var(--gutter); }
  .site-header__logo img { height: 40px; }

  /* Hero */
  .hero__stats { gap: 14px 24px; flex-wrap: wrap; }
  .hero__stats .stat-num { font-size: 22px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 46%; justify-content: center; }
  .iso-scene { max-width: 340px; }
  .iso-scene__hint { font-size: 11px; }

  /* Trim oversized decorative numbers */
  .approach-card__num { font-size: 32px; }
  .about-stats { gap: 20px; }
  .about-stats .stat-num { font-size: 22px; }

  /* A little less card padding on small screens */
  .value { padding: 26px 22px; }
  .approach-card { padding: 28px 24px; }

  /* Buttons go comfortably two-up, then full width */
  .cta-band__ctas { width: 100%; }
  .cta-band__ctas .btn,
  .detail-hero__ctas .btn { flex: 1 1 46%; justify-content: center; }
}
@media (max-width: 390px) {
  :root { --gutter: 16px; }
  h1, .h1 { font-size: 27px; }
  .hero__content h1 { font-size: 28px; }
  .page-hero h1,
  .detail-hero__content h1 { font-size: 26px; }
  .hero__ctas .btn,
  .cta-band__ctas .btn,
  .detail-hero__ctas .btn { flex-basis: 100%; }
}
