:root {
  --bg: #071318;
  --bg-deep: #03090c;
  --panel: #0a181d;
  --text: #e8e2d8;
  --muted: #9ea9aa;
  --accent: #d3a166;
  --line: rgba(232, 226, 216, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: var(--text);
  color: #000;
  padding: .7rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(calc(100% - 2rem), var(--max));
  padding: 1.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .22em;
  font-weight: 500;
}

.yt-link {
  text-decoration: none;
  color: #d7dddc;
  font-size: .9rem;
}
.yt-link:hover, .site-footer a:hover { color: var(--accent); }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url('hero.webp');
  background-size: cover;
  background-position: center center;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2,8,11,.12) 0%, rgba(2,8,11,.12) 40%, rgba(2,8,11,.88) 100%),
    linear-gradient(90deg, rgba(2,8,11,.46) 0%, rgba(2,8,11,.04) 54%, rgba(2,8,11,.18) 100%);
}

.hero-content {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 9vw, 8rem);
  max-width: var(--max);
}

.eyebrow, .section-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: .25rem;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 200;
  letter-spacing: .055em;
  line-height: .98;
}

.tagline {
  margin: .9rem 0 2.25rem;
  color: #c7cecc;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: .045em;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232,226,216,.38);
  background: rgba(7,19,24,.34);
  color: var(--text);
  padding: .85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 550;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover {
  background: rgba(211,161,102,.12);
  border-color: rgba(211,161,102,.75);
  transform: translateY(-1px);
}
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 1rem;
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.narrow { max-width: 790px; margin-left: max(0px, calc((100% - 790px) / 2)); }

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.05;
  font-weight: 260;
  letter-spacing: -.02em;
}

.intro { background: var(--bg-deep); }
.intro p:not(.section-kicker) {
  max-width: 780px;
  color: #b6c0c0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.contact { background: var(--panel); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.muted { color: var(--muted); max-width: 440px; }

.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
label { color: #c6cfcd; font-size: .86rem; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(232,226,216,.18);
  border-radius: 12px;
  background: rgba(2,8,11,.42);
  color: var(--text);
  padding: .9rem 1rem;
  font: inherit;
}
textarea { resize: vertical; min-height: 160px; }
input:hover, textarea:hover { border-color: rgba(232,226,216,.32); }
.button-submit { justify-self: start; font: inherit; }
.form-note { margin: 0; color: #7e8a8b; font-size: .78rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0;
  color: #7f8b8c;
  font-size: .82rem;
}
.site-footer a { text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root { --max: 960px; }

  .site-header,
  .hero-content,
  .site-footer {
    width: min(calc(100% - 3rem), var(--max));
  }

  h1 { font-size: clamp(3.6rem, 8.5vw, 6.5rem); }

  .contact-grid {
    grid-template-columns: minmax(0, .8fr) minmax(300px, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 2rem);
    padding: 1.2rem 0;
  }

  .hero {
    min-height: 760px;
    min-height: 100svh;
  }

  .hero-bg {
    background-position: 62% center;
    transform: scale(1.01);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2,8,11,.18) 0%, rgba(2,8,11,.10) 35%, rgba(2,8,11,.90) 100%),
      linear-gradient(90deg, rgba(2,8,11,.58) 0%, rgba(2,8,11,.09) 68%, rgba(2,8,11,.16) 100%);
  }

  .hero-content {
    width: calc(100% - 2rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 12vw, 5.5rem);
    letter-spacing: .025em;
  }

  .tagline {
    margin-top: .8rem;
    margin-bottom: 1.8rem;
    font-size: clamp(1rem, 3vw, 1.25rem);
  }

  .section { padding: clamp(4rem, 9vw, 6rem) 1rem; }

  .narrow {
    max-width: 100%;
    margin-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .muted { max-width: 620px; }

  .site-footer {
    width: calc(100% - 2rem);
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: .75rem;
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .brand {
    font-size: .68rem;
    letter-spacing: .15em;
    white-space: nowrap;
  }

  .yt-link { font-size: .82rem; }

  .hero {
    min-height: 680px;
    min-height: 100svh;
  }

  /* On portrait phones favour the planet/signal side of the artwork. */
  .hero-bg { background-position: 68% center; }

  .hero-content {
    padding-bottom: max(2.6rem, env(safe-area-inset-bottom));
  }

  .eyebrow,
  .section-kicker {
    font-size: .64rem;
    letter-spacing: .16em;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: .012em;
    overflow-wrap: anywhere;
  }

  .tagline {
    max-width: 19rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .button {
    min-height: 46px;
    padding: .78rem 1.05rem;
    font-size: .92rem;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .intro p:not(.section-kicker) {
    font-size: 1.03rem;
    line-height: 1.7;
  }

  input, textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    border-radius: 10px;
  }

  textarea { min-height: 145px; }

  .button-submit {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 380px) {
  .site-header { width: calc(100% - 1.4rem); }
  .hero-content { width: calc(100% - 1.4rem); }

  .brand {
    font-size: .61rem;
    letter-spacing: .11em;
  }

  .yt-link { font-size: .76rem; }

  h1 { font-size: clamp(2.35rem, 14vw, 3.4rem); }

  .eyebrow { letter-spacing: .11em; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 2rem;
  }

  h1 { font-size: clamp(2.8rem, 9vw, 4.5rem); }
  .tagline { margin-bottom: 1.2rem; }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
