/* ==========================================================================
   Monarch Development, Civil Inc. — design system
   Palette: charcoal/black/white with cobalt-blue accents.
   Type: Barlow Condensed (display) / Archivo (body) / IBM Plex Mono (utility).
   Signature: civil plan-sheet stationing (STA markers, alignment rules,
   drawing-title-block footer).
   ========================================================================== */

:root {
  --ink: #111417;
  --iron: #1c2126;
  --iron-2: #23292f;
  --seam: rgba(255, 255, 255, 0.13);
  --seam-strong: rgba(255, 255, 255, 0.22);
  --white: #ffffff;
  --gravel: #f5f6f7;
  --line-light: #dfe2e5;
  --cobalt: #0047ab;
  --cobalt-deep: #00337a;
  --cobalt-pale: #7fb0ff;
  --cobalt-bright: #a8cbff;
  --text-dark: #171a1d;
  --muted-on-light: #566068;
  --muted-on-dark: #aab1b8;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
}

img,
video {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cobalt);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.h-hero {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
}

.h-section {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.h-sub {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
}

.muted {
  color: var(--muted-on-light);
}

.on-dark .muted,
.muted-dark {
  color: var(--muted-on-dark);
}

/* Station eyebrow — the plan-sheet marker that opens every section */
.station {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-bottom: 1.5rem;
}

.on-dark .station {
  color: var(--cobalt-pale);
}

/* The photo heroes and CTA bands are dark but aren't tagged .on-dark, so they
   fall through to the light-background colour above. Gold was light enough to
   survive that; cobalt is not. */
.hero .station,
.page-hero .station,
.cta-band .station {
  color: var(--cobalt-pale);
}

.station::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: currentColor;
}

/* Credential stamp — reads like a certification block on a drawing sheet. */
.credential {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 0.6875rem 1.125rem;
}

.on-dark .credential {
  color: var(--cobalt-pale);
  border-color: var(--seam-strong);
  border-left-color: var(--cobalt-pale);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9375rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

.btn-cobalt:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--seam-strong);
}

.btn-ghost:hover {
  border-color: var(--cobalt-pale);
  color: var(--cobalt-bright);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: #b9bfc5;
}

.btn-ghost-dark:hover {
  border-color: var(--cobalt-deep);
  color: var(--cobalt-deep);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(10, 12, 14, 0.55), rgba(10, 12, 14, 0));
}

.site-header.is-solid {
  background: var(--ink);
  border-bottom-color: var(--seam);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover {
  color: var(--cobalt-bright);
}

.nav-links a[aria-current="page"] {
  color: var(--cobalt-pale);
  border-bottom-color: var(--cobalt-pale);
}

.nav-phone {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--seam-strong);
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-header.menu-open {
    background: var(--ink);
  }

  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--seam);
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .site-header.menu-open .nav-links a {
    display: block;
    width: 100%;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--seam);
  }

  .site-header.menu-open .nav-phone {
    display: block;
    position: absolute;
    top: calc(76px + 15.5rem);
    left: var(--gutter);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 60rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 15, 17, 0.92) 0%, rgba(13, 15, 17, 0.35) 45%, rgba(13, 15, 17, 0.25) 100%),
    linear-gradient(100deg, rgba(13, 15, 17, 0.72) 0%, rgba(13, 15, 17, 0) 60%);
}

.hero-inner {
  padding-top: 10rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  max-width: 14ch;
  margin: 0 0 1.5rem;
}

.hero .lede {
  max-width: 54ch;
  color: #dde1e4;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Plan strip: the five disciplines set as stations along the alignment */
.plan-strip {
  border-top: 1px solid var(--seam);
  background: rgba(13, 15, 17, 0.65);
  backdrop-filter: blur(6px);
}

.plan-strip ol {
  list-style: none;
  margin: 0;
  padding: 1.125rem var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}

.plan-strip li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
}

.plan-strip li b {
  font-weight: 600;
  color: var(--cobalt-pale);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-pad);
}

.section.on-dark {
  background: var(--ink);
  color: var(--white);
}

.section.on-gravel {
  background: var(--gravel);
}

.section.on-iron {
  background: var(--iron);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .h-section {
  margin-bottom: 1.25rem;
}

/* Two-column: copy + media */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.split.flip > :first-child {
  order: 2;
}

@media (max-width: 820px) {
  .split,
  .split.flip {
    grid-template-columns: 1fr;
  }

  .split.flip > :first-child {
    order: 0;
  }
}

.frame {
  position: relative;
}

.frame img,
.frame video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.frame figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  padding-top: 0.75rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.75rem;
}

.on-dark .frame figcaption {
  color: var(--muted-on-dark);
  border-bottom-color: var(--seam);
}

/* Tenets — quality / integrity / safety / service */
.tenets {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}

.on-dark .tenets {
  border-top-color: var(--seam);
}

.tenets li {
  padding: 1.5rem 1.5rem 0 0;
}

.tenets li + li {
  border-left: 1px solid var(--line-light);
  padding-left: 1.5rem;
}

.on-dark .tenets li + li {
  border-left-color: var(--seam);
}

.tenets .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  margin-bottom: 0.5rem;
}

.on-dark .tenets .k {
  color: var(--cobalt-pale);
}

.tenets p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .tenets {
    grid-template-columns: 1fr 1fr;
  }

  .tenets li:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .tenets {
    grid-template-columns: 1fr;
  }

  .tenets li {
    border-left: none;
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Service rows (index) and service sections (services page)
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-light);
}

.service-row:last-of-type {
  border-bottom: 1px solid var(--line-light);
}

.service-row.flip > .frame {
  order: 2;
}

@media (max-width: 820px) {
  .service-row,
  .service-row.flip {
    grid-template-columns: 1fr;
  }

  .service-row.flip > .frame {
    order: 0;
  }
}

.service-row h3 {
  margin-bottom: 1rem;
}

.service-row p {
  margin-bottom: 1.25rem;
}

.capability-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.capability-list li {
  font-size: 0.9375rem;
  padding-left: 1.125rem;
  position: relative;
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 2px;
  background: var(--cobalt);
}

@media (max-width: 480px) {
  .capability-list {
    grid-template-columns: 1fr;
  }
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--cobalt);
  padding-bottom: 0.25rem;
}

.text-link:hover {
  color: var(--ink);
}

.on-dark .text-link {
  color: var(--cobalt-pale);
}

.on-dark .text-link:hover {
  color: var(--cobalt-bright);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-top: 0.625rem;
  color: var(--muted-on-dark);
}

.section:not(.on-dark) .gallery figcaption {
  color: var(--muted-on-light);
}

@media (max-width: 820px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Service area
   -------------------------------------------------------------------------- */

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}

.office-card {
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.office-card .k {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-pale);
  display: block;
  margin-bottom: 0.375rem;
}

.office-card .city {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 1;
}

.office-card p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--seam);
}

.area-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--seam);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1;
}

.area-list .tag {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
}

.area-list .hq {
  color: var(--cobalt-pale);
}

/* --------------------------------------------------------------------------
   Photo CTA band (careers on index, etc.)
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  color: var(--white);
  isolation: isolate;
  padding-block: clamp(5rem, 11vw, 9rem);
}

.cta-band .media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.cta-band .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 15, 17, 0.88) 20%, rgba(13, 15, 17, 0.45) 70%, rgba(13, 15, 17, 0.3) 100%);
}

.cta-band h2 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.cta-band .lede {
  max-width: 50ch;
  color: #dde1e4;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
}

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

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.field .req {
  color: var(--cobalt-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #c3c9ce;
  border-radius: var(--radius);
  padding: 0.8125rem 0.9375rem;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--cobalt);
  outline-offset: 1px;
  border-color: var(--cobalt-deep);
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--muted-on-light);
  margin-top: 0.375rem;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: #b3261e;
}

.field .error-msg {
  display: none;
  font-size: 0.8125rem;
  color: #b3261e;
  margin-top: 0.375rem;
}

/* Spam trap: hidden from people, irresistible to bots. Kept out of the layout
   and out of the a11y tree rather than display:none, which some bots skip. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Whole-form failure (network, or the API refused the submission). */
.form-error[hidden] {
  display: none;
}

.form-error {
  margin: 0;
  padding: 0.875rem 1rem;
  border: 1px solid #b3261e;
  border-left: 4px solid #b3261e;
  border-radius: var(--radius);
  background: #fdf3f2;
  color: #8c1d16;
  font-size: 0.875rem;
}

.field.error .error-msg {
  display: block;
}

fieldset.field {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset.field legend {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding: 0;
}

.radio-row {
  display: flex;
  gap: 1.75rem;
  padding-top: 0.4375rem;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.radio-row input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--cobalt-deep);
}

input[type="file"] {
  padding: 0.6875rem 0.9375rem;
}

input[type="file"]::file-selector-button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  margin-right: 0.875rem;
  cursor: pointer;
}

.form-confirm {
  display: none;
  border: 1px solid var(--cobalt);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  background: #fbf6ea;
  padding: 2rem;
}

.form-confirm.is-visible {
  display: block;
}

.form-confirm h3 {
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Station indicator (fixed, updates on scroll) — part of the signature
   -------------------------------------------------------------------------- */

.station-indicator {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-pale);
  background: rgba(17, 20, 23, 0.85);
  border: 1px solid var(--seam);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.station-indicator.is-visible {
  opacity: 1;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .station-indicator {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal (disabled under reduced motion)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  padding-top: clamp(9rem, 16vw, 12rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.page-hero .media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 17, 0.92), rgba(13, 15, 17, 0.55));
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.page-hero .lede {
  max-width: 56ch;
  color: #dde1e4;
}

/* --------------------------------------------------------------------------
   Careers specifics
   -------------------------------------------------------------------------- */

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.role-card {
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
}

.role-card .k {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  display: block;
  margin-bottom: 0.625rem;
}

.role-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1;
}

.crew-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  max-height: 560px;
}

/* --------------------------------------------------------------------------
   Contact specifics
   -------------------------------------------------------------------------- */

.phone-block {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--white);
  display: inline-block;
  border-bottom: 4px solid var(--cobalt-pale);
  padding-bottom: 0.375rem;
}

.phone-block:hover {
  color: var(--cobalt-bright);
}

/* --------------------------------------------------------------------------
   Footer — drawing title block
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--seam);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .nav-logo img {
  height: 52px;
}

.footer-tagline {
  margin-top: 1.25rem;
  color: var(--muted-on-dark);
  max-width: 40ch;
  font-size: 0.9375rem;
}

.title-block {
  border: 1px solid var(--seam-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-family: var(--font-mono);
}

.title-block > div {
  padding: 0.875rem 1rem;
  border-left: 1px solid var(--seam-strong);
  min-width: 0;
}

.title-block > div:first-child {
  border-left: none;
}

.title-block .k {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 0.375rem;
}

.title-block .v {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.title-block .v + .v {
  margin-top: 0.5rem;
}

.title-block .v a {
  color: var(--cobalt-pale);
  text-decoration: none;
}

.title-block .v a:hover {
  color: var(--cobalt-bright);
}

@media (max-width: 640px) {
  .title-block {
    grid-template-columns: 1fr 1fr;
  }

  .title-block > div:nth-child(3) {
    border-left: none;
  }

  .title-block > div:nth-child(n + 3) {
    border-top: 1px solid var(--seam-strong);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--seam);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.footer-bottom ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--cobalt-pale);
}

/* Cobalt is dark where the gold was light: on the charcoal sections the focus
   ring needs the pale tint to stay visible. */
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--cobalt-pale);
}
