/* Host-scoped stand-in for Tailwind preflight. Not a utility layer.
   Without this, dropping TW restores UA defaults (link underline, heading
   margin/size, list padding) and every skin looks "broken in small ways". */
/* In a cascade layer, like preflight's @layer base: a default, never a rule a skin has to outrank.
   Unlayered skin/theme rules win over it whatever their specificity, so `.btn { color }` on an <a> or
   `.title { font-size }` on an <h1> applies as written (unlayered `.hosted-tokens a` used to beat both). */
@layer hosted-reset {
  .hosted-app,
  .hosted-tokens,
  .hosted-app *,
  .hosted-app *::before,
  .hosted-app *::after,
  .hosted-tokens *,
  .hosted-tokens *::before,
  .hosted-tokens *::after {
    box-sizing: border-box;
  }

  .hosted-tokens h1,
  .hosted-tokens h2,
  .hosted-tokens h3,
  .hosted-tokens h4,
  .hosted-tokens h5,
  .hosted-tokens h6,
  .hosted-tokens p,
  .hosted-tokens figure,
  .hosted-tokens blockquote,
  .hosted-tokens dl,
  .hosted-tokens dd,
  .hosted-app h1,
  .hosted-app h2,
  .hosted-app h3,
  .hosted-app h4,
  .hosted-app h5,
  .hosted-app h6,
  .hosted-app p {
    margin: 0;
  }

  .hosted-tokens h1,
  .hosted-tokens h2,
  .hosted-tokens h3,
  .hosted-tokens h4,
  .hosted-tokens h5,
  .hosted-tokens h6,
  .hosted-app h1,
  .hosted-app h2,
  .hosted-app h3,
  .hosted-app h4,
  .hosted-app h5,
  .hosted-app h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  .hosted-tokens a,
  .hosted-app a {
    color: inherit;
    text-decoration: inherit;
  }

  .hosted-tokens ol,
  .hosted-tokens ul,
  .hosted-tokens menu,
  .hosted-app ol,
  .hosted-app ul,
  .hosted-app menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hosted-tokens img,
  .hosted-tokens svg,
  .hosted-tokens video,
  .hosted-app img,
  .hosted-app svg,
  .hosted-app video {
    display: block;
    max-width: 100%;
  }

  .hosted-tokens img,
  .hosted-tokens video,
  .hosted-app img,
  .hosted-app video {
    height: auto;
  }

  .hosted-tokens button,
  .hosted-app button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  /* A visible focus indicator for everything a skin does not draw one for (WCAG 2.4.7). A layer default, so any
     unlayered skin rule that styles focus wins, and one that only removes it is what the a11y gate flags. */
  .hosted-app :focus-visible,
  .hosted-tokens :focus-visible {
    outline: 2px solid var(--color-accent, currentColor);
    outline-offset: 2px;
  }
}

/* The shell pages' structure (@zeroy/hosted-ui/shell): what their roles mean, not how a site draws them.
   A default in the reset's layer, so a skin's unlayered rule wins whatever its specificity. The roles'
   look is each site's skin.css. */
@layer hosted-reset {
  /* The search field's name for assistive tech; the page's heading names it for the eye. */
  .hosted-tokens .hosted-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Primitive scale. No brand. Opt-in host: .hosted-app (OPS) or .hosted-tokens (mockup / standalone). */
.hosted-app,
.hosted-tokens {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 26px;
  --space-7: 32px;

  --font-1: 0.6875rem;
  --font-2: 0.75rem;
  --font-3: 0.8125rem;
  --font-4: 0.875rem;
  --font-5: 1.25rem;
  --font-6: 1.4375rem;

  --font-body: clamp(0.8125rem, 0.76rem + 0.22vw, 0.875rem);
  --space-page: clamp(1rem, 0.7rem + 1.1vw, 1.625rem);

  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 10px;
  --radius-pill: 16px;
  --radius-round: 999px;
  --radius-control: 7px;
  --radius-card: var(--radius-l);

  --shadow-1: 0 1px 3px rgb(0 0 0 / 0.14);
  --shadow-2: 0 8px 30px rgb(0 0 0 / 0.08);
  --shadow-3: 0 24px 80px rgb(0 0 0 / 0.25);
  --shadow-card: 0 1px 2px rgb(16 24 40 / 0.05);

  --side-width: 236px;
  --rail-width: 296px;
  --content-max: 1240px;
  --topbar-height: 52px;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
}

/*
 * HOGLAD tokens. Two layers: the palette (`--hg-c-*`, fixed values) and the roles every rule uses
 * (`--hg-ink`, `--hg-linen`, `--color-*`). A dark section (`.hg-night`, the hero, the header over it) is
 * the same components with the roles remapped once (skin.css "night roles"), never a second set of rules.
 *
 * The palette follows the cinematic reference the customer chose (Night #112125, Gold #D7BA86, Ink on a
 * light paper), with the light sections neutral instead of linen-yellow ("too much yellow, like a
 * desert") and dark sections alternating with them for rhythm ("too pale, nothing stands out").
 * Contrast: Ink on Paper 14.6, Muted 6.9, Faint 5.3, Oak 4.9; Cream on Night 15.2, Gold on Night 9.3.
 */
.hosted-tokens {
  --hg-c-paper: #f6f5f1;
  --hg-c-sage: #e3e7e1;
  --hg-c-ink: #1f2523;
  --hg-c-oak: #9a5b2e;
  --hg-c-slate: #434b4d;
  --hg-c-muted: #4f5653;
  --hg-c-night: #112125;
  --hg-c-night-raise: #1b3035;
  --hg-c-cream: #f4f0e7;
  --hg-c-gold: #d7ba86;

  --hg-linen: var(--hg-c-paper);
  --hg-linen-deep: var(--hg-c-sage);
  --hg-ink: var(--hg-c-ink);
  --hg-oak: var(--hg-c-oak);
  --hg-slate: var(--hg-c-slate);
  --hg-night: var(--hg-c-night);
  --hg-muted: var(--hg-c-muted);
  --hg-cream: var(--hg-c-cream);
  --hg-gold: var(--hg-c-gold);

  --color-ink: var(--hg-ink);
  --color-ink-2: var(--hg-slate);
  --color-muted: var(--hg-muted);
  --color-faint: #5e6461;
  --color-dead: rgb(31 37 35 / 0.35);
  --color-surface: var(--hg-linen);
  --color-paper: #fbfbf9;
  --color-line: rgb(67 75 77 / 0.24);
  --color-line-soft: rgb(67 75 77 / 0.12);
  --color-control-border: rgb(67 75 77 / 0.4);
  --color-accent: var(--hg-ink);
  --color-accent-strong: var(--hg-oak);
  --color-accent-soft: #eaece6;
  --color-on-accent: var(--hg-linen);

  --hg-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --hg-sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-sans: var(--hg-sans);

  /* Type: display is 4–6× the body; labels small caps-tracked. */
  --hg-display: clamp(3.25rem, 1.6rem + 5.2vw, 6.5rem);
  --hg-h2: clamp(2.125rem, 1.3rem + 2.6vw, 3.75rem);
  --hg-h3: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  --hg-body: 1.0625rem;
  --hg-small: 0.9375rem;
  --hg-label: 0.6875rem;

  /* Space: one gutter and three left anchors shared by every section. */
  --hg-gutter: clamp(20px, 4vw, 64px);
  --hg-max: 1320px;
  --hg-section: clamp(88px, 6rem + 6vw, 184px);

  --hg-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hg-fast: 160ms;
  --hg-state: 220ms;
  --hg-enter: 600ms;

  --content-max: var(--hg-max);
}

/* Static meaning is visible before JS and throughout loading/failure. */
.motion-scene {
  position: relative;
  overflow-anchor: none;
}
.motion-stage {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: clip;
}
.motion-video,
.motion-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--media-fit, cover);
  object-position: var(--media-position, center);
}
.motion-video {
  opacity: 0;
  pointer-events: none;
}
.motion-still {
  opacity: 1;
}
.motion-content {
  position: relative;
  z-index: 1;
}
.motion-scene.motion-active[data-mode="scroll"] {
  height: calc(100svh + var(--travel, 200svh));
}
.motion-active[data-mode="scroll"] .motion-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
}
.motion-presented .motion-video {
  opacity: 1;
}
.motion-presented .motion-still {
  opacity: 0;
}
[data-motion-toggle][hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .motion-scene.motion-active[data-mode="scroll"] {
    height: auto;
  }
  .motion-active[data-mode="scroll"] .motion-stage {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .motion-presented .motion-video {
    opacity: 0;
  }
  .motion-presented .motion-still {
    opacity: 1;
  }
}

/*
 * HOGLAD skin (content/design-direction.md). Values come from tokens.css; layout from three left
 * anchors (gutter, text column, wide column). One dark section (factory). No card boxes: sections sit
 * on the Linen canvas and separate by space, type scale and the one tone change.
 */

/* ── base ─────────────────────────────────────────────────────────────── */
.hosted-tokens {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--hg-sans);
  font-size: var(--hg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hosted-tokens h1,
.hosted-tokens h2,
.hosted-tokens h3 {
  font-family: var(--hg-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
.hosted-tokens p {
  text-wrap: pretty;
}
.hosted-tokens :focus-visible {
  outline: 2px solid var(--hg-oak);
  outline-offset: 3px;
}
/* ── night roles: a dark section is the same components with the roles remapped once ── */
.hg-night,
.hg-hero,
.hg-head {
  --hg-ink: var(--hg-c-cream);
  --hg-linen: var(--hg-c-night);
  --hg-linen-deep: var(--hg-c-night-raise);
  --hg-oak: var(--hg-c-gold);
  --hg-slate: rgb(244 240 231 / 0.6);
  --hg-muted: rgb(244 240 231 / 0.74);
  --color-ink: var(--hg-c-cream);
  --color-ink-2: rgb(244 240 231 / 0.86);
  --color-muted: rgb(244 240 231 / 0.74);
  --color-faint: rgb(244 240 231 / 0.64);
  --color-dead: rgb(244 240 231 / 0.35);
  --color-surface: var(--hg-c-night);
  --color-paper: var(--hg-c-night-raise);
  --color-line: rgb(244 240 231 / 0.22);
  --color-line-soft: rgb(244 240 231 / 0.12);
  --color-control-border: rgb(244 240 231 / 0.42);
  --color-accent: var(--hg-c-cream);
  --color-accent-strong: var(--hg-c-gold);
  --color-accent-soft: rgb(244 240 231 / 0.07);
  --color-on-accent: var(--hg-c-night);
  /* The primary action on night is gold: the one warm, saturated mark on the page. */
  --hg-btn: var(--hg-c-gold);
  --hg-btn-hover: var(--hg-c-cream);
  --hg-glass: rgb(244 240 231 / 0.06);
  color: var(--hg-c-cream);
}
.hg-night {
  background: var(--hg-c-night);
}
/* A light section that is not the page ground: the sage band, with paper as its raised plate. */
.hg-sage {
  --hg-linen-deep: var(--hg-c-paper);
  background: var(--hg-c-sage);
}
.hosted-tokens .hg-night :focus-visible,
.hosted-tokens .hg-hero :focus-visible {
  outline-color: var(--hg-c-gold);
}
.hg-skip {
  position: absolute;
  left: var(--hg-gutter);
  top: -80px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--hg-c-ink);
  color: var(--hg-c-cream);
}
.hg-skip:focus {
  top: 12px;
}
.hg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── shared blocks ────────────────────────────────────────────────────── */
.hg-wrap {
  width: min(100% - 2 * var(--hg-gutter), var(--hg-max));
  margin-inline: auto;
}
.hg-section {
  padding-block: var(--hg-section);
}
.hosted-status__code,
.hg-eyebrow {
  margin: 0 0 18px;
  font-size: var(--hg-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-eyebrow b {
  font-weight: 600;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.hosted-search__title,
.hosted-status__title,
.hg-h2 {
  margin: 0;
  font-size: var(--hg-h2);
  max-width: 18ch;
}
.hg-h3 {
  margin: 0;
  font-size: var(--hg-h3);
  line-height: 1.15;
}
.hg-lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--color-ink-2);
}
.hosted-search__empty,
.hg-cite,
.hosted-quote__cite {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-faint);
}
.hg-num,
.hosted-quote__num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Controls: 2px corners, 1px Slate line, Ink → Oak on hover (the one shared grammar). */
.hosted-search__submit,
.hg-btn,
.hosted-quote__send,
.hosted-quote__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--hg-btn, var(--hg-ink));
  border-radius: 2px;
  background: var(--hg-btn, var(--hg-ink));
  color: var(--hg-linen);
  font: 600 0.9375rem/1 var(--hg-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color var(--hg-fast) var(--hg-ease),
    border-color var(--hg-fast) var(--hg-ease),
    color var(--hg-fast) var(--hg-ease);
}
.hosted-search__submit:hover,
.hg-btn:hover,
.hosted-quote__send:hover,
.hosted-quote__action:hover {
  background: var(--hg-btn-hover, var(--hg-oak));
  border-color: var(--hg-btn-hover, var(--hg-oak));
}
.hg-btn--line,
.hosted-quote__action {
  background: transparent;
  color: var(--hg-ink);
  border-color: var(--color-control-border);
}
.hg-btn--line:hover,
.hosted-quote__action:hover {
  background: transparent;
  color: var(--hg-oak);
  border-color: var(--hg-oak);
}
.hg-btn[disabled],
.hosted-quote__send[disabled],
.hosted-quote__action[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.hosted-status__action,
.hg-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--hg-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--color-control-border);
  transition:
    color var(--hg-fast) var(--hg-ease),
    text-decoration-color var(--hg-fast) var(--hg-ease);
}
.hosted-status__action:hover,
.hg-link:hover {
  color: var(--hg-oak);
  text-decoration-color: var(--hg-oak);
}
.hosted-status__mark,
.hg-arrow,
.hosted-quote__mark {
  font-family: var(--hg-sans);
  font-weight: 400;
}

/* ── frame: header, footer ────────────────────────────────────────────── */
.hg-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(17 33 37 / 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line-soft);
  transition:
    background-color var(--hg-state) var(--hg-ease),
    border-color var(--hg-state) var(--hg-ease);
}
.hg-head__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.hg-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--hg-ink);
  line-height: 1;
}
.hg-brand__mark {
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  letter-spacing: 0.16em;
}
.hg-brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: var(--hg-small);
}
.hg-nav a {
  color: var(--hg-ink);
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  transition:
    color var(--hg-fast) var(--hg-ease),
    border-color var(--hg-fast) var(--hg-ease);
}
.hg-nav a:hover,
.hg-nav a[aria-current="page"] {
  color: var(--hg-oak);
  border-bottom-color: currentColor;
}
.hg-head__cta {
  min-height: 40px;
  padding: 0 16px;
}
/* Over the hero the header is the hero's: no ground of its own, night roles (cream text). */
.hg-head[data-hero-visible="true"] {
  /* A scrim, not a ground: the header's cream text sits on the film, whose sky is bright at the right edge. */
  background: linear-gradient(rgb(17 33 37 / 0.45), rgb(17 33 37 / 0.18) 55%, rgb(17 33 37 / 0))
    no-repeat;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
/* While the hero is on screen its own action is the page's one primary: the header's becomes text. */
.hg-head[data-hero-visible="true"] .hg-head__cta {
  background: transparent;
  color: var(--hg-ink);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.hg-menu {
  display: none;
  margin-left: auto;
}
.hg-menu:not([open]) .hg-menu__panel {
  display: none;
}
.hg-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}
.hg-menu summary::-webkit-details-marker {
  display: none;
}
@media (max-width: 1080px) {
  .hg-nav,
  .hg-head__cta {
    display: none;
  }
  .hg-menu {
    display: block;
  }
  .hg-menu[open] .hg-menu__panel {
    position: absolute;
    inset: 68px 0 auto;
    display: grid;
    gap: 4px;
    padding: 12px var(--hg-gutter) 24px;
    background: var(--hg-linen);
    border-bottom: 1px solid var(--color-line);
  }
  .hg-menu__panel a {
    padding: 12px 0;
    color: var(--hg-ink);
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-line-soft);
  }
}

.hg-foot {
  background: var(--hg-linen-deep);
  padding-block: 72px 40px;
  font-size: var(--hg-small);
}
.hg-foot__mark {
  margin: 0;
  font-family: var(--hg-serif);
  font-size: clamp(3.5rem, 2rem + 8vw, 9rem);
  letter-spacing: 0.12em;
  line-height: 0.9;
  color: var(--hg-ink);
}
.hg-foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.hg-foot__grid h2 {
  margin: 0 0 10px;
  font: 600 var(--hg-label) / 1.4 var(--hg-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-foot__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hg-foot__grid a {
  color: var(--hg-ink);
}
.hg-foot__grid a:hover {
  color: var(--hg-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hg-foot__legal {
  margin-top: 40px;
  color: var(--color-faint);
  font-size: 0.8125rem;
}

/* ── home 1: hero (scroll film; static poster is the baseline) ───────── */
.hg-hero {
  background: var(--hg-c-night);
  --travel: 140svh;
  margin-top: -69px;
}
.hg-hero .motion-stage {
  background: var(--hg-c-night);
}
.hg-hero .motion-still,
.hg-hero .motion-video {
  --media-position: 70% 50%;
}
/* The film's last frame hands over to the customer's own sample, lit on the night wall. */
.hg-hero__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* A cut, not a dissolve: no frame shows the generated film and the photograph together. The cut is
     the hero's data-frame (home-motion.ts decides it once), which also switches the caption. */
  opacity: 0;
  background:
    radial-gradient(60% 70% at 72% 58%, rgb(215 186 134 / 0.22), transparent 70%),
    linear-gradient(115deg, transparent 0 38%, rgb(244 240 231 / 0.05) 46%, transparent 60%),
    var(--hg-c-night);
  pointer-events: none;
}
.hg-hero[data-frame="sample"] .hg-hero__frame {
  opacity: 1;
}
/* The plate sits above the title's night shade: the shade is for the film, not for the photograph. */
.hg-hero[data-frame="sample"] .hg-hero__frame {
  z-index: 2;
}
/* Window-grid light on the wall: drawn, not baked into the photo (the photo is evidence). */
.hg-hero__frame::before {
  content: "";
  position: absolute;
  inset: 8% 48% 18% 4%;
  background:
    linear-gradient(90deg, transparent 0 46%, rgb(17 33 37 / 0.6) 46% 49%, transparent 49%),
    linear-gradient(0deg, transparent 0 48%, rgb(17 33 37 / 0.6) 48% 51%, transparent 51%),
    rgb(215 186 134 / 0.16);
  filter: blur(14px);
  transform: skewX(-14deg);
}
.hg-hero__frame img {
  position: absolute;
  right: max(var(--hg-gutter), calc((100vw - var(--hg-max)) / 2));
  top: 50%;
  translate: 0 -54%;
  width: min(40vw, 70svh);
  height: auto;
  /* The sample itself on the night wall (glass see-through, glass_matte.py): its shadow follows its shape. */
  filter: drop-shadow(-16px 28px 36px rgb(0 0 0 / 0.5));
}
/* A night shade from the left and the bottom keeps the cream title readable over any frame (poster or film). */
.hg-hero .motion-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Night under the title, daylight on the house: a clear edge between the two, no grey in between. */
    linear-gradient(
      90deg,
      rgb(17 33 37 / 0.94) 0%,
      rgb(17 33 37 / 0.88) 30%,
      rgb(17 33 37 / 0.35) 50%,
      rgb(17 33 37 / 0) 62%
    ),
    linear-gradient(0deg, rgb(17 33 37 / 0.8) 0%, rgb(17 33 37 / 0) 30%),
    linear-gradient(180deg, rgb(17 33 37 / 0.5) 0%, rgb(17 33 37 / 0) 16%);
}
.hg-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: 120px 0 calc(9svh + 40px);
}
.hg-hero__eyebrow {
  margin: 0 0 22px;
  color: var(--hg-ink);
}
/* Three lines, locked: each line is a span that never wraps; the size follows the viewport so the
   longest line ("the architecture.") fits the left half on desktop and the full width on a phone. */
.hg-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 1rem + 5.4vw, 6.25rem);
  line-height: 0.98;
  color: var(--hg-ink);
}
.hg-hero__title span {
  display: block;
  white-space: nowrap;
}
.hg-hero__title span:last-child {
  color: var(--hg-oak);
}
.hg-hero__sub {
  margin: 26px 0 0;
  max-width: 40ch;
  font-size: 1.125rem;
  color: var(--hg-ink);
}
.hg-hero__bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  background: transparent;
}
.hg-hero__bar .hg-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 9svh;
  padding-block: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 0.8125rem;
}
.hg-hero__bar .hg-btn {
  margin-left: auto;
}
.hg-hero__note {
  color: var(--hg-ink);
  font-size: var(--hg-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hg-hero__note[data-for="sample"],
.hg-hero[data-frame="sample"] .hg-hero__note[data-for="film"] {
  display: none;
}
.hg-hero[data-frame="sample"] .hg-hero__note[data-for="sample"] {
  display: inline;
}
.hg-hero__pause {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--hg-ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
/* Phone: the picture above, the words below on night — the title never sits on the photograph. */
@media (max-width: 760px) {
  .hg-hero .motion-stage {
    display: grid;
  }
  /* The picture is a band, not the screen: title, line and "Start a project" fit in the first 844px. */
  .hg-hero .motion-still {
    position: relative;
    height: 34svh;
  }
  /* The title sits below the picture on night, so the picture needs no shade but a fade into it. */
  .hg-hero .motion-stage::after {
    inset: 0 0 auto;
    height: 34svh;
    background:
      linear-gradient(0deg, var(--hg-c-night) 0%, rgb(17 33 37 / 0) 40%),
      linear-gradient(
        180deg,
        rgb(17 33 37 / 0.85) 0%,
        rgb(17 33 37 / 0.4) 22%,
        rgb(17 33 37 / 0) 40%
      );
  }
  .hg-hero__content {
    min-height: 0;
    padding: 28px 0 24px;
  }
  .hg-hero__bar {
    position: relative;
  }
  .hg-hero__bar .hg-wrap {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .hg-hero__bar .hg-btn {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .hg-hero .motion-still {
    --media-position: 78% 50%;
  }
}

/* ── home 2: opening index (elevation drawing + material switch) ─────── */
.hg-index__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(32px, 5vw, 96px);
  margin-top: 56px;
}
.hg-index__list {
  /* A fieldset is min-content wide by default; without this its scroll strip widens the page. */
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}
.hg-index__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.hg-index__group legend {
  margin-bottom: 8px;
  padding: 0;
}
.hg-index__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hg-opt {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0 9px 16px;
  border-left: 2px solid transparent;
  cursor: pointer;
  color: var(--color-ink-2);
  transition:
    color var(--hg-fast) var(--hg-ease),
    border-color var(--hg-fast) var(--hg-ease);
}
.hg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hg-opt:hover {
  color: var(--hg-ink);
}
.hg-opt:has(input:checked) {
  color: var(--hg-ink);
  border-left-color: var(--hg-oak);
  background: var(--color-accent-soft);
}
.hg-opt:has(input:focus-visible) {
  outline: 2px solid var(--hg-oak);
  outline-offset: 2px;
}
.hg-opt__count {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.hg-index__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.hg-elev {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72svh;
  background: var(--hg-linen);
}
.hg-elev svg {
  width: 100%;
  height: 100%;
}
.hg-elev__frame {
  fill: none;
  stroke: var(--hg-slate);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.hg-elev__warm {
  fill: none;
  stroke: var(--hg-oak);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity var(--hg-state) var(--hg-ease);
}
[data-material-warm="true"] .hg-elev__warm {
  opacity: 1;
}
.hg-elev__sym {
  fill: none;
  stroke: var(--hg-slate);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.hg-elev__arrow {
  fill: none;
  stroke: var(--hg-slate);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hg-elev__glass {
  fill: var(--hg-glass, rgb(255 252 246 / 0.6));
}
.hg-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-control-border);
  border-radius: 2px;
}
.hg-switch label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 10px;
  font-size: var(--hg-small);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--color-ink-2);
  transition:
    background-color var(--hg-fast) var(--hg-ease),
    color var(--hg-fast) var(--hg-ease);
}
.hg-switch label + label {
  border-left: 1px solid var(--color-control-border);
}
.hg-switch input {
  position: absolute;
  opacity: 0;
}
.hg-switch label:has(input:checked) {
  background: var(--hg-ink);
  color: var(--hg-linen);
}
.hg-switch label:has(input:focus-visible) {
  outline: 2px solid var(--hg-oak);
  outline-offset: 2px;
}
.hg-result {
  display: grid;
  gap: 22px;
}
.hg-result__title {
  margin: 0;
  font-size: var(--hg-h3);
}
.hg-h2 + .hg-result__series,
.hg-h2 + .hg-table-scroll {
  margin-top: 32px;
}
.hg-result__series {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}
.hg-result__series li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--hg-ink);
  transition: color var(--hg-fast) var(--hg-ease);
}
.hg-result__series li a:hover {
  color: var(--hg-oak);
}
.hg-result__series b {
  font-family: var(--hg-serif);
  font-size: 1.25rem;
  font-weight: 400;
}
.hg-result__series span {
  font-size: 0.875rem;
  color: var(--color-muted);
}
.hg-result__ask {
  margin: 0;
  color: var(--color-ink-2);
}
@media (max-width: 980px) {
  .hg-index__grid,
  .hg-index__stage {
    grid-template-columns: 1fr;
  }
  .hg-index__list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--hg-gutter));
    padding-inline: var(--hg-gutter);
  }
  .hg-index__group {
    display: contents;
  }
  .hg-index__group legend {
    display: none;
  }
  .hg-index__group ul {
    display: flex;
  }
  .hg-opt {
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 10px 14px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .hg-opt:has(input:checked) {
    border-bottom-color: var(--hg-oak);
  }
  .hg-opt__count {
    display: none;
  }
  .hg-elev {
    max-height: 52svh;
    margin-inline: auto;
    width: min(100%, 420px);
  }
}

/* ── home 3: construction (one photo, leader lines lit in turn) ──────── */
.hg-construct {
  --steps: 6;
}
.hg-construct__track {
  position: relative;
  height: calc(100svh + var(--steps) * 38svh);
}
.hg-construct__stage {
  position: sticky;
  isolation: isolate;
  top: 68px;
  height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.hg-construct__figure {
  position: relative;
  margin: 0;
  justify-self: center;
  /* The box is the image's own square, so a hotspot's fraction is a fraction of this box. */
  width: min(100%, calc(100svh - 150px));
  aspect-ratio: 1;
}
.hg-construct__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(-12px 24px 32px rgb(0 0 0 / 0.45));
}
.hg-construct__figure svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hg-pin {
  opacity: 0.25;
  transition: opacity var(--hg-state) var(--hg-ease);
}
.hg-pin circle {
  fill: var(--hg-linen);
  stroke: var(--hg-ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.hg-pin text {
  font: 600 11px var(--hg-sans);
  fill: var(--hg-ink);
}
.hg-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.hg-construct__figure {
  z-index: 1;
}
.hg-leader,
.hg-leader__halo {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 600ms var(--hg-ease);
}
.hg-leader {
  stroke: var(--hg-ink);
  stroke-width: 1;
}
/* A Linen halo under the line keeps it legible where it crosses the photograph. */
.hg-leader__halo {
  stroke: var(--hg-linen);
  stroke-width: 3;
  opacity: 0.85;
}
.hg-pin[data-reached] .hg-leader,
.hg-pin[data-reached] .hg-leader__halo {
  stroke-dashoffset: 0;
}
.hg-pin[data-reached] {
  opacity: 1;
}
.hg-pin[data-reached] line {
  stroke-dashoffset: 0;
}
.hg-construct__title {
  margin-bottom: 28px;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem);
}
.hg-projects__words {
  margin-bottom: 48px;
}
/* The first project large (more than half the width), the others stacked beside it. */
.hg-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 28px clamp(20px, 3vw, 40px);
}
.hg-showcase figure {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.hg-showcase figure:first-child {
  grid-row: span 3;
}
.hg-showcase img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hg-showcase figure:first-child img {
  aspect-ratio: 4 / 3;
}
.hg-showcase figcaption {
  display: grid;
  gap: 2px;
}
.hg-showcase figcaption b {
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  font-weight: 400;
}
.hg-showcase figcaption span {
  font-size: 0.875rem;
  color: var(--color-ink-2);
}
.hg-showcase__note {
  margin-top: 20px;
}
@media (max-width: 760px) {
  .hg-showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  .hg-showcase figure:first-child {
    grid-row: auto;
  }
}
.hg-parts {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: part;
  display: grid;
  gap: 2px;
}
/* Unlit parts stay readable (Muted on Linen, 6.5:1); lighting one turns it Ink and its number Oak. */
.hg-parts li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  transition:
    color var(--hg-state) var(--hg-ease),
    border-color var(--hg-state) var(--hg-ease);
}
.hg-parts li[data-reached] {
  color: var(--hg-ink);
  border-top-color: var(--hg-ink);
}
.hg-parts li[data-reached] > span {
  color: var(--hg-oak);
}
.hg-parts li > span {
  grid-row: span 2;
  font: 600 0.8125rem/1.6 var(--hg-sans);
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}
.hg-parts h3 {
  margin: 0;
  font: 600 var(--hg-label) / 1.5 var(--hg-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-parts p {
  margin: 0;
  font-size: var(--hg-small);
  line-height: 1.5;
}
.hg-construct__more {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 40px;
}
.hg-construct__more dl {
  margin: 0;
}
.hg-construct__more div {
  padding: 12px 0;
  border-top: 1px solid var(--color-line-soft);
}
.hg-construct__more dt {
  font-size: var(--hg-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-construct__more dd {
  margin: 4px 0 0;
  font-size: var(--hg-small);
}
@media (prefers-reduced-motion: reduce) {
  .hg-construct__track {
    height: auto;
  }
  .hg-construct__stage {
    position: relative;
    top: 0;
    height: auto;
  }
  .hg-pin {
    opacity: 1;
  }
  .hg-parts li {
    color: var(--hg-ink);
  }
  .hg-leader,
  .hg-leader__halo {
    stroke-dashoffset: 0;
    transition: none;
  }
}
@media (max-width: 900px) {
  .hg-construct__track {
    height: auto;
  }
  .hg-construct__stage {
    position: relative;
    top: 0;
    height: auto;
    grid-template-columns: 1fr;
  }
  .hg-leaders {
    display: none;
  }
  .hg-pin {
    opacity: 1;
  }
  .hg-parts li {
    color: var(--hg-ink);
  }
}

/* ── home 4: depth (vertical bars to scale + table) ───────────────────── */
.hg-depth__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
/* Heading and the bars to scale travel together on the left; the numbers read on the right. */
.hg-depth__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 40px;
}
.hg-depth__grid > .hg-table-scroll {
  padding-top: 120px;
}
.hg-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 28px);
  height: 46svh;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hg-slate);
}
.hg-bar {
  position: relative;
  flex: 1;
  height: calc(var(--depth) / var(--depth-max) * 100%);
  /* Each system drawn as its section: an aluminum cap over the oak timber, to depth. */
  background: linear-gradient(180deg, var(--hg-slate) 0 8px, var(--hg-c-oak) 8px);
  transform-origin: bottom;
  transition:
    background var(--hg-fast) var(--hg-ease),
    transform var(--hg-state) var(--hg-ease);
}
.hg-bar span {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.hg-bar em {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  font-style: normal;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}
.hg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hg-small);
}
.hg-table th,
.hg-table td {
  padding: 16px 12px 16px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}
.hg-table thead th {
  font-size: var(--hg-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom-color: var(--hg-slate);
}
.hg-table tbody tr {
  transition: background-color var(--hg-fast) var(--hg-ease);
}
.hg-table tbody tr:hover,
.hg-table tbody tr:focus-within {
  background: var(--color-accent-soft);
}
.hg-table tbody th a {
  font-family: var(--hg-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--hg-ink);
}
.hg-table tbody th a:hover {
  color: var(--hg-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hg-table .hg-row-note td {
  padding-top: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}
.hg-table-scroll {
  overflow-x: auto;
}
@media (max-width: 900px) {
  .hg-depth__grid {
    grid-template-columns: 1fr;
  }
  .hg-depth__aside {
    position: relative;
    top: 0;
  }
  .hg-depth__grid > .hg-table-scroll {
    padding-top: 0;
  }
  .hg-bars {
    height: 220px;
    gap: 10px;
  }
  .hg-bar span,
  .hg-bar em {
    white-space: normal;
    font-size: 0.6875rem;
    line-height: 1.2;
    width: 100%;
  }
}

/* ── home 5: factory (native snap strip) ─────────────────────────────── */
.hg-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 340px);
  gap: 18px;
  margin-top: 56px;
  padding-inline: max(var(--hg-gutter), calc((100vw - var(--hg-max)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--hg-gutter), calc((100vw - var(--hg-max)) / 2));
  scrollbar-width: thin;
  scrollbar-color: rgb(244 240 231 / 0.3) transparent;
}
.hg-strip > li {
  list-style: none;
  scroll-snap-align: start;
}
.hg-strip figure {
  margin: 0;
}
.hg-strip img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
}
.hg-strip figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding-top: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.hg-night .hg-strip figcaption b {
  font-variant-numeric: tabular-nums;
  color: rgb(244 240 231 / 0.6);
  font-weight: 600;
}
.hg-strip__end {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgb(244 240 231 / 0.24);
  aspect-ratio: 9 / 14;
}
.hg-strip__end dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.hg-night .hg-strip__end dt {
  font-size: var(--hg-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(244 240 231 / 0.72);
}
.hg-strip__end dd {
  margin: 2px 0 0;
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  line-height: 1.35;
}
.hg-factory__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hg-strip__nav {
  display: flex;
  gap: 10px;
}
.hg-strip__nav button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-control-border);
  border-radius: 2px;
  background: transparent;
  color: var(--hg-ink);
  font-size: 1.125rem;
  cursor: pointer;
  transition: border-color var(--hg-fast) var(--hg-ease);
}
.hg-strip__nav button:hover {
  border-color: var(--hg-ink);
}
@media (max-width: 760px) {
  .hg-strip {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .hg-strip__nav {
    display: none;
  }
  .hg-strip__end {
    grid-column: 1 / -1;
    aspect-ratio: auto;
  }
}

/* ── home 6: projects (four deep window openings in the wall) ────────── */
.hg-wall {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 300px));
  width: fit-content;
  max-width: 100%;
  gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
  padding: clamp(32px, 4vw, 64px);
  background: var(--hg-linen-deep);
}
.hg-wall figure {
  margin: 0;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.hg-reveal {
  padding: 14px;
  background: var(--hg-linen);
  box-shadow:
    inset 10px 12px 18px rgb(80 62 40 / 0.16),
    inset -2px -2px 0 rgb(255 255 255 / 0.5);
}
.hg-reveal img {
  width: auto;
  max-width: 100%;
  max-height: 220px;
}
.hg-wall figcaption {
  display: grid;
  gap: 2px;
}
.hg-wall figcaption b {
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
}
.hg-wall figcaption span {
  font-size: 0.875rem;
  color: var(--color-ink-2);
}

/* ── home 7: process (a timeline to scale in days) ───────────────────── */
.hg-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 0;
  margin-top: 56px;
}
.hg-terms > div {
  position: relative;
  padding: 26px 24px 0 0;
  border-top: 2px solid var(--hg-slate);
}
.hg-terms > div::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hg-linen);
  border: 2px solid var(--hg-slate);
}
.hg-terms dt {
  font-size: var(--hg-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-terms dd {
  margin: 8px 0 0;
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  line-height: 1.4;
}

/* ── home 8: proof (one column, can / cannot) ─────────────────────────── */
.hg-proof__column > * {
  max-width: 760px;
}
.hg-proof__body {
  margin-top: 40px;
}
.hg-proof__part ul {
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  line-height: 1.4;
}
.hg-proof__more {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}
.hg-proof__more summary {
  cursor: pointer;
  font-weight: 600;
}
.hg-proof__part h3 {
  margin: 0 0 14px;
  font: 600 var(--hg-label) / 1.5 var(--hg-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hg-proof__part ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
.hg-proof__part + .hg-proof__part {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--hg-slate);
}
.hg-certs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 40px;
  font-size: var(--hg-small);
}
.hg-certs div {
  padding: 12px 0;
  border-top: 1px solid var(--color-line-soft);
}
.hg-certs dt {
  font-weight: 600;
}
.hg-certs dd {
  margin: 2px 0 0;
  color: var(--color-ink-2);
}

/* ── home 9 + /quote: the RFQ ─────────────────────────────────────────── */
.hg-closing {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hg-closing__title {
  margin-bottom: 48px;
}
.hg-closing__image {
  position: sticky;
  top: 100px;
  margin: 0;
}
.hg-closing__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% 50%;
}
.hosted-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.hosted-quote[data-layout="single"] {
  grid-template-columns: 1fr;
}
.hosted-quote__step {
  min-width: 0;
  margin: 0;
  padding: 0 0 32px;
  border: 0;
  border-bottom: 1px solid var(--color-line);
}
.hosted-quote__step + .hosted-quote__step {
  padding-top: 32px;
}
.hosted-quote__step legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--hg-serif);
  font-size: 1.5rem;
}
.hosted-quote__step legend b {
  font: 600 0.8125rem var(--hg-sans);
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}
.hosted-quote__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px 22px;
}
.hosted-quote__field {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
}
.hosted-quote__field > span {
  font-weight: 600;
  color: var(--color-ink-2);
}
.hosted-quote__optional {
  font-style: normal;
  font-weight: 400;
  color: var(--color-muted);
}
/* One arrow, drawn: the native one sat on the value. */
.hosted-quote__field select {
  appearance: none;
  padding-right: 26px;
  background:
    linear-gradient(45deg, transparent 50%, var(--hg-slate) 50%) right 10px center / 5px 5px
      no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--hg-slate) 50%) right 5px center / 5px 5px
      no-repeat;
}
.hosted-quote__field input,
.hosted-quote__field select,
.hosted-quote__field textarea,
.hosted-search__input {
  /* A control's intrinsic width (~20ch) must not widen its grid column: fill it, never exceed it. */
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--color-control-border);
  border-radius: 0;
  background-color: transparent;
  color: var(--hg-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--hg-fast) var(--hg-ease);
}
.hosted-quote__field textarea {
  min-height: 96px;
  resize: vertical;
}
.hosted-quote__field input:focus,
.hosted-quote__field select:focus,
.hosted-quote__field textarea:focus,
.hosted-search__input:focus {
  outline: none;
  border-bottom: 2px solid var(--hg-oak);
  padding-bottom: 7px;
}
.hosted-quote__field [aria-invalid="true"] {
  border-bottom-color: #a33a2a;
}
/* Under its field, out of the flow: a message never moves the field or its row. */
.hosted-quote__field {
  position: relative;
}
/* In the flow, under its own input: a message takes the space it needs and never covers a neighbour.
   Rows align their fields at the top, so an error below one input moves no other input. */
.hosted-quote__error {
  color: #a33a2a;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.hosted-quote__item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)) auto;
  gap: 12px 22px;
  align-items: start;
}
.hosted-quote__remove {
  margin-top: 1.6em;
}
.hosted-quote__item + .hosted-quote__item {
  margin-top: 26px;
}
.hosted-quote__remove {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}
.hosted-quote__remove:hover {
  color: var(--hg-ink);
}
.hosted-quote__unit {
  display: inline-flex;
  border: 1px solid var(--color-control-border);
  border-radius: 2px;
}
.hosted-quote__unit label {
  padding: 6px 12px;
  font-size: 0.8125rem;
  cursor: pointer;
}
.hosted-quote__unit input {
  position: absolute;
  opacity: 0;
}
.hosted-quote__unit label:has(input:checked) {
  background: var(--hg-ink);
  color: var(--hg-linen);
}

.hosted-quote__upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.hosted-quote__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.hosted-quote__upload label {
  cursor: pointer;
}
.hosted-quote__upload:focus-within label {
  outline: 2px solid var(--hg-oak);
  outline-offset: 3px;
}
.hosted-quote__files {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.hosted-quote__files li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.hosted-quote__files progress {
  width: 120px;
  accent-color: var(--hg-oak);
}
.hosted-quote__list {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--color-line);
}
.hosted-quote__list h3 {
  margin: 0;
  font: 600 var(--hg-label) / 1.5 var(--hg-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hosted-quote__list ol {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
}
.hosted-quote__list ol li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  animation: hg-row-in var(--hg-state) var(--hg-ease);
}
.hosted-quote__list ol li span {
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.hosted-quote__empty {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.hosted-quote__list dl {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
}
.hosted-quote__list dt {
  font-weight: 600;
}
.hosted-quote__list dd {
  margin: 0;
  color: var(--color-ink-2);
}
.hosted-quote__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.hosted-quote__status,
.hosted-quote__notice {
  margin: 16px 0 0;
  font-size: 0.9375rem;
}
.hosted-quote__notice {
  margin: 0 0 40px;
  padding: 14px 16px;
  background: var(--color-accent-soft);
}
.hosted-quote__status[data-tone="error"],
.hosted-quote__notice[data-tone="error"] {
  color: #a33a2a;
}
.hosted-quote__done {
  padding: 40px 0;
}
/* Scrolled to on success, or to the first problem: clear of the sticky header. */
.hosted-quote__done,
.hosted-quote [aria-invalid="true"] {
  scroll-margin-top: 120px;
}
.hosted-quote__sent {
  margin: 16px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
  color: var(--color-ink-2);
}
.hosted-quote__done h3 {
  margin: 0 0 12px;
  font-size: var(--hg-h3);
}
@keyframes hg-row-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (max-width: 1000px) {
  .hg-closing,
  .hosted-quote {
    grid-template-columns: 1fr;
  }
  .hg-closing__image {
    position: relative;
    top: 0;
  }
  .hosted-quote__item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hosted-quote__list {
    position: sticky;
    top: auto;
    bottom: 0;
    z-index: 5;
    border-left: 0;
    border-top: 1px solid var(--color-line);
    padding: 14px 0;
    background: var(--hg-linen);
  }
  .hosted-quote__list[data-collapsed="true"] > :not(.hosted-quote__toggle) {
    display: none;
  }
}
.hosted-quote__toggle {
  display: none;
}
@media (max-width: 1000px) {
  .hosted-quote__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    background: none;
    font: 600 1rem var(--hg-sans);
    color: var(--hg-ink);
    cursor: pointer;
  }
}

/* ── opening page ─────────────────────────────────────────────────────── */
.hg-crumb {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.hg-crumb a {
  color: var(--color-ink-2);
}
.hg-crumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-faint);
}
.hg-opening__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding-block: 40px 56px;
}
.hg-opening__head h1 {
  margin: 0;
  font-size: var(--hg-display);
}
.hg-opening__head .hg-elev {
  aspect-ratio: 4 / 5;
}
.hg-materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hg-slate);
}
.hg-materials > section {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px clamp(20px, 3vw, 48px) 40px 0;
}
.hg-materials > section + section {
  padding-left: clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--color-line);
}
.hg-materials h2 {
  margin: 0;
  font-size: var(--hg-h3);
}
/* Side by side, the two materials are one grid of five rows — eyebrow, heading, offer, action, caveat — and each
   column is a subgrid over them. A column whose material states no supply draws no eyebrow, and its heading still
   lands in the heading row, level with the other column's: the row is held by the other column, not by a
   placeholder, and nothing is nudged by a margin. The parent's row gap is the rhythm here; the column's own gap
   would double it. */
@media (min-width: 861px) {
  .hg-materials {
    grid-template-rows: repeat(5, auto);
    row-gap: 18px;
  }
  .hg-materials > section {
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
    gap: 0;
  }
  .hg-materials > section > .hg-eyebrow {
    grid-row: 1;
  }
  .hg-materials > section > h2 {
    grid-row: 2;
  }
  .hg-materials > section > .hg-result__series,
  .hg-materials > section > .hg-result__ask {
    grid-row: 3;
  }
  .hg-materials > section > div {
    grid-row: 4;
  }
  .hg-materials > section > .hg-cite {
    grid-row: 5;
  }
}
.hg-scene {
  margin: var(--hg-section) 0 0;
  position: relative;
}
.hg-scene img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hg-scene figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 2px 8px;
  background: rgb(244 240 231 / 0.82);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hg-adv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 40px;
}
.hg-adv div {
  padding: 18px 0;
  border-top: 1px solid var(--color-line);
}
.hg-adv dt {
  font-family: var(--hg-serif);
  font-size: 1.25rem;
}
.hg-adv dd {
  margin: 6px 0 0;
  color: var(--color-ink-2);
  font-size: var(--hg-small);
}
@media (max-width: 860px) {
  .hg-opening__head,
  .hg-materials {
    grid-template-columns: 1fr;
  }
  .hg-materials > section + section {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }
  .hg-opening__head .hg-elev {
    width: min(100%, 300px);
  }
}

/* ── series page ──────────────────────────────────────────────────────── */
.hg-series__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-block: 40px 72px;
}
.hg-series__head:not(.hg-series__head--solo) {
  grid-template-columns: auto minmax(0, 1fr);
}
/* A customer photograph fills its column; a brochure drawing keeps its own size (the rule above). */
.hg-series__head--photo {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}
.hg-series__head--photo .hg-series__figure img {
  width: 100%;
}
/* The plate is the drawing's own size plus a margin: no empty field around a 420px brochure figure. */
.hg-series__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(24px, 3vw, 44px);
  background: var(--hg-linen-deep);
}
.hg-series__figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.hg-series__head--solo {
  grid-template-columns: minmax(0, 760px);
}
.hg-series__head h1 {
  margin: 0;
  font-size: var(--hg-display);
}
.hg-spec {
  margin: 28px 0;
  display: grid;
  border-top: 1px solid var(--hg-slate);
}
.hg-spec > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}
.hg-spec dt {
  font-size: var(--hg-small);
  color: var(--color-ink-2);
}
.hg-spec dd {
  margin: 0;
  font-family: var(--hg-serif);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums lining-nums;
}
.hg-spec dd small {
  font-family: var(--hg-sans);
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.hg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  /* The row ends above the footer band, not against it. */
  margin: 40px 0 clamp(48px, 6vw, 88px);
}
.hg-gallery figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hg-linen-deep);
}
.hg-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .hg-series__head,
  .hg-series__head:not(.hg-series__head--solo) {
    grid-template-columns: 1fr;
  }
  .hg-wall {
    grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr));
  }
}

/* ── prose (hub / page bodies) ────────────────────────────────────────── */
.hg-prose {
  max-width: 68ch;
  font-size: var(--hg-body);
}
.hg-prose h2 {
  margin: 1.6em 0 0.5em;
  font-size: var(--hg-h3);
}
.hg-prose p,
.hg-prose ul,
.hg-prose ol {
  margin: 0 0 1em;
}
.hg-prose a {
  color: var(--hg-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── shell pages: search, status (the @zeroy/hosted-ui/shell roles) ────── */
.hosted-search {
  max-width: 760px;
}
.hosted-search__form {
  display: flex;
  align-items: end;
  gap: 22px;
  margin: 30px 0;
}
.hosted-search__hits {
  border-top: 1px solid var(--color-line);
}
.hosted-search__hit {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}
/* The hit's document type: a key, not words this site shows. */
.hosted-search__type {
  display: none;
}
.hosted-search__link {
  font-family: var(--hg-serif);
  font-size: 1.25rem;
  color: var(--hg-ink);
  transition: color var(--hg-fast) var(--hg-ease);
}
.hosted-search__link:hover {
  color: var(--hg-oak);
}
.hosted-search__snippet {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.hosted-status {
  display: grid;
  justify-items: start;
  gap: 18px;
  min-height: 50vh;
  align-content: center;
}

/* ── arrivals (AOS, once: rise 16px / 600ms; photos unmask from their subject side) ── */
.arrivals-ready [data-aos] {
  transition:
    opacity var(--hg-enter) var(--hg-ease),
    transform var(--hg-enter) var(--hg-ease),
    clip-path 900ms var(--hg-ease);
  transition-delay: var(--delay, 0ms);
}
.arrivals-ready [data-aos="rise"]:not(.aos-animate) {
  opacity: 0;
  transform: translateY(16px);
}
.arrivals-ready [data-aos="unmask"]:not(.aos-animate) {
  clip-path: inset(0 0 0 100%);
}
.arrivals-ready [data-aos="unmask"] img {
  transition: transform 900ms var(--hg-ease);
}
.arrivals-ready [data-aos="unmask"]:not(.aos-animate) img {
  transform: scale(1.06);
}
.arrivals-preparing [data-aos] {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .arrivals-ready [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
.hosted-quote__field[data-wide] {
  grid-column: 1 / -1;
}
.hg-h2 + .hg-wall {
  margin-top: 48px;
}

/* ── W5 pages: shared head, blocks, closing band ──────────────────────── */
.hg-page__head {
  padding-block: 40px 56px;
}
.hg-page__head h1,
.hg-material__head h1 {
  margin: 0;
  font-size: var(--hg-display);
  line-height: 1;
  max-width: 14ch;
}
.hg-block {
  padding-block: clamp(56px, 3rem + 3vw, 104px) 0;
}
.hg-block > .hg-h3 {
  margin-bottom: 28px;
}
.hg-closing-band {
  display: flex;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-block: var(--hg-section);
}
.hg-closing-band .hg-h3 {
  max-width: 30ch;
  line-height: 1.25;
}
.hg-plate {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 44px);
  background: var(--hg-linen-deep);
}
.hg-plate img {
  width: auto;
  max-width: 100%;
  max-height: min(68vh, 640px);
  object-fit: contain;
}
.hg-plate--wide img {
  max-height: min(62vh, 560px);
}

/* facts: label · value, with where it was read */
.hg-facts {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--hg-slate);
}
.hg-facts > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.hg-facts dt {
  font-size: var(--hg-small);
  color: var(--color-ink-2);
}
.hg-facts dd {
  margin: 0;
  display: grid;
  gap: 4px;
}
.hg-facts dd > span {
  font-family: var(--hg-serif);
  font-size: 1.1875rem;
  line-height: 1.35;
}

/* colors and glass: a material's own list, drawn on its page and on every series page of it */
.hg-colors {
  display: grid;
  gap: clamp(32px, 3.4vw, 48px);
}
/* A page whose sections are hg-section (a series) titles them with hg-h2, which carries no bottom margin. */
.hg-section > .hg-h2 + .hg-colors {
  margin-top: 34px;
}
.hg-colors__side {
  display: grid;
  gap: 16px;
}
.hg-colors__side > .hg-eyebrow {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hg-slate);
  color: var(--color-ink-2);
}
.hg-swatches {
  display: grid;
  gap: 12px;
}
.hg-swatches__title {
  margin: 0;
  font-family: var(--hg-serif);
  font-size: 1.125rem;
  color: var(--color-ink-2);
}
.hg-swatches__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  gap: 22px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hg-swatches__list li {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
/* The chip is a hint beside its name: a hairline and a halo keep a white one and a black one apart from the page. */
.hg-swatch {
  width: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hg-tone);
  box-shadow:
    0 0 0 1px var(--color-control-border),
    0 0 0 6px var(--color-line-soft);
}
/* A photographed finish: the swatch shows its own cell of the row's strip. */
.hg-swatch--texture {
  background: var(--hg-texture) var(--hg-texture-at) / var(--hg-texture-size) no-repeat;
}
/* The custom color has no one tone: an empty, dashed chip. */
.hg-swatch--custom {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--color-control-border);
}
.hg-swatch__name {
  font-size: var(--hg-small);
  line-height: 1.3;
  color: var(--color-ink-2);
}
.hg-glasses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--hg-serif);
  font-size: 1.125rem;
}
.hg-colors__note {
  margin: 22px 0 0;
}

/* ── group index (/windows, /doors, /facades) ─────────────────────────── */
.hg-types {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 40px);
}
.hg-types a {
  display: grid;
  gap: 12px;
  color: inherit;
}
.hg-types figure {
  margin: 0 0 6px;
  position: relative;
  overflow: hidden;
  background: var(--hg-linen-deep);
}
.hg-types img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms var(--hg-ease);
}
.hg-types a:hover img {
  transform: scale(1.03);
}
.hg-types figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgb(244 240 231 / 0.82);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hg-types h2 {
  transition: color var(--hg-fast) var(--hg-ease);
}
.hg-types a:hover h2 {
  color: var(--hg-oak);
}
.hg-types p {
  margin: 0;
  color: var(--color-ink-2);
  font-size: var(--hg-small);
}
.hg-types dl {
  margin: 4px 0 0;
  border-top: 1px solid var(--color-line);
}
.hg-types dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 0.875rem;
}
.hg-types dt {
  color: var(--color-muted);
}
.hg-types dd {
  margin: 0;
}
.hg-types__ask {
  color: var(--color-muted);
  font-style: italic;
}
.hg-also {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: 72px;
}
.hg-also .hg-eyebrow {
  margin: 0;
}
.hg-also a {
  font-family: var(--hg-serif);
  font-size: var(--hg-h3);
  color: var(--hg-ink);
}
.hg-also a:hover {
  color: var(--hg-oak);
}

/* ── material (/aluminum-clad-wood, /aluminum) ────────────────────────── */
.hg-material__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding-block: 40px 24px;
}
.hg-material__head--solo {
  grid-template-columns: minmax(0, 760px);
}
.hg-material__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 32px 0 18px;
}
.hg-offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px clamp(24px, 4vw, 64px);
}
.hg-offer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hg-slate);
}
.hg-offer li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}
.hg-offer li > a:first-child {
  font-family: var(--hg-serif);
  font-size: 1.1875rem;
  color: var(--hg-ink);
}
.hg-offer li > a:first-child:hover,
.hg-offer__ask:hover {
  color: var(--hg-oak);
}
.hg-offer li > span {
  font-size: 0.875rem;
  color: var(--color-ink-2);
}
.hg-offer__ask {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hg-ink);
}
.hg-guides {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 1px solid var(--hg-slate);
}
.hg-guides a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  height: 100%;
  padding: 22px 24px 26px 0;
  border-bottom: 1px solid var(--color-line);
  color: inherit;
}
.hg-guides b {
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  font-weight: 400;
}
.hg-guides span:not(.hg-arrow) {
  grid-column: 1;
  font-size: var(--hg-small);
  color: var(--color-ink-2);
}
.hg-guides .hg-arrow {
  grid-row: 1;
  grid-column: 2;
}
.hg-guides a:hover b {
  color: var(--hg-oak);
}

/* ── content page (§6.5): body + sticky contents ──────────────────────── */
.hg-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.hg-article--solo {
  grid-template-columns: minmax(0, 1fr);
}
.hg-article__body {
  min-width: 0;
}
.hg-article__aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 36px;
  padding-top: clamp(56px, 3rem + 3vw, 104px);
}
.hg-toc summary {
  cursor: pointer;
  list-style: none;
}
.hg-toc summary::-webkit-details-marker {
  display: none;
}
.hg-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--color-line);
}
.hg-toc li a {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 0.9375rem;
  color: var(--color-ink-2);
}
.hg-toc li a:hover {
  color: var(--hg-oak);
}
.hg-frames {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px 28px;
}
.hg-frames figure {
  margin: 0 0 12px;
  background: var(--hg-linen-deep);
}
.hg-frames img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hg-frames p {
  margin: 0;
  font-size: var(--hg-small);
  color: var(--color-ink-2);
}
.hg-frames b {
  margin-right: 6px;
  color: var(--hg-ink);
}
.hg-utable + .hg-utable {
  margin-top: 40px;
}
.hg-utable h3 {
  margin: 0 0 12px;
  font-family: var(--hg-serif);
  font-size: 1.375rem;
  font-weight: 400;
}

/* ── projects ─────────────────────────────────────────────────────────── */
.hg-projects-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(72px, 8vw, 136px);
}
.hg-projects-list > li {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--hg-slate);
}
.hg-projects-list .hg-h3 span {
  color: var(--color-ink-2);
}
.hg-projects-list .hg-spec {
  margin-block: 20px 12px;
}
.hg-projects-list .hg-spec a {
  color: var(--hg-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.125rem;
}
.hg-projects-list__text {
  display: grid;
  align-content: start;
  gap: 4px;
}
.hg-projects-list__text .hg-link {
  margin-top: 16px;
  justify-self: start;
}
.hg-projects-list__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hg-projects-list__photos > figure {
  margin: 0;
}
.hg-projects-list__photos > figure:first-child {
  grid-column: 1 / -1;
}
.hg-projects-list__photos img {
  width: 100%;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hg-projects-list__photos--one {
  grid-template-columns: minmax(0, 1fr);
}

/* ── certificates ─────────────────────────────────────────────────────── */
.hg-cannot {
  max-width: 64ch;
  padding: 18px 22px;
  border-left: 2px solid var(--hg-oak);
  background: var(--color-accent-soft);
}
.hg-cannot p {
  margin: 0;
}
.hg-certgroup {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 88px);
  margin-top: clamp(56px, 3rem + 3vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--hg-slate);
}
.hg-certgroup__head {
  display: grid;
  align-content: start;
  gap: 12px;
}
.hg-certgroup ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hg-certgroup li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.hg-certgroup li:first-child {
  padding-top: 0;
}
.hg-certgroup li b {
  font-family: var(--hg-serif);
  font-size: 1.1875rem;
  font-weight: 400;
}
.hg-certgroup li > span:not(.hg-cite) {
  font-size: var(--hg-small);
  color: var(--color-ink-2);
}

@media (max-width: 900px) {
  .hg-material__head,
  .hg-article,
  .hg-projects-list > li,
  .hg-certgroup {
    grid-template-columns: minmax(0, 1fr);
  }
  .hg-article__aside {
    position: static;
    order: -1;
    padding-top: 0;
  }
  .hg-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hg-offer h3 {
  font-family: var(--hg-sans);
}
.hg-more {
  margin-top: 32px;
}
@media (max-width: 600px) {
  .hg-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
/* Every content page opens on a night band (the hero's grammar): crumb, title, lede, its first action. */
.hg-band {
  padding-bottom: clamp(40px, 4vw, 72px);
}
.hg-band .hg-page__head,
.hg-band .hg-material__head {
  padding-bottom: 0;
}
.hg-band + .hg-wrap > .hg-plate:first-child,
.hg-band + .hg-wrap > .hg-types:first-child,
.hg-band + .hg-wrap > .hg-projects-list:first-child,
.hg-band + .hg-wrap > .hg-cannot:first-child {
  margin-top: clamp(48px, 5vw, 88px);
}
/* The brochure drawing is multiplied onto its plate: on a night band the plate stays paper. */
.hg-band .hg-series__figure {
  background: var(--hg-c-paper);
}
.hg-band .hg-series__figure figcaption {
  color: var(--hg-c-muted);
}
.hg-band + .hg-wrap > .hg-materials:first-child,
.hg-band + .hg-wrap > .hg-section:first-child {
  margin-top: clamp(48px, 5vw, 88px);
}
/* A series whose source states no figures: the openings start under the plate, not after an empty band. */
.hg-band + .hg-wrap > .hg-section--tight:first-child {
  margin-top: 0;
  padding-top: clamp(24px, 3vw, 40px);
}
.hg-night .hosted-quote__error {
  color: #f0a08f;
}
/* The series a series page carried into the RFQ: named, and removable. */
.hosted-quote__chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  font-size: 0.9375rem;
}
.hosted-quote__chosen button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
/* A link to #rfq (or any anchor) lands below the sticky header, not under it. */
html:has(.hg-head) {
  scroll-padding-top: 88px;
}

/* ── band head: text left, the page's own subject right ───────────────── */
.hg-bandhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding-top: 40px;
}
.hg-bandhead--solo {
  grid-template-columns: minmax(0, 820px);
}
.hg-bandhead h1 {
  margin: 0;
  font-size: var(--hg-display);
  line-height: 1;
  max-width: 14ch;
}
.hg-bandhead__aside {
  min-width: 0;
}
.hg-bandhead__aside .hg-plate {
  background: var(--hg-c-paper);
}
.hg-bandhead__aside .hg-plate figcaption {
  color: var(--hg-c-muted);
}
.hg-bandhead__aside .hg-cannot {
  max-width: none;
  padding: 28px 32px;
  border-left-color: var(--hg-c-gold);
  background: var(--hg-c-night-raise);
  font-family: var(--hg-serif);
  font-size: var(--hg-h3);
  line-height: 1.3;
}
.hg-band__photo {
  margin: 0;
  display: grid;
  gap: 10px;
}
.hg-band__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hg-elevations {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  align-items: end;
}
.hg-elevations figure {
  margin: 0;
  display: grid;
  gap: 10px;
}
.hg-elevations .hg-elev {
  background: transparent;
}
.hg-elevations figcaption {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.hg-quote-body {
  padding-block: clamp(48px, 5vw, 88px) var(--hg-section);
}
.hg-bandhead__text .hg-lede {
  max-width: 46ch;
}
@media (max-width: 900px) {
  .hg-bandhead {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hg-bandhead__aside .hg-plate img {
  max-height: min(52svh, 480px);
}

/* The RFQ's opening row is one line of cells (@zeroy/hosted-ui/quote): the row's head (its number and
   summary) is read by assistive tech only, its Remove closes the line, a "copied" note spans it. */
.hosted-quote__item {
  position: relative;
}
.hosted-quote__head,
.hosted-quote__cells {
  display: contents;
}
.hosted-quote__head > b,
.hosted-quote__sum {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hosted-quote__head > .hosted-quote__remove {
  order: 1;
}
.hosted-quote__item > .hosted-quote__hint {
  grid-column: 1 / -1;
  margin: 0;
}
.hosted-quote__hint,
.hosted-quote__count {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.hosted-quote__count[data-tone="error"] {
  color: #a33a2a;
}
.hosted-quote__notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.hosted-quote__notice .hosted-quote__remove {
  min-height: 32px;
  text-decoration: underline;
}
.hosted-quote__need {
  margin: 12px 0 0;
  font-style: italic;
  color: var(--color-ink-2);
}
