:root {
  color-scheme: light;
  --ink: #17232c;
  --ink-soft: #52616a;
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --surface: #fffdf8;
  --accent: #24594f;
  --accent-strong: #163e37;
  --line: rgba(23, 35, 44, .15);
  --shadow: 0 24px 70px rgba(16, 32, 39, .13);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --radius: 2px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2eee5;
  --ink-soft: #b8c0be;
  --paper: #10191e;
  --paper-deep: #18252b;
  --surface: #1d2b31;
  --accent: #74b5a6;
  --accent-strong: #9bd0c4;
  --line: rgba(242, 238, 229, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 20; }
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-mark rect { fill: none; stroke: currentColor; stroke-width: 1.5; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.brand small { color: var(--ink-soft); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.worker-only { color: var(--ink-soft); font-size: 13px; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; }
.theme-toggle:hover { background: var(--paper-deep); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--accent-strong); border-color: var(--accent-strong); }
.button-small { min-height: 42px; padding-inline: 17px; font-size: 14px; }
.button-light { width: 100%; background: var(--surface); border-color: var(--surface); color: #17232c; }
.button-light:hover { background: #fff; border-color: #fff; }

.hero { position: relative; min-height: 690px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .62fr); min-height: 690px; align-items: center; gap: 64px; padding-block: 64px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 24px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #afd0c8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(54px, 6.2vw, 92px); }
h2 { font-size: clamp(40px, 4vw, 62px); }
h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.15; }
.lede { max-width: 660px; color: var(--ink-soft); font-size: clamp(20px, 2vw, 25px); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 34px 0; }
.text-link { text-underline-offset: 5px; font-weight: 600; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; }
.trust-list span { margin-right: 8px; color: var(--accent); }
.portrait-wrap { position: relative; align-self: end; z-index: 2; }
.portrait-frame { height: 590px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-caption { position: absolute; left: -30px; bottom: 30px; display: grid; min-width: 220px; padding: 18px 22px; background: var(--surface); border-left: 3px solid var(--accent); box-shadow: var(--shadow); }
.portrait-caption span { font-family: var(--serif); font-size: 22px; }
.portrait-caption small { color: var(--ink-soft); }
.hero-word { position: absolute; left: -22px; bottom: -55px; color: transparent; font-family: var(--sans); font-size: clamp(120px, 18vw, 280px); font-weight: 700; line-height: 1; letter-spacing: -.07em; -webkit-text-stroke: 1px var(--line); pointer-events: none; white-space: nowrap; }

.statement { background: var(--ink); color: var(--paper); }
.statement-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 34px; }
.statement p { margin: 0; }
.statement p:first-child { font-family: var(--serif); font-size: 25px; }
.statement p:last-child { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.section { padding-block: 110px; }
.section-heading { max-width: 740px; margin-bottom: 54px; }
.section-heading h2 { margin-bottom: 0; }
.situation-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.situation-card { display: grid; grid-template-columns: 52px 1fr; gap: 22px; min-height: 210px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 46%, transparent); }
.situation-card svg { width: 32px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.situation-card p { margin: 0; color: var(--ink-soft); }
.evidence-section { background: var(--paper-deep); }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; align-items: start; }
.quote-block { position: sticky; top: 40px; }
.quote-mark { color: var(--accent); font-family: var(--serif); font-size: 88px; line-height: .4; }
.quote-block h2 { margin-top: 24px; }
.prose-block > p { color: var(--ink-soft); font-size: 21px; }
.process { margin: 46px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process b { color: var(--accent); font-family: var(--serif); font-size: 20px; }
.process span { display: grid; }
.process strong { font-size: 19px; }
.process small { color: var(--ink-soft); font-size: 15px; }
.about { padding-bottom: 20px; }
.about-card { position: relative; overflow: hidden; padding: 72px; border: 1px solid var(--line); background: var(--surface); }
.about-card::after { content: "ER"; position: absolute; right: -20px; top: -70px; color: transparent; font-family: var(--serif); font-size: 280px; -webkit-text-stroke: 1px var(--line); pointer-events: none; }
.about-card h2, .about-card > p { position: relative; z-index: 1; max-width: 760px; }
.about-card > p { color: var(--ink-soft); font-size: 20px; }
.credential-row { position: relative; z-index: 1; display: flex; gap: 54px; margin-top: 44px; }
.credential-row span { display: grid; }
.credential-row small { color: var(--ink-soft); }
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.faq-question span { font-size: 19px; font-weight: 600; }
.faq-question i { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq-question i::before, .faq-question i::after { content: ""; position: absolute; left: 2px; top: 10px; width: 18px; height: 1px; background: currentColor; transition: transform .2s; }
.faq-question i::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-answer { padding: 0 44px 24px 0; color: var(--ink-soft); }
.contact-section { background: #14352f; color: #f7f2e8; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.contact-grid h2 { max-width: 560px; }
.contact-grid > div > p { color: #c1d0cc; max-width: 560px; }
.office-details { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.office-details p { color: #f7f2e8 !important; }
.office-details span { display: block; color: #99b7af; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.lead-form { padding: 42px; background: #1b4840; border: 1px solid rgba(255,255,255,.18); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 0;
  background: #14352f;
  color: #fff;
  outline: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #f2b9ab; }
.field-error, .form-error { display: none; color: #ffd0c5; }
.field.invalid .field-error, .lead-form.invalid .form-error { display: block; }
.field-meta { display: flex; justify-content: space-between; margin-top: 5px; }
.field-meta small:last-child { color: #9fbab4; margin-left: auto; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; color: #d6e2df; font-size: 14px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #fff; }
.form-error { margin: -8px 0 16px; }
.form-note { margin: 14px 0 0; color: #a9c1bb; font-size: 12px; text-align: center; }
.related { padding-block: 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { position: relative; display: grid; min-height: 190px; align-content: end; padding: 28px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .2s, border-color .2s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.related-card small { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }
.related-card strong { margin: 10px 0 2px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.related-card span { color: var(--ink-soft); }
.related-card b { position: absolute; right: 24px; top: 22px; color: var(--accent); font-size: 22px; }
.site-footer { padding-block: 48px 90px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; align-items: start; color: var(--ink-soft); font-size: 14px; }
.footer-grid > div:last-child { text-align: right; }
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .worker-only, .header-actions .button-small { display: none; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 60px; }
  .portrait-wrap { width: min(460px, 92%); justify-self: end; }
  .portrait-frame { height: 520px; }
  .statement-grid, .split, .faq-section, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .quote-block { position: static; }
  .situation-grid { grid-template-columns: 1fr; }
  .about-card { padding: 50px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 150px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 70px; }
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 18px; }
  .hero-grid { padding-block: 46px 0; }
  h1 { font-size: clamp(44px, 12vw, 56px); }
  h2 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 18px; line-height: 1.42; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { min-height: 44px; display: flex; align-items: center; }
  .trust-list { display: grid; gap: 7px; }
  .portrait-wrap { width: calc(100% - 20px); margin-top: 12px; }
  .portrait-frame { height: 430px; }
  .portrait-caption { left: -20px; bottom: 20px; min-width: 205px; }
  .hero-word { display: none; }
  .statement-grid { gap: 16px; padding-block: 28px; }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 38px; }
  .situation-card { grid-template-columns: 40px 1fr; min-height: 0; padding: 28px 22px; }
  .about-card { padding: 34px 24px; }
  .credential-row { flex-direction: column; gap: 22px; }
  .faq-section { gap: 24px; }
  .lead-form { padding: 26px 20px; margin-inline: -4px; }
  .contact-grid { gap: 34px; }
  .related { padding-bottom: 50px; }
  .site-footer { padding-bottom: 40px; }
  .mobile-cta {
    position: fixed;
    z-index: 15;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
