/* =============================================================
   HefTek LLC — styles.css  v17
   Architecture: Black / Silver / Blue
   ============================================================= */


/* =============================================================
   CUSTOM PROPERTIES
   ============================================================= */

:root {

  /* Palette */
  --void:          #090b0f;
  --void-2:        #101218;

  --silver-hi:     #f0eff2;
  --silver-mid:    #a8adb8;
  --silver-dim:    #878b9f;
  --silver-ghost:  #72788f;

  /* Brand accent */
  --accent-blue:      #1c9bec;
  --accent-blue-soft: rgba(28,155,236,.35);

  /* Division accents */
  --accent-vant:      #1c9bec;
  --accent-vant-soft: rgba(28,155,236,.35);

  --accent-synt:      #9c6bf0;
  --accent-synt-soft: rgba(156,107,240,.35);

  --accent-labs:      #e0965c;
  --accent-labs-soft: rgba(224,150,92,.35);
  --accent-labs-b:    #9c6bf0;

  /* Active accent — swapped per division via body.theme-* */
  --accent:      var(--accent-blue);
  --accent-soft: var(--accent-blue-soft);

  /* Borders */
  --border:    rgba(255,255,255,.07);
  --border-hi: rgba(255,255,255,.14);

  /* Layout */
  --nav-h: 84px;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Easing */
  --ease: cubic-bezier(.16,1,.3,1);

  /* Safe areas */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left,   0px);
  --safe-r: env(safe-area-inset-right,  0px);
}


/* =============================================================
   DIVISION THEMES — accent token swap only
   ============================================================= */

body.theme-vant  { --accent: var(--accent-vant);  --accent-soft: var(--accent-vant-soft);  }
body.theme-synt  { --accent: var(--accent-synt);  --accent-soft: var(--accent-synt-soft);  }
body.theme-labs  { --accent: var(--accent-labs);  --accent-soft: var(--accent-labs-soft);  }


/* =============================================================
   FONTS — self-hosted (no external requests to Google Fonts)
   ============================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}


/* =============================================================
   RESET
   ============================================================= */

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

html {
  overflow-x: clip;
  color-scheme: dark;
  scrollbar-gutter: stable;
}


/* =============================================================
   VIEW TRANSITIONS — native cross-document fade
   ============================================================= */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: htk-out .38s cubic-bezier(.65,0,.35,1) forwards; }
::view-transition-new(root) { animation: htk-in  .48s cubic-bezier(.65,0,.35,1) .3s backwards; }

@keyframes htk-out { to { opacity:0; filter:brightness(.2); } }
@keyframes htk-in  { from { opacity:0; filter:brightness(0); } to { opacity:1; filter:brightness(1); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  html.smooth-ready { scroll-behavior: smooth; }
}


/* =============================================================
   SCROLL LOCK
   ============================================================= */

html.no-scroll { overflow: hidden; }

body.no-scroll {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}


/* =============================================================
   BASE
   ============================================================= */

body {
  background: var(--void);
  color: var(--silver-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(240,239,242,.16);
  color: white;
}

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

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

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

:focus-visible {
  outline: 1px solid var(--silver-mid);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}


/* =============================================================
   SKIP LINK
   ============================================================= */

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  background: var(--silver-hi);
  color: var(--void);
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: top .3s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =============================================================
   SCROLL PROGRESS
   ============================================================= */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--silver-hi));
  box-shadow: 0 0 12px var(--accent-soft);
  pointer-events: none;
  will-change: width;
}

@media (prefers-reduced-motion: reduce) { .progress-bar { display: none; } }


/* =============================================================
   BACKGROUND TREATMENTS
   ============================================================= */

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Radial vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(80,82,100,.10), transparent 70%);
}

/* Responsive grid + slow light pulses.
   The grid remains a decorative layer (never an interaction target). Pulses
   animate transform/opacity only, stay low-contrast, and stop for reduced motion. */
.bg-schema {
  --grid-size: 56px;
  --grid-ink: rgba(190, 207, 228, .052);
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(ellipse 108% 86% at 50% 7%, #000 12%, rgba(0,0,0,.82) 63%, transparent 100%);
  mask-image: radial-gradient(ellipse 108% 86% at 50% 7%, #000 12%, rgba(0,0,0,.82) 63%, transparent 100%);
}

.bg-schema::before,
.bg-schema::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Two very soft pools of brand light drift slowly behind content. */
.bg-schema::before {
  inset: -20%;
  background:
    radial-gradient(ellipse 34% 28% at 24% 42%, rgba(28,155,236,.105), transparent 74%),
    radial-gradient(ellipse 30% 25% at 76% 59%, rgba(156,107,240,.075), transparent 76%);
  opacity: .62;
  transform: translate3d(-1.5%, -1%, 0);
  animation: grid-light-drift 42s ease-in-out infinite alternate;
}

/* Expanding concentric lines read as a pulse travelling across the grid. */
.bg-schema::after {
  top: -34%;
  left: 50%;
  width: min(142vw, 1500px);
  aspect-ratio: 1;
  max-width: none;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 77px,
    rgba(28,155,236,.13) 78px 79px,
    transparent 80px 126px
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle, #000 0%, transparent 74%);
  opacity: .32;
  transform: translate3d(-50%, -1%, 0) scale(.92);
  animation: grid-ripple 34s ease-in-out infinite;
}

@keyframes grid-light-drift {
  from { transform: translate3d(-1.5%, -1%, 0); }
  to   { transform: translate3d(1.5%, 1%, 0); }
}

@keyframes grid-ripple {
  0%, 100% { opacity: .32; transform: translate3d(-50%, -1.5%, 0) scale(.92); }
  50%      { opacity: .5; transform: translate3d(-50%, 1.5%, 0) scale(1.06); }
}

@media (min-width: 860px) {
  .bg-schema { --grid-size: 64px; --grid-ink: rgba(190, 207, 228, .06); }
  .bg-schema::after { top: -40%; }
}

@media (max-width: 480px) {
  .bg-schema { --grid-size: 44px; --grid-ink: rgba(190, 207, 228, .04); }
  .bg-schema::after { top: -24%; width: 160vw; opacity: .11; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-schema::before,
  .bg-schema::after { animation: none; }
  .bg-schema::before { opacity: .42; transform: none; }
  .bg-schema::after { opacity: .23; transform: translate3d(-50%, 0, 0) scale(1); }
}


/* =============================================================
   NAVIGATION
   ============================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: opacity .45s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}

.nav.nav--hidden {
  opacity: 0;
  pointer-events: none;
}

.nav.nav--scrolled {
  background: rgba(9,11,15,.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding:
    18px
    calc(clamp(20px,6vw,32px) + var(--safe-r))
    18px
    calc(clamp(20px,6vw,32px) + var(--safe-l));
}

.nav-brand {
  display: flex;
  align-items: center;
  height: 38px;
  flex-shrink: 0;
  font-size: clamp(.86rem, 3vw, 1rem);
  letter-spacing: .28em;
  padding-left: .28em;
  color: var(--silver-hi);
  transition: opacity .35s var(--ease);
}

.nav-brand:hover,
.nav-brand:focus-visible { opacity: .72; }


/* ── Hamburger (standard pages) ── */

.nav-toggle {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--silver-hi);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* =============================================================
   MOBILE MENU (fullscreen overlay — all viewports)
   ============================================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 36px);
  background: rgba(6,6,8,.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s var(--ease);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  color: var(--silver-mid);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .5s var(--ease),
    transform .5s var(--ease),
    color .3s var(--ease);
}

.mobile-menu.is-open a { opacity: 1; transform: none; }

.mobile-menu a:nth-child(1) { transition-delay: .05s; }
.mobile-menu a:nth-child(2) { transition-delay: .10s; }
.mobile-menu a:nth-child(3) { transition-delay: .15s; }
.mobile-menu a:nth-child(4) { transition-delay: .20s; }
.mobile-menu a:nth-child(5) { transition-delay: .25s; }

.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.mobile-menu a.is-active { color: var(--accent); }

.mobile-menu a[data-home-link] {
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  letter-spacing: .04em;
  color: var(--silver-ghost);
}

.mobile-menu a[data-home-link]:hover,
.mobile-menu a[data-home-link]:focus-visible { color: var(--accent); }


/* =============================================================
   HERO (homepage fullscreen)
   ============================================================= */

.hero {
  position: relative;
  /* Keep the glow free to paint beyond the hero box. The document clips only
     horizontal overflow, so the blurred orb edges don't get hard-cropped. */
  isolation: isolate;
  z-index: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  padding:
    clamp(28px, 6vw, 40px)
    clamp(20px, 6vw, 32px)
    clamp(64px, 10vw, 96px);
}

.hero > *:not(.aura) {
  position: relative;
  z-index: 1;
}


/* ── Ambient glow ── */

.aura {
  position: absolute;
  inset: clamp(-120px, -8vw, -56px) 0;
  z-index: 0;
  /* Let the blur breathe vertically without creating a sideways scroll area. */
  overflow-x: clip;
  overflow-y: visible;
  pointer-events: none;
}

.aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: .4;
  will-change: transform;
}

.aura-a {
  width: 46vw;
  height: 46vw;
  top: -6%;
  left: -4%;
  background: radial-gradient(circle, rgba(28,155,236,.55), rgba(28,155,236,.14) 42%, transparent 62%);
  animation: aura-drift-a 22s ease-in-out infinite alternate;
}

.aura-b {
  width: 38vw;
  height: 38vw;
  bottom: -6%;
  right: -4%;
  background: radial-gradient(circle, rgba(168,173,184,.4), rgba(168,173,184,.1) 42%, transparent 62%);
  animation: aura-drift-b 26s ease-in-out infinite alternate;
}

@keyframes aura-drift-a { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(6%,8%) scale(1.08); } }
@keyframes aura-drift-b { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-8%,-6%) scale(1.1); } }

@media (prefers-reduced-motion: reduce) { .aura-a, .aura-b { animation: none; } }


/* ── Logo mark ── */

.mark {
  margin-bottom: clamp(18px, 4vw, 28px);
  opacity: 0;
  transform: translate(var(--px,0), var(--py,0));
  transition: transform .6s var(--ease);
}

.mark.flickering { animation: mark-flicker .9s steps(1,end) forwards; }

.mark.lit {
  opacity: 1;
  animation: mark-breathe 6s ease-in-out infinite;
}

@keyframes mark-flicker {
  0%   { opacity:0; }
  4%   { opacity:.5; }
  8%   { opacity:0; }
  15%  { opacity:.7; }
  19%  { opacity:.1; }
  27%  { opacity:.85; }
  32%  { opacity:.2; }
  40%  { opacity:1; }
  46%  { opacity:.35; }
  53%  { opacity:1; }
  61%  { opacity:.65; }
  70%  { opacity:1; }
  100% { opacity:1; }
}

@keyframes mark-breathe {
  0%,100% { filter: drop-shadow(0 0 22px rgba(180,185,210,.18)); }
  50%      { filter: drop-shadow(0 0 36px rgba(120,170,220,.30)); }
}

.mark img {
  width:  clamp(88px, 20vw, 160px);
  height: clamp(88px, 20vw, 160px);
}


/* ── Wordmark ── */

.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  letter-spacing: .28em;
  padding-left: .28em;
  color: var(--silver-mid);
  margin-bottom: clamp(20px, 4vw, 36px);
}


/* ── Headlines ── */

h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 8vw, 5.2rem);
  line-height: 1.14;
  margin-bottom: clamp(16px, 3vw, 28px);
}

h1 em {
  font-style: italic;
  background: linear-gradient(110deg, var(--silver-mid), var(--silver-hi), var(--silver-mid));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite;
}

@keyframes sheen { 0%,100% { background-position:0%; } 50% { background-position:100%; } }

.sub {
  max-width: 52ch;
  color: var(--silver-dim);
  font-weight: 300;
  line-height: 1.7;
}


/* =============================================================
   SCROLL CUE
   ============================================================= */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vw, 30px);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  opacity: 0;
  animation: cue-appear .8s var(--ease) 2.4s forwards;
}

.hero > a.scroll-cue {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: clamp(34px, 6vw, 50px);
  background: linear-gradient(to bottom, transparent, var(--silver-mid) 45%, var(--accent));
  transform-origin: top;
  animation: cue-pulse 2.4s ease-in-out infinite;
}

.scroll-cue:hover .scroll-cue-line,
.scroll-cue:focus-visible .scroll-cue-line {
  background: linear-gradient(to bottom, transparent, var(--accent) 45%, var(--accent));
}

@keyframes cue-appear { to { opacity: 1; } }
@keyframes cue-pulse {
  0%,100% { transform: scaleY(.55); opacity: .45; }
  50%      { transform: scaleY(1);   opacity: 1;   }
}


/* =============================================================
   GLOBAL SECTION SHELL
   ============================================================= */

main { position: relative; z-index: 1; }

section {
  padding:
    clamp(56px, 10vw, 108px)
    clamp(20px, 6vw, 32px);
}

.services {
  max-width: 1080px;
  margin: auto;
  text-align: center;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.services .lead {
  max-width: 46ch;
  margin: auto;
  margin-bottom: 28px;
  color: var(--silver-mid);
  font-weight: 300;
}

@media (min-width: 1200px) {
  .services,
  .process { max-width: 1200px; }
}


/* =============================================================
   BUILD / DIVISION CARDS
   ============================================================= */

.build-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

@media (min-width: 860px) {
  .build-grid { grid-template-columns: repeat(3,1fr); gap: 24px; }
  .build-grid[data-cols="4"] { grid-template-columns: repeat(4,1fr); }
  .build-grid { gap: 28px; }
}

/* Single-card centering */
@media (min-width: 860px) {
  .build-grid:has(> :only-child) {
    grid-template-columns: minmax(0,440px);
    justify-content: center;
  }
}

.build-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(28px, 4vw, 34px);
  background: var(--void-2);
  transform: perspective(900px) rotateX(0) rotateY(0) translateY(0) scale(1);
  transition: transform .5s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .build-card:hover { transform: perspective(900px) translateY(-4px); }
}

.build-card:hover,
.build-card:focus-within {
  border-color: var(--border-hi);
  background: rgba(255,255,255,.022);
}

/* Spotlight gradient */
.build-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mx,50%) var(--my,50%),
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

.build-card:hover::before,
.build-card:focus-within::before { opacity: 1; }

.build-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--silver-hi);
  margin-bottom: 12px;
}

.build-card p {
  color: var(--silver-dim);
  font-size: .95rem;
  font-weight: 300;
}

.build-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--silver-ghost);
  transition: color .35s var(--ease), gap .35s var(--ease);
}

/* Makes the whole card clickable while keeping the *link* itself
   (and its accessible name) limited to just this line — not the
   heading and full paragraph above it. */
.build-card-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
}

.build-card:hover .build-card-arrow,
.build-card:focus-within .build-card-arrow {
  color: var(--accent);
  gap: 12px;
}


/* ── HefTek section intro (used above the division cards) ── */

.eco-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.eco-root-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver-hi);
  margin: 0;
}

.eco-root-caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .85rem;
  color: var(--silver-dim);
  margin: 0;
}


/* ── Proof grid (client / case-study cards) ──
   Not wired into any page yet — no real clients or case studies
   to show. Reference proof-template.html for markup + usage notes.
   Drop a .proof-grid section in once there's real content to put
   in it; nothing here renders anywhere until that markup is added
   to a page. ── */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 720px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--void-2);
}

.proof-card-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--silver-hi);
}

.proof-card-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.proof-card-name {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.proof-card-result {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 4px 12px;
  margin-top: 4px;
}


/* =============================================================
   CAPABILITIES CHIPS
   ============================================================= */

.capabilities { max-width: 900px; margin: auto; text-align: center; }

.capability-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.capability-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--void-2);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--silver-mid);
  transition:
    border-color .35s var(--ease),
    color .35s var(--ease),
    background .35s var(--ease),
    transform .25s var(--ease);
}

.capability-chip:hover {
  color: var(--silver-hi);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translateY(-2px);
}


/* =============================================================
   PROCESS STEPS
   ============================================================= */

.process { max-width: 1080px; margin: auto; text-align: center; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin-top: 8px;
}

@media (min-width: 640px)  { .process-grid { grid-template-columns: repeat(2,1fr); gap: 22px; } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4,1fr); gap: 20px; } }

.process-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 28px);
  background: var(--void-2);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}

.process-step:hover {
  border-color: var(--border-hi);
  background: rgba(255,255,255,.022);
  transform: translateY(-3px);
}

.process-step .step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
}

.process-step:not(:last-child)::after {
  content: "→";
  display: none;
  position: absolute;
  top: 28px;
  right: -17px;
  color: var(--accent);
  opacity: .4;
  font-size: 1rem;
}

@media (min-width: 1000px) {
  .process-step:not(:last-child)::after { display: block; }
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--silver-hi);
  margin-bottom: 10px;
}

.process-step p {
  color: var(--silver-dim);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.65;
}


/* =============================================================
   LEGAL CONTENT (Privacy / Terms)
   ============================================================= */

.legal-content {
  max-width: 720px;
  margin: auto;
  text-align: left;
}

.legal-content .updated {
  display: block;
  color: var(--silver-ghost);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  margin-bottom: 48px;
}

.legal-content h2 {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--silver-hi);
  margin: 44px 0 14px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--silver-dim);
  max-width: 68ch;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 20px 22px;
  padding: 0;
}

.legal-content strong { color: var(--silver-hi); font-weight: 500; }

.legal-content a {
  color: var(--silver-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible { color: var(--accent); }


/* =============================================================
   APPROACH PANEL
   ============================================================= */

.approach { max-width: 720px; margin: auto; }

.approach-panel {
  position: relative;
  overflow: hidden;
  background: var(--void-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(32px, 6vw, 52px);
  text-align: center;
}

.approach-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
  pointer-events: none;
}

.approach-title {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--silver-hi);
  margin-bottom: 20px;
}

.approach-panel p {
  position: relative;
  color: var(--silver-dim);
  max-width: 46ch;
  margin: auto;
}


/* =============================================================
   SPLIT PANEL  ("Designed For" callouts)
   ============================================================= */

.split-panel {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: auto;
  background: var(--void-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(32px, 6vw, 52px);
  text-align: center;
}

.split-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%);
  opacity: .4;
  pointer-events: none;
}

.split-panel span.eyebrow { position: relative; }

.split-panel p {
  position: relative;
  color: var(--silver-dim);
  max-width: 50ch;
  margin: 14px auto 0;
}


/* =============================================================
   SCROLL REVEALS
   ============================================================= */

[data-reveal],
[data-fade] {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(20px);
  transition:
    opacity .8s var(--ease),
    filter  .8s var(--ease),
    transform .8s var(--ease);
}

[data-reveal].revealed,
[data-fade].visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}


/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding:
    20px
    clamp(20px, 6vw, 32px)
    calc(20px + var(--safe-b));
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--silver-ghost);
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--silver-ghost);
  transition: color .3s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--silver-mid); }


/* =============================================================
   BREADCRUMB
   ============================================================= */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--silver-ghost);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--silver-ghost); transition: color .3s var(--ease); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--silver-mid); }


/* =============================================================
   DIVISION TAG
   ============================================================= */

.division-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 22px;
}

.division-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}


/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    border-color .35s var(--ease),
    background   .35s var(--ease),
    box-shadow   .35s var(--ease),
    color        .35s var(--ease),
    transform    .25s var(--ease);
}

.btn-primary {
  color: var(--void);
  background: var(--silver-hi);
  border: 1px solid var(--silver-hi);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--void);
  box-shadow: 0 0 26px -6px var(--accent-soft);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--silver-hi);
  background: transparent;
  border: 1px solid var(--border-hi);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 24px -6px var(--accent-soft);
  transform: translateY(-2px);
}


/* =============================================================
   PAGE HERO (interior pages)
   ============================================================= */

.page-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  padding:
    calc(var(--nav-h) + clamp(48px,8vw,84px))
    clamp(20px, 6vw, 32px)
    clamp(56px, 9vw, 88px);
}

.page-hero > *:not(.aura) { position: relative; z-index: 1; }

.page-hero .aura { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.page-hero .aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: .3;
}

.page-hero .aura-a {
  width: 42vw;
  height: 42vw;
  top: -18%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}

.page-hero .aura-b {
  width: 32vw;
  height: 32vw;
  bottom: -16%;
  right: -8%;
  background: radial-gradient(circle, rgba(168,173,184,.32), transparent 70%);
}

.page-hero h1 {
  max-width: 17ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.page-hero .sub { margin: 0 auto; }

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}


/* =============================================================
   FEATURE GRID
   ============================================================= */

.feature-section { max-width: 1120px; margin: auto; text-align: center; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin-top: 8px;
}

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

@media (min-width: 900px) {
  .feature-grid[data-cols="3"] { grid-template-columns: repeat(3,1fr); }
  .feature-grid[data-cols="4"] { grid-template-columns: repeat(4,1fr); }
  .feature-grid[data-cols="5"] { grid-template-columns: repeat(5,1fr); }
}

.feature-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 30px);
  background: var(--void-2);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-hi);
  background: rgba(255,255,255,.022);
  transform: translateY(-3px);
}

.feature-card .card-mark {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 18px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px -2px var(--accent-soft);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--silver-hi);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--silver-dim);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.65;
}


/* =============================================================
   PAGE HERO MARK  (division monogram tile)
   ============================================================= */

.page-hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  position: relative;
}

.page-hero-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  transform: rotate(45deg);
  background: var(--void-2);
  box-shadow: 0 0 32px -10px var(--accent-soft);
}

.page-hero-mark span {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--accent);
}


/* =============================================================
   GRADIENT TEXT  (HefTek Labs)
   ============================================================= */

.gradient-text {
  background: linear-gradient(110deg, var(--accent-labs), var(--accent-labs-b), var(--accent-labs));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite;
}


/* =============================================================
   CODE PANEL  (SYNT API display)
   ============================================================= */

.code-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  background: var(--void-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}

.code-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.code-panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-hi);
}

.code-panel-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--silver-ghost);
}

.code-panel pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.75;
  color: var(--silver-mid);
}

.code-panel .tok-key  { color: var(--accent); }
.code-panel .tok-str  { color: var(--silver-hi); }
.code-panel .tok-bool { color: var(--accent-labs, #e0965c); }
.code-panel .tok-com  { color: var(--silver-ghost); }


/* =============================================================
   CONTACT FORM
   ============================================================= */

.contact-form {
  max-width: 640px;
  margin: 40px auto 0;
  display: grid;
  gap: 20px;
  text-align: left;
}

.form-row { display: grid; gap: 20px; }

@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver-ghost);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--void-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--silver-hi);
  font-family: var(--font-body);
  font-size: .94rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.02);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-body);
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--silver-mid) 50%),
    linear-gradient(135deg, var(--silver-mid) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 17px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact-form button[type="submit"] {
  justify-self: start;
  cursor: pointer;
  border: 1px solid var(--silver-hi);
}

.form-note {
  font-size: .78rem;
  color: var(--silver-ghost);
  margin-top: -4px;
}

/* Honeypot — visually hidden, bot bait */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: -1;
}

.form-status {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  min-height: 1.2em;
}


/* =============================================================
   SHOT SCROLLER  (product preview gallery)
   ============================================================= */

.shot-scroller-wrap { position: relative; max-width: 1120px; margin: auto; }

.shot-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 16px;
  margin: 0 -6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) transparent;
}

.shot-scroller::-webkit-scrollbar { height: 6px; }
.shot-scroller::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 999px; }

.shot-scroller-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 16px;
  width: 64px;
  background: linear-gradient(to right, transparent, var(--void) 88%);
  pointer-events: none;
}

.shot-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(80vw, 340px);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  background: var(--void-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}

.shot-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.shot-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hi);
}

.shot-card-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--silver-ghost);
}

.shot-card-body {
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shot-card-caption {
  padding: 14px 18px 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--silver-dim);
  border-top: 1px solid var(--border);
}

.preview-disclaimer {
  max-width: 66ch;
  margin: 12px auto 24px;
  padding: 0 4px;
  color: var(--silver-dim);
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
}

.shot-hint {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--silver-ghost);
  margin-top: 16px;
}


/* ── Mock UI elements inside shot cards ── */

.mock-line { height: 9px; border-radius: 4px; background: var(--border-hi); margin-bottom: 11px; }
.mock-line:last-child { margin-bottom: 0; }
.mock-line.accent { background: var(--accent-soft); }

.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--border-hi); }
.mock-chart span.accent { background: var(--accent); box-shadow: 0 0 20px -4px var(--accent-soft); }

.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mock-stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.mock-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--silver-hi);
  margin-bottom: 4px;
}

.mock-stat span {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--silver-ghost);
}

.mock-list { display: flex; flex-direction: column; gap: 12px; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--silver-mid);
}

.mock-row em { margin-left: auto; font-style: normal; color: var(--silver-ghost); font-size: .72rem; }

.mock-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mock-dot.ok   { background: #3ecf8e; box-shadow: 0 0 8px rgba(62,207,142,.5); }
.mock-dot.warn { background: #e0965c; box-shadow: 0 0 8px rgba(224,150,92,.5); }


/* =============================================================
   MOBILE BREAKPOINTS
   ============================================================= */

@media (max-width: 600px) { .br-desk { display: none; } }


/* =============================================================
   REDUCED MOTION — blanket override
   ============================================================= */

@media (prefers-reduced-motion: reduce) {

  * { animation: none !important; transition: none !important; }

  [data-reveal],
  [data-fade] { opacity: 1; filter: blur(0); transform: none; }

  .scroll-cue { opacity: 1; }

  .scroll-cue-line { transform: none; opacity: .8; }

  .mark.lit { filter: drop-shadow(0 0 22px rgba(180,185,210,.18)); }

  .build-card:hover { transform: none; }

}

/* =============================================================
   FINAL SYSTEM POLISH — shared page rhythm
   Keep division accents and page-specific components unique; normalize
   only the shared spacing, type rhythm, card anatomy, and responsive gaps.
   ============================================================= */

:root {
  --content-max: 1120px;
  --text-max: 68ch;
  --card-gap: clamp(18px, 2.4vw, 28px);
  --card-pad: clamp(26px, 3vw, 34px);
  --section-gap: clamp(68px, 10vw, 112px);
}

/* Shared page rhythm */
main > section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

section > h2,
section > .eyebrow,
section > .lead {
  margin-left: auto;
  margin-right: auto;
}

section h2 {
  max-width: 24ch;
}

.sub {
  max-width: 58ch;
}

/* Normalize all shared card families without flattening their identities. */
.feature-card,
.process-step,
.build-card,
.proof-card {
  padding: var(--card-pad);
}

.feature-card,
.process-step,
.build-card {
  min-width: 0;
}

.feature-card,
.process-step {
  display: flex;
  flex-direction: column;
}

.feature-card p,
.process-step p,
.build-card p,
.proof-card-quote {
  max-width: 48ch;
}

.feature-card p,
.process-step p,
.build-card p {
  margin-top: 0;
}

.build-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.build-card-arrow {
  margin-top: auto;
  padding-top: 22px;
}

/* The three-division overview needs a clear visual pause before and
   after the cards; this is the area that previously felt cramped. */
.services > .build-grid {
  margin-top: 4px;
}

.services > .lead {
  max-width: 52ch;
  margin-top: clamp(24px, 3vw, 34px);
  margin-bottom: 0;
}

.eco-root {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.eco-root-caption {
  max-width: 34ch;
  text-align: center;
  line-height: 1.55;
}

/* Interior pages: keep the hero compact enough to feel like one system,
   while preserving the stronger visual mark used by division pages. */
.page-hero {
  padding-bottom: clamp(64px, 9vw, 96px);
}

.page-hero .sub {
  max-width: 60ch;
}

.page-hero-actions {
  margin-top: clamp(26px, 4vw, 34px);
}

/* Consistent section title breathing room across cards and panels. */
.feature-grid,
.process-grid,
.build-grid,
.capability-grid,
.contact-form {
  margin-top: 0;
}

.feature-section > .feature-grid,
.process > .process-grid,
.services > .build-grid {
  margin-top: 2px;
}

.approach-panel,
.split-panel,
.code-panel {
  box-shadow: 0 24px 60px -44px rgba(0,0,0,.75);
}

/* Legal pages: cleaner reading measure and more deliberate section spacing. */
.legal-content {
  max-width: 74ch;
}

.legal-content h2 {
  margin-top: clamp(42px, 6vw, 58px);
}

.legal-content p,
.legal-content li {
  max-width: var(--text-max);
}

/* Contact page follows the same vertical rhythm as the division pages. */
.contact-form {
  max-width: 680px;
  gap: 22px;
}

.form-field {
  gap: 9px;
}

/* Footer wrapping is intentionally predictable on narrow screens. */
.footer-inner {
  align-items: flex-start;
}

@media (max-width: 720px) {
  section h2 {
    max-width: 20ch;
  }

  .feature-grid,
  .process-grid,
  .build-grid {
    gap: 18px;
  }

  .page-hero-actions .btn {
    flex: 1 1 180px;
    justify-content: center;
  }

  .footer-inner {
    gap: 18px;
  }

  .footer-links {
    gap: 12px 18px;
  }
}

@media (max-width: 480px) {
  main > section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-card,
  .process-step,
  .build-card,
  .split-panel,
  .approach-panel {
    padding: 24px;
  }

  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero-actions {
    flex-direction: column;
  }

  .page-hero-actions .btn {
    width: 100%;
    /* In a column layout, a 180px flex-basis becomes a 180px button height. */
    flex: 0 0 auto;
  }
}



/* =============================================================
   FINAL SITE-WIDE NORMALIZATION — typography, navigation, rhythm
   ============================================================= */

/* Navigation: understated logo + exact company name. */
.nav-brand {
  gap: 9px;
  height: 40px;
  font-size: 1rem;
  letter-spacing: .08em;
  padding-left: 0;
  color: var(--silver-hi);
  text-shadow: 0 0 18px transparent;
  transition: color .3s var(--ease), text-shadow .3s var(--ease), transform .25s var(--ease);
}

.nav-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

.nav-brand:hover,
.nav-brand:focus-visible {
  color: var(--silver-hi);
  opacity: 1;
  text-shadow: 0 0 18px var(--accent-soft);
  transform: translateY(-1px);
}

/* Menu items: each item gets its own restrained accent glow on hover/focus. */
.mobile-menu {
  gap: clamp(14px, 4vw, 22px);
}

.mobile-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 82vw);
  padding: 9px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(1.65rem, 6vw, 2.45rem);
  transition:
    opacity .5s var(--ease),
    transform .5s var(--ease),
    color .3s var(--ease),
    border-color .3s var(--ease),
    background .3s var(--ease),
    box-shadow .35s var(--ease),
    text-shadow .35s var(--ease);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.mobile-menu a.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 0 18px -4px var(--accent-soft),
    inset 0 0 20px -12px var(--accent-soft);
  text-shadow: 0 0 16px var(--accent-soft);
}

.mobile-menu a[data-home-link] {
  min-width: auto;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 1.1rem;
  border-radius: 999px;
}

/* Typography: bring body copy, labels, card text and section titles into one readable scale. */
body {
  font-size: 17px;
  line-height: 1.68;
}

.sub {
  font-size: 1.08rem;
  line-height: 1.75;
}

section h2 {
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  line-height: 1.15;
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .2em;
  margin-bottom: 20px;
}

.feature-card h3,
.process-step h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-card p,
.process-step p,
.build-card p {
  font-size: 1rem;
  line-height: 1.72;
}

.build-card h3 {
  font-size: 1.95rem;
  line-height: 1.15;
}

.approach-title {
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 1.15;
}

.approach-panel p,
.split-panel p,
.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.78;
}

.eco-root {
  gap: 9px;
  margin-bottom: clamp(34px, 5vw, 52px);
}

.eco-root-label {
  font-size: 1.08rem;
  letter-spacing: .16em;
  line-height: 1.15;
}

.eco-root-caption {
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.7;
}


/* Keep the overall information hierarchy roomy enough to read at normal desktop distance. */
.page-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.1;
}

.feature-grid,
.process-grid,
.build-grid {
  gap: clamp(20px, 2.4vw, 28px);
}

.feature-card,
.process-step,
.build-card,
.approach-panel,
.split-panel {
  padding: clamp(28px, 3.2vw, 36px);
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .sub { font-size: 1.02rem; }
  .eco-root-label { font-size: 1rem; }
  .eco-root-caption { font-size: 1rem; }
  section h2 { font-size: clamp(1.9rem, 7.5vw, 2.45rem); }
  .page-hero h1 { font-size: clamp(2.15rem, 10vw, 3.35rem); }
}

@media (max-width: 480px) {
  .mobile-menu a { min-width: min(300px, 88vw); padding: 8px 18px; }
  .feature-card,
  .process-step,
  .build-card,
  .split-panel,
  .approach-panel { padding: 26px; }
}

/* =============================================================
   FINAL MASTER POLISH — v14
   Shared interaction, spacing, readability, and motion standards.
   ============================================================= */

:root {
  --content-max: 1120px;
  --section-gap: clamp(76px, 10vw, 124px);
  --section-inline: clamp(20px, 4vw, 32px);
}

/* Consistent reading rhythm on all content pages. */
.page-hero .sub,
.section-intro,
.services > .lead {
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  margin-top: -2px;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--silver-dim);
  font-size: 1.08rem;
  line-height: 1.78;
}

.feature-section,
.services,
.process,
.capabilities,
.approach {
  padding-left: var(--section-inline);
  padding-right: var(--section-inline);
}

/* About page: make the company-level content feel distinct from the home page. */
.about-operating-model .feature-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.about-operating-model .feature-card {
  text-align: left;
}

.services > .lead {
  margin-top: -4px;
  margin-bottom: clamp(34px, 5vw, 52px);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* All shared cards use a clean lift + border glow rather than aggressive motion. */
@media (hover: hover) and (pointer: fine) {
  .feature-card,
  .process-step,
  .build-card,
  .capability-chip {
    will-change: transform;
  }

  .feature-card:hover,
  .process-step:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
    box-shadow: 0 18px 42px -34px var(--accent-soft);
  }

  .capability-chip:hover {
    box-shadow: 0 10px 24px -20px var(--accent-soft);
  }
}

/* Persistent brand: nothing but the mark and HefTek. */
.nav-brand {
  white-space: nowrap;
  text-shadow: none;
}

.nav-brand span { display: none; }

/* Menu polish: readable targets, soft glow, no layout shift. */
.mobile-menu a {
  min-height: 52px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a.is-active {
    transform: translateY(-2px) scale(1.01);
  }
}

/* Native document-to-document transitions, progressively enhanced. */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-timing-function: cubic-bezier(.22,1,.36,1); }
::view-transition-old(root) { animation-duration: .28s; }
::view-transition-new(root) { animation-duration: .38s; animation-delay: .04s; }

/* Respect the platform's motion preference. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  .feature-card:hover,
  .process-step:hover,
  .build-card:hover,
  .capability-chip:hover,
  .mobile-menu a:hover { transform: none !important; }
}

/* Keep mobile typography comfortably readable without oversized display text. */
@media (max-width: 720px) {
  .about-operating-model .feature-grid { grid-template-columns: 1fr; }
  .section-intro,
  .services > .lead { font-size: 1.02rem; }
}


/* Subtle reveal staggering: enough hierarchy to guide the eye, never enough to slow the page. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition-delay: var(--reveal-delay, 0ms); }
}

/* Final menu glow correction: ambient light behind the label, never a pill. */
.mobile-menu a,
.mobile-menu a[data-home-link] {
  min-width: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transform: none;
}

.mobile-menu a::before {
  content: "";
  position: absolute;
  inset: 18% 10%;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(22px);
  opacity: 0;
  transform: scale(.78);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  pointer-events: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 28%, transparent);
}

.mobile-menu a:hover::before,
.mobile-menu a:focus-visible::before {
  opacity: .24;
  transform: scale(1);
}

.mobile-menu a.is-active {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 20%, transparent);
}

.mobile-menu a.is-active::before {
  opacity: .08;
  transform: scale(.9);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a.is-active {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu a::before {
    transition: none;
  }
}
