/* ==========================================================
   Painted Sky Collective — site styles
   Colors and type carried over from the original Squarespace site
   ========================================================== */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); }

:root {
  --cream: #F4F1E0;
  --cream-deep: #EAE5CC;
  --ink: #111111;
  --ink-soft: #3a3833;
  --orange: #EC5C39;
  --orange-deep: #D24A29;
  --purple: #5B2A86;
  --magenta: #B0306A;
  --gold: #F6A623;
  --radius-img: 40px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: var(--orange); background: transparent;
  border: 2px solid var(--orange); border-radius: 20px 0;
  padding: 18px 30px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--orange); color: var(--cream); }
.btn--light { color: var(--cream); border-color: var(--cream); }
.btn--light:hover, .btn--light:focus-visible { background: var(--cream); color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1500px; margin: 0 auto; padding: 18px var(--gutter);
}
.brand img { width: 160px; height: auto; transition: width .25s ease; }
.site-header.is-scrolled .brand img { width: 96px; }
.nav-main { display: flex; gap: 28px; align-items: center; }
.nav-main a, .nav-drop > button {
  font-family: var(--font-body); font-size: 19px; color: var(--ink);
  text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer;
  border-bottom: 1.5px solid transparent;
}
.nav-main a:hover, .nav-main a[aria-current="page"],
.nav-drop > button:hover, .nav-drop.is-current > button { border-bottom-color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: -18px; min-width: 170px;
  background: var(--cream); padding: 12px 18px; margin-top: 8px;
  border: 1.5px solid var(--ink); border-radius: 16px 0;
  display: none; flex-direction: column; gap: 6px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.social { display: flex; gap: 18px; align-items: center; }
.social a { display: inline-flex; color: var(--ink); }
.social svg { width: 30px; height: 30px; }
.social a:hover { color: var(--orange); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 30px; height: 30px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--cream);
  display: flex; flex-direction: column; padding: 24px var(--gutter);
  transform: translateY(-100%); transition: transform .35s ease; visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-top img { width: 84px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.mobile-menu nav a { font-family: var(--font-head); font-size: 40px; text-decoration: none; line-height: 1.1; }
.mobile-menu nav a.sub { font-size: 26px; padding-left: 20px; color: var(--ink-soft); }
.mobile-menu .btn { margin-top: 36px; align-self: flex-start; }
.mobile-menu .social { margin-top: auto; padding-bottom: 12px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; padding: 12px var(--gutter); }
  .nav-main, .header-right .social, .header-right .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand { grid-column: 1; }
  .header-right { grid-column: 3; }
  .brand img { width: 84px; }
  .site-header.is-scrolled .brand img { width: 64px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 4.5vw, 72px) 0; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.split--top { align-items: start; }
.text-right { text-align: right; }
.rounded { border-radius: var(--radius-img); overflow: hidden; }
.rounded img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 { font-size: clamp(52px, 6.4vw, 96px); font-weight: 600; letter-spacing: -0.035em; }
.hero .lede { font-family: var(--font-head); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.22; letter-spacing: -0.01em; margin-bottom: 1.4em; }
.hero .hero-img { aspect-ratio: 4 / 5.4; }
.hero-text p { color: var(--ink); font-size: clamp(18px, 1.55vw, 24px); }

.big-head { font-size: clamp(48px, 6vw, 92px); font-weight: 600; letter-spacing: -0.035em; }
.statement { font-family: var(--font-head); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -0.01em; }
.side-img { aspect-ratio: 4 / 3.6; }
.tall-img { aspect-ratio: 4 / 5; }

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

/* Curved orange divider line */
.divider { display: block; width: 100%; height: clamp(50px, 7vw, 110px); color: var(--orange); }
.divider path { fill: none; stroke: currentColor; stroke-width: 12; vector-effect: non-scaling-stroke; }

/* Team */
.team-head { text-align: center; font-size: clamp(36px, 4vw, 56px); margin-bottom: 1.2em; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.team figure { margin: 0; }
.team img { width: min(200px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.team h3 { font-size: 22px; margin: 0 0 2px; letter-spacing: -0.01em; }
.team p { font-size: 16px; margin: 0; }

/* Page banner */
.banner { position: relative; height: clamp(260px, 38vw, 520px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.45)); }
.banner .banner-title {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vw, 56px); z-index: 1;
  color: var(--cream); text-align: center; font-size: clamp(44px, 7vw, 104px); font-weight: 600; letter-spacing: -0.035em; margin: 0;
}
.page-intro { text-align: center; max-width: 760px; margin: 0 auto; }

/* Videos */
.video-block { text-align: center; }
.video-block h2 { font-size: clamp(36px, 4vw, 56px); }
.video-block .desc { max-width: 720px; margin: 0 auto 32px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 1320px; }
.video-grid--1 { grid-template-columns: minmax(0, 860px); justify-content: center; }
.video {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 0;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--magenta) 30%, var(--orange) 62%, var(--gold) 100%);
  color: #fff; font-family: var(--font-head); border: 0; width: 100%; cursor: pointer; padding: 0;
}
.video .poster img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .poster .play {
  position: relative; width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.35);
  display: grid; place-items: center; transition: transform .2s ease, background .2s ease;
}
.video .poster:hover .play { transform: scale(1.08); background: rgba(0,0,0,.55); }
.video .poster .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video .poster .soon { position: relative; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.video .poster.is-empty { cursor: default; }
.video .poster.is-empty .silhouette { position: absolute; left: 0; bottom: 0; width: 100%; height: 32%; color: #111; }

/* Photos — justified gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999; }
.gallery a {
  position: relative; display: block; flex-grow: var(--r); flex-basis: calc(var(--r) * 260px);
  overflow: hidden; background: var(--cream-deep);
}
.gallery a::before { content: ""; display: block; padding-top: calc(100% / var(--r)); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .gallery a { flex-basis: calc(var(--r) * 150px); } .gallery { gap: 5px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 12, 10, .94);
  display: none; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer; padding: 12px;
}
.lightbox button svg { width: 32px; height: 32px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(244,241,224,.7); font-size: 14px; letter-spacing: .1em; }
@media (max-width: 700px) { .lightbox { padding: 56px 8px; } }

/* Contact */
.contact h1 { color: var(--orange); font-size: clamp(52px, 6vw, 92px); font-weight: 600; letter-spacing: -0.035em; }
.contact .lede { font-family: var(--font-head); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.22; letter-spacing: -0.01em; }
.form-card {
  border: 4px solid var(--orange); border-radius: 48px; padding: clamp(24px, 3vw, 40px);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card legend, .form-card label { font-size: 17px; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form-card legend { margin-bottom: 6px; }
.req { color: #6d6a60; font-size: 14px; }
.small-label { display: block; font-size: 14px; margin-bottom: 4px; }
.form-card input[type=text], .form-card input[type=email], .form-card textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 1.5px solid #8d8a80; border-radius: 24px;
  padding: 13px 18px; outline: none; transition: border-color .2s ease;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { border-color: var(--orange); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-top: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; margin-top: 8px; }
.form-status { margin-top: 14px; font-weight: 600; text-align: center; min-height: 1.5em; }
.form-status.ok { color: #2e6b3a; }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: var(--cream); margin-top: clamp(30px, 5vw, 60px); }
.footer-curve { display: block; width: 100%; height: clamp(50px, 7vw, 110px); color: var(--orange); }
.footer-body { background: var(--orange); padding: 20px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.site-footer h2 { font-size: clamp(34px, 3.4vw, 50px); font-weight: 500; }
.site-footer p { font-size: 18px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; max-width: 520px; }
.signup input[type=email] {
  flex: 1 1 240px; font: inherit; font-size: 18px; padding: 18px 26px;
  background: rgba(255,255,255,.4); border: 0; color: var(--ink); outline: none;
}
.signup input::placeholder { color: rgba(17,17,17,.6); }
.signup input:focus { background: rgba(255,255,255,.65); }
.footer-info { text-align: right; }
.footer-info .social { justify-content: flex-end; margin-top: 18px; }
.footer-info .social a { color: var(--cream); }
.footer-bottom { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(244,241,224,.35); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.footer-bottom img { width: 46px; }
.signup-status { margin-top: 10px; font-weight: 600; min-height: 1.4em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .text-right { text-align: left; }
  .split .order-first-mobile { order: -1; }
  .hero .hero-img { aspect-ratio: 4 / 4.2; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .video-grid, .video-grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-info { text-align: left; }
  .footer-info .social { justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { border-radius: 32px; }
}

/* ---------- Drone film band (home) ---------- */
.film-band { padding: clamp(8px, 2vw, 24px) 0 clamp(20px, 3vw, 40px); }
.film {
  position: relative; overflow: hidden; border-radius: var(--radius-img);
  aspect-ratio: 21 / 9; background: #b98a6a url("../video/marble-poster.jpg") center / cover no-repeat;
}
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20,10,5,.55) 100%);
}
.film-caption { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(18px, 3.5vw, 48px); z-index: 1; color: var(--cream); }
.film-quote { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-size: clamp(30px, 4.6vw, 72px); margin: 0 0 .25em; }
.film-place { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .9; }
.film-toggle {
  position: absolute; right: clamp(14px, 2.5vw, 32px); bottom: clamp(14px, 2.5vw, 32px); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(244,241,224,.8);
  background: rgba(0,0,0,.25); color: var(--cream); display: grid; place-items: center; cursor: pointer;
}
.film-toggle svg { width: 18px; height: 18px; }
.film-toggle .i-play { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
.film-toggle[aria-pressed="true"] .i-pause { display: none; }
.film-toggle:hover { background: rgba(0,0,0,.45); }
@media (max-width: 700px) { .film { aspect-ratio: 4 / 3.4; border-radius: 28px; } }

/* Video titles over the thumbnail */
.video .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.6)); pointer-events: none; }
.video .poster.is-empty::after { display: none; }
.video .poster .vt {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; text-align: left;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); color: #fff; line-height: 1.2;
}
.video .poster .play { z-index: 1; }

/* Videos page: drone footage banner */
.banner--video { background: #b98a6a url("../video/marble-poster.jpg") center / cover no-repeat; }
.banner--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .film-toggle { z-index: 2; }
