/* Starhaven Media */

:root {
  --ink: #141416;
  --ink-soft: #3d3d42;
  --muted: #6b6b72;
  --paper: #f7f4ef;
  --paper-2: #efebe4;
  --line: #ddd7cd;
  --red: #c1272d;
  --red-dark: #9e1f24;
  --night: #0d0d10;
  --night-2: #17171c;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::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(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(3rem, 8vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: 1.75rem; line-height: 1.15; }

h1 em, h2 em { color: var(--red); }

p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.25rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40ch;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 46px; }
.brand span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.92rem;
  text-decoration: none;
  opacity: 0.82;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nav .nav-cta {
  opacity: 1;
  padding: 0.55em 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}
.nav .nav-cta:hover { border-color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--night);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px var(--gutter) 24px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav .nav-cta { display: inline-block; margin-top: 12px; padding: 0.7em 1.2em; }
}

/* Hero */

.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.92) 0%, rgba(13, 13, 16, 0.55) 55%, rgba(13, 13, 16, 0.35) 100%);
}
.hero .wrap {
  padding-top: 180px;
  padding-bottom: 140px;
}
.hero h1 { max-width: 11ch; margin-bottom: 0.35em; }
.hero .lede { color: rgba(255, 255, 255, 0.82); margin-bottom: 2.25rem; }
.hero-home .wrap { padding-top: clamp(150px, 22vh, 220px); padding-bottom: clamp(160px, 26vh, 260px); }
.hero-home .hero-bg img { object-position: center 70%; }

.page-hero .wrap { padding-top: 170px; padding-bottom: 90px; }
.page-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(13, 13, 16, 0.93) 0%, rgba(13, 13, 16, 0.8) 50%, rgba(13, 13, 16, 0.45) 100%);
}
@media (max-width: 860px) {
  .page-hero .hero-bg::after { background: rgba(13, 13, 16, 0.82); }
}
.page-hero h1 { font-size: clamp(2.75rem, 7vw, 5rem); max-width: 14ch; }

/* Sections */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: #fff; }
.section-dark .lede { color: rgba(255, 255, 255, 0.75); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-media { align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.prose { max-width: 62ch; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}
.steps h3 { color: #fff; }
.steps p { color: rgba(255, 255, 255, 0.72); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
}

/* Pull quote */

.statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0;
}
.statement em { color: var(--red); }

.quote {
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin: 0;
}
.quote p::before { content: "\201C"; color: var(--red); }
.quote p::after { content: "\201D"; color: var(--red); }
.quote em { color: var(--red); }
.quote figcaption {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote cite { font-style: normal; }

.tribe-close {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
.tribe-close .fit-note { margin-bottom: 2rem; }

.fit-note {
  margin-top: 2rem;
  padding-left: 20px;
  border-left: 2px solid var(--red);
  color: var(--ink-soft);
  max-width: 52ch;
}

/* More from Starhaven (drone + photo cards) */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: var(--night);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover img { transform: scale(1.03); }
.card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 96px 28px 28px;
  background: linear-gradient(0deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.7) 55%, rgba(10, 10, 12, 0) 100%);
}
.card-body h3 { margin-bottom: 0.25rem; }
.card-body p { margin: 0; opacity: 0.85; font-size: 0.95rem; }
.card-body .arrow { color: var(--red); font-weight: 600; }
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
}

/* Clients */

.clients { text-align: center; }
.clients .eyebrow { color: var(--muted); }
.clients img {
  margin: 0 auto;
  max-width: 880px;
  width: 100%;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.75;
}

/* CTA band */

.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.cta-band p { margin: 0.5rem 0 0; opacity: 0.85; }
.cta-band .btn-dark:hover { background: var(--night); }

/* Lists */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.check-list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45em;
  width: 12px;
  height: 2px;
  background: var(--red);
}
@media (max-width: 600px) {
  .check-list { grid-template-columns: 1fr; }
}

/* Video (click-to-load) */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video img, .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video button {
  position: absolute;
  inset: 0;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
}
.video button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 36px no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.video button:hover::after { transform: scale(1.06); }
.video-caption { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-a { grid-column: span 5; aspect-ratio: 4 / 5; }
.g-b { grid-column: span 7; aspect-ratio: 7 / 5.6; }
.g-c { grid-column: span 7; aspect-ratio: 7 / 4.3; }
.g-d { grid-column: span 5; aspect-ratio: 5 / 4.3; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .g-a, .g-b, .g-c, .g-d { grid-column: auto; aspect-ratio: 4 / 3; }
  .g-a { aspect-ratio: 4 / 5; }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 96px);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-aside a.email {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--red);
  text-decoration: none;
  word-break: break-word;
}
.contact-aside a.email:hover { text-decoration: underline; }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: transparent;
}
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: #1f7a3d; }
.form-status.err { color: var(--red-dark); }

/* Footer */

.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
  font-size: 0.92rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top img { width: 150px; }
.footer-top p { margin: 16px 0 0; max-width: 34ch; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 48px;
}
.footer-links a, .site-footer .email-link { text-decoration: none; color: #fff; }
.footer-links a:hover, .site-footer .email-link:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}
.social { display: flex; gap: 20px; }
.social a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.social a:hover { color: #fff; }

/* 404 */

.not-found { min-height: 100vh; display: flex; align-items: center; }
.not-found .wrap { padding-top: 120px; padding-bottom: 80px; }
