/* =========================================================
   Casa+ — gạch gốm kiến trúc in 3D
   Tokens follow the Figma file: dark page, stone panels (#e6e6e6),
   Casa red (#ba1217), Montserrat for text, Montaga for "Xem thêm".
   Z-index: content 0-5, stepnav 40, header 50, menu 60, search 70, lightbox (top layer).
   ========================================================= */
:root {
  --ink: #141414;
  --ink-2: #1c1b1a;
  --stone: #e6e6e6;
  --stone-2: #c1c1c1;
  --red: #ba1217;
  --red-hover: #d0161c;
  --white: #fff;
  --text-dark: #1e1e1e;
  --muted-dark: rgba(2, 2, 2, .62);
  --muted-light: rgba(255, 255, 255, .64);
  --line-light: rgba(255, 255, 255, .19);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-btn: "Montaga", Georgia, serif;

  --container: 1062px;
  --container-wide: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 52px;
  --header-top: 26px;
  --stepnav-h: 0px;
  --section-y: clamp(64px, 9vw, 120px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--white); }

html.is-locked, html.is-locked body { overflow: hidden; }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.muted { color: var(--muted-light); }

/* ---------- Type ---------- */
.section-title, .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  text-wrap: balance;
}
.section-title { font-size: clamp(32px, 2.2vw + 18px, 46px); }
.page-title { font-size: clamp(32px, 1.8vw + 20px, 42px); }
.section-lead { margin-top: 12px; max-width: 62ch; color: var(--muted-light); text-wrap: pretty; }

/* ---------- Glass button (Figma "chi tiết") ---------- */
.btn-glass {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 222px; min-height: 48px; padding: 10px 28px;
  border: 1px solid rgba(68, 68, 68, .16);
  border-radius: 9px;
  background: rgba(153, 145, 145, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .6);
  color: var(--white);
  font-family: var(--font-btn);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-glass--sans { font-family: var(--font); font-size: 16px; font-weight: 600; }
.btn-glass--dark { background: rgba(30, 30, 30, .82); border-color: transparent; box-shadow: 0 4px 4px rgba(0, 0, 0, .3); }
.btn-glass--red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(186, 18, 23, .28); }
.btn-glass--red:hover { background: var(--red-hover); border-color: var(--red-hover); }
@media (hover: hover) {
  .btn-glass:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(186, 18, 23, .35); }
}
.btn-glass:active { transform: translateY(0) scale(.98); }
.btn-glass[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: currentColor;
  transition: background-color .25s;
}
@media (hover: hover) { .icon-btn:hover { background: rgba(255, 255, 255, .1); } }

/* =========================================================
   Header — transparent over hero media, solid after scrolling
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: var(--header-top);
  color: var(--white);
  transition: padding-top .4s var(--ease-out), transform .45s var(--ease-out), background-color .4s, box-shadow .4s;
}
.site-header::before { /* soft fade so the white UI reads on bright video frames */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent);
  transition: opacity .4s;
}
.site-header__bar {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--bar-h);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  border-block: 1px solid var(--line-light);
  transition: border-color .4s;
}
.site-header__side { display: flex; align-items: center; gap: 2px; margin-left: -9px; }
.site-header__side--end { justify-content: flex-end; margin: 0 -6px 0 0; }
.site-header__logo { position: relative; display: block; width: 72px; height: 32px; }
.site-header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lang { display: grid; place-items: center; width: 44px; height: 44px; }
.lang img { width: 28px; height: 28px; }
.icon-btn[aria-current="page"] { color: var(--red-hover); }

.site-header.is-solid { padding-top: 0; background: rgba(20, 20, 20, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-light); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .site-header__bar { border-color: transparent; }
.site-header.is-hidden { transform: translateY(-100%); }
html.menu-open .site-header { transform: none; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-open .site-header::before { opacity: 0; }

/* Burger → X (36 × 2.6 bars like Figma) */
.burger { width: 48px; height: 44px; border-radius: 6px; display: grid; place-content: center; gap: 6px; }
.burger__line {
  display: block; width: 30px; height: 2.6px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .25s;
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(8.6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-8.6px) rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 45; color: var(--white); }
.menu[hidden] { display: none; }
.menu__bg { position: absolute; inset: 0; background: var(--ink-2); clip-path: inset(0 0 100% 0); }
.menu__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-content: center;
  padding-top: calc(var(--bar-h) + var(--header-top) + 24px); padding-bottom: 32px;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu__nav li { overflow: hidden; }
.menu__nav a {
  display: inline-block; padding: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px); font-weight: 600; line-height: 1.15; letter-spacing: .01em;
  color: rgba(255, 255, 255, .9);
  transition: color .3s, transform .45s var(--ease-out);
}
.menu__nav a[aria-current="page"] { color: var(--red-hover); }
@media (hover: hover) { .menu__nav a:hover { color: var(--red-hover); transform: translateX(10px); } }
.menu__aside { align-self: end; display: grid; gap: 6px; padding-bottom: 8px; border-left: 1px solid var(--line-light); padding-left: 32px; }
.menu__aside a { transition: color .25s; }
@media (hover: hover) { .menu__aside a:hover { color: var(--red-hover); } }
.menu__label { font-weight: 700; margin-bottom: 6px; }
.menu__muted { color: var(--muted-light); font-size: 14px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.menu [data-menu-item] { will-change: transform, opacity; }

/* ---------- Search ---------- */
.search { position: fixed; inset: 0; z-index: 70; }
.search[hidden] { display: none; }
.search__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.search__panel {
  position: relative; background: var(--ink-2); border-bottom: 1px solid var(--line-light);
  padding: calc(var(--header-top) + 8px) 0 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}
.search__form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 8px; }
.search__form > svg { flex: none; color: var(--muted-light); }
.search__form input {
  flex: 1; min-width: 0; height: 52px; background: transparent; border: 0; outline: none;
  font-size: clamp(18px, 2vw, 24px); font-weight: 500;
}
.search__form input::placeholder { color: rgba(255, 255, 255, .4); }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__results { margin-top: 12px; max-height: min(60vh, 420px); overflow-y: auto; }
.search__results a { display: block; padding: 12px 8px; border-radius: 6px; transition: background-color .2s; }
.search__results a:focus-visible, .search__results a.is-active { background: rgba(255, 255, 255, .08); outline: none; }
@media (hover: hover) { .search__results a:hover { background: rgba(255, 255, 255, .08); } }
.search__results b { display: block; font-weight: 600; }
.search__results small { color: var(--muted-light); font-size: 13px; }
.search__empty { padding: 12px 8px; color: var(--muted-light); }

/* =========================================================
   Hero "forge" — scroll scrubs the video (frame sequence on a canvas).
   The section is tall; its inner stage sticks while scroll progress picks the frame.
   It sits under the transparent header.
   ========================================================= */
.forge { position: relative; height: 400vh; background: #000; }
.forge__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.forge__stage { position: absolute; inset: 0; z-index: -1; }
.forge__stage picture, .forge__poster, .forge__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.forge__poster { object-fit: cover; }
.forge__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 45%, transparent 70%),
    linear-gradient(to right, rgba(0, 0, 0, .38), transparent 60%);
}
.forge__ui {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding-bottom: clamp(84px, 14vh, 140px);
}
.forge__chapters { display: grid; }
.forge__ch {
  grid-area: 1 / 1; align-self: end;
  opacity: 0; visibility: hidden; transform: translateY(26px);
  transition: opacity .55s var(--ease-out), transform .8s var(--ease-out), visibility 0s linear .55s;
}
.forge__ch.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.forge__h { font-family: var(--font-display); font-size: clamp(34px, 4vw + 10px, 66px); font-weight: 600; line-height: 1; letter-spacing: .01em; max-width: 16ch; text-wrap: balance; }
.forge__ch p:not(.hero__lead) { margin-top: 16px; max-width: 44ch; color: rgba(255, 255, 255, .84); font-size: clamp(15px, .5vw + 13px, 18px); }
.forge__ch .btn-glass { margin-top: 28px; }

.hero__title { font-family: var(--font-display); font-size: clamp(46px, 7vw, 96px); font-weight: 600; line-height: .96; letter-spacing: .01em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: 18px; max-width: 46ch; color: rgba(255, 255, 255, .84); font-size: clamp(15px, .5vw + 13px, 18px); }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__title .line > span { transform: translateY(110%); }
  html.js .hero__lead, html.js .hero__cta { opacity: 0; transform: translateY(16px); }
}

/* Progress gauge (desktop) */
.forge__gauge { display: grid; grid-template-columns: auto auto; gap: 0 14px; height: min(240px, 32vh); margin-bottom: 6px; }
.forge__meter { grid-row: 1; position: relative; width: 2px; height: 100%; background: rgba(255, 255, 255, .2); }
.forge__fill { position: absolute; inset: 0; background: var(--red-hover); transform-origin: bottom; transform: scaleY(var(--p, 0)); }
.forge__steps { grid-row: 1; position: relative; height: 100%; min-width: 92px; }
.forge__steps li {
  position: absolute; left: 0; transform: translateY(50%);
  font-size: 13px; font-weight: 600; white-space: nowrap; color: rgba(255, 255, 255, .45); transition: color .3s;
}
.forge__steps li.is-done { color: rgba(255, 255, 255, .78); }
.forge__steps li.is-current { color: #ff6b6f; }
.forge__pct { grid-column: 1 / -1; margin-top: 14px; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.forge__pct span { display: inline-block; min-width: 2.2ch; text-align: right; }

.forge__bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.forge__bar span { display: block; height: 100%; background: var(--red-hover); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (max-width: 767px) {
  .forge { height: 330vh; }
  .forge__ui { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .forge__gauge { display: none; }
  .forge__bar { display: block; }
}
@media (max-height: 520px) and (min-aspect-ratio: 5/4) {
  .forge__ui { padding-bottom: 72px; }
  .forge__gauge { display: none; }
  .forge__bar { display: block; }
  .hero__title { font-size: 40px; }
  .forge__h { font-size: 30px; }
  .forge__ch .btn-glass { margin-top: 16px; }
  .hero__lead, .forge__ch p:not(.hero__lead) { font-size: 14px; margin-top: 10px; }
}

/* =========================================================
   Solutions — pinned cross-fade (wide screens) / stacked (mobile)
   ========================================================= */
.solutions { position: relative; background: #000; }
.slide__media { position: relative; overflow: hidden; background: #000; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__shade { position: absolute; inset: 0; pointer-events: none; }
.slide__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.slide__title {
  font-family: var(--font);
  font-size: clamp(17px, 1.15vw + 9px, 30px); font-weight: 500; line-height: 1.35; letter-spacing: .13em;
  color: #c99c78;
  text-shadow: 0 4px 4px rgba(0, 0, 0, .25), 0 1px 18px rgba(0, 0, 0, .35);
}
.slide__title .line { display: block; }
.slide__title .w { display: inline-block; }
.slides-nav { display: none; }

/* Product text (recreated from the Figma artwork as live text) */
.slide__info { color: #f3ece4; }
.slide__eyebrow { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 236, 228, .78); }
.slide__eyebrow::after { content: ""; flex: 0 0 auto; width: clamp(60px, 9vw, 130px); height: 1px; background: currentColor; opacity: .7; }
.slide__name { margin-top: clamp(16px, 3vh, 28px); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; text-transform: uppercase; line-height: 1.08; }
.slide__name-main, .slide__name-sub { display: block; }
.slide__name-main { font-size: clamp(36px, min(4.8vw, 8.6vh), 80px); letter-spacing: .01em; color: #f6f0e8; }
.slide__name-sub { margin-top: .12em; font-size: clamp(20px, min(2.5vw, 4.6vh), 42px); letter-spacing: .04em; color: #c99c78; }
.slide__tagline { margin-top: clamp(14px, 2.6vh, 26px); font-size: clamp(12px, .35vw + 10px, 15px); letter-spacing: .17em; line-height: 1.8; text-transform: uppercase; color: rgba(243, 236, 228, .86); }
.slide__feats { display: flex; margin-top: clamp(16px, 3.2vh, 32px); }
.slide__feats li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-inline: clamp(12px, 1.5vw, 22px); text-align: center;
  font-size: 10.5px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; color: rgba(243, 236, 228, .82);
}
.slide__feats li:first-child { padding-left: 0; }
.slide__feats li + li { border-left: 1px solid rgba(243, 236, 228, .18); }
.slide__feats svg { width: 26px; height: 26px; color: #f3ece4; }

/* Pinned mode: every screen size, as long as motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .solutions__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
  .slide { position: absolute; inset: 0; }
  .slide__media { position: absolute; inset: 0; }
  .slide__media img { object-position: left center; }
  .slide__shade { background: linear-gradient(to right, rgba(0, 0, 0, .58), transparent 56%), linear-gradient(to left, rgba(0, 0, 0, .48), transparent 42%), linear-gradient(to top, rgba(0, 0, 0, .5), transparent 40%); }
  .slide__info {
    position: absolute; left: max(var(--gutter), calc((100% - var(--container-wide)) / 2));
    top: max(calc(var(--header-top) + var(--bar-h) + 36px), 14vh); max-width: min(54%, 720px);
  }
  .slide__body { position: absolute; inset: 0; pointer-events: none; }
  .slide__title {
    position: absolute; right: max(var(--gutter), calc((100% - var(--container-wide)) / 2)); bottom: 15%;
    max-width: 620px; text-align: right;
  }
  .slide__cta { position: absolute; left: max(var(--gutter), calc((100% - var(--container-wide)) / 2)); bottom: calc(12% + 4px); pointer-events: auto; }

  html.js .slide { visibility: hidden; opacity: 0; }
  html.js .slide:first-child { visibility: visible; opacity: 1; }
  html.js .slide__title .w, html.js .slide__cta, html.js .slide__info > *, html.js .slide__feats li, html.js .slide__name > span { opacity: 0; }
  html.js .slide__feats, html.js .slide__name { opacity: 1; }

  .slides-nav {
    position: absolute; z-index: 5; right: max(var(--gutter), calc((100% - var(--container-wide)) / 2));
    top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  }
  .slides-nav__count { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted-light); font-variant-numeric: tabular-nums; }
  .slides-nav__count b { color: var(--white); }
  .slides-nav ol { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .slides-nav button { display: block; width: 44px; height: 20px; position: relative; }
  .slides-nav button::after {
    content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 2px; margin-top: -1px;
    background: rgba(255, 255, 255, .45); transition: width .45s var(--ease-out), background-color .3s;
  }
  .slides-nav button[aria-current="true"]::after { width: 40px; background: var(--red-hover); }
  @media (hover: hover) { .slides-nav button:hover::after { background: var(--white); } }
}

/* Pinned mode on portrait screens (phones, portrait tablets) */
@media (prefers-reduced-motion: no-preference) and (max-aspect-ratio: 5/4) {
  .slide__media img { object-position: var(--pos, 55% center); }
  .slide__shade {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .42) 46%, transparent 64%),
      linear-gradient(to top, rgba(0, 0, 0, .72), transparent 36%);
  }
  .slide__info { left: var(--gutter); right: var(--gutter); top: calc(var(--header-top) + var(--bar-h) + 22px); max-width: 600px; }
  .slide__eyebrow { font-size: 11px; gap: 14px; }
  .slide__eyebrow::after { width: 40px; }
  .slide__name { margin-top: 14px; }
  .slide__name-main { font-size: clamp(32px, 9vw, 64px); }
  .slide__name-sub { font-size: clamp(18px, 4.8vw, 34px); }
  .slide__tagline { margin-top: 12px; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: .14em; }
  .slide__feats { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 22px; margin-top: 18px; }
  .slide__feats li { flex-direction: row; align-items: center; gap: 10px; padding: 0; text-align: left; font-size: clamp(9.5px, 1.3vw, 11px); }
  .slide__feats li + li { border-left: 0; }
  .slide__feats svg { flex: none; width: 22px; height: 22px; }
  .slide__title {
    left: var(--gutter); right: var(--gutter); max-width: none;
    bottom: calc(100px + env(safe-area-inset-bottom)); font-size: clamp(19px, 5vw, 30px);
  }
  .slide__cta { left: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom)); min-width: 0; min-height: 46px; padding-inline: 28px; font-size: 18px; }
  .slides-nav {
    top: auto; bottom: calc(29px + env(safe-area-inset-bottom)); right: var(--gutter); transform: none;
    flex-direction: row; align-items: center; gap: 8px;
  }
  .slides-nav ol { flex-direction: row; gap: 0; }
  .slides-nav button { width: 24px; height: 44px; }
  .slides-nav button::after { right: auto; left: 4px; width: 10px; }
  .slides-nav button[aria-current="true"]::after { width: 18px; }
}

/* Pinned mode on short landscape screens (phones turned sideways) */
@media (prefers-reduced-motion: no-preference) and (max-height: 520px) and (min-aspect-ratio: 5/4) {
  .slide__info { top: calc(var(--bar-h) + 18px); }
  .slide__name { margin-top: 8px; }
  .slide__name-main { font-size: 30px; }
  .slide__name-sub { font-size: 17px; }
  .slide__tagline, .slide__feats { display: none; }
  .slide__title { bottom: 18px; font-size: 17px; max-width: 46%; }
  .slide__cta { bottom: 16px; min-width: 0; min-height: 44px; padding-inline: 24px; font-size: 17px; }
  .slides-nav__count { display: none; }
}

/* Stacked mode: only when the visitor asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .solutions { background: var(--ink); padding-block: 8px 24px; }
  .slide__media { aspect-ratio: 16 / 9; }
  .slide__shade { background: linear-gradient(to top left, rgba(0, 0, 0, .7), transparent 55%); }
  .slide__body { position: relative; display: flex; flex-direction: column; padding-inline: var(--gutter); }
  .slide__title { order: 0; align-self: flex-end; margin-top: calc(-1 * clamp(58px, 14vw, 100px)); text-align: right; max-width: 30ch; }
  .slide__info { order: 1; margin-top: 22px; }
  .slide__eyebrow::after { width: 40px; }
  .slide__cta { order: 2; align-self: flex-start; margin-top: 22px; min-width: 0; min-height: 44px; font-size: 18px; padding-inline: 26px; }
  .slide__name-main { font-size: clamp(34px, 7vw, 56px); }
  .slide__name-sub { font-size: clamp(19px, 3.6vw, 30px); }
  .slide__feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; max-width: 420px; }
  .slide__feats li { flex-direction: row; text-align: left; gap: 12px; padding-inline: 0 12px; }
  .slide__feats li + li { border-left: 0; }
  .slide__feats svg { flex: none; }
  html.js .slide.will-reveal .slide__title .w,
  html.js .slide.will-reveal .slide__cta,
  html.js .slide.will-reveal .slide__info > *,
  html.js .slide.will-reveal .slide__feats li,
  html.js .slide.will-reveal .slide__name > span { opacity: 0; }
  html.js .slide.will-reveal .slide__feats,
  html.js .slide.will-reveal .slide__name { opacity: 1; }
  .slide + .slide { margin-top: 48px; }
}

/* =========================================================
   Generic section rhythm
   ========================================================= */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.section-head--split .btn-glass { flex: none; }

/* Reveal on scroll (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* =========================================================
   Process (landing) — 5 linked cards
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
.steps__item { position: relative; display: flex; padding-top: 72px; }
.step-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%;
  min-height: 290px; padding: 0 20px 28px;
  background: var(--stone); color: var(--text-dark);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  overflow: visible;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.step-card__media {
  display: block; flex: none; width: 128px; height: 128px; margin: -64px auto 0;
  position: relative; z-index: 2; border-radius: 50%; overflow: hidden;
  background: var(--stone-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.step-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.step-card__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; width: 100%; }
.step-card__title {
  display: block; text-align: center;
  color: var(--red); font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
}
.step-card__text { display: block; margin-top: 10px; color: var(--muted-dark); font-size: 13.5px; line-height: 1.55; text-align: center; }
@media (hover: hover) {
  .step-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(0, 0, 0, .45); }
  .step-card:hover .step-card__media img { transform: scale(1.07); }
}
.step-card:focus-visible { outline-color: var(--red-hover); outline-offset: 4px; }
.step-card:active { transform: translateY(-2px) scale(.99); }

@media (max-width: 1099px) {
  .steps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 34%);
    gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: 18px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
  }
  .steps__item { scroll-snap-align: start; }
  .step-card { min-height: 270px; }
}
@media (max-width: 599px) {
  .steps { grid-auto-columns: 78%; }
  .step-card { min-height: 260px; }
}

/* =========================================================
   Projects — masonry + lightbox
   ========================================================= */
.projects__bleed { width: 100%; padding-inline: clamp(8px, 1vw, 14px); }
html.js .projects__collapse.is-collapsed {
  max-height: 760px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}
.masonry { --masonry-gap: 16px; columns: 7; column-gap: var(--masonry-gap); }
.masonry li { break-inside: avoid; margin-bottom: var(--masonry-gap); }
.pin {
  position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate;
  background: var(--stone); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  text-align: left;
}
.pin img { width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.pin__info {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
  font-size: 13px; font-weight: 600; line-height: 1.35;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease-out);
}
.pin__info small { display: block; margin-top: 2px; font-weight: 500; color: var(--muted-light); }
@media (hover: hover) {
  .pin:hover img { transform: scale(1.05); }
  .pin:hover .pin__info { opacity: 1; transform: none; }
}
.pin:focus-visible .pin__info { opacity: 1; transform: none; }
.pin:focus-visible { outline-offset: 3px; border-radius: 12px; }
@media (max-width: 767px) {
  .masonry { --masonry-gap: 10px; columns: 2; }
  .pin, .pin:focus-visible { border-radius: 10px; }
  html.js .projects__collapse.is-collapsed { max-height: 520px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .masonry { --masonry-gap: 14px; columns: 4; }
  html.js .projects__collapse.is-collapsed { max-height: 640px; }
}
.projects__more { display: flex; justify-content: center; margin-top: 28px; }
html:not(.js) .projects__more { display: none; }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 10, 10, .92); }
.lightbox__inner { position: relative; height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lightbox__figure {
  display: grid; grid-template-columns: minmax(0, auto) minmax(240px, 340px); gap: 32px; align-items: center;
  max-width: 1100px; max-height: 100%;
}
.lightbox__media { display: grid; place-items: center; min-height: 0; }
.lightbox__media img { max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); width: auto; border-radius: 8px; object-fit: contain; }
.lightbox__cat { color: var(--red-hover); font-size: 13px; font-weight: 600; }
.lightbox__title { font-family: var(--font-display); font-weight: 600; margin-top: 6px; font-size: 26px; line-height: 1.25; letter-spacing: .01em; }
.lightbox__note { margin-top: 12px; color: var(--muted-light); font-size: 14px; overflow-wrap: anywhere; max-height: 9.5em; overflow: auto; }
.lightbox__links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.lightbox__links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); transition: color .2s; }
.lightbox__links a[hidden] { display: none; }
@media (hover: hover) { .lightbox__links a:hover { color: var(--red-hover); } }
.lightbox__supplier { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.lightbox__supplier div {
  display: grid; grid-template-columns: minmax(0, 148px) minmax(0, 1fr); gap: 12px;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 13px; line-height: 1.5;
}
.lightbox__supplier dt { color: var(--muted-light); }
.lightbox__supplier dd { margin: 0; min-height: 1.5em; overflow-wrap: anywhere; }
.lightbox__count { margin-top: 18px; color: var(--muted-light); font-size: 13px; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); transition: background-color .25s;
}
@media (hover: hover) { .lightbox__btn:hover { background: rgba(255, 255, 255, .2); } }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 767px) {
  .lightbox__inner { padding: 64px 16px 84px; overflow-y: auto; place-items: start center; }
  .lightbox__figure { grid-template-columns: 1fr; gap: 18px; }
  .lightbox__media img { max-height: 58vh; max-height: 58dvh; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* =========================================================
   Services (landing)
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 51px 30px; margin-top: clamp(24px, 3vw, 40px); }
.service-card { display: flex; flex-direction: column; background: var(--stone); color: var(--text-dark); border-radius: 2px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); overflow: hidden; }
.service-card__media { aspect-ratio: 516 / 330; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .service-card:hover .service-card__media img { transform: scale(1.04); } }
.service-card__body { padding: clamp(22px, 3vw, 32px); padding-bottom: clamp(28px, 3.4vw, 40px); }
.service-card__title { font-family: var(--font-display); font-weight: 600; color: var(--red); font-size: clamp(26px, 1.6vw + 12px, 34px); line-height: 1.2; letter-spacing: .01em; text-wrap: balance; }
.service-card__body p { margin-top: 14px; color: var(--muted-dark); font-size: 15px; text-align: justify; hyphens: auto; }
.consult-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  min-height: 202px; padding: clamp(22px, 3vw, 32px);
  background: var(--stone); color: var(--text-dark); border-radius: 2px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s;
}
.consult-card__title { font-family: var(--font-display); color: var(--red); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; }
.consult-card__text { color: var(--muted-dark); font-size: 15px; max-width: 46ch; }
.consult-card__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.consult-card__go::after {
  content: ""; width: 26px; height: 2px; background: currentColor; transition: width .45s var(--ease-out);
}
@media (hover: hover) {
  .consult-card:hover { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(0, 0, 0, .45); background: #fff; }
  .consult-card:hover .consult-card__go::after { width: 44px; }
}
.consult-card:focus-visible { outline-color: var(--red-hover); outline-offset: 4px; }
@media (max-width: 767px) {
  .services__grid { grid-template-columns: 1fr; gap: 20px; }
  .consult-card { min-height: 0; }
}

/* =========================================================
   Quote banner + footer
   ========================================================= */
.quote-banner { position: relative; height: clamp(260px, 33.4vw, 520px); overflow: hidden; background: #000; }
.quote-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.site-footer { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-light); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px 32px; }
.site-footer__logo { width: 110px; margin-bottom: 18px; }
.site-footer__brand p + p { margin-top: 6px; font-size: 14px; }
.site-footer__title { font-weight: 700; margin-bottom: 12px; }
.site-footer__col li + li { margin-top: 8px; }
.site-footer a { transition: color .2s; }
@media (hover: hover) { .site-footer a:hover { color: var(--red-hover); } }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light); color: var(--muted-light); font-size: 13px;
}
.to-top { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--white); }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Inner pages
   ========================================================= */
.page-top { padding-top: calc(var(--header-top) + var(--bar-h) + 22px); padding-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: clamp(15px, .4vw + 13px, 18px); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-inline: 14px; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .8); transition: color .2s; }
@media (hover: hover) { .breadcrumb a:hover { color: var(--white); } }
.breadcrumb [aria-current] { font-weight: 700; }

.page-hero { position: relative; isolation: isolate; min-height: 312px; display: flex; align-items: flex-end; background: var(--stone); color: var(--text-dark); overflow: hidden; }
.page-hero__inner { padding-block: 56px 48px; text-align: center; }
.page-hero--image { color: var(--white); background: #000; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero__lead { margin-top: 10px; color: rgba(255, 255, 255, .8); font-weight: 500; }

.stepnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20, 20, 20, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  transition: top .45s var(--ease-out);
}
body:has(.site-header:not(.is-hidden)) .stepnav { top: var(--bar-h); }
.stepnav__list { display: flex; align-items: center; gap: clamp(20px, 4vw, 44px); overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.stepnav__list::-webkit-scrollbar { display: none; }
.stepnav__list a {
  display: inline-flex; align-items: center; white-space: nowrap;
  min-height: 40px; padding: 6px 4px;
  font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .75);
  transition: color .25s, font-weight .25s;
}
@media (hover: hover) { .stepnav__list a:hover { color: var(--white); } }
.stepnav__list a.is-active { color: var(--red-hover); font-weight: 700; }

/* Alternating text / image rows (Figma: text 516px, image 625px bleeding to the edge) */
.article { padding-block: clamp(48px, 6vw, 80px) var(--section-y); display: grid; gap: clamp(56px, 6.5vw, 80px); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start;
  scroll-margin-top: calc(var(--bar-h) + 70px);
}
.row__text {
  grid-column: 1; grid-row: 1;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  max-width: calc(516px + max(var(--gutter), (100vw - var(--container)) / 2));
}
.row__media { grid-column: 2; grid-row: 1; aspect-ratio: 625 / 335; overflow: hidden; background: var(--stone); }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row--flip .row__text { grid-column: 2; padding-left: 0; padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-top: 80px; }
.row--flip .row__media { grid-column: 1; }
.row__step { color: var(--red-hover); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.row__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 1.6vw + 20px, 40px); line-height: 1.18; letter-spacing: .01em; margin-bottom: 18px; }
.row__text p:not(.row__step) { color: var(--muted-light); text-align: justify; hyphens: auto; }
.row__text p + p { margin-top: 12px; }
.row__feats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-light);
}
.row__feats li {
  position: relative; padding-left: 16px;
  color: rgba(255, 255, 255, .86); font-size: 14px; font-weight: 500; line-height: 1.45;
}
.row__feats li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red-hover);
}
.row.is-target .row__media { animation: target-flash 1.6s var(--ease-out) .2s; }
.row.is-target .row__title { animation: target-title 1.6s var(--ease-out) .2s; }
@keyframes target-flash { 0% { box-shadow: 0 0 0 0 rgba(208, 22, 28, 0); } 25% { box-shadow: 0 0 0 4px rgba(208, 22, 28, .9); } 100% { box-shadow: 0 0 0 4px rgba(208, 22, 28, 0); } }
@keyframes target-title { 0%, 100% { color: var(--white); } 25%, 60% { color: var(--red-hover); } }
@media (max-width: 767px) {
  .row { grid-template-columns: 1fr; gap: 20px; }
  .row__text, .row--flip .row__text { grid-column: 1; grid-row: 2; padding: 0 var(--gutter); max-width: none; }
  .row__media, .row--flip .row__media { grid-column: 1; grid-row: 1; margin-inline: var(--gutter); }
  .row__feats { grid-template-columns: 1fr; }
}

.cta-band { border-top: 1px solid var(--line-light); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }

/* About */
.panel { background: var(--stone); color: var(--text-dark); padding-block: clamp(48px, 6.5vw, 86px); }
.panel--stone { background: var(--stone-2); }
.panel--services-bg {
  position: relative; isolation: isolate;
  padding-block: clamp(40px, 6vw, 88px);
  background: url("/assets/img/solution-1.webp") center / cover no-repeat;
}
.panel--services-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(24, 22, 20, .24) 0%, rgba(24, 22, 20, .34) 100%);
}
.intro__lead { margin-top: 20px; max-width: 508px; color: var(--muted-dark); font-size: clamp(17px, .5vw + 14px, 20px); font-weight: 500; text-align: justify; }
.panel__wide { margin-top: clamp(28px, 3vw, 40px); aspect-ratio: 1062 / 540; overflow: hidden; background: var(--stone-2); }
.panel__wide img { width: 100%; height: 100%; object-fit: cover; }
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-top: clamp(48px, 5.5vw, 74px); align-items: start; }
.about__text p { margin-top: 22px; color: var(--muted-dark); font-size: clamp(16px, .3vw + 15px, 18px); font-weight: 500; text-align: justify; hyphens: auto; }
.about__text .page-title { margin-bottom: 4px; }
.about__media { aspect-ratio: 516 / 760; overflow: hidden; background: var(--stone-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 5; }
}

/* Services page */
.services-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 5.2vw, 68px) clamp(24px, 7vw, 96px) clamp(36px, 4.4vw, 58px);
  background-color: #f4f3f0;
  background-image: url("/assets/img/solution-5.webp");
  background-size: cover; background-position: center;
  color: var(--text-dark);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.services-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(244, 243, 240, .82) 0%, rgba(244, 243, 240, .76) 55%, rgba(244, 243, 240, .68) 100%);
}
.services-card__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px); font-weight: 600;
  line-height: 1.1; letter-spacing: .01em; text-align: center;
}
.services-card__body {
  margin-top: clamp(32px, 4.5vw, 58px);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 20vw, 254px);
  gap: clamp(32px, 4vw, 56px); align-items: start;
}
.services-card__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.services-card__mark {
  flex: none; display: grid; place-items: center; width: 97px; height: 97px; border-radius: 50%;
  background: var(--white); box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.services-card__mark img { width: 72px; }
.services-card__name { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: .01em; }
.services-card__tag { margin-top: 2px; color: var(--red); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.services-card__tag sup { font-size: .72em; }
.services-card__msg {
  align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 172px; height: 42px; padding: 0 24px;
  background: var(--red); color: #fff; border-radius: 4px;
  font-size: 15px; font-weight: 600;
  transition: background .2s;
}
@media (hover: hover) { .services-card__msg:hover { background: var(--red-hover); } }
.services-card__subtitle { margin-top: clamp(30px, 4vw, 46px); font-size: 19px; font-weight: 700; }
.services-card .contact-list { margin-top: 18px; }
.services-card__qr { justify-self: center; width: clamp(200px, 20vw, 254px); }
.services-card__qr-media {
  padding: clamp(18px, 2.2vw, 27px);
  background: var(--white); border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}
.services-card__qr-media img { display: block; width: 100%; height: auto; }
.services-card__qr p { margin-top: 16px; color: var(--muted-dark); font-size: 13.5px; line-height: 1.45; text-align: center; }
@media (max-width: 767px) {
  .services-card__body { grid-template-columns: 1fr; }
  .services-card__mark { width: 84px; height: 84px; }
  .services-card__mark img { width: 62px; }
  .services-card__name { font-size: 31px; }
  .services-card__msg { align-self: center; width: 100%; max-width: 220px; }
  .services-card__qr { margin-top: 4px; }
}
.contact-list { display: grid; gap: 14px; font-weight: 500; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { transition: color .2s; }
@media (hover: hover) { .contact-list a:hover { color: var(--red); } }
.contact-list__icon { flex: none; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; border: 2px solid var(--text-dark); }
.contact-list__icon--solid { background: var(--text-dark); color: var(--white); }

.contact-card {
  display: grid; grid-template-columns: minmax(0, 516fr) minmax(0, 546fr);
  min-height: 572px; background: var(--white); color: var(--text-dark);
  border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.contact-card__media { position: relative; background: rgba(0, 0, 0, .25); }
.contact-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-form { padding: clamp(28px, 4vw, 53px) clamp(20px, 4vw, 79px) clamp(28px, 4vw, 40px) clamp(20px, 2.3vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.contact-form__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 1.4vw + 18px, 36px); line-height: 1.18; letter-spacing: .01em; margin-bottom: 8px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 17px; line-height: 1.5; padding: 0; }
.field__opt { color: var(--muted-dark); font-size: 14px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"] {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #000; border-radius: 5px; background: var(--white);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(186, 18, 23, .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__error { min-height: 0; color: var(--red); font-size: 14px; }
.field__error:empty { display: none; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .3); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.segmented input:checked + span { background: var(--text-dark); color: var(--white); border-color: var(--text-dark); }
.segmented input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
@media (hover: hover) { .segmented span:hover { border-color: var(--text-dark); } }
.contact-form__submit { align-self: center; margin-top: 10px; min-width: 204px; }
.contact-form__status { text-align: center; font-size: 15px; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-ok { color: #1d6b34; font-weight: 600; }
.contact-form__status.is-error { color: var(--red); }
@media (max-width: 767px) {
  .contact-card { grid-template-columns: 1fr; min-height: 0; }
  .contact-card__media { aspect-ratio: 16 / 9; }
  .contact-form__submit { align-self: stretch; }
  .brand-card { padding-left: 0; }
}

/* =========================================================
   Account / Login page (/tai-khoan/)
   ========================================================= */
.account { padding-top: clamp(20px, 4vw, 48px); }
.account-card {
  display: grid; grid-template-columns: minmax(0, 516fr) minmax(0, 546fr);
  min-height: 560px; background: var(--white); color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}
.account-card__media { position: relative; background: var(--stone-2); }
.account-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-card__body {
  padding: clamp(32px, 4.5vw, 56px) clamp(24px, 4.5vw, 68px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.account-card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 1.8vw + 18px, 38px); line-height: 1.18; letter-spacing: .01em;
}
.account-google-btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, .22); border-radius: 6px;
  background: var(--white); color: var(--text-dark);
  font-size: 14px; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.account-google-btn__mark { display: inline-grid; place-items: center; flex: none; }
@media (hover: hover) { .account-google-btn:hover { background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .45); } }
.account-google-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.account-form { display: flex; flex-direction: column; gap: 16px; }
.account-form__sublink { margin-top: -4px; }
.account-google-link {
  font-size: 13px; color: var(--muted-dark); text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
@media (hover: hover) { .account-google-link:hover { color: var(--red); } }
.account-google-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.account-form__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px;
}
.account-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 20px; border-radius: 6px;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease-out);
}
.account-btn--primary {
  background: var(--red); color: var(--white); border: 1px solid var(--red);
}
@media (hover: hover) { .account-btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-1px); } }
.account-btn--secondary {
  background: var(--stone); color: var(--text-dark); border: 1px solid rgba(0, 0, 0, .2);
}
@media (hover: hover) { .account-btn--secondary:hover { background: var(--stone-2); border-color: rgba(0, 0, 0, .38); transform: translateY(-1px); } }
.account-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.account-form__status { font-size: 14px; line-height: 1.5; margin-top: 4px; }
.account-form__status:empty { display: none; }
.account-form__status.is-notice {
  padding: 10px 14px; border-radius: 6px;
  background: rgba(186, 18, 23, .08); border: 1px solid rgba(186, 18, 23, .28);
  color: var(--red); font-weight: 500;
}
.account-form__status.is-success {
  padding: 10px 14px; border-radius: 6px;
  background: rgba(30, 130, 76, .08); border: 1px solid rgba(30, 130, 76, .3);
  color: #1e824c; font-weight: 500;
}
.account-view { display: flex; flex-direction: column; gap: 20px; }
.account-view[hidden], .account-form [hidden] { display: none; }
.account-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.account-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted-dark); margin: -4px 0;
}
.account-divider::before, .account-divider::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, .14); }
.account-profile__head { display: flex; align-items: center; gap: 16px; }
.account-profile__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.account-profile__avatar[hidden] { display: none; }
.account-profile__email { font-size: 14px; color: var(--muted-dark); margin-top: 4px; overflow-wrap: anywhere; }
.account-password { border-top: 1px solid rgba(0, 0, 0, .12); padding-top: 16px; }
.account-password summary {
  cursor: pointer; font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.account-password[open] summary { margin-bottom: 16px; }
.account-password summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 767px) {
  .account-card { grid-template-columns: 1fr; min-height: 0; }
  .account-card__media { aspect-ratio: 16 / 9; }
  .account-form__actions { grid-template-columns: 1fr; }
}

/* =========================================================
   Legal pages (/chinh-sach-bao-mat/, /dieu-khoan/) + 404
   ========================================================= */
.legal { max-width: 760px; margin-inline: auto; font-size: 16px; line-height: 1.7; }
.legal__head { margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: 20px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.legal__meta { margin-top: 10px; color: var(--muted-dark); font-size: 14px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 1vw + 18px, 30px); line-height: 1.25;
  margin-top: clamp(32px, 4vw, 44px); margin-bottom: 12px; scroll-margin-top: calc(var(--bar-h) + 24px);
}
.legal h3 { font-size: 17px; font-weight: 700; margin-top: 20px; margin-bottom: 8px; }
.legal p, .legal li { color: rgba(2, 2, 2, .78); }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 10px; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 18px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.legal ul + p { margin-top: 14px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal strong { color: var(--text-dark); }
.legal__contact { padding: 18px 20px; background: rgba(0, 0, 0, .04); border-radius: 6px; }
.legal__contact li::before { display: none; }
.legal__contact li { padding-left: 0; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

.not-found { min-height: calc(100svh - 120px); align-items: center; }
.not-found .page-hero__bg { opacity: .3; }
.not-found .page-hero__inner { padding-block: calc(var(--bar-h) + 48px) 64px; }
.not-found__code {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(88px, 12vw, 160px); color: var(--red-hover); letter-spacing: .04em; margin-bottom: 8px;
}
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 22px; font-size: 15px; }
.not-found__links a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .not-found__links a:hover { color: var(--white); } }
@media (max-width: 479px) { .not-found__actions .btn-glass { width: 100%; min-width: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

[tabindex="-1"]:focus { outline: none; }

@media (max-width: 767px) {
  .menu__inner { grid-template-columns: 1fr; align-content: start; gap: 28px; padding-top: calc(var(--bar-h) + var(--header-top) + 28px); }
  .menu__nav a { font-size: 30px; padding: 7px 0; }
  .menu__aside { align-self: start; border-left: 0; border-top: 1px solid var(--line-light); padding: 22px 0 0; }
}
@media (max-width: 767px) and (max-height: 640px) {
  .menu__nav a { font-size: 24px; padding: 4px 0; }
}
@media (max-width: 767px) {
  .row__text p:not(.row__step), .about__text p, .service-card__body p, .intro__lead { text-align: left; }
}
