/* Khang Nguyễn Solar — design tokens
   Palette from the logo (K blue, sun rays) and the installed product (mono panel navy). */
:root {
  --navy: #0F2D4F;        /* panel navy: brand band, footer */
  --navy-2: #163B63;      /* raised surface on navy */
  --ink: #0E2238;         /* text */
  --muted: #4A5E74;       /* secondary text on light */
  --blue: #1D6FD6;        /* logo K blue: links, focus */
  --sun: #F5A11C;         /* logo sun: primary action */
  --sun-press: #E08D06;
  --ground: #F4F7FA;      /* page ground */
  --surface: #FFFFFF;
  --line: #D8E1EB;
  --on-navy: #E9F0F7;
  --on-navy-muted: #A9BBCF;

  --f-display: "Archivo", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.7vw, 2.85rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 136px);
  --r-s: 6px;
  --r-m: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(14, 34, 56, .06), 0 8px 24px -8px rgba(14, 34, 56, .18);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--f-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
address { font-style: normal; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
html { scrollbar-color: #9DB0C4 var(--ground); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.h2 { font-size: var(--step-3); font-weight: 760; max-width: 22ch; }
.h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 105%; letter-spacing: 0; display: flex; align-items: center; gap: .5em; }
.h3 .i { color: var(--blue); flex: none; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.i { flex: none; vertical-align: -0.2em; }

.link {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blue);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 10px 20px; border: 1.5px solid transparent; border-radius: var(--r-s);
  background: var(--bg); color: var(--fg); font: 600 var(--step-0)/1.2 var(--f-body); text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -6px rgba(14, 34, 56, .35); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn--sun { --bg: var(--sun); --fg: var(--ink); }
.btn--sun:hover { --bg: #F7AE36; }
.btn--sun:active { --bg: var(--sun-press); }
.btn--line-light { --bg: rgba(255, 255, 255, .06); --fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--line-light:hover { --bg: rgba(255, 255, 255, .14); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: var(--step-1); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s, color .3s; color: #fff; }
.site-header__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.site-header.is-solid, body:not(.is-home) .site-header.is-solid { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand__name { font: 760 1.02rem/1.05 var(--f-display); font-stretch: 118%; letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a { display: block; padding: 10px 12px; border-radius: var(--r-s); font-weight: 500; text-decoration: none; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav__contact { display: none; }
.site-header__call { min-height: 42px; padding: 8px 16px; }
.nav-toggle { display: none; }

@media (max-width: 1199px) {
  .site-header__call span { display: none; }
  .site-header__call { width: 44px; padding: 0; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-s);
    background: transparent; color: inherit; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 76px 0 0; background: var(--surface); color: var(--ink); padding: 16px var(--gutter) 120px;
    display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease); }
  .nav-open .site-header { background: var(--surface); color: var(--ink); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font: 700 var(--step-2)/1.2 var(--f-display); font-stretch: 112%; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a::after { display: none; }
  .nav__contact { display: grid; gap: 4px; margin-top: 24px; }
  .nav__contact a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 600; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero__media, .phead__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .phead__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after, .phead__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 30, 52, .55) 0%, rgba(10, 30, 52, 0) 22%),
    linear-gradient(90deg, rgba(10, 30, 52, .88) 0%, rgba(10, 30, 52, .62) 42%, rgba(10, 30, 52, .05) 75%);
}
.hero__in { padding-block: 140px clamp(48px, 8vh, 96px); }
.hero__title { font-size: var(--step-4); font-weight: 800; font-stretch: 118%; line-height: 1.04; letter-spacing: -0.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: 24px; max-width: 48ch; font-size: var(--step-1); color: #DCE6F1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; font-size: var(--step--1); color: #C9D6E4; }
.hero__proof .i { color: var(--sun); }

@media (max-width: 720px) {
  .hero { min-height: 100svh; }
  .hero__media::after { background: linear-gradient(180deg, rgba(10, 30, 52, .55) 0%, rgba(10, 30, 52, .15) 30%, rgba(10, 30, 52, .9) 66%); }
  .hero__in { padding-bottom: 104px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* entrance: one orchestrated moment on load */
.js [data-enter] .line > span { transform: translateY(105%); }
.js [data-enter] .hero__lead, .js [data-enter] .hero__actions, .js [data-enter] .hero__proof, .js [data-enter] .phead__lead { opacity: 0; transform: translateY(14px); }
.js [data-enter] .hero__media img, .js [data-enter] .phead__media img { transform: scale(1.08); }
.is-entered .line > span { transform: none !important; transition: transform 1s var(--ease); }
.is-entered .line:nth-child(2) > span { transition-delay: .08s; }
.is-entered .line:nth-child(3) > span { transition-delay: .16s; }
.is-entered .hero__lead, .is-entered .hero__actions, .is-entered .hero__proof, .is-entered .phead__lead { opacity: 1 !important; transform: none !important; transition: opacity .8s .35s, transform .9s .35s var(--ease); }
.is-entered .hero__actions { transition-delay: .45s; }
.is-entered .hero__proof { transition-delay: .55s; }
.is-entered .hero__media img, .is-entered .phead__media img { transform: none !important; transition: transform 2.2s var(--ease); }

/* ---------- photos: hover zoom inside the frame ---------- */
.system__media, .tile, .founder__media, .gallery__item { overflow: hidden; border-radius: var(--r-m); display: block; background: #CBD6E2; }
.system__media img, .tile img, .gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.system__media:hover img, .tile:hover img, .gallery__item:hover img { transform: scale(1.03); }

/* ---------- systems ---------- */
.systems__grid { display: grid; gap: 48px; }
.systems__intro .lead { margin-top: 20px; }
.systems__list { display: grid; }
.system { display: grid; gap: 18px; padding-block: 28px; border-top: 1px solid var(--line); }
.system:last-child { border-bottom: 1px solid var(--line); }
.system__media { aspect-ratio: 4 / 3; }
.system__body p { color: var(--muted); max-width: 56ch; margin: 10px 0 0; }
.system__body .system__fit { color: var(--ink); font-weight: 500; font-size: var(--step--1); }
@media (min-width: 900px) {
  .systems__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .systems__intro { position: sticky; top: 120px; }
  .system { grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
}

/* ---------- founder ---------- */
.founder { background: var(--ground); }
.founder__grid { display: grid; gap: 40px; align-items: center; }
.founder__media { margin: 0; aspect-ratio: 4 / 5; }
.founder__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder__body .lead { margin-top: 24px; color: var(--ink); }
.founder__body > p:not(.lead) { color: var(--muted); max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 32px 0; border-block: 1px solid var(--line); }
.facts div { padding: 18px 28px 18px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 800 var(--step-3)/1 var(--f-display); font-stretch: 118%; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .founder__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- calculator: the signature moment ---------- */
.calc { background: var(--navy); color: var(--on-navy); padding-block: var(--sec); }
.calc .lead { color: var(--on-navy-muted); margin-top: 18px; }
.calc__grid { display: grid; gap: 28px; margin-top: 48px; }
.calc__inputs { display: grid; gap: 28px; align-content: start; }
.calc .field label, .calc .seg legend { display: block; font-weight: 500; color: var(--on-navy); }
.field--range { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 16px; }
.field--range input { grid-column: 1 / -1; }
.field--range output { font: 760 var(--step-2)/1 var(--f-display); font-stretch: 112%; color: #fff; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sun) var(--p), rgba(255, 255, 255, .18) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sun); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 5px solid var(--sun); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--sun); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc input[type="number"] { margin-top: 8px; width: 100%; max-width: 220px; background: var(--navy-2); color: #fff; border-color: rgba(255, 255, 255, .22); font: 700 var(--step-2)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.seg { border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 16px; border-radius: var(--r-s); border: 1.5px solid rgba(255, 255, 255, .28); font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--sun); outline-offset: 3px; }
.calc__result { background: var(--surface); color: var(--ink); border-radius: var(--r-m); padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.calc__big-label { margin: 0; font-weight: 600; color: var(--muted); }
.calc__big { margin: 6px 0 10px; font: 800 clamp(2.6rem, 2rem + 3.2vw, 4.4rem)/1 var(--f-display); font-stretch: 116%; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__big::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 16px; background: var(--sun); border-radius: 3px; }
.calc__sub { color: var(--muted); }
.calc__sub strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__spec { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-top: 1px solid var(--line); }
.calc__spec div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc__spec div:nth-child(odd) { padding-right: 16px; }
.calc__spec dt { font-size: var(--step--1); color: var(--muted); }
.calc__spec dd { margin: 2px 0 0; font: 700 var(--step-2)/1.15 var(--f-display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.calc__note { padding: 12px 14px; border-radius: var(--r-s); background: #FFF4E0; color: #6B4300; font-size: var(--step--1); }
.calc__result .btn { width: 100%; }
.calc__fine { margin: 16px 0 0; font-size: var(--step--1); color: var(--muted); }
@media (min-width: 900px) {
  .calc__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .calc__head .lead { margin: 0; }
  .calc__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .calc__inputs { padding-top: 12px; gap: 36px; }
}

/* ---------- forms ---------- */
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
input:not([type="range"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:not([type="range"]):hover, select:hover, textarea:hover { border-color: #AEBFD1; }
input:not([type="range"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 214, .18); }
::placeholder { color: #7D8FA3; }
.field__err { display: none; margin: 6px 0 0; font-size: var(--step--1); color: #B42318; }
.field.is-invalid input { border-color: #B42318; }
.field.is-invalid .field__err { display: block; }
.qform { display: grid; gap: 18px; background: var(--surface); padding: clamp(22px, 4vw, 40px); border-radius: var(--r-m); box-shadow: var(--shadow); }
.qform__foot { display: grid; gap: 12px; }
.qform__foot .btn { width: 100%; }
.qform__status { margin: 0; font-weight: 500; }
.qform__status.is-ok { color: #126B3A; }
.qform__status.is-err { color: #B42318; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (min-width: 640px) {
  .qform { grid-template-columns: 1fr 1fr; }
  .qform .field--full, .qform__foot { grid-column: 1 / -1; }
}

/* ---------- process ---------- */
.process__title { margin-bottom: 48px; }
.process__grid { display: grid; gap: 32px; }
.process__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: #CBD6E2; }
.process__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform 1.2s var(--ease); }
.process__media img.is-active { opacity: 1; transform: none; }
.steps { counter-reset: s; }
.step { border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 0; cursor: pointer; }
.step__btn:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.step__n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); font: 700 1rem/1 var(--f-display); color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.step.is-active .step__n { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.step__btn .h3 { transition: color .2s; }
.step:not(.is-active) .step__btn:hover .h3 { color: var(--blue); }
.step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.step__body > p { overflow: hidden; margin: 0; padding-left: 58px; color: var(--muted); max-width: 60ch; }
.step.is-active .step__body { grid-template-rows: 1fr; }
.step.is-active .step__body > p { padding-bottom: 24px; }
@media (min-width: 900px) { .process__grid { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; } .process__media { aspect-ratio: 5 / 4; } }

/* ---------- works mosaic ---------- */
.works { background: var(--surface); }
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 40px; }
.mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tile { position: relative; aspect-ratio: 1; }
.tile--a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; padding: 6px 10px; border-radius: 4px;
  background: rgba(10, 30, 52, .78); color: #fff; font-size: var(--step--1); font-weight: 500; line-height: 1.35;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; aspect-ratio: 2 / 1; }
  .tile { aspect-ratio: auto; }
  .tile--a { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
}

/* ---------- feature (photo moment) ---------- */
.feature { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.feature__media { position: absolute; inset: 0; z-index: -1; }
.feature__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 52, .15) 0%, rgba(10, 30, 52, .35) 40%, rgba(10, 30, 52, .92) 100%); }
.feature__in { display: grid; gap: 20px; padding-block: 120px 72px; }
.feature__kw { margin: 0; font: 800 clamp(4.2rem, 2.4rem + 8vw, 10.5rem)/.85 var(--f-display); font-stretch: 125%; letter-spacing: -0.04em; color: var(--sun); white-space: nowrap; }
.feature__kw span { color: #fff; }
.feature__in p:not(.feature__kw) { color: #DCE6F1; max-width: 56ch; margin-top: 16px; }
@media (min-width: 900px) { .feature__in { grid-template-columns: auto minmax(340px, 1fr); gap: 64px; align-items: end; } }

/* ---------- brands (type moment) ---------- */
.brands__grid { display: grid; gap: 40px; margin: 56px 0 40px; }
.brands .h3 { color: var(--muted); font-weight: 600; font-family: var(--f-body); font-size: var(--step-0); margin-bottom: 12px; }
.brandlist li { font: 760 var(--step-3)/1.18 var(--f-display); font-stretch: 120%; letter-spacing: -0.02em; padding: 6px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding-left .3s var(--ease); }
.brandlist li:hover { color: var(--blue); padding-left: 8px; }
@media (min-width: 900px) { .brands__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- promise ---------- */
.promise { background: var(--surface); }
.promise__grid { display: grid; gap: 56px; }
.promise__quote { margin: 0; }
.promise__quote p { font: 700 var(--step-3)/1.22 var(--f-display); font-stretch: 105%; letter-spacing: -0.015em; max-width: 20ch; text-wrap: balance; }
.promise__quote p::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--sun); margin-bottom: .1em; }
.promise__quote footer { margin-top: 20px; color: var(--muted); }
.promise__list { display: grid; gap: 0; }
.promise__list li { padding: 22px 0; border-top: 1px solid var(--line); }
.promise__list li:last-child { border-bottom: 1px solid var(--line); }
.promise__list p { margin: 8px 0 0; color: var(--muted); padding-left: calc(20px + .5em); }
@media (min-width: 900px) { .promise__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } .promise__quote { position: sticky; top: 120px; } }

/* ---------- contact block ---------- */
.contact-cta__grid { display: grid; gap: 40px; }
.contact-cta__intro .lead { margin-top: 20px; }
.contact-list { display: grid; gap: 4px; margin-top: 28px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.contact-list .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.contact-list a:hover .i { background: var(--blue); color: #fff; }
.contact-list strong { font-family: var(--f-display); font-stretch: 110%; font-size: var(--step-1); margin-right: 6px; }
@media (min-width: 900px) { .contact-cta__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 80px 0 120px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; gap: 28px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer__claim { margin: 0; font: 760 var(--step-3)/1.15 var(--f-display); font-stretch: 112%; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.site-footer__actions a:hover { text-decoration: none; }
.site-footer__grid { display: grid; gap: 36px; padding: 48px 0; }
.site-footer__h { font: 600 var(--step-0)/1.4 var(--f-body); color: #fff; margin-bottom: 14px; }
.site-footer address p, .site-footer__links li { color: var(--on-navy-muted); margin: 0 0 10px; }
.site-footer address p { display: flex; gap: 10px; }
.site-footer address .i { margin-top: .2em; color: var(--sun); }
.site-footer__links { list-style: none; }
.site-footer__legal { margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--step--1); color: var(--on-navy-muted); }
@media (min-width: 900px) {
  .site-footer { padding-bottom: 48px; }
  .site-footer__top { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- mobile dock ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 6px; padding: 6px; border-radius: 14px;
  background: rgba(15, 45, 79, .96); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.is-shown { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.dock a:active { background: rgba(255, 255, 255, .1); }
.dock .dock__main { background: var(--sun); color: var(--ink); }
@media (min-width: 1024px) { .dock { display: none; } }

/* ---------- inner pages ---------- */
.phead { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.phead__in { padding-block: 150px 64px; }
.phead__title { font-size: var(--step-4); font-weight: 800; font-stretch: 118%; line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; }
.phead__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.phead__title .line > span { display: inline-block; }
.phead__lead { margin: 20px 0 0; max-width: 54ch; font-size: var(--step-1); color: #DCE6F1; }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); font-weight: 760; margin: 2.2em 0 .7em; }
.prose p { color: #2A3E55; }
.prose strong { color: var(--ink); font-weight: 600; }
.story { display: grid; gap: 48px; }
.story__aside { display: grid; gap: 16px; align-content: start; }
.story__aside figure { margin: 0; border-radius: var(--r-m); overflow: hidden; }
.story__aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .story { grid-template-columns: 7fr 5fr; gap: 80px; } .story__aside { position: sticky; top: 110px; } }

.timeline { list-style: none; display: grid; gap: 0; margin-top: 40px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline b { font: 800 var(--step-2)/1 var(--f-display); font-stretch: 118%; color: var(--blue); }
.timeline p { margin: 0; color: var(--muted); }

/* filters + gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 var(--step--1)/1 var(--f-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 1; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; position: relative; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.gallery__item img { height: auto; }
.gallery__item.is-hidden { display: none; }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }

.stories { display: grid; gap: 56px; }
.story-card { display: grid; gap: 24px; align-items: center; }
.story-card figure { margin: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card .meta { color: var(--muted); font-size: var(--step--1); margin: 10px 0 14px; }
.story-card p { max-width: 60ch; }
@media (min-width: 900px) { .story-card { grid-template-columns: 1fr 1fr; gap: 64px; } .story-card:nth-child(even) figure { order: 2; } }

/* equipment page */
.equip { display: grid; gap: 0; }
.equip__row { display: grid; gap: 24px; padding-block: 48px; border-top: 1px solid var(--line); }
.equip__row figure { margin: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; }
.equip__row img { width: 100%; height: 100%; object-fit: cover; }
.equip__brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; list-style: none; }
.equip__brands li { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: var(--step--1); background: var(--surface); }
.equip__row p { color: var(--muted); max-width: 58ch; }
@media (min-width: 900px) { .equip__row { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; } }

.product { display: grid; gap: 32px; background: var(--surface); border-radius: var(--r-m); padding: clamp(20px, 4vw, 48px); box-shadow: var(--shadow); }
.product figure { margin: 0; }
.price { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 20px; }
.price b { font: 800 var(--step-3)/1 var(--f-display); font-stretch: 112%; color: var(--ink); }
.price s { color: var(--muted); }
.product ul { padding-left: 1.1em; color: var(--muted); margin-bottom: 24px; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

.contact-page { display: grid; gap: 48px; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-m); background: #CBD6E2; }
@media (min-width: 960px) { .contact-page { grid-template-columns: 5fr 7fr; gap: 72px; } }

.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.notfound .h2 { margin-inline: auto; }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 20, 35, .9); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: var(--r-s); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lightbox[open] img { animation: lb .35s var(--ease); }
@keyframes lb { from { opacity: 0; transform: scale(.96); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-enter] .line > span, .js [data-enter] .hero__lead, .js [data-enter] .hero__actions, .js [data-enter] .hero__proof, .js [data-enter] .phead__lead { transform: none; opacity: 1; }
  .js [data-enter] .hero__media img, .js [data-enter] .phead__media img { transform: none; }
  .feature__media img { height: 100%; transform: none !important; }
}

@media (max-width: 899px) {
  .brands__grid { gap: 28px; }
  .brandlist { display: flex; flex-wrap: wrap; gap: 2px 20px; }
  .brandlist li { font-size: var(--step-2); border-bottom: 0; padding: 2px 0; }
}
.equip__row .h2 .i, .product .h2 .i { display: block; width: 34px; height: 34px; margin-bottom: 14px; color: var(--blue); }

/* ---------- partner logos ---------- */
.partners { margin: 64px 0 40px; }
.partners__title { font: 600 var(--step-0)/1.4 var(--f-body); color: var(--muted); margin-bottom: 16px; }
.partners__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.partners__list li { display: grid; place-items: center; min-height: 112px; padding: 20px; background: #fff; }
.partners__list img { width: auto; max-width: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.partners__list li:hover img { transform: scale(1.05); }
@media (min-width: 640px) { .partners__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .partners__list { grid-template-columns: repeat(6, 1fr); } }

/* quote form -> Zalo hand-off */
.qform__hint { margin: 0; font-size: var(--step--1); color: var(--muted); }
.qform__hint strong { color: var(--ink); }
.qform__status:empty { display: none; }
.qform__status { padding: 16px; border-radius: var(--r-s); background: #EAF6EE; color: #0F5132; }
.qform__status p { margin: 0 0 10px; font-weight: 500; }
.qform__msg { margin: 0 0 12px; padding: 12px; border-radius: var(--r-s); background: #fff; color: var(--ink); font: 400 var(--step--1)/1.55 var(--f-body); white-space: pre-wrap; user-select: all; }
.qform__again { width: 100%; --bg: #0068FF; }

/* ---------- packages by bill ---------- */
.packages { background: var(--surface); }
.packages__head .lead { margin-top: 18px; }
.pkg-tabs { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 40px 0 24px; }
.pkg-tabs legend { width: 100%; margin-bottom: 12px; font-weight: 600; }
.pkg-tabs label { position: relative; flex: 1 1 140px; max-width: 240px; }
.pkg-tabs input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pkg-tabs span { display: block; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--ground);
  font: 760 var(--step-2)/1 var(--f-display); font-stretch: 112%; text-align: center; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.pkg-tabs label:hover span { border-color: var(--ink); }
.pkg-tabs input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pkg-tabs input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.pkg { display: grid; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.pkg[hidden] { display: none; }
.pkg__money { padding: clamp(22px, 4vw, 40px); background: var(--navy); color: var(--on-navy); }
.pkg__label { margin: 0; color: var(--on-navy-muted); font-weight: 600; }
.pkg__big { margin: 6px 0 10px; font: 800 clamp(2.4rem, 1.8rem + 3vw, 4rem)/1 var(--f-display); font-stretch: 116%; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.pkg__sub { color: var(--on-navy-muted); }
.pkg__sub strong { color: #fff; }
.pkg__price { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.pkg__price div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pkg__price dt { font-size: var(--step--1); color: var(--on-navy-muted); }
.pkg__price dd { margin: 2px 0 0; font: 760 var(--step-2)/1.15 var(--f-display); color: var(--sun); font-variant-numeric: tabular-nums; }
.pkg__money .btn { width: 100%; }
.pkg__kit { padding: clamp(22px, 4vw, 40px); }
.pkg__kit .h3 { margin-bottom: 8px; }
.pkg__kit li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pkg__kit li .i { margin-top: .2em; color: var(--blue); }
.pkg__kit li strong { font-weight: 600; }
.pkg__roof { margin: 16px 0 0; color: var(--muted); }
.pkg__fine { margin: 20px 0 0; font-size: var(--step--1); color: var(--muted); max-width: 90ch; }
@media (min-width: 900px) { .pkg { grid-template-columns: 5fr 6fr; } .packages__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } .packages__head .lead { margin: 0; } }

/* ---------- news ---------- */
.news { display: grid; gap: 48px; }
.news-item { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.news-item:first-child { padding-top: 0; border-top: 0; }
.news-item__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; font-size: var(--step--1); color: var(--muted); }
.news-item__tag { padding: 3px 10px; border-radius: 999px; background: #E6EFFB; color: #134C96; font-weight: 600; }
.news-item__title { font-size: var(--step-2); font-weight: 760; margin-bottom: 14px; max-width: 32ch; }
.news-item__title a { text-decoration: none; }
.news-item__title a:hover { color: var(--blue); }
.news-item p { color: #2A3E55; max-width: 70ch; }
.news-item__meaning { padding: 14px 16px; border-radius: var(--r-s); background: #FFF4E0; color: #5C3A00 !important; }
.news-item__meaning strong { color: #3D2600; }
.news-item__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.news__aside { display: grid; gap: 24px; align-content: start; }
.laws li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.laws span { color: var(--muted); font-size: var(--step--1); }
.news__cta { padding: 24px; border-radius: var(--r-m); background: var(--navy); color: var(--on-navy); }
.news__cta .btn { width: 100%; }
@media (min-width: 960px) { .news { grid-template-columns: 8fr 4fr; gap: 72px; } .news__aside { position: sticky; top: 110px; } }
@media (max-width: 640px) {
  .pkg-tabs { gap: 8px; }
  .pkg-tabs label { flex: 1 1 0; min-width: 0; }
  .pkg-tabs span { padding: 14px 6px; font-size: var(--step-1); }
}

/* ---------- HCMCREA certificate ---------- */
.hero__proof a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.hero__proof a:hover { color: #fff; border-color: var(--sun); }
.cert { background: var(--surface); padding-block: var(--sec); overflow: hidden; }
.cert__grid { display: grid; gap: 40px; align-items: center; }
.cert__body .lead { margin-top: 20px; }
.cert__facts { display: grid; margin: 28px 0 20px; border-top: 1px solid var(--line); max-width: 460px; }
.cert__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert__facts dt { color: var(--muted); }
.cert__facts dd { margin: 0; font: 700 var(--step-0)/1.4 var(--f-display); font-stretch: 105%; text-align: right; font-variant-numeric: tabular-nums; }
.cert__open { border: 0; background: none; padding: 0 0 2px; font: 600 var(--step-0)/1.4 var(--f-body); cursor: zoom-in; }
.cert__media, .cert-mini { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cert__media img {
  width: 100%; border-radius: 4px; transform: rotate(-1.2deg);
  box-shadow: 0 2px 4px rgba(14, 34, 56, .12), 0 30px 60px -18px rgba(14, 34, 56, .5);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cert__media:hover img, .cert__media:focus-visible img { transform: rotate(0deg) scale(1.015); box-shadow: 0 2px 4px rgba(14, 34, 56, .12), 0 40px 80px -20px rgba(14, 34, 56, .55); }
.cert-mini img { width: 100%; border-radius: 4px; box-shadow: 0 20px 40px -18px rgba(14, 34, 56, .5); transition: transform .5s var(--ease); }
.cert-mini:hover img { transform: scale(1.015); }
@media (min-width: 900px) { .cert__grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
@media (prefers-reduced-motion: reduce) { .cert__media img { transform: none; } }
@media (max-width: 899px) { .cert__media { order: -1; } .cert__media img { transform: rotate(-1deg); } }
