/* Layout: two dark navy bands (hero, footer) frame light working sections in one centred column;
   the logo's six spokes double as the markers for the six services.
   Shared by every page: home (index), careers list, and one page per open role under jobs/. */
:root {
  --band: #0A2533;
  --band-fg: #FFFFFF;
  --band-muted: #B5CFD9;
  --band-accent: #5ED6C8;
  --band-border: #4C6B7A;
  --band-chip: #143F4C;
  --teal: #2ec4b6;
  --bg: #F6F9FA;
  --surface: #FFFFFF;
  --fg: #0A2533;
  --muted: #4F6672;
  --line: #DCE6EA;
  --accent: #0D6F96;
  --accent-hover: #0A5573;
  --on-accent: #FFFFFF;
  --glyph: #C9DEE4;
  --focus: #2ec4b6;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1152px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B171F;
    --surface: #102330;
    --fg: #E6EEF2;
    --muted: #9DB2BF;
    --line: #22394A;
    --accent: #5ED6C8;
    --accent-hover: #8BE3D8;
    --on-accent: #0A2533;
    --glyph: #2A4656;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B171F;
  --surface: #102330;
  --fg: #E6EEF2;
  --muted: #9DB2BF;
  --line: #22394A;
  --accent: #5ED6C8;
  --accent-hover: #8BE3D8;
  --on-accent: #0A2533;
  --glyph: #2A4656;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -60px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--fg);
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

/* Bands */
.band { background: var(--band); color: var(--band-fg); }
.band a { color: var(--band-muted); }
.band a:hover { color: var(--band-fg); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-block: 20px;
}
.brand { display: inline-flex; padding-block: 4px; }
.brand img { display: block; height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: inline-block; padding-block: 12px; font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav ul a[aria-current="page"] { color: var(--band-fg); box-shadow: inset 0 -2px 0 var(--teal); }
.nav-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--band-chip);
  color: var(--band-accent);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { border-color: var(--line); color: var(--fg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.band .btn-primary { background: var(--teal); color: var(--band); }
.band .btn-primary:hover { background: var(--band-accent); color: var(--band); }
.band .btn-ghost { border-color: var(--band-border); color: var(--band-fg); }
.band .btn-ghost:hover { border-color: var(--band-fg); color: var(--band-fg); }
.site-nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px 56px;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 9vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.band .eyebrow { color: var(--band-accent); }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero .lead { max-width: 34em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--band-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-mark { justify-self: end; width: 100%; max-width: 400px; }
.hero-mark svg { display: block; width: 100%; height: auto; }

/* Light sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .eyebrow { color: var(--accent); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font-size: 18px; }

.realities {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px 64px;
  align-items: start;
  padding-block: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.realities h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; }
.realities-list { display: grid; gap: 14px; }
.realities ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.realities li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}
.realities li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.realities p { color: var(--muted); }

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
}
.services li { display: grid; gap: 12px; align-content: start; padding-block: 28px 32px; border-top: 1px solid var(--line); min-width: 0; }
.services h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.services p { color: var(--muted); font-size: 16px; }
.glyph { width: 40px; height: 38px; display: block; }
.glyph rect, .glyph circle { fill: var(--glyph); }
.glyph .on { fill: var(--accent); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  counter-reset: step;
}
.steps li { display: grid; gap: 10px; align-content: start; min-width: 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font: 800 44px/1 var(--display);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.steps h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.steps p { color: var(--muted); font-size: 16px; }

.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.model {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.model h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.model p { color: var(--muted); font-size: 16px; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.contact-intro { display: grid; gap: 14px; min-width: 0; }
.contact-intro p { color: var(--muted); font-size: 18px; }
.contact-intro .contact-careers { font-size: 16px; }
.contact dl { margin: 0; display: grid; gap: 0; min-width: 0; }
.contact-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: 0; padding-top: 0; }
.contact dt { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.copy {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 600 14px/1 var(--body);
  cursor: pointer;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }

/* Inner pages (careers, roles): a shorter navy band with the outline mark, then the page body. */
.page-hero {
  background: url("astermed-outline.svg") no-repeat right -40px center / 440px;
}
.page-hero .wrap {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-block: clamp(28px, 5vw, 64px) clamp(44px, 7vw, 88px);
}
.page-hero h1 { max-width: 16em; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.page-hero .lead { max-width: 38em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--band-muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--band-muted); font-size: 14px; }
.band .crumbs a { color: var(--band-accent); font-weight: 600; text-decoration: none; }
.band .crumbs a:hover { color: var(--band-fg); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.5; }
.band .chips span { border-color: var(--band-border); color: var(--band-muted); }

/* Careers list: one row per open role, each linking to the role's own page. */
.roles-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.roles-head p { color: var(--muted); font-size: 16px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.role-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 40px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .15s ease;
}
.role-link:hover { border-color: var(--accent); color: var(--fg); }
.role-main { display: grid; gap: 12px; min-width: 0; }
.role-link h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.role-summary { max-width: 44em; color: var(--muted); font-size: 16px; }
.role-go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.role-go::after { content: "→"; transition: transform .15s ease; }
.role-link:hover .role-go::after { transform: translateX(3px); }

.careers-extra { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 40px; }
.panel {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.section .panel h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.panel p { color: var(--muted); font-size: 16px; }
.notice {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 20px 24px;
  border-left: 3px solid var(--teal);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}
.notice strong { color: var(--fg); font-weight: 600; }

/* Role page: the description reads down the left; the apply card stays in view on the right. */
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px 64px;
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px);
}
.job-body { display: grid; gap: 36px; max-width: 44em; min-width: 0; }
.job-body section { display: grid; gap: 12px; }
.job-body h2 { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.job-body p, .job-body li { color: var(--muted); }
.job-body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.apply-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
}
.apply-card h2 { font-size: 20px; line-height: 1.3; font-weight: 800; }
.apply-card p { color: var(--muted); font-size: 16px; }
.apply-card .btn { justify-content: center; }
.apply-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 500; overflow-wrap: anywhere; }
.apply-card .notice { padding: 12px 16px; border-radius: 0 10px 10px 0; background: var(--bg); font-size: 14px; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 40px;
}
.site-footer .brand img { height: 38px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.site-footer ul a { display: inline-block; padding-block: 12px; font-size: 15px; text-decoration: none; }
.site-footer small { display: block; width: 100%; padding-top: 20px; border-top: 1px solid var(--band-border); color: var(--band-muted); font-size: 14px; }

section[id], main[id] { scroll-margin-top: 16px; }

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page-hero { background-image: none; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .apply-card { position: static; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { justify-self: start; max-width: 200px; order: -1; }
  .realities, .contact { grid-template-columns: minmax(0, 1fr); }
  .steps, .models, .careers-extra, .role-link { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 40px; }
  .site-nav ul { gap: 0 18px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .copy, .role-link, .role-go::after { transition: none; }
}
