/* ==========================================================================
   Minasian Law Firm, APC — warm editorial, navy anchors, gold restraint
   ========================================================================== */

:root {
  --ivory: #f7f5f0;
  --ivory-deep: #efece4;
  --navy: #0e1b2c;
  --navy-band: #14243a;
  --navy-soft: #223752;
  --gold: #c9a24a;
  --gold-deep: #b08d3a;
  --text: #23262b;
  --text-soft: #5b6068;
  --ivory-text: #f3efe6;
  --ivory-text-soft: #b9bfc9;
  --hairline: rgba(14, 27, 44, 0.14);
  --hairline-light: rgba(243, 239, 230, 0.18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --space-band: clamp(4rem, 9vw, 7rem);
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

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

ul { padding-left: 1.2em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Eyebrow ---------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}

.band--navy .eyebrow,
.hero--navy .eyebrow,
.cta-band .eyebrow { color: var(--ivory-text-soft); }

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-deep); color: var(--navy); }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.btn--outline-light { border-color: var(--hairline-light); color: var(--ivory-text); background: transparent; }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 27, 44, 0.35); }

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ivory-text);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { color: var(--gold); }
.wordmark:hover { color: var(--ivory-text); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-text-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ivory-text); }
.nav a.is-active { color: var(--ivory-text); border-bottom-color: var(--gold); }

.nav__phone {
  font-family: var(--sans);
  font-size: 0.8rem !important;
  font-weight: 500;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  color: var(--gold) !important;
  border-bottom: none !important;
  white-space: nowrap;
}

.nav__phone:hover { color: var(--gold-deep) !important; }

/* Practice Areas dropdown */

.nav__group { position: relative; }

.nav__parent {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-text-soft);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.nav__parent:hover { color: var(--ivory-text); }
.nav__parent.is-active { color: var(--ivory-text); border-bottom-color: var(--gold); }

.nav__caret { font-size: 0.7em; margin-left: 0.25rem; }

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.2rem;
  min-width: 13.5rem;
  padding: 0.5rem 0;
  background: var(--navy-band);
  border-top: 2px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.nav__group::after {
  /* invisible hover bridge between the tab and the dropdown */
  content: "";
  position: absolute;
  top: 100%;
  left: -1.2rem;
  right: -1.2rem;
  height: 1.4rem;
}

.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown,
.nav__group.is-open .nav__dropdown { display: block; }

.nav__dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  border-bottom: none;
  white-space: nowrap;
}

.nav__dropdown a:hover { color: var(--gold); }
.nav__dropdown a.is-active { color: var(--ivory-text); }

/* Mega dropdown: one column per practice area */

.nav__dropdown--mega {
  right: 0;
  left: auto;
  width: max-content;
  max-width: min(92vw, 56rem);
  grid-template-columns: repeat(3, minmax(12rem, 1fr));
  gap: 0 2.2rem;
  padding: 1.5rem 1.8rem 1.8rem;
}

.nav__group:hover .nav__dropdown--mega,
.nav__group:focus-within .nav__dropdown--mega,
.nav__group.is-open .nav__dropdown--mega { display: grid; }

.nav__col { min-width: 0; }

.nav__dropdown--mega a {
  padding: 0.35rem 0;
  white-space: normal;
}

.nav__dropdown--mega a:not(.nav__col-title) {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  font-weight: 400;
}

.nav__col-title {
  display: block;
  color: var(--ivory-text) !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--hairline-light) !important;
  padding-bottom: 0.55rem !important;
  margin-bottom: 0.45rem;
}

.nav__col-title:hover { color: var(--gold) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-light);
  color: var(--ivory-text);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

/* Heroes ----------------------------------------------------------------- */

.hero--navy {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-band) 70%, var(--navy-soft) 100%);
  color: var(--ivory-text);
  overflow: hidden;
}

.hero--navy .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(4.5rem, 10vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}

.hero--navy h1 { color: var(--ivory-text); }
.hero--navy h1 em { font-style: normal; color: var(--gold); }

.hero__firm { font-size: clamp(2.1rem, 4.6vw, 3.4rem) !important; }

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.3;
  color: var(--ivory-text);
  margin: 0 0 1.1rem;
}

.hero__tagline em { font-style: normal; color: var(--gold); }

.hero__phone {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
  margin: 0 0 1.4rem;
}

.hero__phone:hover { color: var(--gold-deep); }

.hero__lede {
  font-size: 1.2rem;
  color: var(--ivory-text-soft);
  max-width: 34em;
  margin-bottom: 1.8rem;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }

.hero__always {
  font-size: 0.95rem;
  color: var(--ivory-text-soft);
}

.hero__always a {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.hero__always a:hover { color: var(--gold-deep); }

.hero__logo {
  width: min(100%, 22rem);
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.hero--ivory {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hero--ivory .hero__lede { color: var(--text-soft); margin-bottom: 0; }

/* Watermark -------------------------------------------------------------- */

.watermark {
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26rem;
  line-height: 1;
  color: rgba(243, 239, 230, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Photo hero -------------------------------------------------------------- */
/* The case photo lives behind the page title under a deep navy tint, so it
   reads as texture in the brand navy rather than a pasted-in image. */

.hero--photo {
  position: relative;
  background-color: var(--navy);
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--gold);
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 44, 0.85);
}

.hero--photo .container {
  position: relative;
  z-index: 1;
}

.hero--photo h1 { color: var(--ivory-text); }
.hero--photo .hero__lede { color: var(--ivory-text-soft); }
.hero--photo .eyebrow { color: var(--ivory-text-soft); }
.hero--photo .breadcrumb a { color: var(--ivory-text-soft); }
.hero--photo .breadcrumb a:hover { color: var(--gold); }

/* Bands ------------------------------------------------------------------ */

.band--navy {
  position: relative;
  background: var(--navy-band);
  color: var(--ivory-text);
  padding: var(--space-band) 0;
  overflow: hidden;
}

.band--navy h2 { color: var(--ivory-text); }
.band--navy .container { position: relative; z-index: 1; }

.section {
  padding: var(--space-band) 0;
}

.section--tight { padding: clamp(1.75rem, 4vw, 2.75rem) 0; }

.section__intro {
  max-width: 38em;
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* Practice entry list (numbered editorial) ------------------------------- */

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

.entry-list__item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid var(--hairline);
}

.entry-list__item:last-child { border-bottom: 1px solid var(--hairline); }

.entry-list__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
}

.entry-list__body h3 { margin-bottom: 0.3em; }
.entry-list__body h3 a { text-decoration: none; }
.entry-list__body h3 a:hover { color: var(--gold-deep); }
.entry-list__body p { margin: 0; color: var(--text-soft); max-width: 44em; }

.entry-list__arrow {
  font-size: 1.4rem;
  color: var(--gold-deep);
  text-decoration: none;
  align-self: center;
}

/* Results ---------------------------------------------------------------- */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 3rem;
}

.result__figure {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.result__type {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-text);
  margin-bottom: 0.4rem;
}

.result__summary { font-size: 0.95rem; color: var(--ivory-text-soft); margin: 0; }

.stat-source {
  margin: 2.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(185, 191, 201, 0.65);
}

/* Results page rows (on ivory) */

.result-row {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  align-items: baseline;
  padding: 2.2rem 0;
  border-top: 1px solid var(--hairline);
}

.result-row:last-of-type { border-bottom: 1px solid var(--hairline); }

.result-row .result__figure { color: var(--navy); }
.result-row .result__type { color: var(--gold-deep); }
.result-row .result__summary { color: var(--text-soft); font-size: 1.02rem; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 44em;
}

/* Why us ----------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
  margin-top: 3rem;
}

.why-grid h3 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.4em;
}

.why-grid h3::before {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  transform: translateY(-0.35em);
}

.why-grid p { color: var(--text-soft); margin: 0; }

/* Index list (practice sub-topics) --------------------------------------- */

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

.index-list__item { border-top: 1px solid var(--hairline); }
.index-list__item:last-child { border-bottom: 1px solid var(--hairline); }

.index-list__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0.25rem;
  text-decoration: none;
  transition: padding-left 0.18s ease;
}

.index-list__link:hover { padding-left: 0.9rem; }

.index-list__link h3 { margin-bottom: 0.25em; }
.index-list__link:hover h3 { color: var(--gold-deep); }
.index-list__link p { margin: 0; color: var(--text-soft); font-size: 0.98rem; max-width: 50em; }

.index-list__arrow { font-size: 1.3rem; color: var(--gold-deep); }

/* How we work strip ------------------------------------------------------ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}

.steps-grid h3 { font-size: 1.2rem; }
.steps-grid h3 span { color: var(--gold-deep); margin-right: 0.5rem; }
.steps-grid p { color: var(--text-soft); font-size: 0.98rem; margin: 0; }

.band--navy .steps-grid h3 { color: var(--ivory-text); }
.band--navy .steps-grid h3 span { color: var(--gold); }
.band--navy .steps-grid p { color: var(--ivory-text-soft); }

/* Article (sub-pages) ---------------------------------------------------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(15rem, 3fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: var(--space-band);
}

.article-body > p:first-of-type {
  font-size: 1.18rem;
  color: var(--text-soft);
}

.breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }

.sidebar-card {
  position: sticky;
  top: 6rem;
  background: var(--ivory-deep);
  border-top: 2px solid var(--gold);
  padding: 1.8rem 1.6rem;
}

.sidebar-card h3 { font-size: 1.25rem; margin-bottom: 0.6em; }

.sidebar-card__phone {
  display: block;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.sidebar-card__phone:hover { color: var(--gold-deep); }

.sidebar-card p { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 1.1rem; }

.sidebar-card .btn { display: block; text-align: center; }

/* CTA band --------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--ivory-text);
  padding: var(--space-band) 0;
  overflow: hidden;
  text-align: center;
}

.cta-band h2 { color: var(--ivory-text); }

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72rem, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-band .container { position: relative; z-index: 1; max-width: 46rem; }

.cta-band p { color: var(--ivory-text-soft); font-size: 1.1rem; }

.cta-band .hero__ctas { justify-content: center; margin-top: 1.8rem; margin-bottom: 0; }

/* About ------------------------------------------------------------------ */

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

.portrait {
  width: 100%;
  border-top: 2px solid var(--gold);
  margin-bottom: 1.6rem;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--ivory-deep);
  border: 1px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 1rem;
  margin-bottom: 1.6rem;
}

.credentials {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--gold);
}

.credentials li {
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.credentials li strong { display: block; color: var(--navy); }
.credentials li span { color: var(--text-soft); }

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

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

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

.contact-list li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.contact-list li:first-child { border-top: 1px solid var(--hairline); }

.contact-list .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.contact-list a,
.contact-list .value {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.contact-list a:hover { color: var(--gold-deep); }

.contact-list .sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.contact-form {
  max-width: 36rem;
  display: grid;
  gap: 1.2rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 0.8rem 0.9rem;
}

.contact-form select { border-radius: 0; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form textarea { min-height: 8rem; resize: vertical; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--ivory-text-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline-light);
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-text);
  margin-bottom: 0.9em;
}

.site-footer a { color: var(--ivory-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer p { margin: 0 0 0.4em; }

.footer-logo { width: 9rem; margin-bottom: 1rem; }

.footer-legal {
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: rgba(185, 191, 201, 0.7);
  max-width: 60em;
}

/* Motion ------------------------------------------------------------------ */
/* All animation is gated behind js-anim (set by main.js) and the user's
   reduced-motion preference, so content is never hidden without JS. */

@media (prefers-reduced-motion: no-preference) {
  html.js-anim .anim {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--anim-delay, 0s);
  }

  html.js-anim .anim.is-visible {
    opacity: 1;
    transform: none;
  }

  @keyframes heroRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }

  html.js-anim .hero--navy .eyebrow { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both; }
  html.js-anim .hero--navy h1 { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.18s both; }
  html.js-anim .hero--navy .hero__tagline { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both; }
  html.js-anim .hero--navy .hero__phone { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both; }
  html.js-anim .hero--navy .hero__lede { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both; }
  html.js-anim .hero--navy .hero__ctas { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s both; }
  html.js-anim .hero--navy .hero__always { animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.68s both; }
  html.js-anim .hero--navy .hero__logo { animation: heroRise 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both; }
}

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

@media (max-width: 900px) {
  .hero--navy .container { grid-template-columns: 1fr; }
  .hero__logo { width: min(60%, 16rem); margin: 0; }
  .article-grid, .about-grid, .contact-split { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watermark { font-size: 18rem; right: -3rem; bottom: -5rem; }
}

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-band);
    padding: 0.75rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
    border-top: 1px solid var(--hairline-light);
  }

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

  .nav a { padding: 0.7rem 0; width: 100%; }

  .nav__group { width: 100%; }
  .nav__group::after { display: none; }
  .nav__parent { width: 100%; text-align: left; padding: 0.7rem 0; }

  .nav__dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    border-top: none;
    padding: 0 0 0.4rem 1rem;
  }

  /* on touch, the tap toggle (is-open) drives visibility, not hover/focus */
  .nav__group:hover .nav__dropdown,
  .nav__group:focus-within .nav__dropdown { display: none; }
  .nav__group.is-open .nav__dropdown { display: block; }

  .nav__dropdown--mega,
  .nav__group.is-open .nav__dropdown--mega {
    position: static;
    width: auto;
    max-width: none;
    padding: 0 0 0.5rem 1rem;
  }

  .nav__group.is-open .nav__dropdown--mega { display: block; }
  .nav__group:hover .nav__dropdown--mega,
  .nav__group:focus-within .nav__dropdown--mega { display: none; }
  .nav__group.is-open .nav__dropdown--mega { display: block; }

  .nav__col { margin-bottom: 0.6rem; }

  .nav.nav--open {
    max-height: calc(100vh - 4.25rem);
    overflow-y: auto;
  }

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

  .entry-list__item { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .entry-list__arrow { display: none; }

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

  .result-row { grid-template-columns: 1fr; gap: 0.3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
