/* ============================================================
   PRISM CLOUD SOLUTIONS — Company site
   One header, one footer, one token set across all pages.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Dark */
  --canvas-dark: #080F1D;
  --canvas-dark-2: #0B1626;
  --panel: #101C30;
  --panel-edge: #16294a;
  --ink: #F2F6FF;
  --ink-2: #B6C5DD;
  --line: #273A57;
  --accent: #79ADFF;
  --warm: #FFAC70;
  --btn: #2F6FE8;
  --btn-hover: #2459C6;

  /* Light */
  --canvas-light: #F0F5FC;
  --ink-light: #10213D;
  --ink-light-2: #46618C;
  --link-light: #1754AA;
  --card-line: #D7E2F2;
  --white: #FFFFFF;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --content: 1200px;
  --gutter: 32px;
  --section-y: 80px;
  --radius: 16px;
  --radius-sm: 12px;

  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas-dark);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }

a { color: var(--accent); }

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

.section--light :focus-visible { outline-color: var(--link-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--dark,
.section--dark-2 { background: var(--canvas-dark); color: var(--ink); }
.section--dark-2 { background: var(--canvas-dark-2); }
.section--light { background: var(--canvas-light); color: var(--ink-light); }

.section-title {
  font-size: 40px;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 12px;
}

.section-lead {
  margin-top: 14px;
  font-size: 18px;
  max-width: 58ch;
}
.section--light .section-lead { color: var(--ink-light-2); }
.section--dark .section-lead { color: var(--ink-2); }

.visually-hidden {
  position: absolute !important;
  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;
  left: 16px; top: -56px;
  z-index: 100;
  background: var(--btn);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons / pills ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button .arrow { font-family: var(--font); font-weight: 700; }

.button--accent { background: var(--btn); color: #fff; }
.button--accent:hover { background: var(--btn-hover); }

.button--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.button--outline:hover { background: rgba(121, 173, 255, 0.12); }

.button[disabled] { opacity: 0.55; cursor: not-allowed; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: 0.01em;
}
/* amber outlined status pills (dark surfaces) */
.pill--preview, .pill--planned {
  color: var(--warm);
  border-color: rgba(255, 172, 112, 0.55);
  background: rgba(255, 172, 112, 0.08);
}
.pill--planned {
  color: var(--accent);
  border-color: rgba(121, 173, 255, 0.5);
  background: rgba(121, 173, 255, 0.08);
}
/* status pills on light surfaces */
.pill--on-light {
  color: #8A4B1F;
  border-color: #F0B983;
  background: #FFE9D4;
}
.pill--on-light.planned {
  color: var(--link-light);
  border-color: #9FBEE8;
  background: #DCE9FF;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 15, 29, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.primary-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--canvas-dark);
  color: var(--ink);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 580px) 1fr;
  align-items: center;
  min-height: 520px;
  padding-block: 56px;
}

.hero-copy { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.hero-lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 44ch;
}
.hero-actions { margin-top: 32px; }

/* art bleeds to the right edge behind the copy, like the reference */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  z-index: 0;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 45%;
}
/* fade the art's left edge into the canvas so text stays clear of the beams */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--canvas-dark) 0%, rgba(8, 15, 29, 0.6) 34%, transparent 62%);
  pointer-events: none;
}

/* compact heroes (Products / Contact / About): framed right-hand art */
.hero--compact .hero-grid {
  min-height: 0;
  padding-block: 40px 56px;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 48px;
}
.hero--compact .hero-title { font-size: clamp(34px, 4vw, 56px); }
.hero--compact .hero-art {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  width: auto;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero--compact .hero-art img {
  position: relative;
  inset: auto;
  min-height: 280px;
  height: 100%;
}
.hero--compact .hero-art::before {
  background: linear-gradient(90deg, rgba(8, 15, 29, 0.75) 0%, rgba(8, 15, 29, 0.35) 38%, transparent 66%);
}

/* ---------- Audience (home, light) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
}
.audience-item {
  padding: 4px 32px;
  border-left: 1px solid var(--card-line);
}
.audience-item:first-child { padding-left: 0; border-left: 0; }
.audience-item h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 20px;
  color: var(--ink-light);
}
.audience-item p { margin-top: 10px; color: var(--ink-light-2); }
.audience-item img { width: 34px; height: 34px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--card-line);
  box-shadow: 0 2px 10px rgba(16, 33, 61, 0.05);
}
.service-card img { width: 32px; height: 32px; }
.service-card h3 { font-size: 19px; margin-top: 20px; color: var(--ink-light); }
.service-card p { margin-top: 10px; color: var(--ink-light-2); font-size: 15.5px; }
/* dark-surface variant */
.section--dark .service-card,
.section--dark-2 .service-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}
.section--dark .service-card h3,
.section--dark-2 .service-card h3 { color: var(--ink); }
.section--dark .service-card p,
.section--dark-2 .service-card p { color: var(--ink-2); }
/* numbered step variant (How we work) */
.service-card .seq-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #9FBEE8;
  background: var(--canvas-light);
  color: var(--ink-light);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
}
/* three-across variant for step cards */
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .services-grid--3 { grid-template-columns: 1fr; }
}

/* ---------- Portfolio (home, dark) ---------- */
.portfolio-grid { margin-top: 44px; }

.card-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
  gap: 24px;
  align-items: center;
  min-height: 240px;
  padding: 36px 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(121, 173, 255, 0.65);
  background:
    radial-gradient(120% 160% at 85% 10%, rgba(121, 173, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #0E1E38 0%, var(--canvas-dark-2) 100%);
  box-shadow: 0 0 0 4px rgba(121, 173, 255, 0.09);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.card-featured:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.card-featured .card-copy { min-width: 0; }
.card-featured h3 {
  font-size: 38px;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.card-featured p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 44ch;
}
.card-featured .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 800;
  color: var(--accent);
}
.card-featured .card-link .arrow { transition: transform 0.15s ease; }
.card-featured:hover .card-link .arrow { transform: translateX(4px); }
.card-featured-art { position: relative; justify-self: end; width: 100%; }
.card-featured-art img {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  border-radius: 10px;
}

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

.card-planned {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.card-planned h3 {
  font-size: 24px;
  margin-top: 16px;
  max-width: 20ch;
}
.card-planned p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 34ch; }
.card-planned .card-icon {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 34px;
  height: 34px;
  opacity: 0.9;
}
.card-planned .card-art {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.95;
}

/* ---------- CostScope story / chart ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.story-copy h2 { font-size: 40px; letter-spacing: -0.02em; }
.story-copy p { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }
/* light-surface variant (Products featured section) */
.section--light .story-copy h2 { color: var(--ink-light); }
.section--light .story-copy p { color: var(--ink-light-2); }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-weight: 800;
  color: var(--accent);
}
.story-link .arrow { transition: transform 0.15s ease; }
.story-link:hover .arrow { transform: translateX(4px); }
.section--light .story-link { color: var(--link-light); }

.spend-chart {
  margin: 0;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0E1E38 0%, var(--canvas-dark-2) 100%);
  color: var(--ink);
}
.spend-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spend-chart-head h3 { font-size: 20px; }
.spend-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.spend-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}
.spend-total strong { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.spend-total span { color: var(--ink-2); font-size: 14px; }
.spend-chart svg { width: 100%; height: auto; margin-top: 8px; }
.spend-breakdown {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.spend-breakdown li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.spend-breakdown .dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex: none;
}
.spend-breakdown strong { color: var(--ink); font-weight: 700; }
.breakdown-label {
  width: 100%;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.8;
}

/* chart svg internals */
.spend-chart .grid-line { stroke: var(--line); stroke-width: 1; opacity: 0.7; }
.spend-chart .axis-text { fill: var(--ink-2); font-size: 11px; font-family: var(--font); }
.spend-chart .x-label { fill: var(--ink-2); font-size: 12.5px; font-family: var(--font); font-weight: 600; }
.spend-chart .bar-dot { fill: var(--warm); }
.spend-chart .bar-line { stroke: var(--warm); stroke-width: 2; fill: none; }

/* ---------- Principles (light) ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.principle-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--card-line);
  box-shadow: 0 2px 10px rgba(16, 33, 61, 0.05);
}
.principle-card img { width: 32px; height: 32px; }
.principle-card h3 { font-size: 19px; margin-top: 20px; color: var(--ink-light); }
.principle-card p { margin-top: 10px; color: var(--ink-light-2); font-size: 15.5px; }

/* principle cards on dark (About reuses the same set) */
.section--dark .principle-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}
.section--dark .principle-card h3 { color: var(--ink); }
.section--dark .principle-card p { color: var(--ink-2); }

/* ---------- Purpose (About, light) ---------- */
.purpose-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.purpose-grid h2 {
  font-size: 44px;
  letter-spacing: -0.02em;
  max-width: 10ch;
}
.purpose-copy {
  padding-left: 28px;
  border-left: 2px solid var(--card-line);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-light);
}
.purpose-copy em { font-style: normal; font-weight: 700; }

/* ---------- Roadmap sequence (About, light) ---------- */
.sequence {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.sequence-item {
  position: relative;
  padding: 40px 28px 0 0;
}
.sequence-item + .sequence-item { padding-left: 28px; }
/* connector line through the circles */
.sequence-item::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #C6D8EF;
}
.sequence-item:first-child::before { left: 20px; }
.sequence-item:last-child::before { width: 41px; }
.sequence-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  background: var(--canvas-light);
  border: 2px solid #9FBEE8;
  color: var(--ink-light);
}
.sequence-item.is-live .sequence-num {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
.sequence-item h3 { font-size: 21px; margin-top: 22px; color: var(--ink-light); }
.sequence-item p { margin-top: 8px; color: var(--ink-light-2); font-size: 15.5px; }
.sequence-item .pill { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.faq-list { margin: 0; }
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .faq-icon {
  flex: none;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 4px 24px;
  color: var(--ink-2);
  max-width: 56ch;
}
.faq-list a { font-weight: 700; }

/* ---------- CTA band + product strip ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--canvas-dark-2);
}
.band::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -58%;
  width: 62%;
  height: 150%;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 38%, rgba(121, 173, 255, 0.32) 46%, rgba(121, 173, 255, 0.06) 53%, transparent 58%),
    linear-gradient(112deg, transparent 56%, rgba(255, 172, 112, 0.30) 64%, transparent 71%);
  filter: blur(1px);
}
.band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 64px;
}
.band h2 { font-size: 40px; letter-spacing: -0.02em; }
.band .band-sub { margin-top: 12px; color: var(--ink-2); font-size: 17px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.enquiry-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.enquiry-card:hover { border-color: var(--accent); text-decoration: none; }
.enquiry-card img { width: 28px; height: 28px; }
.enquiry-card h3 { grid-column: 1 / -1; font-size: 19px; margin-top: 16px; color: var(--ink); }
.enquiry-card p { grid-column: 1 / -1; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.enquiry-card .arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}
.enquiry-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  min-height: 44px;
  color: var(--link-light);
  font-weight: 600;
  text-decoration: none;
}
.enquiry-mail:hover { text-decoration: underline; }
.enquiry-mail img { width: 22px; height: 22px; }

.contact-form-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--card-line);
  box-shadow: 0 2px 14px rgba(16, 33, 61, 0.06);
  color: var(--ink-light);
}
.contact-form-card .field { margin-bottom: 18px; }
.contact-form-card label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink-light);
}
.contact-form-card label .optional { font-weight: 500; color: var(--ink-light-2); }
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-line);
  background: var(--white);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink-light);
}
.contact-form-card textarea { min-height: 120px; resize: vertical; }
.contact-form-card ::placeholder { color: #8496B5; }
.contact-form-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2346618C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form-card :is(input, select, textarea):focus {
  outline: 3px solid rgba(47, 111, 232, 0.35);
  outline-offset: 0;
  border-color: var(--btn);
}
.contact-form-card :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #D64545;
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #B42323;
}
.field.has-error .field-error { display: block; }

.form-status {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  min-height: 0;
}
.form-status:empty { margin: 0; }
.form-status.error { color: #B42323; }
.form-status.ok { color: #1E7A45; }

.form-success {
  margin: 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #BFE3CB;
  color: var(--ink-light);
}
.form-success h3 { font-size: 22px; }
.form-success p { margin-top: 10px; color: var(--ink-light-2); }
.form-success[hidden] { display: none; }

.data-use {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-light-2);
}

/* ---------- Early-access CTA form (dark) ---------- */
.cta-form { margin-top: 28px; max-width: 560px; }
.cta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.cta-form .form-group { margin-bottom: 14px; }
.cta-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink);
}
.cta-form label .optional { font-weight: 500; color: var(--ink-2); }
.cta-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
}
.cta-form input:focus {
  outline: 3px solid rgba(121, 173, 255, 0.35);
  border-color: var(--accent);
}
.cta-form .form-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.cta-form .form-note.error { color: var(--warm); }
.cta-form .form-note.ok { color: #6FE3A5; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
}
@media (max-width: 800px) {
  .cta-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050B16;
  border-top: 1px solid #14233C;
  color: var(--ink-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 26px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-nav { display: flex; gap: 4px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy {
  justify-self: end;
  font-size: 13.5px;
  color: #7E90AE;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive (800px) ---------- */
@media (max-width: 800px) {
  :root {
    --gutter: 18px;
    --section-y: 44px;
  }

  .section-title { font-size: 32px; }
  .hero-title { font-size: clamp(34px, 9.6vw, 42px); }
  .story-copy h2, .band h2 { font-size: 32px; }
  .card-featured h3 { font-size: 32px; }
  .purpose-grid h2 { font-size: 34px; }

  /* mobile nav: brand + Menu button, links in a full-width disclosure */
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .primary-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    padding: 6px 0 14px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 48px; border-bottom-width: 0; }
  .header-inner { flex-wrap: wrap; row-gap: 4px; }

  /* stack hero text before art */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-block: 36px;
  }
  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .hero-art img { min-height: 240px; height: 100%; }
  .hero-art::before {
    background: linear-gradient(180deg, var(--canvas-dark) 0%, rgba(8, 15, 29, 0.2) 34%, transparent 62%);
  }
  .hero--compact .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-block: 32px;
  }
  .hero--compact .hero-art {
    width: 100%;
    min-height: 200px;
    border: 0;
  }
  .hero--compact .hero-art img { min-height: 200px; }
  .hero--compact .hero-art::before {
    background: linear-gradient(180deg, rgba(8, 15, 29, 0.7) 0%, rgba(8, 15, 29, 0.25) 38%, transparent 66%);
  }

  .audience-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .audience-item { padding: 0; border-left: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  .card-featured { grid-template-columns: 1fr; min-height: 0; padding: 28px; }
  .card-featured-art { display: none; }
  .planned-grid { grid-template-columns: 1fr; }
  /* keep the supplied SVG icon at the corner; drop the decorative art so text is never crowded */
  .card-planned .card-art { display: none; }
  .card-planned { padding-bottom: 44px; }

  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .principles-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }

  .band-inner { grid-template-columns: 1fr; padding-block: 48px; }
  .band .band-action { margin-top: 4px; }

  .purpose-grid { grid-template-columns: 1fr; gap: 20px; }
  .purpose-copy { padding-left: 20px; font-size: 17px; }

  .sequence { grid-template-columns: 1fr; gap: 0; }
  .sequence-item { padding: 0 0 32px 52px; }
  .sequence-item + .sequence-item { padding-left: 52px; }
  .sequence-item::before {
    top: 0;
    bottom: 8px;
    left: 19px;
    width: 2px;
    height: auto;
  }
  .sequence-item:last-child::before { height: 8px; width: 2px; }

  /* contact: form before secondary enquiry links */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-card { order: 1; }
  .contact-cards { order: 2; }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }
  .footer-copy { justify-self: start; }
}

@media (max-width: 480px) {
  .brand { font-size: 16px; }
  .header-inner { flex-direction: row; align-items: center; }
}
