/* ==========================================================================
   Clean and Fresh — Commercial Janitorial Services
   Design tokens + global styles
   ========================================================================== */

:root {
  --clean: 0;          /* 0 = starting state, 1 = fully refined. Set from scroll progress by main.js. */
  --clean-amount: 1;   /* strength of the whole 'becoming cleaner' layer: 0 = off, 1 = default, 2+ = exaggerated (for testing) */
  --page-shade: 0.14;   /* ONE uniform darkening for the whole homepage background (hero, every section, footer). 0 = none; 0.35 = clearly darker. */
  /* Brand neutrals */
  --ink: #17161A;              /* deep charcoal-black — hero/dark sections */
  --charcoal: #2C2C2C;         /* brand primary dark — text, buttons */
  --charcoal-soft: #4A4A4A;    /* secondary text on light */
  --white: #FFFFFF;
  --paper: #FAFAF8;            /* page background, barely-off-white */
  --soft-gray: #F5F5F4;        /* section background */
  --steel: #CCCCCC;            /* borders / dividers */
  --steel-soft: #E4E4E2;

  /* Accents */
  --blush: #F7F0EC;            /* warm neutral accent bg */
  --sage-bg: #E8ECE3;          /* pale sage accent bg */
  --sage: #8A9A7E;             /* mid sage — icon strokes, small accents */
  --sage-deep: #56624C;        /* accessible sage for text/links on light */

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  /* Radius — restrained, not "overly rounded" */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 400ms;
  --dur-slow: 700ms;

  /* Layout */
  --container: 1240px;
  --nav-h: 84px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

/* Typography ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}
.on-dark .eyebrow { color: #C7D3BE; }

.h1 { font-size: clamp(2.25rem, 4.2vw + 1rem, 4.1rem); }
.h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.85rem); }
.h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }

.lede {
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  color: var(--charcoal-soft);
  line-height: 1.6;
  max-width: 46ch;
}
.on-dark .lede { color: #C9C9CC; }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-7);
}
.section-head .h2 { margin-top: var(--space-2); }
.section-head .lede { margin-top: var(--space-3); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.section {
  padding-block: var(--space-8);
}
@media (min-width: 1024px) { .section { padding-block: var(--space-9); } }

.section--gray { background: var(--soft-gray); }
.section--dark { background: var(--ink); color: var(--white); }
.section--blush { background: var(--blush); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  --btn-fg: var(--white);
  --btn-bg: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--charcoal); --btn-fg: var(--white); }
.btn--primary:hover { --btn-bg: #000000; }

.btn--inverse { --btn-bg: var(--white); --btn-fg: var(--ink); border-color: var(--white); }
.btn--inverse:hover { --btn-bg: #E9E9E6; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover { --btn-bg: var(--charcoal); --btn-fg: var(--white); }

.btn--outline-inverse {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--outline-inverse:hover { --btn-bg: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--steel);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.text-link:hover { border-color: var(--charcoal); gap: 0.6em; }
.text-link svg { width: 16px; height: 16px; }

/* Icon sizing -------------------------------------------------------------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Nav ----------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(23, 22, 26, 0.92);
  backdrop-filter: blur(10px);
  height: 72px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; color: var(--white); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.16em; color: rgba(255,255,255,0.6); text-transform: uppercase; margin-top: 1px; }

.nav-cta { display: none; align-items: center; gap: var(--space-4); }
.nav-phone { display: flex; align-items: center; gap: 0.5em; font-size: 0.9rem; font-weight: 600; color: var(--white); }
.nav-phone .icon { width: 18px; height: 18px; }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: calc(var(--nav-h) + var(--space-6)) var(--space-8);
}
.hero-content { max-width: 760px; }
.hero-content .eyebrow { color: #D7DFCF; }
.hero-content .h1 { margin-top: var(--space-3); }
.hero-content .lede { max-width: 54ch; color: rgba(255,255,255,0.82); margin-top: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-trust li {
  display: flex; align-items: center; gap: 0.55em;
  font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.hero-trust .icon { width: 17px; height: 17px; color: var(--sage); }

.scroll-cue {
  position: absolute; z-index: 1;
  right: var(--space-6); bottom: var(--space-5);
  display: none;
  align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0)); animation: scroll-cue 2.2s var(--ease-out) infinite; }
@keyframes scroll-cue { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); transform-origin: top; opacity: 1; } 60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }
@media (min-width: 900px) { .scroll-cue { display: flex; } }

/* Reveal-on-scroll -------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* Trust / credibility tiles ------------------------------------------------ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--steel-soft);
  border: 1px solid var(--steel-soft);
}
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(5, 1fr); } }

.trust-tile {
  background: var(--white);
  padding: var(--space-5) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: background var(--dur-fast) var(--ease-out);
}
.trust-tile:hover { background: var(--blush); }
.trust-tile .icon { width: 26px; height: 26px; color: var(--sage-deep); }
.trust-tile h3 { font-size: 1rem; font-weight: 700; }
.trust-tile p { font-size: 0.87rem; color: var(--charcoal-soft); line-height: 1.5; }

/* Services cards ------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--steel-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(23,22,26,0.28);
  border-color: transparent;
}
.service-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-bg);
  border-radius: var(--radius-sm);
  color: var(--sage-deep);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.92rem; color: var(--charcoal-soft); line-height: 1.6; flex-grow: 1; }

/* Program section (customized cleaning program) ----------------------------- */

.program {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 960px) { .program { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); } }

.program-list { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.program-list li { display: flex; align-items: flex-start; gap: 0.75em; font-size: 0.98rem; color: var(--charcoal); }
.program-list .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--sage-deep); }

.blueprint {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  aspect-ratio: 4 / 3.4;
  display: flex; align-items: center; justify-content: center;
}
.blueprint svg { width: 100%; height: 100%; }

/* Industries grid ------------------------------------------------------------ */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 700px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }

.industry-tile {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out);
}
.industry-tile:hover { transform: translateY(-4px); }
.industry-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(138,154,126,0.22), transparent 60%);
  opacity: 0; transition: opacity var(--dur-med) var(--ease-out);
}
.industry-tile:hover::before { opacity: 1; }
.industry-tile .icon { width: 28px; height: 28px; color: var(--sage); }
.industry-tile span { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.3; position: relative; }

/* Why us (dark, numbered pillars) -------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

.pillar {
  display: flex; gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 860px) {
  .pillar:nth-child(odd) { padding-right: var(--space-6); border-right: 1px solid rgba(255,255,255,0.14); }
  .pillar:nth-child(even) { padding-left: var(--space-6); }
}
.pillar-num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--sage); flex-shrink: 0; width: 2.4ch; }
.pillar h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; }
.pillar p { font-size: 0.92rem; color: rgba(255,255,255,0.68); line-height: 1.6; }

/* How it works -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  position: relative;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  .steps::before {
    content: '';
    position: absolute; top: 26px; left: 6%; right: 6%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--steel) 0 8px, transparent 8px 16px);
  }
}
.step { position: relative; }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  color: var(--white);
  background: var(--charcoal);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  position: relative; z-index: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--charcoal-soft); line-height: 1.55; }

/* Testimonials ---------------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 860px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--steel-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.testimonial-card .quote-mark { color: var(--sage); width: 30px; height: 24px; }
.testimonial-card p.quote { font-size: 0.98rem; line-height: 1.65; color: var(--charcoal); flex-grow: 1; }
.testimonial-attr { display: flex; align-items: center; gap: 0.8rem; padding-top: var(--space-3); border-top: 1px solid var(--steel-soft); }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sage-bg); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.testimonial-attr strong { display: block; font-size: 0.9rem; font-weight: 700; }
.testimonial-attr span { display: block; font-size: 0.8rem; color: var(--charcoal-soft); }

/* Final CTA -------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(720px 420px at 88% -10%, rgba(138,154,126,0.22), transparent 60%);
  pointer-events: none;
}
@media (min-width: 960px) { .cta-band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); padding: var(--space-8); } }

.cta-copy { position: relative; min-width: 0; }
.cta-copy .lede { margin-top: var(--space-3); }
.cta-direct { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.cta-direct a { display: flex; align-items: baseline; gap: 0.6em; font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.cta-direct a .icon { align-self: center; }
.cta-direct .icon { width: 18px; height: 18px; color: var(--sage); }
.cta-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.cta-badges li { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.4em 0.9em; }

.quote-form {
  position: relative;
  min-width: 0;
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
@media (min-width: 480px) { .form-row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--steel-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--charcoal);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-note { font-size: 0.76rem; color: var(--charcoal-soft); margin-top: 0.15rem; }
.form-success {
  display: none;
  align-items: center; gap: 0.6em;
  font-size: 0.9rem; font-weight: 600;
  color: var(--sage-deep);
  background: var(--sage-bg);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}
.form-success.is-visible { display: flex; }
.form-success .icon { width: 18px; height: 18px; }

/* Footer -------------------------------------------------------------------------- */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.82);
  padding-block: var(--space-7) var(--space-5);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: var(--space-5); } }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .brand-mark { margin-bottom: var(--space-3); }
.footer-brand .brand-word { color: var(--white); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 34ch; margin-top: var(--space-3); line-height: 1.6; }

.footer-col { min-width: 0; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col address { display: block; font-size: 0.9rem; font-style: normal; color: rgba(255,255,255,0.82); overflow-wrap: anywhere; transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-bottom .license { display: flex; align-items: center; gap: 0.5em; }
.footer-bottom .icon { width: 15px; height: 15px; color: var(--sage); }

/* Utility ------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: var(--space-3); z-index: 200;
  background: var(--white); color: var(--ink);
  padding: 0.8rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

/* ==========================================================================
   Navigation: dropdown menus
   ========================================================================== */
.nav-links { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; cursor: pointer;
  font: 500 0.92rem var(--font-body); color: rgba(255,255,255,0.88);
  padding: 0.7rem 0.85rem; border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-trigger:hover, .nav-item.is-open > .nav-trigger { color: var(--white); background: rgba(255,255,255,0.08); }
.chev { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.nav-item.is-open > .nav-trigger .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px; padding: 0.5rem;
  background: rgba(23,22,26,0.98);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
  box-shadow: 0 28px 60px -22px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  z-index: 120;
}
.menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item.is-open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu ul { display: flex; flex-direction: column; }
.menu--wide { min-width: 340px; }
.menu--right { left: auto; right: 0; }
.menu--cols { min-width: 560px; }
.menu--cols ul { display: grid; grid-template-columns: 1fr 1fr; }
.menu--states { min-width: 220px; }

.menu-link, .sub-trigger {
  display: block; width: 100%; text-align: left;
  padding: 0.6rem 0.8rem; border-radius: 6px;
  color: rgba(255,255,255,0.9);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.menu-link:hover, .menu-link:focus-visible, .sub-trigger:hover, .has-sub.is-open > .sub-trigger { background: rgba(255,255,255,0.09); color: var(--white); }
.mi-title { display: block; font-size: 0.92rem; font-weight: 600; }
.mi-sub { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.55); }

.has-sub { position: relative; }
.sub-trigger { display: flex; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; font: inherit; }
.sub-trigger .chev { transform: none !important; opacity: 0.7; }
.submenu {
  position: absolute; top: -0.5rem; left: calc(100% + 6px);
  min-width: 230px; padding: 0.5rem; list-style: none;
  background: rgba(23,22,26,0.98);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
  box-shadow: 0 28px 60px -22px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.submenu::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }

.nav .container { gap: var(--space-3); }
.nav-cta .nav-phone { display: none; }
@media (min-width: 1024px) { .nav-links { display: block; } }
@media (min-width: 1240px) { .nav-cta .nav-phone { display: flex; } }

/* Mobile menu (accordions) */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
  background: var(--ink); padding: var(--space-4) var(--space-4) var(--space-7);
  overflow-y: auto; opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.m-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font: 700 1.3rem var(--font-display); text-align: left;
  padding: 1rem 0; cursor: pointer;
}
.m-trigger .chev { width: 18px; height: 18px; }
.m-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.m-panel { padding: 0.25rem 0 0.75rem 0.25rem; }
.m-panel a { display: block; padding: 0.7rem 0.5rem; font-size: 1rem; color: rgba(255,255,255,0.82); }
.m-panel a:hover { color: var(--white); }
.m-group--nested .m-trigger { font-size: 1.05rem; font-weight: 600; padding-left: 0.5rem; border-bottom-color: rgba(255,255,255,0.08); }
.mobile-menu .nav-phone { margin-top: var(--space-5); font-size: 1.1rem; display: flex; }
.mobile-menu .btn { margin-top: var(--space-4); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 var(--space-5); padding: 0; font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: rgba(255,255,255,0.9); }

/* ==========================================================================
   Inner page components
   ========================================================================== */

.chip-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-block; padding: 0.55rem 0.95rem; font-size: 0.9rem; font-weight: 500;
  border: 1.5px solid var(--steel); border-radius: var(--radius-sm); color: var(--charcoal);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.card-grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.faq { max-width: 860px; border-top: 1px solid var(--steel-soft); }
.faq-item { border-bottom: 1px solid var(--steel-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font: 700 1.02rem/1.4 var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item .chev { width: 18px; height: 18px; flex-shrink: 0; }
.faq-a { padding: 0 0 1.25rem; max-width: 70ch; color: var(--charcoal-soft); line-height: 1.7; }

/* Careers form extras */
.career-form { border: 1px solid var(--steel-soft); box-shadow: 0 30px 60px -40px rgba(23,22,26,0.4); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); }
.check { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 1rem 0.4rem 0; font-size: 0.9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--charcoal); }
.field input[type="file"] { padding: 0.6rem; background: var(--white); cursor: pointer; }
.field-error { min-height: 1em; font-size: 0.8rem; color: #b3261e; }

/* Footer (expanded) */
.footer-top { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.4fr 1fr 1.15fr 1.05fr 0.8fr; gap: var(--space-5); } }
.footer-col h5 { margin: 1rem 0 0.55rem; font: 600 0.72rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.footer-col h5:first-of-type { margin-top: 0; }
.footer-col ul { gap: 0.5rem; }
.footer-col li > a { display: flex; align-items: center; min-height: 24px; }  /* WCAG 2.5.8 minimum target size */
.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; margin-top: var(--space-4); }
.footer-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.85); overflow-wrap: anywhere; }

/* Service-area block (home) */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
@media (min-width: 800px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-col h3 { font-size: 1.05rem; margin-bottom: var(--space-3); }

/* Homepage service cards: 5-up */
@media (min-width: 1100px) {
  .card-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid--5 > .service-card { grid-column: span 2; }
  .card-grid--5 > .service-card:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .card-grid--5 > .service-card:last-child { grid-column: 1 / -1; }
}

/* Homepage industries: 14 compact tiles */
.industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 700px) { .industry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .industry-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.industry-tile { min-height: 132px; padding: var(--space-4); gap: var(--space-4); }
.industry-tile span { font-size: 0.9rem; }

/* ==========================================================================
   Homepage: fixed background + glass sections
   ========================================================================== */
.home { background: #0e0d10; color: var(--white); }
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0e0d10; }
.site-bg__img, .site-bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.site-bg__video { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.site-bg.has-video .site-bg__video { opacity: 1; }
.site-bg__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(14,13,16,var(--page-shade)), rgba(14,13,16,var(--page-shade))),
    linear-gradient(180deg, rgba(14,13,16,0.42) 0%, rgba(14,13,16,0.5) 100%),
    linear-gradient(100deg, rgba(12,11,14,0.62) 0%, rgba(12,11,14,0.18) 62%, rgba(12,11,14,0.08) 100%);
}
.home .hero { background: transparent; }
/* Uniform shade: no per-section overlays. The single page-wide shade is --page-shade (in :root), applied in .site-bg__shade. */
.home main > .section { background: transparent; }
.home .section .h2, .home .section h3 { color: var(--white); }
.home .section .lede { color: #CFCFD3; }
.home .section .eyebrow { color: #C7D3BE; }
.home .program-list li { color: #ECECEE; }
.home .program-list .icon { color: var(--sage); }
.home .step h3 { color: var(--white); }
.home .step p { color: rgba(255, 255, 255, 0.92); }
.home .step-num { background: var(--white); color: var(--ink); }
.home .steps::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.32) 0 8px, transparent 8px 16px); }
.home .trust-grid { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.home .trust-tile { background: rgba(22,21,26,0.9); }
.home .trust-tile:hover { background: rgba(38,37,44,0.95); }
.home .trust-tile p { color: #BDBDC4; }
.home .trust-tile .icon { color: var(--sage); }
.home .service-card h3, .home .testimonial-card h3 { color: var(--charcoal); }
.home .industry-tile { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); }
.home .industry-tile:hover { background: rgba(255,255,255,0.12); }
.home .blueprint { border: 1px solid rgba(255,255,255,0.12); }
.home .chip { border-color: rgba(255,255,255,0.3); color: var(--white); }
.home .chip:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.home .cta-band { border: 1px solid rgba(255,255,255,0.1); }
.home .testimonial-card .quote, .home .testimonial-attr strong { color: var(--charcoal); }
.home .testimonial-card h3 { color: var(--charcoal); }
.home .quote-form h3 { color: var(--charcoal); }

.section-head + .check-grid, .section-head + .feature-grid, .section-head + .mini-grid, .section-head + .faq { margin-top: 0; }

/* Scroll-driven background: portrait phones use the vanishing-point-centred crop */
@media (max-aspect-ratio: 1/1) {
  .site-bg__img, .site-bg__video { object-position: 50% 50%; }
}

/* Homepage only: the fixed corridor background shows through the footer instead of the solid gray.
   A light near-black veil (40%) and slightly brighter small labels keep the text above 4.5:1 contrast. */
.home .footer { background: transparent; }
.home .footer-col h4 { color: rgba(255, 255, 255, 0.92); }
.home .footer-col h5 { color: rgba(255, 255, 255, 0.85); }
.home .footer-brand p, .home .footer-bottom { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   "Becoming cleaner" layer (under the uniform shade; driven by --clean)
   Starts as the UNTOUCHED photo (--clean: 0) and builds up to a brighter, crisper, more polished version (--clean: 1):
   exposure lift, contrast and colour, plus a soft polish highlight on the floor.
   Strength: --clean-amount in :root, or ?clean=2 in the URL while testing (0 = off).
   ========================================================================== */
.site-bg__media {
  position: absolute; inset: 0;
  filter:
    contrast(calc(1 + 0.16 * var(--clean) * var(--clean-amount)))
    saturate(calc(1 + 0.22 * var(--clean) * var(--clean-amount)))
    brightness(calc(1 + 0.36 * var(--clean) * var(--clean-amount)));
}
.site-bg__sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 62% 34% at 52% 100%, rgba(236,240,245,calc(0.26 * var(--clean-amount))), rgba(236,240,245,0) 72%),
    radial-gradient(ellipse 17% 50% at 52% 100%, rgba(236,240,245,calc(0.30 * var(--clean-amount))), rgba(236,240,245,0) 72%);
  opacity: var(--clean);
}

/* Homepage text that sits over the brighter refined background: slightly brighter so it stays above 4.5:1 contrast */
.home .section .eyebrow { color: #E4ECDD; }
.home .section .lede { color: #EDEDF0; }
.home .step p { color: #FFFFFF; }
.home .footer-col a { color: rgba(255, 255, 255, 0.96); }
.home .footer-col h4, .home .footer-col h5 { color: rgba(255, 255, 255, 0.96); }

/* Homepage: testimonial cards and the quote form use dark glass instead of bright white */
.home .testimonial-card { background: rgba(18, 17, 21, 0.72); border-color: rgba(255, 255, 255, 0.14); }
.home .testimonial-card .quote { color: rgba(255, 255, 255, 0.92); }
.home .testimonial-attr { border-top-color: rgba(255, 255, 255, 0.16); }
.home .testimonial-attr strong { color: #FFFFFF; }
.home .testimonial-attr span { color: #DADADF; }
.home .testimonial-avatar { background: rgba(138, 154, 126, 0.24); color: #E1EBDA; }

.home .quote-form { background: rgba(18, 17, 21, 0.72); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.14); color-scheme: dark; }
.home .quote-form h3 { color: #FFFFFF; }
.home .quote-form .field label { color: #DADADF; }
.home .quote-form .field input, .home .quote-form .field select, .home .quote-form .field textarea {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #FFFFFF;
}
.home .quote-form .field input:focus, .home .quote-form .field select:focus, .home .quote-form .field textarea:focus {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.75);
}
.home .quote-form ::placeholder { color: rgba(255, 255, 255, 0.5); }
.home .quote-form .field-note { color: #E2E2E6; }
.home .quote-form .btn--primary { --btn-bg: #FFFFFF; --btn-fg: var(--ink); border-color: #FFFFFF; }
.home .quote-form .btn--primary:hover { --btn-bg: #E9E9E6; }
.home .quote-form .form-success { background: rgba(138, 154, 126, 0.22); color: #E1EBDA; }

/* ==========================================================================
   Editorial subpage system (.page-ed): light, photography-led, readable.
   Used by industry pages first. Homepage keeps its own cinematic treatment.
   ========================================================================== */
.page-ed {
  --ed-ink: #1A1A1D;
  --ed-text: #3F3F44;
  --ed-mute: #6A6A70;
  --ed-rule: #DCDAD4;
  --ed-paper: #FAFAF8;
  --ed-white: #FFFFFF;
  background: var(--ed-paper);
  color: var(--ed-text);
}
/* dark brand header over a light page, solid from the first pixel */
.page-ed .nav, .page-ed .nav.is-scrolled { background: var(--ink); backdrop-filter: none; }
.page-ed main.ed { padding-top: var(--nav-h); }

.page-ed .breadcrumb ol { margin: 0; padding-block: var(--space-5) var(--space-6); color: var(--ed-mute); }
.page-ed .breadcrumb a:hover { color: var(--ed-ink); }
.page-ed .breadcrumb [aria-current] { color: var(--ed-ink); }

/* Hero: headline | lede, then the photograph, then a title-block spec strip */
.ed-hero { background: var(--ed-paper); padding-bottom: var(--space-8); }
.ed-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: end; }
@media (min-width: 960px) { .ed-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.ed-h1 {
  text-wrap: balance;
  margin-top: var(--space-3);
  font-size: clamp(2.2rem, 3vw + 1rem, 3.8rem);
  line-height: 1.06; letter-spacing: -0.027em; font-weight: 700;
  color: var(--ed-ink); max-width: 19ch;
}
.ed-lede { font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem); line-height: 1.65; color: var(--ed-text); max-width: 46ch; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-5); }
.ed-phone { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--ed-ink); border-bottom: 1.5px solid var(--ed-rule); padding-bottom: 2px; transition: border-color var(--dur-fast) var(--ease-out); }
.ed-phone:hover { border-color: var(--ed-ink); }
.ed-phone .icon { width: 18px; height: 18px; color: var(--sage-deep); }

.ed-photo { margin: var(--space-7) 0 0; }
.ed-photo__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); background: var(--steel-soft); }
@media (min-width: 700px) { .ed-photo__img { aspect-ratio: 16 / 9; } }

.ed-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--ed-rule); }
@media (min-width: 900px) { .ed-spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ed-spec > div { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-top: 1px solid var(--ed-rule); }
@media (min-width: 900px) { .ed-spec > div { border-top: 0; padding-left: var(--space-4); border-left: 1px solid var(--ed-rule); } .ed-spec > div:first-child { padding-left: 0; border-left: 0; } }
.ed-spec dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ed-mute); }
.ed-spec dd { margin: 0.35rem 0 0; font-weight: 600; font-size: 0.98rem; line-height: 1.4; color: var(--ed-ink); }

/* Body: sticky 'on this page' rail + one readable column */
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: var(--space-8); }
@media (min-width: 1024px) { .ed-layout { grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--space-8); } }
.ed-rail { display: none; }
@media (min-width: 1024px) {
  .ed-rail { display: block; position: sticky; top: calc(var(--nav-h) + var(--space-5)); align-self: start; padding-top: var(--space-4); }
}
.ed-rail__label { margin: 0 0 var(--space-3); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ed-mute); }
.ed-rail ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ed-rule); }
.ed-rail li a { display: block; padding: 0.5rem 0 0.5rem var(--space-3); margin-left: -1px; border-left: 2px solid transparent; font-size: 0.92rem; color: var(--ed-mute); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.ed-rail li a:hover { color: var(--ed-ink); }
.ed-rail li a[aria-current="true"] { color: var(--ed-ink); font-weight: 600; border-left-color: var(--ed-ink); }
.ed-rail li a:focus-visible, .ed-rail__phone:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.ed-rail__cta { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--ed-rule); display: grid; gap: var(--space-3); }
.ed-rail__phone { text-align: center; font-weight: 600; font-size: 0.95rem; color: var(--ed-ink); }

.ed-main { min-width: 0; max-width: 820px; }
.ed-sec { padding-top: var(--space-8); scroll-margin-top: calc(var(--nav-h) + var(--space-3)); }
.ed-sec:first-child { padding-top: var(--space-4); }
.ed-h2 { text-wrap: balance; margin-top: var(--space-2); font-size: clamp(1.65rem, 1.5vw + 1.1rem, 2.3rem); line-height: 1.14; letter-spacing: -0.022em; color: var(--ed-ink); max-width: 24ch; }

/* What matters: four statements, ruled, no card chrome */
.ed-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-7); margin-top: var(--space-6); }
@media (min-width: 700px) { .ed-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-point { padding: var(--space-4) 0 var(--space-5); border-top: 1px solid var(--ed-rule); }
.ed-point h3 { font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ed-ink); }
.ed-point p { margin: var(--space-2) 0 0; line-height: 1.7; }

/* Scope: a plain specification list */
.ed-scope { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ed-rule); }
@media (min-width: 700px) { .ed-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); } }
.ed-scope li { position: relative; padding: 0.95rem 0 0.95rem 1.6rem; border-bottom: 1px solid var(--ed-rule); color: var(--ed-ink); line-height: 1.45; }
.ed-scope li::before { content: ''; position: absolute; left: 0; top: 1.35rem; width: 7px; height: 7px; background: var(--sage-deep); }

/* Services: link rows */
.ed-rows { margin-top: var(--space-6); border-top: 1px solid var(--ed-rule); }
.ed-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--ed-rule); color: var(--ed-ink); transition: padding var(--dur-fast) var(--ease-out); }
.ed-row h3 { grid-column: 1; grid-row: 1; }
.ed-row p { grid-column: 1 / -1; grid-row: 2; }
.ed-row > .icon { grid-column: 2; grid-row: 1; }
@media (min-width: 700px) {
  .ed-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 24px; }
  .ed-row h3, .ed-row p, .ed-row > .icon { grid-column: auto; grid-row: auto; }
}
.ed-row h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
.ed-row p { margin: 0; color: var(--ed-text); line-height: 1.6; font-size: 0.97rem; }
.ed-row .icon { width: 20px; height: 20px; color: var(--ed-mute); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ed-row:hover .icon { transform: translateX(4px); color: var(--ed-ink); }
.ed-row:focus-visible, .ed-card:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }

/* How it starts: a real sequence, so numbered */
.ed-steps { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-6); }
@media (min-width: 760px) { .ed-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ed-steps li { padding: var(--space-4) 0 var(--space-5); border-top: 1px solid var(--ed-ink); }
.ed-step__n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--sage-deep); margin-bottom: var(--space-3); }
.ed-steps h3 { font-size: 1.1rem; color: var(--ed-ink); letter-spacing: -0.01em; }
.ed-steps p { margin: var(--space-2) 0 0; font-size: 0.95rem; line-height: 1.65; }

.page-ed .faq { margin-top: var(--space-6); max-width: none; border-top-color: var(--ed-rule); }
.page-ed .faq-item { border-bottom-color: var(--ed-rule); }
.page-ed .faq-item summary { color: var(--ed-ink); }
.page-ed .faq-a { color: var(--ed-text); }

.ed-inline { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem var(--space-5); }
.ed-inline a { display: inline-block; padding: 0.15rem 0; border-bottom: 1px solid var(--ed-rule); color: var(--ed-ink); font-weight: 500; transition: border-color var(--dur-fast) var(--ease-out); }
.ed-inline a:hover { border-color: var(--ed-ink); }
.ed-inline--index { margin-top: var(--space-6); }

/* Other industries: four photographs, then a text index */
.ed-more { background: var(--ed-white); border-top: 1px solid var(--ed-rule); padding-block: var(--space-8); }
.ed-more__head .ed-h2 { max-width: none; }
.ed-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); margin-top: var(--space-6); }
@media (min-width: 900px) { .ed-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
.ed-card { display: block; color: var(--ed-ink); }
.ed-card__img { overflow: hidden; border-radius: var(--radius-sm); background: var(--steel-soft); aspect-ratio: 3 / 2; }
.ed-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.ed-card:hover .ed-card__img img { transform: scale(1.03); }
.ed-card h3 { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); font-size: 1.02rem; letter-spacing: -0.01em; }
.ed-card h3 .icon { width: 18px; height: 18px; color: var(--ed-mute); transition: transform var(--dur-fast) var(--ease-out); }
.ed-card:hover h3 .icon { transform: translateX(4px); }

/* Contact: light editorial version of the quote band */
.page-ed .ed-contact { background: var(--ed-paper); }
.page-ed .ed-contact .cta-band { background: transparent; color: var(--ed-text); border-radius: 0; padding: 0; }
.page-ed .ed-contact .cta-band::before { display: none; }
.page-ed .ed-contact .cta-band .h2 { color: var(--ed-ink); }
.page-ed .ed-contact .cta-band .eyebrow { color: var(--sage-deep); }
.page-ed .ed-contact .cta-band .lede { color: var(--ed-text); }
.page-ed .ed-contact .cta-direct a { color: var(--ed-ink); }
.page-ed .ed-contact .cta-direct .icon { color: var(--sage-deep); }
.page-ed .ed-contact .cta-badges li { color: var(--ed-text); border-color: var(--ed-rule); }
.page-ed .ed-contact .quote-form { border: 1px solid var(--ed-rule); box-shadow: 0 1px 2px rgba(23,22,26,0.04), 0 18px 40px -24px rgba(23,22,26,0.18); border-radius: var(--radius-sm); }

/* Mobile jump links: a sticky, scrollable row under the header (desktop uses the rail) */
.ed-jump {
  position: sticky; top: 72px; z-index: 20;
  display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--space-4)); padding: 0 var(--space-4);
  background: var(--ed-paper); border-bottom: 1px solid var(--ed-rule);
}
.ed-jump::-webkit-scrollbar { display: none; }
.ed-jump a { flex: 0 0 auto; padding: 0.95rem 0 0.8rem; border-bottom: 2px solid transparent; font-size: 0.9rem; font-weight: 500; color: var(--ed-mute); white-space: nowrap; }
.ed-jump a[aria-current="true"] { color: var(--ed-ink); font-weight: 600; border-bottom-color: var(--ed-ink); }
.ed-jump a:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: -2px; }
@media (min-width: 768px) { .ed-jump { margin-inline: calc(-1 * var(--space-6)); padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .ed-jump { display: none; } }
@media (max-width: 1023px) { .ed-sec { scroll-margin-top: calc(72px + 56px); } }

/* Service pages: lead statement, figure, process rows */
.ed-lead { margin: var(--space-5) 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); line-height: 1.45; letter-spacing: -0.012em; color: var(--ed-ink); max-width: 36ch; }
.ed-prose { margin: var(--space-4) 0 0; max-width: 62ch; line-height: 1.75; }
.ed-figure { margin: var(--space-6) 0 0; }
.ed-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--steel-soft); }
.ed-process { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--ed-ink); }
.ed-process li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--ed-rule); }
@media (min-width: 700px) { .ed-process li { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6) 0; } }
.ed-process__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 2vw + 1rem, 3.2rem); line-height: 1; letter-spacing: -0.03em; color: var(--sage-deep); }
.ed-process h3 { font-size: 1.3rem; letter-spacing: -0.015em; color: var(--ed-ink); }
.ed-process p { margin: var(--space-2) 0 0; max-width: 56ch; line-height: 1.7; }
.ed-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .ed-main .ed-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ed-main .ed-cards { margin-top: var(--space-6); }

/* City pages: regional caption + service-area locator */
.ed-photo__cap { margin-top: var(--space-2); font-size: 0.78rem; color: var(--ed-mute); text-align: right; }
@media (min-width: 900px) { .ed-main .ed-cards:not(.ed-cards--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-minor { margin: var(--space-6) 0 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ed-mute); font-family: var(--font-body); }
.ed-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-6); align-items: start; }
@media (min-width: 760px) { .ed-map { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-7); } }
.ed-map__fig { margin: 0; }
.ed-map__fig figcaption { margin-top: var(--space-2); font-size: 0.78rem; color: var(--ed-mute); }
.ed-map__svg { display: block; width: 100%; height: auto; max-width: 460px; background: #F3F2EE; border: 1px solid var(--ed-rule); border-radius: var(--radius-sm); }
.map-river { fill: none; stroke: #C8D0C2; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.map-river--thin { stroke-width: 5; }
.map-water { font: 600 10.5px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; fill: #8C9786; }
.map-dot { stroke: #F3F2EE; stroke-width: 2; }
.map-dot--far { fill: #A5A5A9; }
.map-dot--near { fill: var(--sage-deep); }
.map-dot--here { fill: var(--ed-ink); }
.map-ring { fill: none; stroke: var(--ed-ink); stroke-width: 1; opacity: 0.35; }
.map-hit { fill: transparent; }
.map-label { font: 500 14px var(--font-body); fill: var(--ed-mute); paint-order: stroke; stroke: #F3F2EE; stroke-width: 3px; stroke-linejoin: round; }
.map-label--near { fill: var(--ed-text); font-weight: 600; }
.map-label--here { fill: var(--ed-ink); font-weight: 700; font-size: 15.5px; }
.ed-map__svg a { cursor: pointer; }
.ed-map__svg a:hover .map-label, .ed-map__svg a:focus-visible .map-label { fill: var(--ed-ink); text-decoration: underline; }
.ed-map__svg a:hover .map-dot--far, .ed-map__svg a:focus-visible .map-dot--far { fill: var(--ed-ink); }
.ed-map__svg a:focus-visible { outline: none; }
.ed-map__svg a:focus-visible .map-hit { stroke: var(--sage-deep); stroke-width: 2; fill: rgba(86, 98, 76, 0.12); }
.ed-nearby { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--ed-rule); }
.ed-nearby a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 0.85rem 0; border-bottom: 1px solid var(--ed-rule); color: var(--ed-ink); font-weight: 600; transition: padding var(--dur-fast) var(--ease-out); }
.ed-nearby a:hover { padding-left: 0.35rem; }
.ed-nearby small { font-weight: 400; font-size: 0.8rem; color: var(--ed-mute); }

/* About: narrative / editorial (two-column splits, a pull standard, a full-bleed band, figures) */
.ed-split { padding-block: var(--space-8); border-top: 1px solid var(--ed-rule); }
.ed-split--first { border-top: 0; padding-top: var(--space-6); }
.ed-split__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 900px) { .ed-split__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-8); } .ed-split__head { position: sticky; top: calc(var(--nav-h) + var(--space-5)); align-self: start; } }
.ed-split__head .ed-h2 { max-width: 14ch; }
.ed-split__body { min-width: 0; max-width: 760px; }
.ed-split__body > .ed-lead:first-child { margin-top: 0; font-size: clamp(1.35rem, 1.3vw + 1rem, 1.9rem); max-width: 32ch; }
.ed-inline--tight { margin-top: var(--space-3); }
.ed-standard { padding-block: var(--space-8); background: var(--ed-white); border-block: 1px solid var(--ed-rule); }
.ed-standard__text { margin: var(--space-4) 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw + 0.6rem, 4rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--ed-ink); text-wrap: balance; }
.ed-band { margin: 0; background: var(--steel-soft); }
.ed-band img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 701px) { .ed-band img { aspect-ratio: 21 / 9; } }
.ed-factsec { padding-block: var(--space-7); }
.ed-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .ed-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ed-facts li { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-top: 1px solid var(--ed-ink); }
@media (min-width: 800px) { .ed-facts li + li { padding-left: var(--space-4); border-left: 1px solid var(--ed-rule); } .ed-facts li { border-top: 1px solid var(--ed-ink); } }
.ed-facts strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 3vw + 1rem, 4rem); line-height: 1; letter-spacing: -0.04em; color: var(--ed-ink); }
.ed-facts span { display: block; margin-top: var(--space-2); font-size: 0.9rem; color: var(--ed-mute); max-width: 18ch; }
.ed-values { border-top: 1px solid var(--ed-ink); }
.ed-value { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2) var(--space-6); padding: var(--space-5) 0; border-bottom: 1px solid var(--ed-rule); }
@media (min-width: 700px) { .ed-value { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); padding: var(--space-6) 0; } }
.ed-value h3 { font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ed-ink); }
.ed-value p { margin: 0; line-height: 1.7; max-width: 50ch; }
.ed-rows--flush { margin-top: 0; }

/* Careers */
.ed-quals { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--ed-ink); }
.ed-quals li { padding: 1.05rem 0; border-bottom: 1px solid var(--ed-rule); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 0.6vw + 1rem, 1.4rem); letter-spacing: -0.012em; color: var(--ed-ink); line-height: 1.35; }

.ed-apply { background: var(--ed-white); scroll-margin-top: var(--nav-h); }
.ed-apply .ed-split__head .ed-prose { margin-top: var(--space-4); max-width: 30ch; }
.page-ed .career-form { border: 1px solid var(--ed-rule); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(23,22,26,0.04), 0 18px 40px -24px rgba(23,22,26,0.18); background: var(--ed-white); }
.page-ed .career-form .fieldset { border: 0; padding: 0; margin: 0; }
.page-ed .career-form legend { font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); padding: 0; margin-bottom: 0.4rem; }

/* Resources: publication / index */
.ed-masthead { background: var(--ed-paper); padding-bottom: var(--space-7); }
.ed-masthead .ed-h1 { margin-top: var(--space-3); max-width: 20ch; }
.ed-masthead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); }
.ed-meta { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ed-mute); }
.ed-feature { padding-block: var(--space-6) var(--space-8); border-top: 1px solid var(--ed-rule); }
.ed-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: center; padding-top: var(--space-6); }
@media (min-width: 960px) { .ed-feature__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.ed-feature__img { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--steel-soft); }
.ed-feature__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.ed-feature__img:hover img { transform: scale(1.02); }
.ed-feature__text .ed-meta { margin-top: var(--space-3); }
.ed-feature__title { margin-top: var(--space-3); font-size: clamp(1.7rem, 1.8vw + 1.1rem, 2.6rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.ed-feature__title a { color: var(--ed-ink); }
.ed-feature__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ed-feature__text .ed-prose { margin-bottom: var(--space-5); }
.ed-index { padding-block: var(--space-8); background: var(--ed-white); border-top: 1px solid var(--ed-rule); }
.ed-article-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--ed-ink); }
.ed-article-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-5) 0; border-bottom: 1px solid var(--ed-rule); color: var(--ed-ink); }
@media (min-width: 800px) { .ed-article-row { grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: var(--space-6); align-items: baseline; } }
.ed-article-row__main { display: grid; gap: 0.4rem; min-width: 0; }
.ed-article-row__main strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.018em; line-height: 1.25; }
.ed-article-row__main span { color: var(--ed-text); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-article-row__go { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.88rem; color: var(--ed-mute); white-space: nowrap; }
.ed-article-row__go .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.ed-article-row:hover .ed-article-row__main strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ed-article-row:hover .ed-article-row__go .icon { transform: translateX(3px); }
.ed-article-row:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }
.ed-cards--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 700px) { .ed-more .ed-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-more .ed-cards--2 .ed-card__img { aspect-ratio: 16 / 9; }

/* Articles */
.ed-h1--post { max-width: 22ch; }

.ed-layout--post { padding-top: var(--space-4); }
.ed-article { min-width: 0; max-width: 700px; font-size: 1.075rem; line-height: 1.8; color: var(--ed-text); }
.ed-article p { margin: 1.15em 0 0; }
.ed-article__lead { margin-top: 0 !important; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1vw + 1.05rem, 1.65rem); line-height: 1.5; letter-spacing: -0.012em; color: var(--ed-ink); }
.ed-article h2 { margin: 2.6em 0 0; font-size: clamp(1.5rem, 1vw + 1.1rem, 1.95rem); line-height: 1.2; letter-spacing: -0.022em; color: var(--ed-ink); scroll-margin-top: calc(var(--nav-h) + 56px); text-wrap: balance; }
.ed-article h3 { margin: 2em 0 0; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--ed-ink); }
.ed-article h2 + p, .ed-article h3 + p { margin-top: 0.8em; }
.ed-article ul { margin: 1.15em 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ed-rule); }
.ed-article li { position: relative; padding: 0.7rem 0 0.7rem 1.5rem; border-bottom: 1px solid var(--ed-rule); line-height: 1.55; }
.ed-article li::before { content: ''; position: absolute; left: 0; top: 1.25rem; width: 7px; height: 7px; background: var(--sage-deep); }
.ed-article__cta { margin-top: var(--space-8); padding: var(--space-6) 0; border-block: 1px solid var(--ed-ink); }
.ed-article__cta h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.ed-article__cta p { margin: var(--space-3) 0 var(--space-5); max-width: 46ch; line-height: 1.65; }

/* Photo title band: the page photo is the background of the title block (all pages with a photo) */
.ed-hero--photo { padding-bottom: var(--space-8); }
.ed-hero__band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); display: flex; min-height: clamp(440px, 60vh, 620px); }
.ed-hero__bg { position: absolute; inset: 0; z-index: -1; }
.ed-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  /* one even shade (keeps small text >= 4.5:1 even over bright sky/walls) + a gentle top/bottom deepening */
  background:
    linear-gradient(rgba(14, 13, 16, 0.55), rgba(14, 13, 16, 0.55)),
    linear-gradient(180deg, rgba(14, 13, 16, 0.35) 0%, rgba(14, 13, 16, 0.12) 35%, rgba(14, 13, 16, 0.22) 65%, rgba(14, 13, 16, 0.6) 100%);
}
.ed-hero__fg { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: var(--space-7); }
.ed-hero--photo .ed-hero__grid { margin-top: auto; padding-top: var(--space-6); align-items: start; }
.ed-hero--photo .breadcrumb ol { color: rgba(255, 255, 255, 0.92); }
.ed-hero--photo .breadcrumb a:hover, .ed-hero--photo .breadcrumb [aria-current] { color: var(--white); }
.ed-hero--photo .eyebrow { color: #FFFFFF; }
.ed-hero--photo .ed-h1 { color: var(--white); text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25); }
.ed-hero--photo .ed-lede { color: #FFFFFF; }
.ed-hero--photo .ed-phone { color: var(--white); border-bottom-color: rgba(255, 255, 255, 0.45); }
.ed-hero--photo .ed-phone:hover { border-bottom-color: var(--white); }
.ed-hero--photo .ed-phone .icon { color: #DCE4D3; }
.ed-hero--photo .ed-photo__cap { margin: var(--space-2) 0 0; }
.ed-hero--photo .ed-spec { margin-top: var(--space-4); }
.ed-hero__grid--single { grid-template-columns: minmax(0, 1fr) !important; }
.ed-hero--post { padding-bottom: var(--space-6); }
.ed-hero--post .ed-h1--post { max-width: 24ch; }
/* title block placed high in the band (over windows/sky) so subjects lower in the photo stay visible */
.ed-hero--top .ed-hero__fg { justify-content: flex-start; }
.ed-hero--top .ed-hero__grid { margin-top: 0; padding-top: var(--space-3); }
@media (min-width: 2000px) { .ed-hero--top .ed-hero__bg img { object-position: 55% 58% !important; } } /* very wide screens crop more, keep the seated visitors' feet in */
.ed-quals--roles + .ed-prose + p { margin-top: var(--space-5); }

/* Keyboard focus on dark surfaces: a light ring (the default dark-sage ring is under 3:1 on charcoal/ink and photos) */
.nav :focus-visible, .mobile-menu :focus-visible, .footer :focus-visible, .ed-hero--photo :focus-visible, .home main :focus-visible, .skip-link:focus-visible {
  outline-color: #DCE4D3;
}

/* Form send error (shown only if Wix can't be reached) */
.form-error { margin: 0; font-size: 0.85rem; font-weight: 600; color: #b3261e; }
.home .quote-form .form-error { color: #FFC9C2; }

/* Careers: résumé is emailed (no upload on the Light plan) */
.resume-email { padding: 0.85rem 1rem; background: var(--ed-paper, #FAFAF8); border: 1px solid var(--ed-rule, #DCDAD4); border-radius: var(--radius-sm); }
.resume-email .field-label { font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); }
.resume-email p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--charcoal); }
.resume-email a, .ed-apply .ed-prose a { color: var(--ed-ink, #1A1A1D); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
