/* Self-hosted fonts (Jost, Inter) — SIL Open Font License */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Scope Medical Group — site styles */
:root {
  color-scheme: light only;
  --navy-950: #070f2e;
  --navy-900: #0b1846;
  --navy-800: #112266;
  --brand: #183493;        /* original Scope blue */
  --brand-bright: #3a5bd9;
  --sky: #d3ecfd;          /* original Scope light blue */
  --medic: #19a35b;        /* medic uniform green, used sparingly */
  --ink: #0e1430;
  --ink-soft: #4a5170;
  --line: #e3e7f2;
  --paper: #ffffff;
  --paper-2: #f5f7fc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(11, 24, 70, .25);
  --max: 1200px;
  --head: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1, .h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
.h1 { font-family: var(--head); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--navy-950); color: #e8ecf8; }
.section--dark .lead, .section--dark p { color: #b8c1df; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--sky); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* Bracket motif, taken from the Scope logo */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--brand); pointer-events: none;
}
.brackets::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: -12px; right: -12px; border-left: 0; border-top: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.topbar {
  background: var(--navy-950); color: #b8c1df; font-size: .85rem;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--sky); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,24,70,.5); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: inline-flex; text-decoration: none; color: #223d98; }
.logo svg { height: 54px; width: auto; }
@media (max-width: 600px) { .logo svg { height: 46px; } }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none; font-family: var(--head); font-size: 1rem; font-weight: 500;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); transition: right .25s ease;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 11px 20px; color: #fff; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .topbar .wrap { justify-content: center; gap: 16px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  background: var(--navy-950);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,15,46,.92) 0%, rgba(7,15,46,.7) 45%, rgba(7,15,46,.15) 100%),
    linear-gradient(0deg, rgba(7,15,46,.85) 0%, rgba(7,15,46,0) 50%);
}
.hero .wrap { position: relative; padding: 140px 0 88px; }
.hero h1, .hero .h1 { max-width: 15ch; }
.hero h1 em, .hero .h1 em { font-style: normal; color: var(--sky); }
.hero .lead { color: #c9d2ee; font-size: 1.25rem; max-width: 52ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero--page { min-height: min(68vh, 620px); }
.hero--page h1, .hero--page .h1 { max-width: 18ch; }

.hero__strip {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; color: #c9d2ee;
}
.hero__strip span { display: inline-flex; align-items: center; gap: 10px; }
.hero__strip svg { width: 18px; height: 18px; color: var(--sky); flex: none; }

/* Hero without a photo */
.hero--plain {
  min-height: auto;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(58,91,217,.45), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--brand) 140%);
}
.hero--plain::after {
  content: ""; position: absolute; right: 6%; top: 50%; width: 260px; height: 260px; transform: translateY(-50%);
  background:
    linear-gradient(var(--sky), var(--sky)) top left / 40px 4px no-repeat,
    linear-gradient(var(--sky), var(--sky)) top left / 4px 40px no-repeat,
    linear-gradient(var(--sky), var(--sky)) bottom right / 40px 4px no-repeat,
    linear-gradient(var(--sky), var(--sky)) bottom right / 4px 40px no-repeat;
  opacity: .5;
}
.hero--plain .wrap { padding-top: 120px; padding-bottom: 80px; }
@media (max-width: 1000px) { .hero--plain::after { display: none; } }

/* Nurse / doctor tiers */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: #fff; }
.tier h3 { font-size: 1.6rem; font-weight: 400; }
.tier > p { color: var(--ink-soft); }
.tier--dark { background: var(--navy-950); border-color: var(--navy-950); color: #e8ecf8; }
.tier--dark h3 { color: #fff; }
.tier--dark > p { color: #b8c1df; }
.tier--dark .feature__icon { background: rgba(211,236,253,.12); color: var(--sky); }
.tier--dark .checks li::before { background-color: var(--brand-bright); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.pillars--4 .pillar { min-height: 460px; }
.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.pillars--3 .pillar { min-height: 500px; }
.pillars--3 .pillar__body { padding: 32px; }
.pillars--3 .pillar h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.pillar--plain { background: linear-gradient(160deg, var(--brand) 0%, var(--navy-950) 100%); }
.pillar--plain::before { background: radial-gradient(400px 300px at 80% 10%, rgba(211,236,253,.18), transparent 70%); }
.pillar__mark { position: absolute; top: 32px; right: 32px; width: 64px; height: 64px; color: rgba(211,236,253,.5); }
.pillar {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 540px;
  display: flex; align-items: flex-end; color: #fff; text-decoration: none;
  isolation: isolate;
}
.pillar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7,15,46,.95) 0%, rgba(7,15,46,.55) 50%, rgba(7,15,46,.1) 100%);
}
.pillar:hover img { transform: scale(1.05); }
.pillar__body { padding: 40px; }
.pillar__tag {
  display: inline-block; font-family: var(--head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; margin-bottom: 18px;
}
.pillar h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; }
.pillar p { color: #c9d2ee; max-width: 44ch; }
.pillar__link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 500; margin-top: 8px; }
.pillar__link svg { width: 20px; height: 20px; transition: transform .25s ease; }
.pillar:hover .pillar__link svg { transform: translateX(6px); }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media.brackets { overflow: visible; }
.split__media.brackets img { border-radius: var(--radius); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky); color: var(--brand); margin-bottom: 22px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.section--dark .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .feature:hover { background: rgba(255,255,255,.07); box-shadow: none; border-color: rgba(255,255,255,.2); }
.section--dark .feature__icon { background: rgba(211,236,253,.12); color: var(--sky); }
.section--dark .feature h3 { color: #fff; }
.section--dark .feature p { color: #aab4d6; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--dark .checks li::before { background-color: var(--brand-bright); }

/* Team chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line);
  font-family: var(--head); font-weight: 500; font-size: .95rem; color: var(--navy-800);
}
.section--tint .chip { background: #fff; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--head); font-size: 2.6rem; font-weight: 300; color: var(--brand); display: block; margin-bottom: 12px; line-height: 1;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Event types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.type {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--head); font-weight: 500; font-size: 1.08rem;
}
.type svg { width: 26px; height: 26px; color: var(--brand); flex: none; }

/* Quote */
.quote {
  border-left: 3px solid var(--brand); padding: 6px 0 6px 28px; margin: 32px 0;
  font-family: var(--head); font-size: 1.3rem; line-height: 1.45; color: var(--navy-800);
}
.quote cite { display: block; margin-top: 12px; font-family: var(--body); font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* Highlight panel (health & safety consultants) */
.panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  background: linear-gradient(135deg, var(--sky) 0%, #eef6fe 100%);
  border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 64px);
  position: relative;
}
.panel .eyebrow { color: var(--brand); }
.panel .lead { color: var(--navy-800); }
.panel .checks { margin-top: 0; }
.panel .checks li { color: var(--navy-900); font-weight: 500; }
.panel__badge {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--brand); color: #fff; margin-bottom: 22px;
}
.panel__badge svg { width: 30px; height: 30px; }
@media (max-width: 880px) { .panel { grid-template-columns: 1fr; } }

.types--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .types--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .types--4 { grid-template-columns: 1fr; } }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy-900) 100%);
  color: #fff; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border: 3px solid rgba(211,236,253,.18); border-radius: 50%;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: #d3dcf5; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.cta__phone { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.2rem); text-decoration: none; color: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 80px); }
.contact__details { display: grid; gap: 28px; margin-top: 36px; }
.contact__item { display: flex; gap: 18px; }
.contact__item svg { width: 24px; height: 24px; color: var(--sky); flex: none; margin-top: 4px; }
.contact__item strong { display: block; font-family: var(--head); font-weight: 500; color: #fff; font-size: 1.05rem; }
.contact__item a, .contact__item span { color: #b8c1df; text-decoration: none; }
.contact__item a:hover { color: #fff; }

.form {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form h3 { grid-column: 1 / -1; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2);
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form .btn { grid-column: 1 / -1; justify-content: center; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.form-card .form { background: none; }
.field label b, .field legend b { color: var(--brand); font-weight: 600; }
.field b[data-req] { display: none; }
.form[data-mode="callback"] .field b[data-req="callback"] { display: inline; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: .85rem; font-weight: 600; color: var(--navy-800); padding: 0; margin-bottom: 10px; }
[hidden] { display: none !important; }

/* Segmented switch */
.seg { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--paper-2); border-radius: 14px; border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input, .pills input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 10px;
  font-family: var(--head); font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s, box-shadow .2s; text-align: center;
}
.seg span svg { width: 18px; height: 18px; flex: none; }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 4px 14px -6px rgba(11,24,70,.35); }
.seg input:focus-visible + span, .pills input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 2px; }

/* Pill choices */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper-2); font-size: .95rem; font-weight: 500; color: var(--navy-800);
  transition: background .2s, border-color .2s, color .2s;
}
.pills label:hover span { border-color: var(--brand); }
.pills input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Errors */
.err { color: #c0392b; font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; background: #fff6f5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--block { width: 100%; padding-top: 17px; padding-bottom: 17px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.form__note a { color: var(--brand); font-weight: 600; text-decoration: none; }
.form__status, .section--dark .form__status { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--navy-800); }
.form__status:empty { display: none; }

/* Sent state */
.form-done { padding: clamp(36px, 5vw, 56px); text-align: center; }
.form-done:focus { outline: none; }
.form-done__icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: #e5f6ec; color: var(--medic); }
.form-done__icon svg { width: 36px; height: 36px; stroke-width: 2.5; }
.form-done h3 { font-size: 1.6rem; font-weight: 400; color: var(--ink); }
.form-done p { color: var(--ink-soft) !important; max-width: 40ch; margin: 0 auto 24px; }
.form-done a { color: var(--brand); font-weight: 600; text-decoration: none; }
.form__note, .section--dark .form__note { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* Footer */
.footer { background: var(--navy-950); color: #8e98bd; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0; flex-wrap: wrap; align-items: center; }
.footer a { color: #b8c1df; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.social { display: inline-flex; gap: 14px; align-items: center; }
.social a { display: inline-flex; color: inherit; opacity: .85; }
.social a:hover { opacity: 1; color: var(--sky); }
.social svg { width: 17px; height: 17px; }
.topbar .social { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
@media (max-width: 600px) { .topbar .social { display: none; } }
.footer__social .social svg { width: 20px; height: 20px; }
picture { display: contents; }
.footer .logo { color: #fff; --logo-bg: var(--navy-950); --logo-sub: #b8c1df; }
.footer .logo svg { height: 38px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .features, .types { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pillars--3 { grid-template-columns: 1fr 1fr; }
  .pillars--3 .pillar:last-child { grid-column: 1 / -1; min-height: 380px; }
}
@media (max-width: 880px) {
  .pillars, .pillars--3, .split, .contact, .cta, .tiers { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .pillar { min-height: 440px; }
}
/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 880px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7,15,46,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.1);
    transition: transform .3s ease;
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .btn { justify-content: center; padding: 14px 10px; font-size: .98rem; }
  body { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .features { gap: 12px; margin-top: 36px; }
  .feature {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; padding: 20px;
  }
  .feature__icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .feature__icon svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 1.12rem; margin: 2px 0 6px; }
  .types:not(.types--4) { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .types--4 { gap: 10px; }
  .type { padding: 14px; font-size: .95rem; gap: 10px; align-items: flex-start; }
  .type svg { width: 22px; height: 22px; }
  .tiers { gap: 16px; margin-top: 36px; }
  .steps { margin-top: 36px; row-gap: 28px; }
  .footer .wrap { flex-direction: column; text-align: center; gap: 18px; }
  .footer__links { justify-content: center; gap: 12px 18px; }
  .features, .types, .steps, .form { grid-template-columns: 1fr; }
  .pillar__body { padding: 28px; }
  .hero .wrap { padding: 110px 0 56px; }
  .hero__strip { gap: 10px 20px; }
}

/* Keep focused form fields clear of the sticky header */
.field input, .field textarea, .field select { scroll-margin-top: 140px; }

/* Dark variant of the highlight panel (filming abroad) */
.panel--dark { background: linear-gradient(135deg, var(--navy-900) 0%, var(--brand) 130%); color: #e8ecf8; }
.panel--dark h2 { color: #fff; }
.panel--dark .eyebrow { color: var(--sky); }
.panel--dark .lead { color: #c9d2ee; }
.panel--dark .checks li { color: #e8ecf8; }
.panel--dark .checks li::before { background-color: var(--brand-bright); }
.panel--dark .panel__badge { background: rgba(211,236,253,.14); color: var(--sky); }

/* Single highlight card (e.g. America's Cup) */
.highlight {
  display: flex; gap: 28px; align-items: center; margin-top: 28px;
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 100%); color: #e8ecf8;
}
.highlight__icon {
  flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(211,236,253,.12); color: var(--sky);
}
.highlight__icon svg { width: 36px; height: 36px; }
.highlight .eyebrow { color: var(--sky); margin-bottom: 8px; }
.highlight h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 400; margin-bottom: 8px; }
.highlight p { color: #b8c1df; margin: 0; max-width: 70ch; }
@media (max-width: 600px) {
  .highlight { flex-direction: column; align-items: flex-start; gap: 18px; }
  .highlight__icon { width: 56px; height: 56px; }
}

/* Phones: darker shading behind hero text so it never blends into the photo */
@media (max-width: 880px) {
  .hero__media::after {
    background: linear-gradient(180deg, rgba(7,15,46,.72) 0%, rgba(7,15,46,.82) 45%, rgba(7,15,46,.94) 100%);
  }
  .hero .lead { color: #e6eaf8; }
  .hero h1, .hero .h1, .hero .lead, .hero .eyebrow { text-shadow: 0 1px 12px rgba(7,15,46,.6); }
}

/* Trained commanders (ECU / JESIP) */
.command {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 56px); align-items: start;
  margin-top: 20px; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: #fff;
}
.command__head { display: flex; gap: 18px; align-items: flex-start; }
.command__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--brand); }
.command__icon svg { width: 26px; height: 26px; }
.command .eyebrow { margin-bottom: 8px; }
.command h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 400; margin: 0; }
.command p { color: var(--ink-soft); margin: 0; }
.command .chips { margin-top: 18px; }
@media (max-width: 880px) { .command { grid-template-columns: 1fr; } }

h1.eyebrow { line-height: 1.4; }

/* Links to other services */
.related h2 { margin-bottom: 0; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.related__card {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.related__card > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.related__card strong { font-family: var(--head); font-weight: 500; font-size: 1.12rem; }
.related__card > span:nth-child(2) > span { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.related__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--brand); }
.related__icon svg { width: 24px; height: 24px; }
.related__card > svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
@media (max-width: 1000px) { .related__grid { grid-template-columns: 1fr; } }
.hero h1.eyebrow { max-width: none; }

/* Footer second row */
.footer .wrap { row-gap: 14px; }
.footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.footer__legal > span { margin-left: auto; }
@media (max-width: 600px) { .footer__legal { justify-content: center; } .footer__legal > span { margin-left: 0; flex-basis: 100%; } }

/* About: founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.founder { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: #fff; }
.founder__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--sky); color: var(--brand); margin-bottom: 22px; }
.founder__icon svg { width: 32px; height: 32px; }
.founder__role { display: block; font-family: var(--head); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.founder h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 400; }
.founder p { color: var(--ink-soft); }
.founder--dark { background: var(--navy-950); border-color: var(--navy-950); color: #e8ecf8; }
.founder--dark h3 { color: #fff; }
.founder--dark p { color: #b8c1df; }
.founder--dark .founder__role { color: var(--sky); }
.founder--dark .founder__icon { background: rgba(211,236,253,.12); color: var(--sky); }
.founder--dark .checks li::before { background-color: var(--brand-bright); }
@media (max-width: 880px) { .founders { grid-template-columns: 1fr; } }

/* Policy text */
.hero--compact .wrap { padding-top: 100px; padding-bottom: 64px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--brand); }
.prose__meta { font-size: .9rem; }

/* Recruitment form extras */
.field__label { font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.upload {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  border: 1.5px dashed #c5cde3; border-radius: var(--radius-sm); background: var(--paper-2); color: var(--navy-800);
  transition: border-color .2s, background .2s;
}
.upload:hover, .upload.has-file { border-color: var(--brand); background: #fff; }
.upload svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.upload span { display: grid; gap: 2px; }
.upload strong { font-weight: 600; word-break: break-all; }
.upload small { color: var(--ink-soft); }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__input:focus-visible + .err, .upload:focus-within { outline: 2px solid var(--brand-bright); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400 !important; color: var(--ink-soft) !important; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand); font-weight: 600; }
.field.has-error .pills span, .field.has-error .upload { border-color: #c0392b; }
.section--dark .checks a { font-weight: 600; }
.field { position: relative; }
.field .upload__input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }

/* Stacked 2x2 feature cards inside a split layout */
.features--stack { grid-template-columns: 1fr 1fr; margin-top: 0; }
@media (max-width: 600px) { .features--stack { grid-template-columns: 1fr; } }
.footer__company { flex-basis: 100%; margin: 0; font-size: .8rem; line-height: 1.5; color: #6f7aa3; }
@media (max-width: 600px) { .footer__company { text-align: center; } }
