/* MERIDIAN — UAE luxury real estate
   Original design. Black / off-white / hint of gold.
   Type pairing: Cormorant Garamond (editorial display) + Manrope (sans) + JetBrains Mono (eyebrow accents) */

:root {
  --ink: #0b0b0c;
  --ink-2: #161618;
  --ink-3: #1f1f22;
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --line: rgba(11,11,12,0.12);
  --line-dark: rgba(246,244,239,0.14);
  --muted: #6b6962;
  --muted-dark: #a8a59b;
  --gold: oklch(0.74 0.07 85);
  --gold-deep: oklch(0.60 0.09 82);
  --gold-soft: oklch(0.74 0.07 85 / 0.12);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============ Type ============ */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold-deep);
}
.eyebrow.light { color: var(--muted-dark); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ============ Layout ============ */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled,
.nav.menu-open {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  height: 64px;
  padding: 0 32px;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand-logo {
height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-logo-lg {
  width: 72px; height: 72px;
}
.brand-nav .brand-logo { height: 35px; }
.brand-word { white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: ""; position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.7;
}
.nav-links {
  display: flex; gap: 36px;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.82;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--paper); }
.nav-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.btn-gold {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn.btn-gold:hover { background: var(--paper); color: var(--ink); }
.btn.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn.btn-solid:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.lg { height: 62px; padding: 0 30px; font-size: 20px; }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-top: 64px;
}
.hero-media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroDrift 28s ease-in-out infinite alternate;
}
.hero-img-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(11,11,12,0.85), rgba(11,11,12,0.55) 60%, transparent),
    linear-gradient(180deg, rgba(11,11,12,0.4), rgba(11,11,12,0.7));
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
  filter: saturate(0.85) contrast(1.05) brightness(0.55);
  transform: scale(1.04);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
.hero-video.is-ready { opacity: 1; }
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(11,11,12,0.85), rgba(11,11,12,0.0) 55%),
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.2) 30%, rgba(11,11,12,0.4) 70%, rgba(11,11,12,0.85) 100%);
  pointer-events: none;
}
.hero-img-stripes {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg,
      rgba(246,244,239,0.04) 0 2px,
      transparent 2px 14px);
}
.hero-img-skyline {
  position: absolute; inset: 0;
  background:
    /* sun glow */
    radial-gradient(circle at 78% 38%, oklch(0.78 0.10 85 / 0.22), transparent 35%),
    /* building silhouettes via gradients */
    linear-gradient(180deg, transparent 0 55%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.55) 100%);
}
.hero-skyline-svg {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 60%;
  opacity: 0.85;
}
.hero-overlay-grain {
  position: absolute; inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-img-skyline, .hero-skyline-svg, .hero-img-stripes { z-index: 0; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: flex-end;
  padding-bottom: 80px;
  padding-top: 60px;
}
.hero-eyebrow-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  align-self: start;
}
.hero-meta {
  display: flex; gap: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 60px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-weight: 300;
  max-width: 1100px;
      margin-bottom: 50px;
}
.hero-headline em {
  font-style: italic;
  color: var(--paper);
  font-weight: 300;
}
.hero-headline .stroke {
  -webkit-text-stroke: 1px var(--paper);
  color: transparent;
  font-style: italic;
}
.hero-bottom {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
.hero-blurb {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246,244,239,0.78);
}
.hero-ctas { display: flex; gap: 12px; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ============ Section base ============ */
.section { padding: 140px 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.paper { background: var(--paper); color: var(--ink); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 300;
}
.section-title em { font-style: italic; color: var(--ink); font-weight: 300; }
.section.dark .section-title em { color: var(--paper); font-weight: 300; }
.section-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  justify-self: end;
}
.section.dark .section-lede { color: var(--muted-dark); }

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 620px;
}
.about-media {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 620px;
}
.about-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.about-media .placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(246,244,239,0.04) 0 2px,
      transparent 2px 16px),
    radial-gradient(ellipse at 50% 50%, var(--ink-3), var(--ink));
  display: flex; align-items: center; justify-content: center;
}
.placeholder-tag {
  position: absolute; bottom: 24px; left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.5);
  border: 1px solid rgba(246,244,239,0.2);
  padding: 6px 10px;
  border-radius: 4px;
}
.about-body {
  background: var(--paper);
  padding: 100px 80px 100px 100px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.about-title {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 300;
  margin: 16px 0 8px;
}
.about-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
}
.about-copy {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
  max-width: 480px;
}
.about-copy p + p { margin-top: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
  max-width: 520px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.stat-num sup { font-size: 18px; vertical-align: super; color: var(--muted); margin-left: 2px; }
.stat-label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 8px;
}
.about-cta { margin-top: 12px; align-self: start; }

/* ============ SERVICE TILES ============ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.tile {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  aspect-ratio: 1.1 / 1;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .35s ease, border-color .3s ease;
  border: 1px solid transparent;
}
/* Image + dark gradient overlay for legibility */
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(15,15,15,0.45) 0%, rgba(15,15,15,0.78) 100%),
    var(--tile-img, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  transition: transform .7s ease, filter .4s ease, background-image .4s ease;
  z-index: 0;
}
/* Ensure tile content sits above the bg layer */
.tile > * { position: relative; z-index: 1; }

/* Per-tile background images */
.tile-buy      { --tile-img: url('https://images.unsplash.com/photo-1774552803467-49c1ce010f02?w=1600&q=80&auto=format&fit=crop'); }
.tile-sell     { --tile-img: url('https://images.unsplash.com/photo-1749849934727-bc57c0bd9dd2?w=1600&q=80&auto=format&fit=crop'); }
.tile-rent     { --tile-img: url('https://images.unsplash.com/photo-1772090125408-5640e66f46e7?w=1600&q=80&auto=format&fit=crop'); }
.tile-newbuild { --tile-img: url('https://images.unsplash.com/photo-1528690041201-a8217b45b970?q=80&w=5472&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.tile-team     { --tile-img: url('meetTeam1.jpg'); }
.tile-studios  { --tile-img: url('https://images.unsplash.com/photo-1753029111752-f12018752cd3?w=1600&q=80&auto=format&fit=crop'); }

.tile::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
  z-index: 2;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(246,244,239,0.18); }
.tile:hover::before {
  transform: scale(1.08);
  background-image:
    linear-gradient(to bottom, rgba(15,15,15,0.25) 0%, rgba(15,15,15,0.55) 100%),
    var(--tile-img, none);
  filter: brightness(1.08) saturate(1.05);
}
.tile:hover::after { transform: scaleX(1); }
.tile-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-dark);
}
.tile-name {
  font-family: var(--serif);
  font-size: clamp(32px, 2.6vw, 44px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.tile-name em { color: var(--paper); font-style: italic; opacity: 0.55; }
.tile-foot {
  display: flex; justify-content: flex-end; align-items: end;
  color: var(--muted-dark);
}
.tile-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(246,244,239,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.tile:hover .tile-arrow {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* ============ WHY US ============ */
.why {
  position: relative;
  padding: 160px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.why-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, oklch(0.78 0.10 85 / 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, oklch(0.78 0.10 85 / 0.08), transparent 60%),
    repeating-linear-gradient(0deg,
      rgba(246,244,239,0.02) 0 1px,
      transparent 1px 80px),
    repeating-linear-gradient(90deg,
      rgba(246,244,239,0.02) 0 1px,
      transparent 1px 80px);
}
.why-inner { position: relative; z-index: 2; text-align: center; }
.why-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.why-title em { font-style: italic; color: var(--paper); font-weight: 300; opacity: 0.7; }
.why-lede {
  margin: 32px auto 0;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-dark);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 100px;
  border-top: 1px solid var(--line-dark);
  text-align: left;
}
.why-cell {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.why-cell:last-child { border-right: none; padding-right: 0; }
.why-cell .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-dark);
  margin-bottom: 24px;
  display: block;
}
.why-cell h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 400;
}
.why-cell p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-dark);
  margin: 0;
}

/* ============ STUDIOS ============ */
.studios-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 48px;
}
.studios-brand {
  display: flex; align-items: baseline; gap: 14px;
}
.studios-brand .name {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.studios-brand .name em {
  font-style: italic;
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 400;
}
.studios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.video-card {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--ink);
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s ease;
}
.video-card .ph,
.video-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .4s ease;
  filter: brightness(0.78) saturate(0.92);
}
.video-card:hover img { transform: scale(1.04); filter: brightness(0.88) saturate(1); }
.video-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 40%, rgba(11,11,12,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.video-card .title, .video-card .play { z-index: 2; }
.video-card .__ph_old {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(246,244,239,0.04) 0 2px,
      transparent 2px 16px),
    linear-gradient(180deg, var(--ink-3), var(--ink));
}
.video-card .label {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.7);
  z-index: 2;
}
.video-card .title {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  font-family: var(--serif);
  font-style: normal;
  font-size: 22px;
  line-height: 1.15;
  color: var(--paper);
  z-index: 2;
  font-weight: 400;
}
.video-card .duration {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  background: rgba(11,11,12,0.7);
  border: 1px solid rgba(246,244,239,0.2);
  color: var(--paper);
  padding: 4px 8px;
  z-index: 2;
}
.play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(11,11,12,0.5);
  border: 1px solid rgba(246,244,239,0.4);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: all .3s ease;
  z-index: 2;
}
.play svg { transition: transform .3s; }
.video-card:hover .play {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card:hover .play svg { color: var(--ink); }

/* ============ FEATURED LISTINGS ============ */
.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.listing {
  background: var(--paper-2);
  position: relative;
  transition: transform .35s ease;
}
.listing-media {
  aspect-ratio: 4/3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.listing-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.listing:hover .listing-media img { transform: scale(1.05); }
.listing-media .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(246,244,239,0.04) 0 2px,
      transparent 2px 16px),
    linear-gradient(180deg, var(--ink-3), var(--ink));
}
.listing-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  padding: 5px 10px;
  z-index: 2;
}
.listing-badge.gold { background: var(--ink); color: var(--paper); }
.listing-body {
  padding: 22px 22px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.listing-loc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.listing-meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12.5px;
}
.listing-specs {
  display: flex; gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.listing-price em { font-style: normal; color: var(--ink); }

/* ============ CONTACT ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}
.contact-media {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.contact-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.contact-media-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0.85) 100%);
  z-index: 2;
}
.contact-media .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(246,244,239,0.04) 0 2px,
      transparent 2px 16px),
    radial-gradient(ellipse at 30% 30%, var(--ink-3), var(--ink));
}
.contact-media .placeholder-tag {
  top: 24px; bottom: auto;
  left: 24px;
}
.contact-body {
  background: var(--paper);
  padding: 120px 100px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.contact-title em { font-style: italic; color: var(--ink); font-weight: 300; opacity: 0.45; }
.contact-lede {
  margin: 24px 0 44px;
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.form { display: grid; gap: 18px; max-width: 540px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  position: relative;
  border-bottom: 1px solid rgba(11,11,12,0.15);
  transition: border-color .25s;
}
.field:focus-within { border-color: var(--gold-deep); }
.field label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 0 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(11,11,12,0.35); }
.field select { appearance: none; }
.form-row.phone-row { grid-template-columns: 120px 1fr; }
.form-submit {
  margin-top: 16px;
  height: 60px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  white-space: nowrap;
  transition: background .3s, color .3s;
}
.form-submit:hover { background: #2a2a2a; color: var(--paper); }
.form-submit:hover .arrow { transform: translateX(6px); }
.form-submit .arrow { transition: transform .3s; }

.contact-side-info {
  position: absolute; bottom: 48px; left: 48px; right: 48px;
  z-index: 3;
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
  color: var(--paper);
  z-index: 3;
}
.contact-side-info p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  color: var(--paper);
  font-weight: 300;
}
.contact-side-info h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 8px;
}
.contact-side-info p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  color: var(--paper);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 36px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-dark);
}
.footer h5 {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a {
  font-size: 14px;
  color: rgba(246,244,239,0.7);
  transition: color .2s;
}
.footer ul a:hover { color: var(--paper); }
.newsletter { display: flex; gap: 8px; }
.newsletter input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-dark);
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.newsletter input:focus { border-color: var(--paper); }
.newsletter input::placeholder { color: rgba(246,244,239,0.4); }
.newsletter button {
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--ink);
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  transition: all .2s;
}
.newsletter button:hover { background: transparent; color: var(--paper); }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.social {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: rgba(246,244,239,0.75);
  transition: all .2s;
}
.social:hover { border-color: var(--paper); color: var(--paper); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(246,244,239,0.5);
}
.footer-bottom-links { display: flex; gap: 32px; }
.footer-bottom-links a:hover { color: var(--paper); }

.footer-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-brand .brand-logo { /* already white */ }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted-dark);
  margin: 0 0 18px;
}
.footer-blurb {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(246,244,239,0.7);
  max-width: 320px;
  margin: 0;
}

/* ============ FAB chat bubble ============ */
.fab {
  position: fixed; right: 24px; bottom: 24px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(246,244,239,0.2);
  z-index: 40;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(180,140,80,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(180,140,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,140,80,0); }
}

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

.reveal-fade { opacity: 0; transition: opacity 1.2s ease; }
.reveal-fade.in { opacity: 1; }

.reveal-rise { opacity: 0; transform: translateY(56px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal-rise.in { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .40s; }

.parallax { transition: transform .1s linear; will-change: transform; }

/* ============ Marquee ============ */
.marquee {
  display: flex; overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 56px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 300;
  padding-right: 56px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; color: rgba(246,244,239,0.8); }
.marquee-track .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); opacity: 0.5; display: inline-block; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ MOBILE NAV — TOGGLE, DRAWER, BACKDROP ============ */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav.scrolled .nav-toggle,
.nav.menu-open .nav-toggle { color: var(--paper); }
.nav-toggle:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px; height: 12px;
}
.nav-toggle-bars > span {
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle-bars > span:nth-child(1) { top: 0; }
.nav-toggle-bars > span:nth-child(2) { top: 5px; }
.nav-toggle-bars > span:nth-child(3) { top: 10px; }
.nav-toggle.is-open .nav-toggle-bars > span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars > span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars > span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 11, 12, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--ink);
  color: var(--paper);
  border-left: 1px solid var(--line-dark);
  z-index: 60;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.32, 0.72, 0.18, 1);
  padding: 96px 32px 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
}
.nav-drawer.is-open { transform: translateX(0); visibility: visible; }
.nav-drawer-links {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-dark);
  margin: 0; padding: 0;
}
.nav-drawer-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.005em;
  color: var(--paper);
  transition: color .2s ease, padding-left .25s ease;
}
.nav-drawer-links a::after {
  content: "→";
  font-family: var(--sans);
  font-size: 17px;
  opacity: 0.35;
  transition: opacity .2s ease, transform .25s ease;
}
.nav-drawer-links a:hover { color: var(--gold); padding-left: 6px; }
.nav-drawer-links a:hover::after { opacity: 0.9; transform: translateX(4px); }
.nav-drawer-links a.is-active { color: var(--gold); }
.nav-drawer-links a.is-active::after { opacity: 1; }

.nav-drawer-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 32px;
}
.nav-drawer-actions .btn {
  width: 100%;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  font-size: 14px;
}

.nav-drawer-meta {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.nav-drawer-meta a { color: var(--muted-dark); transition: color .2s; }
.nav-drawer-meta a:hover { color: var(--paper); }

/* ============ Responsive ============ */
/* ---- Tablet landscape & smaller laptops ---- */
@media (max-width: 1024px) {
  .wrap, .wrap-wide { padding: 0 28px; }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
  }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Keep the nav header above the drawer/backdrop so the toggle stays clickable */
  .nav.menu-open { z-index: 65; }
  .brand-nav .brand-logo { height: 38px; }

  .hero-content { padding-bottom: 60px; padding-top: 40px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas .btn.lg { height: 56px; font-size: 17px; padding: 0 24px; }

  .section { padding: 96px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .section-lede { justify-self: start; max-width: 64ch; }

  .about, .contact { grid-template-columns: 1fr; min-height: 0; }
  .about-media, .contact-media { min-height: 360px; }
  .about-body, .contact-body { padding: 64px 32px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .services, .studios-grid, .listings { grid-template-columns: 1fr 1fr; }
  .tile { aspect-ratio: 1.3 / 1; padding: 28px; }

  .why { padding: 110px 0; }
  .why-grid { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .why-cell { padding: 32px 24px 32px 0 !important; }
  .why-cell:nth-child(2) { border-right: none; }
  .why-cell:nth-child(1), .why-cell:nth-child(2) { border-bottom: 1px solid var(--line-dark); }

  .contact-side-info { left: 28px; right: 28px; bottom: 28px; }
  .contact-side-info p { font-size: 15px; }

  .footer { padding: 64px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
  }
  .footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
}

/* ---- Tablet portrait ---- */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  body { font-size: 15px; }
  .wrap, .wrap-wide { padding: 0 22px; }

  .hero { min-height: 92vh; }
  .hero-content {
    padding: 32px 22px 56px;
    grid-template-rows: 1fr auto auto;
  }
  .hero-headline { margin-bottom: 28px; }
  .hero-meta { gap: 16px; font-size: 9.5px; }
  /* Hide the secondary clock/location row on tablets — keep the page calm */
  .hero-eyebrow-row .hero-meta { display: none; }
  .hero-blurb { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn.lg { width: 100%; justify-content: center; }
  .scroll-cue { display: none; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .section-title { font-size: clamp(36px, 8vw, 56px); }

  .about-body, .contact-body { padding: 56px 24px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-stats .stat-num { font-size: 30px; }

  .services, .studios-grid, .listings { grid-template-columns: 1fr; gap: 14px; }
  .tile { aspect-ratio: 1.5 / 1; padding: 24px; }

  .why { padding: 80px 0; }
  .why-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .why-cell {
    padding: 28px 0 !important;
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .why-cell:last-child { border-bottom: none; }

  .studios-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .studios-brand .name { font-size: 40px; }

  .contact-side-info { position: static; padding: 24px 24px 32px; display: grid; gap: 8px; }
  .contact-side-info p { font-size: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .form-row.phone-row { grid-template-columns: 120px 1fr; }

  .marquee { padding: 16px 0; }
  .marquee-track { font-size: 20px; gap: 36px; padding-right: 36px; }
  .marquee-track span { gap: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .fab {
    right: 16px; bottom: 16px;
    padding: 10px 16px 10px 14px;
    font-size: 12px;
  }
}

/* ---- Small mobile ---- */
@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 18px; }

  .nav-inner { height: 60px; padding: 0 16px; }
  .brand-nav .brand-logo { height: 30px; }

  .hero { padding-top: 60px; min-height: calc(100vh - 60px); }
  .hero-content { padding: 24px 18px 48px; }
  .hero-headline { font-size: clamp(34px, 11vw, 52px); }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; gap: 18px; }
  .section-title { font-size: clamp(32px, 9vw, 48px); }
  .section-lede { font-size: 15px; }

  .about-media, .contact-media { min-height: 280px; }
  .about-body, .contact-body { padding: 48px 20px; }
  .about-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .about-stats > div:nth-child(3) { grid-column: span 2; }

  .tile { aspect-ratio: 1.7 / 1; padding: 22px; }
  .tile-name { font-size: 28px; }

  .why { padding: 64px 0; }
  .why-title { font-size: clamp(36px, 10vw, 56px); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 18px; }
  .newsletter { flex-direction: column; }
  .newsletter button { width: 100%; padding: 12px 20px; }

  .marquee-track { font-size: 16px; gap: 28px; padding-right: 28px; }
  .marquee-track span { gap: 28px; }

  .fab {
    right: 12px; bottom: 12px;
    padding: 10px 14px 10px 12px;
    font-size: 11px;
  }
}

/* ---- Very small mobile ---- */
@media (max-width: 380px) {
  .nav-actions { display: none; } /* belt-and-braces */
  .hero-ctas .btn.lg { font-size: 15px; padding: 0 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-stats > div:nth-child(3) { grid-column: span 2; }
}

/* ============ Cookie consent ============ */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--ink, #16140f);
  color: var(--paper, #f6f4ef);
  border: 1px solid rgba(246,244,239,0.12);
  border-radius: 8px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.35);
  padding: 18px 22px;
  font-family: var(--sans, 'Manrope', sans-serif);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-consent-copy {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(246,244,239,0.85);
  flex: 1 1 320px;
}
.cookie-consent-copy strong { color: var(--gold, #c5a861); font-weight: 600; margin-right: 4px; }
.cookie-consent-copy a { color: var(--paper, #f6f4ef); text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-consent-actions .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
@media (max-width: 540px) {
  .cookie-consent { padding: 16px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}

/* ============ Form submit loading state ============ */
.form-submit:disabled {
  opacity: 0.78;
  cursor: progress;
  background: var(--ink);
}
.form-submit:disabled:hover { background: var(--ink); }
.form-submit:disabled .arrow { display: none; }
.form-submit .ffm-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(246,244,239,0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: ffm-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes ffm-spin { to { transform: rotate(360deg); } }

/* ============ Form feedback modal ============ */
.ffm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,11,12,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ffm-fade-in 0.18s ease-out;
}
.ffm-card {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-width: 460px;
  padding: 56px 36px 36px;
  border-radius: 6px;
  border-top: 3px solid var(--gold-deep);
  box-shadow: 0 30px 80px rgba(11,11,12,0.35);
  text-align: center;
  animation: ffm-slide-in 0.24s ease-out;
}
.ffm-card.ffm-error { border-top-color: #c0392b; }
.ffm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.ffm-close:hover { color: var(--ink); background: rgba(11,11,12,0.06); }
.ffm-icon {
  color: var(--gold-deep);
  display: inline-flex;
  justify-content: center;
  margin-bottom: 18px;
}
.ffm-card.ffm-error .ffm-icon { color: #c0392b; }
.ffm-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.ffm-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  padding: 0 8px;
}
.ffm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  transition: background 0.25s;
}
.ffm-action:hover { background: #2a2a2a; }
@keyframes ffm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ffm-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .ffm-card { padding: 48px 24px 28px; }
  .ffm-title { font-size: 26px; }
}

