/* Pennick Heating & Air — concept site. Independent from the studio system. */
:root {
  --ink: #0e2a33;
  --ink-2: #163a45;
  --steel: #eef2f3;
  --white: #ffffff;
  --line: #c3cfd3;
  --field: #7a8e94;
  --muted: #4a5d63;
  --pilot: #ffc72c;
  --heat: #b93d0b;
  --cool: #1d5f99;
  --alert: #a51c1c;
  --alert-bg: #fdecea;
  --on-ink: #f4f7f8;
  --on-ink-muted: #b9c9ce;
  --focus: #0e2a33;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: 0.005em; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.05; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--pilot); color: var(--ink); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Concept banner */
.concept-bar { background: var(--pilot); color: var(--ink); font-size: 0.875rem; }
.concept-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; min-height: 44px; padding-block: 6px; }
.concept-bar strong { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.concept-bar a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Header */
.site-head { background: var(--ink); color: var(--on-ink); --focus: var(--pilot); position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 10px; height: 36px; border-radius: 5px; background: linear-gradient(var(--pilot) 0 46%, var(--on-ink) 46% 54%, #7fb6e3 54%); flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand-sub { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); margin-top: 3px; }

.nav-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: transparent; color: var(--on-ink); border: 1px solid #47636c; border-radius: var(--radius);
  font: 600 0.95rem var(--body); cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pilot); text-decoration-thickness: 3px; }
.nav .nav-cta {
  background: var(--pilot); color: var(--ink); padding: 0 18px; border-radius: var(--radius); font-weight: 600;
}
.nav .nav-cta:hover { text-decoration: none; background: #ffd65e; }

.js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
}
@media (max-width: 899.98px) {
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid #2a4a54; padding: 8px var(--gutter) 20px; display: none; }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav li + li { border-top: 1px solid #23434d; }
  .js .nav a { width: 100%; min-height: 52px; }
  .js .nav .nav-cta { justify-content: center; margin-top: 12px; }
  .site-head .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; padding-bottom: 10px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font: 600 1.05rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); }
.btn-pilot { background: var(--pilot); color: var(--ink); }
.btn-pilot:hover { background: #ffd65e; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(14, 42, 51, 0.06); }
.arrow { font-family: var(--mono); font-weight: 500; }

/* Hero / triage */
.hero { background: var(--ink); color: var(--on-ink); --focus: var(--pilot); padding: clamp(36px, 6vw, 88px) 0 0; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.eyebrow { color: var(--pilot); margin-bottom: 18px; }
.hero h1 { font-size: clamp(3.1rem, 1.6rem + 7.2vw, 7.4rem); font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.005em; }
.hero-lead { margin-top: 22px; max-width: 34ch; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--on-ink-muted); }
.hero-lead strong { color: var(--on-ink); font-weight: 600; }

.triage { list-style: none; margin: 0; padding: 0; border-top: 1px solid #355761; }
.triage li { border-bottom: 1px solid #355761; }
.triage a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 16px 4px 16px 0; min-height: 72px; text-decoration: none; position: relative;
}
.triage .t-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); text-transform: uppercase; line-height: 1; }
.triage .t-desc { grid-column: 1; color: var(--on-ink-muted); font-size: 0.98rem; }
.triage .t-route { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--on-ink-muted); }
@media (max-width: 519.98px) {
  .triage a { grid-template-columns: minmax(0, 1fr); }
  .triage .t-route { grid-column: 1; grid-row: auto; text-align: left; }
  .triage .t-route b { display: inline; margin-right: 0.6em; }
}
.triage .t-route b { display: block; color: var(--pilot); font-weight: 500; }
.triage a::before {
  content: ""; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 4px; border-radius: 2px;
  background: var(--pilot); transform: scaleY(0); transform-origin: top; transition: transform 0.22s ease;
}
.triage a:hover::before, .triage a:focus-visible::before { transform: scaleY(1); }
.triage a:hover .t-name, .triage a:focus-visible .t-name { color: var(--pilot); }
.triage [data-kind="heat"] .t-name::after, .triage [data-kind="cool"] .t-name::after {
  content: ""; display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; margin-left: 0.3em; vertical-align: 0.35em;
}
.triage [data-kind="heat"] .t-name::after { background: #ff8a4c; }
.triage [data-kind="cool"] .t-name::after { background: #7fb6e3; }

/* Home opening: intro and photograph side by side, problems directly below. Text never sits on the photo. */
.hero:has(.hero-photo-grid) { padding-top: clamp(24px, 3.5vw, 44px); }
@media (min-width: 1024px) and (max-height: 760px) { .hero:has(.hero-photo-grid) { padding-top: 24px; } }
.hero-photo-grid { grid-template-areas: "intro" "photo" "problems"; gap: 22px; }
.hero-intro { grid-area: intro; }
.hero-photo { grid-area: photo; margin: 0; }
.hero-photo-grid #problems { grid-area: problems; }
.hero-photo-grid h1 { font-size: clamp(2.7rem, 1.5rem + 4.6vw, 4.6rem); }
.hero-photo-grid .eyebrow { margin-bottom: 12px; }
.hero-photo-grid .hero-lead { margin-top: 14px; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); background: var(--ink-2); }
@media (max-width: 519.98px) {
  .hero-photo-grid .eyebrow { display: none; }
  .hero-photo img { aspect-ratio: 2 / 1; object-position: 50% 10%; }
}
.hero-photo figcaption { margin-top: 8px; color: var(--on-ink-muted); font-size: 0.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; }
.hero-jump { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink); font-weight: 500; }
/* Below 900px the fixed action bar already carries "Request service"; keep the problems close instead */
@media (max-width: 899.98px) { .hero-actions { display: none; } }
@media (min-width: 720px) {
  .hero-photo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro photo" "problems problems"; align-items: center; column-gap: clamp(28px, 4vw, 56px); }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 70% 20%; }
}
@media (min-width: 1024px) {
  .hero-grid.hero-photo-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); row-gap: clamp(20px, 3vh, 36px); }
  .hero-photo img { aspect-ratio: auto; height: clamp(280px, calc(100vh - 360px), 500px); object-position: 62% 4%; }
  .hero-photo-grid .triage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid #355761; }
  .hero-photo-grid .triage li { border-bottom: 0; }
  .hero-photo-grid .triage li + li { border-left: 1px solid #355761; }
  .hero-photo-grid .triage a { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; height: 100%; min-height: 0; padding: 14px 16px 16px; }
  .hero-photo-grid .triage li:first-child a { padding-left: 0; }
  .hero-photo-grid .triage .t-name { font-size: clamp(1.3rem, 0.6rem + 0.85vw, 1.75rem); }
  .hero-photo-grid .triage .t-desc { font-size: 0.92rem; }
  .hero-photo-grid .triage .t-route { grid-column: 1; grid-row: auto; text-align: left; }
  .hero-photo-grid .triage .t-route b { display: inline; margin-right: 0.6em; }
  .hero-photo-grid .triage a::before { left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 4px; transform: scaleX(0); transform-origin: left; }
  .hero-photo-grid .triage a:hover::before, .hero-photo-grid .triage a:focus-visible::before { transform: scaleX(1); }
  .hero:has(.hero-photo-grid) .safety-strip { margin-top: 0; }
}

.safety-strip { margin-top: clamp(28px, 4vw, 48px); background: #082027; border-top: 1px solid #355761; }
.safety-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 14px; }
.safety-strip p { flex: 1 1 32ch; }
.safety-strip .tag { color: #ffb4a8; }
.safety-strip a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--pilot); }

/* Sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 860px; }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.scenario-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); border: 1px dashed var(--muted); padding: 6px 10px; border-radius: var(--radius); width: fit-content; max-width: 100%; }

/* Visit types: rows, not cards */
.visits { border-top: 2px solid var(--ink); }
.visit {
  display: grid; gap: 10px 32px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .visit { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: start; }
}
.visit h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); text-transform: uppercase; }
.visit .when { font-weight: 600; }
.visit .what { color: var(--muted); }
.visit .btn { justify-self: start; }

/* Season block */
.season { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.season-grid { display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 960px) { .season-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; columns: 1; }
@media (min-width: 640px) { .checklist { columns: 2; column-gap: 32px; } }
.checklist li { break-inside: avoid; padding: 12px 0 12px 46px; position: relative; border-top: 1px solid var(--line); counter-increment: c; }
.checklist li::before {
  content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 13px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--heat);
}
.season .btn { margin-top: 28px; }

/* Equipment list */
.equipment { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.equipment li {
  min-width: 0; overflow-wrap: break-word; hyphens: auto;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; padding-right: 0.4em;
}
.equipment li:not(:last-child)::after { content: "/"; color: var(--line); padding-left: 0.4em; }
.pending { margin-top: 24px; color: var(--muted); max-width: 64ch; }
.pending b { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); background: var(--pilot); padding: 2px 6px; border-radius: 3px; margin-right: 6px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.steps li { counter-increment: s; padding: 22px 24px 26px 0; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .steps li + li { padding-left: 24px; border-left: 1px solid var(--line); } }
.steps li::before { content: "Step " counter(s); display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Safety panel */
.safety { background: var(--alert-bg); border-left: 6px solid var(--alert); padding: clamp(22px, 3vw, 36px); border-radius: 0 var(--radius) var(--radius) 0; }
.safety h2, .safety h3 { color: var(--alert); }
.safety dl { margin: 18px 0 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .safety dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.safety dt { font-weight: 700; }
.safety dd { margin: 4px 0 0; }
.safety .src { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-foot { background: var(--ink); color: var(--on-ink-muted); --focus: var(--pilot); padding: 56px 0 120px; }
@media (min-width: 900px) { .site-foot { padding-bottom: 56px; } }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1.6fr 1fr; } }
.site-foot h2 { font-size: 1.5rem; color: var(--on-ink); text-transform: uppercase; margin-bottom: 10px; }
.site-foot p + p { margin-top: 10px; }
.site-foot a { color: var(--on-ink); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot :target { outline: 2px dashed var(--pilot); outline-offset: 8px; }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 42, 51, 0.97); --focus: var(--pilot);
}
.action-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-width: 899.98px) { body.has-bar { padding-bottom: 72px; } }

/* Breadcrumb */
.crumbs { font-size: 0.95rem; color: var(--on-ink-muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }

/* Service detail */
.detail-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.detail-hero h1 { font-size: clamp(3.4rem, 2rem + 7vw, 8rem); }
.detail-hero .hero-lead { max-width: 46ch; }
.detail-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.detail-hero .btn-line { color: var(--on-ink); }
.detail-hero .btn-line:hover { background: rgba(255, 255, 255, 0.08); }

.checks-grid { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 960px) { .checks-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.diagram-wrap { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); }
@media (min-width: 960px) { .diagram-wrap { position: sticky; top: 24px; } }
.diagram-wrap figcaption { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.house .s { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.house .thin { stroke-width: 1.2; }
.house .duct { fill: none; stroke: #8ea4ab; stroke-width: 6; stroke-linejoin: round; }
.house .ground { fill: url(#hatch); }
.house .label { font: 500 12px var(--mono); fill: var(--muted); letter-spacing: 0.03em; }
.house .room { font: 600 13px var(--body); fill: #7a8c91; }
.house .spot circle { fill: var(--white); stroke: var(--ink); stroke-width: 2; transition: fill 0.2s ease, r 0.2s ease; }
.house .spot text { font: 600 14px var(--mono); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.house .part { transition: stroke 0.2s ease; }
.house [data-part].is-active .part { stroke: var(--heat); stroke-width: 3; }
.house [data-part].is-active .spot circle { fill: var(--pilot); r: 15; }

.checks { list-style: none; margin: 0; padding: 0; counter-reset: k; border-top: 2px solid var(--ink); }
.checks > li { border-bottom: 1px solid var(--line); padding: 4px 0 20px; }
.check-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 0;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.check-btn .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink);
  display: inline-grid; place-items: center; font: 600 0.9rem var(--mono);
}
.checks h3 { font-size: 1.6rem; text-transform: uppercase; }
.check-btn { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.check-btn[aria-pressed="true"] .num { background: var(--pilot); }
.check-btn[aria-pressed="true"] .check-name { color: var(--heat); }
.done { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; width: fit-content; }
.done input { flex: none; width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
html:not(.js) .done { display: none; }
.check-body { padding-left: 48px; display: grid; gap: 8px; }
.check-body .stop { font-weight: 600; }
.check-body .stop::before { content: "Stop here: "; color: var(--alert); }
html:not(.js) .check-btn { cursor: default; }

.compare { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } .compare > div + div { border-left: 1px solid var(--line); padding-left: 32px; } }
.compare > div { padding: 22px 32px 22px 0; }
.compare h3 { margin-bottom: 12px; }
.compare ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.compare h3 .mono { display: block; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); }

.split { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }

.cta-panel { background: var(--ink); color: var(--on-ink); --focus: var(--pilot); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.4fr auto; align-items: center; } }
.cta-panel p { color: var(--on-ink-muted); margin-top: 10px; max-width: 52ch; }
.cta-panel .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-panel .btn-line { color: var(--on-ink); }

/* Request form */
.request-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.request-hero h1 { font-size: clamp(3rem, 1.8rem + 5vw, 6rem); }
.demo-note { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 32px; }
.demo-note strong { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; background: var(--pilot); padding: 2px 6px; border-radius: 3px; }
.context-note { margin-bottom: 24px; color: var(--muted); }
.context-note[hidden] { display: none; }
.request-layout { display: grid; gap: 32px; }
.request-layout > * { min-width: 0; }
@media (min-width: 1024px) { .request-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.request-aside { border-top: 2px solid var(--ink); padding-top: 18px; color: var(--muted); display: grid; gap: 12px; }
.request-aside a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .request-aside { position: sticky; top: 24px; } }
.request-aside h2 { font-size: 1.5rem; color: var(--ink); text-transform: uppercase; }

.form { display: grid; gap: 36px; }
.form[hidden] { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field-label { font-family: var(--display); font-weight: 700; font-size: 1.55rem; text-transform: uppercase; line-height: 1.05; padding: 0; margin-bottom: 6px; }
.hint { color: var(--muted); margin-bottom: 14px; font-size: 0.98rem; }
.tiles { display: grid; gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile label {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 12px 16px 12px 46px;
  background: var(--white); border: 2px solid var(--field); border-radius: var(--radius); cursor: pointer; position: relative; height: 100%;
}
.tile label::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--ink); background: var(--white);
}
.tile input[type="radio"] + label::before { border-radius: 50%; }
.tile input[type="checkbox"] + label::before { border-radius: 3px; }
.tile input:checked + label { border-color: var(--ink); background: #fff8e1; }
.tile input[type="radio"]:checked + label::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--white); }
.tile input[type="checkbox"]:checked + label::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--white); }
.tile input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile label b { font-weight: 600; }
.tile label span { color: var(--muted); font-size: 0.92rem; }
.tile label:hover { border-color: var(--ink); }
textarea {
  width: 100%; min-height: 120px; padding: 12px 14px; border: 2px solid var(--field); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: var(--white); resize: vertical;
}
textarea:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.count { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.field-error { color: var(--alert); font-weight: 600; margin-bottom: 10px; display: flex; gap: 8px; }
.field-error[hidden] { display: none; }
fieldset.has-error .tile label { border-color: var(--alert); }
.error-summary { border: 3px solid var(--alert); background: var(--alert-bg); padding: 18px 20px; border-radius: var(--radius); }
.error-summary[hidden] { display: none; }
.error-summary h2 { font-size: 1.5rem; color: var(--alert); text-transform: uppercase; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nojs-note { border: 2px dashed var(--muted); padding: 14px 16px; border-radius: var(--radius); }
.js .nojs-note { display: none; }
html:not(.js) .needs-js { display: none; }
[data-show-for][hidden] { display: none; }

.summary { display: grid; gap: 24px; }
.summary[hidden] { display: none; }
.summary h2 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); text-transform: uppercase; }
.summary h2:focus { outline: none; }
.summary-stamp { display: inline-flex; align-items: center; gap: 10px; background: var(--pilot); color: var(--ink); padding: 8px 14px; border-radius: var(--radius); font: 600 0.9rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; width: fit-content; }
.ticket { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); }
.ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px dashed var(--ink); }
.ticket dl { margin: 0; display: grid; }
.ticket .row { display: grid; gap: 2px 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .ticket .row { grid-template-columns: 200px 1fr; } }
.ticket .row:last-child { border-bottom: 0; }
.ticket dt { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 3px; }
.ticket dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.next-list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.summary .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Motion: purposeful and optional */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.is-pending { opacity: 0; transform: translateY(14px); }
  .js .reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .triage li { animation: rise 0.45s ease both; }
  .js .triage li:nth-child(2) { animation-delay: 0.05s; }
  .js .triage li:nth-child(3) { animation-delay: 0.1s; }
  .js .triage li:nth-child(4) { animation-delay: 0.15s; }
  .js .triage li:nth-child(5) { animation-delay: 0.2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after { transition-duration: 0.01ms !important; animation: none !important; }
.motion-reduced .reveal { opacity: 1 !important; transform: none !important; }

/* Request page: keep the first question reachable on small screens */
@media (max-width: 599.98px) {
  .request-hero { padding-top: 24px; padding-bottom: 24px; }
  .request-hero .crumbs { display: none; }
  .request-hero .hero-lead { display: none; }
  .demo-note { margin-bottom: 20px; padding: 12px 14px; }
}
@media (max-height: 480px) {
  .request-hero { padding-top: 20px; padding-bottom: 20px; }
  .request-hero .crumbs, .request-hero .hero-lead { display: none; }
}
@media (max-height: 500px) {
  .action-bar { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .action-bar .btn { min-height: 44px; }
  body.has-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
