/* Batmandir marketing — design tokens + motion system.
   Tokens are 1:1 with ios-native/Batmandir/Batmandir/DesignSystem.swift.
   Strict palette: black surfaces + #FF6B35 orange. No third hue. */

:root {
  /* Surfaces */
  --bg-0:        #000000;
  --bg-1:        #0A0A0A;
  --bg-2:        #0E0E0E;   /* canonical iOS bg */
  --bg-3:        #161616;
  --bg-card:     #1A1A1A;   /* iOS DesignSystem.Colors.cardBg */

  /* Single brand orange — no variants, alpha only */
  --accent:        #FF6B35;
  --accent-soft:   rgba(255, 107, 53, 0.18);   /* iOS accentSoft */
  --accent-glow:   rgba(255, 107, 53, 0.35);
  --accent-haze:   rgba(255, 107, 53, 0.06);

  /* Ink — iOS uses warm off-white, NOT pure white */
  --ink:           #F5F2EB;
  --ink-muted:     rgba(245, 242, 235, 0.62);
  --ink-faint:     rgba(245, 242, 235, 0.42);

  /* Hairlines */
  --rule:          rgba(255, 255, 255, 0.06);
  --rule-strong:   rgba(255, 255, 255, 0.10);

  /* Geometry — iOS DesignSystem.Radius */
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  16px;
  --r-pill: 999px;

  /* Spacing — iOS DesignSystem.Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 14px;
  --sp-lg: 22px;
  --sp-xl: 32px;
  --sp-xxl: 64px;

  /* Motion — matches SwiftUI .spring(response: 0.32, dampingFraction: 0.86) */
  --ease-spring:   cubic-bezier(0.34, 1.06, 0.64, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.45, 0, 0.55, 1);
  --t-quick:  180ms;
  --t-base:   320ms;
  --t-slow:   560ms;
  --t-stage:  900ms;
}

/* ---------- Reset + base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg-2);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg-2);
  color: var(--ink);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-quick) var(--ease-out-soft); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Selection in brand orange */
::selection { background: var(--accent); color: #000; }

/* ---------- Typography — Cormorant Garamond mirrors iOS DesignSystem.Typography ---------- */

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

.serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.serif-italic { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 300; }

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-muted { color: var(--ink-faint); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 300; letter-spacing: -0.01em; }
h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(40px, 8vw, 92px); line-height: 1.02; }
h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 5vw, 56px); line-height: 1.06; }
h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.18; }
em, .italic { font-style: italic; font-weight: 300; }

p { margin: 0 0 1em; color: var(--ink); }
p.lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36em;
}
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

/* ---------- Layout primitives ---------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 10vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(36px, 6vw, 72px) 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-strong), transparent);
  border: 0;
  margin: 0;
}

/* ---------- Site header — mirrors iOS HomeShell header treatment ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(14, 14, 14, 0.78);
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-base) var(--ease-out-soft);
}
.site-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-star {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.brand-marks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  letter-spacing: 4px;
  font-weight: 400;
  color: var(--ink);
}
.brand-sub {
  font-size: 7.5px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 3px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  letter-spacing: 1.4px;
  font-size: 11px;
  transition: transform var(--t-quick) var(--ease-spring),
              box-shadow var(--t-base) var(--ease-out-soft);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--accent-glow); }
.nav-cta:active { transform: translateY(0) scale(0.97); }

/* Hide secondary links on mobile (just brand + apply CTA) */
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 12vw, 140px) 24px clamp(40px, 8vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* Soft top-down vignette — matches iOS gate proximity card gradient */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-haze) 0%, transparent 60%),
    linear-gradient(180deg, #1f1408 0%, var(--bg-2) 56%, var(--bg-2) 100%);
  z-index: -2;
}
.hero::after {
  /* Faint orange stardust — sub-1% noise, ambient warmth */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 80%, var(--accent-glow) 0px, transparent 1px),
    radial-gradient(circle at 80% 22%, var(--accent-glow) 0px, transparent 1.5px);
  background-size: 220px 220px, 280px 280px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  animation: fade-rise var(--t-stage) var(--ease-out-soft) both;
}
.hero h1 {
  font-size: clamp(44px, 9vw, 110px);
  line-height: 0.98;
  margin-bottom: 28px;
  letter-spacing: -0.018em;
  color: var(--ink);
  animation: fade-rise var(--t-stage) 100ms var(--ease-out-soft) both;
}
.hero h1 em { color: var(--accent); }
.hero p.lede {
  margin: 0 auto 36px;
  text-align: center;
  animation: fade-rise var(--t-stage) 220ms var(--ease-out-soft) both;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-rise var(--t-stage) 340ms var(--ease-out-soft) both;
}

/* Big anchor star above the headline */
.hero-star {
  width: clamp(56px, 8vw, 96px);
  height: clamp(56px, 8vw, 96px);
  margin: 0 auto 32px;
  display: block;
  animation: fade-rise var(--t-stage) var(--ease-out-soft) both,
             pulse-star 2.4s 1.4s var(--ease-in-out) infinite;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

/* Hero corner badge: COMING Q4 2027 */
.hero-coming {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  animation: fade-in var(--t-stage) 800ms both;
}
.hero-coming .pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-dot 1.4s var(--ease-in-out) infinite;
  box-shadow: 0 0 12px var(--accent-glow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--t-quick) var(--ease-spring),
              background var(--t-base) var(--ease-out-soft),
              box-shadow var(--t-base) var(--ease-out-soft),
              color var(--t-base) var(--ease-out-soft);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
  color: #000;
}
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: scale(0.97); }

.btn-arrow svg { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease-spring); }
.btn:hover .btn-arrow svg { transform: translateX(4px); }

/* ---------- Section heading ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 720px;
}
.section-head .eyebrow { letter-spacing: 2.4px; }
.section-head h2 em { color: var(--accent); }

/* ---------- Property cards (4-tile grid) ---------- */

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .property-grid { grid-template-columns: 1fr; }
}
.property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--t-base) var(--ease-spring),
              border-color var(--t-base) var(--ease-out-soft),
              box-shadow var(--t-base) var(--ease-out-soft);
  isolation: isolate;
  min-height: 480px;
}
.property-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4),
              0 0 0 1px var(--accent-glow);
  color: var(--ink);
}
.property-card:active { transform: translateY(-2px) scale(0.995); }

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out-soft);
  /* Slow ken-burns idle, accelerated on hover */
}
.property-card:hover .property-image img { transform: scale(1.05); }
.property-image::after {
  /* Bottom fade for caption legibility */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.property-image .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.property-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.property-body .eyebrow { color: var(--ink-faint); }
.property-body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.property-body h3 em { color: var(--accent); font-style: italic; }
.property-body p { color: var(--ink-muted); font-size: 14px; margin: 0; }
.property-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}
.property-cta svg { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease-spring); }
.property-card:hover .property-cta svg { transform: translateX(6px); }

/* ---------- Tier ladder ---------- */

.tier-ladder {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 980px) {
  .tier-ladder { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 540px) {
  .tier-ladder { grid-template-columns: repeat(2, 1fr); }
}
.tier-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: transform var(--t-base) var(--ease-spring),
              border-color var(--t-base) var(--ease-out-soft);
}
.tier-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.tier-item .tier-star { width: 36px; height: 36px; margin-bottom: 14px; }
.tier-item .tier-code { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: var(--ink-faint); }
.tier-item .tier-name { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 16px; color: var(--ink); margin-top: 4px; line-height: 1.2; }

/* ---------- Stat / charts row ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.stat {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-card);
  text-align: left;
  transition: border-color var(--t-base) var(--ease-out-soft),
              transform var(--t-base) var(--ease-spring);
}
.stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat .label { font-size: 10px; letter-spacing: 1.8px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; }
.stat .value { font-family: "Cormorant Garamond", Georgia, serif; font-size: 36px; font-weight: 300; color: var(--ink); margin-top: 8px; }
.stat .value em { color: var(--accent); font-style: italic; }
.stat .sub { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }

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

.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--rule);
  padding: 64px 24px 36px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand-name { font-size: 18px; letter-spacing: 5px; }
.footer-brand .brand-sub { font-size: 8px; letter-spacing: 2px; }
.footer-tagline { color: var(--ink-faint); font-size: 12px; max-width: 24em; line-height: 1.6; }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-family: inherit;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-muted); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }

.footer-meta {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-meta a { color: var(--ink-faint); }
.footer-meta a:hover { color: var(--accent); }

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-stage) var(--ease-out-soft),
              transform var(--t-stage) var(--ease-out-soft);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger via CSS custom property — set --i on the row, multiplied for delay */
.reveal[style*="--i"] {
  transition-delay: calc(var(--i) * 80ms);
}

/* ---------- Animations ---------- */

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-star {
  0%, 100% { transform: scale(1.0); opacity: 1; filter: drop-shadow(0 0 24px var(--accent-glow)); }
  50%      { transform: scale(1.05); opacity: 0.92; filter: drop-shadow(0 0 36px var(--accent-glow)); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1.0; transform: scale(1.0); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* Reduced-motion: kill the pulses + autoplay */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-star { animation: none; }
}

/* ---------- Apply form ---------- */

.apply-form {
  max-width: 520px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.apply-form input, .apply-form textarea {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: inherit;
  width: 100%;
  transition: border-color var(--t-base) var(--ease-out-soft);
}
.apply-form input::placeholder, .apply-form textarea::placeholder { color: var(--ink-faint); }
.apply-form input:focus, .apply-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-haze);
}
.apply-form textarea { min-height: 120px; resize: vertical; }
.apply-form .form-msg { font-size: 12px; color: var(--ink-faint); min-height: 16px; text-align: center; }
.apply-form .form-msg.ok { color: var(--accent); }

/* ---------- Films table ---------- */

.films-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.film-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background var(--t-quick) var(--ease-out-soft);
}
.film-row:hover { background: var(--accent-haze); }
.film-year { font-size: 10px; letter-spacing: 1.8px; color: var(--ink-faint); font-weight: 700; }
.film-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 22px; color: var(--ink); font-weight: 300; }
.film-meta { font-size: 11px; color: var(--ink-faint); text-align: right; max-width: 240px; line-height: 1.4; }
@media (max-width: 640px) {
  .film-row { grid-template-columns: 60px 1fr; }
  .film-meta { grid-column: 1 / -1; text-align: left; padding-left: 78px; padding-top: 4px; }
}
