:root {
  --nh-ink: #10263b;
  --nh-ink-soft: #1d3d56;
  --nh-paper: #f7f1e7;
  --nh-sheet: #fffdf8;
  --nh-coral: #cf5f49;
  --nh-gold: #b88943;
  --nh-line: rgba(16, 38, 59, .15);
}

.nh-hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 84px;
  color: #fff;
  background: #10263b;
}
.nh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255,255,255,.13) 49%, rgba(255,255,255,.13) 50%, transparent 51%),
    linear-gradient(150deg, transparent 48%, rgba(255,255,255,.08) 49%, rgba(255,255,255,.08) 50%, transparent 51%);
  background-size: 92px 92px;
}
.nh-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(270px,.7fr); gap: 70px; align-items: end; }
.nh-hero h1 { max-width: 820px; margin: 14px 0 24px; color: #fff; font: 700 clamp(3rem,6vw,5.8rem)/1.04 'Noto Sans KR',sans-serif; letter-spacing: -.07em; word-break: keep-all; }
.nh-hero h1 em { display: inline-block; color: #e8bd78; font: italic 600 1.08em 'Playfair Display',serif; letter-spacing: -.04em; }
.nh-hero .lr-lead { max-width: 690px; color: rgba(255,255,255,.78); }
.nh-privacy-note { display: inline-flex; margin-top: 28px; padding: 13px 18px; gap: 12px; align-items: center; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.nh-privacy-note span { display: grid; width: 29px; height: 29px; place-items: center; color: var(--nh-ink); border-radius: 50%; background: #e8bd78; font-weight: 800; }
.nh-privacy-note p { margin: 0; color: rgba(255,255,255,.76); font-size: .88rem; line-height: 1.45; }
.nh-route-card { padding: 30px 0 0 30px; border-left: 1px solid rgba(255,255,255,.25); }
.nh-route-card > span { display: block; margin-bottom: 20px; color: rgba(255,255,255,.56); font-size: .76rem; font-weight: 700; letter-spacing: .15em; }
.nh-route { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.nh-route li { position: relative; min-height: 50px; padding-left: 40px; color: rgba(255,255,255,.78); }
.nh-route li::before { content: ''; position: absolute; left: 6px; top: 7px; width: 13px; height: 13px; border: 3px solid #e8bd78; border-radius: 50%; background: var(--nh-ink); }
.nh-route li::after { content: ''; position: absolute; left: 13px; top: 23px; bottom: -7px; width: 1px; background: rgba(232,189,120,.55); }
.nh-route li:last-child::after { display: none; }
.nh-route strong { color: #fff; }

.nh-workspace { padding: 88px 0; background: var(--nh-paper); }
.nh-workspace__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 28px; align-items: start; }
.nh-form, .nh-result { border: 1px solid var(--nh-line); background: var(--nh-sheet); box-shadow: 0 24px 70px rgba(25,34,42,.08); }
.nh-form { padding: clamp(26px,5vw,50px); }
.nh-form__head { padding-bottom: 30px; border-bottom: 1px solid var(--nh-line); }
.nh-step { margin: 0; color: var(--nh-coral); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.nh-form__head h2 { margin: 8px 0 10px; color: var(--nh-ink); font-size: clamp(1.8rem,3vw,2.65rem); letter-spacing: -.05em; }
.nh-form__head p:last-child { margin: 0; color: #64717c; }
.nh-fieldset { margin: 34px 0 0; padding: 0; border: 0; }
.nh-fieldset legend { display: flex; width: 100%; margin-bottom: 15px; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--nh-ink); font-weight: 800; }
.nh-fieldset legend small { color: #76818b; font-size: .78rem; font-weight: 500; }
.nh-choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.nh-choice { position: relative; cursor: pointer; }
.nh-choice input { position: absolute; opacity: 0; pointer-events: none; }
.nh-choice span { display: flex; min-height: 79px; padding: 16px 17px; flex-direction: column; justify-content: center; border: 1px solid var(--nh-line); background: #fff; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.nh-choice strong { color: var(--nh-ink); }
.nh-choice small { margin-top: 5px; color: #69747e; line-height: 1.38; }
.nh-choice input:checked + span { border-color: var(--nh-ink); background: #fbf4e9; box-shadow: inset 4px 0 0 var(--nh-coral); transform: translateY(-1px); }
.nh-choice input:focus-visible + span { outline: 3px solid rgba(35,113,171,.3); outline-offset: 2px; }
.nh-selection-meta { display: flex; margin: 14px 0 0; align-items: center; justify-content: space-between; color: #6a7680; font-size: .84rem; }
.nh-selection-meta output { color: var(--nh-coral); font-weight: 800; }
.nh-form__error { margin: 22px 0 0; padding: 14px 16px; color: #842f27; border-left: 4px solid #ad4438; background: #fbecea; }
.nh-form__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 28px; }
.nh-submit, .nh-reset { min-height: 58px; padding: 0 20px; border: 0; font: 700 .96rem 'Noto Sans KR',sans-serif; cursor: pointer; }
.nh-submit { display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--nh-ink); }
.nh-submit:hover { background: var(--nh-ink-soft); }
.nh-submit:disabled { cursor: wait; opacity: .56; }
.nh-reset { color: var(--nh-ink); border: 1px solid var(--nh-line); background: transparent; }
.nh-submit:focus-visible, .nh-reset:focus-visible, .nh-result-card__actions a:focus-visible { outline: 3px solid rgba(35,113,171,.38); outline-offset: 3px; }

.nh-result { position: sticky; top: 92px; min-height: 690px; padding: clamp(26px,4vw,42px); color: #fff; background: var(--nh-ink); scroll-margin-top: 95px; }
.nh-result:focus { outline: 3px solid rgba(232,189,120,.6); outline-offset: 3px; }
.nh-result__empty { padding-top: 70px; }
.nh-result__mark { display: grid; width: 96px; height: 96px; margin-bottom: 32px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #e8bd78; font: 600 2rem 'Playfair Display',serif; }
.nh-result__empty h2 { max-width: 390px; margin: 0 0 18px; color: #fff; font-size: 2.1rem; line-height: 1.25; letter-spacing: -.045em; }
.nh-result__empty > p:last-child { color: rgba(255,255,255,.63); line-height: 1.72; }
.nh-results { display: grid; gap: 18px; margin-top: 24px; }
.nh-result-card { padding: 24px; color: var(--nh-ink); background: #fffdf8; }
.nh-result-card__head { display: flex; gap: 17px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--nh-line); }
.nh-result-card__rank { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--nh-coral); font: 700 1rem 'Playfair Display',serif; }
.nh-result-card__eyebrow { margin: 0 0 3px; color: var(--nh-gold); font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.nh-result-card h3 { margin: 0; color: var(--nh-ink); font-size: 1.7rem; }
.nh-result-card__summary { margin: 18px 0 10px; color: #425363; line-height: 1.7; }
.nh-result-card__housing { margin: 0 0 22px; padding: 10px 12px; color: #304a5e; background: #f1eadf; font-size: .82rem; font-weight: 700; }
.nh-result-card section { margin-top: 20px; }
.nh-result-card h4 { margin: 0 0 9px; color: var(--nh-ink); font-size: .88rem; }
.nh-result-card ul { display: grid; gap: 7px; margin: 0; padding-left: 19px; color: #526170; font-size: .86rem; line-height: 1.55; }
.nh-result-card__checks { padding: 14px; background: #f3eee5; }
.nh-result-card__tradeoffs { padding-top: 16px; border-top: 1px dashed var(--nh-line); }
.nh-result-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.nh-result-card__actions a { display: grid; min-height: 48px; padding: 0 10px; place-items: center; text-align: center; text-decoration: none; font-size: .86rem; font-weight: 800; }
.nh-result-card__actions a:first-child { color: #fff; background: var(--nh-ink); }
.nh-result-card__actions a:last-child { color: var(--nh-ink); border: 1px solid var(--nh-ink); }

.nh-method { padding: 96px 0; color: #fff; background: #0d1e2d; }
.nh-method h2, .nh-method h3 { color: #fff; }
.nh-method__head { display: grid; grid-template-columns: .42fr 1fr; gap: 40px; }
.nh-method__head h2 { margin: 0; max-width: 800px; font-size: clamp(2rem,4vw,3.55rem); line-height: 1.18; letter-spacing: -.055em; }
.nh-method__grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 58px; border-top: 1px solid rgba(255,255,255,.18); }
.nh-method__grid article { padding: 30px 28px 4px 0; border-right: 1px solid rgba(255,255,255,.13); }
.nh-method__grid article + article { padding-left: 28px; }
.nh-method__grid span { color: #e8bd78; font: 600 1.2rem 'Playfair Display',serif; }
.nh-method__grid h3 { margin: 24px 0 10px; }
.nh-method__grid p { margin: 0; color: rgba(255,255,255,.64); line-height: 1.72; }
.nh-neighborhoods { display: grid; grid-template-columns: repeat(7,minmax(110px,1fr)); gap: 8px; margin-top: 36px; }
.nh-neighborhoods span { padding: 14px 8px; text-align: center; border: 1px solid var(--nh-line); color: var(--nh-ink); background: #fff; font-weight: 700; }
.nh-sources ul { display: grid; gap: 12px; padding: 0; list-style: none; }
.nh-sources li { display: grid; grid-template-columns: minmax(260px,.7fr) 1fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--nh-line); }
.nh-sources a { color: var(--nh-ink); font-weight: 800; }
.nh-sources span { color: #65717b; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 980px) {
  .nh-hero__grid, .nh-workspace__grid, .nh-method__head { grid-template-columns: 1fr; gap: 36px; }
  .nh-result { position: static; min-height: 0; }
  .nh-method__grid { grid-template-columns: 1fr; }
  .nh-method__grid article, .nh-method__grid article + article { padding: 26px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .nh-neighborhoods { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 640px) {
  .nh-hero { padding: 84px 0 62px; }
  .nh-hero h1 { font-size: clamp(2.55rem,14vw,4rem); }
  .nh-privacy-note { align-items: flex-start; }
  .nh-choice-grid { grid-template-columns: 1fr; }
  .nh-form { padding: 24px 18px; }
  .nh-result { padding: 30px 18px; }
  .nh-result-card { padding: 20px 16px; }
  .nh-form__actions, .nh-result-card__actions { grid-template-columns: 1fr; }
  .nh-neighborhoods { grid-template-columns: repeat(2,1fr); }
  .nh-sources li { grid-template-columns: 1fr; gap: 7px; }
}
