/* Opening block only. Palette, content and lower-page styles remain in styles.css. */
.site-header, .hero {
  --space-micro: 8px;
  --space-component: 16px;
  --space-group: 24px;
  --space-content: 40px;
  --space-feature: 64px;
  --space-section: 96px;
  --opening-gutter: clamp(22px, 5vw, 96px);
  --opening-frame: 1440px;
}
.site-header .frame, .hero .frame {
  width: min(calc(100% - 2 * var(--opening-gutter)), var(--opening-frame));
}
.site-header .header-inner { height: 88px; gap: var(--space-group); }
.site-header .brand { text-decoration: none; }
.site-header .logo-placeholder { height: 50px; aspect-ratio: auto; }
.site-header .desktop-nav a { font-size: 14px; padding: 12px; }
.site-header .header-cta { min-height: 48px; font-size: 12px; padding-inline: var(--space-group); }
.site-header a:focus-visible, .site-header button:focus-visible, .hero a:focus-visible {
  outline: 2px solid var(--text); outline-offset: 6px;
}
.hero { min-height: 0; scroll-margin-top: 88px; }
.hero .hero-stage {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: var(--space-feature);
  min-height: 690px;
  padding-block: var(--space-section);
}
.hero .hero-copy { padding: 0; min-width: 0; }
.hero .eyebrow { font-size: 12px; line-height: 1.5; margin-bottom: var(--space-group); }
.hero h1 { font-size: clamp(44px, 3.9vw, 60px); line-height: 1.12; letter-spacing: -.035em; }
.hero .hero-lead { max-width: 660px; margin-top: var(--space-content); font-size: 18px; line-height: 1.65; }
.hero .hero-actions { gap: var(--space-component); margin-top: var(--space-content); }
.hero .button { min-height: 48px; padding-inline: var(--space-group); font-size: 12px; }
.hero .hero-system { min-height: 440px; margin: 0; }
.hero .system-field { inset: 0; }
.hero .aperture-core { width: 50%; }
.hero .aperture-halo { width: 92%; }
.hero .orbit-a { width: 70%; height: auto; aspect-ratio: 1; }
.hero .orbit-b { width: 86%; height: auto; aspect-ratio: 1; }
.hero .orbit-c { width: 100%; height: auto; aspect-ratio: 1; }
.hero .node { font-size: 10px; letter-spacing: .1em; }
.hero .node-a { left: 4%; top: 12%; }
.hero .node-b { right: 4%; top: 17%; }
.hero .node-c { left: 4%; bottom: 21%; }
.hero .node-d { right: 4%; bottom: 25%; }
.hero .system-readout { right: 0; bottom: 0; }
.hero .system-readout span, .hero .system-readout small { font-size: 10px; letter-spacing: .08em; }
.hero .workflow-ribbon { position: relative; }
.hero .workflow-track {
  width: min(calc(100% - 2 * var(--opening-gutter)), var(--opening-frame));
  margin-inline: auto;
  padding: 0;
  min-height: 80px;
  gap: var(--space-group);
  font-size: 12px;
  letter-spacing: .08em;
}
@media (min-width: 821px) and (max-width: 1180px) {
  .hero .hero-stage { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--space-content); }
  .hero h1 { font-size: clamp(36px, 3.9vw, 46px); }
  .hero .hero-system { min-height: 400px; }
  .hero .node { font-size: 9px; }
  .hero .workflow-track { gap: var(--space-component); font-size: 11px; }
}
@media (max-width: 820px) {
  .site-header .header-inner { height: 72px; }
  .site-header .logo-placeholder { height: 44px; }
  .hero { scroll-margin-top: 72px; }
  .hero .hero-stage { display: block; min-height: 0; padding-block: var(--space-feature); }
  .hero h1 { font-size: clamp(32px, 6.8vw, 52px); }
  .hero .hero-lead { font-size: 16px; margin-top: var(--space-group); }
  .hero .hero-actions { margin-top: var(--space-group); }
  .hero .hero-system { margin-top: var(--space-feature); min-height: 400px; }
  .hero .aperture-core { width: min(50%, 230px); }
  .hero .orbit-a { width: min(70%, 330px); }
  .hero .orbit-b { width: min(86%, 420px); }
  .hero .orbit-c { width: min(100%, 510px); }
  .hero .workflow-track { width: 100%; margin: 0; min-height: 72px; padding: var(--space-group) var(--opening-gutter); }
}

/* Approved depth study: homepage opening only; no layout or motion changes. */
.opening-depth {
  --opening-highlight: rgba(255, 255, 255, .055);
  --opening-contact-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  --opening-ambient-shadow: 0 28px 72px rgba(0, 0, 0, .22);
}
.opening-depth .site-header {
  box-shadow: inset 0 1px 0 var(--opening-highlight), var(--opening-contact-shadow);
}
.opening-depth .hero .system-field {
  background: radial-gradient(ellipse at 52% 48%, color-mix(in srgb, var(--blue) 24%, transparent), color-mix(in srgb, var(--blue) 7%, transparent) 36%, transparent 72%);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 78%, transparent);
}
.opening-depth .hero .orbit-b {
  mask-image: linear-gradient(135deg, transparent 3%, #000 30%, #000 65%, transparent 97%);
}
.opening-depth .hero .orbit-c {
  mask-image: linear-gradient(35deg, transparent 8%, #000 36%, #000 61%, transparent 94%);
}
.opening-depth .hero .aperture-core {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -12px 28px rgba(0,0,0,.2),
    0 0 0 22px rgba(255,255,255,.016), 0 0 0 23px rgba(255,255,255,.07),
    var(--opening-contact-shadow), var(--opening-ambient-shadow),
    0 0 90px color-mix(in srgb, var(--blue) 18%, transparent);
}
.opening-depth .hero .aperture-core::before {
  mask-image: radial-gradient(circle, transparent 0 46%, #000 48% 61%, rgba(0,0,0,.6) 77%, transparent 100%);
}
.opening-depth .hero .button-quiet {
  box-shadow: inset 0 1px 0 var(--opening-highlight), 0 8px 24px rgba(0,0,0,.12);
}

/* Supplied Cape Town image: decorative background, independent of layout. */
.opening-depth .hero-landscape {
  position: absolute; inset: 0 0 80px; pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}
.opening-depth .hero-landscape img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.opening-depth .hero-landscape::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,13,25,.78) 0%, rgba(0,13,25,.64) 43%, rgba(0,13,25,.22) 76%, rgba(0,13,25,.28));
}
@media (max-width: 820px) {
  .opening-depth .hero-landscape { inset: 0 0 auto; height: 760px; }
  .opening-depth .hero-landscape img { object-position: 62% center; }
  .opening-depth .hero-landscape::after { background: rgba(0,13,25,.82); }
}

/* Landscape now supplies the hero visual; keep the established copy column. */
@media (max-width: 820px) {
  .opening-depth .hero .hero-stage { min-height: 760px; }
}

/* VIT logo dimensions. */
.site-header .brand .vit-logo { width: 174px; height: 50px; object-fit: contain; object-position: left center; }
.footer-brand .vit-logo { display: block; width: 180px; height: 52px; object-fit: contain; object-position: left center; }
@media (max-width:820px) { .site-header .brand .vit-logo { width: 150px; height: 44px; } }


/* Shared navigation geometry for the homepage, services and tools. */
@media screen {
  body .site-header[data-header] {
    background: rgb(0 13 25 / 92%);
    border-bottom-color: #b5d8f033;
  }
  body .site-header[data-header]::after {
    height: 1px;
    opacity: .62;
    mask-image: none;
  }
  body .site-header[data-header] .header-inner {
    width: min(calc(100% - 2 * clamp(24px, 5vw, 72px)), 1280px);
    height: 80px;
  }
  body .site-header[data-header] .header-cta {
    background: #071827;
    border: 1px solid #76afd4;
    border-radius: 5px;
    color: var(--text);
  }
  body .site-header[data-header] .header-cta:hover { background: #123247; }
  body .site-header[data-header] .menu-button i { background: var(--soft); }
  body .site-header[data-header] :is(a, button):focus-visible {
    outline: 2px solid #a8d9fa;
    outline-offset: 3px;
  }
  @media (max-width: 820px) {
    body .site-header[data-header] .header-inner { height: 72px; }
  }
}
