/* Self-hosted variable fonts (avoids loosening CSP for Google Fonts). */
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dmsans-variable.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('assets/fonts/newsreader-variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Michigan SBDC RFP demo. One accent, readable glass, no external fonts. */
:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --ink: #172d30;
  --muted: #4c6265;
  --accent: #086b70;
  --accent-hover: #07565a;
  --tint: #e8f2f2;
  --line: #d5e0df;
  --control-line: #738789;
  --radius: 1.5rem;
  --shadow: 0 1rem 3rem rgb(23 45 48 / 7%);
  --width: 75rem;
  /* Glass — the same frosted-panel system used across Royal Empire's other
     builds (Landforce, JJ, the outreach previews): translucent white over
     imagery, a soft blur, a thin light edge. The stylesheet's own comment
     already promised "readable glass"; these tokens are what make that real
     instead of aspirational. */
  --glass: rgba(255, 255, 255, .68);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-edge: rgba(255, 255, 255, .8);
  --glass-ivory: rgba(245, 241, 232, .78);
  --blur: blur(18px) saturate(150%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block: 1.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 90% 5%, #dfeded 0, transparent 35rem),
    radial-gradient(ellipse at 0% 40%, #edf3f2 0, transparent 40rem), var(--bg);
  font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; block-size: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); text-underline-offset: .23em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus { outline: 3px solid var(--accent); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.6vw, 4.7rem); font-weight: 650; max-inline-size: 15ch; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.85rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
p, li, dd, a { overflow-wrap: anywhere; }
address { font-style: normal; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
legend { padding: 0; font-size: 1.2rem; font-weight: 650; margin-block-end: 1rem; }
ul, ol { padding-inline-start: 1.4rem; }
.shell { inline-size: min(var(--width), calc(100% - 2rem)); margin-inline: auto; }
.stack > * + * { margin-block-start: 1.15rem; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-head { max-inline-size: 43rem; margin-block-end: 2rem; }
.section-head p { margin-block-start: 1rem; color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-inline-size: 50ch; }
.small, figcaption { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.glass {
  background: #fff;
  border: 1px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(23 45 48 / 3%);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgb(255 255 255 / 80%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}
.card { padding: clamp(1.4rem, 3vw, 2rem); }
.card > * + * { margin-block-start: 1rem; }
.card p { color: var(--muted); }
.grid, .split, .hero-grid, .intake-layout { display: grid; gap: 1.25rem; }
.grid > *, .split > *, .hero-grid > *, .intake-layout > * { min-inline-size: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 3rem; padding: .75rem 1.25rem;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary { background: #fff; color: var(--accent); }
.button.secondary:hover { background: var(--tint); }
.button:disabled { cursor: wait; opacity: .7; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-block-size: 2.75rem; font-weight: 650; }
.skip-link {
  position: absolute; inset-block-start: .5rem; inset-inline-start: 1rem;
  z-index: 100; padding: .8rem 1.2rem; background: #fff; transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.demo-bar { padding-block: .65rem; border-block-end: 1px solid var(--line); font-size: .8rem; }
.demo-bar .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.25rem; }
.brand { color: var(--ink); text-decoration: none; line-height: 1.25; margin-inline-end: auto; }
.brand strong { display: block; font-size: 1.3rem; letter-spacing: -.035em; }
.brand small { display: block; font-size: .72rem; margin-block-start: .25rem; }
.menu-toggle { display: none; }
.primary-nav { inline-size: 100%; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: .2rem .65rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a { display: flex; align-items: center; min-block-size: 2.75rem; padding: .4rem .25rem; font-size: .9rem; color: var(--ink); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--accent); font-weight: 750; text-decoration: underline; }
.primary-nav a:hover { text-decoration: underline; }
.primary-nav .button { color: #fff; padding-inline: 1rem; }
.primary-nav .button[aria-current="page"] { color: #fff; }
.language-nav { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .7rem; font-size: .8rem; }
.language-nav a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.breadcrumb { font-size: .875rem; margin-block: .5rem 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); margin-inline-end: .6rem; }
.hero-panel { padding: clamp(1.4rem, 4vw, 3.25rem); border-radius: 2rem; }
.hero-grid { align-items: center; gap: 2.5rem; }
.hero-copy > * + * { margin-block-start: 1.45rem; }
.photo img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); border-radius: 1.25rem; }
.photo figcaption { margin-block-start: .7rem; }
.page-intro { max-inline-size: 52rem; padding-block: 1rem 2.5rem; }
.page-intro > * + * { margin-block-start: 1.25rem; }
.number { display: block; font-size: .875rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.quote { padding: clamp(1.6rem, 5vw, 4rem); }
.quote blockquote { font-size: clamp(1.35rem, 2.7vw, 2.2rem); line-height: 1.4; letter-spacing: -.025em; max-inline-size: 42ch; }
.quote figcaption { margin-block-start: 1.5rem; }
.callout { padding: clamp(1.5rem, 4vw, 3rem); }
.callout > * + * { margin-block-start: 1.25rem; }
.pill { display: inline-block; border-radius: 999px; padding: .25rem .75rem; background: var(--tint); color: var(--teal-deep, #075861); font-size: .8rem; font-weight: 650; }  /* teal on pale lake is 4.28:1 — below AA; teal-deep is 6.75:1 */
.rule { border: 0; border-block-start: 1px solid var(--line); margin-block: 1.5rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li + li { border-block-start: 1px solid var(--line); }
.link-list a { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding-block: .6rem; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; padding: 1.25rem; margin-block-end: 1rem; }
.filter-bar .field { flex: 1 1 12rem; }
.result-count { margin-block-end: 1.25rem; font-size: .875rem; color: var(--muted); }
.empty-state { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .check-label { font-weight: 650; }
.field input, .field select, .field textarea {
  inline-size: 100%; min-block-size: 3rem; padding: .75rem .85rem;
  border: 1px solid var(--control-line); border-radius: .6rem;
  color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-block-size: 10rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field [aria-invalid="true"] { border: 2px solid var(--ink); }
.hint, .field-error { font-size: .875rem; }
.hint { color: var(--muted); }
.field-error { color: var(--ink); font-weight: 650; }
.check-label { display: flex; align-items: start; gap: .8rem; cursor: pointer; }
.check-label input { flex: 0 0 auto; inline-size: 1.3rem; block-size: 1.3rem; margin-block-start: .2rem; accent-color: var(--accent); }
.form-stack > * + * { margin-block-start: 1.75rem; }
.error-summary { background: #fff; border: 2px solid var(--ink); border-radius: .75rem; padding: 1.25rem; }
.error-summary h2 { font-size: 1.25rem; }
.error-summary ul { margin-block-end: 0; }
.error-summary a { display: inline-block; padding-block: .3rem; }
.form-status { min-block-size: 1.65em; margin-block-start: 1rem; font-weight: 650; }
.notice { border-inline-start: 3px solid var(--accent); padding: 1rem 1.25rem; background: var(--tint); border-radius: .25rem .75rem .75rem .25rem; }
.steps li + li { margin-block-start: 1rem; }
details.faq { padding-block: 1rem; border-block-end: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; min-block-size: 2.75rem; padding-block: .5rem; }
details.faq p { padding-block: .75rem; max-inline-size: 65ch; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; }
.footer-grid p { font-size: .875rem; max-inline-size: 45ch; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-block-start: 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); font-size: .8rem; }
@media (min-width: 42rem) {
  .grid.two, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 56rem) {
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .intake-layout { grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 1fr); align-items: start; gap: 2rem; }
  .hero-grid .photo img { aspect-ratio: 4 / 5; }
}
@media (min-width: 70rem) {
  .primary-nav { inline-size: auto; }
  .primary-nav ul { align-items: center; }
}
@media (max-width: 69.999rem) {
  .navigation-ready .menu-toggle { display: inline-flex; }
  .navigation-ready .primary-nav:not(.is-open) { display: none; }
  .navigation-ready .primary-nav ul { flex-direction: column; align-items: stretch; }
  .navigation-ready .primary-nav a { padding: .65rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--control-line); }
}
@media (forced-colors: active) {
  .glass, .button, .field input, .field select, .field textarea { border: 1px solid CanvasText; box-shadow: none; }
  a, .button { forced-color-adjust: auto; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  .site-header, .language-nav, .demo-bar, .filter-bar, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .shell { inline-size: 100%; }
  .glass { background: #fff; box-shadow: none; backdrop-filter: none; }
  .section { padding-block: 1rem; }
  .card, figure { break-inside: avoid; }
}

/* Hero image rotator: two real photos cross-fading, dot navigation below. */
.hero-slider { position: relative; }
.hero-slider .slide { display: none; }
.hero-slider .slide.is-active { display: block; opacity: 1; }
.hero-slider-dots { display: flex; gap: .4rem; justify-content: center; margin-block-start: .75rem; }
.hero-slider-dots button { inline-size: 8px; block-size: 8px; border-radius: 999px; border: none; background: var(--line); padding: 0; cursor: pointer; }
.hero-slider-dots button.is-active { background: var(--accent); }

/* Scroll-triggered reveal: sections settle in as the visitor scrolls to them. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-ready [data-reveal-delay="0"] { transition-delay: 0ms; }
  .reveal-ready [data-reveal-delay="60"] { transition-delay: 60ms; }
  .reveal-ready [data-reveal-delay="100"] { transition-delay: 100ms; }
  .reveal-ready [data-reveal-delay="120"] { transition-delay: 120ms; }
  .reveal-ready [data-reveal-delay="180"] { transition-delay: 180ms; }
  .reveal-ready [data-reveal-delay="240"] { transition-delay: 240ms; }
  .reveal-ready [data-reveal-delay="300"] { transition-delay: 300ms; }
}

/* Card lift on hover/focus — small, real motion rather than a static grid. */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .card:focus-within { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15, 23, 32, .1); }
.card-icon { inline-size: 48px; block-size: 48px; object-fit: contain; }

/* Testimonial with a real attributed photo. */
.quote-with-photo { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.quote-with-photo img { inline-size: 72px; block-size: 72px; border-radius: 999px; object-fit: cover; flex: none; }
.quote-with-photo > div { min-inline-size: 0; }

/* Social links and funder/partner logos in the footer. */
.social-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-block-start: 1.5rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.social-row a { font-size: .85rem; font-weight: 650; color: var(--accent); }
.partner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-block-start: 1.25rem; }
.partner-row img { block-size: 48px; inline-size: auto; opacity: .85; filter: grayscale(15%); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .card:focus-within { transform: none; }
}

/* Bridges the site's original component classes (.glass, .button, .card, form
   elements, footer) onto the new navy/teal/clay editorial palette above, so
   pages the redesign hasn't touched yet stay visually consistent. */
:root {
  --ink: var(--navy);
  --muted: #4d6472;
  --accent: var(--teal);
  --accent-hover: var(--teal-deep);
  --tint: var(--lake);
  --line: rgba(8, 41, 59, .12);
  --control: #7c8f98;
}
/* =========================================================
   MICHIGAN SBDC — EDITORIAL HOMEPAGE
   ========================================================= */


/* ---------------------------------------------------------
   DESIGN TOKENS

   Primary navy:
   #08293B

   Lake teal:
   #067982

   Deep teal:
   #075861

   Paper:
   #F5F1E8

   Warm white:
   #FBFAF7

   Clay accent:
   #C76E3C

   Pale lake blue:
   #DCEDEF

   Body ink:
   #17323A
   --------------------------------------------------------- */

:root {
  --navy: #08293b;
  --navy-soft: #103746;

  --teal: #067982;
  --teal-deep: #075861;
  --teal-dark: #064b53;

  --paper: #f5f1e8;
  --paper-light: #fbfaf7;
  --paper-mid: #eee8dc;

  --clay: #c76e3c;
  --clay-soft: #e8c8b2;
  --clay-text: #a0572e;

  --lake: #dcedef;

  --ink: #17323a;
  --ink-soft: #53666a;

  --white: #ffffff;

  --line: #d8d7d0;

  --serif:
    "Newsreader",
    Georgia,
    "Times New Roman",
    serif;

  --sans:
    "DM Sans",
    Arial,
    Helvetica,
    sans-serif;

  --page-max: 1600px;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--navy);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}


/* =========================================================
   SHARED TYPE
   ========================================================= */

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.clay {
  color: var(--clay-text);
}

.eyebrow.clay::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  background: var(--clay);
  vertical-align: middle;
}

.eyebrow-light {
  color: #8fc8ca;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: white;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 22px -10px rgba(6, 75, 83, .55);
}

.button-primary span { transition: transform 160ms ease; }

.button-primary:hover {
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 16px 28px -10px rgba(6, 75, 83, .6);
}

.button-primary:hover span { transform: translateX(3px); }

.button-paper {
  background: var(--paper-light);
  color: var(--navy);
}

.editorial-link,
.impact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 24px;
  z-index: 50;
  width: calc(100% - 8%);
  max-width: 1480px;
  margin: 24px auto;
  color: var(--ink);
  background: var(--glass-ivory);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 10px 32px -12px rgb(8 41 59 / 25%);
}

.site-header.is-scrolled {
  background: var(--glass-strong);
  box-shadow: 0 8px 24px -14px rgb(8 41 59 / 30%);
}

.header-shell {
  min-height: 80px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.site-header.is-scrolled .header-shell { min-height: 68px; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 18px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand-main { font-size: 26px; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.brand-divider { width: 1px; height: 38px; background: var(--accent); }
.brand-sub { font-family: var(--serif); font-size: 14px; line-height: 1.08; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 34px); }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.site-header .button-primary, .hero-actions .button-primary { background: var(--accent); color: white; box-shadow: none; }
.site-header .button-primary { min-height: 52px; padding-inline: 26px; font-size: 16px; font-weight: 700; }
.site-header .button-primary:hover, .hero-actions .button-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.site-header .menu-toggle { display: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; }
.language-menu { position: relative; }
.language-button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 500; list-style: none; }
.language-button::-webkit-details-marker { display: none; }
.language-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.language-button .language-chevron { width: 16px; height: 16px; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; right: 0; top: calc(100% + 12px); min-width: 190px; padding: 8px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px -12px rgb(8 41 59 / 30%); }
.language-options a, .language-options button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); font-size: 15px; text-align: left; gap: 8px; }
.language-options a:hover, .language-options button:hover { background: var(--tint); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: 880px;
  margin: -130px auto 0;
  overflow: visible;
  background: var(--paper);
}

.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 80px; background: var(--paper-light); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; background-position: center; background-size: cover; transition: opacity 600ms ease, visibility 600ms; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide:first-child { background-image: url('assets/hero-bakery.jpg'); }
.hero-slide:nth-child(2) { background-image: url('assets/training-workshop.jpg'); }
.hero-slide:nth-child(3) { background-image: url('assets/about-mentoring.jpg'); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper-light) 0%, rgb(251 250 247 / 88%) 22%, transparent 45%); }
.hero-image { position: absolute; right: 0; width: 70%; height: 100%; object-fit: cover; object-position: left center; }
.hero-slide:not(:first-child) .hero-image { object-position: center; }
.hero-image-copy { position: absolute; z-index: 1; right: 7%; bottom: 96px; display: flex; flex-direction: column; color: white; font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.65; text-transform: uppercase; text-shadow: 0 2px 8px rgb(0 0 0 / 65%); }
.hero-image-copy::before { content: ""; width: 36px; height: 2px; margin-bottom: 16px; background: var(--accent); }
.hero-card {
  position: absolute;
  z-index: 2;
  left: 4%;
  top: 174px;
  width: min(660px, 48%);
  padding: 44px;
  border-radius: 8px;
  background: var(--glass-ivory);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 24px 50px -20px rgb(8 41 59 / 30%);
}
.hero-rule { display: block; width: 96px; height: 3px; margin-bottom: 28px; background: var(--accent); }
.hero h1 { width: 100%; max-inline-size: none; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(56px, 6.65vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: .98; text-wrap: initial; }
.hero-title-intro { display: block; white-space: nowrap; }
.hero-title-accent { display: block; color: var(--accent); }
.hero-lead { max-width: 48ch; margin: 28px 0 0; color: var(--ink); font-family: var(--sans); font-size: 22px; line-height: 1.4; }
.hero-actions { margin-top: 24px; }
.hero-actions .button-primary { min-height: 62px; padding: 16px 32px; font-size: 20px; }
.hero-controls { position: absolute; z-index: 3; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--ink); }
.hero-counter { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hero-counter::before { content: ""; width: 1px; height: 56px; margin-bottom: 12px; background: var(--accent); }
.hero-current { font-size: 26px; }
.hero-total { font-size: 16px; }
.hero-counter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-control-buttons { display: flex; flex-direction: column; gap: 14px; }
.hero-control-buttons button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--accent); border-radius: 50%; color: var(--ink); background: rgb(251 250 247 / 85%); font-size: 20px; line-height: 1; }
.hero-control-buttons button:hover { color: white; background: var(--accent); }

.hero-bridge {
  position: absolute;
  z-index: 3;
  left: 60px;
  right: 60px;
  bottom: -34px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 20px 44px -18px rgba(8, 41, 59, 0.3);
  overflow: hidden;
}

.hero-bridge-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;

  color: var(--navy);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;

  border-right: 1px solid rgba(8, 41, 59, 0.1);

  transition: background-color .2s ease;
}

.hero-bridge-link:last-child { border-right: 0; }

.hero-bridge-link:hover,
.hero-bridge-link:focus-visible {
  background: rgba(255, 255, 255, 0.55);
}

.hero-bridge-icon {
  display: flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.hero-bridge-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-bridge-arrow {
  margin-left: auto;
  color: var(--clay);
  font-weight: 700;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 78px 48px 52px;

  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;

  background: var(--paper-light);
}

.section-intro h2 {
  margin: 0 0 18px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.section-intro > p:not(.eyebrow) {
  max-width: 240px;
  margin-bottom: 18px;

  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  color: var(--navy);
  text-decoration: none;
}

.service-image {
  overflow: hidden;
  height: 120px;
  border-radius: 6px;
  background: var(--lake);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 240ms ease;
}

.service-card:hover .service-image img {
  transform: scale(1.025);
}

.service-icon {
  position: relative;
  z-index: 2;

  width: 52px;
  height: 52px;
  margin:
    -27px 0
    12px 12px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--paper-light);
}

.service-icon svg {
  width: 29px;
  height: 29px;

  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-card h3 {
  margin: 0 0 7px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.08;
}

.service-card p {
  margin: 0;

  color: #4b5e63;
  font-size: 13px;
  line-height: 1.4;
}


/* =========================================================
   STATEWIDE IMPACT BAND
   ========================================================= */

.impact-band {
  max-width: var(--page-max);
  height: 286px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 39% 40% 21%;

  background: var(--teal-dark);
  color: white;

  overflow: hidden;
}

.impact-photo {
  position: relative;
  height: 286px;
  overflow: hidden;
}

.impact-photo::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 41, 59, 0.25),
      rgba(8, 41, 59, 0)
    );
}

.impact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.impact-photo-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 220px;

  padding-left: 20px;

  border-left: 2px solid var(--clay);

  display: flex;
  flex-direction: column;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
}

.impact-content {
  height: 286px;
  padding: 26px 42px 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background:
    linear-gradient(
      125deg,
      #075861,
      #064850
    );
}

.impact-heading-wrap h2 {
  margin: 0;

  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.stats-grid {
  margin-top: 26px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 0 24px;

  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;

  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

.stat span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* Extend the editorial serif identity to every page's headings, not just the
   homepage — a consistent identity site-wide, not just one polished landing page. */
h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; letter-spacing: -.01em; font-weight: 500; }
.page-intro h1, .hero-panel h1 { color: var(--navy); }

/* ============================================================
   Sections that were cut off in the generated stylesheet:
   map panel, testimonial, training feature, closing CTA, footer.
   Styled to match the established navy/teal/clay/paper system.
   ============================================================ */

.eyebrow.clay { color: var(--clay-text); }

.michigan-map-panel {
  height: 286px;
  background: var(--navy-soft);
  color: #fff;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.michigan-map { width: 100%; max-width: 90px; margin-inline: auto; }
.map-fill path { fill: rgba(255,255,255,.14); stroke: var(--teal); stroke-width: 1.5; }
.map-dot circle { fill: var(--clay); }
.map-copy { display: flex; flex-direction: column; gap: 4px; }
.map-copy strong { font-weight: 600; }
.impact-link { color: #fff; margin-top: 10px; display: inline-flex; gap: 6px; text-decoration: underline; text-underline-offset: 4px; }

.story-section {
  display: grid;
  grid-template-columns: 25% 60% 15%;
  gap: 0;
  align-items: stretch;
  max-width: var(--page-max, 1400px);
  height: 172px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.story-photo { height: 172px; overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.testimonial {
  position: relative;
  height: 172px;
  margin: 0;
  padding: 22px 34px 18px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-mark { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--clay); position: absolute; top: 14px; left: 10px; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--navy); }
.testimonial figcaption { margin-top: 10px; font-size: 13px; color: var(--body, #4d6472); }
.story-cta { height: 172px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 24px; border-left: 1px solid var(--line); }
.story-rule { order: 2; width: 32px; height: 2px; margin: 4px 0; background: var(--clay); }
.story-cta p { order: 1; margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.story-cta a { order: 3; }

.feature-split {
  display: grid;
  grid-template-columns: 37% 63%;
  gap: 0;
  align-items: stretch;
  max-width: var(--page-max, 1400px);
  height: 242px;
  margin: 0 auto;
  padding: 0;
  background: var(--paper);
  overflow: hidden;
}
.feature-copy {
  height: 242px;
  padding: 16px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.feature-copy .eyebrow { margin-bottom: 6px; }
.feature-copy h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.08; }
.feature-copy p { font-size: 13px; line-height: 1.35; margin: 0 0 10px; max-width: 300px; }
.feature-copy .button { min-height: 40px; padding: 10px 20px; }
.feature-image { height: 242px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }

.closing-cta {
  background: var(--navy);
  color: #fff;
  max-width: var(--page-max, 1400px);
  height: 102px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 42% 33% 25%;
  align-items: center;
}
.conversation-title { padding-right: 30px; }
.conversation-title .eyebrow { margin-bottom: 4px; }
.closing-cta h2 { color: #fff; margin: 0; font-size: 34px; line-height: 1; }
.conversation-copy {
  margin: 0;
  padding: 0 30px;
  color: rgba(255,255,255,.78);
  border-left: 1px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
}
.conversation-action { display: flex; justify-content: flex-end; }
.button-paper { background: #fff; color: var(--navy); border-radius: 999px; padding: 14px 28px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; }
.button-paper:hover { background: var(--paper-light); }

/* =========================================================
   SOCIAL / INSTAGRAM BAND
   ========================================================= */

.social-band {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 48px;

  display: grid;
  grid-template-columns: 320px 1fr 240px;
  gap: 32px;
  align-items: center;

  background: var(--paper);
}

.social-band-copy h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.08;
  color: var(--navy);
}

.social-band-copy p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 30ch;
}

.social-band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  height: 240px;
}

.social-band-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.social-band-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-band-links .social-row {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.social-band-links .social-row a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.social-band-links .social-row svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-handle {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--navy);
}

.social-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}


/* =========================================================
   MAIN FOOTER
   ========================================================= */

.site-footer { background: var(--navy); color: rgba(255,255,255,.85); }

.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 70px 48px 55px; }

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.02;
}

.footer-brand-sub {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255,255,255,.7);
}

.footer-brand p {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--clay);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,.8);
  max-width: 28ch;
}

.footer-top h2 { color: #8fc8ca; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--sans); font-weight: 700; margin: 0 0 16px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-top a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.footer-top a:hover { color: #fff; }

.footer-partners {
  padding: 40px 48px 44px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-partners .eyebrow { color: #8fc8ca; margin-bottom: 24px; }
.partner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
}
.partner-row img {
  height: 60px;
  width: auto;
  max-width: 85%;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.partner-row img.sba-logo { height: 130px; }
.partner-row img.seidman-logo { height: 98px; }
.partner-row img.medc-logo { height: 92px; }
.partner-row img.asbdc-logo { height: 108px; }
.partner-row img:not(:first-child) { border-left: 1px solid rgba(255,255,255,.16); padding-left: 32px; }

.footer-funding {
  background: var(--navy-soft);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-funding-inner {
  padding: 36px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-funding .eyebrow { color: #8fc8ca; }
.footer-funding p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  color: rgba(255,255,255,.75);
}
.footer-funding p:last-child { margin-bottom: 0; }

.site-footer .social-row { border: none; margin: 0; padding: 0; }
.site-footer .social-row a { color: rgba(255,255,255,.75); }
.site-footer .social-row a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 0 48px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a, .footer-legal-links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover, .footer-legal-links a:hover { color: #fff; }

.demo-disclaimer {
  padding: 14px 48px 20px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,.62);
}

@media (max-width: 62rem) {
  .story-section { grid-template-columns: 1fr; text-align: left; }
  .story-cta { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .feature-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) {
  .footer-top { grid-template-columns: 1fr; padding-inline: 24px; }
  .story-section, .feature-split, .closing-cta { padding-inline: 24px; }
}

/* Comprehensive responsive fallback: GPT's generated layout used fixed
   multi-column grids (.hero 39/61, .services-section 260px/1fr,
   .service-grid 6 cols, .impact-band 38/41/21) with no breakpoints at all,
   which squeezes text into single-letter-wide columns below desktop width. */
@media (max-width: 75rem) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .impact-band { grid-template-columns: 1fr !important; height: auto !important; gap: 0; padding: 0 !important; }
  .impact-photo { order: 1; height: auto !important; aspect-ratio: 16/9; }
  .impact-content { order: 2; height: auto !important; padding: 32px !important; }
  .michigan-map-panel { order: 3; height: auto !important; padding: 32px !important; }

  .story-section { grid-template-columns: 1fr !important; height: auto !important; }
  .story-photo { height: auto !important; aspect-ratio: 16/9; }
  .testimonial { height: auto !important; padding: 28px 32px !important; }
  .story-cta { height: auto !important; padding: 20px 32px !important; border-left: 0 !important; border-top: 1px solid var(--line); }

  .feature-split { grid-template-columns: 1fr !important; height: auto !important; }
  .feature-copy { height: auto !important; padding: 32px !important; }
  .feature-image { height: auto !important; aspect-ratio: 16/9; }

  .closing-cta { grid-template-columns: 1fr !important; height: auto !important; padding: 32px !important; gap: 16px; }
  .conversation-title { padding-right: 0; }
  .conversation-copy { padding: 12px 0 !important; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.35); }
  .conversation-action { justify-content: flex-start; }

  .social-band { grid-template-columns: 1fr !important; padding: 32px !important; }
  .social-band-grid { grid-template-columns: repeat(5, 100px); overflow-x: auto; height: auto !important; }
  .social-band-grid img { height: 100px; }
  .social-band-links { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
  .social-band-links .social-row { order: 1; }
  .social-handle { order: 2; margin: 0; }
  .social-tagline { order: 3; flex-basis: 100%; }

  .footer-top { grid-template-columns: 1fr 1fr !important; padding: 40px 32px !important; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }

  .footer-partners { padding: 32px !important; }
  .partner-row { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
  .partner-row img:not(:first-child) { border-left: 0 !important; padding-left: 0 !important; }
  .partner-row img { height: auto !important; max-height: 44px; }

  .footer-funding-inner { grid-template-columns: 1fr !important; gap: 24px !important; padding: 28px 32px !important; }
}
@media (max-width: 62rem) {
  .hero-copy { height: auto !important; padding: 48px 32px !important; }
  .hero-copy::after { display: none; }
  .hero-image-wrap { order: -1; height: auto !important; aspect-ratio: 16/10; }
  .services-section { grid-template-columns: 1fr !important; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .service-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat { border-left: none !important; padding-left: 0 !important; border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; }
  .stat:first-child { border-top: none; padding-top: 0; }
}

/* Visitor assistant, matching this site's existing colors and controls. */
a.language-button{text-decoration:none}
.chat-bubble{position:fixed;right:1rem;bottom:1rem;z-index:100}
.chat-open,.chat-close{border:0;cursor:pointer;font:inherit}
.chat-open{border-radius:999px;background:var(--navy,var(--accent));color:#fff;padding:.75rem 1.1rem;box-shadow:var(--shadow)}
.chat-panel{position:absolute;right:0;bottom:3.8rem;width:min(380px,calc(100vw - 2rem));max-height:calc(100dvh - 7rem);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:1rem;box-shadow:var(--shadow)}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.9rem}
.chat-close{background:transparent;font-size:1.5rem;min-width:44px;min-height:44px}
.chat-notice,.chat-status{font-size:.8rem;margin:.5rem 0;color:var(--muted)}
.chat-log{list-style:none;padding:0;margin:.75rem 0;max-height:280px;overflow:auto;overflow-wrap:anywhere}
.chat-log li{padding:.65rem;border-radius:8px;margin:.5rem 0;background:var(--tint)}
.chat-log li.visitor{background:var(--bg)}.chat-log strong{font-size:.75rem}.chat-log p{margin:.2rem 0;font-size:.9rem;white-space:pre-wrap}
.chat-form{display:flex;gap:.4rem}.chat-form input{width:0;flex:1;min-width:0;border:1px solid var(--control-line);border-radius:8px;padding:.5rem;font-size:1rem}
.chat-form button{padding:.5rem .75rem}.chat-form button:disabled{opacity:.65}
.chat-form .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Header and homepage hero at narrower viewports. */
@media (min-width: 75rem) and (max-width: 90rem) {
  .header-shell { gap: 20px; padding-inline: 20px; }
  .brand { gap: 12px; }
  .brand-main { font-size: 22px; }
  .brand-sub { font-size: 12px; }
  .main-nav, .header-actions { gap: 16px; }
  .nav-links { gap: 14px; }
  .main-nav a, .language-button { font-size: 14px; }
  .site-header .button-primary { padding-inline: 20px; font-size: 14px; }
}
@media (max-width: 74.999rem) {
  .header-shell { flex-wrap: wrap; justify-content: space-between; }
  .site-header .menu-toggle { margin-left: auto; }
  .navigation-ready .site-header .menu-toggle { display: inline-flex; }
  .main-nav { flex-basis: 100%; flex-wrap: wrap; padding: 8px 0 12px; }
  .navigation-ready .main-nav:not(.is-open) { display: none; }
  .nav-links { flex-wrap: wrap; gap: 12px 24px; }
  .nav-links a { display: flex; align-items: center; min-height: 44px; }
  .hero-card { padding: 32px; }
  .hero-image { object-position: 30% center; }
  .hero-lead { font-size: 19px; }
  .hero-actions .button-primary { padding-inline: 24px; font-size: 17px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .hero h1 { font-size: 5.9vw; }
}
@media (max-width: 720px) {
  .site-header { top: 12px; width: calc(100% - 24px); margin-block: 12px; border-radius: 14px; }
  .header-shell, .site-header.is-scrolled .header-shell { min-height: 64px; padding: 10px 16px; gap: 12px; }
  .brand-main { font-size: 23px; }
  .brand-sub, .brand-divider { display: none; }
  .main-nav { align-items: stretch; gap: 16px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .header-actions { flex-wrap: wrap; gap: 12px; }
  .site-header .button-primary { font-size: 14px; padding-inline: 20px; }
  .language-options { right: auto; left: 0; z-index: 1; }
  .hero { height: auto; min-height: 640px; margin-top: -90px; padding-top: 330px; padding-bottom: 104px; }
  .hero-slide::after { background: linear-gradient(180deg, transparent 24%, rgb(8 41 59 / 35%) 48%, rgb(8 41 59 / 85%) 100%); }
  .hero-image { width: 100%; height: 470px; object-position: 42% top; }
  .hero-card { position: relative; top: auto; left: auto; width: 100%; padding: 28px 24px; border-radius: 8px; }
  .hero-rule { width: 96px; margin-bottom: 22px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { margin-top: 20px; font-size: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button-primary { min-height: 54px; font-size: 17px; padding-inline: 24px; }
  .hero-image-copy, .hero-media::after { display: none; }
  .hero-controls { position: relative; top: auto; right: auto; transform: none; flex-direction: row; justify-content: center; margin-top: 20px; gap: 24px; color: white; }
  .hero-counter, .hero-control-buttons { flex-direction: row; gap: 10px; }
  .hero-counter::before { width: 24px; height: 1px; margin: 0 2px 0 0; }
  .hero-current { font-size: 22px; }
  .hero-bridge { left: 12px; right: 12px; }
  .hero-bridge-link { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 8px; font-size: 12px; text-align: center; }
  .hero-bridge-arrow { display: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header, .site-header.is-scrolled, .hero-card { background: var(--paper-light); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
