/* ==========================================================================
   CHR Builds — How It Works (process explorer)
   The page reveals itself in order: your project, the scope, what happens next.
   Every path's copy is in the HTML (the library), which is also the no-script fallback.
   Colors stay within the site palette: gold for choices and progress, blue for planning
   and timing, coral only for validation.
   ========================================================================== */

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

.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1.5px;
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold-glow);
}
.site-header.nav-open .main-nav a[aria-current="page"]::after { display: none; }
.site-header.nav-open .main-nav a[aria-current="page"] { color: var(--color-gold-bright); }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; padding: 0; color: var(--color-text-muted); font-size: 0.85rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--color-gold); }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: var(--color-text); }

.hiw { position: relative; isolation: isolate; }
.hiw [hidden] { display: none !important; }

/* A faint planning grid appears once the visitor has chosen a project */
.hiw-blueprint {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(157, 183, 213, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 183, 213, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 50%, #000 25%, transparent 78%);
  transition: opacity 1.4s ease;
}
.hiw.has-project .hiw-blueprint { opacity: 1; }

/* ---- Opening ---- */
.hiw-open { padding: 150px 0 28px; }
.hiw-open-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 56px; }
.hiw-intro h1 { margin: 10px 0 18px; font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.04; }
.hiw-lede { max-width: 560px; margin: 0; color: var(--color-text-muted); font-size: 1.15rem; line-height: 1.7; }
.hiw-photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; max-height: 330px; border-radius: 18px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); }
.hiw-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(5, 9, 15, 0.55)); }
.hiw-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Progress: Your project → The scope → What happens next */
.hiw-progress { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; padding: 0; }
.hiw-progress li { position: relative; }
.hiw-progress li:not(:last-child)::after { content: ''; position: absolute; top: 6px; right: 0; left: 20px; height: 1px; background: rgba(205, 170, 114, 0.22); }
.hiw-progress li.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--color-gold-bright), rgba(205, 170, 114, 0.4)); }
.hiw-progress a { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 22px 12px 0 0; color: var(--color-text-dim); text-decoration: none; }
.hiw-progress li:not(.is-open) a { pointer-events: none; cursor: default; }
.hiw-progress-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(205, 170, 114, 0.5); background: var(--color-ink); transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.hiw-progress-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hiw-progress-value { min-height: 1.4em; color: #fff; font-size: 0.92rem; line-height: 1.35; }
.hiw-progress li.is-current .hiw-progress-label { color: #fff; }
.hiw-progress li.is-current .hiw-progress-dot { border-color: var(--color-gold-bright); box-shadow: 0 0 0 5px rgba(176, 141, 87, 0.15), 0 0 16px rgba(205, 170, 114, 0.6); }
.hiw-progress li.is-done .hiw-progress-label { color: var(--color-gold-bright); }
.hiw-progress li.is-done .hiw-progress-dot { border-color: var(--color-gold-bright); background: var(--color-gold-bright); }
.hiw-progress li.is-open a:hover .hiw-progress-label { color: #fff; }
.hiw-progress a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }

/* ---- Steps ---- */
.hiw-step { padding: 54px 0; }
.hiw-question { margin: 0 0 8px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
.hiw-question:focus { outline: none; }
.hiw-helper { margin: 0 0 26px; color: var(--color-text-muted); font-size: 1.02rem; }

/* Choice cards (single-choice radios with a visible check) */
.hiw-cards { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hiw-cards--projects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hiw-cards--scopes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hiw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 50px 20px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, translate 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}
.hiw-card input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.hiw-card-icon { display: block; width: 36px; height: 36px; }
.hiw-icon { display: block; width: 100%; height: 100%; fill: none; stroke: var(--color-gold-bright); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hiw-card-label { color: #fff; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.hiw-card-line { color: var(--color-text-muted); font-size: 0.88rem; line-height: 1.45; }
.hiw-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); transition: background 0.25s ease, border-color 0.25s ease; }
.hiw-check::after { content: '\2713'; color: var(--color-ink); font-size: 0.72rem; font-weight: 700; opacity: 0; transition: opacity 0.2s ease; }
.hiw-card:hover { border-color: rgba(205, 170, 114, 0.5); translate: 0 -2px; }
.hiw-card:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.hiw-card:has(input:checked) { border-color: var(--color-gold-bright); background: linear-gradient(180deg, rgba(176, 141, 87, 0.18), rgba(176, 141, 87, 0.06)); box-shadow: 0 0 40px rgba(176, 141, 87, 0.16); }
.hiw-card:has(input:checked) .hiw-check { border-color: var(--color-gold-bright); background: var(--color-gold-bright); }
.hiw-card:has(input:checked) .hiw-check::after { opacity: 1; }
.has-project .hiw-cards--projects .hiw-card:not(:has(input:checked)) { opacity: 0.6; }
.has-project .hiw-cards--projects .hiw-card:not(:has(input:checked)):hover,
.has-project .hiw-cards--projects .hiw-card:not(:has(input:checked)):focus-within { opacity: 1; }
.js .hiw-cards--projects .hiw-card { animation: hiw-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.15s + var(--i) * 60ms); }
.hiw-card--scope { padding-top: 22px; }

.hiw-talk { margin: 24px 0 0; }
.hiw-talk a { color: var(--color-link); font-weight: 600; text-underline-offset: 4px; }
.hiw-talk a:hover { color: #fff; }

/* Compact summary of the choice, with a way back */
.hiw-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid rgba(205, 170, 114, 0.45); background: rgba(5, 9, 15, 0.6); }
.hiw-summary-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(205, 170, 114, 0.55); background: rgba(176, 141, 87, 0.16); transition: opacity 0.2s ease; }
.hiw-summary-icon .hiw-icon { width: 22px; height: 22px; stroke-width: 1.6; }
.hiw-summary-icon.is-awaiting { opacity: 0; }
.hiw-summary-text { margin: 0; color: var(--color-text-muted); font-size: 0.96rem; }
.hiw-summary-text strong { color: #fff; font-weight: 600; }
.hiw-summary-sep { color: var(--color-gold); }
.hiw-summary-actions { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.hiw-link { padding: 0; border: 0; background: none; color: var(--color-link); font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hiw-link:hover { color: #fff; }
.hiw-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 3px; }

/* The chosen icon travelling to the next step */
.hiw-ghost { position: fixed; z-index: 90; display: block; margin: 0; pointer-events: none; transform-origin: 0 0; transition: transform 0.72s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.72s ease; }
.hiw-ghost .hiw-icon { filter: drop-shadow(0 0 10px rgba(205, 170, 114, 0.85)); }

/* Scope step unfolds under the cards */
.hiw-scopes.is-revealed .container { animation: hiw-unfold 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hiw-scopes.is-revealed .hiw-card { animation: hiw-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.25s + var(--i) * 80ms); }
.hiw-show-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.hiw-show.is-pending { animation: hiw-pulse 1.8s ease-out infinite; }
.hiw-validate { margin: 0; color: #E8957A; font-weight: 600; }

/* ---- The walkthrough ---- */
.hiw-result.is-revealed .hiw-summary,
.hiw-result.is-revealed .hiw-result-head { animation: hiw-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hiw-result.is-revealed .hiw-result-head { animation-delay: 0.1s; }
.hiw-result-head { max-width: 780px; margin-bottom: 36px; }
.hiw-result-title { margin: 8px 0 14px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; }
.hiw-result-title:focus { outline: none; }
.hiw-result-intro { max-width: 680px; margin: 0; color: var(--color-text); font-size: 1.12rem; line-height: 1.7; }
.hiw-result-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 60px; }

/* Sticky rail: a sketch of the home takes shape as the stages are read */
.hiw-rail { position: sticky; top: 112px; }
.hiw-sketch { display: block; width: 100%; height: auto; overflow: visible; }
.sk { opacity: 0; transition: opacity 0.8s ease; }
.sk.is-on { opacity: 1; }
.sk-ground { stroke: rgba(238, 241, 245, 0.3); stroke-width: 1.5; }
.sk-dash { fill: none; stroke: rgba(205, 170, 114, 0.85); stroke-width: 1.4; stroke-dasharray: 5 5; }
.sk-measure { fill: none; stroke: rgba(205, 170, 114, 0.6); stroke-width: 1.2; }
.sk-lens { fill: none; stroke: var(--color-gold-bright); stroke-width: 1.6; stroke-linecap: round; }
.sk-grid { fill: none; stroke: rgba(157, 183, 213, 0.5); stroke-width: 1; }
.sk-dim { fill: none; stroke: rgba(157, 183, 213, 0.75); stroke-width: 1.2; }
.sk-doc { fill: #0F1D33; stroke: rgba(238, 241, 245, 0.6); stroke-width: 1.2; }
.sk-doc-line { stroke: rgba(238, 241, 245, 0.45); stroke-width: 1.4; }
.sk-doc-check { fill: none; stroke: var(--color-gold-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-wall { fill: rgba(255, 255, 255, 0.04); stroke: #EEF1F5; stroke-width: 2; stroke-linejoin: round; }
.sk-win, .sk-door { fill: #0B1729; stroke: rgba(238, 241, 245, 0.7); stroke-width: 1.4; }
.sk-glow { fill: rgba(242, 201, 135, 0.85); filter: drop-shadow(0 0 8px rgba(242, 201, 135, 0.8)); }
.sk-glow--door { fill: rgba(242, 201, 135, 0.4); }
.sk-badge { fill: var(--color-gold-bright); }
.sk-badge-check { fill: none; stroke: var(--color-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hiw-rail-list { list-style: none; margin: 20px 0 0; padding: 0; border-left: 1px solid var(--border-subtle); }
.hiw-rail-list li { margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--color-text-dim); font-size: 0.82rem; line-height: 1.35; transition: color 0.4s ease, border-color 0.4s ease; }
.hiw-rail-list li.is-on { color: var(--color-text-muted); }
.hiw-rail-list li.is-current { border-left-color: var(--color-gold-bright); color: #fff; }

/* Five stages, all visible, joined by a line that fills as they are read */
.hiw-stages { position: relative; list-style: none; margin: 0; padding: 0; }
.hiw-stage { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 22px; padding-bottom: 38px; }
.hiw-stage:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 60px;
  bottom: 2px;
  left: 28px;
  width: 2px;
  background: linear-gradient(var(--color-gold-bright), var(--color-gold-bright)) no-repeat 0 0 / 2px calc(var(--sp, 0) * 100%), rgba(255, 255, 255, 0.08);
}
.hiw-stage-node { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid rgba(205, 170, 114, 0.5); background: #0B1729; transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease; }
.hiw-stage-node .hiw-icon { width: 26px; height: 26px; }
.hiw-stage-num { position: absolute; top: -4px; right: -4px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(205, 170, 114, 0.6); background: var(--color-ink); color: var(--color-gold-bright); font-size: 0.68rem; font-weight: 700; }
.hiw-stage.is-active .hiw-stage-node,
.hiw-stage.is-passed .hiw-stage-node { border-color: var(--color-gold-bright); background: #13233D; box-shadow: 0 0 0 6px rgba(176, 141, 87, 0.12), 0 0 28px rgba(205, 170, 114, 0.32); }
.hiw-stage-body { padding-top: 10px; }
.hiw-stage-title { margin: 0 0 8px; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.38rem; line-height: 1.25; }
.hiw-stage-text { max-width: 650px; margin: 0; color: #C3CBD6; font-size: 1.04rem; line-height: 1.75; }
.hiw-result.is-revealed .hiw-stage { animation: hiw-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.3s + var(--i) * 0.12s); }
.hiw-result.is-revealed .hiw-rail { animation: hiw-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }

/* Preparation and timing, then related work */
.hiw-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0 0; }
.hiw-note { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border-subtle); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); }
.hiw-note h3 { margin: 0 0 8px; color: var(--color-gold-bright); font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.hiw-note--time { border-color: rgba(157, 183, 213, 0.3); }
.hiw-note--time h3 { color: #9DB7D5; }
.hiw-note p { margin: 0; color: var(--color-text); line-height: 1.65; }
.hiw-related { margin-top: 36px; }
.hiw-related h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.hiw-related-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hiw-related-pair--single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.hiw-related-pair figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--border-subtle); }
.hiw-related-pair img { width: 100%; height: 100%; object-fit: cover; }
.hiw-related-pair figcaption { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px; background: rgba(5, 9, 15, 0.72); color: #fff; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hiw-related-link { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--color-gold-bright); font-weight: 600; text-decoration: none; }
.hiw-related-link::after { content: '\2192'; transition: translate 0.3s ease; }
.hiw-related-link:hover::after { translate: 4px 0; }

/* ---- Shared questions ---- */
.hiw-faq { padding-top: 10px; }
.hiw-faq-list { display: grid; gap: 10px; max-width: 840px; }
.hiw-faq-item { border-radius: 14px; border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.025); transition: border-color 0.3s ease, background 0.3s ease; }
.hiw-faq-item[open] { border-color: rgba(205, 170, 114, 0.4); background: rgba(176, 141, 87, 0.05); }
.hiw-faq-item summary { position: relative; padding: 18px 56px 18px 22px; color: #fff; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.35; list-style: none; cursor: pointer; }
.hiw-faq-item summary::-webkit-details-marker { display: none; }
.hiw-faq-item summary::after { content: '+'; position: absolute; top: 50%; right: 22px; translate: 0 -50%; color: var(--color-gold-bright); font-family: var(--font-body); font-size: 1.4rem; transition: rotate 0.3s ease; }
.hiw-faq-item[open] summary::after { rotate: 45deg; }
.hiw-faq-item summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 14px; }
.hiw-faq-item p { margin: 0; padding: 0 22px 20px; color: var(--color-text-muted); line-height: 1.7; }

/* ---- Estimate ---- */
.hiw-cta { padding-bottom: 110px; }
.hiw-cta-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(30px, 5vw, 56px); border-radius: 20px; border: 1px solid rgba(176, 141, 87, 0.45); background: radial-gradient(ellipse at 0% 0%, rgba(176, 141, 87, 0.16), transparent 55%), linear-gradient(160deg, #10203A, #08111F); box-shadow: var(--shadow-lg), 0 0 70px rgba(176, 141, 87, 0.1); }
.hiw-cta-card h2 { max-width: 640px; margin: 0 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; }
.hiw-cta-card h2:focus { outline: none; }
.hiw-cta-body { max-width: 600px; margin: 0; color: var(--color-text); font-size: 1.1rem; line-height: 1.7; }
.hiw-cta-summary { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 0; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(205, 170, 114, 0.45); background: rgba(5, 9, 15, 0.5); color: var(--color-text-muted); font-size: 0.95rem; }
.hiw-cta-summary strong { color: #fff; font-weight: 600; }
.hiw-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.hiw-cta-support { margin: 0; color: var(--color-text-dim); font-size: 0.9rem; }
.hiw-form { margin-top: 28px; }
.hiw-form-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(205, 170, 114, 0.5); background: rgba(176, 141, 87, 0.08); }
.hiw-form-notice p { margin: 0; color: var(--color-text); font-size: 0.92rem; }

/* ---- Library: hidden when the explorer runs; the full no-script fallback otherwise ---- */
.js .hiw-library { display: none; }
.hiw-library { padding: 10px 0 40px; }
.hiw-lib-shared { max-width: 780px; }
.hiw-lib-shared p { color: var(--color-text); }
.hiw-lib-stages { margin: 14px 0 0; padding-left: 22px; color: #fff; }
.hiw-lib-stages li { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.1rem; }
.hiw-lib-stages li p { margin: 4px 0 0; color: var(--color-text-muted); font-family: var(--font-body); font-size: 0.98rem; line-height: 1.65; }
.hiw-lib-service { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border-subtle); scroll-margin-top: 100px; }
.hiw-lib-name { margin: 0 0 14px; font-size: 1.8rem; }
.hiw-lib-block h4, .hiw-lib-scope h5 { margin: 14px 0 4px; color: var(--color-gold-bright); font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hiw-lib-block p, .hiw-lib-scope p { max-width: 720px; margin: 0; color: var(--color-text); line-height: 1.7; }
.hiw-lib-scopes { display: grid; gap: 16px; margin: 20px 0; }
.hiw-lib-scope { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.025); scroll-margin-top: 100px; }
.hiw-lib-scope h4 { margin: 4px 0 6px; font-size: 1.3rem; }
.hiw-lib-option { margin-bottom: 4px !important; color: var(--color-text-muted) !important; font-size: 0.9rem; }
.hiw-lib-option-label { color: var(--color-gold-bright); font-weight: 600; }
html:not(.js) .hiw-cards--projects, html:not(.js) .hiw-progress { display: none; }
.hiw-nojs-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.hiw-nojs-list a { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-subtle); color: #fff; font-family: var(--font-display); text-decoration: none; }

@keyframes hiw-rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes hiw-unfold {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes hiw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(205, 170, 114, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(205, 170, 114, 0); }
}

@media (max-width: 1100px) {
  .hiw-result-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hiw-rail { display: none; }
}
@media (max-width: 900px) {
  .hiw-open-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hiw-photo { max-height: 220px; aspect-ratio: 16 / 7; }
  .hiw-cards--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-nojs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hiw-open { padding: 118px 0 14px; }
  .hiw-photo { display: none; }
  .hiw-step { padding: 40px 0; }
  .hiw-cards { gap: 10px; }
  .hiw-card { gap: 6px; padding: 16px 38px 16px 14px; border-radius: 14px; }
  .hiw-card-icon { width: 30px; height: 30px; }
  .hiw-card-label { font-size: 1.04rem; }
  .hiw-card-line { font-size: 0.8rem; }
  .hiw-check { top: 12px; right: 12px; width: 20px; height: 20px; }
  .hiw-cards--scopes { grid-template-columns: minmax(0, 1fr); }
  .hiw-progress-label { font-size: 0.62rem; letter-spacing: 0.1em; }
  .hiw-progress-value { font-size: 0.8rem; }
  .hiw-summary { border-radius: 18px; }
  .hiw-stage { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding-bottom: 30px; }
  .hiw-stage:not(:last-child)::before { top: 48px; left: 22px; }
  .hiw-stage-node { width: 46px; height: 46px; }
  .hiw-stage-node .hiw-icon { width: 22px; height: 22px; }
  .hiw-stage-title { font-size: 1.2rem; }
  .hiw-stage-text { font-size: 0.98rem; }
  .hiw-notes, .hiw-related-pair { grid-template-columns: minmax(0, 1fr); }
  .hiw-cta { padding-bottom: 90px; }
}
