/* ==========================================================================
   PT Heimatland Indonesia Geosolusi
   Implementation of "Heimatland All-in-One.dc.html"
   ========================================================================== */

:root {
  /* ink */
  --ink-900: #0b1120;
  --ink-800: #0f1728;
  --ink-700: #101a2e;
  --ink-600: #13233f;
  --deep-teal: #153a44;

  /* accent */
  --accent: #34a894;
  --accent-hot: #43c1aa;
  --accent-light: #6fd3bf;
  --accent-deep: #2c7d76;
  --indigo: #33469a;

  /* paper */
  --paper: #f4f5f2;
  --paper-alt: #eef1ec;
  --white: #fff;

  /* text on light */
  --text: #101a2e;
  --text-strong: #26324c;
  --text-muted: #4a5670;
  --text-faint: #6a7488;

  /* text on dark */
  --on-dark: #eaeef6;
  --on-dark-muted: #aab6ce;
  --on-dark-dim: #9fadc6;
  --on-dark-faint: #8b97b0;
  --on-dark-deep: #5f6d88;

  /* lines */
  --line-light: #e2e5df;
  --line-card: #e7eae4;
  --line-grid: #dcdfd8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-dark-soft: rgba(255, 255, 255, 0.08);

  /* Services accordion: number column + gap, reused to indent panel content */
  --svc-num-w: 44px;
  --svc-gap: clamp(16px, 3vw, 44px);

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 30px);
  --header-h: 66px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  /* Must live on html, not body: a non-'visible' overflow-x on body with no
     overflow-y set makes body compute overflow-y:auto too (the UA's overflow
     propagation rule), turning body into its own scroll container. That's
     what was breaking the sticky header — it stuck to body's box instead of
     the viewport, so it visibly drifted while scrolling the first section. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
}

section { scroll-margin-top: var(--header-h); }
::selection { background: var(--accent); color: var(--ink-800); }

img { max-width: 100%; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Halved from clamp(40px, 5vw, 72px) — tighter rhythm between sections. */
.section { padding-top: clamp(20px, 2.5vw, 36px); padding-bottom: clamp(20px, 2.5vw, 36px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--ink-800);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */


.index {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.2vw, 14px);
  letter-spacing: 0.04em;
  color: var(--accent);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  color: var(--text);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.on-dark { color: var(--white); }
.accent { color: var(--accent); }

.lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0;
}

.prose {
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 640px;
}

.rule-dark { border-top: 1px solid var(--line-dark); }

/* Hairline grid: 1px gap over a background = crisp dividers between cells */
.grid-hairline {
  display: grid;
  gap: 1px;
  border-radius: 14px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink-800);
  font-family: var(--font-display);
}
.btn-primary:hover { background: var(--accent-hot); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.btn-sm { font-size: 14px; padding: 10px 18px; border-radius: 6px; }
.btn-sm:hover { transform: none; }
.btn-block { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line-dark-soft);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Globe mark only — it sits on the navy bar unplated, so no white chip here.
   (The full lockup with the wordmark still runs in the footer.) */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img { height: 38px; width: auto; display: block; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
}
/* Pure JS hydration hook — display:contents lifts the <a> tags up to be
   direct flex children of .nav-desktop/.nav-mobile again, so their gap
   still applies (a wrapper box here would isolate them into their own,
   gap-less mini flex row instead). */
.nav-links-group { display: contents; }
.nav-desktop a {
  text-decoration: none;
  color: #aeb8cc;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color .18s;
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a.btn:hover { color: var(--ink-800); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform .22s, opacity .18s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line-dark-soft);
  padding: 8px var(--gutter) 16px;
  flex-direction: column;
  gap: 2px;
  animation: slide-in .22s ease both;
}
.nav-mobile a {
  text-decoration: none;
  color: #c4ccdb;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-mobile a.btn {
  margin-top: 12px;
  padding: 14px;
  border-bottom: none;
  font-family: var(--font-display);
  color: var(--ink-800);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: linear-gradient(155deg, var(--ink-800) 0%, var(--ink-600) 48%, var(--deep-teal) 100%);
}

.contours {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 800px 560px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='560'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1' opacity='0.06'%3E%3Cpath d='M-40,110 C180,40 400,170 600,110 S860,30 860,110'/%3E%3Cpath d='M-40,180 C190,115 390,245 600,180 S860,105 860,180'/%3E%3Cpath d='M-40,260 C180,195 410,315 600,260 S860,200 860,260'/%3E%3Cpath d='M-40,350 C190,285 390,415 600,350 S860,290 860,350'/%3E%3Cpath d='M-40,440 C180,375 410,495 600,440 S860,390 860,440'/%3E%3Cpath d='M-40,520 C190,470 390,580 600,520 S860,480 860,520'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(52, 168, 148, 0.28), rgba(52, 168, 148, 0) 68%);
}

.hero-inner {
  position: relative;
  /* Top stays generous — it's clearance under the sticky header, not a section
     gap. Bottom halves with everything else. */
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(16px, 2vw, 28px);
}

/* Logo sits beside the headline on web; stacks above it on mobile (see the
   768px override below). */
.hero-heading {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

/* Full lockup (icon + wordmark), replacing the old plain-text company label.
   order:1 puts it after the headline in the row (i.e. on the right) while
   leaving it first in the DOM — mobile resets order back to 0 to restack it
   on top, where it reads before the headline again. */
.hero-logo {
  display: block;
  height: clamp(64px, 9vw, 150px);
  width: auto;
  flex: 0 0 auto;
  order: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
  color: var(--white);
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 600px;
  margin: 16px 0 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.pillars {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(26px, 3.2vw, 36px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pillar { background: rgba(15, 23, 40, 0.55); padding: 20px clamp(20px, 2vw, 24px); }
.pillar-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent-light); }
.pillar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 19px);
  color: var(--white);
  margin-top: 8px;
}
.pillar-desc { font-size: clamp(13.5px, 1.2vw, 14px); color: #94a1ba; margin-top: 6px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--ink-900);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: clamp(13px, 1.4vw, 16px) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 32s linear infinite;
}
.marquee-group { display: flex; align-items: center; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2vw, 24px);
  padding: 0 clamp(18px, 2vw, 24px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #7c8aa6;
  white-space: nowrap;
}
.marquee i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 72px); }
.about-aside { flex: 1 1 240px; max-width: 360px; }
.about-sticky { position: static; }
.about-aside .h2 { font-size: clamp(29px, 3.6vw, 46px); line-height: 1.05; margin-top: 16px; }
.about-body { flex: 3 1 440px; min-width: 0; }

.stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 24px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.stat { background: var(--white); padding: clamp(20px, 2vw, 24px); }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 30px);
  color: var(--text);
}
.stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.band-dark {
  background: var(--ink-700);
  color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
}
.services-heading { max-width: 14ch; }
.services-intro {
  font-size: clamp(15.5px, 1.3vw, 16px);
  line-height: 1.6;
  color: #93a1bb;
  max-width: 340px;
  margin: 0;
}

.service-list { margin-top: clamp(24px, 2.6vw, 30px); }

/* --- Accordion ---------------------------------------------------------
   Collapsed by default; one panel open at a time. The 0fr/1fr grid trick
   animates to the panel's natural height without hard-coding a max-height. */

.service { border-top: 1px solid var(--line-dark); }

.service-head { margin: 0; }

.service-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--svc-gap);
  padding: clamp(18px, 1.8vw, 24px) 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  /* Static on web — only the mobile breakpoint re-enables the click affordance. */
  cursor: default;
}

.service-n {
  flex: 0 0 var(--svc-num-w);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-light);
}

.service-title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color .18s;
}
/* Hover-as-affordance only makes sense where the header is clickable — mobile. */

/* Plus/minus toggle glyph — mobile-only; hidden on web since nothing collapses. */
.service-icon {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background .2s, border-color .2s, transform .3s;
}
.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transform: translate(-50%, -50%);
  transition: transform .3s, background .2s;
}
.service-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.service.is-open .service-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(180deg);
}
.service.is-open .service-icon::before,
.service.is-open .service-icon::after { background: var(--ink-800); }
.service.is-open .service-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Web: every panel stays open, permanently — this is the "previous", static
   layout. The 0fr/1fr collapse only exists at the mobile breakpoint below. */
.service-panel { display: grid; grid-template-rows: 1fr; }

.service-panel-inner { overflow: hidden; min-height: 0; }

.service-panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  /* Indent to sit under the title, clear of the number column. */
  padding: 2px 0 clamp(20px, 1.8vw, 26px) calc(var(--svc-num-w) + var(--svc-gap));
}

.service-main { flex: 2 1 320px; min-width: 0; }
.service-panel .service-body { margin-top: 0; }
.service-body {
  font-size: clamp(15.5px, 1.4vw, 16.5px);
  line-height: 1.65;
  color: var(--on-dark-dim);
  margin: 14px 0 0;
  max-width: 560px;
}
.service-shot { flex: 1 1 220px; min-width: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
}
.tag-dark {
  color: #c6d0e2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

/* Outbound link inside a service panel — currently only Wadugs uses this. */
.service-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 15px;
}
.service-link:hover { color: var(--accent); }

/* Placeholder screenshot plates */
.shot {
  display: flex;
  align-items: flex-end;
  padding: 12px;
  border-radius: 12px;
}
.shot-dark {
  height: 150px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 12px, rgba(255, 255, 255, 0.09) 12px 24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.shot-dark .shot-cap { font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-faint); }

/* Plates carrying a real screenshot rather than the striped placeholder. */
.shot-img {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ink-900);
}
.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* The report is a document page — anchor to the top so the heading stays visible
   instead of cropping to a band of body text. */
.shot-doc img { object-fit: cover; object-position: center top; background: var(--white); }

.shot-img .shot-cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark);
  background: rgba(11, 17, 32, 0.78);
  padding: 5px 9px;
  border-radius: 6px;
  width: fit-content;
  max-width: calc(100% - 20px);
}

/* --------------------------------------------------------------------------
   Vision
   -------------------------------------------------------------------------- */

.vision-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 72px);
  align-items: flex-start;
  margin-top: 12px;
}
.vision-statement {
  flex: 1 1 420px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 20ch;
  color: var(--text);
  text-wrap: balance;
}
.missions {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  overflow: hidden;
}
.mission { background: var(--white); padding: 22px clamp(22px, 2vw, 26px); }
.mission-n { font-family: var(--font-mono); font-size: clamp(20px, 2vw, 22px); font-weight: 700; color: var(--accent-deep); }
.mission-text {
  font-size: clamp(15.5px, 1.4vw, 16.5px);
  line-height: 1.55;
  color: var(--text-strong);
  font-weight: 500;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Values
   -------------------------------------------------------------------------- */

.value-list { margin-top: clamp(18px, 2vw, 24px); }
.value {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(20px, 1.8vw, 26px) 0;
  border-top: 1px solid var(--line-dark);
}
.value-n {
  flex: 0 0 auto;
  width: 60px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  /* Quiet ghost numeral — same low-contrast-by-design role as the light
     version's #c9cec6, re-tuned for a dark background. */
  color: rgba(255, 255, 255, 0.16);
}
.value-title {
  flex: 1 1 240px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
}
.value-body {
  flex: 2 1 380px;
  min-width: 0;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.66;
  color: var(--on-dark-dim);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.contact-copy { flex: 1 1 320px; min-width: 0; }
.contact-heading { font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.025em; }
.contact-body { max-width: 400px; }

.contact-email {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(15.5px, 1.4vw, 17px);
  font-weight: 600;
}
.contact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--ink-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.contact-panel {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--ink-700);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  color: var(--white);
}

.contact-panel { scroll-margin-top: calc(var(--header-h) + 20px); }

.panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 10px 0 0;
  color: var(--white);
}
.panel-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-dark-deep);
  margin: 18px 0 0;
}

/* --------------------------------------------------------------------------
   Client slider — 6 logos per slide (3 columns x 2 rows)
   -------------------------------------------------------------------------- */

.slider { margin-top: clamp(20px, 2.4vw, 26px); }

.slider-viewport {
  overflow: hidden;
  border-radius: 14px;
  /* Hairline frame: the gap between tiles reveals this background. */
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, .1, .2, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
}

/* A short slide keeps its 3x2 shape rather than stretching the last row. */
.slide:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.14); }

.client {
  background: var(--white);
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 1.25;
  color: #5b6580;
  letter-spacing: 0.01em;
  transition: background .2s, color .2s;
}
.client:hover { background: #f6faf8; color: var(--accent-deep); }

/* Logos vary wildly in aspect ratio — cap both axes and let contain letterbox
   them, so a wide wordmark and a square mark carry similar optical weight. */
.client img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Pads the final slide out to a full 3x2 block. */
.client.is-empty { pointer-events: none; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.slider-dot[aria-selected="true"] {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.slider-arrows { display: flex; gap: 8px; }
.slider-arrow {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-800);
}
.slider-arrow[disabled] { opacity: .35; cursor: default; }
.slider-arrow[disabled]:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink-900); color: #c4ccdb; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 3vw, 32px);
  padding-top: clamp(30px, 4vw, 44px);
  padding-bottom: clamp(30px, 4vw, 44px);
}
.footer-logo { display: block; }
.footer-logo img { height: 34px; width: auto; display: block; }

.footer-blurb {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--on-dark-faint);
  margin: 18px 0 0;
  max-width: 300px;
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--on-dark-deep);
}
.footer-links { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.footer-links a {
  text-decoration: none;
  color: #9aa5ba;
  font-size: 15px;
  transition: color .18s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bar { border-top: 1px solid #1c2740; }
.footer-bar-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--on-dark-deep);
}

/* --------------------------------------------------------------------------
   Floating CTA
   -------------------------------------------------------------------------- */

.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  text-decoration: none;
  color: var(--ink-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.5);
  animation: float-in .3s ease both;
}
.float-cta[hidden] { display: none; }
.float-cta:hover { background: var(--accent-hot); }

@keyframes float-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive — the .dc source shipped a separate mobile tree at <=768px;
   here the same markup reflows instead.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .site-header.menu-open .nav-mobile { display: flex; }

  .brand img { height: 32px; }
  .header-inner { padding: 11px var(--gutter); }

  /* Stacked, logo centered above the (still left-aligned) headline —
     the "beside" row layout is a web-only treatment. */
  .hero-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* order:0 restacks the logo above the headline (its default DOM position);
     sized to scale with the headline's own clamp(38px, 7vw, 90px) below it. */
  .hero-logo { order: 0; align-self: center; height: clamp(44px, 12vw, 64px); }

  .hero-cta { flex-direction: column; gap: 11px; }
  .hero-cta .btn { display: block; width: 100%; padding: 15px 24px; }

  .about-aside { max-width: none; }

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

  /* Services: collapse/expand lives here only — web stays static (see base rules). */
  :root { --svc-num-w: 30px; --svc-gap: 12px; }
  .service-toggle { padding: 18px 0; gap: 12px; cursor: pointer; }
  .service-toggle:hover .service-title { color: var(--accent-light); }
  .service-toggle:hover .service-icon { border-color: var(--accent); }
  .service-n { font-size: 13px; align-self: flex-start; padding-top: 4px; }
  .service-icon { display: block; width: 30px; height: 30px; }
  .service-panel {
    grid-template-rows: 0fr;
    transition: grid-template-rows .34s cubic-bezier(.4, .1, .2, 1);
  }
  .service.is-open .service-panel { grid-template-rows: 1fr; }
  .service-panel-body { display: block; padding-left: calc(30px + 12px); }
  .service-shot { margin-top: 16px; }
  .shot-dark { height: 120px; }
  /* Image plates keep their ratio — the fixed placeholder height must not win. */
  .shot-img { height: auto; }

  .value { display: block; padding: 22px 0; }
  .value-n { display: inline-block; width: auto; margin-right: 14px; vertical-align: baseline; }
  .value-title { display: inline; }
  .value-body { margin-top: 12px; }

  .contact-panel { padding: 24px 20px; border-radius: 18px; }

  /* 3 columns must survive a 375px screen — shrink the tile, let names wrap. */
  .client { min-height: 82px; font-size: 11px; padding: 10px 7px; letter-spacing: 0; }
  .client img { max-height: 40px; }

  .footer-bar-inner { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
