/* ============================================================
   CREZ Real Estate · Dubai
   Dark editorial luxury · Forest palette · Cormorant + Satoshi
   ============================================================ */

:root {
  --bg: #0B0F0D;
  --bg-2: #101612;
  --bg-card: #0E2321;
  --ivory: #EAE6DC;
  --ivory-dim: rgba(234, 230, 220, 0.62);
  --ivory-faint: rgba(234, 230, 220, 0.38);
  --hairline: rgba(234, 230, 220, 0.14);
  --hairline-soft: rgba(234, 230, 220, 0.08);
  --accent: #C9A96A;
  --serif: "Cormorant", Georgia, serif;
  --sans: "Satoshi", -apple-system, "Helvetica Neue", sans-serif;
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(201, 169, 106, 0.35); color: var(--ivory); }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Type scale ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
}

.display-sm {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
}

.label-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ivory-faint);
  margin-bottom: 1.2rem;
  padding-bottom: 0.2rem; /* italic descender reserve */
}

/* ---------- Grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
}
html.js .preloader { display: flex; }

.preloader-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.preloader-count {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-variant-numeric: tabular-nums;
  color: var(--ivory-dim);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 999px;
  padding: 0.72rem 0.72rem 0.72rem 1.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.6s var(--ease-lux), background-color 0.6s var(--ease-lux), color 0.6s var(--ease-lux);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--ivory);
  color: #12140F;
}
.btn-solid:hover { background: #fff; }

.btn-orb {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(11, 15, 13, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.6s var(--ease-lux);
}
.btn-orb svg { width: 0.75rem; height: 0.75rem; }
.btn:hover .btn-orb { transform: translate(2px, -2px) scale(1.05); }

.btn-ghost {
  border: 1px solid var(--hairline);
  padding: 0.72rem 1.5rem;
  color: var(--ivory);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ivory-dim); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
  padding: 0 var(--pad-x);
  transition: background-color 0.7s var(--ease-lux), backdrop-filter 0.7s var(--ease-lux);
}
.nav.is-scrolled {
  background: rgba(11, 15, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.nav-brand-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
  transition: color 0.5s var(--ease-lux);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-lux);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.5s var(--ease-lux);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 15, 13, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu-links a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(30px);
}
.menu-foot {
  position: absolute;
  bottom: 2rem;
  left: var(--pad-x);
  font-size: 0.8rem;
  color: var(--ivory-faint);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(1.25rem, 3vh, 2.5rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 15, 13, 0.55) 0%, rgba(11, 15, 13, 0.12) 34%, rgba(11, 15, 13, 0.4) 68%, var(--bg) 100%);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: clamp(1rem, 3vh, 2.5rem);
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.hero-lede {
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: var(--ivory);
  text-align: left;
  text-shadow: 0 1px 3px rgba(11, 15, 13, 0.55), 0 4px 28px rgba(11, 15, 13, 0.45);
}

.hero-eyebrow { text-shadow: 0 1px 3px rgba(11, 15, 13, 0.55); }

.hero-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(6.5rem, 19.5vw, 21rem);
  line-height: 0.82;
  letter-spacing: 0.045em;
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 3.5vh, 3rem);
  user-select: none;
}
.hero-word span { display: inline-block; }

/* ---------- Search bar ---------- */

.search {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: end;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  padding: 1.3rem clamp(1.2rem, 2vw, 2rem);
  border-radius: 1.25rem;
  background: rgba(14, 20, 16, 0.55);
  border: 1px solid rgba(234, 230, 220, 0.12);
  box-shadow: inset 0 1px 0 rgba(234, 230, 220, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.search-field { display: flex; flex-direction: column; gap: 0.5rem; }

.search-field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.search-field select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23EAE6DC' stroke-opacity='.6' fill='none' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.35rem 1.4rem 0.55rem 0;
  cursor: pointer;
  transition: border-color 0.5s var(--ease-lux);
}
.search-field select:hover,
.search-field select:focus { border-color: var(--ivory-dim); outline: none; }
.search-field select option { background: var(--bg-2); color: var(--ivory); }

.search-submit { justify-self: end; }

/* ---------- Section rhythm ---------- */

section { position: relative; }

/* ---------- About / stats ---------- */

.about {
  padding: clamp(7rem, 14vh, 11rem) var(--pad-x) clamp(5rem, 10vh, 8rem);
}

.about-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(4.5rem, 9vh, 7rem);
}

.about-body {
  color: var(--ivory-dim);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 42ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-soft);
}

.stat {
  padding: 2.4rem 2rem 0 0;
}
.stat + .stat { border-left: 1px solid var(--hairline-soft); padding-left: 2rem; }

.stat dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 0.9rem;
}

.stat dd {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Portfolio ---------- */

.folio {
  padding: clamp(5rem, 10vh, 8rem) var(--pad-x);
}

.folio-head { margin-bottom: clamp(3rem, 7vh, 5rem); }

.folio-note {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--ivory-faint);
}

.folio-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.folio-stage {
  position: sticky;
  top: 12vh;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--bg-2);
}
.folio-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease-lux), transform 1.4s var(--ease-lux);
}
.folio-img.is-active { opacity: 1; transform: scale(1); }

.folio-list { list-style: none; }

.folio-item {
  border-bottom: 1px solid var(--hairline-soft);
  transition: opacity 0.6s var(--ease-lux);
}
.folio-item:first-child { border-top: 1px solid var(--hairline-soft); }

.folio-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: clamp(1.4rem, 2.6vh, 2rem) 0;
}

.folio-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.08;
  color: var(--ivory-faint);
  transition: color 0.6s var(--ease-lux), transform 0.7s var(--ease-lux);
}
.folio-item.is-active .folio-name,
.folio-link:hover .folio-name,
.folio-link:focus-visible .folio-name { color: var(--ivory); transform: translateX(0.6rem); }

.folio-meta {
  display: flex;
  gap: 1.6rem;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s var(--ease-lux), opacity 0.7s var(--ease-lux);
}
.folio-item.is-active .folio-meta,
.folio-link:hover .folio-meta,
.folio-link:focus-visible .folio-meta { max-height: 3rem; opacity: 1; }

.folio-meta em {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ivory-dim);
}
.folio-meta em:last-child { color: var(--accent); }

.folio-thumb { display: none; }

.folio-item.is-filtered { opacity: 0.18; pointer-events: none; }

.folio-clear { margin-top: 2.5rem; }

/* ---------- Horizontal gallery ---------- */

.gallery { overflow: hidden; }

.gallery-pin {
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding: 0 var(--pad-x);
  will-change: transform;
}

.gallery-intro {
  flex: none;
  width: min(58vw, 620px);
}
.gallery-intro .display { margin-bottom: 1.6rem; }
.gallery-intro p {
  color: var(--ivory-dim);
  max-width: 40ch;
  line-height: 1.75;
}

.gallery-panel { flex: none; }

.gallery-frame {
  width: clamp(300px, 34vw, 520px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.9rem;
}
.gallery-panel.is-tall .gallery-frame { aspect-ratio: 3 / 4; width: clamp(320px, 38vw, 580px); }

.gallery-frame img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}

.gallery-panel figcaption {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ivory-faint);
}

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

.press {
  padding: clamp(3.5rem, 7vh, 5.5rem) 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
}

.press-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.press:hover .press-track { animation-play-state: paused; }

.press-row {
  display: flex;
  align-items: baseline;
  gap: clamp(4rem, 8vw, 8rem);
  padding-right: clamp(4rem, 8vw, 8rem);
}

.press-mark {
  color: var(--ivory-faint);
  white-space: nowrap;
  transition: color 0.5s var(--ease-lux);
}
.press-mark:hover { color: var(--ivory-dim); }

.press-mark.serif { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; }
.press-mark.serif i { font-weight: 400; }
.press-mark.serif-caps { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: 0.06em; }
.press-mark.grotesk { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.12em; }
.press-mark.grotesk-light { font-family: var(--sans); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.22em; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- City ---------- */

.city {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vh, 9rem) var(--pad-x);
  overflow: hidden;
}

.city-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.city-media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.city-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 13, 0.35) 0%, rgba(11, 15, 13, 0.08) 100%);
}

.city-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: rgba(10, 30, 28, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(234, 230, 220, 0.1);
  border-radius: 1.1rem;
  padding: clamp(2.2rem, 4vw, 3.5rem);
}

.city-card .display-sm { margin-bottom: 1.2rem; }

.city-body {
  color: var(--ivory-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.city-list { list-style: none; }
.city-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.city-n {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ivory-faint);
}

/* ---------- Quote ---------- */

.quote {
  padding: clamp(7rem, 14vh, 11rem) var(--pad-x);
  display: flex;
  justify-content: center;
}
.quote blockquote { max-width: 22ch; text-align: center; }
.quote .display-sm { font-style: italic; font-weight: 400; padding-bottom: 0.3rem; }
.quote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ivory-faint);
}

/* ---------- FAQ ---------- */

.faq {
  padding: clamp(4rem, 8vh, 6rem) var(--pad-x) clamp(7rem, 13vh, 10rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.faq-list { border-top: 1px solid var(--hairline-soft); }

.faq-item { border-bottom: 1px solid var(--hairline-soft); }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: 500;
  transition: color 0.5s var(--ease-lux);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ivory-dim);
  transition: transform 0.6s var(--ease-lux);
}
.faq-icon::before { width: 14px; height: 1px; }
.faq-icon::after { width: 1px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }

.faq-body { overflow: hidden; }
.faq-body p {
  padding: 0 0 1.8rem;
  max-width: 56ch;
  color: var(--ivory-dim);
  line-height: 1.75;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(7rem, 14vh, 11rem) var(--pad-x);
  overflow: hidden;
}

.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 15, 13, 0.62) 30%, rgba(11, 15, 13, 0.72) 100%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.cta-copy .display { margin-bottom: 1.4rem; }
.cta-copy p { color: var(--ivory-dim); max-width: 36ch; }

.cta-form {
  background: rgba(14, 20, 16, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 230, 220, 0.12);
  box-shadow: inset 0 1px 0 rgba(234, 230, 220, 0.08);
  border-radius: 1.25rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.form-field input,
.form-field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.45rem 0 0.6rem;
  transition: border-color 0.5s var(--ease-lux);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23EAE6DC' stroke-opacity='.6' fill='none' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center;
  cursor: pointer;
}
.form-field select option { background: var(--bg-2); }
.form-field input:focus,
.form-field select:focus { border-color: var(--accent); outline: none; }
.form-field.has-error input { border-color: #C96A6A; }

.form-error { font-size: 0.78rem; color: #D89090; }

.form-success {
  font-size: 0.9rem;
  color: var(--accent);
  line-height: 1.6;
}

.cta-form .btn { justify-content: space-between; margin-top: 0.5rem; }

.cta-form.is-sending .btn { opacity: 0.55; pointer-events: none; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: clamp(4.5rem, 9vh, 7rem) var(--pad-x) 2rem;
  background: #080B09;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 8rem);
  margin-bottom: clamp(4rem, 8vh, 6rem);
}

.footer-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: rgba(234, 230, 220, 0.16);
  user-select: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col h3 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 1.4rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li { font-size: 0.9rem; color: var(--ivory-dim); }
.footer-col a { transition: color 0.5s var(--ease-lux); }
.footer-col a:hover { color: var(--ivory); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.78rem;
  color: var(--ivory-faint);
}

/* ---------- Reveal defaults (JS enhances) ---------- */

html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .search { grid-template-columns: repeat(2, 1fr); }
  .search-submit { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .faq { grid-template-columns: 1fr; }
}

@media (width < 901px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav .btn { display: none; }

  .hero-top { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero-lede { max-width: 44ch; }

  .about-head { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .stat { border-top: 1px solid var(--hairline-soft); padding: 1.8rem 1rem 0 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--hairline-soft); padding-left: 1.5rem; }

  .folio-body { grid-template-columns: 1fr; }
  .folio-stage { display: none; }
  .folio-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.7rem;
    margin-top: 1.1rem;
  }
  .folio-name { color: var(--ivory); }
  .folio-meta { max-height: none; opacity: 1; flex-wrap: wrap; gap: 0.9rem 1.4rem; }

  /* Gallery: native horizontal scroll on touch */
  .gallery-pin { height: auto; padding: clamp(4rem, 9vh, 6rem) 0; }
  .gallery-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-intro { width: 78vw; scroll-snap-align: start; }
  .gallery-panel { scroll-snap-align: center; }
  .gallery-frame, .gallery-panel.is-tall .gallery-frame { width: 74vw; }

  .city { align-items: flex-end; }

  .cta-inner { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 560px) {
  .search { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .hero-word { font-size: 23vw; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .press-track { animation: none; flex-wrap: wrap; width: auto; }
  .press-row[aria-hidden="true"] { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .preloader { display: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }

  /* Gallery never pins without motion: fall back to a native horizontal scroller */
  .gallery-pin { height: auto; padding: clamp(4rem, 9vh, 6rem) 0; }
  .gallery-track { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 1rem; }
  .gallery-panel { scroll-snap-align: center; }
}
