/* ============================================================
   ILWU Local 400 — Demo site
   Palette drawn from the fleet: harbor navy, hull red, brass.
   ============================================================ */

:root {
  --ink: #0a1b2a;        /* deep harbor navy — hero, footer */
  --navy: #143a5a;       /* union navy */
  --navy-2: #1d4e76;
  --sea: #33688f;
  --fog: #eef2f5;        /* light section ground */
  --white: #ffffff;
  --hull: #c4262e;       /* hull red accent */
  --hull-dark: #9e1f26;
  --brass: #c9973f;      /* rope/brass secondary accent */
  --line: #d5dee5;
  --text: #16283a;
  --text-2: #435668;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(10, 27, 42, 0.12);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-2); }

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

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(3rem, 7.5vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 600; color: var(--navy); }
h3 { font-size: 1.45rem; font-weight: 600; color: var(--navy); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--hull);
  margin: 0 0 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--text-2); }

/* ---------- signal-flag rule (signature) ---------- */

.flag-rule {
  height: 6px;
  width: 132px;
  margin: 1.1rem 0 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--hull) 0 11px,
    var(--white) 11px 16px,
    var(--navy) 16px 27px,
    var(--brass) 27px 33px
  );
  border-radius: 3px;
}

.flag-rule--center { margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-primary { background: var(--hull); color: var(--white); }
.btn-primary:hover { background: var(--hull-dark); transform: translateY(-2px); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--hull);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img { height: 48px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-name small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #9fb4c6;
  margin-top: 0.2rem;
}

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

.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #cfdce6;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.nav-links a.is-active {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--hull);
}

/* Jobs dropdown */

.nav-item-dropdown { position: relative; }

.nav-item-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.45em;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--hull);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0;
}

.nav-dropdown a.is-current {
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--hull);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

/* ---------- hero (homepage) ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

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

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 27, 42, 0.88) 8%, rgba(10, 27, 42, 0.55) 46%, rgba(10, 27, 42, 0.15) 78%),
    linear-gradient(to top, rgba(10, 27, 42, 0.85), transparent 35%);
}

.hero-inner { padding: 7rem 0 6rem; max-width: 780px; }

.hero .eyebrow { color: var(--brass); }

.hero h1 { color: var(--white); text-wrap: balance; }

.hero p.lead {
  color: #dbe6ee;
  max-width: 34em;
  margin: 1.4rem 0 2.2rem;
}

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

.hero-phone {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbe6ee;
  text-decoration: none;
}

.hero-phone strong { color: var(--white); }

/* ---------- sections ---------- */

.section { padding: 5.5rem 0; }
.section--fog { background: var(--fog); }
.section--ink { background: var(--ink); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- who we are ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photos .photo-main { grid-column: 1 / -1; aspect-ratio: 16 / 8.5; }
.about-photos .photo-sub { aspect-ratio: 4 / 2.6; }

.about-copy h2 { margin-bottom: 1rem; }
.about-copy p { color: var(--text-2); }

.affiliations { margin-top: 2rem; }

.affiliations p {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 0.9rem;
}

.affiliation-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.affiliation-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.affiliation-logos a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--sea);
}

.affiliation-logos img {
  height: 78px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ---------- news ---------- */

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

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(10, 27, 42, 0.18);
}

.news-card img { aspect-ratio: 16 / 10; height: auto; object-fit: cover; width: 100%; }

.news-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

.news-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--white);
  background: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.85rem;
}

.news-tag--red { background: var(--hull); }
.news-tag--brass { background: var(--brass); }

.news-card h3 { margin-bottom: 0.6rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }

.news-card p { margin: 0 0 1.2rem; color: var(--text-2); font-size: 0.98rem; flex: 1; }

.news-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--hull);
  text-decoration: none;
}

.news-link:hover { color: var(--hull-dark); text-decoration: underline; }

/* ---------- employers ---------- */

.employers .section-head { margin-bottom: 2.5rem; }

.employer-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.employer-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.employer-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.employer-tile:hover img { transform: scale(1.04); }

.employer-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 27, 42, 0.85) 8%, rgba(10, 27, 42, 0.1) 45%, transparent 65%);
  pointer-events: none;
}

.employer-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white);
  border-left: 4px solid var(--hull);
  margin: 0 0 0.6rem 0.9rem;
  padding: 0.1rem 0 0.1rem 0.8rem;
}

.employer-tile figcaption small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #cfdce6;
}


/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
  padding: 6rem 0;
}

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

.cta-banner .cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 58, 90, 0.93) 20%, rgba(20, 58, 90, 0.65));
}

.cta-banner h2 { color: var(--white); max-width: 15em; }

.cta-banner p { color: #dbe6ee; max-width: 36em; margin: 1.2rem 0 2rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c9d6;
  padding: 4rem 0 0;
  border-top: 3px solid var(--hull);
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a { color: #b9c9d6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.footer-brand img { height: 104px; width: auto; }

.footer-brand .brand-name { font-size: 1.3rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7f93a5;
}

/* ============================================================
   Jobs page
   ============================================================ */

.page-hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  padding: 7rem 0 5rem;
  overflow: hidden;
}

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

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

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 27, 42, 0.9) 10%, rgba(10, 27, 42, 0.55) 55%, rgba(10, 27, 42, 0.25));
}

.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

.page-hero .lead { color: #dbe6ee; max-width: 38em; margin-top: 1.2rem; }

/* dispatch strip */

.dispatch-strip { background: var(--navy); color: var(--white); padding: 1.1rem 0; }

.dispatch-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.dispatch-item {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: #cfdce6;
}

.dispatch-item a { color: var(--white); text-decoration: none; font-size: 1.15rem; }
.dispatch-item a:hover { color: var(--brass); }

/* requirements note */

.req-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-left: 5px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.6rem;
  max-width: 820px;
  margin: 0 auto 3rem;
  color: var(--text-2);
}

.req-note strong { color: var(--text); }

/* position accordion cards */

.positions { display: grid; gap: 1.1rem; max-width: 900px; margin-inline: auto; }

.position-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(10, 27, 42, 0.06);
  overflow: hidden;
}

.position-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  transition: background-color 0.2s;
}

.position-toggle:hover { background: var(--fog); }

.position-index {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--hull);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.position-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-2);
  margin-left: auto;
  flex-shrink: 0;
}

.position-caret {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--sea);
  border-bottom: 2.5px solid var(--sea);
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-left: 0.4rem;
}

.position-card.is-open .position-caret { transform: rotate(-135deg); }

.position-body { display: none; padding: 0 1.5rem 1.6rem; }

.position-card.is-open .position-body { display: block; }

.req-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 2rem;
}

.req-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.45;
}

.req-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 0.62em;
  height: 0.34em;
  border-left: 2.5px solid var(--hull);
  border-bottom: 2.5px solid var(--hull);
  transform: rotate(-45deg);
}

.req-flag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.45rem;
  vertical-align: 0.1em;
}

.req-flag--optional { background: var(--fog); color: var(--text-2); border: 1px solid var(--line); }
.req-flag--asset { background: #f7edd8; color: #8a6420; border: 1px solid #e5d3a8; }
.req-flag--conditional { background: #e7eef4; color: var(--navy-2); border: 1px solid #c6d6e2; }

.position-note {
  margin-top: 1.2rem;
  background: var(--fog);
  border-left: 4px solid var(--navy-2);
  border-radius: 4px;
  padding: 0.8rem 1.1rem;
  font-size: 0.94rem;
  color: var(--text-2);
}

.position-note strong { color: var(--navy); }

/* jobs cta */

.jobs-cta { text-align: center; }

.jobs-cta .lead { max-width: 40em; margin: 1rem auto 2.2rem; }

.jobs-cta-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
  margin-bottom: 2.2rem;
}

.cta-line { text-align: center; }

.cta-line span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 0.2rem;
}

.cta-line a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.cta-line a:hover { color: var(--brass); }

/* ---------- about page ---------- */

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

.officer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--hull);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(10, 27, 42, 0.06);
  padding: 1.4rem 1.5rem;
}

.officer-card h3 { margin-bottom: 0.2rem; }

.officer-role {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin: 0 0 0.7rem;
}

.officer-card a {
  font-size: 0.95rem;
  color: var(--navy-2);
  text-decoration: none;
}

.officer-card a:hover { text-decoration: underline; }

.exec-block { margin-top: 3rem; }

.exec-heading {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}

.exec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2.5rem;
}

.exec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.exec-list li span { color: var(--text-2); font-weight: 400; }

.prose { max-width: 74ch; }

.prose p { color: var(--text-2); margin: 0 0 1.3rem; }

.prose h3 {
  margin: 2.6rem 0 1rem;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.prose .era {
  display: inline-block;
  background: var(--hull);
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  margin-right: 0.7rem;
  vertical-align: 0.15em;
  letter-spacing: 0.08em;
}

.reading { margin-top: 3.5rem; max-width: 74ch; }

.reading h3 { margin-bottom: 1rem; }

.reading-list { list-style: none; margin: 0; padding: 0; }

.reading-list li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  border-left: 3px solid var(--brass);
  margin-bottom: 0.5rem;
  color: var(--text-2);
  font-size: 0.98rem;
}

.reading-list a {
  color: var(--navy-2);
  text-decoration: none;
}

.reading-list a:hover em { text-decoration: underline; color: var(--hull); }

.reading-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-2);
  font-style: italic;
}

/* ---------- registration page ---------- */

.step-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 1.1rem;
  counter-reset: none;
}

.step-card {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(10, 27, 42, 0.06);
  padding: 1.5rem 1.7rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 4px;
  border-bottom: 3px solid var(--hull);
}

.step-card h3 { margin-bottom: 0.4rem; }

.step-card p { margin: 0; color: var(--text-2); }

.step-card a { color: var(--hull); font-weight: 600; }

@media (max-width: 900px) {
  .officer-grid { grid-template-columns: 1fr 1fr; }
  .exec-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .officer-grid { grid-template-columns: 1fr; }
  .step-card { flex-direction: column; gap: 0.8rem; }
}

/* ---------- hero intro choreography ---------- */
/* Idle by default; the .do-intro class (added by JS when motion is allowed)
   arms the whole sequence, so no-JS and reduced-motion get the static hero. */

.hero h1 span { display: inline-block; }

.hero.do-intro .hero-pop {
  opacity: 0;
  animation: hero-pop-in 0.75s cubic-bezier(0.16, 0.9, 0.3, 1.25) forwards;
}

@keyframes hero-pop-in {
  from {
    opacity: 0;
    transform: perspective(700px) translateY(34px) translateZ(-150px) rotateX(30deg);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: perspective(700px) translateY(0) translateZ(0) rotateX(0);
    filter: blur(0);
  }
}

.hero.do-intro .hero-pop-eyebrow { animation-delay: 1.15s; }
.hero.do-intro .hero-word-1 { animation-delay: 1.65s; }
.hero.do-intro .hero-word-2 { animation-delay: 1.87s; }
.hero.do-intro .hero-word-3 { animation-delay: 2.09s; }
.hero.do-intro .hero-word-4 { animation-delay: 2.31s; }
.hero.do-intro .hero-pop-lead { animation-delay: 2.85s; }
.hero.do-intro .hero-pop-actions { animation-delay: 3.15s; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .news-card { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .employer-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .req-list { grid-template-columns: 1fr; }
  .position-meta { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--hull);
    padding: 0.5rem 4% 1rem;
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a { padding: 0.85rem 0.85rem; }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-left: 3px solid var(--hull);
    border-radius: 0;
    box-shadow: none;
    margin-left: 0.85rem;
    padding: 0;
  }

  .nav-item-dropdown > a::after { display: none; }

  .hero { min-height: 72vh; }
  .hero-inner { padding: 5rem 0 4rem; }
  .section { padding: 3.8rem 0; }
  .brand-name { font-size: 1.2rem; }
  .brand img { height: 40px; }
}

@media (max-width: 560px) {
  .employer-photo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-name small { display: none; }
}
