/* =========================================================
   مزرعة ومحمية المها الوضيحي — نظام التصميم
   ليلي ورملي، صور كبيرة، حركة هادئة. بدون توهج.
   ========================================================= */
:root {
  --night: #15120e;
  --night-2: #1f1b15;
  --night-3: #2a251d;
  --sand: #f4eee4;
  --sand-2: #ebe2d3;
  --paper: #fbf8f3;
  --ink: #23201b;
  --muted: #776f62;
  --line: #e2d8c7;
  --gold: #b8894f;       /* ذهبي رملي مطفي */
  --gold-2: #9c7240;
  --olive: #5d6747;
  --on-dark: #f1ebe0;
  --on-dark-muted: #b5ab9b;
  --ok: #3f7a4f;
  --warn: #9a6b1f;
  --bad: #9b3b32;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 20px 50px -24px rgba(21, 18, 14, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; border-color: rgba(241, 235, 224, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(241, 235, 224, .08); }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.site-header.solid, .site-header.scrolled { background: rgba(21, 18, 14, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header.scrolled .bar { height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand img { height: 52px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand img { height: 42px; }
.brand span { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.brand small { display: block; font-family: var(--body); font-size: .72rem; color: var(--on-dark-muted); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--on-dark); }
.nav .btn { min-height: 44px; padding: 0 20px; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--on-dark); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 980px) {
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    background: var(--night); border-top: 1px solid rgba(255, 255, 255, .06); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; border: 0; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu-toggle { display: block; }
  .brand img { height: 44px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark); background: var(--night); overflow: hidden; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(21, 18, 14, .55) 0%, rgba(21, 18, 14, .05) 30%, rgba(21, 18, 14, .35) 60%, rgba(21, 18, 14, .92) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--on-dark-muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 16ch; margin: 14px 0 18px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 52ch; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; color: var(--on-dark); background: var(--night); overflow: hidden; }
.page-hero img, .page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,14,.6), rgba(21,18,14,.2) 40%, rgba(21,18,14,.9)); }
.page-hero .wrap { position: relative; z-index: 1; padding: 130px 20px 48px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 10px; }
.page-hero p { color: var(--on-dark-muted); max-width: 60ch; margin-top: 12px; font-size: 1.08rem; }
.page-hero.short { min-height: 0; }
.page-hero.short .wrap { padding-top: 140px; padding-bottom: 40px; }
.crumbs { font-size: .88rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.block.tight { padding: 64px 0; }
.dark { background: var(--night); color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }
.sand { background: var(--sand); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.dark .kicker { color: var(--gold); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 56ch; margin-top: 10px; }
.dark .section-head p { color: var(--on-dark-muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.08); }
.stat { padding: 34px 20px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--on-dark); line-height: 1.1; direction: ltr; }
.stat span { color: var(--on-dark-muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-inline-start: 0; } .stat { border-top: 1px solid rgba(255,255,255,.08); } }

/* Story */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 20px; }
.split p + p { margin-top: 14px; }
.split p { color: var(--muted); font-size: 1.05rem; }
.dark .split p { color: var(--on-dark-muted); }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.collage .tall { grid-row: span 2; aspect-ratio: 3 / 4.4; }
.collage .wide { aspect-ratio: 4 / 3.4; }
.since { position: absolute; inset-inline-start: -18px; bottom: 28px; background: var(--night); color: var(--on-dark); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); }
.since b { display: block; font-family: var(--display); font-size: 2rem; color: var(--gold); line-height: 1; }
.since span { font-size: .85rem; color: var(--on-dark-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--ink); background: var(--paper); }
.dark .pill { border-color: rgba(255,255,255,.14); background: transparent; color: var(--on-dark); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } .since { inset-inline-start: 12px; } }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.photo-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--night-2); text-decoration: none; color: var(--on-dark); isolation: isolate; }
.photo-card img, .photo-card video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s var(--ease); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21,18,14,.88)); z-index: 0; }
.photo-card .body { position: absolute; inset: auto 0 0 0; padding: 22px; z-index: 1; }
.photo-card .tag { display: inline-block; font-size: .78rem; color: var(--gold); margin-bottom: 4px; }
.photo-card h3 { font-size: 1.35rem; }
.photo-card .en { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--on-dark-muted); text-transform: uppercase; direction: ltr; text-align: right; }
.photo-card p { font-size: .92rem; color: var(--on-dark-muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-card.wide img, .photo-card.wide video { aspect-ratio: 16 / 10; }
.photo-card .play { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(21,18,14,.55); backdrop-filter: blur(6px); }
.photo-card .play svg { width: 16px; height: 16px; fill: var(--on-dark); margin-inline-start: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--muted); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.feature img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature .body { padding: 22px; }
.feature h3 { font-size: 1.25rem; }
.feature .en { font-size: .75rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 8px; direction: ltr; text-align: right; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Aerial band */
.band { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; color: var(--on-dark); overflow: hidden; background: var(--night); }
.band video, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(21,18,14,.48); }
.band .inner { position: relative; z-index: 1; padding: 40px 20px; }
.band h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 12px 0 26px; }

/* Gallery */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform 1s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: var(--on-dark); font-size: .92rem; background: linear-gradient(transparent, rgba(21,18,14,.8)); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption { opacity: 1; }
.reels { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 210px; scroll-snap-align: start; position: relative; border-radius: var(--r); overflow: hidden; background: var(--night-2); border: 0; padding: 0; cursor: pointer; color: var(--on-dark); text-align: right; }
.reel img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.reel span { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; font-size: .9rem; background: linear-gradient(transparent, rgba(21,18,14,.85)); }

/* Partners */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; }
.logos img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.logos img:hover { filter: none; opacity: 1; }

/* Visit */
.info-list { display: grid; gap: 18px; margin: 26px 0 30px; }
.info-list div { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 3px; }
.info-list b { display: block; font-weight: 600; }
.info-list span { color: var(--muted); }
.dark .info-list span { color: var(--on-dark-muted); }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 380px; background: var(--night-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.25); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 500; color: var(--muted); font-size: .9rem; }
.price-table td.num { font-family: var(--display); font-size: 1.25rem; }
.dark .price-table th, .dark .price-table td { border-color: rgba(255,255,255,.1); }
.dark .price-table th { color: var(--on-dark-muted); }
.table-scroll { overflow-x: auto; }
.hours-list { display: grid; gap: 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dark .hours-list div { border-color: rgba(255,255,255,.1); }

/* CTA strip */
.cta-strip { border-radius: var(--r-lg); overflow: hidden; position: relative; color: var(--on-dark); background: var(--night); }
.cta-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-strip .inner { position: relative; padding: 64px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-strip p { color: var(--on-dark-muted); margin-top: 8px; }
@media (max-width: 600px) { .cta-strip .inner { padding: 40px 24px; } }

/* Species detail */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.facts div { background: var(--paper); padding: 16px 18px; }
.facts span { display: block; font-size: .82rem; color: var(--muted); }
.facts b { font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px; font-size: .85rem; background: var(--sand-2); }
.status.en-dang { background: #f3dfda; color: var(--bad); }
.status.vu { background: #f3e8d3; color: var(--warn); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; width: 100%; cursor: zoom-in; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; }
.hero-photo img, .hero-photo video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Team */
.leader { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.leader .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--sand-2); display: grid; place-items: center; font-family: var(--display); font-size: 1.8rem; color: var(--gold-2); margin-bottom: 16px; }
.leader h3 { font-size: 1.2rem; }
.leader .role { color: var(--gold-2); font-size: .92rem; }
.leader ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.leader li { padding: 6px 0; border-top: 1px dashed var(--line); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--on-dark); font-family: var(--display); font-weight: 500; font-size: 1.05rem; margin: 0 0 16px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .logo { height: 70px; margin-bottom: 16px; opacity: .9; }
.site-footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.v2030 { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .65; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Lightbox / video modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(15,13,10,.94); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal img, .modal video { max-height: 86vh; max-width: min(1100px, 100%); border-radius: var(--r); }
.modal .close { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }
.modal .cap { position: absolute; bottom: 18px; inset-inline: 0; text-align: center; color: var(--on-dark-muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Forms & booking ---------- */
.booking-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.2rem; margin-bottom: 18px; }
.panel-title .n { width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--on-dark); display: grid; place-items: center; font-family: var(--body); font-size: .85rem; }
.sticky { position: sticky; top: 92px; }
.summary-card { background: var(--night); color: var(--on-dark); border-radius: var(--r); overflow: hidden; }
.summary-card .cover { position: relative; height: 150px; }
.summary-card .cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.summary-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, var(--night)); }
.summary-card .inner { padding: 4px 24px 24px; }
.summary-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.summary-card .muted { color: var(--on-dark-muted); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.summary-total { border-top: 1px solid rgba(255,255,255,.12); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; }
.panel .summary-total { border-color: var(--line); }

form .field { margin-bottom: 18px; }
form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--paper); color: var(--ink); min-height: 52px; transition: border-color .2s, background .2s; }
input:hover, select:hover { border-color: #cfc2ad; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(184,137,79,.15); }
input[type=date], input[type=time] { cursor: pointer; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }

.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.counter:last-child { border-bottom: 0; padding-bottom: 0; }
.counter:first-of-type { padding-top: 0; }
.counter .info strong { display: block; }
.counter .info span { color: var(--muted); font-size: .88rem; }
.counter .price-tag { color: var(--gold-2); font-weight: 600; font-size: .9rem; }
.stepper { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand); font-size: 1.15rem; cursor: pointer; color: var(--ink); transition: background .2s; }
.stepper button:hover { background: var(--sand-2); }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; }

.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; }
.alert.error { background: #f6e5e1; color: var(--bad); }
.alert.info { background: #ebeee3; color: var(--olive); }
.alert.warn { background: #f5ecdc; color: var(--warn); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .85rem; background: #e3ead9; color: var(--olive); }
.badge.red { background: #f6e5e1; color: var(--bad); }
.badge.amber { background: #f5ecdc; color: var(--warn); }
.trust { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; }

/* Ticket */
.ticket { max-width: 460px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.ticket .top { background: var(--night); color: var(--on-dark); padding: 26px; text-align: center; position: relative; }
.ticket .top img { height: 64px; margin: 0 auto 10px; }
.ticket .qr-zone { padding: 26px; text-align: center; border-bottom: 2px dashed var(--line); position: relative; }
.ticket .qr-zone::before, .ticket .qr-zone::after { content: ""; position: absolute; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); }
.ticket .qr-zone::before { inset-inline-start: -14px; }
.ticket .qr-zone::after { inset-inline-end: -14px; }
.ticket-qr { width: min(280px, 72vw); aspect-ratio: 1; margin: 14px auto; display: grid; place-items: center; background: var(--sand); border-radius: 16px; padding: 8px; }
.ticket-qr svg { width: 100%; height: 100%; }
.ticket .details { padding: 22px 26px 26px; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ticket-meta span { display: block; color: var(--muted); font-size: .82rem; }

/* Gate scanner (dark) */
.gate-body { background: #17150f; color: #f1eee6; }
.gate-body .panel { background: #23201a; border-color: #34302a; color: #f1eee6; }
.gate-body .muted { color: #b9b4a7; }
.gate-body input { background: #17150f; color: #f1eee6; border-color: #34302a; }
.gate-body .btn-line { color: #f1eee6; border-color: #3c372f; }
.scanner { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #000; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner::after { content: ""; position: absolute; inset: 18%; border: 2px solid rgba(255,255,255,.55); border-radius: 18px; }
.result { border-radius: var(--r); padding: 18px; margin-top: 14px; }
.result.green { background: #24412c; }
.result.amber { background: #4a3a1c; }
.result.red { background: #4a2420; }
.result h3 { margin: 0 0 10px; font-size: 1.35rem; font-family: var(--body); font-weight: 700; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; }
.result dt { color: #c9c3b5; }
.result dd { margin: 0; }

.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose ul { padding-inline-start: 22px; color: var(--muted); }
.prose li { margin: 6px 0; }

/* Simple pages without a hero sit below the fixed header */
main > .wrap:first-child { padding-top: 120px; padding-bottom: 56px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.gate-body .card { background: #23201a; border-color: #34302a; color: #f1eee6; }
.gate-body main > .wrap:first-child { padding-top: 24px; }
.prose { padding-bottom: 24px; }
@media (max-width: 960px) { .sticky { position: static; } }
h1, h2 { font-weight: 700; }

/* Live QR: a green sweep runs around the code while the ticket is valid, and a
   seconds clock ticks below it, so gate staff can tell a live page from a screenshot. */
.qr-frame { position: relative; width: min(296px, 76vw); margin: 14px auto 8px; padding: 7px; border-radius: 22px; overflow: hidden; background: var(--sand-2); isolation: isolate; }
.qr-frame .ticket-qr { position: relative; z-index: 1; width: 100%; margin: 0; background: #fff; }
.qr-frame.live { background: #dbeee0; }
.qr-frame.live::before { content: ""; position: absolute; z-index: 0; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 55%, #1f9d4c 72%, #46c873 82%, #1f9d4c 90%, transparent 100%);
  animation: qr-spin 1.8s linear infinite; }
@keyframes qr-spin { to { transform: rotate(360deg); } }
.live-clock { display: none; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: #1f7a3e; font-variant-numeric: tabular-nums; direction: ltr; }
.live-clock.on { display: inline-flex; }
.live-clock i { width: 9px; height: 9px; border-radius: 50%; background: #1f9d4c; animation: qr-blink 1s steps(2, start) infinite; }
@keyframes qr-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .qr-frame.live::before { animation-duration: 4s; } }

/* Arrival time chips */
.slots { display: grid; gap: 14px; }
.slot-group { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.slot-title { font-size: .88rem; color: var(--muted); padding-top: 9px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-width: 54px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 600 .95rem var(--body); color: var(--ink); cursor: pointer; transition: .2s var(--ease); }
.slot:hover { border-color: var(--gold); }
.slot.on { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.slot.any { padding: 0 18px; }
@media (max-width: 480px) { .slot-group { grid-template-columns: 1fr; gap: 6px; } .slot-title { padding-top: 0; } }

/* Readable nav over photos/video */
.nav a { color: rgba(241, 235, 224, .92); font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a.active { color: #fff; }
.site-header:not(.scrolled):not(.solid) { background: linear-gradient(180deg, rgba(15, 13, 10, .72) 0%, rgba(15, 13, 10, .35) 70%, transparent 100%); }
.site-header:not(.scrolled):not(.solid) .nav a:not(.btn), .site-header:not(.scrolled):not(.solid) .brand span { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.nav a.active:not(.btn) { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
@media (max-width: 980px) { .nav a.active:not(.btn) { box-shadow: none; color: var(--gold); } }

/* ---------- Motion ---------- */
/* Hero: video eases in slowly, text lines rise one after another */
.hero video { transform: scale(1.08); animation: hero-zoom 14s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero .wrap > * { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero .wrap > :nth-child(1) { animation-delay: .25s; }
.hero .wrap > :nth-child(2) { animation-delay: .4s; }
.hero .wrap > :nth-child(3) { animation-delay: .6s; }
.hero .wrap > :nth-child(4) { animation-delay: .8s; }
.page-hero .wrap > * { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.page-hero .wrap > :nth-child(2) { animation-delay: .12s; }
.page-hero .wrap > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 1; bottom: 22px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(241,235,224,.55); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--on-dark); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Parallax layers (moved by JS) */
[data-parallax] { will-change: transform; }
.page-hero img, .page-hero video, .band video, .band img { inset: -8% 0; height: 116%; }

/* Staggered reveals: JS sets --d per item */
.reveal { transition-delay: var(--d, 0s); }

/* Cards lift on hover */
.photo-card, .feature, .leader { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.photo-card:hover, .feature:hover, .leader:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.btn-gold:hover { transform: translateY(-2px); }
.logos img { transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.logos img:hover { transform: scale(1.06); }

/* Numbers count up (JS); keep width stable */
.stat b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero video, .hero .wrap > *, .page-hero .wrap > * { animation: none; opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
  .photo-card:hover, .feature:hover, .leader:hover { transform: none; }
}

/* Gallery: balanced bento grid (replaces uneven masonry columns) */
.masonry { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 14px; }
.masonry > a { display: block; border-radius: var(--r); overflow: hidden; position: relative; }
.masonry > a:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.masonry > a:nth-child(6n + 4) { grid-row: span 2; }
.masonry > a:nth-child(6n + 5) { grid-column: span 2; }
.masonry figure { margin: 0; height: 100%; border-radius: 0; }
.masonry img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .masonry > a:nth-child(6n + 5) { grid-column: span 2; }
}
@media (max-width: 480px) { .masonry { grid-auto-rows: 130px; gap: 10px; } }

/* Species scientific card */
.science { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.science h3 { margin-bottom: 18px; }
.science dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; margin: 0; }
.science dt { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.science dd { margin: 0; line-height: 1.7; }
@media (max-width: 860px) { .science dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .science dl { grid-template-columns: 1fr; } .science { padding: 22px; } }

/* Hero title refinement */
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.7rem); font-weight: 600; line-height: 1.4; max-width: 15em; margin: 16px 0 18px; text-wrap: balance; overflow-wrap: anywhere; }
.hero h1 .accent { display: block; color: #d9b27a; }
.hero p.lead { color: #e6dfd2; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero .eyebrow { color: #e6dfd2; }
.hero::after { background: linear-gradient(180deg, rgba(21,18,14,.55) 0%, rgba(21,18,14,.08) 28%, rgba(21,18,14,.45) 55%, rgba(21,18,14,.94) 100%); }
@media (max-width: 600px) { .hero .wrap { padding-bottom: 84px; } .hero h1 { line-height: 1.45; } }

/* Soft black veil over background videos so they stay calm behind the text */
.hero::before, .band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(12, 10, 8, .32); pointer-events: none; }
.hero video, .band video { filter: saturate(.9); }
.hero .wrap, .band .inner, .scroll-cue { z-index: 2; }

/* Responsive hardening */
.split > *, .grid > *, .booking-layout > * { min-width: 0; }
@media (max-width: 480px) {
  .price-table th, .price-table td { padding: 10px 5px; font-size: .82rem; }
  .price-table td.num { font-size: 1rem; }
  .price-table small { display: block; font-size: .7rem; }
  section.block { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .cta-strip .inner .btn { width: 100%; }
  .hero .actions .btn { flex: 1 1 auto; }
  .brand span { font-size: .95rem; }
  .brand small { display: none; }
  .science dl { gap: 16px; }
  .ticket-meta { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .stepper button { width: 34px; height: 34px; }
  .slot { min-width: 48px; padding: 0 10px; }
}
