.home-portal {
  --portal-blue: #0b6faf;
  --portal-blue-dark: #075985;
  --portal-soft: #f5f8fb;
  --portal-line: #dce5ec;
  --portal-muted: #647482;
  background: #fff;
}

.home-portal .site-header { box-shadow: none; }
.home-portal .site-header__inner { min-height: 78px; }
.home-portal .desktop-nav { gap: clamp(30px, 3vw, 52px); }
.home-portal .header-cta { min-width: 118px; }

.portal-hero { overflow: hidden; border-bottom: 1px solid var(--portal-line); background: linear-gradient(115deg, #fff 0%, #fff 54%, #f2f7fb 54%, #f8fbfd 100%); }
.portal-brand-hero { display: grid; min-height: 510px; grid-template-columns: minmax(0,.9fr) minmax(480px,1.05fr); gap: clamp(52px,7vw,110px); align-items: center; padding-block: 48px; }
.portal-hero__copy { max-width: 700px; }
.portal-eyebrow { margin: 0 0 16px; color: var(--portal-blue); font-family: var(--latin); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.portal-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); font-weight: 650; letter-spacing: -.045em; line-height: 1.35; }
.portal-hero h1 strong { color: var(--portal-blue-dark); font-weight: 800; }
.portal-hero__copy > p:not(.portal-eyebrow) { margin: 22px 0 0; color: var(--portal-muted); font-size: 15px; line-height: 1.9; }
.portal-hero__actions { display: flex; gap: 12px; align-items: center; margin-top: 32px; }
.portal-hero__actions a { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 28px; padding: 0 20px; font-size: 13px; font-weight: 700; }
.portal-hero__primary { min-width: 190px; color: #fff; background: var(--portal-blue); }
.portal-hero__primary:hover { background: var(--portal-blue-dark); }
.portal-hero__secondary { border: 1px solid #aebbc5; }
.portal-hero__secondary:hover { border-color: var(--portal-blue); color: var(--portal-blue-dark); }
.portal-hero__media { position: relative; height: 410px; margin: 0; overflow: hidden; background: #eaf0f4; box-shadow: 0 24px 60px rgba(24,58,82,.13); }
.portal-hero__media::after { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.58); content: ""; pointer-events: none; }
.portal-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.portal-hero__media figcaption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; color: #fff; background: linear-gradient(180deg,transparent,rgba(8,28,43,.78)); font-family: var(--latin); font-size: 9px; letter-spacing: .13em; }
.portal-hero__media figcaption strong { font-weight: 650; }

.portal-section-head { display: flex; gap: 30px; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.portal-section-head p { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; color: var(--portal-blue); font-family: var(--latin); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.portal-section-head p sup { display: inline-grid; width: 16px; height: 16px; place-items: center; color: #fff; background: #ea5145; border-radius: 3px; font-family: Arial, sans-serif; font-size: 8px; letter-spacing: 0; }
.portal-section-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 3vw, 38px); font-weight: 750; letter-spacing: -.04em; }
.portal-section-head > a { display: inline-flex; gap: 22px; padding-bottom: 7px; color: #475765; border-bottom: 1px solid #98a7b2; font-size: 11px; white-space: nowrap; }
.portal-steps { background: var(--portal-soft); border-block: 1px solid var(--portal-line); }
.portal-section-head--center { align-items: center; }
.estimate-roadmap { overflow-x: auto; background: #fff; border: 1px solid var(--portal-line); }
.estimate-roadmap ol { display: grid; min-width: 1120px; grid-template-columns: repeat(8, 1fr); margin: 0; padding: 0; list-style: none; }
.estimate-roadmap li { position: relative; display: flex; min-height: 105px; flex-direction: column; justify-content: center; padding: 19px 16px; border-right: 1px solid var(--portal-line); }
.estimate-roadmap li:last-child { border-right: 0; }
.estimate-roadmap li span { margin-bottom: 9px; color: var(--portal-blue); font-family: var(--latin); font-size: 9px; font-weight: 700; }
.estimate-roadmap li strong { font-family: var(--serif); font-size: 14px; line-height: 1.45; }
.estimate-roadmap li i { position: absolute; top: 50%; right: -7px; z-index: 1; display: grid; width: 14px; height: 22px; place-items: center; color: #7891a4; background: #fff; font-size: 24px; font-style: normal; transform: translateY(-50%); }
.estimate-roadmap li.is-current { background: #eef7fd; box-shadow: inset 0 -3px var(--portal-blue); }
.estimate-roadmap li.is-complete span, .estimate-roadmap li.is-complete strong { color: #6f7f8b; }

.portal-live { padding-bottom: 24px; background: #fff; }
.live-pulse { position: relative; display: inline-block; width: 7px; height: 7px; background: #ea5145; border-radius: 50%; box-shadow: 0 0 0 4px rgba(234,81,69,.10); }
.live-pulse::after { position: absolute; inset: -5px; border: 1px solid rgba(234,81,69,.3); border-radius: 50%; content: ""; animation: live-ring 1.8s ease-out infinite; }
@keyframes live-ring { 0% { opacity: .9; transform: scale(.45); } 80%,100% { opacity: 0; transform: scale(1.35); } }
.live-consult-table { border-top: 1px solid var(--ink); }
.live-consult-table__head, .live-consult-row { display: grid; grid-template-columns: 1.08fr .9fr 1.45fr .95fr 1fr; gap: 14px; align-items: center; }
.live-consult-table__head { min-height: 45px; padding: 0 14px; color: #758592; border-bottom: 1px solid var(--portal-line); font-size: 10px; font-weight: 650; }
.live-consult-row { min-height: 62px; padding: 0 14px; border-bottom: 1px solid var(--portal-line); font-size: 12px; transition: background 160ms ease; }
.live-consult-row:hover { background: #f8fafc; }
.live-consult-row > span:first-child { display: flex; gap: 7px; align-items: center; }
.live-consult-row b { font-family: var(--latin); font-size: 12px; }
.live-consult-row small { padding: 3px 5px; color: #647482; background: #edf1f4; border-radius: 3px; font-size: 8px; font-weight: 700; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: #e8a13d; border-radius: 50%; }
.status-dot--review { background: #4d86c8; }
.status-dot--visit { background: #43a276; }
.live-side-card { display: flex; min-height: 100%; flex-direction: column; padding: 27px 25px; color: #fff; background: #17364e; }
.live-side-card > span { color: var(--gold-light); font-family: var(--latin); font-size: 9px; letter-spacing: .15em; }
.live-side-card h3 { margin: 28px 0 14px; font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.45; }
.live-side-card p { margin: 0 0 28px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.8; }
.live-side-card a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 13px; color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 12px; font-weight: 650; }
.live-side-card a:first-of-type { color: var(--ink); background: #fff; border-color: #fff; }
.live-side-card i { font-style: normal; }

.portal-portfolio { background: var(--portal-soft); border-top: 1px solid var(--portal-line); }
.portal-project { display: block; padding: 8px 8px 18px; background: #fff; border: 1px solid var(--portal-line); transition: transform 180ms ease, box-shadow 180ms ease; }
.portal-project:hover { box-shadow: 0 14px 35px rgba(35, 72, 98, .09); transform: translateY(-3px); }
.portal-project figure { height: 230px; margin: 0 0 15px; overflow: hidden; background: #eef2f4; }
.portal-project img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.portal-project:hover img { transform: scale(1.025); }
.portal-project > span { display: block; padding-inline: 8px; color: var(--portal-blue); font-size: 10px; }
.portal-project > strong { display: block; margin-top: 6px; padding-inline: 8px; font-family: var(--serif); font-size: 16px; }

.portal-bottom { padding: 55px 0; background: #fff; }
.portal-bottom .page-width { overflow: hidden; background: var(--portal-line); border: 1px solid var(--portal-line); }
.portal-bottom a { position: relative; display: flex; min-height: 175px; flex-direction: column; justify-content: center; padding: 28px 34px; background: #fff; }
.portal-bottom a > span { color: var(--portal-blue); font-family: var(--latin); font-size: 9px; letter-spacing: .15em; }
.portal-bottom a > strong { margin-top: 16px; font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.55; }
.portal-bottom a > i { position: absolute; right: 30px; top: 30px; color: var(--portal-blue); font-style: normal; }
.portal-bottom .portal-bottom__consult { color: #fff; background: var(--portal-blue); }
.portal-bottom .portal-bottom__consult span, .portal-bottom .portal-bottom__consult i { color: #fff; }

@media (max-width: 1024px) {
  .portal-hero { background: linear-gradient(180deg, #fff 0%, #f5f9fc 100%); }
  .portal-brand-hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-block: 42px; }
  .portal-hero__copy { max-width: 760px; }
  .portal-hero__media { height: min(58vw,470px); }
  .portal-project figure { height: 280px; }
  .estimate-roadmap ol { min-width: 0; grid-template-columns: repeat(4, 1fr); }
  .estimate-roadmap li { min-height: 76px; align-items: center; padding: 9px 7px; border-bottom: 1px solid var(--portal-line); text-align: center; }
  .estimate-roadmap li:nth-child(4n) { border-right: 0; }
  .estimate-roadmap li:nth-child(n+5) { border-bottom: 0; }
  .estimate-roadmap li span { margin-bottom: 5px; font-size: 8px; }
  .estimate-roadmap li strong { font-size: 11px; line-height: 1.4; }
  .estimate-roadmap li i { display: none; }
}

@media (max-width: 820px) {
  .home-portal .site-header__inner { min-height: 76px; }
  .portal-section-head { align-items: center; }
  .live-consult-table__head { display: none; }
  .live-consult-table { border-top: 0; }
  .live-consult-row { grid-template-columns: 1fr 1fr; gap: 7px 16px; min-height: 0; padding: 18px 14px; border: 1px solid var(--portal-line); border-top: 0; }
  .live-consult-row:first-child { border-top: 1px solid var(--portal-line); }
  .live-consult-row > span:first-child { grid-column: 1 / -1; }
  .live-consult-row > span:nth-child(3), .live-consult-row > span:nth-child(5) { text-align: right; }
}

@media (max-width: 640px) {
  .portal-hero h1 { font-size: 34px; }
  .portal-brand-hero { gap: 28px; padding-block: 34px; }
  .portal-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-hero__actions a { min-width: 0; gap: 12px; padding-inline: 14px; font-size: 12px; }
  .portal-hero__media { width: calc(100% + 28px); height: 66vw; min-height: 260px; margin-left: -14px; }
  .portal-hero__media figcaption { padding: 14px 16px; font-size: 8px; }
  .portal-section-head { display: grid; gap: 14px; align-items: start; }
  .portal-section-head > a { width: max-content; min-height: 44px; align-items: center; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pulse::after { animation: none; }
}
