/* =========================================================
   ASHRAFI — Luxury Maison · Coming Soon Landing
   ========================================================= */

@font-face {
  font-family: "Peyda";
  src: url("../fonts/PeydaFaNum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/PeydaFaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --green-900: #031d12;
  --green-800: #062a1b;
  --green-700: #0a3a26;
  --green-500: #1f5a3f;
  --cream: #eee3d7;
  --cream-2: #e8e2db;
  --paper: #f3eee8;
  --ink: #141210;
  --gold: #c9a052;
  --gold-2: #e9cf8e;
  --gold-3: #8f6a26;
  --muted: rgba(20, 18, 16, 0.6);

  --serif: "Didot", "Bodoni MT", "Bodoni 72", "Playfair Display", "Times New Roman", serif;
  --sans: "Peyda", Tahoma, sans-serif;

  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 80px);
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; }
ul { list-style: none; }

::selection { background: var(--green-800); color: var(--gold-2); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0.01em; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold) 25%, var(--gold-2) 45%, var(--gold) 60%, var(--gold-3) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
}
@keyframes shimmer { to { background-position: -250% 0; } }

.eyebrow {
  font-size: 14px;
  color: var(--muted);
  display: inline-block;
}
.eyebrow--gold { color: var(--gold); }

.section-title {
  font-size: clamp(34px, 5.4vw, 80px);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 14px;
}
.section-title--light { color: var(--cream); }

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--green-800);
  display: grid;
  place-items: center;
  transition: clip-path 1.2s var(--ease);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__crest {
  width: 110px;
  animation: crestIn 1.4s var(--ease-out) both;
}
@keyframes crestIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.preloader__bar { width: 180px; height: 1px; background: rgba(238, 227, 215, 0.2); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s ease; }
.preloader__count { color: var(--cream); font-size: 13px; letter-spacing: 0.15em; opacity: 0.7; }

/* ---------- cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  pointer-events: none;
  border-radius: 50%;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-dot { display: block; }
}
.cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
}
.cursor__label {
  font-size: 12px;
  color: var(--green-900);
  opacity: 0;
  transform: scale(0.6);
  transition: 0.3s var(--ease-out);
  white-space: nowrap;
  font-weight: 700;
}
.cursor.is-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(201, 160, 82, 0.12);
}
.cursor.is-label {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--gold-2);
  border-color: var(--gold-2);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label + .cursor-dot { opacity: 0; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  transition: padding 0.5s var(--ease-out), background 0.5s, transform 0.6s var(--ease-out), backdrop-filter 0.5s;
}
.header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(243, 238, 232, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(20, 18, 16, 0.06);
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-dark:not(.is-scrolled) .header__logo img { filter: invert(1) brightness(1.6) sepia(0.3); }
.header__logo img { height: 40px; width: auto; transition: filter 0.4s; }
.header__nav { display: flex; gap: clamp(18px, 3vw, 44px); font-size: 15px; }
.header__nav a { position: relative; padding: 6px 0; display: inline-block; }
.header__nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: right; }
.header__cta {
  font-size: 14px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition: color 0.4s;
}
.header__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-800);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  border-radius: inherit;
}
.header__cta span { position: relative; }
.header__cta:hover { color: var(--cream); }
.header__cta:hover::before { transform: none; }
.header__burger { display: none; width: 34px; height: 34px; position: relative; }
.header__burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.4s var(--ease-out);
}
.header__burger span:first-child { top: 12px; }
.header__burger span:last-child { top: 21px; }
body.nav-open .header__burger span:first-child { top: 16px; transform: rotate(45deg); }
body.nav-open .header__burger span:last-child { top: 16px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scale(0, 1);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: none; transform-origin: right; }
.btn__arrow { font-style: normal; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(-6px); }
.btn--dark { background: var(--green-800); color: var(--cream); }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { color: var(--green-900); }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold::before { background: var(--cream); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--pad) 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, #fbf8f4 0%, transparent 60%),
    var(--paper);
}
.hero__bg-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  direction: ltr;
}
.hero__bg-text span {
  font-size: clamp(90px, 22vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6, 42, 27, 0.13);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: translateY(var(--bgY, 0));
}
.hero__grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
}
.hero__title {
  font-size: clamp(42px, 5.6vw, 92px);
  font-weight: 700;
  line-height: 1.22;
  margin: 18px 0 22px;
  color: var(--green-800);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.reveal-line { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.hero__lead { max-width: 340px; color: var(--muted); font-size: 16px; }
.hero__side--left { justify-self: end; display: grid; gap: 22px; justify-items: start; }

.hero__arch-wrap { position: relative; }
.hero__arch {
  width: clamp(240px, 27vw, 420px);
  aspect-ratio: 0.62;
  max-height: 76svh;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  clip-path: inset(100% 0 0 0 round 999px);
  transition: clip-path 1.6s var(--ease);
  box-shadow: 0 40px 80px -40px rgba(6, 42, 27, 0.5);
}
.hero__arch::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(238, 227, 215, 0.55);
  pointer-events: none;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.35);
  transition: transform 2.2s var(--ease-out);
}
body.loaded .hero__arch { clip-path: inset(0 0 0 0 round 999px); }
body.loaded .hero__img { transform: scale(1.05); }
body.loaded .reveal-line { transform: none; }
body.loaded .hero__title .line:nth-child(2) .reveal-line { transition-delay: 0.12s; }
body.loaded .hero__title .line:nth-child(3) .reveal-line { transition-delay: 0.24s; }

.badge {
  position: absolute;
  width: clamp(110px, 10vw, 150px);
  aspect-ratio: 1;
  bottom: 8%;
  left: -18%;
  display: grid;
  place-items: center;
  background: var(--green-800);
  border-radius: 50%;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.5) rotate(-40deg);
  transition: 1.2s var(--ease-out) 0.9s;
}
body.loaded .badge { opacity: 1; transform: none; }
.badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}
.badge__ring text {
  fill: var(--gold-2);
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: 3px;
}
.badge__crest { width: 30%; }
.hero__branches { display: grid; gap: 14px; }
.hero__branches li {
  display: grid;
  padding: 14px 20px;
  border-right: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.4);
}
.hero__branches strong { font-size: 18px; color: var(--green-800); }
.hero__branches span { font-size: 13px; color: var(--muted); }
.notify .btn { position: relative; }
.panel__link { color: var(--green-800); border-bottom: 1px solid var(--gold); padding-bottom: 4px; font-size: 17px; }
@keyframes spin { to { transform: rotate(360deg); } }

.countdown { display: flex; gap: 10px; direction: rtl; }
.countdown div {
  min-width: 70px;
  padding: 14px 8px 10px;
  border: 1px solid rgba(6, 42, 27, 0.15);
  border-radius: 999px 999px 18px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.countdown strong { display: block; font-size: 28px; line-height: 1.2; color: var(--green-800); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; color: var(--muted); }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.scroll-cue i { width: 1px; height: 46px; background: rgba(20, 18, 16, 0.15); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-800);
  animation: drop 2s var(--ease) infinite;
}
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* reveal on scroll */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-up.in { opacity: 1; transform: none; }
.hero .reveal-up { transition-delay: 0.5s; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--green-800);
  color: var(--cream);
  overflow: hidden;
  padding: 26px 0;
  direction: ltr;
  border-block: 1px solid rgba(201, 160, 82, 0.3);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__group span { font-size: clamp(24px, 3vw, 42px); white-space: nowrap; }
.marquee__group span:not(.serif) { font-weight: 700; }
.marquee__group .serif { font-style: italic; color: var(--gold-2); }
.marquee__group em { font-style: normal; color: var(--gold); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   STORY
   ========================================================= */
.story {
  background: var(--green-800);
  color: var(--cream);
  padding: clamp(90px, 14vw, 180px) var(--pad);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  width: 60vw;
  aspect-ratio: 1;
  left: -20vw;
  top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 90, 63, 0.6), transparent 65%);
  pointer-events: none;
}
.story__media { position: relative; }
.arch {
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 0.66;
}
.arch--tall { aspect-ratio: 0.6; }
.arch::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 207, 142, 0.45);
  pointer-events: none;
}
.parallax-wrap { overflow: hidden; }
.parallax { width: 100%; height: 120%; object-fit: cover; will-change: transform; margin-top: -10%; }
.story__num {
  position: absolute;
  bottom: -40px;
  left: -10px;
  font-size: clamp(90px, 12vw, 180px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 207, 142, 0.5);
  font-style: italic;
}
.manifesto {
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.85;
  margin: 26px 0 40px;
  font-weight: 700;
}
.manifesto .w { opacity: 0.14; transition: opacity 0.4s, color 0.4s; }
.manifesto .w.on { opacity: 1; }
.manifesto .w.gold { color: var(--gold-2); }
.story__sign { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.story__sign-img { height: 70px; width: auto; }
.story__sign .serif { font-style: italic; color: var(--gold-2); font-size: 18px; direction: ltr; }

/* =========================================================
   HORIZONTAL CAMPAIGN
   ========================================================= */
.hscroll { position: relative; background: var(--paper); }
.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: ltr;
}
.hscroll__head {
  direction: rtl;
  position: absolute;
  top: clamp(90px, 12vh, 130px);
  right: var(--pad);
  left: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 2;
}
.hscroll__title { font-size: clamp(28px, 3.6vw, 56px); direction: ltr; color: var(--green-800); }
.hscroll__title em { color: var(--gold); }
.hscroll__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: 0 var(--pad);
  direction: ltr;
  width: max-content;
  will-change: transform;
  margin-top: 60px;
}
.panel { flex: none; direction: rtl; }
.panel--intro, .panel--outro { width: clamp(280px, 30vw, 440px); }
.panel__big { font-size: clamp(44px, 6vw, 96px); font-weight: 700; line-height: 1.15; color: var(--green-800); }
.panel__txt { color: var(--muted); margin-top: 20px; max-width: 360px; }
.panel--img { position: relative; height: 58vh; aspect-ratio: 0.67; overflow: hidden; border-radius: 4px; }
.panel--wide { aspect-ratio: 1.6; }
.panel--offset { transform: translateY(6vh); }
.panel--img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.panel--img:hover img { transform: scale(1.06); }
.panel--img figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 50px 22px 18px;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(3, 29, 18, 0.75));
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.panel--img figcaption .serif { font-style: italic; color: var(--gold-2); font-size: 20px; }
.panel--outro { display: grid; justify-items: center; gap: 18px; }
.panel--outro img { width: 120px; }
.panel--outro p { font-size: 28px; font-style: italic; color: var(--green-800); direction: ltr; }
.hscroll__progress {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: rgba(20, 18, 16, 0.12);
}
.hscroll__progress span { position: absolute; inset: 0; background: var(--gold); transform-origin: right; transform: scaleX(0); }

/* =========================================================
   GALLERY MOSAIC
   ========================================================= */
.gallery {
  background: var(--cream-2);
  padding: clamp(90px, 12vw, 160px) 0;
}
.gallery__head { text-align: center; margin-bottom: clamp(50px, 7vw, 90px); padding: 0 var(--pad); }
.mosaic {
  --W: min(92vw, 1100px);
  --g: clamp(6px, 0.9vw, 12px);
  --u: calc((((var(--W) - 4 * var(--g)) * 0.33548) - 5 * var(--g)) / 6);
  width: var(--W);
  margin: 0 auto;
  display: grid;
  direction: ltr;
  gap: var(--g);
  grid-template-columns: 1.91fr 1.91fr 1.91fr 1.13fr 1.68fr;
  grid-template-rows: repeat(22, var(--u));
}
.tile {
  position: relative;
  overflow: hidden;
  background: #ddd5cb;
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.tile.in { opacity: 1; transform: none; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.8s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 29, 18, 0.55));
  opacity: 0;
  transition: opacity 0.6s;
}
.tile:hover img { transform: scale(1.08); }
.tile:hover::after { opacity: 1; }
.mosaic:hover .tile:not(:hover) img { filter: grayscale(0.6) brightness(0.92); }

.t-p1  { grid-column: 3; grid-row: 1 / 7; }
.t-p9  { grid-column: 1; grid-row: 5 / 11; }
.t-p5  { grid-column: 2; grid-row: 5 / 11; }
.t-p3  { grid-column: 3; grid-row: 7 / 13; }
.t-p7  { grid-column: 4 / 6; grid-row: 9 / 13; }
.t-p8  { grid-column: 1; grid-row: 11 / 17; }
.t-pl  { grid-column: 2; grid-row: 11 / 17; }
.t-p10 { grid-column: 3 / 5; grid-row: 13 / 17; }
.t-eye { grid-column: 5; grid-row: 13 / 15; }
.t-p4  { grid-column: 2; grid-row: 17 / 23; }
.t-p2  { grid-column: 3; grid-row: 17 / 23; }
.t-p10 img { object-position: center 20%; }

/* =========================================================
   HERITAGE
   ========================================================= */
.heritage {
  position: relative;
  background: var(--paper);
  padding: clamp(100px, 14vw, 200px) var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  overflow: hidden;
}
.heritage__drip {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(160px, 18vw, 280px);
  height: 70%;
  transform: translateX(-50%);
  opacity: 0.9;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.heritage__drip img { object-position: center top; }
.heritage__content { position: relative; z-index: 1; }
.heritage__title {
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--green-800);
  margin: 18px 0 24px;
  max-width: 760px;
}
.heritage__txt { max-width: 560px; color: var(--muted); font-size: 17px; }
.heritage__bird { position: relative; z-index: 1; }

/* =========================================================
   COLLECTIONS
   ========================================================= */
.collections {
  background: var(--green-900);
  color: var(--cream);
  padding: clamp(100px, 12vw, 170px) var(--pad);
  position: relative;
  overflow: hidden;
}
.collections__head { margin-bottom: 60px; }
.clist { border-top: 1px solid rgba(238, 227, 215, 0.15); }
.clist__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(18px, 2.4vw, 34px) 0;
  border-bottom: 1px solid rgba(238, 227, 215, 0.15);
  position: relative;
  transition: padding 0.6s var(--ease-out), color 0.4s;
}
.clist__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 82, 0.1));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.clist__item:hover::before { transform: none; }
.clist__item:hover { padding-right: 30px; color: var(--gold-2); }
.clist__num { font-style: italic; color: var(--gold); font-size: 20px; }
.clist__fa { font-size: clamp(36px, 6vw, 96px); font-weight: 700; line-height: 1.2; }
.clist__en { font-size: clamp(18px, 2vw, 30px); font-style: italic; opacity: 0.6; direction: ltr; }
.clist__soon {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(233, 207, 142, 0.5);
  color: var(--gold-2);
  padding: 6px 14px;
  border-radius: 999px;
}
.clist__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(200px, 20vw, 300px);
  aspect-ratio: 0.7;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.clist__preview.on { opacity: 1; }
.clist__preview img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   branches
   ========================================================= */
.branches {
  position: relative;
  padding: clamp(110px, 14vw, 200px) var(--pad);
  overflow: hidden;
  background: var(--cream-2);
}
.branches__bg { position: absolute; inset: 0; opacity: 0.55; }
.branches__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream-2), rgba(232, 226, 219, 0.4) 40%, var(--cream-2));
}
.branches__inner { position: relative; text-align: center; }
.bcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
  text-align: right;
}
.bcard {
  display: grid;
  gap: 6px;
  padding: 40px 36px 34px;
  background: rgba(243, 238, 232, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(6, 42, 27, 0.12);
  border-radius: 220px 220px 24px 24px;
  transition: transform 0.6s var(--ease-out), background 0.5s, color 0.5s, border-color 0.5s;
  position: relative;
}
.bcard:nth-child(2) { transition-delay: 0.08s; }
.bcard:hover { transform: translateY(-10px); background: var(--green-800); color: var(--cream); border-color: var(--green-800); }
.bcard__label {
  justify-self: center;
  font-size: 13px;
  color: var(--gold-3);
  margin-bottom: 8px;
  transition: color 0.5s;
}
.bcard:hover .bcard__label { color: var(--gold-2); }
.bcard h3 { font-size: 26px; text-align: center; }
.bcard p { text-align: center; color: var(--muted); transition: color 0.5s; }
.bcard:hover p { color: rgba(238, 227, 215, 0.7); }
.bcard__en { text-align: center; font-style: italic; font-size: 14px; opacity: 0.6; direction: ltr; }
.bcard__go { text-align: center; margin-top: 16px; font-size: 14px; color: var(--gold-3); transition: color 0.5s; }
.bcard:hover .bcard__go { color: var(--gold-2); }

/* =========================================================
   NOTIFY
   ========================================================= */
.notify {
  background: var(--green-800);
  color: var(--cream);
  text-align: center;
  padding: clamp(100px, 13vw, 180px) var(--pad);
  display: grid;
  justify-items: center;
  position: relative;
  overflow: hidden;
}
.notify::before {
  content: "";
  position: absolute;
  width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 160, 82, 0.18), transparent 60%);
  pointer-events: none;
}
.notify__logo { width: clamp(120px, 12vw, 170px); margin-bottom: 40px; position: relative; }
.notify__title { font-size: clamp(30px, 4.4vw, 64px); line-height: 1.4; position: relative; }
.notify__lead { max-width: 520px; margin: 22px auto 40px; color: rgba(238, 227, 215, 0.7); position: relative; }
.nform {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(233, 207, 142, 0.4);
  border-radius: 999px;
  width: min(100%, 480px);
  background: rgba(3, 29, 18, 0.4);
  position: relative;
}
.nform input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--cream);
  font: inherit;
  font-size: 18px;
  padding: 0 20px;
  direction: ltr;
  text-align: right;
  letter-spacing: 0.05em;
}
.nform input::placeholder { color: rgba(238, 227, 215, 0.35); }
.nform.err { animation: shake 0.5s; border-color: #d27a6a; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.nform__msg { min-height: 28px; margin-top: 16px; color: var(--gold-2); font-size: 15px; position: relative; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--green-900);
  color: var(--cream);
  padding: 40px var(--pad) 40px;
  overflow: hidden;
}
.footer__big {
  font-size: clamp(90px, 24vw, 420px);
  line-height: 0.9;
  text-align: center;
  direction: ltr;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3) 70%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  user-select: none;
}
.footer__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(238, 227, 215, 0.15);
  padding-top: 30px;
  margin-top: 20px;
  font-size: 14px;
}
.footer__col { display: grid; gap: 4px; align-content: start; }
.footer__col a { display: inline-block; justify-self: start; transition: color 0.3s; }
.footer__col a:hover { color: var(--gold-2); }
.footer__label { font-size: 12px; color: var(--gold); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(3, 29, 18, 0.94);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 86vw;
  max-height: 82vh;
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.7s var(--ease-out), opacity 0.3s;
}
.lightbox.open img { transform: none; }
.lightbox__close { position: absolute; top: 20px; left: 28px; font-size: 44px; color: var(--cream); line-height: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(233, 207, 142, 0.5);
  color: var(--gold-2);
  font-size: 20px;
  transition: background 0.3s;
}
.lightbox__nav:hover { background: rgba(201, 160, 82, 0.2); }
.lightbox__prev { right: 28px; }
.lightbox__next { left: 28px; }
.lightbox__cap { position: absolute; bottom: 26px; color: var(--cream); font-size: 15px; opacity: 0.8; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__side--right { grid-column: 1 / -1; text-align: center; justify-self: center; display: grid; justify-items: center; order: -1; }
  .hero__lead { margin-inline: auto; }
  .hero__arch-wrap { justify-self: center; }
  .hero__side--left { justify-self: center; }
}

@media (max-width: 860px) {
  .header__nav {
    position: fixed;
    inset: 0;
    background: var(--green-800);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    font-size: 34px;
    font-weight: 700;
    color: var(--cream);
    clip-path: circle(0 at 10% 5%);
    transition: clip-path 0.8s var(--ease);
    z-index: -1;
  }
  body.nav-open .header__nav { clip-path: circle(150% at 10% 5%); }
  body.nav-open .header__burger span { background: var(--cream); }
  body.nav-open .header__logo img { filter: invert(1) brightness(1.6) sepia(0.3); }
  .header__burger { display: block; }
  .header__cta { display: none; }
  .header__logo img { height: 32px; }

  .hero { padding-top: 100px; padding-bottom: 90px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__side--left { justify-items: center; }
  .hero__arch { width: min(68vw, 320px); }
  .badge { left: -12%; }
  .countdown div { min-width: 62px; }
  .countdown strong { font-size: 22px; }

  .story, .heritage { grid-template-columns: 1fr; }
  .story__media { max-width: 340px; margin: 0 auto; width: 100%; }
  .heritage__bird { max-width: 320px; margin: 0 auto; width: 100%; order: -1; }
  .heritage__drip { display: none; }

  .hscroll__head { flex-direction: column; gap: 6px; }
  .panel--img { height: 52vh; }

  .mosaic {
    --W: 92vw;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
  }
  .mosaic .tile { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 0.67; }
  .mosaic .t-p7, .mosaic .t-p10 { grid-column: 1 / -1 !important; aspect-ratio: 1.5; }
  .mosaic .t-eye { grid-column: 1 / -1 !important; aspect-ratio: 2.7; }

  .clist__item { grid-template-columns: 1fr auto; gap: 16px; }
  .clist__en { display: none; }
  .clist__preview { display: none; }

  .bcards { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .footer__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .countdown { gap: 6px; }
  .countdown div { min-width: 56px; padding: 10px 4px 8px; }
  .nform input { font-size: 16px; padding: 0 12px; }
  .btn { padding: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
