/* ==========================================================================
   HAYTON PRIMARY CARE
   Palette and typefaces carried over verbatim from the original site.
   Type scale raised to an 18px floor.
   ========================================================================== */

:root {
  /* --- ORIGINAL PALETTE (unchanged) --- */
  --cream: #FAF7F2;
  --warm-white: #FFFDF9;
  --sand: #EDE8DF;
  --terracotta: #A85530;
  --terra-light: #C06A44;
  --terra-text: #984A28;  /* terracotta for SMALL TEXT only. Brand #A85530 measures
                             4.29:1 on --sand, just under AA. Fills/buttons/large
                             headings keep the original --terracotta. */
  --terra-bg: rgba(168, 85, 48, .09);
  --deep: #2C2420;
  --mid: #4E4039;
  --muted: #6A5E56;      /* darkened from #7A6E67 — the original failed AA at small sizes */
  --border: #DDD5CA;
  --green-soft: #6A9278;
  --green-bg: rgba(106, 146, 120, .12);
  --slate: #5C7A9B;
  --slate-bg: rgba(92, 122, 155, .12);

  /* --- ORIGINAL TYPEFACES (unchanged) --- */
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- depth --- */
  --sh-sm: 0 1px 3px rgba(44,36,32,.05), 0 4px 14px rgba(44,36,32,.045);
  --sh-md: 0 2px 6px rgba(44,36,32,.06), 0 12px 32px rgba(44,36,32,.09);
  --sh-lg: 0 12px 48px rgba(44,36,32,.16);

  /* --- layout --- */
  --topbar-h: 2.75rem;
  --nav-h: 4.25rem;
  --dock-h: 4.25rem;
  --wrap: 1120px;
  --pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 9rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--deep);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--terra-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terra-light); }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 3px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--deep);
  margin: 0 0 1.1rem;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); }
h1 em, h2 em { font-style: italic; color: var(--terracotta); }
h3 {
  font-family: var(--body);
  font-size: 1.2rem; font-weight: 500;
  color: var(--deep); margin: 0 0 .5rem; line-height: 1.35;
}
p { margin: 0 0 1.15rem; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.label {
  font-size: .8rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--terra-text);
  display: block; margin: 0 0 1.1rem;
}
.lede { font-size: 1.28rem; line-height: 1.62; color: var(--mid); max-width: 54ch; }

.skip {
  position: absolute; left: -9999px; z-index: 999;
  background: var(--terracotta); color: #fff; padding: .9rem 1.4rem; border-radius: 0 0 .5rem 0;
}
.skip:focus { left: 0; top: 0; color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   FURNITURE 1 — dark topbar. Three icon items, space-between, as on the
   original site. Sizes nudged up from .75rem for legibility.
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 102;
  background: var(--deep);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
}
.topbar-inner {
  min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-block: .3rem;
}
.topbar-item {
  display: flex; align-items: center; gap: .45rem;
  min-height: 44px;
  font-size: .88rem; font-weight: 400;
  color: rgba(255,255,255,.74);
  white-space: nowrap; transition: color .2s;
}
.topbar-item:hover { color: rgba(255,255,255,.95); }
.topbar-item svg {
  width: .85rem; height: .85rem; flex-shrink: 0;
  stroke: rgba(255,255,255,.5); fill: none; stroke-width: 2;
}
.topbar-phone { font-size: .94rem; font-weight: 500; color: rgba(255,255,255,.92); }
.topbar-phone svg { stroke: rgba(255,255,255,.7); }
.topbar-hours { display: none; }
.topbar-addr { display: none; }

/* ==========================================================================
   FURNITURE 2 — sticky nav
   ========================================================================== */
.nav {
  position: sticky; top: var(--topbar-h); z-index: 101;
  background: rgba(250,247,242,.94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 18px rgba(44,36,32,.05);
}
.nav-inner { min-height: var(--nav-h); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; min-height: 44px; }
.brand img { width: 2.15rem; height: 2.15rem; }
.brand-name {
  font-family: var(--display); font-size: 1.08rem; font-weight: 600;
  letter-spacing: -.025em; color: var(--terracotta); line-height: 1.1;
}
.nav-inner .btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .88rem; }

/* Mobile: links become a full-width second row — all four pages one tap away. */
.nav-links {
  display: flex; order: 3; width: 100%;
  justify-content: space-between; gap: .15rem;
  border-top: 1px solid var(--border);
  padding-block: .3rem; margin-bottom: .3rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav-links a {
  display: flex; align-items: center; min-height: 44px;
  padding: .5rem .7rem; border-radius: 2rem; white-space: nowrap;
  font-size: .98rem; font-weight: 500; color: var(--mid);
  transition: background .18s, color .18s;
}
/* --terra-text, not --terracotta: over the --terra-bg tint the brand colour
   measures 4.35:1 at nav-link size, just under AA. --terra-text gives 5.21:1. */
.nav-links a:hover { background: var(--terra-bg); color: var(--terra-text); }
.nav-links a[aria-current="page"] { background: var(--terra-bg); color: var(--terra-text); }

/* Two matching terracotta pills, as on the original site. On mobile the dock
   already carries Book/Call/Directions, so only Pay a Bill shows here. */
.nav-right { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.nav-right .btn { white-space: nowrap; }
.nav-right .nav-book { display: none; }

/* buttons — original pill language */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .9rem 2rem; border-radius: 3rem;
  font-family: var(--body); font-size: 1rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, transform .18s, box-shadow .18s, color .2s, border-color .2s;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 2px 10px rgba(168,85,48,.24); }
.btn-primary:hover { background: var(--terra-light); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(168,85,48,.3); }
.btn-outline { background: transparent; color: var(--terracotta); border-color: var(--border); }
.btn-outline:hover { background: var(--terra-bg); color: var(--terracotta); border-color: var(--terracotta); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--terracotta); }
.btn-white:hover { background: #fff; color: var(--terracotta); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.btn-sm { padding: .6rem 1.35rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.9rem; }
.actions .after { font-size: 1rem; color: var(--muted); }

/* ==========================================================================
   FURNITURE 3 — mobile dock
   ========================================================================== */
.dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 103;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--terracotta);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 20px rgba(44,36,32,.2);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; min-height: var(--dock-h);
  color: #fff; font-size: .85rem; font-weight: 500;
}
.dock a + a { box-shadow: inset 1px 0 0 rgba(255,255,255,.2); }
.dock a:active { background: var(--terra-light); }
.dock svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 32rem; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,10,6,.34) 0%, rgba(20,10,6,.1) 52%, transparent 80%),
    linear-gradient(to top, rgba(20,10,6,.18) 0%, transparent 35%);
}
.hero-card {
  position: relative; z-index: 2;
  background: rgba(250,247,242,.955);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 1.5rem; padding: 2.4rem 1.85rem;
  margin: 2.75rem 0; max-width: 35rem;
  box-shadow: var(--sh-lg);
  border-top: 3px solid var(--terracotta);
}
.hero-card h1 { margin-bottom: .8rem; }
.hero-card .lede { font-size: 1.16rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.35rem; }
.hero-tags span {
  font-size: .88rem; color: var(--mid);
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 2rem; padding: .3rem .9rem;
}

/* interior page header */
.pagehead {
  padding: 3.75rem 0 3rem;
  background: linear-gradient(to bottom, var(--warm-white), var(--cream));
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(3rem, 8vw, 6.5rem) 0; position: relative; }
.section--sand { background: var(--sand); border-block: 1px solid var(--border); }
.section--white { background: var(--warm-white); border-block: 1px solid var(--border); }
.section--terra { background: var(--terracotta); color: #fff; overflow: hidden; }
.section--terra::before {
  content: ''; position: absolute; top: -140px; left: 28%;
  width: 620px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.section--terra > * { position: relative; }
.section--terra h2 { color: #fff; }
.section--terra h2 em { color: rgba(255,255,255,.72); }
.section--terra p { color: rgba(255,255,255,.96); }
.section--terra .label { color: rgba(255,255,255,.94); }

/* hairline divider between two plain cream sections */
.section + .section:not(.section--sand):not(.section--white):not(.section--terra)::after {
  content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ---- split layout: heading column + content column ----
   Text sections previously used only the left half of a 1120px container.
   This gives the width a job. */
.split { display: grid; gap: 2rem; }
.split-head > :last-child { margin-bottom: 0; }
.split-head .lede { font-size: 1.15rem; }
.split-body > :first-child { margin-top: 0; }

/* ---- grouped lists (Services) ---- */
.groups { display: grid; gap: 2.25rem; margin-top: 2.25rem; }
.group h3 {
  font-size: .82rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terra-text);
  padding-bottom: .7rem; margin-bottom: 0;
  border-bottom: 2px solid var(--terra-bg);
}
.list--single { columns: 1; margin-top: 0; }

/* ---- image page header ---- */
.pagehead--img {
  position: relative; overflow: hidden; border-bottom: 0;
  min-height: 17rem; display: flex; align-items: center;
  padding: 3.25rem 0;
}
.pagehead-bg { position: absolute; inset: 0; z-index: 0; }
.pagehead-bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(24,14,9,.82) 0%, rgba(24,14,9,.62) 55%, rgba(24,14,9,.34) 100%);
}
.pagehead--img .wrap { position: relative; z-index: 2; }
.pagehead--img h1 { color: #fff; }
.pagehead--img h1 em { color: #F0C9AE; }
.pagehead--img .label { color: rgba(255,255,255,.72); }
.pagehead--img .lede { color: rgba(255,255,255,.88); }

/* ---- click-to-load map ----
   Keeps Google's JS and cookies off the page until requested. */
.map-embed {
  border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden; background: var(--sand);
  box-shadow: var(--sh-sm); min-height: 22rem; display: flex;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }
.map-load {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .3rem;
  padding: 2rem 1.5rem; text-align: center; cursor: pointer;
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(168,85,48,.045) 14px, rgba(168,85,48,.045) 28px), var(--sand);
  border: 0; font-family: var(--body); color: var(--mid);
  transition: background-color .2s;
}
.map-load:hover { background-color: var(--terra-bg); }
.map-load svg { width: 2rem; height: 2rem; stroke: var(--terracotta); fill: none; stroke-width: 1.5; margin-bottom: .4rem; }
.map-load-title { font-family: var(--display); font-size: 1.4rem; color: var(--terra-text); }
.map-load-sub { font-size: 1rem; color: var(--mid); max-width: 26ch; }
.map-load-note { font-size: .9rem; color: var(--mid); margin-top: .35rem; }

/* card grid */
.cards { display: grid; gap: 1.4rem; margin-top: 2.25rem; }
.card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.9rem;
  box-shadow: var(--sh-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.section--white .card, .section--sand .card { background: var(--cream); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(168,85,48,.3); }
.card .big {
  font-family: var(--display); font-size: 2.6rem; color: var(--terracotta);
  line-height: 1; display: flex; align-items: flex-end; min-height: 2.6rem;
  margin-bottom: .35rem; font-weight: 400;
}
.card .big svg { width: 2.4rem; height: 2.4rem; stroke: var(--terracotta); fill: none; stroke-width: 1.5; display: block; }
.card .rule { width: 2rem; height: 2px; background: rgba(168,85,48,.28); border: 0; margin: 0 0 1.05rem; }
.card p { font-size: 1.05rem; color: var(--mid); }

/* plain lists */
.list { list-style: none; margin: 1.6rem 0 0; padding: 0; columns: 1; column-gap: 3.5rem; }
.list li {
  padding: .75rem 0 .75rem 1.6rem; border-bottom: 1px solid var(--border);
  position: relative; break-inside: avoid; font-size: 1.08rem; color: var(--mid);
  transition: color .18s;
}
.list li::before {
  content: ''; position: absolute; left: 0; top: 1.4rem;
  width: 9px; height: 1px; background: var(--terracotta);
  transition: width .22s;
}
.list li:hover { color: var(--deep); }
.list li:hover::before { width: 15px; }

.checks { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.checks li {
  padding: 1.05rem 0 1.05rem 2.4rem; border-bottom: 1px solid var(--border);
  position: relative; max-width: 62ch; color: var(--mid);
}
.checks li::before {
  content: '→'; position: absolute; left: 0; top: 1.05rem;
  color: var(--terracotta); font-weight: 500;
  transition: transform .22s;
}
.checks li:hover::before { transform: translateX(4px); }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.pills li {
  font-size: 1rem; color: var(--mid);
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 2rem; padding: .42rem 1.15rem;
  transition: border-color .18s, color .18s;
}
.pills li:hover { border-color: var(--terracotta); color: var(--deep); }
.section--white .pills li, .section--sand .pills li { background: var(--cream); }

/* callout */
.note {
  border-left: 3px solid var(--terracotta);
  background: var(--terra-bg);
  border-radius: 0 .75rem .75rem 0;
  padding: 1.3rem 1.55rem; margin-top: 1.85rem;
}
.note strong { color: var(--terra-text); font-weight: 500; }
.note p { font-size: 1.05rem; }

/* bio */
.bio { display: grid; gap: 2.25rem; align-items: start; margin-top: 2.25rem; }
.bio img { border-radius: 1rem; border: 1px solid var(--border); width: 100%; box-shadow: var(--sh-md); }
blockquote {
  margin: 1.9rem 0; padding-left: 1.6rem;
  border-left: 2px solid var(--terracotta);
  font-family: var(--display); font-style: italic;
  font-size: 1.24rem; line-height: 1.6; color: var(--mid);
}
.creds { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.creds li { padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; color: var(--mid); }
.creds li strong { color: var(--deep); font-weight: 500; }

/* file links */
.files { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.files li { border-bottom: 1px solid var(--border); }
.files a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem .25rem; font-weight: 500; color: var(--deep); min-height: 3rem;
  border-radius: .4rem; transition: background .18s, color .18s, padding-left .18s;
}
.files a:hover { color: var(--terracotta); background: var(--terra-bg); padding-left: .75rem; }
.files .meta { font-size: .95rem; color: var(--mid); font-weight: 400; white-space: nowrap; }

/* questions — a definition list, not an accordion. Much of this panel is 65+;
   hiding an answer behind a click costs more than the vertical space saves. */
.faq { margin: 0; }
.faq dt {
  font-family: var(--display); font-size: 1.32rem; font-weight: 400;
  color: var(--deep); line-height: 1.3; padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.faq dt:first-of-type { padding-top: 0; border-top: 0; }
.faq dd {
  margin: .6rem 0 1.6rem; padding: 0; color: var(--mid);
  font-size: 1.05rem; line-height: 1.65; max-width: 60ch;
}
.faq dd:last-of-type { margin-bottom: 0; }
.faq dd a { font-weight: 500; }

/* hours */
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin-top: 1rem; }
.hours th, .hours td { padding: .72rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; text-align: left; font-weight: 400; }
.hours th { color: var(--deep); font-weight: 500; }
.hours td { text-align: right; color: var(--mid); }

.map { width: 100%; height: 380px; border: 1px solid var(--border); border-radius: 1rem; margin-top: 1.6rem; box-shadow: var(--sh-sm); }

.two { display: grid; gap: 2.5rem; margin-top: 2rem; }
.stack { margin-top: 2.25rem; }

/* legal pages */
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-top: 2.75rem; }
.prose ul { margin: 0 0 1.15rem; padding-left: 1.3rem; color: var(--mid); }
.prose li { margin-bottom: .55rem; }
.prose p { color: var(--mid); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--deep); color: rgba(255,255,255,.56); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.75rem; }
.footer-brand { font-family: var(--display); font-size: 1.3rem; color: rgba(255,255,255,.9); margin-bottom: .8rem; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer p { font-size: 1rem; line-height: 1.7; margin-bottom: .65rem; color: rgba(255,255,255,.56); }
.footer h3 {
  font-family: var(--body); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.58); margin-bottom: .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { font-size: 1rem; }
.footer li a { display: flex; align-items: center; min-height: 44px; }
.footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .hours th, .footer .hours td { border-bottom-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: 1rem; }
.footer .hours th { color: rgba(255,255,255,.72); }
.footer-legal {
  margin-top: 2.75rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .9rem; line-height: 1.65;
}
.footer-legal p { color: rgba(255,255,255,.54); font-size: .9rem; max-width: none; }

/* ==========================================================================
   SCROLL REVEAL — restrained, fully off under reduced-motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .list { columns: 2; }
  .list--single { columns: 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-hours { display: flex; }
  .hero-card { padding: 2.9rem 2.6rem; }
}

@media (min-width: 900px) {
  .nav-links {
    order: 0; width: auto; margin-left: auto; margin-bottom: 0;
    border-top: 0; padding-block: 0; gap: .35rem; overflow: visible;
  }
  .nav-links a { font-size: 1rem; padding: .5rem .9rem; }
  .brand-name { font-size: 1.22rem; }
  .nav-inner .btn-sm { padding: .6rem 1.35rem; font-size: .95rem; }
  .nav-links + .nav-right { margin-left: .75rem; }
  .nav-right .nav-book { display: inline-block; }
  .dock { display: none; }
  /* four footer columns once there is room; two below this */
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  body { padding-bottom: 0; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  /* Sticky only when the column fits the viewport. A sticky element taller
     than the screen strands its own bottom off-screen, so measure and opt out
     (see the sticky script) rather than guess from the markup. */
  .split-head { position: sticky; top: 9rem; }
  .split-head.is-tall { position: static; }
  .groups { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .pagehead--img { min-height: 20rem; }
  .bio { grid-template-columns: 19rem 1fr; gap: 3.25rem; }
  .two { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .topbar-addr { display: flex; }
  .hero { min-height: 38rem; }
  .hero-card { margin: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal.in { opacity: 1; transform: none; }
}

@media print {
  .topbar, .nav, .dock, .section--terra { display: none; }
  body { padding-bottom: 0; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
