/* ============================================================
   SAZWAN ENGINEER HARTANAH — "Lukisan Kerja" design system
   Blue & white blueprint identity. See plan for token rationale.
   ============================================================ */

:root {
  --ink:       #0B1526;
  --blue-950:  #081A33;
  --blue-900:  #0E2A4E;
  --blue-800:  #123C6D;
  --blue-600:  #1D5FC2;
  --blue-500:  #2E7CE6;
  --blue-300:  #9DC3F2;
  --blue-100:  #DCEAFB;
  --blue-050:  #F2F7FD;
  --white:     #FFFFFF;
  --line:      #C9DCF4;
  --line-dark: rgba(255, 255, 255, 0.08);

  --radius: 2px;
  --shadow-lift: 0 24px 48px -16px rgba(11, 21, 38, 0.35);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-display: clamp(3.5rem, 8vw, 7rem);
  --fs-h1: clamp(2.75rem, 6vw, 5rem);
  --fs-h2: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h3: 1.5rem;
  --fs-mono-sm: 0.8125rem;

  --nav-h: 72px;
  --gutter: clamp(24px, 4vw, 48px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 10vh, 7.5rem); }
.section--tint { background: var(--blue-050); }

.seal { border-radius: 50%; background: var(--white); }

/* dimension-tick section label:  |—— LABEL ——|  */
.tick-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-600);
  margin: 0 0 1rem;
}
.tick-label::before, .tick-label::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.tick-label::after { flex: 1 1 auto; max-width: 120px; }

.section__head { max-width: 620px; margin-bottom: 3rem; }
.section__more { margin-top: 3rem; text-align: center; }

/* blueprint grid texture */
.hero__grid-bg, .band__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--line-dark) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px);
}
.section--board {
  background-image:
    repeating-linear-gradient(0deg, rgba(201,220,244,0.25) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(201,220,244,0.25) 0 1px, transparent 1px 40px);
}

/* ---------- buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--blue-600);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--solid { background: var(--blue-600); color: var(--white); }
.btn--solid:hover { background: var(--blue-500); color: var(--white); }
.btn--line { color: var(--blue-600); }
.btn--line:hover { background: var(--blue-100); color: var(--blue-800); }
.btn--ghost { border-color: var(--blue-300); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--blue-900); }
.btn--white:hover { background: var(--blue-100); color: var(--blue-900); }
.btn--ghost-light { border-color: var(--blue-300); color: var(--blue-100); }
.btn--ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--blue-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue-800);
  font-size: 0.6875rem;
  cursor: default;
}
button.chip { cursor: pointer; transition: background-color 0.2s, color 0.2s; }
button.chip:hover { background: var(--blue-100); }
.chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.chip--solid { background: var(--blue-800); border-color: var(--blue-800); color: var(--white); }
.chip--badge { background: var(--blue-800); border-color: var(--blue-800); color: var(--white); }
.chip--stamp {
  border: 1.5px solid var(--blue-800);
  color: var(--blue-800);
  background: transparent;
  transform: rotate(-2deg);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue-600);
  transition: right 0.25s;
}
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__links a.is-active { color: var(--blue-600); }
.nav__wa--mobile { display: none; }
.nav__toggle { display: none; }

/* ---------- page wipe ("tirai biru") ---------- */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--blue-900);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.js .wipe { display: flex; clip-path: inset(100% 0 0 0); } /* hidden until JS animates it */
.wipe__seal { width: 88px; height: 88px; border-radius: 50%; opacity: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--blue-900);
  color: var(--white);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  width: 100%;
  padding-block: 3rem;
}
.eyebrow { color: var(--blue-300); margin: 0 0 1.25rem; }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  margin: 0 0 1.5rem;
}
.hero__sub {
  color: var(--blue-300);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__svg { width: 100%; height: auto; }
.hero__svg .hs, .hero__svg .hs-dim {
  stroke: var(--blue-300);
  stroke-width: 1.5;
  fill: none;
}
.hero__svg .hs-dim { stroke-width: 1; opacity: 0.8; }
.hero__svg .dim text {
  fill: var(--blue-300);
  font-size: 11px;
  letter-spacing: 0.08em;
}
#heroCover { fill: var(--blue-900); opacity: 0; }
.js #heroCover { opacity: 1; }

/* JS-only initial states (above-the-fold load timelines; reduced-motion reverts) */
.js [data-hero], .js .hero__title, .js .hero__svg .hs,
.js .hero__svg .dim, .js .lead__img { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-hero], .js .hero__title, .js .hero__svg .hs,
  .js .hero__svg .dim, .js .lead__img { opacity: 1; }
  .js #heroCover { opacity: 0; }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 14px;
}
.marquee__inner { display: flex; white-space: nowrap; width: max-content; }
.marquee__track { color: var(--blue-800); }

/* ---------- cards ---------- */

.grid--cards {
  display: grid;
  /* minmax(0,1fr): stop intrinsic image width blowing the tracks out */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card { position: relative; }
.card::before {
  /* blue-100 underlay: the "print duplicate" beneath the sheet */
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(6px, 6px);
  background: var(--blue-100);
  border-radius: var(--radius);
  transition: transform 0.25s;
  z-index: 0;
}
.card:hover::before { transform: translate(10px, 10px); }
.card > * { position: relative; z-index: 1; }

.card__media {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__media .chip--badge { position: absolute; top: 16px; left: 16px; }

.card__ticks { position: absolute; inset: 8px; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.card__ticks::before, .card__ticks::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--blue-600);
}
.card__ticks::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.card__ticks::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.card:hover .card__ticks { opacity: 1; }

.card__body {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 18px 20px 20px;
}
.card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--blue-900);
}
.card__title { margin: 0 0 0.5rem; font-size: 1.05rem; text-transform: none; font-family: var(--font-body); font-weight: 600; line-height: 1.35; }
.card__title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--blue-600); }
.card__addr {
  color: var(--blue-800);
  font-size: 0.6875rem;
  margin: 0 0 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  gap: 6px 0;
  font-size: 0.6875rem;
  color: var(--ink);
}
.card__specs li { display: flex; align-items: center; }
.card__specs li + li::before {
  content: "";
  width: 1px; height: 12px;
  background: var(--line);
  margin-inline: 10px;
}

/* ---------- bands (stats / cta) ---------- */

.band {
  position: relative;
  background: var(--blue-900);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}
.band__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.stat__label { color: var(--blue-300); margin: 0; }
.stat__rule {
  display: block;
  height: 1px;
  background: var(--blue-300);
  margin-top: 1.1rem;
  transform-origin: left center;
}
.band__cta { position: relative; text-align: center; }
.band__title { font-size: var(--fs-h2); margin-bottom: 2rem; }
.band--cta .hero__cta { justify-content: center; }

/* ---------- split (agent) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split__meta { color: var(--blue-800); margin-bottom: 1rem; }
.split__stats {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 1.4rem 0;
  margin: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split__stats li { display: flex; flex-direction: column; gap: 4px; }
.split__stats .stat__num { font-size: 2.25rem; color: var(--blue-900); }
.split__stats .mono { color: var(--blue-800); font-size: 0.6875rem; }

.frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
.frame__cover {
  position: absolute;
  inset: 0;
  background: var(--blue-100);
  transform: scaleX(0);
  transform-origin: right center;
  z-index: 2;
}
.frame__seal { text-align: center; }
.frame__seal .seal { margin-inline: auto; margin-bottom: 1.2rem; border: 1px solid var(--line); }
.frame__seal .mono { color: var(--blue-800); margin: 0; font-size: 0.6875rem; }
.frame__initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: var(--blue-900);
  margin: 0 0 0.5rem;
}
.frame--marks::before, .frame--marks::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--blue-600);
  z-index: 3;
}
.frame--marks::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame--marks::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ---------- page head ---------- */

.page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 5rem)); padding-bottom: 2rem; }
.page-head__count { color: var(--blue-600); }
.page-head--404 { min-height: 60vh; }

/* ---------- listings filter ---------- */

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 2.5rem; }
.chips__rule { width: 1px; height: 22px; background: var(--line); margin-inline: 8px; }
.chips--static { border: 0; margin: 0; }
.empty { text-align: center; color: var(--blue-800); padding-block: 3rem; }
.card.is-hidden { display: none; }

/* ---------- detail ---------- */

.detail { padding-top: calc(var(--nav-h) + 2.5rem); }
.detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.lead { margin: 0 0 14px; border: 1px solid var(--line); padding: 8px; background: var(--white); }
.lead__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }
.lead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  color: var(--blue-800);
}
.lead__chips { display: flex; gap: 8px; flex-wrap: wrap; }

.strip { overflow: hidden; margin-bottom: 2.5rem; cursor: grab; }
.strip__track { display: flex; gap: 10px; width: max-content; }
.strip__thumb {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 4px;
  cursor: pointer;
}
.strip__thumb img { width: 108px; height: 76px; object-fit: cover; }
.strip__thumb:hover { border-color: var(--blue-600); }

.detail__title { margin-top: 0; }
.detail__addr { color: var(--blue-800); margin: 0 0 2rem; }

.specstrip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1.4rem 0;
  margin: 0 0 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specstrip li { display: flex; flex-direction: column; gap: 2px; }
.specstrip__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--blue-900);
}
.specstrip .mono { color: var(--blue-800); font-size: 0.6875rem; }

.prose { max-width: 68ch; margin-bottom: 2.5rem; line-height: 1.7; }

.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.features li { display: flex; align-items: center; gap: 10px; }
.features svg, .waform svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tickpath { stroke: var(--blue-600); stroke-width: 2; fill: none; }
.waform .tickpath { stroke: var(--white); }

/* spec sheet aside */
.sheet {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--blue-800);
  background: var(--white);
  padding: 24px;
}
.sheet__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  text-transform: uppercase;
  line-height: 1;
  color: var(--blue-900);
  margin: 0 0 1.2rem;
}
.sheet__rows { margin: 0 0 1.4rem; font-size: 0.6875rem; }
.sheet__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.sheet__rows dt { color: var(--blue-800); }
.sheet__rows dd { margin: 0; text-align: right; }
.sheet .btn { margin-bottom: 10px; }
.sheet__back { margin: 0.5rem 0 0; text-align: center; }

/* mobile CTA bar */
.ctabar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  /* initial off-screen state set by GSAP so yPercent tweens stay consistent;
     no-JS / reduced-motion users just always see the bar */
}
.ctabar__price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; color: var(--blue-900); }

/* ---------- contact ---------- */

.split--contact { align-items: start; }
.contact-rows { display: flex; flex-direction: column; }
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.contact-row__label { flex: 0 0 110px; color: var(--blue-800); position: relative; }
.contact-row__label::after {
  content: "";
  position: absolute;
  right: -10px; top: 50%;
  width: 1px; height: 12px;
  background: var(--line);
  transform: translateY(-50%);
}

.waform {
  border: 1px solid var(--blue-800);
  background: var(--white);
  padding: 28px;
}
.waform label { display: block; margin-bottom: 1.2rem; }
.waform label .mono { display: block; color: var(--blue-800); margin-bottom: 6px; font-size: 0.6875rem; }
.waform input, .waform textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--blue-050);
  resize: vertical;
}
.waform input:focus, .waform textarea:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 0;
  background: var(--white);
}
.waform__note { color: var(--blue-800); font-size: 0.625rem; margin: 0.9rem 0 0; }

/* ---------- footer ---------- */

.footer {
  background: var(--blue-900);
  color: var(--white);
  padding-block: clamp(4rem, 9vh, 7rem) 2rem;
  position: relative;
  overflow: hidden;
}
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(38vw, 560px);
  height: 4px;
  background: var(--blue-500);
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--line-dark) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 40px);
}
.footer__shell {
  position: relative;
  border: 1px solid var(--blue-300);
  background: rgba(8, 26, 51, 0.7);
}
.footer__credentials {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  border-bottom: 1px solid rgba(157, 195, 242, 0.45);
}
.footer__credentials-copy {
  padding: clamp(2rem, 4vw, 3.75rem);
  border-right: 1px solid rgba(157, 195, 242, 0.45);
}
.footer__kicker {
  color: var(--blue-300);
  margin: 0 0 1.1rem;
}
.footer__credentials h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.footer__credentials-copy > p:last-child {
  max-width: 48ch;
  color: var(--blue-100);
  margin: 0;
}
.footer__logos {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(260px, 1.3fr);
}
.footer__logo-unit {
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.footer__logo-unit + .footer__logo-unit {
  border-left: 1px solid rgba(157, 195, 242, 0.45);
}
.footer__logo-unit figcaption {
  color: var(--blue-300);
  margin-bottom: 1.5rem;
}
.footer__logo-stage {
  flex: 1 1 auto;
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 12, 25, 0.8);
  border: 1px solid rgba(157, 195, 242, 0.22);
}
.footer__logo-stage img {
  width: auto;
  max-height: 96px;
  object-fit: contain;
}
.footer__logo-unit--agency .footer__logo-stage img {
  width: min(100%, 170px);
  max-width: 170px;
  max-height: 120px;
}
.footer__logo-unit--team .footer__logo-stage img { width: min(100%, 270px); }

.footer__agent {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  min-height: 440px;
}
.footer__portrait {
  position: relative;
  margin: 0;
  min-height: 440px;
  overflow: hidden;
  background: #ecebe7;
  border-right: 1px solid rgba(157, 195, 242, 0.45);
}
.footer__portrait::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(14, 42, 78, 0.25);
  pointer-events: none;
}
.footer__portrait img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 38%;
}
.footer__portrait figcaption {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  padding: 9px 12px;
  color: var(--white);
  background: var(--blue-900);
}
.footer__agent-copy {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}
.footer__agent-copy .tick-label { color: var(--blue-300); }
.footer__agent-copy h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 0.35rem;
}
.footer__role {
  color: var(--blue-300);
  margin: 0 0 1.5rem;
}
.footer__intro {
  max-width: 53ch;
  color: var(--blue-100);
  font-size: 1.0625rem;
  margin: 0 0 2rem;
}
.footer__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.footer__text-link {
  color: var(--white);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-block: 7px;
  border-bottom: 1px solid var(--blue-300);
}
.footer__text-link:hover { color: var(--blue-300); }
.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.35rem clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(157, 195, 242, 0.45);
  color: var(--blue-300);
  font-size: 0.8125rem;
}
.footer__base p { margin: 0; }
.footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer__nav a {
  color: var(--blue-100);
  font-size: 0.6875rem;
}
.footer__nav a:hover { color: var(--white); }

@media (max-width: 1080px) {
  .footer__credentials { grid-template-columns: 1fr; }
  .footer__credentials-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(157, 195, 242, 0.45);
  }
}

@media (max-width: 899px) {
  .footer__agent { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); }
  .footer__agent-copy { padding: clamp(2rem, 5vw, 3rem); }
  .footer__agent-copy h2 { font-size: clamp(2.75rem, 7vw, 4.25rem); }
}

@media (max-width: 640px) {
  .footer { padding-top: 3.5rem; }
  .footer .container { padding-inline: 16px; }
  .footer__logos { grid-template-columns: 1fr; }
  .footer__logo-unit + .footer__logo-unit {
    border-left: 0;
    border-top: 1px solid rgba(157, 195, 242, 0.45);
  }
  .footer__logo-stage { min-height: 118px; }
  .footer__agent { grid-template-columns: 1fr; }
  .footer__portrait {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid rgba(157, 195, 242, 0.45);
  }
  .footer__agent-copy { padding: 2.25rem 1.5rem 2.75rem; }
  .footer__agent-copy h2 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .footer__base { align-items: flex-start; flex-direction: column; }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 26, 51, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: min(1100px, 90vw); max-height: 84vh; box-shadow: var(--shadow-lift); }
.lightbox__stage img { max-width: min(1100px, 90vw); max-height: 84vh; object-fit: contain; }
.lightbox__counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--blue-300);
}
.lightbox__btn {
  position: absolute;
  background: none;
  border: 1px solid var(--blue-300);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.2rem;
  width: 48px; height: 48px;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--blue-800); }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 24px; right: 24px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 4rem; }
  .hero__draw { max-width: 480px; }
  .detail__layout { grid-template-columns: 1fr; }
  .sheet { position: static; }
  .split, .split--contact { grid-template-columns: 1fr; }
  .band__stats { grid-template-columns: 1fr; gap: 2.5rem; }
  .ctabar { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding-block: 14px; width: 100%; border-bottom: 1px solid var(--blue-050); }
  .nav__wa { display: none; }
  .nav__wa--mobile { display: inline-flex; margin-top: 14px; width: 100%; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    width: 44px; height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .features ul { grid-template-columns: 1fr; }
  .specstrip { gap: 1.6rem; }
  .detail { padding-bottom: 90px; } /* room for ctabar */
}

@media (max-width: 640px) {
  .grid--cards { grid-template-columns: minmax(0, 1fr); }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}
