/* ==========================================================================
   Lamplight Digital — Design System
   Mobile-first: base rules target small viewports; min-width queries
   progressively enhance for tablet (600px) / desktop (960px) / wide (1200px).
   ========================================================================== */

:root {
  /* Brand palette — unchanged from existing brand identity */
  --bg-dark: #07090b;
  --surface-base: #101418;
  --surface-card: #151a1f;
  --surface-raised: #1b2127;
  --text-bright: #f4f6f8;
  --text-dimmed: #96a3ae;
  --text-faint: #5c6a75;
  --border-hair: rgba(255, 255, 255, 0.08);
  --border-hair-soft: rgba(255, 255, 255, 0.05);

  --canary-yellow: #FFD700;
  --canary-yellow-dim: #d9b800;
  --teal-accent: #00A79F;
  --tobacco-mid: #96642F;
  --copper-hi: #c87a32;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-core: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-standard: 8px;
  --radius-lg: 16px;
  --width-limit: 1240px;
  --width-narrow: 760px;

  /* Fluid type scale — mobile-first, scales up via clamp() so it needs
     fewer breakpoint overrides than fixed rem values */
  --fs-h1: clamp(2.1rem, 6vw + 1rem, 4.2rem);
  --fs-h2: clamp(1.7rem, 4vw + 1rem, 2.6rem);
  --fs-h3: clamp(1.3rem, 2.4vw + 1rem, 1.7rem);
  --fs-lead: clamp(1.05rem, 1.6vw + 0.8rem, 1.35rem);
  --fs-eyebrow: 0.8rem;

  --space-section: clamp(64px, 12vw, 140px);
  --space-gap-lg: clamp(32px, 6vw, 64px);

  --header-height: 64px;
}

/* ==========================================================================
   01. RESET & BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-bright);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p { max-width: 68ch; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-core);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

svg { display: block; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* Respect reduced-motion preference sitewide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible focus ring for keyboard users, invisible for mouse users */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--canary-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 300;
  background: var(--canary-yellow);
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-standard);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.wrapper {
  max-width: var(--width-limit);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 600px) {
  .wrapper { padding: 0 32px; }
}

@media (min-width: 960px) {
  .wrapper { padding: 0 40px; }
}

/* ==========================================================================
   02. SITE HEADER & MOBILE-FIRST NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hair-soft);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  max-width: var(--width-limit);
  margin: 0 auto;
  min-height: var(--header-height);
}

@media (min-width: 600px) {
  .nav-container { padding: 16px 32px; }
}

@media (min-width: 960px) {
  .nav-container { padding: 18px 40px; }
}

.brand-logo img {
  display: block;
  height: 22px;
  width: auto;
}

@media (min-width: 600px) {
  .brand-logo img { height: 26px; }
}

.nav-primary-links {
  display: none;
}

@media (min-width: 900px) {
  .nav-primary-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .nav-primary-links a { color: var(--text-dimmed); }
  .nav-primary-links a:hover,
  .nav-primary-links a[aria-current="page"] { color: #ffffff; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-right .nav-cta {
  display: none;
}

@media (min-width: 600px) {
  .nav-right .nav-cta { display: inline-flex; }
}

/* Hamburger toggle — visible on all viewports below 900px */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-standard);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  transition: var(--transition-core);
}

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

/* Full-screen mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-dark);
  padding: calc(var(--header-height) + 24px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links a {
  display: block;
  padding: 16px 4px;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-hair-soft);
  min-height: 44px;
}

.mobile-menu-links a[aria-current="page"] { color: var(--canary-yellow); }

.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-foot .phone-anchor {
  font-size: 1.2rem;
  font-weight: 700;
}

body.menu-open { overflow: hidden; }

/* ==========================================================================
   03. BUTTONS
   ========================================================================== */
.action-btn, .action-btn-secondary, .platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-family: var(--font-main);
  font-weight: 700;
  border-radius: var(--radius-standard);
  cursor: pointer;
  transition: var(--transition-core);
  border: none;
}

.action-btn {
  background-color: var(--canary-yellow);
  color: #000000;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 13px 24px;
}

.action-btn:hover, .action-btn:focus-visible {
  background-color: #ffffff;
  transform: translateY(-1px);
}

.action-btn-secondary {
  background-color: transparent;
  border: 2px solid var(--canary-yellow);
  color: #ffffff;
  font-size: 0.95rem;
  padding: 13px 30px;
}

.action-btn-secondary:hover, .action-btn-secondary:focus-visible {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}

.dismiss-btn {
  background: transparent;
  border: 1px solid var(--border-hair);
  color: var(--text-dimmed);
  padding: 0 24px;
  min-height: 48px;
  border-radius: var(--radius-standard);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.btn-block { width: 100%; }
@media (min-width: 600px) { .btn-block { width: auto; } }

/* ==========================================================================
   04. HERO — mobile gets a static gradient/poster treatment;
   video only loads for larger viewports (progressive enhancement).
   ========================================================================== */
.hero-viewport {
  position: relative;
  width: 100%;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 32px);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(0, 167, 159, 0.08) 0%, transparent 55%),
    var(--bg-dark);
}

@media (min-width: 600px) {
  .hero-viewport { padding-top: calc(var(--header-height) + 48px); }
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
}

@media (min-width: 900px) {
  .hero-video-wrapper { display: block; }
  .hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(7, 9, 11, 0.55) 100%),
    linear-gradient(to top, var(--bg-dark) 0%, rgba(7, 9, 11, 0.5) 55%, rgba(7, 9, 11, 0.15) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 64px 0 64px;
}

@media (min-width: 600px) {
  .hero-content { padding-top: 80px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--canary-yellow);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--canary-yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.hero-content h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 16ch;
}

.hero-content p.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-dimmed);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .hero-action-row { flex-direction: row; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-hair-soft);
  max-width: 560px;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #ffffff;
  font-weight: 800;
}

.hero-stats span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ==========================================================================
   05. SECTION HEADERS / GENERIC LAYOUT
   ========================================================================== */
section { padding: var(--space-section) 0; }

.section-border-top {
  border-top: 1px solid var(--border-hair-soft);
}

.section-eyebrow {
  display: inline-block;
  color: var(--canary-yellow);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.section-head {
  max-width: var(--width-narrow);
  margin-bottom: 48px;
}

.section-head h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.section-head p { color: var(--text-dimmed); font-size: 1.1rem; }

.grid-split {
  display: grid;
  gap: var(--space-gap-lg);
  align-items: start;
}

@media (min-width: 900px) {
  .grid-split { grid-template-columns: 1.1fr 0.9fr; }
}

.intro-narrative .accent-callout {
  color: var(--canary-yellow);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.intro-narrative p {
  color: var(--text-dimmed);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   06. FOUNDER / ABOUT PROFILE
   ========================================================================== */
.founder-layout {
  display: grid;
  gap: var(--space-gap-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .founder-layout { grid-template-columns: 0.75fr 1.25fr; }
}

.founder-badge {
  border: 1px solid var(--border-hair-soft);
  background-color: var(--surface-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}

.founder-badge img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.founder-badge-caption {
  padding: 24px;
}

.founder-title-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--canary-yellow);
  margin-bottom: 6px;
}

.founder-badge h3 { font-size: 1.5rem; font-weight: 700; }

.founder-narrative-text p {
  font-size: 1.1rem;
  color: var(--text-dimmed);
  margin-bottom: 24px;
}

.founder-link-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--canary-yellow);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.founder-link-btn:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* ==========================================================================
   07. SERVICES ACCORDION
   ========================================================================== */
.accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-node {
  background-color: var(--surface-base);
  border: 1px solid var(--border-hair-soft);
  border-radius: var(--radius-standard);
  overflow: hidden;
  transition: var(--transition-core);
}

.accordion-node.active { border-color: rgba(255, 215, 0, 0.25); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  min-height: 44px;
  color: inherit;
}

@media (min-width: 600px) {
  .accordion-trigger { padding: 26px 32px; }
}

.accordion-trigger h3 {
  font-size: 1.15rem;
  font-weight: 700;
  transition: var(--transition-core);
}

@media (min-width: 600px) {
  .accordion-trigger h3 { font-size: 1.3rem; }
}

.accordion-node.active .accordion-trigger h3 { color: var(--canary-yellow); }

.indicator-cross {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.indicator-cross::before, .indicator-cross::after {
  content: '';
  position: absolute;
  background-color: var(--text-dimmed);
  transition: var(--transition-core);
}

.indicator-cross::before { top: 7px; left: 0; width: 16px; height: 2px; }
.indicator-cross::after { top: 0; left: 7px; width: 2px; height: 16px; }

.accordion-node.active .indicator-cross::after { transform: rotate(90deg); opacity: 0; }
.accordion-node.active .indicator-cross::before { transform: rotate(180deg); background-color: var(--canary-yellow); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--text-dimmed);
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
  opacity: 0;
}

@media (min-width: 600px) {
  .accordion-panel { padding: 0 32px; }
}

.accordion-node.active .accordion-panel {
  max-height: 320px;
  opacity: 1;
  padding-bottom: 24px;
}

.panel-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.panel-subtags span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--canary-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.view-all-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--canary-yellow);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ==========================================================================
   08. LOGO CLOUD
   ========================================================================== */
.logo-cloud-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 28px 16px;
  margin-top: 40px;
}

@media (min-width: 600px) {
  .logo-cloud-layout { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
}

@media (min-width: 960px) {
  .logo-cloud-layout { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 44px 32px; }
}

.logo-cloud-anchor {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  transition: var(--transition-core);
}

.logo-cloud-anchor img {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6) opacity(0.5);
  transition: var(--transition-core);
}

.logo-cloud-anchor:hover img, .logo-cloud-anchor:focus-visible img {
  filter: grayscale(0) brightness(1) opacity(1);
  transform: scale(1.04);
}

/* ==========================================================================
   09. CASE STUDIES
   ========================================================================== */
.case-container {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

@media (min-width: 900px) {
  .case-container { gap: 100px; }
}

.case-entry {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .case-entry { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .case-entry.flipped { direction: rtl; }
  .case-entry.flipped .case-narrative { direction: ltr; }
}

.case-visual {
  background-color: var(--surface-base);
  border: 1px solid var(--border-hair-soft);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
}

.case-visual img { border-radius: calc(var(--radius-lg) - 6px); width: 100%; display: block; }

.case-narrative .case-index {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--canary-yellow);
  font-weight: 700;
  margin-bottom: 12px;
}

.case-narrative h3 { font-size: var(--fs-h3); margin-bottom: 14px; }

.case-narrative p {
  color: var(--text-dimmed);
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.case-tags span {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hair);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ==========================================================================
   10. CARD GRIDS (services hub, capability grids)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-base);
  border: 1px solid var(--border-hair-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-core);
  height: 100%;
}

.service-card:hover, .service-card:focus-within {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.service-card .card-index {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--canary-yellow);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dimmed); font-size: 0.98rem; margin-bottom: 20px; flex-grow: 1; }
.service-card .card-link { font-weight: 700; color: var(--canary-yellow); font-size: 0.9rem; }
.service-card:hover .card-link { color: #ffffff; }

/* ==========================================================================
   11. INCUBATOR / FEATURED PLATFORM BLOCK
   ========================================================================== */
.incubator-block {
  display: grid;
  gap: 32px;
  align-items: center;
  background-color: var(--surface-base);
  border: 1px solid var(--border-hair-soft);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

@media (min-width: 900px) {
  .incubator-block { grid-template-columns: 0.5fr 1.5fr; padding: 56px; gap: 56px; }
}

.incubator-logo img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.incubator-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--canary-yellow);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.incubator-text h3 { font-size: 1.7rem; margin-bottom: 4px; }
.incubator-text h4 { font-size: 1.05rem; font-weight: 500; color: var(--text-dimmed); margin-bottom: 22px; }
.incubator-text p { color: var(--text-dimmed); margin-bottom: 16px; font-size: 1.02rem; }

/* ==========================================================================
   12. CTA / CONVERSION BLOCK
   ========================================================================== */
.conversion-cta {
  background-color: var(--surface-base);
  border-top: 1px solid var(--border-hair-soft);
}

.cta-flex {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 900px) {
  .cta-flex { flex-direction: row; justify-content: space-between; align-items: center; gap: 64px; }
}

.cta-left h2 { font-size: var(--fs-h2); line-height: 1.15; }
.cta-right { max-width: 520px; }
.cta-right p { color: var(--text-dimmed); font-size: 1.05rem; margin-bottom: 28px; }

/* ==========================================================================
   13. FORMS & MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(7, 9, 11, 0.97);
  backdrop-filter: blur(16px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 24px 16px 40px;
}

@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 40px 20px; }
}

.modal-overlay.is-open { display: flex; }

.modal-shell {
  background-color: var(--surface-card);
  border: 1px solid var(--border-hair);
  border-top: 4px solid var(--canary-yellow);
  border-radius: var(--radius-standard);
  width: 100%;
  max-width: 720px;
  padding: 28px 22px;
  margin-top: calc(var(--header-height) + 12px);
}

@media (min-width: 600px) {
  .modal-shell { padding: 48px; margin-top: 0; }
}

.modal-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
@media (min-width: 600px) { .modal-head h2 { font-size: 1.85rem; } }
.modal-head p { color: var(--text-dimmed); margin-bottom: 28px; font-size: 0.95rem; }

.system-form { display: grid; grid-template-columns: 1fr; gap: 14px; }

@media (min-width: 600px) {
  .system-form { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.system-form .full-row { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dimmed);
  margin-bottom: 6px;
}

.input-ctrl {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hair);
  border-radius: 6px;
  padding: 14px;
  min-height: 48px;
  font-family: var(--font-main);
  color: #ffffff;
  font-size: 1rem;
}

textarea.input-ctrl { min-height: 110px; resize: vertical; }

.input-ctrl:focus-visible {
  border-color: var(--canary-yellow);
  background-color: rgba(255, 215, 0, 0.02);
}

.dropdown-ctrl {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2396a3ae' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
}

.form-foot-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

@media (min-width: 600px) {
  .form-foot-actions { flex-direction: row; }
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 16px;
}

/* Standalone contact-page form card (no modal chrome) */
.contact-form-card {
  background-color: var(--surface-base);
  border: 1px solid var(--border-hair-soft);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

@media (min-width: 600px) {
  .contact-form-card { padding: 40px; }
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #040607;
  border-top: 1px solid var(--border-hair-soft);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 0.6fr 0.6fr 0.8fr; gap: 32px; }
}

.footer-brandmark { height: 22px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: var(--text-dimmed); font-size: 0.85rem; max-width: 32ch; }

.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--canary-yellow);
  margin-bottom: 16px;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dimmed);
  font-size: 0.92rem;
}

.footer-links-column a:hover, .footer-links-column a:focus-visible { color: #ffffff; }

.footer-location address {
  font-style: normal;
  color: var(--text-dimmed);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-communication { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
.footer-communication .phone-anchor { color: #ffffff; font-weight: 600; }
.footer-communication .email-anchor { color: var(--text-dimmed); }

.footer-copyright-bar {
  border-top: 1px solid var(--border-hair-soft);
  padding: 22px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

.footer-copyright-bar .wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

@media (min-width: 700px) {
  .footer-copyright-bar .wrapper { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   15. BREADCRUMBS
   ========================================================================== */
.breadcrumb-nav {
  padding: 24px 0 0;
}

/* Whichever section sits first inside <main> is responsible for clearing
   the fixed header — keeps top spacing identical whether that's a hero
   (home, about, contact, services hub) or a breadcrumb (service pages). */
main > .breadcrumb-nav:first-child,
main > .service-hero:first-child {
  padding-top: calc(var(--header-height) + 32px);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.breadcrumb-list a { color: var(--text-dimmed); }
.breadcrumb-list a:hover { color: var(--canary-yellow); }
.breadcrumb-list li[aria-current="page"] { color: var(--text-bright); }

/* ==========================================================================
   16. SERVICE / SUB PAGE LAYOUT
   ========================================================================== */
.service-hero {
  padding: 40px 0 56px;
  background: radial-gradient(circle at 90% 10%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-hair-soft);
}

@media (min-width: 600px) {
  main > .service-hero:first-child { padding-top: calc(var(--header-height) + 48px); }
  main > .breadcrumb-nav:first-child { padding-top: calc(var(--header-height) + 48px); }
}

.service-hero h1 { font-size: var(--fs-h1); line-height: 1.08; margin-bottom: 20px; }
.hero-lead-static { font-size: var(--fs-lead); color: var(--text-dimmed); max-width: 60ch; }

.specs-grid, .capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 600px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (min-width: 960px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.spec-node, .capability-node {
  background-color: var(--surface-base);
  padding: 28px;
  border-radius: var(--radius-standard);
  border: 1px solid var(--border-hair-soft);
}

@media (min-width: 600px) {
  .spec-node { padding: 32px; }
  .capability-node { padding: 40px; }
}

.spec-node h3 { color: var(--canary-yellow); font-size: 1.2rem; margin-bottom: 14px; }
.capability-node h3 { color: var(--copper-hi); font-size: 1.3rem; margin-bottom: 14px; }
.spec-node p, .capability-node p { color: var(--text-dimmed); font-size: 0.95rem; }
.capability-node p { font-size: 1rem; line-height: 1.7; }

/* Pull quote — editorial (Verge-style) accent element */
.pull-quote {
  border-left: 3px solid var(--canary-yellow);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: #ffffff;
  max-width: 46ch;
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dimmed);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
}

.faq-item {
  background-color: var(--surface-base);
  border: 1px solid var(--border-hair-soft);
  border-radius: var(--radius-standard);
  padding: 4px 20px;
}

@media (min-width: 600px) {
  .faq-item { padding: 4px 28px; }
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--canary-yellow);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  color: var(--text-dimmed);
  padding-bottom: 22px;
  font-size: 0.98rem;
}

/* Numbered process steps */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  counter-reset: process;
}

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-hair-soft);
}

.process-step:first-child { border-top: 1px solid var(--border-hair-soft); }

.process-step .step-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--canary-yellow);
  font-variant-numeric: tabular-nums;
}

.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--text-dimmed); font-size: 0.98rem; }

/* ==========================================================================
   17. 404 PAGE
   ========================================================================== */
.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  text-align: center;
}

.error-page .wrapper { display: flex; flex-direction: column; align-items: center; }

.error-code {
  font-size: clamp(4rem, 20vw, 8rem);
  font-weight: 800;
  color: var(--canary-yellow);
  line-height: 1;
}

.error-page h1 { margin: 16px 0; font-size: var(--fs-h2); }
.error-page p { color: var(--text-dimmed); margin-bottom: 32px; max-width: 46ch; }
