:root {
  --ink: #0f2b4d;
  --muted: #526273;
  --forest: #0f2b4d;
  --forest-2: #173d63;
  --sage: #e3eaf0;
  --ivory: #f8f4f1;
  --paper: #fffdfb;
  --gold: #cf9240;
  --clay: #a86f2a;
  --line: rgba(15, 43, 77, 0.14);
  --shadow: 0 24px 70px rgba(10, 31, 54, 0.16);
  --radius: 8px;
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 2.6vw, 48px);
  color: var(--paper);
  background: rgba(8, 31, 56, 0.48);
  border-bottom: 0;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(248, 244, 241, 0.96);
  box-shadow: 0 14px 40px rgba(15, 43, 77, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: clamp(218px, 17vw, 270px);
  height: 76px;
  text-decoration: none;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 180ms ease;
}

.site-header .brand-logo {
  position: absolute;
  inset: 0;
}

.logo-on-light {
  opacity: 0;
}

.logo-on-dark {
  transform: scaleX(1.12);
  transform-origin: left center;
}

.site-header.scrolled .logo-on-dark,
.site-header.nav-active .logo-on-dark {
  opacity: 0;
}

.site-header.scrolled .logo-on-light,
.site-header.nav-active .logo-on-light {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.25vw, 18px);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-review {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.scrolled .nav-review,
.site-header.nav-active .nav-review {
  border-color: var(--line);
  background: rgba(15, 43, 77, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: min(92svh, 840px);
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 28px) 0 44px;
  color: var(--paper);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/images/heirtrack-hero.png");
  background-size: cover;
  background-position: center;
  transform: translateY(calc(var(--parallax, 0) * 1px)) scale(1.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 21, 39, 0.88) 0%, rgba(8, 31, 56, 0.76) 42%, rgba(8, 31, 56, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 21, 39, 0.4), rgba(5, 21, 39, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1728px, calc(100% - clamp(40px, 7vw, 136px)));
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 42px;
  z-index: 2;
  width: min(320px, calc(100% - 40px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(8, 31, 56, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: #e2b45c;
  font-size: 1.02rem;
}

.hero-panel span {
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.78);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-panel h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  line-height: 1;
}

.hero-copy {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(207, 146, 64, 0.5);
  outline-offset: 3px;
}

.button.primary {
  color: #0f2b4d;
  background: #e2b45c;
  box-shadow: 0 12px 30px rgba(207, 146, 64, 0.24);
}

.button.secondary {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.contact-section .button.secondary {
  color: var(--forest);
  border-color: var(--line);
  background: var(--paper);
}

.contact-phone-card {
  display: inline-grid;
  gap: 2px;
  min-width: min(100%, 280px);
  padding: 16px 18px;
  border: 1px solid rgba(15, 43, 77, 0.14);
  border-radius: var(--radius);
  color: var(--forest);
  background: var(--paper);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 43, 77, 0.06);
}

.contact-phone-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-phone-card strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(860px, 100%);
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.trust-strip div {
  padding: 15px 16px;
  background: rgba(8, 31, 56, 0.46);
}

.trust-strip dt {
  font-weight: 900;
}

.trust-strip dd {
  margin: 4px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.about-panel h2,
.contact-copy h2 {
  color: var(--forest);
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.help-section {
  background: var(--paper);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  padding: clamp(34px, 6vw, 58px) max(20px, calc((100vw - 1160px) / 2));
  color: var(--paper);
  background: var(--forest);
}

.intro-band h2 {
  margin: 0;
  color: #e2b45c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}

.intro-band p:last-child {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.audience-card,
.testimonial-card,
.team-card,
.contact-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.9);
  box-shadow: 0 14px 34px rgba(15, 43, 77, 0.06);
}

.service-card {
  min-height: 230px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-index {
  color: var(--clay);
  font-weight: 900;
}

.service-card h3,
.process-list h3,
.team-card h3 {
  margin: 5px 0 10px;
  color: var(--forest);
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card p,
.audience-card p,
.process-list p,
.team-card p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.stories-section,
.about-section,
.faq-section {
  background: linear-gradient(180deg, var(--ivory), #edf1f4);
}

.serve-section {
  background: linear-gradient(180deg, #f1ede8, var(--ivory));
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.audience-card {
  min-height: 190px;
  padding: 20px;
  background: rgba(255, 253, 251, 0.92);
}

.audience-card h3 {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 1.08rem;
  line-height: 1.25;
}

.story-break {
  min-height: 520px;
  display: grid;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}

.story-break-bg,
.story-break-shade {
  position: absolute;
  inset: 0;
}

.story-break-bg {
  background-image: url("assets/images/story-break-archive.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  filter: saturate(0.92);
}

.story-break-shade {
  background:
    linear-gradient(90deg, rgba(5, 21, 39, 0.9), rgba(8, 31, 56, 0.62), rgba(8, 31, 56, 0.26)),
    linear-gradient(0deg, rgba(5, 21, 39, 0.38), rgba(5, 21, 39, 0.15));
}

.story-break-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.story-break h2 {
  margin: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
}

.story-break p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.12rem;
}

.deliverables-section {
  background: var(--paper);
}

.deliverables-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.deliverables-list {
  display: grid;
  gap: 12px;
}

.deliverables-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.deliverables-list span {
  color: var(--clay);
  font-weight: 900;
}

.deliverables-list h3 {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 1.12rem;
}

.deliverables-list p {
  margin: 0;
  color: var(--muted);
}

.testimonial-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 6px 2px 16px;
}

.testimonial-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  padding: 26px;
}

.story-type {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--sage);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testimonial-card p {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  font-size: 1.12rem;
}

.testimonial-card em {
  display: block;
  margin: 0 0 18px;
  color: var(--clay);
  font-style: normal;
  font-weight: 800;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.scroll-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest);
  background: var(--paper);
  cursor: pointer;
}

.process-section {
  background: var(--forest);
  color: var(--paper);
}

.process-section .eyebrow,
.process-section .section-heading h2 {
  color: #e2b45c;
}

.process-section .section-heading p {
  color: rgba(255, 253, 248, 0.72);
}

.process-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
}

.process-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list span {
  color: #e2b45c;
  font-weight: 900;
}

.process-list h3 {
  color: var(--paper);
  margin-top: 0;
}

.process-list p {
  color: rgba(255, 253, 248, 0.72);
}

.about-layout,
.contact-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.about-panel {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.about-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 26px;
  color: var(--forest);
  font-weight: 800;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.about-stats div {
  min-height: 124px;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--forest);
}

.about-stats strong,
.about-stats span {
  display: block;
}

.about-stats strong {
  margin-bottom: 8px;
  color: #e2b45c;
}

.team-section {
  background: var(--paper);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-card {
  padding: 22px;
}

.avatar {
  display: block;
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 28%;
}

.team-card .team-role {
  margin-top: 18px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  color: var(--forest);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 12px;
}

.contact-section {
  background: var(--sage);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 43, 77, 0.18);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 253, 248, 0.72);
  background: #081f38;
}

.footer-inner {
  display: grid;
  gap: 8px;
}

.footer-brand {
  color: var(--paper);
  width: 230px;
  height: 66px;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(248, 244, 241, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .service-grid,
  .audience-grid,
  .team-grid,
  .process-layout,
  .about-layout,
  .contact-layout,
  .faq-layout,
  .intro-band,
  .deliverables-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .about-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    width: 178px;
    height: 60px;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 190px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .trust-strip {
    display: none;
  }

  .trust-strip,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    right: 20px;
    bottom: 28px;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .scroll-button {
    display: none;
  }

  .testimonial-track {
    grid-auto-columns: 88%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .hero-media {
    transform: scale(1.02);
  }
}
