/* ============================================================
   INSULA — Resort Management
   Brand: #0D1B2A navy | #35506B blue | #CBA46B gold
          #E8E1D6 sand | #F6F4F0 off-white
   PlayOn: #58BBC0 teal | #FFC26B orange | #0D2B3A dark
   ============================================================ */

:root {
  --navy: #0d1b2a;
  --navy-2: #12233a;
  --blue: #35506b;
  --gold: #cba46b;
  --gold-soft: #d9bd8e;
  --sand: #e8e1d6;
  --paper: #f6f4f0;
  --white: #ffffff;
  --ink: #22303f;
  --muted: #5d6b7a;
  --po-teal: #58bbc0;
  --po-orange: #ffc26b;
  --po-dark: #0d2b3a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
  --shadow-lg: 0 18px 50px rgba(13, 27, 42, 0.18);
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Cinzel", "Trajan Pro", serif;
  --font-latin: "Montserrat", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}

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

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 1.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; border: 1.5px solid transparent;
  transition: all 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn .arrow { transition: transform 0.25s; display: inline-block; }
.btn:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203, 164, 107, 0.18);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.28em; color: var(--white); }
.logo-sub { font-family: var(--font-latin); font-size: 0.5rem; letter-spacing: 0.32em; color: var(--gold); }

.main-nav ul { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  color: var(--sand); font-size: 0.95rem; font-weight: 600;
  padding: 0.35rem 0.15rem; position: relative; transition: color 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; bottom: -4px; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--gold); transition: width 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.lang-btn {
  background: rgba(246, 244, 240, 0.08); color: var(--white);
  border: 1px solid rgba(203, 164, 107, 0.4); border-radius: 8px;
  padding: 0.35rem 0.8rem; font-weight: 700; font-size: 0.85rem;
  transition: all 0.2s;
}
.lang-btn:hover { background: var(--gold); color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 74vh; display: flex; align-items: center;
  color: var(--white); isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13,27,42,0.55), rgba(13,27,42,0.82));
}
.hero-content { max-width: 620px; padding-block: 5rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.35;
  margin-bottom: 1.1rem;
}
.hero p { font-size: 1.08rem; color: var(--sand); margin-bottom: 1.8rem; max-width: 460px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-inner { min-height: 56vh; }

/* ---------- PlayOn design render gallery ---------- */
.po-design-block { margin-top: 3rem; }
.po-design-title {
  text-align: center; color: var(--navy); font-size: 1.4rem; font-weight: 800;
  position: relative; padding-bottom: 0.7rem; margin-bottom: 0.4rem;
}
.po-design-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: calc(50% - 30px);
  width: 60px; height: 3px; background: var(--po-teal); border-radius: 3px;
}
.po-design-sub { text-align: center; color: var(--muted); margin-bottom: 0.5rem; }
.po-design-gallery { columns: 3 250px; column-gap: 1.1rem; margin-top: 2.4rem; }
.po-design-gallery .g-item {
  position: relative; break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(13,27,42,0.14);
}
.po-design-gallery .g-item img { width: 100%; display: block; transition: transform 0.4s; }
.po-design-gallery .g-item:hover img { transform: scale(1.05); }
.po-render-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 1.6rem; }
@media (max-width: 640px) { .po-design-gallery { columns: 2 150px; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--sand); padding: 0.7rem 0; font-size: 0.88rem; color: var(--muted);
}
.breadcrumb .container { display: flex; gap: 0.5rem; justify-content: flex-end; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--navy); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--navy); font-weight: 800;
  position: relative; display: inline-block; padding-bottom: 0.7rem; margin-bottom: 0.6rem;
}
.section-head h2::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 50%;
  transform: translateX(50%); width: 64px; height: 3px; background: var(--gold); border-radius: 3px;
  inset-inline-start: calc(50% - 32px); inset-inline-end: auto;
}
.section-head p { color: var(--muted); }

.section-dark { background: var(--navy); color: var(--sand); }
.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-head p { color: var(--sand); }
.section-sand { background: var(--sand); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.about-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 2.5rem; border-top: 4px solid var(--gold);
}
.about-card h2 { color: var(--navy); margin-bottom: 1rem; font-size: 1.7rem; }
.about-card .tagline {
  margin-top: 1.4rem; color: var(--gold); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 1.9rem;
  box-shadow: 0 4px 16px rgba(13,27,42,0.06);
  border: 1px solid rgba(203,164,107,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(203,164,107,0.14); color: var(--gold); margin-bottom: 1rem;
  font-size: 1.5rem;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--gold); }
.service-card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Featured PlayOn block ---------- */
.featured {
  display: grid; grid-template-columns: 340px 1fr; gap: 1.6rem; align-items: stretch;
}
.featured-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 2rem; display: flex; flex-direction: column; align-items: center;
  text-align: center; justify-content: center; gap: 0.55rem;
  border: 1px solid rgba(203,164,107,0.2);
}
.featured-card .po-logo { width: 200px; }
.featured-card h3 { color: var(--navy); font-size: 1.5rem; }
.featured-card .sub { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.status-pill {
  display: inline-block; padding: 0.28rem 1.1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: var(--sand); color: var(--blue);
}
.status-pill.construction { background: #fdeeda; color: #b07a2a; }
.status-pill.open { background: #e2f2ec; color: #257a5b; }
.featured-card .explore {
  margin-top: 0.8rem; color: var(--navy); font-weight: 700; display: inline-flex;
  align-items: center; gap: 0.5rem; border-bottom: 2px solid var(--gold);
  padding-bottom: 2px; transition: color 0.2s;
}
.featured-card .explore:hover { color: var(--gold); }

.featured-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); min-height: 340px;
}
.featured-media img, .featured-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.play-btn {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
  border-radius: 50%; border: none; z-index: 2;
  background: rgba(246,244,240,0.92); color: var(--navy);
  display: grid; place-items: center; font-size: 1.5rem;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.play-btn::after { content: "▶"; transform: translateX(2px); }
[dir="rtl"] .play-btn::after { transform: translateX(-2px) scaleX(-1); }
.play-btn:hover { transform: scale(1.1); background: var(--gold); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter-btn {
  padding: 0.45rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  background: var(--white); color: var(--blue); border: 1.5px solid rgba(53,80,107,0.25);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.project-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 6px 20px rgba(13,27,42,0.08); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .thumb .status-pill { position: absolute; bottom: 0.8rem; inset-inline-start: 0.8rem; }
.project-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.project-card h3 { color: var(--navy); font-size: 1.15rem; }
.project-card .loc { color: var(--gold); font-size: 0.85rem; font-weight: 700; }
.project-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.project-card .details-link {
  color: var(--navy); font-weight: 700; font-size: 0.92rem;
  display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.5rem;
}
.project-card .details-link:hover { color: var(--gold); }

/* ---------- Project detail sections (scrollable, one per project) ---------- */
.project-section { padding: 4rem 0; }
.project-section:nth-of-type(even) { background: var(--sand); }
.project-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem;
}
.project-head h2 { color: var(--navy); font-size: 1.6rem; }
.project-head .meta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.project-head .loc { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.project-desc { color: var(--muted); max-width: 720px; margin-bottom: 2rem; }

/* Project media: videos keep their true aspect; photos flow uncropped in a masonry */
.project-media { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.video-col { display: flex; flex-direction: column; gap: 1.1rem; flex: 0 0 300px; }
.video-shell {
  position: relative; background: var(--navy); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 24px rgba(13,27,42,0.14); width: 100%;
}
.video-shell.portrait { aspect-ratio: 9/16; }
.video-shell.tall { aspect-ratio: 3/4; }
.video-shell.landscape { flex: 1 1 100%; max-width: 780px; aspect-ratio: 16/9; }
.video-shell video { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-tag {
  position: absolute; top: 0.7rem; inset-inline-start: 0.7rem; z-index: 2;
  background: rgba(13,27,42,0.75); color: var(--gold); font-size: 0.75rem;
  font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 999px; pointer-events: none;
}
.gallery { flex: 1 1 320px; columns: 3 220px; column-gap: 1.1rem; }
.gallery .g-item {
  position: relative; break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 6px 18px rgba(13,27,42,0.1);
}
.gallery .g-item img { width: 100%; transition: transform 0.35s; }
.gallery .g-item:hover img { transform: scale(1.04); }
.project-head .brand-chip {
  background: var(--white); border-radius: 12px; padding: 0.45rem 1rem;
  box-shadow: 0 4px 14px rgba(13,27,42,0.08); display: inline-flex; align-items: center;
}
.project-head .brand-chip img { height: 52px; width: auto; }

/* ---------- PlayOn detail page ---------- */
.po-hero::after {
  background: linear-gradient(105deg, rgba(13,43,58,0.35) 0%, rgba(13,27,42,0.72) 55%, rgba(13,27,42,0.9) 100%);
}
.po-meta { display: flex; flex-direction: column; gap: 0.55rem; margin: 1.2rem 0 1.6rem; }
.po-meta li { display: flex; align-items: center; gap: 0.6rem; color: var(--sand); font-size: 0.95rem; }
.po-meta .ico { color: var(--po-teal); width: 22px; text-align: center; }

.po-about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.6rem; align-items: stretch; }
.po-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1.2rem; width: 100%; }
.po-feature { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: var(--blue); font-size: 0.85rem; font-weight: 700; }
.po-feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(88,187,192,0.14); color: var(--po-teal); font-size: 1.25rem;
}

.po-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-top: 1.6rem;
}
.stat-tile {
  background: var(--white); border-radius: var(--radius); padding: 1.1rem;
  text-align: center; box-shadow: 0 4px 14px rgba(13,27,42,0.07);
  border-bottom: 3px solid var(--po-teal);
}
.stat-tile .num { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.stat-tile .lbl { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

.po-design-points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem; margin-top: 2.2rem;
}
.design-point { display: flex; align-items: flex-start; gap: 0.8rem; }
.design-point .ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(203,164,107,0.16); color: var(--gold); display: grid; place-items: center;
  font-size: 1.15rem;
}
.design-point p { font-size: 0.9rem; color: var(--ink); font-weight: 600; }

.po-mascot-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; }
.po-mascot-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--white); }
.po-mascot-grid h2 { color: var(--navy); margin-bottom: 0.8rem; }
.po-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.po-chip {
  padding: 0.3rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--po-dark); color: var(--white);
}
.po-chip.teal { background: var(--po-teal); color: var(--po-dark); }
.po-chip.orange { background: var(--po-orange); color: var(--po-dark); }

/* ---------- Carousel strip (other projects on PlayOn page) ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.strip-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.strip-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.strip-card:hover img { transform: scale(1.06); }
.strip-card .cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(13,27,42,0.9), transparent);
  color: var(--white); font-weight: 700; font-size: 0.95rem;
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.news-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  border-inline-start: 4px solid var(--gold); box-shadow: 0 4px 16px rgba(13,27,42,0.06);
}
.news-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.contact-form {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.2rem;
  box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { font-weight: 700; font-size: 0.85rem; color: var(--navy); display: grid; gap: 0.35rem; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 0.95rem; padding: 0.7rem 1rem;
  border: 1.5px solid var(--sand); border-radius: 10px; background: var(--paper);
  color: var(--ink); transition: border-color 0.2s; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-info {
  background: var(--navy); color: var(--sand); border-radius: var(--radius-lg);
  padding: 2.2rem; display: grid; gap: 1.1rem; align-content: start;
}
.contact-info h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 0.4rem; }
.contact-info .item { display: flex; align-items: center; gap: 0.8rem; }
.contact-info .ico { color: var(--gold); width: 24px; text-align: center; }
.contact-info a:hover { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 5rem 0; color: var(--white); isolation: isolate; text-align: start; }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,27,42,0.82); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); max-width: 520px; margin-bottom: 0.6rem; }
.cta-band p { color: var(--sand); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--sand); padding: 3.5rem 0 0; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer-grid h4 { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; margin-top: 1rem; color: rgba(232,225,214,0.8); max-width: 300px; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: center; }
.footer-contact .ico { color: var(--gold); width: 20px; text-align: center; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(203,164,107,0.4); color: var(--gold); font-size: 0.9rem;
  transition: all 0.2s;
}
.socials a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(203,164,107,0.18); padding: 1.1rem 0;
  text-align: center; font-size: 0.82rem; color: rgba(232,225,214,0.7);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 999; background: rgba(13,27,42,0.92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.show { display: flex; }
.lightbox .content { max-width: min(1000px, 94vw); max-height: 86vh; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox .close {
  position: absolute; top: 1.2rem; inset-inline-end: 1.6rem; background: none; border: none;
  color: var(--white); font-size: 2.2rem; line-height: 1;
}
.lightbox .close:hover { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid, .po-about-grid, .po-mascot-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 260px; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-col { flex-direction: row; flex-wrap: wrap; flex-basis: 100%; }
  .video-col .video-shell { flex: 1 1 240px; max-width: 340px; }
}

@media (max-width: 680px) {
  .site-header .header-actions .btn { display: none; }
  .logo svg { width: 32px; height: 32px; }
  .logo-name { font-size: 1.05rem; letter-spacing: 0.2em; }
  .stats-band .container { grid-template-columns: 1fr; gap: 1.6rem; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--navy);
    padding: 1.2rem 6%; transform: translateY(-130%); transition: transform 0.3s ease;
    border-bottom: 2px solid var(--gold); z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0.9rem; align-items: flex-start; }
  .nav-toggle { display: block; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .po-features { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 64vh; }
}

/* ============================================================
   Refinement layer — typography, motion, and detail polish
   ============================================================ */

/* Anchor targets never hide behind the sticky header */
section[id], .project-section[id] { scroll-margin-top: 88px; }

/* Type detail */
h1, h2, h3 { text-wrap: balance; }
.section-head h2 { letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 0.65rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 1.5px; background: var(--gold); opacity: 0.55;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before, .hero .eyebrow::after { background: var(--gold-soft); }

/* Layered, navy-tinted elevation on hover */
.project-card:hover, .service-card:hover {
  box-shadow: 0 6px 16px rgba(13, 27, 42, 0.1), 0 22px 48px rgba(13, 27, 42, 0.16);
}

/* Header gains depth once the page scrolls */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled {
  background: rgba(13, 27, 42, 0.99);
  box-shadow: 0 8px 26px rgba(13, 27, 42, 0.35);
}

/* Hero entrance — staggered rise, slow drift on the photo */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero-media img { animation: slow-zoom 22s ease-out forwards; }
.hero-content > * { opacity: 0; animation: rise-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }
.hero-content.reveal { opacity: 1; transform: none; transition: none; }

/* Mascot floats gently */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.featured-media img[src$=".png"], .po-hero-art img { animation: floaty 6s ease-in-out infinite; }

/* Stats band */
.stats-band { background: var(--navy); padding: 3.2rem 0; position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: -40px -40px auto auto; width: 260px; height: 260px;
  border: 2px solid rgba(203, 164, 107, 0.14); border-radius: 130px 130px 16px 16px;
  transform: rotate(12deg); pointer-events: none;
}
.stats-band .container {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center;
}
.stats-band .num {
  font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 800; color: var(--gold);
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.stats-band .num .plus { font-size: 0.6em; vertical-align: super; }
.stats-band .lbl { color: var(--sand); font-size: 0.95rem; font-weight: 600; }

/* Gallery items invite the click */
.g-item[data-full]::after {
  content: "+"; position: absolute; inset-inline-end: 0.7rem; top: 0.7rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 27, 42, 0.65); color: var(--gold); font-size: 1.3rem; font-weight: 600;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.g-item[data-full]:hover::after { opacity: 1; }

/* Contact & footer icon glyphs */
.icon-svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -3px; }

/* Numbers align in stat tiles */
.stat-tile .num { font-variant-numeric: tabular-nums; }
.po-feature .ico .icon-svg { width: 22px; height: 22px; }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-content > * { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
