/* ==========================================================================
   Structara Digital — design system (brand navy / blue identity)
   Every colour, size and space is defined here as a custom property.
   Change a value once here and it changes everywhere on the site.
   ========================================================================== */


/* --- Fonts: self-hosted, so no visitor data goes to a third party ------ */
@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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/roboto-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  /* --- Palette (sampled from the supplied Structara logo) ------------ */
  --background:        #FFFFFF;  /* white page ground */
  --paper:             #F4F6FA;  /* cool light grey: cards and alternate sections */
  --muted:             #EDF1F8;  /* alternating section ground */
  --secondary:         #E4EAF4;  /* deeper ground; team photo backdrop */
  --stone-deep:        #E7EDF7;  /* deepest light band */
  --foreground:        #0B1020;  /* near-black, cool: all display and body text */
  --muted-foreground:  #5A6479;  /* secondary text, captions */
  --border:            #DCE1EC;  /* every hairline rule and card border */
  --dark:              #011548;  /* brand navy: dark bands and footer */
  --dark-soft:         #0A2160;  /* cards inside navy bands */
  --accent-deep:       #1464EF;  /* brand blue: the single accent */
  --ring:              #1464EF;  /* focus rings on light grounds */
  --on-dark:           #FFFFFF;  /* text on navy */
  --on-dark-muted:     #7890D8;  /* the logo's secondary blue: muted text on navy */

  /* --- Type ----------------------------------------------------------- */
  --font-display: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Space ---------------------------------------------------------- */
  --space-unit: 8px;
  --section-y: 112px;
  --section-y-first: 128px;
  --container: 1200px;
  --container-wide: 1400px;
  --container-prose: 768px;
  --gutter: 32px;

  /* --- Other ---------------------------------------------------------- */
  --radius: 0.375rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.dark-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-dark); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--foreground); color: var(--paper);
  padding: 12px 20px; z-index: 200; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-wide { max-width: var(--container-wide); }
.prose { max-width: var(--container-prose); }
.measure { max-width: 68ch; }

.section { padding-block: var(--section-y); }
.section-first { padding-top: var(--section-y-first); padding-bottom: 56px; }
.section-tight { padding-block: 72px; }

/* Alternating grounds — never place two identical grounds adjacent. */
.ground-stone  { background: var(--background); }
.ground-paper  { background: var(--paper); }
.ground-muted  { background: var(--muted); }
.ground-deep   { background: var(--stone-deep); }
.ground-dark   { background: var(--dark); color: var(--on-dark); }

.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ==========================================================================
   Type primitives
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 20px;
  display: block;
}
.ground-dark .eyebrow { color: var(--on-dark-muted); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--foreground);
  margin: 0;
  text-wrap: balance;
}
.ground-dark .display { color: var(--on-dark); }

h1.display, .display-xl {
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.038em;
}

h2.display, .display-lg {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.033em;
}

h3.display, .display-md {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 19px;
  line-height: 32px;
  color: var(--muted-foreground);
  max-width: 60ch;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.body-muted { color: var(--muted-foreground); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.figure {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
}

.figure-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 12px;
  display: block;
}

.figure-note {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-foreground);
  margin-top: 6px;
  display: block;
}

.tbc {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-deep);
  background: rgba(54, 84, 72, 0.08);
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.btn-primary { background: var(--foreground); color: var(--paper); }
.btn-primary:hover { background: #000; }

.ground-dark .btn-primary { background: var(--on-dark); color: var(--foreground); }
.ground-dark .btn-primary:hover { background: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--foreground);
  padding-inline: 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-bottom: 6px;
}
.btn-quiet:hover { border-bottom-color: var(--foreground); }
.ground-dark .btn-quiet { color: var(--on-dark); border-bottom-color: rgba(242,242,238,0.35); }

.link-accent {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 84, 72, 0.35);
  padding-bottom: 1px;
}
.link-accent:hover { border-bottom-color: var(--accent-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 36px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-fallback {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-fallback span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-left: 7px;
  color: var(--muted-foreground);
  vertical-align: 2px;
}

.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--foreground);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--border); }
.nav a[aria-current="page"] { border-bottom-color: var(--foreground); }

.header-cta { flex-shrink: 0; padding: 12px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--dark);
  color: var(--on-dark);
  z-index: 150;
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter) 48px;
}
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav-top { display: flex; justify-content: flex-end; }
.mobile-nav-close {
  background: none; border: 1px solid rgba(242,242,238,0.3);
  color: var(--on-dark); width: 44px; height: 44px;
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.mobile-nav ul a {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--on-dark);
  display: block;
  padding-block: 6px;
}

/* seven nav items: tighten the spacing on smaller laptops, then switch to the menu button */
@media (max-width: 1260px) { .nav { gap: 22px; } }
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero — asymmetric, type on the stone canvas, no image behind the text
   ========================================================================== */

.hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-block: 72px 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  width: 100%;
  align-items: end;
}

.hero h1 { margin: 0; }
.hero h1 .line { display: block; }

.hero-right { padding-bottom: 10px; }
.hero-right p { font-size: 18px; line-height: 30px; color: var(--muted-foreground); max-width: 46ch; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: 64px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .hero-right { padding-bottom: 0; }
}

/* ==========================================================================
   Full-bleed dark band with an overlapping light card (home page only)
   ========================================================================== */

.band {
  position: relative;
  background: var(--dark);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.band-art { position: absolute; inset: 0; opacity: 1; }
.band-art svg { width: 100%; height: 100%; }

.band-spacer { height: 150px; }

.metrics-wrap { margin-top: -150px; position: relative; z-index: 2; }

.metrics-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px 40px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.metric { border-left: 1px solid var(--border); padding-left: 24px; }
.metric:first-child { border-left: 0; padding-left: 0; }

.market-strip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 28px;
  line-height: 2;
}

@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metrics-card { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .metric:first-child { border-top: 0; padding-top: 0; }
  .metrics-wrap { margin-top: -90px; }
  .band-spacer { height: 90px; }
}

/* ==========================================================================
   Section heading block
   ========================================================================== */

.section-head { margin-bottom: 56px; max-width: 62ch; }
.section-head .lede { margin-top: 22px; }

.section-head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
  max-width: none;
}
.section-head-split .lede { margin-top: 0; }

@media (max-width: 860px) {
  .section-head-split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards in a row share rows (label / heading / text / list), so text and
   lists line up across the row even when one heading wraps. */
.card-grid.rows-3 > .card,
.card-grid.rows-4 > .card {
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}
.card-grid.rows-3 > .card { grid-row: span 3; }
.card-grid.rows-4 > .card { grid-row: span 4; }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.ground-paper .card { background: var(--background); }
.ground-dark .card { background: var(--dark-soft); border-color: rgba(242,242,238,0.14); }

.card h3 { margin: 0 0 14px; }
.card p { color: var(--muted-foreground); font-size: 16px; line-height: 27px; }
.ground-dark .card p { color: var(--on-dark-muted); }

.card-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-deep);
}
.ground-dark .card-icon { border-color: rgba(242,242,238,0.2); color: var(--on-dark); }

@media (max-width: 980px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Numbered sequences — steppers and differentiator bands
   ========================================================================== */

.numbered {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.numbered-5 { grid-template-columns: repeat(5, 1fr); }

.numbered-item {
  padding: 32px 28px 36px 28px;
  border-right: 1px solid var(--border);
  /* Each column shares the parent's rows (number / heading / label / list),
     so labels and lists line up across columns even when a heading wraps. */
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}
.numbered-item:first-child { padding-left: 0; }
.numbered-item:last-child { border-right: 0; }

.numbered-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 22px;
}
.numbered-item h3 { margin: 0 0 14px; }
.numbered-item p { font-size: 15px; line-height: 25px; color: var(--muted-foreground); }
.numbered-item ul {
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 14px; line-height: 24px; color: var(--muted-foreground);
}
.numbered-item li { padding-left: 16px; position: relative; }
.numbered-item li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 5px; height: 1px; background: var(--muted-foreground);
}

@media (max-width: 1020px) {
  .numbered, .numbered-5 { grid-template-columns: repeat(2, 1fr); }
  .numbered-item { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 24px; padding-left: 28px; }
  .numbered-item:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 28px; padding-left: 0; }
}
@media (max-width: 600px) {
  .numbered, .numbered-5 { grid-template-columns: 1fr; }
  .numbered-item, .numbered-item:nth-child(odd) { border-right: 0; padding-right: 0; padding-left: 0; }
}

/* ==========================================================================
   Data figures row
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-block: 8px 44px;
}
.stat { border-top: 1px solid var(--border); padding-top: 24px; }
.stat .figure { font-size: clamp(40px, 5vw, 58px); }

@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; gap: 28px; } }

.source-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-top: 8px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }

table { width: 100%; border-collapse: collapse; min-width: 620px; }

thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: left;
  font-weight: 400;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}

tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 24px;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.table-note {
  font-size: 13px;
  line-height: 21px;
  color: var(--muted-foreground);
  margin-top: 16px;
  max-width: 72ch;
}

/* ==========================================================================
   Markets map
   ========================================================================== */

.map-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }

.map-frame {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.map-frame svg { width: 100%; height: auto; display: block; }

.map-dot { cursor: pointer; transition: r 150ms var(--ease); }
.map-dot:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.map-dot[aria-pressed="true"] { r: 11; }

.map-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: sticky;
  top: 100px;
}
.map-panel h3 { margin: 0 0 6px; }
.map-panel ul { margin: 20px 0 0; padding: 0; list-style: none; }
.map-panel li {
  font-size: 15px; line-height: 25px; color: var(--muted-foreground);
  padding-left: 16px; position: relative; margin-bottom: 12px;
}
.map-panel li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 5px; height: 1px; background: var(--muted-foreground);
}

.tier-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 14px;
}

.market-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.market-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  cursor: pointer;
  color: var(--muted-foreground);
}
.market-btn[aria-pressed="true"] {
  border-color: var(--foreground);
  color: var(--foreground);
}

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; gap: 28px; }
  .map-panel { position: static; }
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.person {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  /* photo / role / name / years / bio share rows across each line of cards,
     so a role or name that wraps never pushes one card's text out of line */
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

.person-photo {
  aspect-ratio: 1 / 1;
  width: 220px;               /* capped so the photo doesn't dominate the card (Nov 2026) */
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 22px;
  object-fit: cover;          /* crops a non-square photo rather than squashing it */
  object-position: 50% 30%;   /* biases toward the face, not the chest */
  background: var(--muted);
  display: block;
}

/* Placeholder shown until a photo filename is set in content2.py */
.person-photo--empty {
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person h3 { margin: 0 0 4px; font-size: 24px; }
.person .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 4px;
}
.person .years {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 16px;
}
.person p { font-size: 14px; line-height: 23px; color: var(--muted-foreground); margin: 0; }

@media (max-width: 1020px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .person-photo { width: 200px; } }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }

label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 8px;
}

input, select, textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--foreground);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}
textarea { min-height: 132px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ring); }

.field-error {
  font-size: 13px;
  color: #8C3A33;
  margin-top: 7px;
  min-height: 0;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #8C3A33; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 15px;
  line-height: 25px;
}
.form-status[hidden] { display: none; }
.field[hidden] { display: none; }
#enquiry { scroll-margin-top: 96px; }

@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--dark); color: var(--on-dark); padding-block: 80px 40px; }

.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }

.footer-brand .brand-fallback { color: var(--on-dark); }
.footer-brand .brand-fallback span { color: var(--on-dark-muted); }
.footer-brand p { color: var(--on-dark-muted); font-size: 15px; line-height: 25px; margin-top: 22px; max-width: 40ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-weight: 400;
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 15px;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-col a:hover { border-bottom-color: rgba(242,242,238,0.4); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(242,242,238,0.16);
}
.footer-legal {
  font-size: 13px;
  line-height: 22px;
  color: var(--on-dark-muted);
  max-width: 92ch;
  margin: 0 0 22px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  font-size: 13px;
  color: var(--on-dark-muted);
}
.footer-meta a { color: var(--on-dark-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-meta a:hover { border-bottom-color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll reveal — 8-16px fade and rise, single play
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Print — Our Approach and Team
   ========================================================================== */

@media print {
  .site-header, .mobile-nav, .site-footer, .btn, .band, .map-frame { display: none !important; }
  body { background: #fff; font-size: 11pt; line-height: 1.5; }
  .section { padding-block: 18pt; }
  .card, .person, .table-wrap { border: 1px solid #bbb; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --- Spec lists inside Solutions cards --------------------------------- */
.spec-list {
  margin: 18px 0 0; padding: 0; list-style: none;
  font-size: 14px; line-height: 24px; color: var(--muted-foreground);
  border-top: 1px solid var(--border); padding-top: 16px;
}
.spec-list li { padding-left: 16px; position: relative; margin-bottom: 8px; }
.spec-list li:last-child { margin-bottom: 0; }
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 5px; height: 1px; background: var(--muted-foreground);
}

/* --- Table foot --------------------------------------------------------- */
tfoot td {
  padding: 18px 20px; border-top: 1px solid var(--border);
  font-size: 15px; font-family: var(--font-mono);
}

/* --- Brand lockup ------------------------------------------------------ */
.footer-brand .brand-fallback { display: inline-flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Third-party chat widget — safe zone
   A floating chat bubble (GoDaddy Conversations, Intercom, Crisp, etc.) pins
   itself bottom-right and almost always claims a maximum z-index. Two things
   then break: it covers the final call to action on short screens, and on
   mobile it floats above the full-screen navigation overlay.
   These rules reserve space for it and put it back in its place. They are
   inert until a widget is actually present.
   ========================================================================== */

:root { --chat-safe: 96px; }

/* Keep the last section clear of the bubble on small screens, where the
   bubble and the submit button compete for the same corner. */
@media (max-width: 760px) {
  main > section:last-of-type { padding-bottom: calc(var(--section-y) + var(--chat-safe)); }
  .site-footer { padding-bottom: calc(40px + var(--chat-safe)); }
}

/* Common chat containers, held below the sticky header (100) and the mobile
   navigation overlay (150). Add your provider's selector here if it differs. */
#godaddy-chat-widget,
#gd-conversations-widget,
.gd-chat-widget,
#crisp-chatbox,
#intercom-container,
.intercom-lightweight-app,
#hubspot-messages-iframe-container,
iframe[title*="hat" i][style*="fixed"] {
  z-index: 90 !important;
}

/* While the mobile menu is open, no widget should be visible at all. */
body:has(.mobile-nav[data-open="true"]) #godaddy-chat-widget,
body:has(.mobile-nav[data-open="true"]) #gd-conversations-widget,
body:has(.mobile-nav[data-open="true"]) .gd-chat-widget,
body:has(.mobile-nav[data-open="true"]) #crisp-chatbox,
body:has(.mobile-nav[data-open="true"]) #intercom-container,
body:has(.mobile-nav[data-open="true"]) .intercom-lightweight-app,
body:has(.mobile-nav[data-open="true"]) #hubspot-messages-iframe-container {
  display: none !important;
}

/* --- Direct email on the contact page ---------------------------------- */
.contact-email { margin: 0; }
.email-link {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 100, 239, 0.35);
  display: inline-block;
  word-break: break-word;
}
.email-link:hover { border-bottom-color: var(--accent-deep); }
.email-link--tbc {
  color: var(--muted-foreground);
  border-bottom-style: dashed;
  display: block;
}

/* --- Mobile navigation: identity and footer ---------------------------- */
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-nav-top .brand { color: var(--on-dark); }
.mobile-nav-top .brand-fallback { font-size: 21px; }

.mobile-nav ul { margin-top: 44px; }

.mobile-nav-foot {
  margin-top: auto;
  padding-top: 44px;
  border-top: 1px solid rgba(242, 242, 238, 0.16);
}
.mobile-nav-foot .eyebrow { color: var(--on-dark-muted); margin-bottom: 12px; }
.mobile-nav-foot p {
  font-size: 14px;
  line-height: 23px;
  color: var(--on-dark-muted);
  margin: 0 0 14px;
}
.mobile-nav-foot a {
  display: inline-block;
  font-size: 14px;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 242, 238, 0.35);
}

/* ==========================================================================
   Identity layer — rules a bold sans and the supplied logo lockup need
   ========================================================================== */

/* ==========================================================================
   A bold geometric sans needs different treatment from a display serif:
   heavier weight, tighter tracking, and a little more line-height.
   ========================================================================== */

.display {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1.display, .display-xl {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

h2.display, .display-lg {
  font-size: clamp(29px, 3.6vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3.display, .display-md {
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.24;
  letter-spacing: -0.016em;
  font-weight: 600;
}

.figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}

.person h3 { font-size: 20px; }

/* Eyebrows pick up the brand blue rather than grey */
.eyebrow { color: var(--accent-deep); letter-spacing: 0.14em; }
.ground-dark .eyebrow { color: var(--on-dark-muted); }

/* ==========================================================================
   Identity — the supplied logo lockup replaces the wordmark
   ========================================================================== */

.brand-fallback {
  display: block;
  width: 224px;
  height: 68px;
  text-indent: -9999px;
  overflow: hidden;
  background: url("assets/logo-classic.png") left center / contain no-repeat;
}
.brand-fallback span { display: none; }

.footer-brand .brand-fallback {
  width: 214px; height: 70px;
  background-image: url("assets/logo-classic-reverse.png");
}

/* ==========================================================================
   Components — slightly more conventional corporate treatment
   ========================================================================== */

.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #0B52CC; }
.ground-dark .btn-primary { background: var(--accent-deep); color: #fff; }
.ground-dark .btn-primary:hover { background: #2D78F5; }

.btn-quiet { color: var(--accent-deep); border-bottom-color: rgba(20,100,239,0.35); }
.btn-quiet:hover { border-bottom-color: var(--accent-deep); }
.ground-dark .btn-quiet { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }

.card { box-shadow: 0 1px 2px rgba(11,16,32,0.04); }
.ground-dark .card { background: var(--dark-soft); border-color: rgba(255,255,255,0.14); }

.site-header { background: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent-deep); color: var(--accent-deep); }

.tier-tag { color: var(--accent-deep); }
.link-accent { color: var(--accent-deep); border-bottom-color: rgba(20,100,239,0.35); }

.tbc { color: var(--accent-deep); background: rgba(20,100,239,0.08); }

.band-art svg [stroke="#F2F2EE"] { stroke: #7890D8; }
.band-art svg [fill="#8FA89C"] { fill: #1464EF; }

/* The home-page band gradient is defined inside the inline SVG; retint it
   to the brand navy rather than the near-black used by the current identity. */
.band { background: var(--dark); }
.band-art svg stop:first-child { stop-color: #062063; }
.band-art svg stop:last-child  { stop-color: #010E33; }
.band-art svg [fill="url(#grid)"] { opacity: 0.5; }

/* The lockup is taller than the wordmark it replaced. */
.header-inner { height: 96px; }
.brand { align-items: center; }

/* The mobile overlay is navy, so it needs the reverse lockup, not the
   light-ground one used in the header. */
.mobile-nav-top .brand-fallback {
  width: 168px; height: 54px;
  background-image: url("assets/logo-classic-reverse.png");
}

/* --- Markets map (generated outline: assets/map-paths.svg) ------------- */
.map-land  { fill: var(--secondary); }
.map-focus { fill: var(--accent-deep); fill-opacity: 0.22; }

/* An h2 given the display-md class (privacy notice section headings) takes the
   display-md size; without this, h2.display outranks .display-md. */
h2.display.display-md {
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.24;
  letter-spacing: -0.016em;
}

/* Keep the contact email on one line on phones (it was breaking mid-word) */
@media (max-width: 520px) {
  .email-link { font-size: min(17px, 4.1vw); word-break: normal; overflow-wrap: anywhere; }
}

/* A faint rule where a navy closing band meets the navy footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* An email address inside a sentence (privacy notice) takes the size of the
   text around it; only the contact page shows it large. */
span.contact-email .email-link {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  display: inline;
}

/* Contact page side panel: one font, three colours, two sizes (Nov 2026) */
.contact-panel .panel-label { display: block; font-size: 15px; font-weight: 600; color: var(--foreground); margin-bottom: 4px; }
.contact-panel p { color: var(--muted-foreground); }
.contact-panel .email-link { font-size: 15px; font-weight: 400; line-height: 25px; }
@media (max-width: 520px) { .contact-panel .email-link { font-size: min(15px, 4.1vw); } }
