/* ============================================================================
   RIVANSH INFRA — Design System
   Direction: Editorial Luxury · Navy + Gold · warm, premium, trustworthy
   Headings: Fraunces (variable serif) · Body: Plus Jakarta Sans
   ========================================================================== */

/* ----------------------------- TOKENS ----------------------------------- */
:root {
  /* Palette */
  --navy-900: #0b1b2b;   /* deepest ink */
  --navy-800: #10263c;
  --navy-700: #16324f;
  --navy-600: #1f4368;
  --navy-500: #2c5a86;

  --gold-600: #a6812f;
  --gold-500: #c8a250;   /* primary champagne gold */
  --gold-400: #d9bd7c;
  --gold-300: #e8d3a3;

  --cream-50:  #fbf8f2;  /* page background */
  --cream-100: #f5efe4;
  --cream-200: #ece3d3;
  --paper:     #fffdf9;  /* card surface */

  --ink:      #142433;   /* body text on cream */
  --ink-soft: #4a5a68;
  --ink-mute: #7a8894;
  --line:     rgba(20, 36, 51, 0.10);
  --line-strong: rgba(20, 36, 51, 0.16);

  /* Typography */
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans:  "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Spacing rhythm */
  --sp-section: clamp(4.5rem, 9vw, 9rem);
  --container: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Shadow — soft, diffused, never harsh */
  --sh-soft: 0 18px 50px -24px rgba(11, 27, 43, 0.28);
  --sh-card: 0 24px 60px -30px rgba(11, 27, 43, 0.34);
  --sh-float: 0 30px 80px -32px rgba(11, 27, 43, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- RESET ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--cream-50);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* Film-grain overlay for tactile paper feel (fixed, non-interactive) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------- TYPOGRAPHY ------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy-900); }
.display  { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 400; }
.h-xl { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.h-md { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold-500);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.serif-italic { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* ----------------------------- LAYOUT ----------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }
.section-head h2 { margin-top: 1rem; }

/* ----------------------------- BUTTONS ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--navy-900); color: var(--cream-50); }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--sh-soft); }
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); }
.btn--gold:hover { box-shadow: 0 16px 40px -16px rgba(168, 129, 47, 0.65); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: var(--cream-50); border-color: var(--navy-900); }
.btn--light { background: rgba(255,255,255,0.92); color: var(--navy-900); }
.btn--light:hover { background: #fff; box-shadow: var(--sh-soft); }

/* Button-in-button trailing icon */
.btn .ico {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
  margin-right: -0.5rem;
}
.btn--gold .ico, .btn--light .ico, .btn--ghost .ico { background: rgba(11,27,43,0.08); }
.btn:hover .ico { transform: translate(3px, -1px); }
.btn .ico svg { width: 15px; height: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--navy-800); font-size: 0.95rem;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link-arrow:hover { gap: 0.85rem; border-color: var(--gold-500); color: var(--gold-600); }

/* ============================ HEADER / NAV ============================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: clamp(0.8rem, 2vw, 1.4rem);
  transition: padding 0.5s var(--ease);
}
.nav {
  max-width: var(--container); margin-inline: auto;
  margin-inline: clamp(0.9rem, 3vw, auto);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0.7rem 0.65rem 1.4rem;
  background: rgba(251, 248, 242, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--sh-soft);
  border-radius: var(--r-pill);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled .nav { background: rgba(251, 248, 242, 0.94); box-shadow: var(--sh-card); }

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(11,27,43,0.25);
  flex-shrink: 0;
}
/* Footer sits on navy — give the round logo a subtle ring so it reads as a badge */
.site-footer .brand__mark { box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.brand__name { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 600; color: var(--navy-900); line-height: 1; }
.brand__name small { display: block; font-family: var(--f-sans); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.95rem; border-radius: var(--r-pill);
  font-size: 0.92rem; font-weight: 500; color: var(--navy-800);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__link:hover, .nav__item:hover .nav__link { background: rgba(20,36,51,0.06); color: var(--navy-900); }
.nav__link .chev { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.nav__item:hover .nav__link .chev { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(720px, 86vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-float);
  padding: 1.6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.nav__item:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__col h4 { font-family: var(--f-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-600); margin-bottom: 0.9rem; }
.mega__link { display: block; padding: 0.45rem 0.6rem; border-radius: 8px; font-size: 0.9rem; color: var(--ink-soft); transition: background 0.25s, color 0.25s, padding 0.3s var(--ease); }
.mega__link:hover { background: var(--cream-100); color: var(--navy-900); padding-left: 0.9rem; }

/* Hamburger */
.nav__burger { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--navy-900); position: relative; flex-shrink: 0; }
.nav__burger span { position: absolute; left: 13px; width: 18px; height: 1.6px; background: var(--cream-50); transition: transform 0.45s var(--ease), opacity 0.3s var(--ease); }
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 24px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(11, 27, 43, 0.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 6.5rem var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { display: block; color: var(--cream-50); font-family: var(--f-serif); font-size: 1.5rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.mobile-menu a small { font-family: var(--f-sans); font-size: 0.8rem; color: var(--gold-400); letter-spacing: 0.1em; }
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1){transition-delay:.08s}
body.menu-open .mobile-menu a:nth-child(2){transition-delay:.14s}
body.menu-open .mobile-menu a:nth-child(3){transition-delay:.2s}
body.menu-open .mobile-menu a:nth-child(4){transition-delay:.26s}
body.menu-open .mobile-menu a:nth-child(5){transition-delay:.32s}
body.menu-open .mobile-menu a:nth-child(6){transition-delay:.38s}

/* ============================== HERO =================================== */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; padding: 8.5rem 0 3rem; }
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__poster { z-index: 0; }
/* Video sits above the poster; if autoplay is blocked (e.g. iOS Low Power Mode)
   JS hides it and the poster image shows through — no stray play button. */
.hero__video { z-index: 0; transition: opacity 0.6s ease; }
.hero__video.is-hidden { opacity: 0; pointer-events: none; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,20,32,0.72) 0%, rgba(8,20,32,0.45) 40%, rgba(8,20,32,0.55) 70%, rgba(8,20,32,0.85) 100%),
    linear-gradient(105deg, rgba(8,20,32,0.6) 0%, rgba(8,20,32,0.15) 55%, transparent 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { color: var(--gold-300); font-weight: 700; }
.hero__eyebrow::before { background: var(--gold-300); }
.hero h1 { color: #fff; max-width: 17ch; margin-top: 1.1rem; text-shadow: 0 2px 40px rgba(0,0,0,0.55); }
.hero h1 em { color: var(--gold-400); }
.hero__sub { color: #fff; max-width: 50ch; margin-top: 1.3rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); font-weight: 500; text-shadow: 0 2px 24px rgba(0,0,0,0.7); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ========================= SEARCH PANEL ================================ */
.search {
  position: relative; z-index: 20;
  margin-top: 1.9rem; max-width: 900px;
  background: rgba(255, 253, 249, 0.97);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-float);
  padding: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: stretch;
}
.search__field { position: relative; padding: 0.7rem 1rem; border-radius: var(--r-md); transition: background 0.3s; }
.search__field + .search__field { border-left: 1px solid var(--line); }
.search__field:hover { background: var(--cream-100); }
.search__field label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-600); font-weight: 700; margin-bottom: 0.25rem; }
.search__field select {
  width: 100%; border: none; background: transparent; font-size: 1rem; font-weight: 600; color: var(--navy-900);
  appearance: none; cursor: pointer; padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a6812f' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.search__btn { align-self: stretch; }
.search__btn .btn { width: 100%; height: 100%; justify-content: center; }

/* Scroll cue */
.hero__cue { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.7); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hero__cue span { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ======================= BUILDERS MARQUEE ============================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: scroll-x 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; color: var(--navy-700); white-space: nowrap; opacity: 0.55; transition: opacity 0.3s, color 0.3s; letter-spacing: 0.01em; }
.marquee__item:hover { opacity: 1; color: var(--gold-600); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ========================= PROJECT CARDS =============================== */
.tabs { display: inline-flex; gap: 0.3rem; padding: 0.35rem; background: var(--cream-100); border-radius: var(--r-pill); border: 1px solid var(--line); }
.tab { padding: 0.6rem 1.4rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); transition: color 0.3s, background 0.4s var(--ease); }
.tab.active { background: var(--navy-900); color: var(--cream-50); box-shadow: var(--sh-soft); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.2rem; }

.pcard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.55rem;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-card); border-color: var(--gold-400); }
.pcard__media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--navy-800); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__badge { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255,255,255,0.92); color: var(--navy-800); backdrop-filter: blur(6px); }
.pcard__badge--soon { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); }
.pcard__media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(11,27,43,0.5)); }
.pcard__body { padding: 1rem 0.7rem 0.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.pcard__name { font-family: var(--f-serif); font-size: 1.18rem; color: var(--navy-900); line-height: 1.15; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.82rem; color: var(--ink-mute); margin-top: -0.1rem; }
.pcard__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.pcard__meta svg { width: 13px; height: 13px; color: var(--gold-600); }
.pcard__foot { margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.pcard__enq { font-weight: 600; font-size: 0.88rem; color: var(--navy-800); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.4s var(--ease), color 0.3s; }
.pcard:hover .pcard__enq { color: var(--gold-600); gap: 0.65rem; }
.pcard__tag { font-size: 0.72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-mute); grid-column: 1/-1; }
.empty-state svg { width: 40px; height: 40px; color: var(--gold-500); margin-bottom: 1rem; }

/* ========================== FILTER BAR ================================= */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--sh-soft); }
.filterbar__field { flex: 1 1 200px; }
.filterbar__field label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-600); font-weight: 700; margin-bottom: 0.4rem; }
.filterbar__field select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--cream-50); font-weight: 600; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a6812f' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 1rem center; }
.filter-count { font-size: 0.9rem; color: var(--ink-soft); margin: 1.4rem 0 0.2rem; }
.filter-count b { color: var(--navy-900); }

/* ========================= TESTIMONIALS ================================ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.testi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.8rem; box-shadow: var(--sh-soft); position: relative;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.testi__quote { font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.5; color: var(--navy-800); }
.testi__mark { font-family: var(--f-serif); font-size: 3.5rem; line-height: 0.5; color: var(--gold-400); height: 1.4rem; }
.testi__who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testi__avatar { width: 46px; height: 46px; border-radius: var(--r-pill); background: linear-gradient(140deg, var(--navy-700), var(--navy-500)); color: var(--gold-300); display: grid; place-items: center; font-family: var(--f-serif); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; }
.testi__name { font-weight: 700; color: var(--navy-900); font-size: 0.95rem; }
.testi__role { font-size: 0.82rem; color: var(--ink-mute); }
.testi__stars { color: var(--gold-500); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ============================ ABOUT ==================================== */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media__frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card); aspect-ratio: 4/5; }
.about-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media__badge { position: absolute; bottom: -1.5rem; right: -1rem; background: var(--navy-900); color: var(--cream-50); border-radius: var(--r-md); padding: 1.3rem 1.6rem; box-shadow: var(--sh-float); text-align: center; }
.about-media__badge b { font-family: var(--f-serif); font-size: 2.2rem; color: var(--gold-400); display: block; line-height: 1; }
.about-media__badge span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.75); }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 1.2rem; margin-top: 2rem; }
.feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-100); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-600); flex-shrink: 0; }
.feature__ico svg { width: 20px; height: 20px; }
.feature h4 { font-family: var(--f-sans); font-size: 0.98rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.2rem; }
.feature p { font-size: 0.86rem; color: var(--ink-soft); }

/* ======================== AREA TILES =================================== */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.area-tile { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--sh-soft); display: block; }
.area-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.area-tile:hover img { transform: scale(1.08); }
.area-tile::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(11,27,43,0.9)); }
.area-tile__label { position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2; color: #fff; }
.area-tile__label b { font-family: var(--f-serif); font-size: 1.25rem; display: block; }
.area-tile__label span { font-size: 0.8rem; color: var(--gold-300); }

/* ============================ CTA BAND ================================= */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--cream-50); border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 4.5rem); box-shadow: var(--sh-card); }
.cta-band::before { content:""; position:absolute; top:-40%; right:-10%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(200,162,80,0.28), transparent 65%); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band h2 em { color: var(--gold-400); }
.cta-band .lead { color: rgba(255,255,255,0.82); margin-top: 1rem; }
.cta-band__row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; position: relative; z-index: 2; }

/* ============================= FORM ==================================== */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--sh-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--navy-800); }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--cream-50); transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200,162,80,0.18); }
.field input[readonly] { background: var(--cream-200); color: var(--navy-800); font-weight: 600; cursor: default; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a6812f' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 1rem center; }
.form-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.4rem; }
.form-msg { padding: 1rem 1.2rem; border-radius: var(--r-md); font-weight: 600; font-size: 0.92rem; margin-top: 1rem; display: none; }
.form-msg.ok { display: block; background: rgba(46,125,86,0.12); color: #2e7d56; border: 1px solid rgba(46,125,86,0.3); }
.form-msg.err { display: block; background: rgba(180,50,50,0.1); color: #b43232; border: 1px solid rgba(180,50,50,0.3); }

.selected-project { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r-md); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; margin-bottom: 1.6rem; }
.selected-project__ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(200,162,80,0.2); color: var(--gold-300); display: grid; place-items: center; flex-shrink: 0; }
.selected-project small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-300); }
.selected-project b { font-family: var(--f-serif); font-size: 1.25rem; }

/* =========================== PAGE HERO ================================= */
.page-hero { position: relative; padding: 11rem 0 3.5rem; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; overflow: hidden; }
.page-hero::before { content:""; position:absolute; top:-30%; left:-8%; width: 480px; height: 480px; border-radius:50%; background: radial-gradient(circle, rgba(200,162,80,0.22), transparent 65%); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero h1 em { color: var(--gold-400); }
.page-hero .lead { color: rgba(255,255,255,0.82); margin-top: 1rem; }
.crumb { display: flex; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1.2rem; }
.crumb a:hover { color: var(--gold-300); }

/* ============================= FOOTER ================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding-top: clamp(3.5rem, 7vw, 6rem); position: relative; z-index: 5; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand__name { color: #fff; }
.footer-about { margin-top: 1.2rem; font-size: 0.9rem; line-height: 1.7; max-width: 34ch; }
.footer-col h4 { font-family: var(--f-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-400); margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; padding: 0.3rem 0; color: rgba(255,255,255,0.7); transition: color 0.3s, padding-left 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold-300); padding-left: 0.3rem; }
.footer-contact-item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; font-size: 0.9rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold-400); flex-shrink: 0; margin-top: 0.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.6rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.15); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.footer-socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.footer-socials svg { width: 17px; height: 17px; }

/* ========================= REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"]{transition-delay:.08s}.reveal[data-d="2"]{transition-delay:.16s}.reveal[data-d="3"]{transition-delay:.24s}.reveal[data-d="4"]{transition-delay:.32s}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ============================ RESPONSIVE =============================== */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-split { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .search { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .search__field + .search__field { border-left: none; }
  .search__btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav { padding: 0.55rem 0.6rem 0.55rem 1rem; gap: 0.6rem; }
  .brand__name { font-size: 1rem; }
  .nav__actions .btn--gold { padding: 0.7rem 0.9rem; font-size: 0.85rem; }
  .nav__actions .btn--gold .ico { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; padding: 0.5rem; }
  .search__field { padding: 0.55rem 0.85rem; }
  .search__field + .search__field { border-top: 1px solid var(--line); }
  .hero { padding: 7rem 0 2.5rem; min-height: 100dvh; }
  .hero h1 { margin-top: 0.8rem; }
  .hero__sub { margin-top: 1rem; }
  .hero__cta { margin-top: 1.2rem; width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .about-media__badge { right: 0; }
}
