/* =============================================================
   GIU · Grupo Inmobiliario Universal — stylesheet
   1. Tokens   2. Reset   3. Utilities   4. Typography
   5. Components   6. Sections   7. Effects   8. Responsive
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  --black: #0B0B0B;
  --black-2: #131311;
  --black-3: #1C1B17;
  --ivory: #F4F1E8;
  --ivory-2: #EAE5D6;
  --gold: #D1AD5A;
  --gold-2: #E8CD8A;
  --gold-dim: #9C824A;
  --olive: #5D5119;
  --warm-gray: #7F786F;
  --line-dark: rgba(244, 241, 232, .12);
  --line-light: rgba(11, 11, 11, .10);
  --ok: #6E8F5C;
  --danger: #B5493A;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --radius-lg: 6px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .25s;
  --dur-mid: .5s;
  --dur-slow: .9s;
}

@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  background: var(--ivory);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--black); }

/* -------------------------------------------------------------
   3. Utilities
   ------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -50px; left: 12px; z-index: 999;
  background: var(--gold); color: var(--black); padding: 10px 16px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(64px, 10vw, 128px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--black); color: var(--ivory); }
.section--ivory-2 { background: var(--ivory-2); }

.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.section--dark .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.divider { height: 1px; background: var(--line-light); border: none; }
.section--dark .divider { background: var(--line-dark); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 32px); }

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* -------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
h4 { font-size: clamp(19px, 1.6vw, 24px); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
em, .accent-italic { font-style: italic; color: var(--gold); }

p { color: inherit; }
.lede {
  font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.5; color: var(--warm-gray);
}
.section--dark .lede { color: var(--ivory-2); }

.small { font-size: 13px; color: var(--warm-gray); }
.kicker-line { display: block; height: 1px; width: 48px; background: var(--gold); margin-block: 18px; }

/* -------------------------------------------------------------
   5. Components
   ------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; border-radius: var(--radius); white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-2); }
.btn-dark { background: var(--black); color: var(--ivory); }
.btn-dark:hover { background: var(--black-3); }
.btn-outline { border: 1px solid currentColor; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--ivory); border-color: var(--black); }
.section--dark .btn-outline { color: var(--ivory); }
.section--dark .btn-outline:hover { background: var(--ivory); color: var(--black); }
.btn-ghost { color: var(--black); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.btn-ghost::after { content: "→"; margin-left: 8px; display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.btn-ghost:hover::after { transform: translateX(4px); }
.section--dark .btn-ghost { color: var(--gold); }
.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* Badges / pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 999px; background: var(--black); color: var(--gold);
}
.badge-outline { background: transparent; border: 1px solid var(--line-light); color: var(--warm-gray); }
.badge-ok { background: rgba(110,143,92,.14); color: #4d6740; }
.badge-warn { background: rgba(209,173,90,.16); color: var(--gold-dim); }
.badge-danger { background: rgba(181,73,58,.14); color: var(--danger); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(11,11,11,.22); }

/* Property card */
.prop-card { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line-light); }
.prop-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--black-3); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.prop-card:hover .prop-card__media img { transform: scale(1.06); }
.prop-card__code {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(11,11,11,.72); color: var(--gold); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 6px 11px; border-radius: 999px;
}
.prop-card__status { position: absolute; top: 14px; right: 14px; z-index: 2; }
.prop-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop-card__zone { font-size: 12px; color: var(--gold-dim); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.prop-card__title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.prop-card__specs { display: flex; gap: 14px; font-size: 13px; color: var(--warm-gray); flex-wrap: wrap; }
.prop-card__specs span { display: inline-flex; align-items: center; gap: 5px; }
.prop-card__price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-light); display: flex; align-items: baseline; justify-content: space-between; }
.prop-card__price strong { font-family: var(--font-display); font-size: 20px; }

/* Agent card */
.agent-card { text-align: center; }
.agent-card__photo { aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--black-3); margin-bottom: 18px; }
.agent-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: filter var(--dur-mid), transform 1s var(--ease-out); }
.agent-card:hover .agent-card__photo img { filter: grayscale(0); transform: scale(1.03); }
.agent-card__name { font-family: var(--font-display); font-size: 22px; }
.agent-card__role { font-size: 12px; color: var(--gold-dim); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--warm-gray); }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 13px 16px; font-size: 15px; transition: border-color var(--dur-fast);
}
.section--dark .field input, .section--dark .field select, .section--dark .field textarea {
  background: var(--black-2); border-color: var(--line-dark); color: var(--ivory);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.form-success { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 40px 20px; }
.form-success svg { width: 56px; height: 56px; }
.form-success svg circle { stroke: var(--gold); stroke-dasharray: 166; stroke-dashoffset: 166; animation: drawCircle 1s var(--ease-out) forwards; }
.form-success svg path { stroke: var(--gold); stroke-dasharray: 48; stroke-dashoffset: 48; animation: drawCheck .4s var(--ease-out) .8s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* Steps form */
.steps-nav { display: flex; gap: 8px; margin-bottom: 34px; }
.steps-nav__dot { flex: 1; height: 3px; background: var(--line-light); border-radius: 999px; overflow: hidden; }
.steps-nav__dot span { display: block; height: 100%; width: 0%; background: var(--gold); transition: width var(--dur-mid) var(--ease-out); }
.steps-nav__dot.is-done span, .steps-nav__dot.is-active span { width: 100%; }
.form-step { display: none; }
.form-step.is-active { display: block; animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between;
  background: transparent; transition: background var(--dur-mid) var(--ease-out), padding var(--dur-mid) var(--ease-out), border-color var(--dur-mid);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11,11,11,.86); backdrop-filter: blur(10px); padding-block: 13px; border-color: var(--line-dark); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; color: var(--ivory); letter-spacing: .02em; }
.nav__logo strong { color: var(--gold); }
.nav__logo img { height: 52px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ivory-2);
  position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; width: 26px; height: 18px; position: relative; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ivory); transition: transform var(--dur-fast), opacity var(--dur-fast); }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 8px; }
.nav__burger span:nth-child(3) { top: 16px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190; background: var(--black); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 0 var(--gutter);
  transform: translateY(-100%); transition: transform var(--dur-mid) var(--ease-in-out);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { font-family: var(--font-display); font-size: 34px; }

/* Footer */
.footer { background: var(--black); color: var(--ivory-2); padding-block: 72px 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { font-family: var(--font-display); font-size: 26px; color: var(--ivory); margin-bottom: 14px; }
.footer__brand img { height: 58px; width: auto; display: block; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--ivory-2); opacity: .82; transition: opacity var(--dur-fast); }
.footer ul li a:hover { opacity: 1; color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: var(--warm-gray); flex-wrap: wrap; gap: 12px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 34px; height: 34px; border: 1px solid var(--line-dark); border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: border-color var(--dur-fast), color var(--dur-fast); }
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter { text-align: center; }
.counter__num { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); color: var(--gold); }
.counter__label { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--warm-gray); margin-top: 6px; }
.section--dark .counter__label { color: var(--ivory-2); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line-light); }
.section--dark .faq-item { border-color: var(--line-dark); }
.faq-item__q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; }
.faq-item__q h4 { font-weight: 500; font-family: var(--font-display); font-size: 20px; }
.faq-item__icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-item__icon::before { width: 14px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-mid) var(--ease-in-out); }
.faq-item__a p { padding-bottom: 22px; color: var(--warm-gray); max-width: 640px; }
.section--dark .faq-item__a p { color: var(--ivory-2); }

/* Tabs / filter pills */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 18px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-light);
  border-radius: 999px; letter-spacing: .02em; transition: all var(--dur-fast);
}
.pill:hover { border-color: var(--gold); }
.pill.is-active { background: var(--black); color: var(--gold); border-color: var(--black); }

/* Filter bar */
.filter-bar { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end; }
.filter-bar .field { margin-bottom: 0; }

/* Table (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
thead th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--warm-gray); padding: 14px 16px; background: var(--ivory-2); white-space: nowrap; }
tbody td { padding: 14px 16px; border-top: 1px solid var(--line-light); vertical-align: middle; }
tbody tr { transition: background var(--dur-fast); }
tbody tr:hover { background: rgba(209,173,90,.06); }
.table-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--warm-gray); }
.empty-state svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: .5; }

/* Toast / alerts */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--black); color: var(--ivory); padding: 14px 20px; border-radius: var(--radius);
  font-size: 13.5px; display: flex; align-items: center; gap: 10px; min-width: 260px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); border-left: 3px solid var(--gold);
  animation: toastIn .35s var(--ease-out);
}
.toast.is-leaving { animation: toastOut .3s var(--ease-out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* -------------------------------------------------------------
   6. Sections
   ------------------------------------------------------------- */

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-bg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.35) 0%, rgba(11,11,11,.35) 40%, rgba(11,11,11,.92) 100%); }
.hero-mesh { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background: radial-gradient(circle at 20% 20%, rgba(209,173,90,.35), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(93,81,25,.4), transparent 50%);
  filter: blur(60px); animation: meshDrift 16s ease-in-out infinite alternate; }
@keyframes meshDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(3%, -3%) scale(1.08); } }
.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter) 88px; max-width: 900px; }
.hero-content .eyebrow { color: var(--gold); }
.hero-content h1 { margin-top: 20px; }
.hero-content .lede { color: var(--ivory-2); margin-top: 22px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll span { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); }
.hero-scroll::after { content: ""; width: 1px; height: 40px; background: var(--gold); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(1); opacity: .6; } 50% { transform: scaleY(.4); opacity: 1; } }

/* Page header (inner pages) */
.page-header { padding: clamp(150px, 22vw, 210px) var(--gutter) clamp(48px, 8vw, 80px); background: var(--black); color: var(--ivory); }
.page-header .eyebrow { color: var(--gold); }
.page-header h1 { margin-top: 18px; max-width: 780px; }
.page-header .lede { margin-top: 18px; max-width: 640px; color: var(--ivory-2); }
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--warm-gray); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold); }

/* Zones grid */
.zone-card { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-lg); }
.zone-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.zone-card:hover img { transform: scale(1.06); }
.zone-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,11,.85), rgba(11,11,11,.05) 55%); }
.zone-card__label { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: var(--ivory); }
.zone-card__label h3 { font-size: 24px; }
.zone-card__label span { font-size: 12.5px; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }

/* Value pillars */
.pillar { padding: 32px 0; border-top: 1px solid var(--line-light); }
.pillar__num { font-family: var(--font-display); font-size: 15px; color: var(--gold-dim); }

/* Process steps */
.process-step { display: flex; gap: 20px; }
.process-step__num { font-family: var(--font-display); font-size: 42px; color: var(--gold); line-height: 1; flex-shrink: 0; }

/* Testimonial */
.testimonial-card { background: var(--ivory); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 32px; }
.testimonial-card p.quote { font-family: var(--font-display); font-size: 20px; line-height: 1.4; }
.testimonial-card .who { margin-top: 20px; font-size: 13px; color: var(--warm-gray); }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 500; background: var(--black); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash__mark { font-family: var(--font-display); font-size: 15vw; opacity: 0; animation: splashIn 1s var(--ease-out) .1s forwards; }
.splash.is-out { animation: splashOut .6s var(--ease-in-out) forwards; }
@keyframes splashIn { from { opacity: 0; letter-spacing: .4em; } to { opacity: 1; letter-spacing: .02em; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }

/* Custom cursor (desktop only) */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--gold);
  border-radius: 50%; pointer-events: none; z-index: 600; opacity: 0; transition: opacity .25s, width .2s, height .2s, background .2s;
  transform: translate3d(-50%,-50%,0);
}
.cursor-ring.is-ready { opacity: .8; }
.cursor-ring.is-active { width: 54px; height: 54px; background: rgba(209,173,90,.15); }
@media (hover: none) { .cursor-ring { display: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 450; background: rgba(11,11,11,.96); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 90vw; object-fit: contain; border-radius: 4px; }
.lightbox__close, .lightbox__nav { position: absolute; color: var(--ivory); }
.lightbox__close { top: 24px; right: 32px; font-size: 28px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 30px; padding: 10px; }
.lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; }

/* Admin layout */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--black); color: var(--ivory-2); padding: 28px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-sidebar__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; color: var(--ivory); padding: 0 8px 24px; }
.admin-sidebar__logo strong { color: var(--gold); }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; color: var(--ivory-2); transition: background var(--dur-fast), color var(--dur-fast);
  cursor: pointer;
}
.admin-nav a:hover { background: var(--black-2); color: var(--ivory); }
.admin-nav a.is-active { background: var(--gold); color: var(--black); font-weight: 700; }
.admin-main { background: var(--ivory-2); min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line-light); padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.admin-content { padding: 32px; }
.admin-panel { display: none; }
.admin-panel.is-first { display: block; }

.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(11,11,11,.5); padding: 20px; }
.modal.is-open-modal { display: flex; }
.modal__box { background: #fff; border-radius: var(--radius-lg); padding: 30px; max-width: 480px; width: 100%; max-height: 86vh; overflow-y: auto; }

/* -------------------------------------------------------------
   7. Effects continued (marquee, tilt helpers)
   ------------------------------------------------------------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line-dark); padding-block: 16px; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--gold-dim); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

[data-tilt] { transform-style: preserve-3d; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .splash__mark, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
