/* ==========================================================================
   Syrionex theme — professional corporate design system.
   Light theme only (deliberate: business sites do not auto-dark).
   Fonts: Inter Tight (headings) + Inter (body), self-hosted woff2.
   Layout: full-width alternating section bands; content constrained inside.
   Loaded on the frontend and (via add_editor_style) in the Gutenberg editor.
   ========================================================================== */

/* --- fonts ----------------------------------------------------------------- */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-tight-v9-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-tight-v9-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* --- tokens ---------------------------------------------------------------- */

:root {
  --sx-white: #FFFFFF;
  --sx-gray-band: #ECF3F4;   /* faint teal tint, not a neutral gray */
  --sx-ink: #1B2A38;        /* headings */
  --sx-body: #3E5060;       /* body text */
  --sx-muted: #64788A;      /* secondary text */
  --sx-border: #DCE4EA;
  --sx-navy: #16324C;       /* dark band background */
  --sx-navy-deep: #0E2233;  /* footer */
  --sx-navy-text: #C9D8E4;  /* body text on navy */
  --sx-blue: #1266A9;       /* actions / links */
  --sx-blue-dark: #0E5187;
  --sx-teal: #0F7C8C;       /* brand accent */
  --sx-teal-bright: #35B5C4;/* accent on navy */
  --sx-gold: #E0A44A;       /* warm accent rule (stats on navy) */
  --sx-spectrum: linear-gradient(90deg,#6A5BD8 0%,#3D6FC0 30%,#178097 62%,#2E9B72 100%);

  --sx-head: 'Inter Tight', 'Segoe UI', system-ui, sans-serif;
  --sx-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --sx-mono: ui-monospace, 'Cascadia Code', Consolas, Menlo, monospace;

  --sx-content: 780px;
  --sx-wide: 1180px;
  --sx-gutter: clamp(1.25rem, 5vw, 2.5rem);
  --sx-radius: 6px;
  --sx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Emphasis: color one key word in a heading to carry importance.
   Solid color + weight, never gradient-clipped text. */
.sx-hl { color: var(--sx-teal); }
.sx-band--navy .sx-hl,
.sx-band--deep .sx-hl { color: var(--sx-teal-bright); }

/* --- base ------------------------------------------------------------------ */

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

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

body.sx-site {
  margin: 0;
  background: var(--sx-white);
  color: var(--sx-body);
  font-family: var(--sx-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--sx-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--sx-ink);
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1.1rem; }
p, li { max-width: 66ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--sx-blue); text-decoration: none; }
a:hover { color: var(--sx-blue-dark); text-decoration: underline; text-underline-offset: 0.18em; }

strong { font-weight: 600; color: var(--sx-ink); }

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

:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sx-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--sx-navy); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 6px 0;
}
.sx-skip-link:focus { left: 0; }

/* --- signature hairline ------------------------------------------------------ */

.sx-spectrum { height: 3px; background: var(--sx-spectrum); border: 0; }

/* --- header ------------------------------------------------------------------ */

.sx-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sx-white);
  box-shadow: 0 1px 0 var(--sx-border);
}
.sx-header__inner {
  max-width: var(--sx-wide);
  margin: 0 auto;
  padding: 0.9rem var(--sx-gutter);
  display: flex; align-items: center; gap: 2rem;
}
.sx-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--sx-ink); margin-right: auto;
}
.sx-brand:hover { text-decoration: none; color: var(--sx-navy); }
.sx-brand__mark {
  width: 2rem; height: 2rem; border-radius: 6px;
  background: var(--sx-navy);
  position: relative; flex: 0 0 auto;
}
.sx-brand__mark::after {
  content: ""; position: absolute; left: 5px; right: 5px; bottom: 7px;
  height: 3px; background: var(--sx-spectrum); border-radius: 2px;
}
.sx-brand__word {
  font-family: var(--sx-head);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
  color: var(--sx-navy); text-transform: none;
}

/* Site Identity logo. The supplied lockup stacks the mark over the wordmark,
   so it needs real height to stay legible; it replaces .sx-brand__word rather
   than sitting beside it (the lockup already contains the name). */
.sx-brand__logo {
  height: 4rem; width: auto; max-width: 100%;
  display: block; flex: 0 0 auto;
}
@media (max-width: 800px) { .sx-brand__logo { height: 3.5rem; } }
.sx-nav__list { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.sx-nav__list a {
  color: var(--sx-body); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
}
.sx-nav__list a:hover { color: var(--sx-navy); text-decoration: none; }
.sx-nav__list .current-menu-item > a,
.sx-nav__list .current_page_item > a { color: var(--sx-navy); font-weight: 600; }

.sx-header__cta { flex: 0 0 auto; }

/* --- buttons ------------------------------------------------------------------ */

.sx-btn,
.sx-page .wp-block-button__link {
  display: inline-block;
  background: var(--sx-blue); color: #fff;
  font-family: var(--sx-sans); font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.4rem; border-radius: var(--sx-radius);
  text-decoration: none; border: 1px solid var(--sx-blue);
  transition: background-color 0.18s var(--sx-ease), border-color 0.18s var(--sx-ease), transform 0.18s var(--sx-ease), box-shadow 0.18s var(--sx-ease);
}
.sx-btn:hover,
.sx-page .wp-block-button__link:hover { background: var(--sx-blue-dark); border-color: var(--sx-blue-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(18, 102, 169, 0.22); }

.sx-btn--ghost,
.sx-page .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--sx-blue);
}
.sx-btn--ghost:hover,
.sx-page .is-style-outline .wp-block-button__link:hover { background: var(--sx-blue); color: #fff; }

.sx-band--navy .wp-block-button__link { background: var(--sx-teal-bright); border-color: var(--sx-teal-bright); color: var(--sx-navy-deep); }
.sx-band--navy .wp-block-button__link:hover { background: #4CC7D6; border-color: #4CC7D6; }

/* --- menu toggle / mobile nav -------------------------------------------------- */

.sx-menu-toggle {
  display: none;
  align-items: center; gap: 0.5rem;
  background: none; border: 0; cursor: pointer; color: var(--sx-ink);
  font: inherit; font-size: 0.85rem; font-weight: 600;
}
.sx-menu-toggle__bars,
.sx-menu-toggle__bars::before,
.sx-menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--sx-ink); position: relative;
}
.sx-menu-toggle__bars::before,
.sx-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.sx-menu-toggle__bars::before { top: -6px; }
.sx-menu-toggle__bars::after { top: 6px; }

@media (max-width: 800px) {
  .sx-menu-toggle { display: inline-flex; order: 3; }
  .sx-header__cta { display: none; }
  .sx-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sx-white); border-bottom: 1px solid var(--sx-border);
    box-shadow: 0 12px 24px rgba(15, 34, 51, 0.08);
  }
  body.sx-menu-open .sx-nav { display: block; }
  .sx-nav__list { flex-direction: column; gap: 0; padding: 0.5rem var(--sx-gutter) 1rem; }
  .sx-nav__list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--sx-border); }
  .sx-nav__list li:last-child a { border-bottom: 0; }
}

/* --- page scaffold: full-width bands ------------------------------------------- */

.sx-main { display: block; }
.sx-page { display: block; }

/* Constrain anything NOT a band; bands span full width and constrain inside. */
.sx-page > * {
  max-width: var(--sx-content);
  margin-inline: auto;
  padding-inline: var(--sx-gutter);
}
.sx-page > .sx-band,
.sx-page > .alignfull { max-width: none; margin-inline: 0; padding-inline: 0; }

.sx-band { padding-block: clamp(3rem, 7vw, 5rem); background: var(--sx-white); }
.sx-band > * { max-width: var(--sx-wide); margin-inline: auto; padding-inline: var(--sx-gutter); }

.sx-band--gray { background: var(--sx-gray-band); }
.sx-band--navy { background: var(--sx-navy); }
.sx-band--deep { background: var(--sx-navy-deep); }
.sx-band--hero { padding-block: clamp(3rem, 8vw, 5.5rem); }
.sx-band--slim { padding-block: clamp(2rem, 4vw, 3rem); }

/* text colors on dark bands */
.sx-band--navy h1, .sx-band--navy h2, .sx-band--navy h3, .sx-band--deep h2 { color: #fff; }
.sx-band--navy p, .sx-band--navy li { color: var(--sx-navy-text); }
.sx-band--navy a { color: var(--sx-teal-bright); }

/* narrow text inside a band (headings + copy blocks) */
.sx-band .sx-narrow { max-width: calc(var(--sx-content) + 2 * var(--sx-gutter)); margin-inline: auto; }

/* --- editorial atoms ------------------------------------------------------------ */

.sx-eyebrow {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sx-teal); margin: 0 0 0.75rem;
}
.sx-band--navy .sx-eyebrow { color: var(--sx-teal-bright); }

.sx-lede { font-size: 1.15rem; line-height: 1.65; color: var(--sx-body); }

.sx-kicker { font-size: 1.05rem; color: var(--sx-muted); }

/* --- hero (columns: text + image) ------------------------------------------------ */

.sx-hero-cols { display: flex; gap: clamp(2rem, 5vw, 4rem) !important; align-items: center; }
.sx-hero-cols .wp-block-column:first-child { flex: 1 1 55%; }
.sx-hero-cols .wp-block-column:last-child { flex: 1 1 45%; }
@media (max-width: 800px) { .sx-hero-cols { flex-direction: column; } .sx-hero-cols .wp-block-column { flex: 1 1 auto; width: 100%; } }

.sx-hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* --- image placeholders ----------------------------------------------------------- */
/* Team drops real photos into these image blocks later; until then the figure
   shows a labeled placeholder so everyone can see what photo goes where. */

.sx-imgph {
  position: relative;
  border-radius: var(--sx-radius);
  border: 1px dashed #A6C0C6;
  background:
    linear-gradient(135deg, #E3EEF0 0%, #D4E6E9 55%, #C6DCE0 100%);
  min-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem;
  overflow: hidden;
}
.sx-imgph::before {
  content: ""; width: 2.5rem; height: 2.5rem; opacity: 0.55; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7C8C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.6'/%3E%3Cpath d='M20 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sx-imgph--tall { min-height: 340px; }
.sx-imgph--wide { min-height: 300px; }
.sx-imgph p {
  font-family: var(--sx-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #7A8FA0; text-align: center;
  padding: 1rem; margin: 0; max-width: 30ch;
}
.sx-band--navy .sx-imgph { border-color: #3D5B77; background: linear-gradient(135deg, #1D3D5C 0%, #1A3653 55%, #16304A 100%); }
.sx-band--navy .sx-imgph p { color: #7E99B0; }
.sx-band--navy .sx-imgph::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335B5C4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.6'/%3E%3Cpath d='M20 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- stats (navy band) -------------------------------------------------------------- */

.sx-stats { gap: clamp(1.5rem, 4vw, 3rem) !important; }
.sx-stats .sx-stat-num {
  font-family: var(--sx-head); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1;
  color: #fff; margin: 0 0 0.65rem;
  font-variant-numeric: tabular-nums;
}
.sx-stats .sx-stat-num::after {
  content: ""; display: block; width: 2.25rem; height: 3px;
  background: var(--sx-gold); border-radius: 2px; margin-top: 0.6rem;
}
.sx-stats .sx-stat-num strong { color: var(--sx-gold); }
.sx-stats .sx-stat-label { font-size: 0.95rem; color: var(--sx-navy-text); margin: 0; }

/* --- cards (home services showcase only) -------------------------------------------------- */
/* Grid, so cards go 3-up on desktop and 2-up on mobile (never a 1-wide tower). */

.sx-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem !important;
}
.sx-cards .wp-block-column { display: flex; width: auto !important; flex: 1 1 auto; margin: 0 !important; }

.sx-card {
  background: var(--sx-white);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  padding: 1.6rem 1.6rem 1.5rem;
  flex: 1 1 auto;
  box-shadow: 0 1px 2px rgba(15, 34, 51, 0.04);
}
.sx-card::before {
  content: ""; display: block; width: 2.25rem; height: 3px;
  background: var(--sx-spectrum); border-radius: 2px; margin-bottom: 1.1rem;
}
.sx-card h3 { margin-bottom: 0.5rem; }
.sx-card p { font-size: 0.95rem; color: var(--sx-body); margin: 0; max-width: none; }
.sx-card .sx-card__link { display: inline-block; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; }
.sx-card { transition: transform 0.2s var(--sx-ease), box-shadow 0.2s var(--sx-ease), border-color 0.2s var(--sx-ease); }
.sx-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 34, 51, 0.10); border-color: #C4D2DC; }

/* --- feature rows (services page): number + heading + text, hairline-divided ------------- */

/* Numbered service list, two per row so desktop shows more without scrolling.
   Row-major flow; the odd 5th item spans full width so no cell is left empty. */
.sx-features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 3.25rem;
}
.sx-feature {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.35rem;
  padding: 1.65rem 0; border-top: 1px solid var(--sx-border); align-items: start;
}
.sx-feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sx-feature:last-child { border-bottom: 1px solid var(--sx-border); }
/* WordPress block-gap adds margins between grid children, which throws row
   alignment off (pushed the founder card and the first outcome up). Neutralize
   it; the grid gap owns the spacing. */
.sx-features > *, .sx-team > *, .sx-principles > *, .sx-outcomes > * { margin-block: 0 !important; }
.sx-feature__num {
  font-family: var(--sx-head); font-weight: 700; font-size: 1.9rem; line-height: 1;
  color: var(--sx-teal); font-variant-numeric: tabular-nums; margin: 0;
}
.sx-feature h3 { margin: 0 0 0.35rem; }
.sx-feature p { margin: 0; max-width: 62ch; }

/* --- principles (about): borderless grid, top accent rule per item ----------------------- */

.sx-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; }
.sx-principle::before {
  content: ""; display: block; width: 2.25rem; height: 3px;
  background: var(--sx-spectrum); border-radius: 2px; margin-bottom: 0.9rem;
}
.sx-principle h3 { margin: 0 0 0.4rem; }
.sx-principle p { margin: 0; max-width: 46ch; }

/* --- directory rows (contact): label + description ---------------------------------------- */

.sx-directory { border-top: 1px solid var(--sx-border); max-width: 960px; }
.sx-dir-item {
  display: grid; grid-template-columns: 15rem 1fr; gap: 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--sx-border); align-items: baseline;
}
.sx-dir-item p { max-width: 54ch; }
.sx-dir-item h3 { margin: 0; color: var(--sx-teal); }
.sx-dir-item p { margin: 0.35rem 0 0; }

/* --- split section (image + text columns) ---------------------------------------------- */

.sx-split { gap: clamp(2rem, 5vw, 4rem) !important; align-items: center; }
@media (max-width: 800px) { .sx-split { flex-direction: column; } .sx-split .wp-block-column { width: 100%; } }

/* --- quote ------------------------------------------------------------------------------ */

.sx-quote {
  position: relative; padding-top: 1.9rem;
  font-family: var(--sx-head); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4;
  color: var(--sx-ink); max-width: 42ch;
}
.sx-quote::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 2.75rem; height: 4px; border-radius: 2px; background: var(--sx-spectrum);
}
.sx-band--navy .sx-quote { color: #fff; }
.sx-quote-cite { font-size: 0.95rem; color: var(--sx-muted); max-width: 58ch; }
.sx-band--navy .sx-quote-cite { color: var(--sx-navy-text); }

/* --- section heading block ---------------------------------------------------------------- */

.sx-sechead { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.sx-sechead h2 { margin-bottom: 0.4rem; }
.sx-sechead p { color: var(--sx-muted); max-width: 62ch; }

/* --- footer --------------------------------------------------------------------------------- */

.sx-footer { background: var(--sx-navy-deep); color: var(--sx-navy-text); }
.sx-footer__inner {
  max-width: var(--sx-wide); margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4rem) var(--sx-gutter) 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: start;
}
.sx-footer .sx-brand__word { color: #fff; }
/* Footer uses the reversed lockup, sized a touch smaller than the header. */
.sx-brand__logo--footer { height: 3.5rem; }
@media (max-width: 800px) { .sx-brand__logo--footer { height: 3.25rem; } }
.sx-footer__tagline { color: var(--sx-navy-text); margin: 0.75rem 0 0; font-size: 0.95rem; max-width: 34ch; }
.sx-footer__heading {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #7E99B0; margin: 0 0 0.9rem;
}
.sx-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.sx-footer__list a { color: var(--sx-navy-text); text-decoration: none; font-size: 0.95rem; }
.sx-footer__list a:hover { color: #fff; }
.sx-footer__contact { font-size: 0.95rem; font-style: normal; line-height: 1.8; }
.sx-footer__contact a { color: var(--sx-teal-bright); }
.sx-footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid #23415C; padding-top: 1.4rem; margin: 0.5rem 0 0;
  font-size: 0.82rem; color: #7E99B0;
}
@media (max-width: 800px) { .sx-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }

/* --- misc -------------------------------------------------------------------------------------- */

.sx-page .wp-block-separator {
  border: 0; border-top: 1px solid var(--sx-border); max-width: var(--sx-content);
}

/* --- team (about): headshot + name + role + bio, centered grid, hover lift --------------- */

.sx-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.25rem; }
.sx-team .sx-imgph {
  min-height: 300px; margin-bottom: 1.1rem;
  transition: transform 0.2s var(--sx-ease), box-shadow 0.2s var(--sx-ease);
}
.sx-member:hover .sx-imgph { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 34, 51, 0.12); }
.sx-member h3 { margin: 0 0 0.15rem; }
.sx-member .sx-role { color: var(--sx-teal); font-weight: 600; font-size: 0.9rem; margin: 0 0 0.6rem; }
.sx-member p { font-size: 0.93rem; color: var(--sx-body); margin: 0; max-width: none; }

/* --- outcomes (our work): teal-labelled borderless items --------------------------------- */

.sx-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.sx-outcome::before {
  content: ""; display: block; width: 2.25rem; height: 3px;
  background: var(--sx-spectrum); border-radius: 2px; margin-bottom: 0.9rem;
}
.sx-outcome h3 { font-size: 1.05rem; color: var(--sx-teal); margin: 0 0 0.3rem; }
.sx-outcome p { margin: 0; font-size: 0.95rem; color: var(--sx-body); max-width: none; }
/* outcomes reused as the navy results anchor on Our Work */
.sx-band--navy .sx-outcome h3 { color: var(--sx-teal-bright); }
.sx-band--navy .sx-outcome p { color: var(--sx-navy-text); }

/* wide banner image placeholder (our work) */
.sx-imgph--banner { min-height: 320px; }

/* long-form narrative column */
.sx-prose { max-width: var(--sx-content); }
.sx-prose h2 { margin-bottom: 0.75rem; }

/* --- diagram figure (technology pages) --------------------------------------------------- */
/* Inline SVG schematics drawn in the brand palette. They sit on a dark band and
   scale with it, so no fixed height and no raster asset. */
.sx-figure { margin-block: 0; margin-inline: auto; }
/* Wide schematics keep legible labels on phones by scrolling inside the figure
   rather than shrinking their type into illegibility. */
.sx-figure__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.sx-figure svg { width: 100%; height: auto; display: block; min-width: 700px; }
.sx-figure figcaption {
  color: var(--sx-navy-text); font-size: 0.88rem; line-height: 1.6;
  margin-top: 1.1rem; max-width: 74ch;
}

/* --- contact form (plain HTML, posted to Formspree) -------------------------------------- */

.sx-formwrap { max-width: var(--sx-content); }
.sx-formwrap h2 { margin-bottom: 1.25rem; }
.sx-form-row { display: flex; gap: 1.25rem; }
.sx-form-row > label { flex: 1 1 0; }
.sx-form label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--sx-ink); margin-bottom: 1.1rem;
}
.sx-form input[type="text"],
.sx-form input[type="email"],
.sx-form textarea,
.sx-form select {
  width: 100%; margin-top: 0.4rem;
  padding: 0.7rem 0.8rem; font: inherit; font-weight: 400;
  color: var(--sx-ink); background: #fff;
  border: 1px solid var(--sx-border); border-radius: var(--sx-radius);
  transition: border-color 0.15s var(--sx-ease), box-shadow 0.15s var(--sx-ease);
}
/* Replace the native dropdown arrow with a brand chevron so the select reads
   like the text inputs rather than an OS control. */
.sx-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364788A' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
.sx-form input:focus,
.sx-form textarea:focus,
.sx-form select:focus {
  outline: none; border-color: var(--sx-blue);
  box-shadow: 0 0 0 3px rgba(18, 102, 169, 0.15);
}
.sx-form textarea { min-height: 150px; resize: vertical; }
.sx-form button[type="submit"] { cursor: pointer; }
.sx-form button[type="submit"]:disabled {
  opacity: 0.6; cursor: progress; transform: none; box-shadow: none;
}
/* Only flag a field once the browser has actually judged it, not while typing. */
.sx-form input:user-invalid,
.sx-form textarea:user-invalid { border-color: #B3261E; }

/* Honeypot: off-screen so people never see it but naive bots still fill it in. */
.sx-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sx-form-status {
  margin: 1.25rem 0 0; padding: 0.8rem 1rem; font-size: 0.92rem;
  border: 1px solid transparent; border-radius: var(--sx-radius);
}
.sx-form-status.is-success { background: #E7F4EC; border-color: #B7DFC6; color: #17552C; }
.sx-form-status.is-error { background: #FCEAE8; border-color: #F0C3BE; color: #8C2018; }
@media (max-width: 600px) { .sx-form-row { flex-direction: column; gap: 0; } }

/* --- motion ------------------------------------------------------------------------------- */
/* All entrance motion is gated behind .sx-js (added by JS). With no JS, or in a
   headless render, content is fully visible by default and nothing is hidden. */

.sx-js .sx-band--hero .sx-hero-cols,
.sx-js .sx-band--hero .sx-narrow {
  animation: sx-rise 0.7s var(--sx-ease) both;
}
@keyframes sx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Sibling stagger on lists/grids as they scroll in (JS adds .sx-rev, then .is-in). */
.sx-js .sx-rev > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--sx-ease), transform 0.55s var(--sx-ease);
}
.sx-js .sx-rev.is-in > * { opacity: 1; transform: none; }
.sx-js .sx-rev.is-in > *:nth-child(2) { transition-delay: 0.07s; }
.sx-js .sx-rev.is-in > *:nth-child(3) { transition-delay: 0.14s; }
.sx-js .sx-rev.is-in > *:nth-child(4) { transition-delay: 0.21s; }
.sx-js .sx-rev.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.sx-js .sx-rev.is-in > *:nth-child(6) { transition-delay: 0.35s; }

/* --- mobile overhaul ---------------------------------------------------------------------- */

@media (max-width: 600px) {
  body.sx-site { font-size: 0.98rem; }
  .sx-band { padding-block: clamp(2.25rem, 9vw, 3rem); }

  /* cards: single column on phones. A 2-up grid orphaned odd items (the 5th
     service card sat alone beside an empty cell) and cramped the copy. */
  .sx-cards { grid-template-columns: 1fr !important; gap: 0.9rem !important; }
  .sx-card { padding: 1.3rem 1.3rem 1.2rem; }
  .sx-card::before { width: 2rem; margin-bottom: 0.85rem; }
  .sx-card h3 { font-size: 1.05rem; }
  .sx-card p { font-size: 0.92rem; line-height: 1.6; }

  /* feature rows + directory: one column, number/label stacks above its text */
  .sx-features { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; gap: 0; }
  .sx-feature { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.35rem 0; }
  .sx-feature__num { font-size: 1.15rem; }
  .sx-dir-item { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.35rem 0; }

  /* principles, team, outcomes: single column */
  .sx-principles, .sx-team, .sx-outcomes { grid-template-columns: 1fr; gap: 1.75rem; }
  .sx-team { max-width: 420px; margin-inline: auto; }

  /* hero: full-width buttons, shorter image placeholders */
  .sx-hero-actions { gap: 0.7rem; }
  .sx-hero-actions .wp-block-button { flex: 1 1 100%; }
  .sx-hero-actions .wp-block-button__link { display: block; text-align: center; }
  .sx-imgph { min-height: 190px; }
  .sx-imgph--tall, .sx-imgph--wide { min-height: 200px; }

  /* footer: single column, comfortable spacing */
  .sx-footer__inner { gap: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .sx-js .sx-band--hero .sx-hero-cols,
  .sx-js .sx-band--hero .sx-narrow,
  .sx-js .sx-rev > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sx-btn:hover, .sx-page .wp-block-button__link:hover, .sx-card:hover { transform: none !important; }
}
