/* PulmoCrit home — a hero of the practice's name beside its three featured centers, practice figures, the centers deck, public-health numbers, the
   screening checker, technology, team, news and articles. Serif headlines, white and tinted bands, one blue accent. */

/* ---------- hero: the practice's name beside its three featured centers ---------- */

/* The copy sits on a white-to-pale-blue gradient on the left, aligned with the page's content edge; the three
   centers' photographs fill the right to the edge of the screen. The photographs share one frame divided by thin
   seams, and the open center takes the larger share. home.js opens each in turn on a slow, breath-like rhythm.
   The outer photographs are pinned to the frame's outer edges, so a moving seam uncovers one picture while it
   covers the next; the middle one stays centred in its own panel. */
.hero-duo {
  --copy: calc(580px - var(--gutter));
  --frame: calc(700px - var(--gutter));
  --breath: cubic-bezier(0.45, 0, 0.25, 1);
  --open: 1.9;                       /* the open center's share of the frame ... */
  --rest: 2;                         /* ... against 1 for each of the others (their number) */
  --foot: clamp(44px, 10vh, 100px);  /* the line the copy and the centers' words end on */
  position: relative;
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--copy)) minmax(0, var(--frame)) minmax(var(--gutter), 1fr);
  min-height: clamp(600px, calc(100svh - var(--header-h)), 900px);
  background:
    /* the logo's purple (owner, 2026-11-24: "a bit more purple gradient to match the logo"): violet rising from the lower
       left, a soft lavender at the top, over white to pale lavender; a trace of the old blue keeps it cool */
    radial-gradient(85% 75% at 0% 100%, rgba(112, 87, 165, 0.24), rgba(112, 87, 165, 0) 70%),
    radial-gradient(70% 60% at 85% 0%, rgba(149, 128, 200, 0.16), rgba(149, 128, 200, 0) 70%),
    radial-gradient(60% 50% at 40% 110%, rgba(43, 97, 209, 0.07), rgba(43, 97, 209, 0) 70%),
    linear-gradient(172deg, #ffffff 0%, #f8f6fc 28%, #ede8f7 66%, #ded6ef 100%);
  color: var(--ink);
}
.hero-copy {
  grid-column: 2;
  align-self: end;
  padding-block: clamp(48px, 8vh, 96px) var(--foot);
  padding-right: clamp(28px, 4vw, 64px);
}

/* The practice's name is the headline: the serif of every heading on the site, large, on two lines. A short blue
   rule, then the slogan in the same serif at a reading size; the word for the open center is underlined. */
.hero-duo h1 { margin: 0; color: var(--ink); font-size: inherit; font-weight: 400; }
.hero-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.032em;
}
.hero-name > span { display: block; }
.hero-name::after { content: ""; display: block; width: 56px; height: 2px; margin-block: clamp(22px, 3.4vh, 34px) clamp(16px, 2.4vh, 22px); background: var(--blue); }
.hero-slogan {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.05vw, 2.05rem);
  line-height: 1.24;
  letter-spacing: -0.012em;
  max-width: 24ch;
  text-wrap: balance;
}
.hero-word {
  background: linear-gradient(var(--blue), var(--blue)) 0 96% / 0% 2px no-repeat;
  transition: background-size 900ms var(--breath);
}
.hero-duo[data-open="lung"] .hero-word[data-door="lung"],
.hero-duo[data-open="sleep"] .hero-word[data-door="sleep"],
.hero-duo[data-open="health"] .hero-word[data-door="health"] { background-size: 100% 2px; }
.hero-duo.is-still .hero-word { background-size: 0% 2px; }

.hero-tagline { margin-top: clamp(10px, 1.6vh, 16px); font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.8vh, 36px); }
.hero-fine { margin-top: 14px; font-size: 0.98rem; color: var(--ink-2); }
.hero-fine a { color: var(--ink); font-weight: 600; }
.hero-duo .hero-fine { max-width: 46ch; }
.on-dark .btn-line { color: #fff; }

/* the frame: the centers side by side, divided by seams of the light ground */
.hero-doors {
  grid-column: 3 / -1;
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  container-type: inline-size;
}
.door { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow 1600ms var(--breath); }
.door.is-open { flex-grow: var(--open); }
.door a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; background: #0c1428; }
/* each photograph is as wide as an open center; the outer two are pinned to the frame's edges */
.door img {
  position: absolute;
  top: 0;
  width: calc(100cqw * var(--open) / (var(--open) + var(--rest)) + 2px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  filter: brightness(0.92) contrast(1.05);
}
.door:first-child img { left: 0; }
.door:last-child img { right: 0; }
.door:not(:first-child):not(:last-child) img { left: 50%; transform: translateX(-50%); }
/* navy from the foot for the words; the closed centers sit a little dimmer */
.door a::before,
.door a::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.door a::before { background: linear-gradient(0deg, rgba(10, 18, 40, 0.92) 0%, rgba(10, 18, 40, 0.74) 22%, rgba(10, 18, 40, 0.24) 48%, rgba(10, 18, 40, 0.06) 72%, rgba(10, 18, 40, 0.1) 100%); }
.door a::after { background: rgba(10, 18, 40, 0.4); transition: opacity 1600ms var(--breath); }
.door.is-open a::after { opacity: 0; }

/* A closed center shows only its name, sitting on the foot line. As it opens, the descriptor and summary unfold
   beneath the name (lifting it) and fade in; they fade out first when it closes. The name keeps the closed
   center's measure so it never re-wraps while the seams move; the descriptor and summary use the open measure. */
.door-text {
  --pad: clamp(18px, 2vw, 32px);
  --wide: calc(100cqw * var(--open) / (var(--open) + var(--rest)) - 2 * var(--pad));
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: var(--foot);
  width: calc(100cqw / (var(--open) + var(--rest)) - 2 * var(--pad));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 1600ms var(--breath);
}
.door.is-open .door-text { grid-template-rows: auto 1fr; }
.door-name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.4rem, 1.75vw, 1.8rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.door-more {
  display: grid;
  width: var(--wide);
  max-width: 38ch;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms ease;
}
.door.is-open .door-more { opacity: 1; transition: opacity 700ms ease 900ms; }
.door-kind { padding-top: 8px; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; line-height: 1.35; color: var(--signal-hi); }
.door-line { padding-top: 10px; font-size: 0.98rem; line-height: 1.45; color: var(--ink-inv-2); }
/* the way in: a round arrow in the top corner of each center */
.door-arrow {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(10, 18, 40, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: background-color 220ms ease, color 220ms ease, transform 240ms var(--ease-out);
}
@media (hover: hover) {
  .door a:hover .door-arrow { background: #fff; color: var(--navy); transform: translateX(3px); }
  .door a:hover .door-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
}
.door a:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 4px; }

/* still (reduced motion): the centers share the frame equally and show everything */
.hero-duo.is-still .door { flex-grow: 1; transition: none; }
.hero-duo.is-still .door a::after { opacity: 0; }
.hero-duo.is-still .door-text { width: calc(100cqw / (var(--rest) + 1) - 2 * var(--pad)); grid-template-rows: auto 1fr; }
.hero-duo.is-still .door-more { width: auto; opacity: 1; transition: none; }

/* tablets and phones: the copy first, then the frame across the full width */
@media (max-width: 1000px) {
  .hero-duo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { grid-column: 1; width: 100%; max-width: 760px; padding: clamp(36px, 7vw, 64px) max(var(--gutter), env(safe-area-inset-left)) clamp(32px, 6vw, 52px); }
  .hero-name { font-size: clamp(3.2rem, 9vw, 5rem); }
  .hero-doors { grid-column: 1; height: clamp(360px, 60vw, 520px); }
  .door-text { bottom: 26px; }
}
/* phones: the centers are stacked and the seams move up and down */
@media (max-width: 600px) {
  .hero-doors { flex-direction: column; height: clamp(500px, 150vw, 620px); container-type: size; }
  .door img { width: 100%; height: calc(100cqh * var(--open) / (var(--open) + var(--rest)) + 2px); object-position: var(--pos-sm, var(--pos, 50% 50%)); }
  .door:first-child img { top: 0; left: 0; }
  .door:last-child img { top: auto; bottom: 0; right: auto; left: 0; }
  .door:not(:first-child):not(:last-child) img { top: 50%; left: 0; transform: translateY(-50%); }
  .door-text { --pad: 20px; width: calc(100% - 2 * var(--pad) - 56px); bottom: 18px; }
  .door-name { font-size: 1.45rem; }
  .door-more { width: auto; }
  .door-kind { padding-top: 4px; }
  .door-line { padding-top: 6px; font-size: 0.94rem; }
  .door-arrow { top: auto; bottom: 18px; right: 18px; width: 40px; height: 40px; padding: 10px; }
  .hero-duo.is-still .door-text { width: calc(100% - 2 * var(--pad) - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .door, .door a::after, .door-more, .door-text, .hero-word { transition: none !important; }
}

/* ---------- announcement: the Santa Clarita office, straight under the hero (owner, 2026-11-19) ---------- */

.announce {
  position: relative;
  overflow: hidden;
  background: radial-gradient(70% 120% at 88% 0%, rgba(43, 97, 209, 0.34), transparent 62%), var(--navy);
  padding-block: clamp(48px, 6vw, 84px);
}
.announce-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.announce-kicker { font-family: var(--font-mono); font-size: 0.82rem; color: var(--signal); margin-bottom: 14px; }
.announce h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch;
  text-wrap: balance;
}
.announce-lede { margin-top: 16px; font-size: clamp(1rem, 1.15vw, 1.1rem); color: var(--ink-inv-2); max-width: 44ch; }
.announce-address {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-inv);
  font-style: normal;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.3;
  color: #fff;
}
.announce-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.announce-figure { margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.announce-map { display: block; width: 100%; height: auto; overflow: visible; }
.am-roads path { fill: none; stroke: rgba(205, 220, 255, 0.24); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.am-shield rect { fill: var(--navy); stroke: rgba(205, 220, 255, 0.34); stroke-width: 1; }
.am-shield text { font-family: var(--font-mono); font-size: 9.5px; fill: rgba(205, 220, 255, 0.78); text-anchor: middle; }
.am-office circle { fill: rgba(255, 255, 255, 0.85); }
.am-office text { font-family: var(--font-display); font-size: 14px; fill: var(--ink-inv-2); }
.am-office text, .am-new text { paint-order: stroke; stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; }
.am-new circle { fill: var(--signal); }
.am-new .am-ring {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: am-pulse 3s var(--ease-out) infinite;
}
.am-new text { font-family: var(--font-serif); font-size: 19px; fill: #fff; }
.am-new .am-when { font-family: var(--font-mono); font-size: 12px; fill: var(--signal); }
.announce-credit { margin-top: 6px; font-size: 0.7rem; color: rgba(217, 209, 242, 0.5); text-align: right; }
@keyframes am-pulse { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .am-new .am-ring { animation: none; opacity: 0.5; } }
@media (max-width: 900px) {
  .announce-inner { grid-template-columns: minmax(0, 1fr); }
  .announce-figure { justify-self: start; max-width: 460px; }
  .announce-credit { text-align: left; }
}

.office-list .office-soon em { margin-left: 10px; font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; color: var(--signal); white-space: nowrap; }

/* ---------- inside our five centers: a deck of screens, advanced by scrolling ---------- */

/* the one dark section on the page. While pinned (home.js adds .is-pinned when the stage fits the viewport),
   the section is a scroll track: the stage sticks under the header and each stretch of scrolling brings the next
   center's screen to the front of the deck. */
.inside {
  position: relative;
  background: linear-gradient(180deg, #15223f 0%, #0e1730 100%);
  color: var(--ink-inv);
  --focus: #fff;
}
.inside-stage { padding-block: clamp(80px, 10vw, 140px); }
.inside.is-pinned { height: calc(100svh - var(--header-compact) + var(--deck-run, 260vh)); }
.inside.is-pinned .inside-stage {
  position: sticky;
  top: var(--header-now);
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--header-compact));
  padding-block: clamp(24px, 4vh, 56px);
}
.inside-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.inside-head { display: grid; gap: 18px; align-content: start; }
.inside-head::before { content: ""; width: 40px; height: 2px; background: var(--signal); }
.inside h2 { color: #fff; }
.inside .lede { color: var(--ink-inv-2); }

/* the five centers; the scroll's progress runs down their left edge */
.deck-tabs { position: relative; display: grid; margin-top: 14px; padding-left: 20px; }
.deck-tabs::before,
.deck-tabs::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(255, 255, 255, 0.16); }
.deck-tabs::after { left: -0.5px; width: 2px; background: var(--signal); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.deck-tabs [role="tab"] {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(217, 209, 242, 0.62);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease;
}
.deck-tabs .glyph { width: 7px; height: 7px; background: color-mix(in srgb, var(--tint) 45%, white); opacity: 0.45; transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.deck-tabs [aria-selected="true"] { color: #fff; }
.deck-tabs [aria-selected="true"] .glyph { opacity: 1; transform: scale(1.4); }
@media (hover: hover) { .deck-tabs [role="tab"]:hover { color: #fff; } }

/* the deck: every screen sits in one grid cell (the cell is as tall as the tallest screen);
   data-d is a screen's distance from the front: the next ones wait behind, slightly smaller, and lift forward */
.deck-col { display: grid; gap: 6px; min-width: 0; }
.deck { display: grid; padding-bottom: 46px; }
.deck > .screen {
  grid-area: 1 / 1;
  transform-origin: 50% 100%;
  transition: transform 700ms var(--ease-out), opacity 500ms ease;
}
.screen[data-d="0"] { z-index: 5; }
.screen[data-d="1"] { z-index: 4; transform: translateY(22px) scale(0.955); opacity: 0.62; }
.screen[data-d="2"] { z-index: 3; transform: translateY(42px) scale(0.91); opacity: 0.3; }
.screen[data-d="3"],
.screen[data-d="4"] { z-index: 2; transform: translateY(56px) scale(0.87); opacity: 0; }
.screen[data-d^="-"] { z-index: 6; transform: translateY(-40px) scale(1.02); opacity: 0; }
.deck > .screen:not([data-d="0"]) { pointer-events: none; }
/* only the front screen shows its content; the ones behind are blank edges */
.deck > .screen > * { transition: opacity 300ms ease; }
.deck > .screen:not([data-d="0"]) > * { opacity: 0; }

.screen {
  display: grid;
  gap: 14px;
  padding: 22px 24px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1c2b4f 0%, #15223f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 70px -42px rgba(0, 0, 0, 0.75);
}
.screen-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.screen-title { font-size: 1.1rem; font-weight: 600; color: #fff; letter-spacing: 0; }
.screen-kind { font-family: var(--font-mono); font-size: 0.82rem; color: var(--signal); }
.screen .viz { height: clamp(170px, min(22vw, 30vh), 290px); width: 100%; }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.readouts > div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.readouts dt { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.1; color: #fff; letter-spacing: -0.01em; }
.readouts dd { margin-top: 4px; min-height: 3.6em; font-size: 0.86rem; line-height: 1.35; color: var(--ink-inv-2); }
.screen-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding-block: 8px; font-family: var(--font-display); font-weight: 600; color: #fff; text-decoration: none; }
.screen-link .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .screen-link:hover .icon { transform: translateX(4px); } }
.monitor-note { font-size: 0.8rem; color: rgba(217, 209, 242, 0.6); }

.bedside { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.vitals { display: grid; gap: 8px; align-content: space-between; }
.vitals li { display: grid; justify-items: end; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
.vitals span { font-family: var(--font-mono); font-size: 0.75rem; }
.vitals b { font-family: var(--font-mono); font-weight: 600; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.vitals .c-ecg { color: #9fdcbd; }
.vitals .c-pleth { color: #a7cdf0; }
.vitals .c-resp { color: var(--signal); }

@media (max-width: 1000px) {
  .inside-grid { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .inside-head { gap: 12px; }
  .deck-tabs { display: flex; gap: 22px; margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .deck-tabs::before { display: none; }
  .deck-tabs::after { display: none; }
  .deck-tabs [role="tab"] { flex: none; min-height: 44px; font-size: 0.92rem; box-shadow: inset 0 -2px 0 transparent; }
  .deck-tabs [aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--signal); }
}
@media (max-width: 560px) {
  .inside .lede { display: none; }
  .screen { padding: 18px 16px 14px; gap: 10px; }
  .readouts { grid-template-columns: 1fr; gap: 6px; }
  .readouts > div { display: grid; grid-template-columns: 7.6rem 1fr; align-items: baseline; gap: 10px; padding-top: 6px; }
  .readouts dd { margin: 0; min-height: 0; }
  .vitals b { font-size: 1.4rem; }
}

/* ---------- the numbers behind the disease ---------- */

.matters { background: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.facts li { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.fact-num { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--blue); font-variant-numeric: lining-nums tabular-nums; }
.fact-text { font-size: 1.08rem; color: var(--ink-2); }
.fact-text strong { color: var(--ink); }
.fact-src { font-family: var(--font-mono); font-size: 0.8rem; color: var(--violet); }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- screening checker ---------- */

.screening { background: var(--paper); }
.screening-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.screening .section-head { margin: 0; }
.fine-print { font-size: 0.92rem; color: var(--ink-2); max-width: 56ch; }
.checker { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field[hidden], .field-row[hidden] { display: none; }
.field > span, .field legend { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--navy); padding: 0; margin-bottom: 6px; }
.field input[type="number"] {
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font: 600 1.1rem var(--font-body);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.field input[type="number"]::placeholder { color: #6b7290; font-weight: 400; }
.field input[type="number"]:focus { outline: 2px solid var(--violet); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.seg input:checked + span { background: var(--navy); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.checker .btn { justify-self: start; }
.result { padding: 16px 18px; border-radius: 8px; background: var(--paper); color: var(--navy); display: grid; gap: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.result[hidden] { display: none; }
.result-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.result[data-kind="yes"] { background: #eef6f1; box-shadow: inset 0 0 0 1px rgba(47, 158, 106, 0.45); }
.result[data-kind="no"] { box-shadow: inset 0 0 0 1px rgba(112, 87, 165, 0.45); }
.result[data-kind="error"] { background: #fbf1ec; box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.45); }
.result p:not(.result-title) { color: var(--ink-2); }
.result .link-arrow { color: var(--navy); }
@media (max-width: 900px) { .screening-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } .seg { grid-template-columns: 1fr; } }

/* ---------- technology ---------- */

.tech { background: var(--white); }
.photo-band { margin: 0 0 clamp(40px, 5vw, 72px); }
.photo-band img { width: 100%; height: clamp(260px, 31vw, 480px); object-fit: cover; object-position: 50% 40%; }   /* shorter (owner, 2026-11-20) */
.tech-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.tech-list li { padding-block: 26px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.tech-list h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); }
.tech-list p { color: var(--ink-2); max-width: 48ch; }
.tech .link-arrow { color: var(--violet); }

@media (max-width: 900px) { .tech-list { grid-template-columns: 1fr; } }

/* ---------- conditions ---------- */

.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  margin-bottom: 20px;
}
.condition-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 160ms ease, padding 200ms var(--ease-out);
}
.condition-grid a::after {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--violet);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14M13 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14M13 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity 160ms ease;
}
@media (hover: hover) {
  .condition-grid a:hover { color: var(--violet); padding-left: 6px; }
  .condition-grid a:hover::after { opacity: 1; }
}

/* ---------- getting started ---------- */

.start { background: var(--white); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.start .section-head { position: sticky; top: calc(var(--header-now) + 40px); margin: 0; }
.start-cta { margin-top: 10px; }
.start-steps { display: grid; gap: 8px; }
.start-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: lining-nums;
}
.start-steps p { margin-top: 8px; color: var(--ink-2); }

@media (max-width: 900px) {
  .start-grid { grid-template-columns: 1fr; }
  .start .section-head { position: static; }
}

/* ---------- physicians ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(16px, 2.4vw, 32px);
  margin-bottom: 24px;
}
.doc-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius-sm);
  background: var(--portrait-bg);
  margin-bottom: 18px;
}
.doc-grid h3 { font-size: 1.12rem; }
.doc-role { margin-top: 4px; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--violet); }
.doc-grid p:not(.doc-role) { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.doc-lang { font-weight: 600; color: var(--ink) !important; }

@media (max-width: 1000px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .doc-grid { grid-template-columns: 1fr; } .doc-grid img { aspect-ratio: 1; } }

/* ---------- testimonials ---------- */

.voices { background: var(--white); }
.voices h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-bottom: 24px; }
.voice-grid li { display: grid; align-content: start; gap: 16px; }
.stars { display: flex; gap: 2px; color: var(--navy); }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.voice-grid li { padding-top: 22px; border-top: 1px solid var(--line); }
.voice-grid blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.voice-who { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 900px) { .voice-grid { grid-template-columns: 1fr; } }

/* ---------- offices and hospitals ---------- */

.places { background: var(--navy); }
.places h2 { max-width: 22ch; }
.places-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.places-h { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); margin-bottom: 8px; }
.office-list li,
.hospital-list li { display: grid; gap: 2px; padding-block: 18px; border-bottom: 1px solid var(--line-inv); }
.office-list strong,
.hospital-list strong { font-family: var(--font-display); font-weight: 600; color: #fff; }
.office-list span,
.hospital-list span { color: var(--ink-inv-2); }
.office-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding-block: 8px;
  color: #fff;
  font-weight: 600;
}
@media (max-width: 900px) { .places-grid { grid-template-columns: 1fr; } }

/* ---------- close ---------- */

.close { padding-block: clamp(80px, 10vw, 140px); background: var(--paper); }
.close-inner { display: grid; justify-items: start; }
.close .lede { margin-top: 18px; max-width: 52ch; }
@media (max-width: 800px) {
  .close-inner { grid-template-columns: 1fr; }
}


/* technology: each capability led by its number */
.tech-list li { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 20px; align-items: start; }
.tech-list li > div { display: grid; gap: 8px; }
.tech-list .tech-num { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 2.8vw, 2.5rem); line-height: 1; color: var(--blue); letter-spacing: -0.02em; padding-top: 0; font-variant-numeric: lining-nums; }
.tech-src { margin-top: 14px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
@media (max-width: 520px) { .tech-list li { grid-template-columns: 1fr; } .photo-band img { object-position: 72% 50%; } }
.facts .link-arrow { display: inline; padding-block: 8px; line-height: 1.5; }
.facts .link-arrow .icon { vertical-align: -0.25em; margin-left: 4px; }



/* team: photo placeholder (initials) until a headshot is supplied */
/* the six physicians in two rows of three (owner, 2026-11-20), kept compact ("the pictures are too big") and balanced
   ("not centered"): three columns of up to 300px spread across the full content width, square portraits; the nurse
   practitioners sit on the same columns */
.doc-grid { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: space-between; }
.doc-grid img { aspect-ratio: 1; object-position: 50% 6%; }
@media (max-width: 560px) {   /* phones: a small square portrait beside the text */
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-grid li { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .doc-grid li > img, .doc-grid li > .doc-ph { grid-row: 1 / span 5; width: 104px; margin: 0; }
  .doc-grid li > :not(img):not(.doc-ph) { grid-column: 2; }
}
@media (max-width: 760px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-grid .doc-ph { aspect-ratio: 4 / 5; margin-bottom: 18px; border-radius: var(--radius-sm); font-size: clamp(2.2rem, 4vw, 3.4rem); }
@media (max-width: 480px) { .doc-grid .doc-ph { aspect-ratio: 1; } }

.np-title { margin: clamp(40px, 5vw, 64px) 0 18px; font-size: 1.15rem; }
.np-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: space-between; gap: 24px clamp(20px, 3vw, 40px); margin-bottom: 28px; }
.np-grid li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.np-grid img, .np-grid .doc-ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--portrait-bg); }
.np-grid .doc-ph { font-size: 1.7rem; }
.np-grid h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.np-grid p { margin-top: 4px; color: var(--ink-2); font-size: 1rem; }
.np-grid .doc-role { color: var(--violet); }
@media (max-width: 640px) { .np-grid { grid-template-columns: 1fr; } }

/* each card opens that person's profile (owner, 2026-11-30): the name is the link, stretched over the whole card,
   so the photo and text are clickable too while screen readers hear just the name */
.doc-grid li, .np-grid li { position: relative; }
.doc-link { color: inherit; text-decoration: none; }
.doc-link::after { content: ""; position: absolute; inset: -6px; border-radius: var(--radius-sm); }
.doc-link:focus-visible { outline: none; }
.doc-link:focus-visible::after { outline: 2px solid var(--violet); outline-offset: 2px; }
.doc-grid img, .np-grid img { transition: box-shadow 0.2s ease; }
@media (hover: hover) {
  .doc-grid li:hover .doc-link, .np-grid li:hover .doc-link { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
  .doc-grid li:hover img, .np-grid li:hover img { box-shadow: 0 0 0 3px var(--violet); }
}

/* ---------- news and articles ---------- */

.news { background: var(--paper); }
.news-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.news-top .section-head { margin: 0; }
/* the featured story: a wide card above the news cards */
.news-feature { margin-bottom: clamp(40px, 5vw, 64px); }
.news-feature a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; color: inherit; text-decoration: none; }
.news-feature-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--portrait-bg); }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 700ms var(--ease-out); }
.news-feature-kicker { font-family: var(--font-mono); font-size: 0.82rem; color: var(--blue); margin-bottom: 14px; }
.news-feature h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.news-feature-body > p:not(.news-feature-kicker) { margin-top: 16px; color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.news-feature .link-arrow { margin-top: 22px; }
@media (hover: hover) { .news-feature a:hover .news-feature-media img { transform: scale(1.03); } .news-feature a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } }
@media (max-width: 820px) { .news-feature a { grid-template-columns: minmax(0, 1fr); } }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); }
.news-card a { display: grid; align-content: start; gap: 12px; color: inherit; text-decoration: none; }
.news-media { position: relative; aspect-ratio: 16 / 10; margin-bottom: 8px; border-radius: var(--radius-sm); overflow: hidden; background: var(--portrait-bg); }
.news-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform 600ms var(--ease-out); }
.news-media-type { display: grid; align-content: end; gap: 8px; padding: clamp(18px, 2vw, 26px); background: var(--navy); color: #fff; }
.news-media-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); }
.news-media-address { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.22; letter-spacing: -0.01em; }
.news-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.18; letter-spacing: -0.012em; }
.news-card p { color: var(--ink-2); font-size: 1rem; }
.news-card .news-meta { font-size: 0.88rem; color: var(--blue); font-weight: 600; }
@media (hover: hover) {
  .news-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .news-card a:hover .news-media img { transform: scale(1.03); }
}
.articles { margin-top: clamp(48px, 6vw, 80px); }
.articles-title { font-size: 1rem; margin-bottom: 8px; }
.articles ul { border-top: 1px solid var(--line-strong); }
.articles a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 14px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; text-decoration: none; transition: color 160ms ease; }
.articles a .icon { flex: none; color: var(--violet); transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .articles a:hover { color: var(--violet); } .articles a:hover .icon { transform: translateX(4px); } }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; max-width: 560px; } }
/* ---------- clinical research (home and PC Lung Institute) ---------- */

.research { background: var(--navy); color: var(--ink-inv); }
.research h2 { color: #fff; }
.research-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.research .section-head { margin: 0; }
.research-note { font-size: 0.95rem; color: var(--ink-inv-2); max-width: 52ch; }
.research-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.research-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.research-list li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line-inv); }
.research-list strong { font-family: var(--font-display); font-weight: 600; color: #fff; }
.research-list span { font-size: 0.95rem; line-height: 1.45; color: var(--ink-inv-2); }
@media (max-width: 1000px) { .research-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .research-list { grid-template-columns: 1fr; } }

/* the reviews' links: more reviews here, and the practice's Google reviews (owner, 2026-11-20) */
.voice-links { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.voice-src { font-weight: 400; color: var(--ink-2); }

/* ---------- conditions: the four PC Lung Institute is known for (owner, 2026-11-26), then the rest ---------- */
.conditions { background: var(--white); }
.cond-feature { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 4vw, 52px); }
.cond-feature li { display: grid; }
.cond-feature a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 200ms ease;
}
.cond-feature h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.45rem, 1.9vw, 1.7rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--navy); }
.cond-feature .cond-flag { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--violet); }
.cond-feature p:not(.cond-flag) { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.cond-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--violet); }
.cond-more .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) {
  .cond-feature a:hover { background: var(--paper-2); }
  .cond-feature a:hover .cond-more .icon { transform: translateX(3px); }
}
.cond-also { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 1100px) { .cond-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cond-feature { grid-template-columns: 1fr; } .cond-feature a { padding: 22px 20px 18px; } }
