@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;600;700&display=swap');

/* --- LUXURY DESIGN TOKENS --- */
:root {
  /* Color Palette */
  --color-bg: hsl(40, 33%, 96%);
  --color-bg-secondary: hsl(40, 24%, 91%);
  --color-card-bg: hsla(40, 30%, 100%, 0.7);
  --color-card-border: hsla(46, 35%, 35%, 0.22);
  
  --color-gold: hsl(46, 62%, 40%);
  --color-gold-light: hsl(46, 58%, 46%);
  --color-gold-dark: hsl(46, 68%, 28%);
  --color-gold-glow: hsla(46, 55%, 45%, 0.22);
  
  --color-text-primary: hsl(240, 12%, 12%);
  --color-text-secondary: hsl(240, 9%, 30%);
  --color-text-muted: hsl(240, 6%, 45%);
  
  /* Font Stacks */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-hebrew: 'Heebo', 'Outfit', sans-serif;
  
  /* Layout & Spacing */
  --max-width: 1400px;
  --header-height: 90px;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
}

/* --- DUAL LANGUAGE LOGIC --- */
body.lang-en {
  font-family: var(--font-sans);
  direction: ltr;
}

body.lang-he {
  font-family: var(--font-hebrew);
  direction: rtl;
}

body.lang-en .he-text { display: none !important; }
body.lang-he .en-text { display: none !important; }

/* Apply serif fonts to luxury headings */
body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en .luxury-font {
  font-family: var(--font-serif);
}
body.lang-he h1, body.lang-he h2, body.lang-he h3, body.lang-he .luxury-font {
  font-family: var(--font-hebrew);
  font-weight: 500;
}

/* --- RESET & ACCESSIBILITY --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 19px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* --- COMMON UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle-badge {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-card-border);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  margin-bottom: 3.5rem;
  font-weight: 500;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  color: hsl(40, 33%, 97%);
  background: var(--color-gold);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-gold-glow);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  background: transparent;
  color: var(--color-gold-light);
  box-shadow: 0 6px 30px var(--color-gold-glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-card-border);
  color: var(--color-text-primary);
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--color-card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: var(--max-width);
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.header.scrolled {
  top: 0.75rem;
  width: calc(100% - 3rem);
  max-width: 1350px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  height: 80px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 0.4rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Toggler Button */
.lang-toggle-btn {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-toggle-btn:hover {
  border-color: var(--color-gold);
  background: rgba(197, 168, 128, 0.05);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1010;
}

.mobile-nav-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('facade.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-video-bg.hidden + .hero-image-fallback {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(7, 7, 8, 0.30) 0%,
    rgba(7, 7, 8, 0.40) 60%,
    rgba(7, 7, 8, 0.78) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  /* Keep the hero text near the top, just below the menu with a small gap
     (CTAs now live in the fixed bottom bar, not here). */
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 7rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.hero .subtitle-badge {
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 0;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #0a0a0a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7), 0 2px 18px rgba(255, 255, 255, 0.5);
}

body.lang-he .hero h1 {
  font-family: var(--font-hebrew);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #0a0a0a;
  font-style: italic;
  font-weight: 900;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* --- STICKY BOTTOM CTA BAR --- */
/* The two hero CTAs now live in a bar pinned to the bottom of the viewport,
   staying visible (sticky) throughout the whole page scroll. */
.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  gap: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-card-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: ctaBarSlideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s both;
}

/* Each button takes an equal horizontal share, flush to the edges & bottom. */
.sticky-cta-bar a {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
  padding: 1.1rem 1rem;
  white-space: nowrap;
}

.sticky-cta-bar a.btn-premium {
  border-left: none;
  border-right: none;
}

.sticky-cta-bar a.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  border-right: none;
}

.sticky-cta-bar a.btn-premium:hover,
.sticky-cta-bar a.btn-outline:hover {
  transform: none;
}

@keyframes ctaBarSlideUp {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta-bar {
    animation: none;
  }
}

.scroll-indicator {
  position: absolute;
  /* Sit above the fixed sticky CTA bar at the bottom of the hero. */
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(40, 20%, 88%);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid hsl(40, 20%, 85%);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: hsl(40, 20%, 90%);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* --- SPLIT CONCEPT SECTIONS --- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.concept-text h2 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  font-weight: 300;
}

.concept-text h2 span {
  display: block;
  font-style: italic;
  color: var(--color-gold);
}

.concept-text p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: var(--color-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-gold);
}

.feature-item-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.feature-item-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.concept-media {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  aspect-ratio: 4 / 3;
}

.concept-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.concept-media:hover img {
  transform: scale(1.05);
}

/* --- LANDMARKS / ATTRACTIONS --- */
.grid-attractions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.attraction-card {
  height: 380px;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.attraction-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: var(--transition-smooth);
  filter: grayscale(40%) brightness(50%);
}

.attraction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(7, 7, 8, 0.95) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.attraction-content {
  position: relative;
  z-index: 3;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.attraction-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
}

.attraction-desc {
  font-size: 0.88rem;
  color: hsl(40, 20%, 85%);
  opacity: 0;
  transition: var(--transition-smooth);
  line-height: 1.5;
}

.attraction-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 15px 30px var(--color-gold-glow);
}

.attraction-card:hover .attraction-bg {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(60%);
}

.attraction-card:hover .attraction-content {
  transform: translateY(0);
}

.attraction-card:hover .attraction-desc {
  opacity: 1;
}

/* --- NEIGHBORHOOD INTERACTIVE MAP --- */
.neighborhood-map {
  margin-top: 4rem;
  height: 520px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 10;
}

/* Leaflet Layout Overrides */
.neighborhood-map .leaflet-container {
  background: var(--color-bg-secondary);
  font-family: var(--font-sans);
}

body.lang-he .neighborhood-map .leaflet-container {
  font-family: var(--font-hebrew);
}

/* Custom Zoom controls styling */
.neighborhood-map .leaflet-bar {
  border: 1px solid var(--color-card-border) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.neighborhood-map .leaflet-bar a {
  background-color: var(--color-bg-secondary) !important;
  color: var(--color-gold) !important;
  border-bottom: 1px solid var(--color-card-border) !important;
  transition: var(--transition-fast);
}

.neighborhood-map .leaflet-bar a:hover {
  background-color: var(--color-bg) !important;
  color: var(--color-gold-light) !important;
}

/* Premium Popup styling */
.neighborhood-map .leaflet-popup-content-wrapper {
  background: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border: 1.5px solid var(--color-gold) !important;
  border-radius: var(--border-radius-md) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

.neighborhood-map .leaflet-popup-tip {
  background: var(--color-bg-secondary) !important;
  border-left: 1.5px solid var(--color-gold) !important;
  border-bottom: 1.5px solid var(--color-gold) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

.neighborhood-map .leaflet-popup-content {
  margin: 14px 18px !important;
  line-height: 1.6 !important;
}

.neighborhood-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: var(--color-text-muted) !important;
  font-size: 10px !important;
}

.neighborhood-map .leaflet-control-attribution a {
  color: var(--color-gold-light) !important;
}

/* --- INTERACTIVE BLUEPRINT VIEWER --- */
.plans-section {
  background: var(--color-bg-secondary);
}

.plans-dashboard {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 4rem;
}

.plans-tabs-container {
  position: relative;
  width: 100%;
}

.plans-scroll-arrow {
  display: none;
}

.plans-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-tab-btn {
  display: flex;
  flex-direction: column;
  text-align: start;
  padding: 1.25rem 1.75rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-card-border);
  background: var(--color-card-bg);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

body.lang-he .plan-tab-btn {
  text-align: right;
}

.plan-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-gold);
  left: 0;
  opacity: 0;
  transition: var(--transition-fast);
}

body.lang-he .plan-tab-btn::before {
  left: auto;
  right: 0;
}

.plan-tab-btn:hover {
  border-color: rgba(197, 168, 128, 0.4);
  transform: translateX(5px);
}

body.lang-he .plan-tab-btn:hover {
  transform: translateX(-5px);
}

.plan-tab-btn.active {
  border-color: var(--color-gold);
  background: rgba(197, 168, 128, 0.05);
}

.plan-tab-btn.active::before {
  opacity: 1;
}

.plan-tab-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.plan-tab-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-display {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  align-items: center;
}

.plan-canvas-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: hsl(40, 24%, 93%);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.plan-canvas-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.zoom-overlay-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-gold-light);
  pointer-events: none;
  opacity: 0.8;
}

.plan-details-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.plan-details-pane h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-gold-light);
}

.plan-details-pane p {
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.plan-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-spec-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius-md);
}

.plan-spec-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold);
}

.plan-spec-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-feature-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.plan-feature-bullet svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* --- MULTIMEDIA GALLERY --- */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.gallery-filter-btn {
  padding: 0.6rem 1.75rem;
  border-radius: 30px;
  border: 1px solid var(--color-card-border);
  background: var(--color-card-bg);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background: rgba(197, 168, 128, 0.05);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--color-card-border);
  cursor: pointer;
}

.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 8, 0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
  z-index: 2;
}

.gallery-item-overlay-title {
  font-size: 1.2rem;
  color: var(--color-gold-light);
  font-weight: 500;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.gallery-item-overlay-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(40, 20%, 85%);
  margin-bottom: 0.25rem;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.gallery-video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  z-index: 3;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(197, 168, 128, 0.4);
}

.gallery-video-indicator svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-inline-start: 4px;
}

.gallery-item-card:hover img {
  transform: scale(1.06);
}

.gallery-item-card:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-card:hover .gallery-item-overlay-title,
.gallery-item-card:hover .gallery-item-overlay-type {
  transform: translateY(0);
}

.gallery-item-card:hover .gallery-video-indicator {
  background: var(--color-gold);
  scale: 1.1;
}

/* --- PARTNERS --- */
.partners-section {
  border-top: 1px solid rgba(197, 168, 128, 0.05);
  background: var(--color-bg-secondary);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.partner-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.partner-icon svg {
  width: 32px;
  height: 32px;
}

.partner-card h3 {
  font-size: 1.6rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.partner-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.partner-desc {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- CONTACT & BROCHURE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.contact-info p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.download-decks-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.download-card:hover {
  border-color: var(--color-gold);
  background: rgba(197, 168, 128, 0.05);
  transform: translateY(-2px);
}

.download-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.download-details {
  flex-grow: 1;
}

.download-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.download-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.download-action-btn {
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-action-btn svg {
  width: 24px;
  height: 24px;
}

/* Contact Form */
.contact-form-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-card-border);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
  background: rgba(255, 255, 255, 0.85);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success-msg {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: var(--border-radius-md);
  color: #81c784;
}

.form-success-msg svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.form-error-msg {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  background: rgba(198, 40, 40, 0.07);
  border: 1px solid rgba(198, 40, 40, 0.25);
  border-radius: var(--border-radius-md);
  color: #c62828;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid rgba(197, 168, 128, 0.08);
  /* Extra bottom padding so the fixed sticky CTA bar never overlaps content. */
  padding: 4rem 0 calc(4rem + 64px);
  background: var(--color-bg);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

/* Footer contact links wrapper */
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* Footer direct-call / email link */
.footer-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-call:hover {
  color: var(--color-gold);
}

/* Wrapper for the direct contact methods (call + email) */
.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0.25rem 0 2rem;
}

/* Direct call/email block inside the contact section */
.contact-call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  background: var(--color-card-bg);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-call-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: 0 8px 26px var(--color-gold-glow);
}

.contact-call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  color: #fff;
}

.contact-call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.contact-call-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-call-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold-dark);
}

/* Email address is longer than a phone number — scale down + allow wrapping */
.contact-mail-address {
  font-size: 1rem;
  word-break: break-word;
}

/* Call button inside the sticky bottom bar */
.sticky-call-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.sticky-call-icon {
  flex-shrink: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  opacity: 0.7;
}

/* --- LIGHTBOX PORTAL --- */
.lightbox-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 238, 232, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-portal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--color-text-primary);
}

body.lang-he .lightbox-close-btn {
  right: auto;
  left: 2rem;
}

.lightbox-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--color-gold);
}

.lightbox-content-box {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-gold-light);
  text-align: center;
  max-width: 600px;
}

/* --- CUSTOM VIDEO MODAL --- */
.video-modal-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 238, 232, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-portal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-container {
  width: 80vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.video-modal-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1200px) {
  html { font-size: 17px; }
  .concept-grid { gap: 4rem; }
  .attraction-card { height: 350px; }
  .plans-dashboard { gap: 2.5rem; }
}

@media (max-width: 992px) {
  html { font-size: 16px; }
  .section-padding { padding: 6rem 0; }
  .hero h1 { font-size: 4rem; }
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .grid-attractions {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans-dashboard {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    min-width: 0;
  }
  .plan-canvas-wrapper {
    max-height: 380px;
    min-width: 0;
    max-width: 100%;
  }
  .plans-tabs-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    /* Allow this grid item to shrink so the scrollable tabs list
       stays within the viewport instead of stretching the dashboard */
    min-width: 0;
    max-width: 100%;
  }
  .plans-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  .plans-scroll-arrow:hover {
    background: var(--color-gold);
    color: var(--color-bg);
  }
  .plans-scroll-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
  .arrow-left {
    left: -5px;
  }
  .arrow-right {
    right: -5px;
  }
  .plans-tabs-container::before,
  .plans-tabs-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0.75rem;
    width: 40px;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.3s ease;
  }
  .plans-tabs-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-secondary), transparent);
  }
  .plans-tabs-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-secondary), transparent);
  }
  .plans-tabs-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
  }
  .plans-tabs-list::-webkit-scrollbar {
    display: none;
  }
  .plan-tab-btn {
    flex-shrink: 0;
    min-width: 190px;
    padding: 1rem 1.25rem;
    text-align: center;
  }
  body.lang-he .plan-tab-btn {
    text-align: center;
  }
  .plan-tab-btn:hover {
    transform: none;
  }
  body.lang-he .plan-tab-btn:hover {
    transform: none;
  }
  .plan-tab-btn::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    width: auto;
  }
  body.lang-he .plan-tab-btn::before {
    left: 0;
    right: 0;
  }
  .plan-display {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
    min-width: 0;
  }
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(197, 168, 128, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  .header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    padding: 3rem;
  }
  
  body.lang-he .nav-menu {
    left: auto;
    right: -100%;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  body.lang-he .nav-menu.active {
    right: 0;
  }
  
  .header-actions {
    margin-inline-end: 0.5rem;
    gap: 0.75rem;
  }

  .lang-toggle-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
  }
  .hero .subtitle-badge {
    margin-bottom: 1rem;
  }
  /* Keep the sticky CTAs side-by-side (horizontal) even on mobile,
     just slightly tighter so both labels fit. */
  .sticky-cta-bar a {
    padding: 1rem 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .grid-attractions {
    grid-template-columns: 1fr;
  }
  .neighborhood-map {
    height: 300px;
    margin-top: 2.5rem;
  }
  .plan-display {
    padding: 1rem;
  }
  .gallery-filter-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
  }
  .gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
  }
  .gallery-masonry {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 1.5rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* --- ANIMATIONS (VIEWPORT REVEALS) --- */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll-driven CSS viewport animation */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .reveal-on-scroll {
      animation: reveal-up 1s linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

/* Standard CSS reveal classes (for JS Fallback and general viewport scroll triggers) */
.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- GALLERY SHOW MORE & COLLAPSED STATES --- */
.gallery-show-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
  width: 100%;
}

.gallery-item-card.collapsed-card {
  display: none !important;
}

/* =====================================================================
   CINEMATIC CURTAIN INTRO
   A full-screen navy curtain (two panels + gold seam) that reveals the
   site once per session. Timeline driven entirely by CSS animations so
   the curtain still opens even if the cleanup JS never runs.
   ===================================================================== */

#pervolia-intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  /* Self-disable after the sequence as a no-JS safety net so the overlay
     never traps interaction even if the cleanup script doesn't run. */
  animation: piEnd 0s linear 3s forwards;
}

/* Repeat visits / opted-out: never paint it (decided in <head>). */
html.intro-skip #pervolia-intro { display: none !important; }

/* Reduced motion: hide unless an explicit run was requested (e.g. ?intro=1
   sets .intro-active). Also covers the no-JS + reduced-motion case. */
@media (prefers-reduced-motion: reduce) {
  html:not(.intro-active) #pervolia-intro { display: none !important; }
}

/* Lock scrolling while the intro is active; released when JS removes the class. */
html.intro-active,
html.intro-active body { overflow: hidden; }

/* --- Curtain panels --- */
.pi-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.2%; /* slight overlap to avoid a hairline gap at the seam */
  background: linear-gradient(180deg, #05080f 0%, #0b172a 50%, #060f1c 100%);
  background-size: 100% 100vh;
  will-change: transform;
}
.pi-top { top: 0; background-position: top center; }
.pi-bottom { bottom: 0; background-position: bottom center; }

/* Thin glowing gold seam at the meeting line (rides with the top panel). */
.pi-top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, #fbbf24 25%, #fde68a 50%, #fbbf24 75%, transparent 100%);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.65);
}

/* --- Centered logo block --- */
.pi-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Soft glow behind the logo via radial-gradient (NOT filter, which would
   break text rendering in some compositing layers). */
.pi-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(700px, 70vw);
  height: min(700px, 70vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(251, 191, 36, 0.18) 0%,
    rgba(251, 191, 36, 0.06) 35%,
    rgba(251, 191, 36, 0) 70%);
  pointer-events: none;
}

/* Brand medallion (round logo) framed by a soft gold ring + glow. */
.pi-logo-img {
  position: relative;
  display: block;
  width: clamp(320px, 72vw, 620px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  /* Thin gold ring lifts the cream medallion off the navy background. */
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.55),
    0 0 60px rgba(251, 191, 36, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

.pi-goldline {
  position: relative;
  width: min(220px, 42vw);
  height: 1.5px;
  margin: 1.8rem 0 0;
  background: linear-gradient(90deg, transparent, #fbbf24, #fde68a, #fbbf24, transparent);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  transform: scaleX(0);
  transform-origin: center;
}

/* --- Timeline (runs by default; .intro-skip / reduced-motion hide the host) --- */
.pi-logo-img { animation: piLogoIn  1s   cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.pi-goldline { animation: piLineGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.pi-content  { animation: piContentOut 0.6s ease 2s both; }
.pi-top      { animation: piTopOpen    0.95s cubic-bezier(0.76, 0, 0.24, 1) 2s both; }
.pi-bottom   { animation: piBottomOpen 0.95s cubic-bezier(0.76, 0, 0.24, 1) 2s both; }

@keyframes piLogoIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes piLineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes piContentOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.04); }
}
@keyframes piTopOpen    { to { transform: translateY(-101%); } }
@keyframes piBottomOpen { to { transform: translateY(101%); } }
@keyframes piEnd        { to { visibility: hidden; pointer-events: none; } }

