@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-v2-latin.woff2') format('woff2');
}
/* variable file: keep the weight range or 700 gets synthesized */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-variable-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-mono-v31-latin-regular.woff2') format('woff2');
}

/* ● falls outside every subset above; this face covers only that codepoint */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+25CF;
  src: url('/assets/fonts/roboto-mono-symbols.woff2') format('woff2');
}

/* size-adjust is matched to the woff2, so the font swap shifts nothing */
/* without a weight range each face matches 400 only and heavier runs get faux-bolded */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  font-weight: 400 600;
  size-adjust: 116.29%;
  ascent-override: 84.10%;
  descent-override: 21.93%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Hanken Grotesk Fallback';
  src: local('Arial');
  font-weight: 100 900;
  size-adjust: 101.53%;
  ascent-override: 98.50%;
  descent-override: 29.84%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Roboto Mono Fallback';
  src: local('Courier New');
  font-weight: 100 700;
  size-adjust: 100%;
  ascent-override: 104.79%;
  descent-override: 27.10%;
  line-gap-override: 0%;
}

/*
  style.css TOC (elvis-claudio)
  1. @font-face + fallbacks (above)
  2. :root tokens: color, type, space, motion
  3. Base / reset / typography
  4. Layout shells (nav, main, footer, skip-link)
  5. Hero + proof
  6. Sections / cards / forms / FAQ
  7. Theme (data-bs-theme)
  8. Motion + prefers-reduced-motion
  9. Breakpoints
  Keep selectors in this file; no build step. Tokens first, then components.
*/

:root {

  --bg-rgb:          247, 240, 227;
  --text-rgb:        38, 32, 26;
  --accent-rgb:      168, 70, 31;
  --clay-cta-rgb:    188, 83, 31;
  --teal-rgb:        17, 105, 122;
  --teal-bright-rgb: 14, 113, 131;
  --error-rgb:       154, 47, 47;
  --paper-rgb:       31, 21, 18;
  --ink-rgb:         236, 231, 224;
  --clay-ink-rgb:    210, 125, 85;
  --teal-ink-rgb:    63, 176, 196;
  --gold-ink-rgb:    224, 184, 106;

  --clay-glow-rgb:   204, 107, 62;
  --shadow-rgb:      63, 44, 24;
  --shadow-deep-rgb: 20, 12, 6;
  --shadow-band-rgb: 20, 13, 8;
  --vignette-rgb:    26, 19, 14;
  --ring-ink-rgb:    233, 232, 234;

  --bg:        rgb(var(--bg-rgb));
  --bg-alt:    #e6e2da;
  --surface:   #fffbf4;
  --surface-2: #e6e2da;

  --text:      rgb(var(--text-rgb));
  --muted:     #5d5347;
  --muted-dim: #6d6254;

  --teal:        rgb(var(--teal-rgb));
  --teal-bright: rgb(var(--teal-bright-rgb));
  --teal-cta:    #0f5f6f;
  --gold:        #7a5e22;
  --gold-dim:    #eed9a3;

  --clay:      rgb(var(--accent-rgb));
  --clay-cta:  rgb(var(--clay-cta-rgb));

  --error:     rgb(var(--error-rgb));

  --on-accent: #fff;

  --teal-light: var(--teal-bright);
  --teal-dark:  var(--teal-cta);
  --dark:       var(--bg);
  --dark-2:     var(--bg-alt);
  --dark-3:     var(--surface);
  --muted-aa:   var(--muted);

  --paper:      rgb(var(--paper-rgb));
  --paper-2:    #291c15;
  --ink:        rgb(var(--ink-rgb));
  --ink-soft:   #c2bbb0;
  --clay-ink:   rgb(var(--clay-ink-rgb));
  --teal-ink:   rgb(var(--teal-ink-rgb));
  --gold-ink:   rgb(var(--gold-ink-rgb));
  --border-ink: rgba(var(--ink-rgb), 0.13);

  color-scheme: light;

  --border:          rgba(var(--text-rgb), 0.12);
  --border-strong:   rgba(var(--text-rgb), 0.18);
  --border-card:     rgba(var(--text-rgb), 0.12);
  --border-card-md:  rgba(var(--text-rgb), 0.16);
  --border-card-hi:  rgba(var(--accent-rgb), 0.35);
  --border-hover:    rgba(var(--accent-rgb), 0.45);
  --border-section:  rgba(var(--text-rgb), 0.13);
  --border-focus:    rgba(var(--teal-rgb), 0.60);
  --focus:           rgb(var(--teal-rgb));
  --cred-border:     rgba(33, 28, 21, 0.14);
  --socials-rule:    rgba(150, 180, 204, 0.27);
  --dropdown-hover:  rgba(47, 159, 179, 0.12);

  --shadow-rest:
    0 1px 3px rgba(var(--shadow-rgb), 0.08),
    0 8px 24px rgba(var(--shadow-rgb), 0.06),
    0 0 0 1px rgba(var(--shadow-rgb), 0.04);
  --shadow-hover:
    0 10px 32px rgba(var(--shadow-rgb), 0.13),
    0 0 0 1px rgba(var(--shadow-rgb), 0.07);
  --shadow-focus:
    0 10px 32px rgba(var(--shadow-rgb), 0.12),
    0 0 0 2px   rgba(var(--teal-rgb), 0.45);
  --glow-teal: 0 0 24px rgba(var(--teal-rgb), 0.08);

  --monogram-plate-1: #2e221a;
  --monogram-plate-2: #241b14;
  --headshot-cap-bg:  rgba(30, 22, 16, 0.78);

  --terminal-bg:       #0e0e11;
  --terminal-chrome:   #1a1a1f;
  --terminal-border:   rgba(255, 255, 255, 0.08);
  --terminal-hairline: rgba(255, 255, 255, 0.06);
  --terminal-shadow:   0 8px 40px rgba(0, 0, 0, 0.5), 0 1px 0 var(--terminal-hairline) inset;
  --terminal-text:     #ece7e0;
  --terminal-muted:    #c2bbb0;
  --terminal-dot-rgb:  233, 232, 234;
  --terminal-dot-live: rgba(63, 176, 196, 0.65);
  --plate-mark-filter: grayscale(1) opacity(0.62);
  --plate-mark-desat:  grayscale(1);
  --logo-plate:        rgba(255, 255, 255, 0.90);
  --map-plate-bg:      #f7f0e3;
  --map-plate-border:  rgba(38, 32, 26, 0.18);

  --smoke-page: url('/assets/smoke-cream.svg');

  --bs-primary:              rgb(var(--clay-cta-rgb));
  --bs-body-bg:              rgb(var(--bg-rgb));
  --bs-body-color:           rgb(var(--text-rgb));
  --bs-border-color:         rgba(var(--text-rgb), 0.18);
  --bs-link-color:           rgb(var(--accent-rgb));
  --bs-link-hover-color:     rgb(var(--bs-link-hover-color-rgb));
  --bs-link-color-rgb:       var(--accent-rgb);
  --bs-link-hover-color-rgb: 143, 59, 26;

  --fs-display: clamp(48px, 6vw, 78px);  --lh-display:1.05; --ls-display:-0.01em;
  --fs-h1:      clamp(34px, 1.5rem + 2.4vw, 50px);--lh-h1:1.12;  --ls-h1:-0.012em;
  --fs-h2:      clamp(26px, 2.9vw, 37px);--lh-h2:1.18;      --ls-h2:-0.008em;
  --fs-h3:      clamp(18px, 1.8vw, 22px);--lh-h3:1.35;      --ls-h3:0em;
  --fs-body:    16px;                    --lh-body:1.62;    --ls-body:0.005em;
  --fs-body-lg: clamp(17px, 1.5vw, 19px);--lh-body-lg:1.58;
  --fs-lead:    clamp(17px, 1.5vw, 19px);--lh-lead:1.6;
  --fs-small:   14px;                    --lh-small:1.6;
  --fs-label:   12px;                    --lh-label:1;      --ls-label:0.12em;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 16px;

  --display:   'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Hanken Grotesk Fallback', system-ui, sans-serif;
  --mono:      'Roboto Mono', 'Roboto Mono Fallback', monospace;
}

html[data-bs-theme="dark"] {
  color-scheme: dark;

  --bg-rgb:          18, 12, 10;
  --text-rgb:        var(--ink-rgb);
  --accent-rgb:      var(--clay-ink-rgb);
  --teal-rgb:        var(--teal-ink-rgb);
  --teal-bright-rgb: var(--teal-ink-rgb);
  /* error red opened for AA on roast */
  --error-rgb:       224, 108, 90;
  --shadow-rgb:      var(--shadow-band-rgb);

  --bg-alt:    var(--paper);
  --surface:   var(--paper-2);
  --surface-2: var(--paper-2);

  --muted:     var(--ink-soft);
  --muted-dim: var(--ink-soft);

  --teal-cta: var(--teal-ink);
  --gold:     var(--gold-ink);
  --gold-dim: rgba(var(--gold-ink-rgb), 0.28);

  --cred-border: rgba(var(--ink-rgb), 0.14);

  --shadow-rest:
    0 2px 10px rgba(var(--shadow-band-rgb), 0.34),
    0 0 0 1px  rgba(var(--ring-ink-rgb), 0.05);
  --shadow-hover:
    0 10px 36px rgba(var(--shadow-band-rgb), 0.40),
    0 0 0 1px   rgba(var(--ring-ink-rgb), 0.10);
  --shadow-focus: 0 0 0 3px rgba(var(--teal-ink-rgb), 0.55);

  --smoke-page: url('/assets/smoke-dark.svg');

  --bs-form-invalid-color:        rgb(var(--error-rgb));
  --bs-form-invalid-border-color: rgb(var(--error-rgb));
  --bs-link-hover-color-rgb:      var(--clay-ink-rgb);
}

/* `only light` is the documented opt-out from Chrome Android's forced auto-dark theme */
html[data-bs-theme="light"] { color-scheme: only light; }

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

section[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  /* a weight with no real face must fail visibly, not get faux-bolded */
  font-synthesis-weight: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";
  letter-spacing: var(--ls-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: 500;
}

h2, h3 {
  font-weight: 450;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }

strong {
  font-weight: 600;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(var(--text-rgb), 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* on viewports taller than the page, the slack opens ABOVE the closing block,
   so the cta-band stays glued to the footer instead of drifting away from it */
main > .cta-band {
  margin-top: auto;
}

main, section, footer, nav { position: relative; z-index: 1; }

a { color: inherit; }

h1, h2 { text-wrap: balance; }
h3     { text-wrap: balance; }
p      { text-wrap: pretty; }

.label, .eyebrow { text-wrap: balance; }

.skip-link { position:absolute; left:-9999px; top:0; z-index:2000; background:var(--clay-cta); color:var(--on-accent); padding:12px 16px; border-radius: 0 0 var(--radius-m) 0; font-size:14px; }
.skip-link:focus-visible { left:0; }

:root { accent-color: var(--clay-cta); }

::selection {
  background: var(--gold-dim);
  color: var(--text);
}

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

/* the vendor build zeroes the outline on .btn:focus-visible, so restate it here */
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  box-shadow: var(--shadow-focus);
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}

@media (max-width: 1024px) {
  .container { padding-inline: 32px; }
}

@media (max-width: 767px) {
  .container { padding-inline: 20px; }
  .row.g-5 { --bs-gutter-x: 2.5rem; }
}

/* row-cols steps the trimmed vendor build dropped */
@media (min-width: 768px) {
  .row-cols-md-3 > * { flex: 0 0 auto; width: 33.33333333%; }
}

@media (min-width: 992px) {
  .row-cols-lg-4 > * { flex: 0 0 auto; width: 25%; }
}

.form-control {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  border-radius: var(--radius-m);
  padding-block: 11px;
}

.form-control::placeholder { color: var(--muted-dim); }

.form-control:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--teal);
  box-shadow: 0 0 0 0.25rem rgba(var(--teal-rgb), 0.18);
}

/* background-color, never the background shorthand: that would drop the caret image */
.form-select {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  border-radius: var(--radius-m);
  padding-block: 11px;
}

.form-select:focus {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--teal);
  box-shadow: 0 0 0 0.25rem rgba(var(--teal-rgb), 0.18);
}

.form-select.is-invalid,
.form-select[aria-invalid="true"] {
  border-color: var(--error);
}

.form-select.is-invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 0.25rem rgba(var(--error-rgb), 0.18);
}

.site-nav {
  min-height: 76px;
  padding-block: 12px;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background: var(--paper);
  border-bottom: 1px solid var(--border-ink);
}

.site-nav {
  --text: var(--ink);
  --muted: var(--ink-soft);
  --muted-aa: var(--ink-soft);
  --teal: var(--teal-ink);
  --teal-bright: var(--teal-ink);
  --teal-light: var(--teal-ink);
  --clay: var(--clay-ink);
  --focus: var(--teal-ink);
  --border-strong: rgba(var(--ink-rgb), 0.25);
  --bs-emphasis-color-rgb: var(--ink-rgb);
}

.site-nav.scrolled {
  background: rgba(var(--paper-rgb), 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(var(--ink-rgb), 0.18);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.08), 0 10px 26px rgba(var(--shadow-rgb), 0.14);
}

.site-nav .navbar-brand.brand {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.site-nav .navbar-brand.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}

.site-nav .navbar-brand.brand-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.site-nav .navbar-brand.brand-logo .brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
  min-width: 0;
}

.site-nav .navbar-brand.brand-logo .brand-wordmark {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.site-nav .navbar-brand.brand-logo .brand-descriptor {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--muted-aa);
  white-space: nowrap;
}

.site-nav .navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  position: relative;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.site-nav .navbar-nav .nav-link:not(.nav-cta) {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.site-nav .navbar-nav .nav-link:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--teal-light);
  transition: width 0.22s ease;
}

.site-nav .navbar-nav .nav-link:not(.nav-cta):hover,
.site-nav .navbar-nav .nav-link:not(.nav-cta):focus-visible {
  color: var(--text);
}

.site-nav .navbar-nav .nav-link:not(.nav-cta):hover::after,
.site-nav .navbar-nav .nav-link:not(.nav-cta):focus-visible::after { width: 100%; }

.site-nav .navbar-nav .nav-link.active {
  opacity: 1;
  color: var(--teal-light);
}

.site-nav .navbar-nav .nav-link.active::after { width: 100%; }

.site-nav .nav-cta {
  min-height: 44px;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* must match the navbar's lg expand point or the separator shows collapsed */
@media (min-width: 992px) {
  .site-nav .lang-dropdown {
    margin-left: 14px;
    padding-left: 18px;
    border-left: 1px solid var(--border-strong);
  }
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin: 0 -12px;
    padding: 12px 12px 16px;
    background: rgba(var(--paper-rgb), 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-ink);
    border-radius: 0 0 var(--radius-m) var(--radius-m);
  }

  .no-js .site-nav {
    position: relative !important;
    background: var(--paper);
  }

  .no-js .site-nav .navbar-toggler { display: none; }
  .no-js .site-nav .navbar-collapse { display: block !important; }

  body.nav-open { overflow: hidden; }

  .nav-cta-item {
    width: 100%;
    margin-top: 12px;
  }

  .site-nav .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.navbar-toggler {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.form-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-error {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--error);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-row input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 44px;
  min-height: 44px;
  margin-top: 0;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.consent-row input[type='checkbox'].is-invalid {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.consent-row label {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}

.form-note {
  margin: 0;
  max-width: 52ch;
  font-size: var(--fs-small);
  color: var(--muted-aa);
}

.form-note.text-center { margin-inline: auto; }

.consent-row label { max-width: 52ch; }

.form-control[aria-invalid="true"] {
  border-color: var(--error);
}

.form-control[aria-invalid="true"]:focus,
.form-control.is-invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 0.25rem rgba(var(--error-rgb), 0.18);
}

.form-control.is-valid,
.form-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(var(--error-rgb), 0.35);
  background: rgba(var(--error-rgb), 0.06);
  color: var(--error);
  font-size: 14px;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* (0,2,0) beats .page-hero's padding shorthand; 100px = bar clearance */
.page-hero.error-page {
  min-height: min(100vh - 220px, 620px);
  min-height: min(100dvh - 220px, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 48px;
  text-align: center;
}

#hero {
  min-height: min(68vh, 680px);
  min-height: min(68dvh, 680px);
  display: flex;
  align-items: center;
  padding-block: 120px 80px;
  padding-inline: 48px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
    --plume-size: 500px auto;
  --plume-rest: right -30px bottom -170px;
  --plume-drift: right -56px bottom -92px;
  --veil-size: 480px auto;
  --veil-rest: left -40px bottom 30px;
  --veil-drift: left -6px bottom 44px;
  --beans-tile: 680px 680px;
}

/* the drift keyframes must restate every layer; beans and radials pinned at 0 0 */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    url('/assets/smoke-dark.svg') no-repeat var(--plume-rest) / var(--plume-size),
    url('/assets/smoke-veil.svg') no-repeat var(--veil-rest) / var(--veil-size),
    url('/assets/coffee-beans.svg') repeat 0 0 / var(--beans-tile),
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(var(--clay-glow-rgb), 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 10% 85%, rgba(var(--teal-ink-rgb), 0.05) 0%, transparent 60%),
    var(--dark);
}

@media (prefers-reduced-motion: no-preference) {
  #hero::before {
    animation: smokeDrift 90s ease-in-out infinite alternate;
  }

  @keyframes smokeDrift {
    from {
      background-position: var(--plume-rest), var(--veil-rest), 0 0, 0 0, 0 0;
    }

    to {
      background-position: var(--plume-drift), var(--veil-drift), 0 0, 0 0, 0 0;
    }
  }
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

@media (max-width: 991.98px) {
  #hero .col-lg-6:last-child {
    display: flex;
    justify-content: center;
  }

  .headshot-frame { max-width: 280px; }
  .headshot-monogram .monogram-ring { width: 200px; height: 200px; }
}

@media (max-width: 767px) {
  #hero {
    padding-block: 88px 56px;
    padding-inline: 20px;
  }

  .headshot-frame { max-width: 180px; }
  .headshot-monogram .monogram-ring { width: 160px; height: 160px; }
}

@media (max-width: 575.98px) {
  #hero {
    --plume-size: 340px auto;
    --plume-rest: right -74px bottom -196px;
    --plume-drift: right -100px bottom -152px;
    --veil-size: 300px auto;
    --veil-rest: left -120px bottom -30px;
    --veil-drift: left -86px bottom -16px;
    --beans-tile: 440px 440px;
  }
}

.hero-inner { width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--teal);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-sep {
  margin-inline: 8px;
}

@media (max-width: 479px) {
  .eyebrow-sep {
    display: block;
    margin-inline: 0;
    font-size: 0;
    line-height: 0;
  }
}

#hero h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  margin-bottom: 0.2em;
  text-wrap: balance;
}

.hero-personal {
  font-family: var(--display);
  font-size: clamp(20px, 1.1rem + 0.8vw, 26px);
  font-weight: 500;
  font-style: italic;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  line-height: 1.3;
  color: var(--clay);
  margin: 0 0 22px;
  text-wrap: balance;
}

.accent { color: var(--clay); }

.lead {
  font-size: var(--fs-body-lg);
  color: var(--muted-aa);
  max-width: 460px;
  line-height: var(--lh-body-lg);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-path-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
}

.hero-path-links .inline-link {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.hero-path-sep {
  margin-inline: 10px;
  color: color-mix(in srgb, var(--teal) 90%, transparent);
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .hero-path-sep { display: none; }
  .hero-path-links { gap: 8px 14px; }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--muted-aa);
  letter-spacing: 0.04em;
  margin-top: 12px;
  margin-bottom: 20px;
}

.trust-item { white-space: nowrap; }

.trust-sep {
  margin-inline: 10px;
  color: color-mix(in srgb, var(--teal) 90%, transparent);
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .trust-sep { display: none; }
  .trust-strip {
    font-size: var(--fs-label);
    gap: 4px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
  }
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.socials a {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--muted-aa);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid var(--socials-rule);
  padding-bottom: 2px;
  padding-top: 6px;
  margin-top: -6px;
  transition: color 0.2s, border-color 0.2s;
}

.socials a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

#hero .socials { margin-top: 30px; }

@media (max-width: 430px) {
  .socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .socials a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0;
    margin-top: 0;
  }
}

.icon {
  vertical-align: -3px;
  margin-right: 6px;
  flex-shrink: 0;
}

.headshot-frame {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  position: relative;
  margin: 0;
  transform: rotate(-1.5deg);
}

.eyebrow,
.hero-title,
.lead,
.hero-actions,
.trust-strip,
.socials,
.headshot-frame {
  animation: heroFadeUp 0.45s 0.12s ease-out both;
}

.headshot-frame::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--clay);
  background: none;
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.headshot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 1px solid rgba(var(--clay-glow-rgb), 0.15);
  box-shadow:
    0 24px 64px rgba(var(--shadow-deep-rgb), 0.5),
    0 0 0 1px rgba(var(--clay-glow-rgb), 0.12),
    0 0 40px rgba(var(--clay-glow-rgb), 0.10),
    inset 0 0 48px rgba(var(--vignette-rgb), 0.55);
  background: linear-gradient(135deg, rgba(var(--clay-glow-rgb), 0.18), rgba(var(--teal-ink-rgb), 0.10));
  display: block;
  position: relative;
  z-index: 0;
}

.headshot-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 46% 40%,
    transparent 36%,
    rgba(var(--vignette-rgb), 0.28) 58%,
    rgba(var(--vignette-rgb), 0.68) 78%,
    rgba(var(--vignette-rgb), 0.88) 92%
  );
  z-index: 1;
  pointer-events: none;
}

.headshot-frame.img-loaded-fail img {
  display: none;
}

@media (max-width: 767px) {
  .headshot-frame {
    max-width: 180px;
    margin: 0 auto 16px;
    transform: none;
  }
  .headshot-frame:hover {
    transform: none;
  }
  .headshot-frame::after { display: none; }
}

.headshot-monogram {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    160deg,
    var(--monogram-plate-1) 0%,
    var(--monogram-plate-2) 100%
  );
  z-index: 0;
}

.headshot-frame img {
  position: relative;
  z-index: 1;
}

.monogram-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--clay) 0%, var(--teal-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 48px rgba(var(--clay-glow-rgb), 0.2),
    0 0 96px rgba(var(--clay-glow-rgb), 0.08);
}

.monogram-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dark-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.monogram-initials {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--clay);
}

.monogram-subtitle {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-aa);
}

.monogram-ring::before,
.monogram-ring::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.6;
}

.monogram-ring::before {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.monogram-ring::after {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.headshot-monogram::after {
  content: '';
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--clay-glow-rgb), 0.25) 30%,
    rgba(var(--teal-ink-rgb), 0.15) 70%,
    transparent 100%
  );
  box-shadow:
    0 -10px 0 rgba(var(--clay-glow-rgb), 0.12),
    0 10px 0 rgba(var(--clay-glow-rgb), 0.08);
}

.headshot-frame figcaption {
  width: fit-content;
  margin: 18px auto 0;
  text-align: center;
  background: var(--headshot-cap-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--clay-glow-rgb), 0.2);
  border-radius: var(--radius-m);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cap-name { color: var(--text); font-weight: 500; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-contrast: more) {
  :root {
    --muted-dim: var(--muted);
  }
  .monogram-initials {
    -webkit-text-fill-color: var(--clay);
    background: none;
  }
}

@media (forced-colors: active) {
  .monogram-initials {
    -webkit-text-fill-color: CanvasText;
    background: none;
  }
}

/* visible by default: nojs.js adds .js-anim, so no JS means no hidden content */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
  animation: reveal-failsafe 0.5s ease 3s forwards;
}

.js-anim [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.js-anim [data-reveal]:focus-visible,
.js-anim [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
  animation: none;
  transition-delay: 0s;
}

@keyframes reveal-failsafe {
  to { opacity: 1; transform: none; }
}

html { color-scheme: light; }

.project.accent-teal   { --c: var(--teal); }
.project.accent-gold   { --c: var(--clay); }

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .eyebrow, .hero-title, .lead, .hero-actions,
  .trust-strip, .socials, .headshot-frame {
    animation: none;
    opacity: 1;
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html { scroll-behavior: auto; }
}

.accent-word {
  color: var(--clay);
}

section {
  padding-block: 120px;
  padding-inline: 0;
  position: relative;
}

section.alt {
  background: var(--dark-2);
}

.section--band {
  background: var(--paper);
  color: var(--ink);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --muted-aa: var(--ink-soft);
  --muted-dim: var(--ink-soft);
  --clay: var(--clay-ink);
  --teal: var(--teal-ink);
  --teal-light: var(--teal-ink);
  --teal-bright: var(--teal-ink);
  --gold: var(--gold-ink);
  --dark: var(--paper);
  --dark-2: var(--paper-2);
  --dark-3: var(--paper-2);
  --surface: var(--paper-2);
  --surface-2: var(--paper-2);
  --border: var(--border-ink);
  --border-strong: rgba(var(--ink-rgb), 0.18);
  --border-section: var(--border-ink);
  --border-card: var(--border-ink);
  --border-card-md: rgba(var(--ink-rgb), 0.16);
  --border-hover: rgba(var(--clay-ink-rgb), 0.45);
  --shadow-rest: 0 2px 10px rgba(var(--shadow-band-rgb), 0.34), 0 0 0 1px rgba(var(--ring-ink-rgb), 0.05);
  --shadow-hover: 0 10px 36px rgba(var(--shadow-band-rgb), 0.40), 0 0 0 1px rgba(var(--ring-ink-rgb), 0.10);
  --focus: var(--teal-ink);
  --shadow-focus: 0 0 0 3px rgba(var(--teal-ink-rgb), 0.55);
}

.section--band:not(#hero)::after {
  background: linear-gradient(90deg, transparent 0%, rgba(var(--ink-rgb), 0.12) 35%, rgba(var(--ink-rgb), 0.12) 65%, transparent 100%);
  opacity: 1;
}

main > section.cta-band:not(#hero)::after {
  content: none;
}

.frame-terminal {
  --text: var(--terminal-text);
  --muted: var(--terminal-muted);
  --muted-aa: var(--terminal-muted);
  --teal: var(--teal-ink);
  --teal-bright: var(--teal-ink);
  color: var(--terminal-text);
}

section:not(#hero)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-section) 35%,
    var(--border-section) 65%,
    transparent 100%
  );
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

#contact::after { display: none; }

@media (max-width: 1023px) {
  section { padding-block: 96px; }
}

@media (max-width: 767px) {
  section { padding-block: 60px; }
}

.section-head { margin-bottom: 8px; }
.section-head.center { text-align: center; }

.label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: var(--lh-label);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--clay);
}

.label .accent { color: var(--clay); }

section h2 {
  font-size: var(--fs-h2);
  font-weight: 450;
  letter-spacing: var(--ls-h2);
  line-height: var(--lh-h2);
}

.section-sub {
  color: var(--muted-aa);
  font-size: var(--fs-body-lg);
  font-weight: 350;
  margin-top: 12px;
  max-width: 640px;
  line-height: var(--lh-body-lg);
}
.section-head.center .section-sub { margin-inline: auto; }

.section-sub--center {
  margin-inline: auto;
  text-align: center;
}

.inline-link {
  color: var(--clay);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.18s ease;
}

.inline-link:hover { text-decoration-color: var(--clay); }

@media (max-width: 767.98px) {
  p .inline-link,
  li .inline-link,
  .legal-content p a,
  .legal-content li a,
  .timeline-body p a,
  .map-caption a,
  .form-note a,
  .consent-row label a {
    padding-block: 6px;
    margin-block: -6px;
  }
}

#proof { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.proof-item { display: flex; flex-direction: column; gap: 0.25rem; }
.proof-val  {
  font-family: var(--mono);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.proof-label { font-size: var(--fs-small); color: var(--muted); }
.proof-sep   { font-size: 1.5rem; color: var(--muted-dim); }

#proof .trust-strip {
  justify-content: center;
  margin: 20px 0 0;
  animation: none;
}

@media (max-width: 991.98px) {
  .proof-sep { display: none; }
  .proof-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    justify-items: center;
  }
}

.project {
  background: var(--dark-3);
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-rest);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.project-body { padding: 28px; }

.project-body h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: var(--ls-h3);
  margin-bottom: 10px;
}

.project-body p {
  font-size: var(--fs-body);
  color: var(--muted-aa);
  line-height: 1.6;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack span {
  font-size: var(--fs-label);
  color: #454c54;
  background: color-mix(in srgb, #454c54 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #454c54 16%, transparent);
  padding: 3px 10px;
  border-radius: var(--radius-m);
  font-family: var(--mono);
}

html[data-bs-theme="dark"] .stack span {
  color: #b0b4ba;
  background: color-mix(in srgb, #b0b4ba 7%, transparent);
  box-shadow: inset 0 0 0 1px #43484e;
}

.hotfix-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-3);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
  border-radius: var(--radius-m);
  padding: 16px 24px;
  margin-top: 48px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hotfix-strip-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
}

.hotfix-strip-text {
  flex: 1;
  min-width: 200px;
}

.hotfix-strip-text strong {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hotfix-strip-text span {
  font-size: var(--fs-small);
  color: var(--muted-aa);
}

.hotfix-strip .btn-hotfix {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: var(--radius-m);
  color: var(--teal);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: background 150ms ease-out, color 150ms ease-out;
  white-space: nowrap;
  flex-shrink: 0;
}

.hotfix-strip .btn-hotfix:hover {
  background: var(--teal);
  color: var(--dark);
}

.hotfix-strip .btn-hotfix:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.mobile-cta { display: none; }
@media (max-width: 991.98px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--clay-cta);
    color: var(--on-accent);
    font-weight: 600;
    font-size: var(--fs-small);
    text-decoration: none;
    border-radius: var(--radius-m);
    box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.30);
    touch-action: manipulation;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .mobile-cta.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(130%);
    pointer-events: none;
  }
}


.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border-card-md);
  border-radius: var(--radius-m);
  padding: 28px;
  box-shadow: var(--shadow-rest);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.quote p {
  font-size: var(--fs-body);
  color: var(--muted-aa);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: normal;
  text-wrap: pretty;
}

.quote p:last-child {
  margin-bottom: 0;
}

.quote-name {
  font-weight: 600;
  font-size: 14px;
}

.quote-role {
  font-size: 12px;
  color: var(--clay);
  margin-top: 2px;
  font-family: var(--mono);
}

.quote-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rec-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rec-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-3);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-rest);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px;
}

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-h3);
  margin-bottom: 10px;
}

.service-card .card-body p {
  flex: 1;
}

.service-card .inline-link {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-m);
  font-weight: 600;
  font-size: var(--fs-body);
  font-family: var(--font-body);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  touch-action: manipulation;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

.btn:hover, .btn:focus, .btn:focus-visible { text-decoration: none; }

.btn-primary {
  background: var(--clay-cta);
  color: var(--on-accent);
  box-shadow: 0 4px 24px rgba(var(--clay-cta-rgb), 0.3);
  border: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
  background: var(--clay-cta);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--clay-cta-rgb), 0.45);
  color: var(--on-accent);
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 12px rgba(var(--clay-cta-rgb), 0.3);
}

.btn-outline {
  border: 1.5px solid var(--teal);
  color: var(--teal-light);
  background: transparent;
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal-light);
  border-color: var(--teal-light);
}

.btn-outline:active { transform: scale(0.96); }

/* --teal-light misses AA on .alt; :not(.section--band) keeps this off the dark bands */
section.alt:not(.section--band) .btn-outline,
section.alt:not(.section--band) .btn-outline:hover {
  color: var(--teal-dark);
}

.btn-ghost {
  border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  color: var(--teal);
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  background: transparent;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--teal) 9%, transparent);
  border-color: color-mix(in srgb, var(--teal) 45%, transparent);
  color: var(--teal);
}

.btn-ghost:active { transform: scale(0.96); }

/* the vendor subset paints :disabled at (0,2,0), so match it or it wins */
.btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn-primary:disabled {
  background: var(--clay-cta);
  color: var(--on-accent);
  opacity: 0.6;
}

.btn-outline:disabled {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-light);
  opacity: 0.6;
}

.btn-ghost:disabled {
  background: transparent;
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
  color: var(--teal);
  opacity: 0.6;
}

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-inline: 20px;
}

.contact-lead {
  color: var(--muted-aa);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  max-width: 45ch;
  margin-inline: auto;
  margin-bottom: 40px;
  text-wrap: pretty;
}

#contact-form {
  text-align: left;
}

#contact-form textarea { min-height: 120px; }

.success {
  background: rgba(var(--gold-ink-rgb), 0.08);
  border: 1px solid rgba(var(--gold-ink-rgb), 0.27);
  border-radius: var(--radius-m);
  padding: 32px;
  color: var(--gold);
}

.success .check { line-height: 0; margin-bottom: 8px; }
.success-title { font-weight: 600; font-size: 18px; }
.success-sub { font-size: 14px; color: var(--muted-aa); margin-top: 8px; }

.legal-page {
  max-width: 720px;
  padding-top: 104px;
  padding-bottom: 80px;
}

.legal-content {
  margin-top: 32px;
  color: var(--muted-aa);
  max-width: 54ch;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-meta {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-label);
}

.site-footer {
  padding-top: 22px;
  padding-bottom: 22px;
}

.copy { font-size: var(--fs-small); color: var(--muted-aa); }
.cross-link {
  font-size: var(--fs-small);
  color: var(--teal);
  text-decoration: none;
  font-family: var(--mono);
}

.cross-link:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}

/* WCAG 2.5.8: block padding makes the 24px hit box, negative margin keeps the rhythm */
.footer-links a:not(.cross-link) {
  color: var(--muted-aa);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color 0.15s ease;
  padding-block: 6px;
  margin-block: -6px;
}

.footer-links a:not(.cross-link):hover,
.footer-links a:not(.cross-link):focus-visible {
  color: var(--teal-bright);
  text-decoration: underline;
}

.footer-sep {
  color: var(--muted-dim);
  font-size: var(--fs-small);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
}

.footer-stack-label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-dim);
}

.stack-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .stack-strip { max-width: 364px; }
}

@media (max-width: 412px) {
  .stack-strip { max-width: 232px; }
}

.footer-stack-icon {
  display: block;
  width: 34px;
  height: 34px;
  fill: currentColor;
  opacity: 1;
  transition: transform 0.15s ease;
}

.footer-stack li:hover .footer-stack-icon {
  transform: translateY(-2px);
}

/* vendor brand hues stay literal; band under them never flips */
.fs-php        { color: #777BB4; }
.fs-laravel    { color: #FF2D20; }
.fs-javascript { color: #F7DF1E; }
.fs-typescript { color: #3178C6; }
.fs-nodedotjs  { color: #5FA04E; }
.fs-react      { color: #61DAFB; }
.fs-python     { color: #3776AB; }
.fs-docker     { color: #2496ED; }
.fs-claude     { color: #D97757; }
.fs-openai     { color: #8B7FD4; } /* brand #412991 is 1.36:1 on this footer; this lightened tint is 4.24:1 */

.fs-openjdk,
.fs-cursor {
  color: var(--ink);
}

@media (max-width: 767px) {
  #hero { padding-inline: 20px; }

  .hotfix-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hotfix-strip .btn-hotfix {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .btn-primary, .btn-outline, .btn-ghost, .btn-hotfix {
    min-height: 44px;
    touch-action: manipulation;
  }

}

@media (max-width: 480px) {

  .proof-val { font-size: clamp(22px, 7vw, 36px); }

}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-bullets li {
  font-size: var(--fs-body);
  color: var(--muted-aa);
  line-height: 1.55;
  padding-left: 24px;
  position: relative;
  text-wrap: pretty;
}

.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--clay);
  border-radius: 2px;
}

.price-line {
  font-family: var(--mono);
  font-size: var(--fs-body);
  color: var(--clay);
  background: rgba(var(--clay-glow-rgb), 0.08);
  border: 1px solid rgba(var(--clay-glow-rgb), 0.22);
  border-radius: var(--radius-m);
  padding: 7px 14px;
  display: inline-block;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.frame-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
  font-family: var(--mono);
  font-size: var(--fs-small);
  line-height: 1.8;
}

.ft-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--terminal-chrome);
  border-bottom: 1px solid var(--terminal-hairline);
}

.ft-dots { display: flex; gap: 6px; flex-shrink: 0; }

.ft-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ft-dots span:nth-child(1) { background: rgba(var(--terminal-dot-rgb), 0.20); }
.ft-dots span:nth-child(2) { background: rgba(var(--terminal-dot-rgb), 0.13); }
.ft-dots span:nth-child(3) { background: var(--terminal-dot-live); }

.ft-title {
  font-size: var(--fs-label);
  color: var(--muted);
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.ft-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.ft-line { white-space: pre-wrap; }

.ft-prompt { color: var(--teal-bright); }
.ft-cmd    { color: var(--text); }
.ft-hi     { color: var(--teal-bright); }
.ft-note   { color: var(--muted); }

.ft-cursor {
  color: var(--teal);
  animation: blink 1s step-end infinite;
  display: inline-block;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.creds-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.cred-badge {
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: var(--muted-aa);
  background: rgba(var(--teal-rgb), 0.06);
  border: 1px solid var(--cred-border);
  border-radius: var(--radius-s);
  padding: 4px 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--muted-aa);
  margin-top: 4px;
}

.badge-active {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--teal-cta);
  background: rgba(var(--teal-rgb), 0.10);
  border: 1px solid rgba(var(--teal-rgb), 0.25);
  border-radius: var(--radius-s);
  padding: 3px 8px;
  line-height: 1.4;
  white-space: nowrap;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 6px 44px;
  align-items: start;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 6px;
}

.timeline-org {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text);
}

.timeline-brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: -0.01em;
  color: var(--text);
}

.timeline-date {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--muted-aa);
}

.timeline-body h3 { margin-bottom: 10px; }

.timeline-body p {
  max-width: 54ch;
  color: var(--muted-aa);
  margin-bottom: 14px;
}

.timeline-body p:last-child { margin-bottom: 0; }

.timeline-item h3,
.col-head {
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: var(--ls-h3);
}

@media (max-width: 767px) {
  .timeline { gap: 36px; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding-top: 0;
  }
}

/* utilities the trimmed vendor build dropped */
.text-muted { color: var(--muted-aa); }
.text-center { text-align: center; }
.justify-content-center { justify-content: center; }
.w-100 { width: 100%; }
.pb-5 { padding-bottom: 3rem; }

@media (max-width: 991.98px) {
  .frame-terminal { margin-top: 32px; }
}

.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-toggle {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
  flex: none;
}

.nav-dropdown.open > .dropdown-toggle .dropdown-caret {
  transform: rotate(225deg) translateY(2px);
}

.nav-dropdown .dropdown-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 264px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.22);
  z-index: 110;
}

.nav-dropdown.open > .dropdown-menu,
.no-js .nav-dropdown > .dropdown-menu {
  display: block;
}

.nav-dropdown .dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus-visible {
  background: var(--dropdown-hover);
  color: var(--teal-bright);
}

.nav-dropdown .dropdown-item.active { color: var(--teal-bright); }

.lang-dropdown .dropdown-toggle {
  gap: 6px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
}

.lang-dropdown .lang-flag {
  flex: none;
  width: 16px;
  height: 12px;
  display: block;
  border-radius: 1px;
}
.lang-dropdown .dropdown-menu { min-width: 0; }

.lang-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.lang-dropdown span.dropdown-item { cursor: default; }
.lang-dropdown span.dropdown-item:hover { background: none; }

@media (min-width: 992px) {
  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    /* light panel on a dark bar: re-pin so the nav's ink remap can't reach in */
    --text: rgb(var(--text-rgb));
    --teal-bright: rgb(var(--teal-bright-rgb));
    --border-strong: rgba(var(--text-rgb), 0.18);
    --focus: rgb(var(--teal-rgb));
  }
}

@media (max-width: 991.98px) {
  .nav-dropdown .dropdown-menu,
  .nav-dropdown.open > .dropdown-menu,
  .no-js .nav-dropdown > .dropdown-menu {
    position: static;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 4px 16px;
    min-width: 0;
  }
}

/* fixed-bar clearance: 76px bar + 24px air */
.breadcrumbs {
  padding-top: 100px;
  font-family: var(--mono);
  font-size: var(--fs-label);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted-dim);
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before { content: '›'; color: var(--muted-dim); }

.breadcrumbs a {
  color: var(--muted-aa);
  text-decoration: none;
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--teal-bright);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] { color: var(--text); }
.breadcrumbs .crumb-plain { color: var(--muted-dim); }

.page-hero {
  padding: 88px 0 120px;
  background: var(--smoke-page) no-repeat right -70px top -60px / 360px auto;
}

@media (max-width: 575.98px) {
  .page-hero {
    background-size: 240px auto;
    background-position: right -90px top -40px;
  }
}

.page-hero + .page-hero {
  padding-top: 0;
  background-image: none;
}

.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: 500;
  margin: 14px 0 18px;
  text-wrap: balance;
}

.page-hero .lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.page-hero .row > [class*='col-'] > p:not(.lead) {
  color: var(--muted);
  max-width: 55ch;
}

.page-hero .hero-actions { margin-top: 26px; }

.cta-band {
  text-align: center;
  padding-block: 56px 44px;
}

main > section:has(+ .cta-band) {
  padding-bottom: 56px;
}

.cta-band .cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: center;
}

/* placed last: source order beats the earlier same-specificity hover rules */
@media (prefers-reduced-motion: reduce) {
  .project:hover,
  .quote:hover,
  .service-card:hover,
  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:focus-visible,
  .btn-primary:active,
  .btn-outline:active,
  .btn-ghost:active {
    transform: none;
  }

  .headshot-frame,
  .headshot-frame:hover { transform: rotate(-1.5deg); }
}

.topic-card.t-js,
.topic-card.t-rn,
.topic-card.t-php,
.topic-card.t-ai,
.topic-card.t-py,
.topic-card.t-java {
  border-top: 3px solid var(--clay);
}

.topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 22px;
  background: var(--dark-3);
  color: var(--text);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-rest);
}

.topic-card h3 { margin: 0 0 8px; }

.topic-icon + h3 { margin-top: 16px; }

.topic-card p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--muted-aa);
  margin: 0;
}

.topic-card .service-bullets { margin: 16px 0 0; }

.course-modules-toggle {
  padding-block: 10px;
  margin-block: -10px;
}

.topic-icon {
  display: block;
  flex: none;
}

.topic-icon--clay { color: var(--clay); }

.session-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.session-steps li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--muted-aa);
  text-wrap: pretty;
}

.session-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--clay);
  border-radius: 2px;
}

.sketch {
  display: block;
  max-width: 100%;
  height: auto;
  color: var(--muted-dim);
}

.sketch--center { margin-inline: auto; }
.section-head > .sketch { margin-bottom: 20px; }

.sketch--hero {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.sketch .sk-teal { color: var(--teal); }

.org-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

.org-mark,
.org-strip img {
  display: block;
  height: 30px;
  width: auto;
  filter: var(--plate-mark-filter);
}

.map-plate {
  width: min(760px, calc(100% - 80px));
  margin: 0 auto 48px;
}

.map-plate .map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  border: 1px solid var(--map-plate-border);
  border-radius: var(--radius-m);
  background: var(--map-plate-bg);
}

.map-plate .map-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-bs-theme='dark'] .map-plate .map-embed img {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7);
}

.map-caption {
  max-width: 52ch;
  margin: 14px auto 0;
  font-size: var(--fs-small);
  color: var(--muted-dim);
  text-align: center;
}

.map-caption .inline-link,
.map-caption .map-credit {
  display: inline-block;
  margin-inline-start: 0.35em;
}

.map-caption .map-credit {
  color: var(--muted-dim);
}

@media (max-width: 767px) {
  .map-plate .map-embed { aspect-ratio: 4 / 3; }
  .map-plate { width: calc(100% - 40px); }
}

/* (0,4,0) outranks the (0,3,0) .nav-link rule so the pill keeps button weight */
.site-nav .navbar-nav .nav-link.nav-cta {
  padding: 10px 20px;
  font-size: var(--fs-small);
  font-weight: 600;
}

.site-nav .navbar-nav {
  gap: clamp(6px, 1.1vw, 20px);
}

.site-nav .navbar-nav .dropdown-toggle {
  white-space: nowrap;
}

.site-nav .navbar-nav .nav-link:focus-visible,
#nav-lang-btn:focus-visible,
#nav-theme-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: none;
}

.dropdown-item .di {
  width: 14px;
  height: 14px;
  margin-right: 9px;
  vertical-align: -2px;
  fill: currentColor;
  opacity: 0.62;
}

.legal-page h1 { font-size: var(--fs-h2); }

.error-page p {
  max-width: 50ch;
  margin-inline: auto;
}

.rail-mark {
  display: block;
  height: 30px;
  width: 116px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 6px;
  filter: var(--plate-mark-desat);
  opacity: 0.62;
}

.rail-mark[src*='coderdojo'] { width: 30px; }

/* keep the coral wordmark; grayscale would turn it into a grey smear */
.rail-mark[src*='cartea-daliei'] {
  filter: none;
  opacity: 0.92;
}

/* must stay after the rules above: media queries add no specificity */
@media (max-width: 767px) {
  .rail-mark {
    width: auto;
    max-width: 116px;
  }
}

.timeline-item:hover .rail-mark { opacity: 0.85; }

.cta-band-note {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--muted-aa);
}

.cta-band-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.24);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cta-band-note a:hover,
.cta-band-note a:focus-visible {
  color: var(--teal-bright);
  border-bottom-color: currentColor;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.service-bullets--boxed li {
  padding-left: 44px;
}

.service-bullets--boxed li::before {
  content: '';
  top: 10px;
  left: 9px;
  width: 8px;
  height: 8px;
  background: var(--clay);
  border-radius: 2px;
  opacity: 0.85;
}

.navbar-toggler {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
}

.navbar-toggler .navbar-toggler-icon { display: none; }

.navbar-toggler::before,
.navbar-toggler::after {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.navbar-toggler[aria-expanded='true']::before { transform: translateY(3.25px) rotate(45deg); }
.navbar-toggler[aria-expanded='true']::after  { transform: translateY(-3.25px) rotate(-45deg); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .navbar-nav { gap: 4px; }
  .site-nav .navbar-nav .nav-link.nav-cta { padding: 9px 14px; }
  .brand-descriptor { display: none; }
}

.nav-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 2;
}

.site-nav .navbar-collapse {
  order: 3;
  flex-basis: 100%;
}

@media (min-width: 992px) {
  .nav-chrome {
    order: 3;
    margin-left: 8px;
  }

  .site-nav .navbar-collapse {
    order: 2;
    flex-basis: auto;
    flex-grow: 1;
  }
}

.nav-chrome .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 0;
  width: 44px;
  height: 42px;
  min-width: 44px;
  gap: 0;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

@media (min-width: 992px) {
  .nav-chrome .theme-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-color: transparent;
  }
}

.theme-icon { display: block; flex: none; }

.theme-icon--sun { display: none; }
html[data-bs-theme="dark"] .theme-icon--sun  { display: block; }
html[data-bs-theme="dark"] .theme-icon--moon { display: none; }

/* JS-only control: nojs.js clears .no-js before first paint */
.no-js .nav-chrome .theme-toggle {
  display: none;
}


/* black-ink marks need a light chip on roast; width:auto fits the painted mark */
html[data-bs-theme="dark"] .org-mark,
html[data-bs-theme="dark"] .org-strip img,
html[data-bs-theme="dark"] .rail-mark {
  width: auto;
  background: var(--logo-plate);
  border-radius: var(--radius-s);
  box-shadow: 0 0 0 5px var(--logo-plate);
  filter: var(--plate-mark-desat);
}

html[data-bs-theme="dark"] .rail-mark { opacity: 0.8; }
