/* Beyond the Bedside — site styles. The flight (scrub-engine.js) injects its own
   layered CSS; everything here is unlayered, so it wins where the two meet. */

:root {
  --navy: #1B3A5C;
  --navy-deep: #122A44;
  --navy-ink: #16293D;
  --teal: #2B6A6E;
  --teal-soft: #4F8A8B;
  --sage: #8FAE9A;
  --gold: #C9A45C;
  --gold-ink: #7E5E22;
  --peach: #F2C894;
  --mist: #EEF3F1;
  --mist-2: #E1EAE7;
  --white: #FFFFFF;
  --ink: #1A2B3C;
  --ink-soft: #465A6B;
  --line: rgba(27, 58, 92, .14);
  --line-strong: rgba(27, 58, 92, .28);

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 68ch;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* engine theme */
  --sw-bg: #EEF3F1;
  --sw-ink: #16293D;
  --sw-ink-soft: #465A6B;
  --sw-accent: #C9A45C;
  --sw-font-display: var(--display);
  --sw-font-body: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 10px;
  background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------------ topbar */
.sw-topbar { padding: 14px var(--gutter) !important; transition: background .4s, box-shadow .4s; }
.sw-topbar::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(238, 243, 241, .92), rgba(238, 243, 241, 0));
  transition: opacity .4s;
}
.past-flight .sw-topbar { background: #EEF3F1; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(18, 42, 68, .35); }
.past-flight .sw-topbar::before { opacity: 0; }
.sw-brand { gap: 12px !important; }
.sw-brand__mark {
  width: 44px !important; height: 44px !important; border-radius: 0 !important; box-shadow: none !important;
  background: url("../assets/img/mark.webp") center / contain no-repeat !important;
}
.sw-brand__name { font-family: var(--display) !important; font-weight: 400 !important; font-size: 1.3rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.sw-brand__name .the { font-size: .72em; letter-spacing: .1em; }
.bar-r { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.bar-links { display: flex; gap: clamp(10px, 1.6vw, 26px); list-style: none; margin: 0; padding: 0; }
.bar-links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 2px; border-bottom: 1.5px solid transparent; transition: border-color .25s; }
.bar-links a:hover { border-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .3s var(--ease-out), background .25s, box-shadow .3s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px -10px rgba(18, 42, 68, .55); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-ink); box-shadow: 0 8px 22px -12px rgba(126, 94, 34, .8); }
.btn-gold:hover { background: #D6B36D; color: var(--navy-ink); transform: translateY(-1px); }
.btn-line { background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-line:hover { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.sw-topcta { display: none !important; }

/* ------------------------------------------------------------------ flight copy */
.sw-copy__num, .sw-copy__eyebrow { display: none !important; }
.sw-copy { width: min(44vw, 540px) !important; }
.sw-copy__title { font-weight: 400 !important; font-size: clamp(2.1rem, 4vw, 3.6rem) !important; line-height: 1.08 !important; letter-spacing: 0 !important; color: var(--navy) !important; }
.sw-copy[data-hero] .sw-copy__title { font-size: clamp(2.6rem, 5.4vw, 4.8rem) !important; }
.sw-copy__body { margin-top: 22px !important; font-size: clamp(1.125rem, 1.3vw, 1.25rem) !important; color: var(--ink) !important; max-width: 42ch !important; }
.sw-copy__tags li { font-weight: 600 !important; color: var(--navy) !important; background: rgba(255, 255, 255, .78) !important; border: 1px solid rgba(201, 164, 92, .55) !important; font-size: .9rem !important; }
.sw-copy__cta { gap: 12px !important; }
.sw-btn { font-size: 1rem !important; min-height: 50px; display: inline-flex; align-items: center; padding: 0 24px !important; }
.sw-btn--primary { background: var(--navy) !important; color: var(--white) !important; }
.sw-btn--ghost { background: rgba(255, 255, 255, .72); color: var(--navy) !important; border-color: var(--line-strong) !important; }
.sw-copylayer::before { background: linear-gradient(90deg, rgba(238, 243, 241, .96) 0%, rgba(238, 243, 241, .84) 36%, rgba(238, 243, 241, .38) 66%, transparent 100%) !important; }
.script-tag { display: block; font-family: var(--script); font-size: clamp(1.9rem, 2.6vw, 2.5rem); color: var(--gold-ink); line-height: 1; margin-bottom: 10px; }
.sw-route__label { font-size: .85rem !important; color: var(--navy) !important; }
.sw-hint { color: var(--navy) !important; font-weight: 600; }
.past-flight .sw-route, .past-flight .sw-hint, .past-flight .sw-copylayer { opacity: 0 !important; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.sw-route, .sw-copylayer { transition: opacity .3s; }

/* ------------------------------------------------------------------ content shell */
.content { position: relative; z-index: 70; background: var(--mist); }
.content::before {
  /* the painting dissolves into paper where the flight ends */
  content: ""; position: absolute; left: 0; right: 0; top: -22vh; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(238, 243, 241, 0), var(--mist));
}
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding-block: clamp(80px, 11vw, 150px); }
.h-sec { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.1; }
.lede { font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.6; color: var(--ink); max-width: 56ch; }

/* welcome */
.welcome { padding-top: clamp(64px, 9vw, 120px); }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.welcome .statement { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.22; color: var(--navy); }
.welcome .statement em { font-style: normal; color: var(--teal); }
.welcome-side p + p { margin-top: 1.1em; }
.welcome-side { color: var(--ink-soft); }
.values { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); }
.values li { font-family: var(--display); font-size: 1.28rem; color: var(--navy); display: flex; align-items: center; gap: 26px; }
.values li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* about */
.about { background: var(--navy); color: #E6EEF2; position: relative; overflow: hidden; }
.about::after {
  content: ""; position: absolute; right: -10vw; top: -8vw; width: 46vw; aspect-ratio: 1; pointer-events: none;
  background: url("../assets/img/mark.webp") center / contain no-repeat; opacity: .06; filter: grayscale(1) brightness(3);
}
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.portrait::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(201, 164, 92, .55); border-radius: 4px; pointer-events: none;
}
.about .script-tag { color: var(--gold); }
.about h2 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.08; }
.about h2 .maiden { display: block; font-size: .55em; color: #B9CAD4; margin-top: .3em; letter-spacing: .02em; }
.about .role { margin-top: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .88rem; color: var(--gold); }
.about p.body { margin-top: 26px; color: #DCE6EB; max-width: 58ch; }
.about p.body + p.body { margin-top: 1em; }
.about .pull { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(201, 164, 92, .4); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.35; color: var(--white); max-width: 34ch; }
.about .acts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* services */
.services-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.services-head p { color: var(--ink-soft); }
.gnav { position: sticky; top: 74px; z-index: 5; margin: 44px 0 0; padding: 12px 0; background: linear-gradient(var(--mist) 80%, rgba(238, 243, 241, 0)); }
.gnav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.gnav ul::-webkit-scrollbar { display: none; }
.gnav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; padding: 0 18px; border-radius: 999px; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.02rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.gnav a:hover, .gnav a.on { background: var(--navy); color: var(--white); box-shadow: none; }

.group { margin-top: clamp(64px, 8vw, 110px); scroll-margin-top: 150px; }
.group-banner { position: relative; margin: 0 0 clamp(28px, 4vw, 48px); aspect-ratio: 16 / 5; }
.group-banner img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: url("../assets/img/wash-mask.png") center / 100% 100% no-repeat; mask: url("../assets/img/wash-mask.png") center / 100% 100% no-repeat;
}
.group-banner figcaption { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(16px, 3vw, 40px); max-width: 30ch; padding: 14px 20px 16px; background: rgba(238, 243, 241, .9); border-radius: 3px; }
.group-banner h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.group-intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: 8px; }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 16px clamp(28px, 5vw, 80px); padding: clamp(28px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h4 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.18; color: var(--navy); margin: 0; }
.svc .for { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.svc-body p + p { margin-top: .9em; }
.svc-body .quiet { font-family: var(--display); font-size: 1.28rem; line-height: 1.4; color: var(--teal); }
.svc details { margin-top: 20px; border-radius: 6px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 16px 34px -30px rgba(18, 42, 68, .55); }
.svc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; font-weight: 600; color: var(--navy); }
.svc summary::-webkit-details-marker { display: none; }
.svc summary svg { width: 20px; height: 20px; flex: none; color: var(--gold-ink); transition: transform .35s var(--ease-out); }
.svc details[open] summary svg { transform: rotate(45deg); }
.svc details ul { margin: 0; padding: 4px 20px 22px 20px; list-style: none; columns: 2 16rem; column-gap: 32px; }
.svc details li { break-inside: avoid; position: relative; padding: 6px 0 6px 20px; line-height: 1.45; }
.svc details li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold); }
.svc .close { margin-top: 20px; color: var(--teal); font-weight: 600; }

/* virtual */
.virtual { background: linear-gradient(180deg, var(--mist-2), #D9E6E3); }
.virtual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); }
.virtual .h-sec { max-width: 16ch; }
.virtual .lede { margin-top: 26px; }
.virtual .note { margin-top: 18px; color: var(--ink-soft); max-width: 54ch; }
.virtual h3 { font-size: 1.55rem; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--navy); font-size: 1.05rem; line-height: 1.3; box-shadow: inset 0 0 0 1px var(--line); }
.virtual-block + .virtual-block { margin-top: 44px; }
.virtual .come { margin-top: 44px; padding: 28px 30px; background: var(--navy); color: var(--white); border-radius: 6px; }
.virtual .come p { font-family: var(--display); font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.3; }
.virtual .come p + p { margin-top: 6px; color: var(--gold); }
.virtual .facts { margin-top: 34px; display: grid; gap: 18px; }
.virtual .facts div { padding-left: 18px; border-left: 1px solid var(--gold); }
.virtual .facts strong { display: block; color: var(--navy); }

/* beliefs */
.beliefs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.beliefs ul.welcome-list { list-style: none; margin: 0; padding: 0; }
.welcome-list li { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; color: var(--navy); padding: 16px 0; border-top: 1px solid var(--line); }
.welcome-list li:last-child { border-bottom: 1px solid var(--line); }
.welcome-list .pre { display: block; font-family: var(--body); font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 2px; }
.beliefs .lede { margin-top: 24px; }
.beliefs .role-line { margin-top: 30px; font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.65rem); color: var(--teal); line-height: 1.35; max-width: 32ch; }

/* scope + crisis */
.scope { padding-block: clamp(56px, 7vw, 96px); background: var(--mist-2); border-block: 1px solid var(--line); }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.scope h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.scope p { margin-top: 16px; color: var(--ink-soft); max-width: 62ch; }
.crisis { padding: 28px 30px; border-radius: 6px; background: #F7EFE3; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .6); }
.crisis h3 { font-size: 1.5rem; }
.crisis p { color: var(--ink); margin-top: 12px; }
.crisis .lines { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.crisis .lines a { font-size: 1.05rem; }

/* contact */
.contact { background: var(--navy-deep); color: #DCE6EB; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background: url("../assets/img/0-lake-m.webp") center 70% / cover no-repeat;
  -webkit-mask: linear-gradient(to bottom, #000, transparent 70%); mask: linear-gradient(to bottom, #000, transparent 70%);
}
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { color: var(--white); font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.05; }
.contact .lede { color: #DCE6EB; margin-top: 22px; }
.direct { margin-top: 36px; display: grid; gap: 14px; }
.direct a { display: flex; align-items: center; gap: 16px; color: var(--white); text-decoration: none; padding: 16px 20px; border-radius: 6px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .25s, box-shadow .25s; overflow-wrap: anywhere; }
.direct a:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--gold); color: var(--white); }
.direct svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.direct small { display: block; font-size: .85rem; color: #A9BCC8; letter-spacing: .06em; text-transform: uppercase; }
.direct b { font-size: 1.2rem; font-weight: 600; }
.area { margin-top: 26px; color: #A9BCC8; display: flex; gap: 12px; align-items: center; }
.area svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.form { background: var(--mist); color: var(--ink); border-radius: 8px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 50px 80px -50px rgba(0, 0, 0, .8); }
.form h3 { font-size: 1.7rem; }
.form .hint-top { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }
.fields { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; color: var(--navy); font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 6px; border: 1.5px solid #B7C6CF; background: var(--white);
  font: 400 1.08rem/1.4 var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231B3A5C' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 164, 92, .45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A3402E; }
.field .err { color: #A3402E; font-size: .95rem; min-height: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px #B7C6CF; font-weight: 400; cursor: pointer; }
.radios input { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); margin: 0; }
.radios label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .btn { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.form-foot small { color: var(--ink-soft); font-size: 1.05rem; max-width: 34ch; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.status { margin-top: 18px; padding: 16px 18px; border-radius: 6px; font-weight: 600; }
.status[hidden] { display: none; }
.status.ok { background: #E1EFE8; color: #1F5A45; box-shadow: inset 0 0 0 1px #9CC8B3; }
.status.bad { background: #F8E7E2; color: #7E2E1F; box-shadow: inset 0 0 0 1px #E0B1A5; }
.status.bad a { color: #7E2E1F; }

/* footer */
.foot { background: var(--navy-ink); color: #A9BCC8; padding: clamp(48px, 6vw, 72px) 0 calc(40px + env(safe-area-inset-bottom)); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px 48px; align-items: center; }
.foot .brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; }
.foot .brand img { width: 56px; height: 56px; }
.foot .brand span { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; font-size: 1.15rem; line-height: 1.2; }
.foot .brand small { display: block; font-family: var(--body); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); margin-top: 4px; }
.foot .tag { font-family: var(--script); font-size: 2rem; color: var(--gold); line-height: 1; }
.foot a { color: #DCE6EB; }
.foot .small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 1rem; }

/* reveal: content is visible by default; JS only adds a soft settle */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------------ narrow */
@media (max-width: 1020px) {
  .bar-links { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 1.125rem; }
  .sw-brand__mark { width: 36px !important; height: 36px !important; }
  .sw-brand__name { font-size: 1.02rem !important; }
  .bar-r .call-txt { display: none; }
  .bar-r .btn { min-height: 44px; padding: 0 16px; }
  .sw-copy { width: auto !important; }
  .sw-copy__title { font-size: clamp(1.9rem, 7.6vw, 2.5rem) !important; }
  .sw-copy[data-hero] .sw-copy__title { font-size: clamp(2.3rem, 9.4vw, 3rem) !important; }
  .sw-copy__body { font-size: 1.125rem !important; }
  .sw-copy { padding-right: 44px; }
  .gnav ul { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .sw-copylayer::before { background: linear-gradient(0deg, rgba(238, 243, 241, .97) 10%, rgba(238, 243, 241, .82) 52%, transparent 100%) !important; height: 68% !important; }
  .script-tag { font-size: 1.8rem; }
  .welcome-grid, .about-grid, .services-head, .virtual-grid, .beliefs-grid, .scope-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .svc { grid-template-columns: 1fr; }
  .group-banner { aspect-ratio: 16 / 8; }
  .group-banner figcaption { position: relative; left: auto; bottom: auto; max-width: none; margin: -28px 16px 0; }
  .gnav { top: 64px; }
  .fields { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sw-brand__name { font-size: .9rem !important; letter-spacing: .04em; }
  .sw-brand { gap: 8px !important; }
}
@media (max-width: 860px) {
  .sw-hint { display: none !important; }
  .direct b { font-size: 1.05rem; }
}

/* the bar and progress line ride above the content sheet */
.sw-topbar { z-index: 90 !important; }
.sw-scrollbar { z-index: 95 !important; }
.foot { position: relative; z-index: 70; }
@media (min-width: 861px) {
  /* the engine drifts copy with an inline translate, so anchor it from the bottom instead of centring */
  .sw-copy { top: auto !important; bottom: clamp(64px, 12vh, 130px) !important; }
}

/* ---- review batch 1 ---- */
.sw-hint { display: none !important; }
.btn-ghost-dark { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn-ghost-dark:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--gold); }
.menu-btn { display: none; }
.menu { position: absolute; top: 100%; right: var(--gutter); width: min(320px, calc(100vw - 32px)); background: var(--mist); border-radius: 8px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -24px rgba(18, 42, 68, .55); padding: 8px; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 6px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.menu a:hover { background: var(--white); }
.menu a.help { margin-top: 6px; background: #F7EFE3; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .6); }
@media (max-width: 1020px) { .menu-btn { display: inline-flex; } }
/* the card's gold wave, used as the seam into each deep band */
.seam { height: 56px; margin-bottom: -1px; background-repeat: no-repeat; background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C240 8 480 8 720 30 S1200 58 1440 22 V56 H0 Z' fill='%231B3A5C'/%3E%3Cpath d='M0 34 C240 4 480 4 720 26 S1200 54 1440 18' fill='none' stroke='%23C9A45C' stroke-width='2'/%3E%3C/svg%3E"); }
.seam-deep { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C300 54 620 50 900 28 S1300 6 1440 30 V56 H0 Z' fill='%23122A44'/%3E%3Cpath d='M0 22 C300 50 620 46 900 24 S1300 2 1440 26' fill='none' stroke='%23C9A45C' stroke-width='2'/%3E%3C/svg%3E"); }
.scope + .seam-deep { background-color: var(--mist-2); }

.crisis { scroll-margin-top: 96px; }
.nw { white-space: nowrap; }
.sw-brand__name { white-space: nowrap; }
@media (max-width: 420px) {
  .call-btn > span { display: none; }
  .call-btn { padding: 0 14px !important; }
}

/* credentials row inside the About band */
.about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.creds { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid rgba(201, 164, 92, .4); }
.creds h3 { font-size: 1.35rem; color: var(--white); margin-bottom: 12px; }
.creds p { color: #DCE6EB; margin-bottom: 12px; }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.creds li { position: relative; padding-left: 18px; color: #DCE6EB; line-height: 1.45; }
.creds li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 860px) { .creds { grid-template-columns: 1fr; } }

/* ---- round 2: header subline, hero dot, reviews ---- */
.sw-brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.sw-brand__name .sub { font-family: var(--body); font-size: .56rem; letter-spacing: .24em; color: var(--gold-ink); margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.sw-brand__name .sub::before, .sw-brand__name .sub::after { content: ""; width: 14px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .sw-brand__name .sub { display: none; } }
.sw-copy[data-hero] .sw-copy__title::before {
  content: ""; display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--gold);
  vertical-align: .32em; margin-right: .28em; box-shadow: 0 0 0 .06em rgba(201, 164, 92, .25);
}
.reviews { background: var(--mist); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.g-line { margin-top: 12px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
.g-line .g { width: 22px; height: 22px; }
.reviews-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.sample-note { margin-top: 20px; padding: 12px 16px; border-radius: 6px; background: #F7EFE3; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .6); color: var(--ink); max-width: 70ch; }
.review-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { margin: 0; padding: 26px 26px 24px; background: var(--white); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 36px -30px rgba(18, 42, 68, .6); display: flex; flex-direction: column; gap: 16px; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }
.sample-tag { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .7); }
.review blockquote { margin: 0; font-family: var(--display); font-size: 1.28rem; line-height: 1.45; color: var(--navy); flex: 1; }
.review figcaption { color: var(--ink-soft); font-size: 1rem; }
.review figcaption b { display: block; color: var(--ink); }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }
