/* ==========================================================================
   Whitney Solutions Group — styles.css
   Brand: logo blue #0F6185 + green #39B26A, Crimson Text display.
   UX polish borrowed from websitesforseniorliving.com: fluid type/spacing,
   balanced headings, 3px radius, lifted buttons, soft section rhythm.
   ========================================================================== */

/* ---------- Font fallbacks ----------
   Google Fonts load without blocking the first paint. Until they arrive, these local fonts are
   resized to Crimson Text / Inter metrics (measured) so text doesn't jump when the web fonts swap in.
   Liberation/Tinos/Arimo are metric-compatible stand-ins on Linux and Android. */
@font-face {
  font-family: 'Crimson Fallback'; font-style: normal; font-weight: 600;
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Liberation Serif Bold'), local('Tinos Bold');
  size-adjust: 95.22%; ascent-override: 99.77%; descent-override: 36.76%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Crimson Fallback'; font-style: italic; font-weight: 600;
  src: local('Times New Roman Bold Italic'), local('TimesNewRomanPS-BoldItalicMT'), local('Liberation Serif Bold Italic'), local('Tinos Bold Italic');
  size-adjust: 84.97%; ascent-override: 111.8%; descent-override: 41.19%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback'; font-style: normal; font-weight: 400 500;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  size-adjust: 106.78%; ascent-override: 90.85%; descent-override: 22.48%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback'; font-style: normal; font-weight: 600 700;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold');
  size-adjust: 106.78%; ascent-override: 90.85%; descent-override: 22.48%; line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #0F6185;
  --blue-dark: #0A4A66;
  --blue-soft: #E3F0F6;
  --green: #39B26A;          /* decorative only on white (fails AA for text) */
  --green-read: #1E7A46;     /* green text on white */
  --band: #EEF5F8;
  --paper: #F7F9F8;
  --ink: #1A2B36;
  --body: #46606E;
  --muted: #5A7180;
  --hair: #E4EBEF;
  --white: #fff;
  --error: #C0143C;

  --navy: #2C3E50;
  --navy-dark: #1F2A36;
  --gold: #D4A017;
  --gold-soft: #F4E7CA;

  --grad: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);

  --font-display: 'Crimson Text', 'Crimson Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-body: clamp(16px, 0.95rem + 0.2vw, 17px);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);

  --space-section: clamp(72px, 4rem + 5vw, 136px);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;

  --radius: 3px;
  --shadow-btn: 0 8px 12px -4px rgb(0 0 0 / 0.25);
  --shadow-btn-hover: 0 6px 7px -1px rgb(0 0 0 / 0.35);
  --shadow-card: 0 1px 2px rgb(16 40 56 / 0.04), 0 12px 32px -12px rgb(16 40 56 / 0.14);
  --ease: 0.35s ease-in-out;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--blue); font-weight: 600; }

p { text-wrap: pretty; }

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

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Scroll progress bar (logo gradient) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1100;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow-btn-hover); }

.btn-ghost { background: transparent; color: var(--blue); border-color: rgb(15 97 133 / 0.35); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue); }

.btn-gold { background: var(--gold); color: var(--navy-dark); box-shadow: var(--shadow-btn); }
.btn-gold:hover { background: #E6B530; color: var(--navy-dark); box-shadow: var(--shadow-btn-hover); }

.btn-light { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 0.4); }
.btn-light:hover { background: rgb(255 255 255 / 0.1); color: var(--white); border-color: var(--white); }

.btn-sm { padding: 11px 18px; font-size: 0.75rem; }

/* ---------- Section heads: "01 — LABEL ————" ---------- */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section-head .num { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--blue); }
.section-head .label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--green), var(--blue) 30%, var(--hair) 60%); }

.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-read);
}

.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--body); max-width: 60ch; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--ease), border-color var(--ease), height var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and clip it. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header.scrolled { border-color: var(--hair); box-shadow: 0 6px 24px -12px rgb(16 40 56 / 0.18); }

.header-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: block; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; }
.nav-links a:not(.btn) {
  position: relative; font-size: 0.875rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }

.menu-toggle {
  display: none; position: relative; z-index: 1001;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.menu-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform var(--ease), opacity var(--ease);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 140px)) 0 clamp(64px, 8vw, 120px);
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--band) 100%);
}
/* Soft aurora washes in logo colors */
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; top: -120px; left: -140px; background: rgb(15 97 133 / 0.18); }
.hero::after { width: 460px; height: 460px; bottom: -160px; right: -120px; background: rgb(57 178 106 / 0.2); }

.hero-mark {
  position: absolute; z-index: -1; right: 6%; top: 50%; width: clamp(240px, 32vw, 460px);
  transform: translateY(-40%) rotate(-8deg); opacity: 0.07; pointer-events: none;
}

.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 19ch; margin: 0 auto 24px; }
.hero .lede { margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Proof strip ---------- */
.proof { background: var(--white); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.proof-item { padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--hair); }
.proof-item:first-child { border-left: 0; }
.proof-figure {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1; color: var(--blue); margin-bottom: 10px;
}
.proof-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-band { background: var(--band); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p + p { margin-top: 18px; }
.pull {
  margin-top: 32px; padding-left: 22px; border-left: 3px solid; border-image: var(--grad) 1;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  line-height: 1.35; color: var(--ink);
}
.about-mark {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px); box-shadow: var(--shadow-card); text-align: center;
}
.about-mark img { width: min(100%, 320px); margin: 0 auto 28px; }
.about-mark .founder { font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 20px; }
.about-mark .founder strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }

/* Services — editorial rows */
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.service-list { list-style: none; border-top: 1px solid rgb(15 97 133 / 0.18); }
.service-row {
  display: grid; grid-template-columns: 72px 1fr 1.4fr 32px; gap: clamp(16px, 3vw, 40px); align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 12px; border-bottom: 1px solid rgb(15 97 133 / 0.18);
  transition: background-color var(--ease), padding var(--ease);
}
.service-row:hover { background: var(--white); padding-left: 24px; }
.service-num { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--green-read); }
.service-row h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.service-row p { font-size: 0.975rem; }
.service-arrow { color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity var(--ease), transform var(--ease); align-self: center; }
.service-row:hover .service-arrow { opacity: 1; transform: none; }

/* ---------- Web4SL spotlight ---------- */
.spotlight {
  position: relative; isolation: isolate; overflow: hidden; color: rgb(255 255 255 / 0.82);
  background: linear-gradient(300deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.spotlight::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('assets/web4sl-bg.webp') center / cover no-repeat; opacity: 0.12; mix-blend-mode: luminosity;
}
.spotlight::after {
  content: ''; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -200px;
  border-radius: 50%; background: rgb(39 118 124 / 0.35); filter: blur(100px);
}
.spotlight .section-head .num { color: var(--gold); }
.spotlight .section-head .label { color: var(--white); }
.spotlight .section-head .rule { background: linear-gradient(90deg, var(--gold), rgb(255 255 255 / 0.15) 40%); }
.spotlight h2, .spotlight h3 { color: var(--white); }
.spotlight h2 em { color: var(--gold); }

.spotlight-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }

.w4sl-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.w4sl-plaque { background: var(--white); border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow-btn); }
.w4sl-plaque img { height: 40px; width: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgb(212 160 23 / 0.14); border: 1px solid rgb(212 160 23 / 0.45); color: var(--gold-soft);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.spotlight-copy h2 { margin-bottom: 22px; }
.spotlight-copy p + p { margin-top: 16px; }
.spotlight-quote {
  font-family: var(--font-display); font-style: italic; color: var(--white);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); line-height: 1.35; margin: 28px 0 32px;
}
.spotlight-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.w4sl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius); overflow: hidden; }
.w4sl-stat { background: rgb(31 42 54 / 0.85); padding: 28px 24px; }
.w4sl-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); white-space: nowrap; line-height: 1; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.w4sl-stat span { font-size: 0.8125rem; color: rgb(255 255 255 / 0.72); }

.w4sl-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 5vw, 72px); }
.w4sl-card {
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-top: 2px solid var(--gold);
  border-radius: var(--radius); padding: 28px 24px;
  backdrop-filter: blur(8px) saturate(80%); -webkit-backdrop-filter: blur(8px) saturate(80%);
  transition: transform var(--ease), background-color var(--ease);
}
.w4sl-card:hover { transform: translateY(-4px); background: rgb(255 255 255 / 0.1); }
.w4sl-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.w4sl-card p { font-size: 0.9rem; color: rgb(255 255 255 / 0.72); }

.crm-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.crm-row .crm-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.6); margin-right: 6px; }
.chip { font-size: 0.8125rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.2); color: var(--white); }

/* ---------- Senior living MarTech ---------- */
.lead-flow {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-bottom: clamp(40px, 5vw, 64px); counter-reset: none;
}
.lead-flow li {
  position: relative; padding: 28px 24px 26px; background: var(--paper);
  border: 1px solid var(--hair); border-right: 0;
}
.lead-flow li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.lead-flow li:last-child { border-right: 1px solid var(--hair); border-radius: 0 var(--radius) var(--radius) 0; background: var(--blue-soft); }
/* Chevron joins between steps */
.lead-flow li:not(:last-child)::after {
  content: ''; position: absolute; z-index: 1; top: 50%; right: -9px; width: 16px; height: 16px;
  background: inherit; border-top: 1px solid #B9CCD6; border-right: 1px solid #B9CCD6;
  transform: translateY(-50%) rotate(45deg);
}
.lead-flow .step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%;
  background: var(--grad); color: var(--white); font-size: 0.8125rem; font-weight: 600;
}
.lead-flow strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 6px; }
.lead-flow li > span:last-child { display: block; font-size: 0.875rem; line-height: 1.55; }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap { border-top: 2px solid; border-image: var(--grad) 1; padding-top: 22px; }
.cap h3 { font-size: 1.45rem; margin-bottom: 14px; }
.cap ul { list-style: none; }
.cap li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--hair); font-size: 0.95rem; color: var(--ink); }
.cap li::before {
  content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--green-read);
}
.cap-foot { margin-top: clamp(32px, 4vw, 48px); font-size: 0.95rem; }
.cap-foot a { font-weight: 600; }

/* ---------- The work (Web4SL demo showcase) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.work-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--body);
  background: var(--white); border: 1px solid var(--hair); border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(16 40 56 / 0.04);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgb(15 97 133 / 0.3); color: var(--body); }

/* Browser-window frame around each screenshot */
.work-frame { position: relative; background: var(--paper); border-bottom: 1px solid var(--hair); }
.work-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EDF2F4; border-bottom: 1px solid var(--hair);
}
.work-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD8DF; }
.work-bar i:nth-child(1) { background: #E8A39B; }
.work-bar i:nth-child(2) { background: #E9CC86; }
.work-bar i:nth-child(3) { background: #9FD3B2; }
.work-bar span {
  flex: 1; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--white);
  font-size: 0.6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.8s ease; }
.work-frame { overflow: hidden; }
.work-card:hover .work-frame img { transform: scale(1.03); }

.work-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.work-meta { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-read); margin-bottom: 10px; }
.work-body h3 { font-size: 1.6rem; margin-bottom: 10px; }
.work-body p { font-size: 0.925rem; flex: 1; }
.work-cta { margin-top: 20px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.work-card:hover .work-cta { color: var(--blue-dark); }

.work-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--hair);
}
.work-foot p { font-size: 0.8125rem; color: var(--muted); }
.work-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-list { list-style: none; margin-top: 36px; border-top: 1px solid var(--hair); }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.contact-list svg { flex-shrink: 0; color: var(--blue); }
.contact-list small { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-list span, .contact-list a { color: var(--ink); font-weight: 500; }

.form-card {
  background: var(--white); border: 1px solid var(--hair); border-top: 3px solid; border-image: var(--grad) 1;
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card);
}
.form-card h3 { margin-bottom: 6px; }
.form-card .form-sub { font-size: 0.9rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--blue); }
.field label .optional { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 13px 14px; background: var(--paper); border: 1px solid #CBD8DF; border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230F6185' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 3px rgb(15 97 133 / 0.15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); background: #FFF7F8; }
.field-error { display: none; margin-top: 6px; font-size: 0.8125rem; color: var(--error); }
.field.invalid .field-error { display: block; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 24px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.consent label { font-size: 0.8125rem; line-height: 1.55; color: var(--body); }
.consent.invalid label { color: var(--error); }

.form-card .btn { width: 100%; }
.form-status { margin-top: 14px; font-size: 0.875rem; color: var(--error); min-height: 1.2em; }

.form-success { display: none; text-align: center; padding: 40px 12px; }
.form-success.visible { display: block; }
.form-success .check {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--white);
}
.form-success h3 { margin-bottom: 10px; }

/* ---------- Founder card (home About + /about/) ---------- */
.founder-card {
  background: var(--white); border: 1px solid var(--hair); border-radius: 6px;
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-card); text-align: center;
}
.portrait {
  --size: 168px;
  width: var(--size); height: var(--size); margin: 0 auto 22px; border-radius: 50%;
  padding: 6px; background: var(--grad);
}
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--white); }
.portrait.sm { --size: 72px; padding: 3px; margin: 0; }
.portrait.sm img { border-width: 3px; }
.founder-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.founder-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-read); margin-bottom: 16px; }
.founder-card p.bio { font-size: 0.925rem; text-align: left; }
.founder-card .text-link { display: inline-block; margin-top: 18px; }
.text-link { font-weight: 600; font-size: 0.875rem; color: var(--blue); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Service rows that link to a dedicated page */
.service-row h3 a { color: inherit; text-decoration: none; }
.service-row h3 a::after { content: ' →'; color: var(--blue); font-family: var(--font-body); font-size: 0.8em; }
.service-row h3 a:hover { color: var(--blue); }

/* ---------- Engagement cards (home teaser + /engagements/) ---------- */
.engage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: clamp(48px, 5vw, 72px) 0 22px; }
.engage-head h3 { font-size: 1.6rem; }
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engage-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hair); border-top: 3px solid; border-image: var(--grad) 1;
  padding: 26px 24px; text-decoration: none; color: var(--body); transition: transform var(--ease), box-shadow var(--ease);
}
.engage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); color: var(--body); }
.engage-card .tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-read); margin-bottom: 10px; }
.engage-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--ink); margin-bottom: 10px; text-wrap: balance; }
.engage-card p { font-size: 0.9rem; flex: 1; }
.engage-card .text-link { margin-top: 16px; }

/* ---------- Partnership teaser (in the Web4SL spotlight) ---------- */
.partners {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px;
  margin-top: 40px; padding: 24px 28px; border-radius: 6px;
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14);
}
.partners-faces { display: flex; }
.partners-faces .portrait.sm { background: linear-gradient(135deg, var(--gold), #85C6E0); }
.partners-faces .portrait.sm img { border-color: var(--navy); }
.partners-faces .portrait.sm + .portrait.sm { margin-left: -14px; }
.partners p { color: rgb(255 255 255 / 0.82); font-size: 0.95rem; }
.partners p strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); font-weight: 600; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); color: var(--ink); line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translateY(-3px); transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--blue); }
.faq-item .answer { padding: 0 4px 24px; max-width: 64ch; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 clamp(48px, 6vw, 88px);
  background: linear-gradient(180deg, var(--white) 0%, var(--band) 100%);
  border-bottom: 1px solid var(--hair);
}
.page-hero::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; top: -160px; right: -140px; border-radius: 50%; filter: blur(90px); background: rgb(57 178 106 / 0.18); }
.page-hero h1 { max-width: 20ch; margin: 14px 0 20px; }
.page-hero .lede { max-width: 62ch; }
.page-hero .hero-actions { justify-content: flex-start; margin-top: 32px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: #B9CCD6; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose p + p { margin-top: 16px; }
.prose h3 { font-size: 1.5rem; margin: 28px 0 10px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad);
  -webkit-mask: radial-gradient(circle, #000 0 3px, transparent 3.5px), linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--white); border: 1px solid var(--hair); border-radius: 6px; padding: 26px 24px; }
.section-band .tile { border-color: rgb(15 97 133 / 0.14); }
.tile .step-num { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--green-read); }
.tile h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.tile p { font-size: 0.925rem; }

/* Engagement stories on /engagements/ */
.story { display: grid; grid-template-columns: 0.9fr 2fr; gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hair); scroll-margin-top: var(--header-h); }
.story:first-of-type { border-top: 0; padding-top: 0; }
.story-side .tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-read); }
.story-side h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 10px 0 16px; }
.story-side dl { font-size: 0.875rem; }
.story-side dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.story-side dd { color: var(--body); }
.story-body h3 { font-size: 1.25rem; margin: 0 0 8px; }
.story-body h3:not(:first-child) { margin-top: 26px; }
.story-body .check-list { margin-top: 8px; }
.story-note { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }

/* Partnership block on /about/ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo .founder-card { text-align: left; }
.duo .founder-card .portrait { margin: 0 0 18px; --size: 120px; }
.quote-band { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.quote-band blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.3; color: var(--ink); max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.quote-band cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* CTA band used at the bottom of inner pages */
.cta-band { background: var(--band); }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); max-width: 22ch; }

/* ---------- Readable wrapping ----------
   Short list items and card copy get balanced lines so a single word never sits alone on the
   last line; longer copy uses "pretty" wrapping. The HTML also keeps each list item's last two
   words together with a non-breaking space for browsers without text-wrap support. */
.check-list li, .cap li, .proof-label, .lead-flow strong, .lead-flow li > span:last-child,
.work-meta, .tag, .founder-role, .engage-card h4 { text-wrap: balance; }
.tile p, .engage-card p, .work-body p, .w4sl-card p, .story-body p, .faq-item .answer p,
.founder-card p.bio, .partners p, .lede { text-wrap: pretty; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  color: rgb(255 255 255 / 0.72); font-size: 0.9rem;
  background-color: #0B1A24;
  /* Ink scrim (heavier on the left where text sits) over the desaturated WSG cover photo */
  background-image:
    linear-gradient(90deg, rgb(11 26 36 / 0.97) 0%, rgb(11 26 36 / 0.9) 45%, rgb(11 26 36 / 0.78) 100%),
    linear-gradient(180deg, rgb(11 26 36 / 0.6) 0%, rgb(11 26 36 / 0) 30%, rgb(11 26 36 / 0.85) 100%),
    url('assets/footer-bg.jpg');
  background-image:
    linear-gradient(90deg, rgb(11 26 36 / 0.97) 0%, rgb(11 26 36 / 0.9) 45%, rgb(11 26 36 / 0.78) 100%),
    linear-gradient(180deg, rgb(11 26 36 / 0.6) 0%, rgb(11 26 36 / 0) 30%, rgb(11 26 36 / 0.85) 100%),
    image-set(url('assets/footer-bg.avif') type('image/avif'), url('assets/footer-bg.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 40%;
}
/* Aurora washes in logo blue/green */
.site-footer::before, .site-footer::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(110px); pointer-events: none;
}
.site-footer::before { width: 560px; height: 560px; left: -180px; top: -220px; background: rgb(15 97 133 / 0.45); }
.site-footer::after { width: 480px; height: 480px; right: -140px; bottom: -220px; background: rgb(57 178 106 / 0.28); }

.footer-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-mark { position: absolute; right: -60px; top: 40px; width: clamp(260px, 30vw, 440px); opacity: 0.08; transform: rotate(10deg); }

/* CTA band */
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap;
  padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 4vw, 56px);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer-cta .eyebrow { color: #6FD39A; margin-bottom: 12px; }
.footer-cta-title {
  font-family: var(--font-display); font-weight: 600; color: var(--white);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.1; max-width: 20ch; text-wrap: balance;
}
.footer-cta-title em { font-style: italic; color: #85C6E0; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 0.8fr; gap: 40px;
  padding: clamp(44px, 5vw, 64px) 0 clamp(44px, 5vw, 56px);
}
.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 22px; }
.footer-tagline { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; color: var(--white); margin-bottom: 12px; max-width: 24ch; }
.footer-tagline em { color: #6FD39A; font-style: italic; }
.footer-brand p:last-child { max-width: 40ch; }
.footer-col h2 {
  font-family: var(--font-body); line-height: 1.4; text-wrap: initial;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col h2::before { content: ''; width: 14px; height: 2px; background: linear-gradient(90deg, var(--green), #85C6E0); }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: rgb(255 255 255 / 0.72); text-decoration: none; transition: color var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: #6FD39A; }

/* Sub-footer */
.footer-bottom {
  position: relative; background: rgb(5 13 19 / 0.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.8125rem; color: rgb(255 255 255 / 0.62);
}
.footer-bottom::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: 0.9; }
.footer-bottom-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px;
}
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-motto { font-family: var(--font-display); font-size: 1.05rem; color: rgb(255 255 255 / 0.8); text-align: center; }
.footer-motto em { color: #6FD39A; }
.footer-bottom-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.22); color: var(--white); transition: background-color var(--ease), border-color var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.back-top { color: rgb(255 255 255 / 0.75); text-decoration: none; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.back-top:hover { color: #6FD39A; }
.site-footer :focus-visible { outline-color: #6FD39A; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .brand img { height: 24px; }
  .nav-links { gap: 18px; }
}

@media (max-width: 1024px) {
  .w4sl-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 24px; }

  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1000; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--white); padding: 96px var(--gutter) 48px;
    opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease);
  }
  /* visibility flips instantly on open so focus() can land on the first link */
  .nav-links.open { opacity: 1; visibility: visible; transition: opacity var(--ease), visibility 0s; }
  .nav-links a:not(.btn) { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
  .nav-links .btn { margin-top: 12px; padding: 15px 28px; font-size: 0.8125rem; }

  .about-grid, .spotlight-top, .contact-grid, .services-intro { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; gap: 36px; }
  .engage-grid, .tile-grid, .duo { grid-template-columns: 1fr; }
  .faq-grid, .split, .story { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; text-align: left; }
  /* Lead flow stacks vertically with downward joins */
  .lead-flow { grid-template-columns: 1fr; }
  .lead-flow li { border-right: 1px solid var(--hair); border-bottom: 0; padding: 22px 20px 22px 64px; }
  .lead-flow li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .lead-flow li:last-child { border-bottom: 1px solid var(--hair); border-radius: 0 0 var(--radius) var(--radius); }
  .lead-flow li:not(:last-child)::after { top: auto; bottom: -9px; right: auto; left: 30px; transform: rotate(135deg); }
  .lead-flow .step { position: absolute; left: 20px; top: 22px; margin: 0; }
  .services-intro { gap: 16px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .work-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .work-foot { justify-content: center; text-align: center; }
  .footer-bottom-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom-right { justify-content: center; }
  .footer-legal { justify-content: center; }
  .footer-motto { order: -1; }
  .hero-mark { right: -20%; opacity: 0.05; }
}

@media (max-width: 640px) {
  .service-row { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .service-row p { grid-column: 2; }
  .service-arrow { display: none; }
  .service-row:hover { padding-left: 12px; }
  .w4sl-services { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
  .footer-mark { opacity: 0.05; }
  .hero-actions .btn, .spotlight-actions .btn { width: 100%; white-space: normal; }
  .w4sl-stat { padding: 22px 18px; }
  .w4sl-stat strong { font-size: 2rem; }
}

/* Expertise labels: on wider screens keep the last two words together; phones wrap freely */
@media (min-width: 641px) { .proof-label .keep { white-space: nowrap; } }

@media (max-width: 400px) {
  .proof-item { padding-left: 12px; padding-right: 12px; }
  .proof-figure { font-size: 1.6rem; }
  .w4sl-stat { padding: 18px 14px; }
  .w4sl-stat strong { font-size: 1.45rem; white-space: normal; }
  .btn { letter-spacing: 0.03em; padding-left: 14px; padding-right: 14px; font-size: 0.75rem; }
  .spotlight-top, .about-grid, .contact-grid, .services-intro { grid-template-columns: minmax(0, 1fr); }
}

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