:root {
  --bg: #090909;
  --fg: #f4f2eb;
  --muted: rgba(244, 242, 235, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --case-color: #486780;
  --image-focal-x: 67%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.3 "Inter", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.project-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  background: linear-gradient(180deg, rgba(34, 22, 11, 0.52), rgba(34, 22, 11, 0.04));
}

.project-header a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 600 0.76rem/1 "Inconsolata", monospace;
}

.project-header .back-link {
  opacity: 0.85;
}

.project-header .back-link:hover {
  opacity: 1;
}

.header-links {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.menu-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.44);
  border-color: rgba(255, 255, 255, 0.78);
}

.hamburger-icon {
  display: inline-flex;
  width: 16px;
  height: 14px;
  position: relative;
}

.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 6px;
}

.hamburger-icon span:nth-child(3) {
  top: 12px;
}

.menu-toggle-btn.is-open .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle-btn.is-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.is-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 84vw);
  z-index: 180;
  background: rgba(9, 9, 9, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5.8rem 1.1rem 1.2rem;
  transform: translateX(100%);
  transition: transform 210ms ease;
}

.site-menu-panel.is-open {
  transform: translateX(0);
}

.site-menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.site-menu-links a {
  display: block;
  text-decoration: none;
  padding: 0.78rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 0.76rem/1 "Inconsolata", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6f4ee;
}

.site-menu-links a:hover {
  color: #ffffff;
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  border: 0;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.snap-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: clamp(4.5rem, 10vh, 8rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vh, 4rem);
  scroll-snap-align: start;
  border-top: 1px solid var(--line);
}

.snap-panel:first-of-type {
  border-top: 0;
}

.media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-focal-x) center;
  display: block;
  filter: brightness(0.8) contrast(1.04) saturate(0.9);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 188, 112, 0.12) 0%,
    rgba(114, 73, 35, 0.28) 44%,
    rgba(20, 13, 9, 0.62) 100%
  );
}

.panel-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 600 0.75rem/1 "Inconsolata", monospace;
}

h1,
h2 {
  margin: 0.7rem 0 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 6.4rem);
  max-width: 10ch;
}

h1 span {
  display: block;
  margin-top: 0.22em;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: rgba(255, 255, 255, 0.92);
}

h2 {
  font-size: clamp(1.9rem, 6vw, 4.6rem);
  max-width: 13ch;
}

.lead {
  margin: 0.9rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.mini-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mini-list li {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0.44rem 0.64rem;
  font: 600 0.66rem/1 "Inconsolata", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-top: 1.2rem;
  font: 600 0.74rem/1 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.cta-link:hover {
  opacity: 1;
}

.cta-link-prominent {
  margin-top: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding: 0.72rem 0.92rem;
}

.cta-link-prominent:hover {
  background: rgba(0, 0, 0, 0.34);
}

.project-footer {
  background: #efece4;
  color: #131313;
  padding: 1rem 4vw;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  font: 600 0.7rem/1 "Inconsolata", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-page-root,
body.case-page {
  scroll-snap-type: none;
}

body.case-page {
  background: #090909;
  --case-color: #486780;
}

body.contact-standalone {
  margin: 0;
  min-height: 100vh;
  background: #090909;
  color: #f4f2eb;
  font: 400 16px/1.3 "Inter", "Segoe UI", sans-serif;
}

.project-header-static {
  position: static;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.92);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.intake-shell {
  min-height: calc(100vh - 6.2rem);
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.intake-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #f2efe8;
  color: #1a1a1a;
  border: 1px solid rgba(17, 17, 17, 0.2);
  padding: clamp(1rem, 2.2vw, 1.8rem);
}

.intake-title {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.05em;
  color: #111111;
}

body.case-aircrewsurvey {
  --case-color: #486780;
}

body.case-airlinepilot {
  --case-color: #4f6f60;
}

body.case-pilotjobexpo {
  --case-color: #675748;
}

body.case-briefings {
  --case-color: #4a5472;
}

body.case-contact {
  --case-color: #4f5962;
}

body.case-airlinepilotapps {
  --case-color: #4d6b74;
}

body.case-jobs {
  --case-color: #635949;
}

body.case-dreamlaunch {
  --case-color: #63506b;
}

.case-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 0;
}

.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-focal-x) center;
  display: block;
  filter: brightness(0.84) contrast(1.04) saturate(0.9);
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 188, 112, 0.12), rgba(28, 18, 11, 0.5));
}

.case-flow {
  position: relative;
  z-index: 2;
  margin-top: -22vh;
}

.case-block {
  position: relative;
  min-height: 82vh;
  padding: clamp(3.8rem, 8.5vh, 7rem) clamp(1rem, 4vw, 3rem);
}

.case-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.case-block-color {
  background: var(--case-color);
}

.lead-on-color {
  color: rgba(255, 255, 255, 0.88);
}

.mini-list-on-color li {
  border-color: rgba(255, 255, 255, 0.58);
}

.case-block-light {
  background: #f2efe8;
  color: #1a1a1a;
  min-height: 92vh;
}

.case-wrap-light h2 {
  color: #111111;
  max-width: 12ch;
}

.eyebrow-dark {
  color: rgba(16, 16, 16, 0.72);
}

.lead-dark {
  color: rgba(16, 16, 16, 0.76);
}

.case-columns {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.case-label {
  margin: 0;
  font: 600 0.7rem/1 "Inconsolata", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(16, 16, 16, 0.62);
}

.case-value {
  margin: 0.7rem 0 0;
  font: 500 clamp(1rem, 1.9vw, 1.2rem)/1.22 "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
}

.intake-form {
  margin-top: 2rem;
  padding: 1.1rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.intake-form label {
  display: grid;
  gap: 0.32rem;
}

.intake-form label span {
  font: 600 0.66rem/1 "Inconsolata", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(16, 16, 16, 0.7);
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 16, 16, 0.24);
  border-radius: 0;
  padding: 0.65rem 0.72rem;
  font: 500 0.96rem/1.3 "Inter", "Segoe UI", sans-serif;
  color: #111111;
  background: rgba(255, 255, 255, 0.88);
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: 1px solid rgba(16, 16, 16, 0.42);
  outline-offset: 1px;
}

.form-full {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-button {
  border: 1px solid rgba(16, 16, 16, 0.24);
  background: #111111;
  color: #f7f5ef;
  padding: 0.72rem 0.86rem;
  cursor: pointer;
}

.cta-button[disabled] {
  opacity: 0.5;
  cursor: wait;
}

.form-note {
  margin: 0;
  font: 600 0.62rem/1.35 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(16, 16, 16, 0.65);
}

.form-status {
  margin: 0.75rem 0 0;
  min-height: 1rem;
  font: 600 0.68rem/1 "Inconsolata", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 16, 16, 0.74);
}

.form-status.is-error {
  color: #8b1f1f;
}

.form-status.is-ok {
  color: #0b5e30;
}

#contact-intake,
#contactForm {
  scroll-margin-top: 5.5rem;
}

.case-block-image {
  min-height: 92vh;
  display: flex;
  align-items: end;
  color: #f7f5ef;
}

.case-block-image .media {
  inset: 0;
}

.case-block-image .media::after {
  background: linear-gradient(180deg, rgba(255, 188, 112, 0.1), rgba(24, 15, 9, 0.52));
}

.case-block-image .case-wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  html,
  body {
    scroll-snap-type: none;
  }

  .project-header {
    padding: 0.9rem 1rem;
  }

  .snap-panel {
    min-height: 84vh;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .case-flow {
    margin-top: -14vh;
  }

  .case-block {
    min-height: auto;
    padding: 3.2rem 1rem;
  }

  .case-columns {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .media img {
    filter: brightness(0.9) contrast(1.02) saturate(0.98);
  }

  .media::after {
    background: linear-gradient(
      180deg,
      rgba(255, 188, 112, 0.1) 0%,
      rgba(102, 66, 32, 0.2) 44%,
      rgba(17, 11, 8, 0.48) 100%
    );
  }

  .case-hero img {
    filter: brightness(0.9) contrast(1.02) saturate(0.96);
  }

  .case-hero::after {
    background: linear-gradient(180deg, rgba(255, 188, 112, 0.1), rgba(22, 14, 9, 0.42));
  }

  .case-block-image .media::after {
    background: linear-gradient(180deg, rgba(255, 188, 112, 0.08), rgba(20, 13, 8, 0.46));
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
}
