/* Southern Sky Imaging — dark cinematic theme */

:root {
  --bg: #0a0b0d;
  --bg-alt: #101215;
  --panel: #16181c;
  --text: #f3f1ea;
  --text-dim: #9b9c9f;
  --accent: #e8a33d;
  --accent-dim: #b87f2c;
  --line: rgba(255, 255, 255, 0.08);
  --maxw: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #17130a; }
.btn-primary:hover { background: #f2b458; }

.btn-ghost { border-color: rgba(243,241,234,0.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.05); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--text-dim); transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-phone { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,10,0.55) 0%, rgba(8,9,10,0.15) 30%, rgba(8,9,10,0.35) 60%, rgba(7,8,9,0.96) 100%),
    linear-gradient(90deg, rgba(7,8,9,0.55) 0%, rgba(7,8,9,0.05) 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 100px;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  color: var(--text);
  max-width: 900px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: 1.08rem;
  color: #d8d6cd;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 46px;
  background: var(--text-dim);
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 30px 0;
}
.strip .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.strip p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.strip strong { color: var(--text); font-weight: 700; }

/* ---------- Section shell ---------- */
section { padding: 120px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 40px 34px;
  transition: background 0.35s var(--ease);
}
.service-card:hover { background: var(--panel); }
.service-num {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.service-card h3 {
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 700;
}
.service-card p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Featured work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  grid-column: span 3;
  grid-row: span 1;
}
.work-item.tall { grid-row: span 2; }
.work-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.work-item:nth-child(2) { grid-column: span 2; }
.work-item:nth-child(3) { grid-column: span 2; }
.work-item:nth-child(4) { grid-column: span 3; }
.work-item:nth-child(5) { grid-column: span 3; }
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.work-item:hover img { transform: scale(1.06); }
.work-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  display: flex; flex-direction: column; gap: 2px;
}
.work-caption .cat {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.work-caption .title { font-weight: 700; font-size: 1rem; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.why-item .why-mark {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.why-item h3 { font-size: 1.2rem; }
.why-item p { margin-top: 10px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 100px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 760px; margin: 0 auto; }
.cta-band p { margin-top: 18px; color: var(--text-dim); }
.cta-band .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
footer { padding: 70px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { font-size: 1.2rem; }
.footer-brand p { margin-top: 14px; color: var(--text-dim); max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px; font-weight: 700;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.82rem; color: var(--text-dim); flex-wrap: wrap; gap: 10px;
}

/* ---------- Reveal utility (GSAP targets) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .work-item, .work-item:nth-child(1), .work-item:nth-child(2), .work-item:nth-child(3), .work-item:nth-child(4), .work-item:nth-child(5) {
    grid-column: span 2; grid-row: span 1;
  }
  .nav-links { display: none; }
  section { padding: 80px 0; }
}

/* ---------- Video hero ---------- */
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Interactive 360 "alive" section ---------- */
.live-section {
  position: relative;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.live-head {
  padding: 100px 0 50px;
  text-align: center;
}
.live-head .eyebrow { }
.live-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 700px; margin: 0 auto; }
.live-head p { margin-top: 16px; color: var(--text-dim); max-width: 560px; margin-left: auto; margin-right: auto; }
.pano-embed-wrap {
  position: relative;
  width: 100%;
  height: 640px;
  background: #000;
}
#pano-embed { width: 100%; height: 100%; }
.pano-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(10,11,13,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: pano-hint-fade 4s ease-in-out infinite;
}
@keyframes pano-hint-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.live-foot {
  padding: 40px 0 90px;
  text-align: center;
}

/* Pannellum control skin tweaks */
.pnlm-load-box, .pnlm-panorama-info { display: none !important; }
.pnlm-about-msg { display: none !important; }

@media (max-width: 900px) {
  .pano-embed-wrap { height: 420px; }
}
