/* ============================================================
   NAS View Developers — Components & Sections
   ============================================================ */

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0);
  transition: background .45s var(--ease), border-color .45s var(--ease), height .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header.is-solid {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  height: 66px;
}
/* On dark hero, header text is light until scrolled */
.header.is-light:not(.is-solid) { color: var(--white); }
.header.is-light:not(.is-solid) .wordmark { color: var(--white); }
.header.is-light:not(.is-solid) .nav__item > a,
.header.is-light:not(.is-solid) .nav__trigger { color: rgba(255,255,255,0.84); }
.header.is-light:not(.is-solid) .nav__item > a:hover,
.header.is-light:not(.is-solid) .nav__trigger:hover { color: var(--white); }
.header.is-light:not(.is-solid) .header__cta { background: var(--white); color: var(--ink); border-color: var(--white); }
.header.is-light:not(.is-solid) .header__cta:hover { background: rgba(255,255,255,0.84); border-color: rgba(255,255,255,0.84); }
.header.is-light:not(.is-solid) .burger span { background: var(--white); }

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}
.wordmark__logo { height: 32px; width: auto; display: block; filter: none; transition: filter .3s var(--ease); }
.header.is-light:not(.is-solid) .wordmark__logo { filter: brightness(0) invert(1); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  justify-self: center;
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item--has::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.nav a,
.nav__trigger {
  text-decoration: none;
  color: var(--ink-90);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav a::after,
.nav__trigger::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.nav a:hover::after,
.nav__trigger:hover::after,
.nav__trigger.is-active::after { width: 100%; }
.nav__trigger .caret { transition: transform .3s var(--ease); opacity: 0.7; }
.nav__item--has:hover .caret,
.nav__item--has.is-open .caret { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 216px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(0,0,0,0.10);
  padding: 8px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  z-index: 120;
}
.nav__item--has:hover .dropdown,
.nav__item--has:focus-within .dropdown,
.nav__item--has.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink-90);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown a:hover,
.dropdown a[aria-current="page"] { background: var(--offwhite); color: var(--ink); }

.header__right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header__cta {
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.header__cta:hover { background: #000; border-color: #000; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none; border: none; cursor: pointer;
  padding: 6px 0;
}
.burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu > a {
  text-decoration: none;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mm-group { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.mm-label {
  display: block;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); font-weight: 600; margin-bottom: 6px;
}
.mm-sub {
  display: block; text-decoration: none; color: var(--ink);
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0;
}
.mobile-menu .mm-cta { margin-top: 28px; justify-content: center; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; z-index: 0;
  display: flex; align-items: flex-end;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__ghost-num {
  position: absolute; top: clamp(88px, 13vh, 150px); right: var(--gutter); z-index: 2;
  font-size: clamp(90px, 15vw, 210px); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(196,166,116,0.4);
  letter-spacing: -0.04em; pointer-events: none; user-select: none;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media image-slot { width: 100%; height: 100%; }
.hero__media image-slot::part(image) { transition: transform 7s linear; transform: scale(1.08); }
.hero__slide.is-active .hero__media image-slot::part(image) { transform: scale(1); }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,0.42) 0%, rgba(16,16,16,0.12) 38%, rgba(16,16,16,0.62) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--gutter);
  padding-top: calc(var(--header-h) + 18px);
  padding-bottom: clamp(90px, 13vh, 132px);
  max-height: 100%;
  overflow: hidden;
}
.hero .eyebrow { color: rgba(255,255,255,0.74); }
.hero .eyebrow::before { background: rgba(196,166,116,0.7); }
.hero__title { max-width: 16ch; margin-top: clamp(14px,2.6vh,26px); color: #fff; }
.hero__sub {
  margin-top: clamp(14px,2.6vh,26px);
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero__actions { margin-top: clamp(20px,4vh,40px); display: flex; flex-wrap: wrap; gap: 14px; }
.hero__anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active .hero__anim { animation: heroTextUp 0.8s var(--ease-out) var(--d, 0s); }
}
@keyframes heroTextUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__wipe {
  position: absolute; inset: 0; z-index: 5;
  background: var(--ink);
  transform: translateX(-101%);
  pointer-events: none;
}
.hero__wipe.is-active { animation: heroWipe 0.9s cubic-bezier(.76,0,.24,1) forwards; }
@keyframes heroWipe { 0% { transform: translateX(-101%); } 50% { transform: translateX(0); } 100% { transform: translateX(101%); } }
.hero__progress {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 4vh, 40px); z-index: 6;
  display: flex; gap: 32px;
}
.hero__seg {
  appearance: none; background: none; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit;
  color: rgba(255,255,255,0.55);
}
.hero__seg-track { width: 108px; height: 1px; background: rgba(255,255,255,0.28); position: relative; overflow: hidden; }
.hero__seg-fill { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__seg.is-active .hero__seg-fill { animation: heroFill 6.5s linear forwards; }
@keyframes heroFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__seg-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transition: color .3s var(--ease); }
.hero__seg.is-active .hero__seg-label, .hero__seg:hover .hero__seg-label { color: #fff; }
.hero__scroll {
  position: absolute;
  right: var(--gutter); bottom: clamp(56px, 8vh, 96px);
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
}
.hero__scroll-line { width: 1px; height: 54px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: #fff; animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* ---------- Verticals ---------- */
.verticals { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.vcard {
  position: relative;
  background: var(--white);
  padding: clamp(30px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.vcard__media { position: relative; height: 240px; margin: 0 calc(-1 * clamp(30px, 3.4vw, 52px)) clamp(26px, 3vw, 40px); }
.vcard__media image-slot { width: 100%; height: 100%; }
.vcard__index { font-size: 13px; font-weight: 600; color: var(--gold-deep); letter-spacing: 0.04em; }
.vcard h3 { margin-top: 14px; font-size: var(--fs-h3); }
.vcard p { margin-top: 14px; color: var(--grey); max-width: 38ch; }
.vcard .link { margin-top: auto; padding-top: 28px; }
.vcard__media image-slot::part(image) { transition: transform 1.2s var(--ease); }

/* ---------- Projects ---------- */
.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  appearance: none; background: none; border: 1px solid var(--line-strong);
  color: var(--grey); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; cursor: pointer; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 40px) clamp(20px, 2.4vw, 36px);
}
.project-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .project-grid--three { grid-template-columns: repeat(2, 1fr); } }
.pcard {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.pcard.is-hidden { display: none; }
.pcard.is-anim { opacity: 0; transform: translateY(14px); }
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--offwhite);
}
.pcard__media image-slot { width: 100%; height: 100%; }
.pcard__status {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--ink);
  padding: 7px 12px;
}
.pcard__status[data-s="Ongoing"] { background: var(--ink); color: #fff; }
.pcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.pcard h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; }
.pcard__loc { font-size: 13.5px; color: var(--grey); font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.pcard p { margin-top: 8px; color: var(--grey); font-size: 14.5px; max-width: 44ch; }
.pcard__view {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover .pcard__view { opacity: 1; transform: none; }
.pcard__price { margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--gold-deep); }

/* ---------- Why / value props ---------- */
.why { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.value-list { border-top: 1px solid var(--line); }
.value-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.value-item__num { font-size: 13px; font-weight: 600; color: var(--gold-deep); padding-top: 5px; letter-spacing: 0.04em; }
.value-item h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.value-item p { margin-top: 9px; color: var(--grey); font-size: 15px; max-width: 52ch; }

/* ---------- Investment / partner CTA ---------- */
.invest { position: relative; overflow: hidden; }
.invest__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.invest__media { position: relative; aspect-ratio: 5 / 6; }
.invest__media image-slot { width: 100%; height: 100%; }
.invest .eyebrow { color: rgba(255,255,255,0.6); }
.invest .eyebrow::before { background: rgba(196,166,116,0.65); }
.invest h2 { color: #fff; margin-top: 24px; max-width: 14ch; }
.invest p { margin-top: 24px; color: rgba(255,255,255,0.72); max-width: 46ch; font-size: var(--fs-lead); }
.invest__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--white); padding: clamp(30px, 4vw, 56px) clamp(20px, 2vw, 30px); text-align: left; }
.stat__num { font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__num sup { font-size: 0.42em; vertical-align: super; font-weight: 500; margin-left: 2px; color: var(--gold-deep); }
.stat__label { margin-top: 14px; font-size: 13.5px; color: var(--grey); letter-spacing: 0.02em; }

/* ---------- Partner form ---------- */
.partner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.partner__intro p { color: var(--grey); margin-top: 22px; max-width: 40ch; }
.partner__models { margin-top: 38px; display: flex; flex-direction: column; }
.pmodel { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.pmodel:last-child { border-bottom: 1px solid var(--line); }
.pmodel span { font-size: 12px; color: var(--grey); font-weight: 600; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px;
  border: none; border-bottom: 1px solid var(--line-strong);
  background: transparent; padding: 11px 2px; color: var(--ink);
  border-radius: 0; transition: border-color .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 86px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-deep); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-soft); }
.field select { appearance: none; cursor: pointer; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23777' stroke-width='1.3' fill='none'/%3E%3C/svg%3E") no-repeat right 2px center; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #B3261E; }
.field__err { font-size: 12px; color: #B3261E; min-height: 0; opacity: 0; transition: opacity .3s; text-transform: none; letter-spacing: 0; }
.field.has-error .field__err { opacity: 1; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--grey); max-width: 38ch; }
.form__success {
  grid-column: 1 / -1;
  display: none;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  background: var(--offwhite);
  font-size: 15px;
}
.form.is-sent .form__success { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(60px, 7vw, 100px) 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .wordmark__logo { filter: brightness(0) invert(1); height: 30px; }
.footer__tag { margin-top: 22px; color: rgba(255,255,255,0.64); max-width: 32ch; font-size: 15px; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,0.78); text-decoration: none; font-size: 14.5px; margin-bottom: 12px; transition: color .3s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: clamp(50px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.52); }
.footer__bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* WhatsApp float */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  transition: transform .4s var(--ease);
  text-decoration: none;
}
.wa:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header__right .header__cta { display: none; }
  .burger { display: flex; }
  .header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .verticals { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .invest__grid { grid-template-columns: 1fr; }
  .invest__media { aspect-ratio: 16 / 10; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .partner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__ghost-num { display: none; }
  .hero__progress { gap: 18px; }
  .hero__seg-track { width: 56px; }
  .hero__seg-label { font-size: 9.5px; }
}
