/* Audience chapters: an empathy break before the space tour (#hf-empathy) and a regional-count map before
   signup (#hf-demand). Paper and ink with sage accents and one warm oak tone. Every animation sits behind
   prefers-reduced-motion: no-preference and behind data-motion="on", which the script sets only while that
   part is on screen in a visible tab. */
.hf-audience {
  --hf-au-paper: #FAF7F2;
  --hf-au-ink: #2A2420;
  --hf-au-muted: #564b42;
  --hf-au-quiet: #6b5f54;
  --hf-au-line: #ded5c9;
  --hf-au-sage: #8A9A7B;
  --hf-au-sage-deep: #4A5A41;
  --hf-au-sage-soft: #E8ECE2;
  --hf-au-warm: #A35E39;
  --hf-au-pad-x: max(clamp(22px, 6vw, 100px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 45;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(104px + env(safe-area-inset-top, 0px)) var(--hf-au-pad-x) calc(120px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hf-au-line);
  background: var(--hf-au-paper);
  color: var(--hf-au-ink);
  font-family: var(--sw-font-body, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif);
  overflow-wrap: break-word;
}
.hf-audience, .hf-audience *, .hf-audience *::before, .hf-audience *::after { box-sizing: border-box; }
.hf-audience:lang(ko) { word-break: keep-all; }
.hf-audience a:focus-visible, .hf-audience button:focus-visible { outline: 3px solid var(--hf-au-sage-deep); outline-offset: 3px; }
.hf-audience__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* Shared header */
.hf-audience__inner { width: 100%; min-width: 0; max-width: 1280px; margin-inline: auto; }
.hf-audience__header { margin-bottom: clamp(32px, 4.5vw, 56px); }
.hf-audience__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--hf-au-sage-deep); font-size: .8rem; font-weight: 650; letter-spacing: .08em; }
.hf-audience__eyebrow::before { content: ''; flex: none; width: 28px; height: 2px; border-radius: 1px; background: var(--hf-au-sage); }
.hf-audience__heading-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hf-audience__heading-row--title-only { grid-template-columns: minmax(0, 1fr); }
.hf-audience__title-wrap { min-width: 0; }
.hf-audience__title { margin: 0; font-size: clamp(2rem, 4.3vw, 4.1rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.hf-audience__lead { margin: 0; max-width: 48ch; color: var(--hf-au-muted); font-size: 1.08rem; line-height: 1.75; }

/* Empathy: an illustrative photo and a sourced survey figure lead, then four everyday motifs and a bridge into the
   space tour. Single column by default; from 1100px the copy sits beside the photo panel. */
.hf-empathy__stat { --hf-empathy-pad: clamp(20px, 2.8vw, 40px); display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0 var(--hf-empathy-pad) var(--hf-empathy-pad); overflow: hidden; border: 1px solid #e6ded2; border-radius: 14px; background: #f2eee7; }
/* The photo bleeds to the panel's edges; the label keeps it from reading as a record of a real visit. */
.hf-empathy__photo { position: relative; margin: 0 calc(-1 * var(--hf-empathy-pad)) clamp(20px, 2.6vw, 32px); aspect-ratio: 16 / 9; background: var(--hf-au-line); }
.hf-empathy__photo-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hf-empathy__photo-note { position: absolute; left: 12px; bottom: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(42, 36, 32, .62); color: #fff; font-size: .66rem; font-weight: 650; line-height: 1.4; }
.hf-empathy__stat-text { min-width: 0; margin: 0; font-size: 1rem; line-height: 1.55; }
.hf-empathy__stat-value { display: block; margin-bottom: 12px; color: var(--hf-au-ink); font-size: clamp(3.25rem, 6.4vw, 6rem); font-weight: 700; line-height: .92; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
/* The two shares that make up the figure, as plain labelled values. */
.hf-empathy__split { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .92rem; line-height: 1.3; }
.hf-empathy__split-item { display: inline-flex; align-items: center; gap: 8px; color: var(--hf-au-muted); }
.hf-empathy__split-item::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--hf-au-sage); }
.hf-empathy__split-item--frequent::before { background: var(--hf-au-warm); }
.hf-empathy__split-value { color: var(--hf-au-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-empathy__source { margin-top: clamp(20px, 2.4vw, 28px); padding-top: 14px; border-top: 1px solid var(--hf-au-line); color: var(--hf-au-quiet); font-size: .78rem; line-height: 1.5; }
.hf-empathy__source a { color: inherit; text-decoration-line: underline; text-underline-offset: 3px; }
.hf-empathy__themes { min-width: 0; margin-top: clamp(28px, 4vw, 44px); }
.hf-empathy__themes-label { margin: 0 0 14px; color: var(--hf-au-muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; }
.hf-empathy__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 0; list-style: none; }
.hf-empathy__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.hf-empathy__card-icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--hf-au-sage-soft); color: var(--hf-au-sage-deep); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hf-empathy__card-title { min-width: 0; }
.hf-empathy__bridge { min-width: 0; margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(20px, 2.6vw, 28px); border-top: 1px solid var(--hf-au-line); }
.hf-empathy__bridge-text { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; }
.hf-empathy__next { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 0 6px; border-bottom: 1.5px solid var(--hf-au-sage); color: var(--hf-au-ink); font-size: .95rem; font-weight: 650; text-decoration: none; }
.hf-empathy__next::after { content: '→'; content: '→' / ''; }
/* From 600px the figure sits beside its claim. */
@media (min-width: 600px) {
  .hf-empathy__stat-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: center; }
  .hf-empathy__stat-value { margin-bottom: 0; }
}
/* Wide screens: headline, motifs and bridge on the left, the photo panel on the right. */
@media (min-width: 1100px) {
  .hf-empathy .hf-audience__inner { display: grid; grid-template: "header stat" auto "themes stat" auto "bridge stat" 1fr / minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(48px, 5vw, 80px); }
  .hf-empathy .hf-audience__header { grid-area: header; margin-bottom: 0; }
  .hf-empathy .hf-audience__heading-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hf-empathy .hf-audience__title { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
  .hf-empathy__stat { grid-area: stat; align-self: center; }
  .hf-empathy__themes { grid-area: themes; }
  .hf-empathy__bridge { grid-area: bridge; align-self: start; }
  .hf-empathy__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .hf-empathy__card { flex-direction: row; align-items: center; gap: 12px; }
}

/* Demand: the entire 975x610 map always fits the frame, including its Alaska and Hawaii insets. On desktop
   controls overlay the map; on phones the same controls become a grid below it, beside no sidebar. */
.hf-demand__figure { min-width: 0; margin: 0; }
.hf-demand__frame { min-width: 0; width: 100%; overflow: hidden; border: 1px solid #e6ded2; border-radius: 14px; background: #f2eee7; }
.hf-demand__plate { --hf-demand-plate-pad: clamp(10px, 2.2vw, 28px); position: relative; padding: var(--hf-demand-plate-pad); }
.hf-demand__canvas { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 975 / 610; }
.hf-demand__map { display: block; width: 100%; height: 100%; object-fit: contain; }
.hf-demand__markers { position: absolute; inset: 0; z-index: 1; display: none; pointer-events: none; }
.hf-demand__points { position: absolute; inset: var(--hf-demand-plate-pad); z-index: 1; container-type: inline-size; }

/* The circle geometry is shared by desktop buttons and decorative phone markers. The controls retain one
   keyboard stop per region; the duplicate circles are aria-hidden and never receive pointer events. */
:is(.hf-demand__region, .hf-demand__marker) {
  --hf-demand-tone: var(--hf-au-sage-deep);
  --hf-demand-size: var(--hf-demand-diameter, 2.2cqw);
  position: absolute;
  left: var(--hf-demand-x);
  top: var(--hf-demand-y);
  width: var(--hf-demand-size);
  height: var(--hf-demand-size);
  margin: calc(var(--hf-demand-size) / -2) 0 0 calc(var(--hf-demand-size) / -2);
  color: var(--hf-demand-tone);
}
.hf-demand__region {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* At least a 44px tap target around small circles. */
.hf-demand__region::after { content: ''; position: absolute; inset: min(-6px, calc(50% - 22px)); border-radius: 50%; }
.hf-demand .hf-demand__region:focus-visible { outline-color: var(--hf-au-ink); }
.hf-demand__region:hover, .hf-demand__region:focus-visible, .hf-demand__region[aria-pressed="true"] { z-index: 3; }
.hf-demand__dot { position: absolute; inset: 0; z-index: 1; border: 2px solid currentColor; border-radius: 50%; background: var(--hf-au-paper); box-shadow: 0 0 0 2px #faf7f2b3; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
/* Positive counts fill their area, with a solid core marking the point itself; unreported regions stay outlined. */
:is(.hf-demand__region, .hf-demand__marker)[data-published="true"] .hf-demand__dot { background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px), #4a5a413d; }
/* Geographic emphasis requested for these places, independent of their counts or data kind. */
:is(.hf-demand__region, .hf-demand__marker):is([data-region="hawaii"], [data-region="florida"]) { --hf-demand-tone: var(--hf-au-warm); --hf-demand-ripple-alpha: .65; }
.hf-demand__region:is([data-region="hawaii"], [data-region="florida"]) .hf-demand__tag { border-color: #c49e77; background: #f3e6d3; }
/* Ripple rings, animated only while data-motion="on" (see the end of this file). */
.hf-demand__dot::before, .hf-demand__dot::after { content: ''; position: absolute; inset: -2px; border: 1.5px solid currentColor; border-radius: 50%; opacity: 0; pointer-events: none; }
.hf-demand__tag { position: absolute; z-index: 2; top: 50%; left: calc(100% + 8px); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 9px 5px; border: 1px solid #e0d6c9; border-radius: 9px; background: #faf7f2f2; color: var(--hf-au-ink); box-shadow: 0 3px 10px #2a242014; font-size: clamp(12px, 1.15cqw, 14px); font-weight: 650; line-height: 1.2; text-align: left; white-space: nowrap; transform: translateY(-50%); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.hf-demand__region[data-label="left"] .hf-demand__tag { left: auto; right: calc(100% + 8px); align-items: flex-end; text-align: right; }
.hf-demand__region[data-label="below"] .hf-demand__tag { top: calc(100% + 8px); left: auto; right: calc(50% - 30px); align-items: flex-end; text-align: right; transform: none; }
.hf-demand__region-name { display: block; }
.hf-demand__region-count { display: block; padding: 2px 7px; border-radius: 999px; background: var(--hf-au-sage-deep); color: var(--hf-au-paper); font-size: .85em; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hf-demand__region[data-published="false"] .hf-demand__region-count { background: #e8e2d8; color: #494c42; }
.hf-demand__region:hover .hf-demand__dot { transform: scale(1.08); }
.hf-demand__region:hover .hf-demand__tag { border-color: #b9ac9b; }
.hf-demand__region:focus-visible .hf-demand__tag { outline: 2px solid var(--hf-au-ink); outline-offset: 2px; }
/* Selected: warm tone, a ringed circle, an inked name tag and stronger ripples. */
:is(.hf-demand__region[aria-pressed="true"], .hf-demand__marker[data-selected="true"]) { --hf-demand-tone: var(--hf-au-warm); --hf-demand-ripple-alpha: .75; }
:is(.hf-demand__region[aria-pressed="true"], .hf-demand__marker[data-selected="true"]) .hf-demand__dot { border-width: 3px; box-shadow: 0 0 0 3px var(--hf-au-paper), 0 0 0 5px var(--hf-au-warm); }
:is(.hf-demand__region[aria-pressed="true"], .hf-demand__marker[data-selected="true"])[data-published="true"] .hf-demand__dot { background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px), #a35e3947; }
.hf-demand__region[aria-pressed="true"] .hf-demand__tag { border-color: var(--hf-au-ink); background: var(--hf-au-ink); color: var(--hf-au-paper); }
.hf-demand__region[aria-pressed="true"] .hf-demand__region-count { background: var(--hf-au-warm); color: var(--hf-au-paper); }

/* Concise provenance, scale explanation and source credit, followed by live selection details and the form CTA. */
.hf-demand__caption { display: grid; gap: 6px; margin-top: 14px; }
.hf-demand__note { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin: 0; color: var(--hf-au-ink); font-size: .9rem; line-height: 1.5; }
.hf-demand__note-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.hf-demand__note-label::before { content: ''; flex: none; width: 10px; height: 10px; border: 2px solid var(--hf-au-sage-deep); border-radius: 50%; background: #4a5a413d; }
.hf-demand__scale { margin: 0; color: var(--hf-au-muted); font-size: .84rem; line-height: 1.5; }
.hf-demand__credit { margin: 0; color: var(--hf-au-quiet); font-size: .72rem; line-height: 1.5; }
.hf-demand__credit a { color: inherit; text-underline-offset: 2px; }
.hf-demand__selection { margin: 24px 0 0; color: var(--hf-au-muted); font-size: .95rem; line-height: 1.6; }
.hf-demand__selection[data-selected="true"] { color: var(--hf-au-ink); font-weight: 650; }
.hf-demand__cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: clamp(24px, 3vw, 36px); padding: 14px 22px; border-radius: 999px; background: var(--hf-au-ink); color: var(--hf-au-paper); font-size: .95rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; }
.hf-demand__cta::after { content: '→'; content: '→' / ''; }

@media (max-width: 860px) {
  .hf-audience { padding-top: calc(96px + env(safe-area-inset-top, 0px)); padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .hf-audience__heading-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hf-audience__title { font-size: clamp(1.9rem, 6.4vw, 3rem); }
  .hf-audience__lead { font-size: 1rem; }
  .hf-demand__markers { display: block; }
  .hf-demand__points { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .hf-demand__region { position: relative; left: auto; top: auto; display: flex; min-width: 0; width: 100%; height: auto; min-height: 76px; margin: 0; padding: 12px 10px; border: 1px solid var(--hf-au-line); border-radius: 12px; background: var(--hf-au-paper); color: var(--hf-au-ink); text-align: left; }
  .hf-demand__region::after { content: none; }
  .hf-demand__region .hf-demand__dot { display: none; }
  .hf-demand__region[data-label] .hf-demand__tag { position: static; top: auto; left: auto; right: auto; width: 100%; min-width: 0; align-items: flex-start; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; box-shadow: none; outline: none; font-size: .9rem; line-height: 1.35; text-align: left; white-space: normal; transform: none; }
  .hf-demand__region-name { overflow-wrap: anywhere; }
  .hf-demand__region-count { margin-top: auto; font-size: .85rem; }
  .hf-demand__region:is([data-region="hawaii"], [data-region="florida"]) { border-color: #c49e77; background: #f3e6d3; }
  .hf-demand__region[aria-pressed="true"] { border-color: var(--hf-au-ink); background: var(--hf-au-ink); color: var(--hf-au-paper); }
}
@media (max-width: 599px) {
  .hf-empathy__photo { aspect-ratio: 4 / 3; }
  .hf-empathy__photo-image { object-position: 38% 60%; }
  .hf-empathy__stat-value { font-size: clamp(3.5rem, 17vw, 4.5rem); }
  .hf-empathy__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .hf-demand__cta { display: flex; width: 100%; }
}
/* Short landscape phones (e.g. 844x390): clear the topbar and controls. */
@media (min-width: 600px) and (max-height: 500px) {
  .hf-audience { padding-top: calc(84px + env(safe-area-inset-top, 0px)); padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .hf-audience__header { margin-bottom: 28px; }
  .hf-audience__eyebrow { margin-bottom: 14px; }
  .hf-audience__title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
  .hf-empathy__photo { aspect-ratio: 21 / 9; }
}

/* Motion: the map's ripples, only without a reduced-motion preference. */
@media (prefers-reduced-motion: no-preference) {
  .hf-demand[data-motion="on"] .hf-demand__dot::before,
  .hf-demand[data-motion="on"] .hf-demand__dot::after { animation: hf-demand-ripple 4.2s cubic-bezier(.2, .6, .35, 1) var(--hf-demand-delay, 0s) infinite; }
  .hf-demand[data-motion="on"] .hf-demand__dot::after { animation-delay: calc(var(--hf-demand-delay, 0s) - 2.1s); }
}
@keyframes hf-demand-ripple {
  from { opacity: var(--hf-demand-ripple-alpha, .4); transform: scale(1); }
  to { opacity: 0; transform: scale(var(--hf-demand-ripple, 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .hf-demand__dot, .hf-demand__tag { transition: none; }
  .hf-demand__region:hover .hf-demand__dot { transform: none; }
}
