/* ==========================================================================
   Sage Neuroscience Center — TMS Landing Page
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #26303e;
  --navy-deep: #1b2330;
  --navy-soft: #4c5866;
  --sage: #6f8259;
  --sage-deep: #4e5e3d;
  --sage-tint: #e6e9d9;
  --clay: #b65e3b;
  --clay-deep: #8a4327;
  --clay-light: #d98a63;
  --cream: #f3efe2;
  --cream-muted: #cdd6c1;
  --line: #d3cdb9;
  --line-on-sage: rgba(243, 239, 226, 0.24);

  /* Type */
  --f-head: "Plus Jakarta Sans", sans-serif;
  --f-body: "Inter", sans-serif;

  /* Layout */
  --header-h: 64px;
  --container: 1180px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--sage-tint);
  color: var(--navy);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: var(--cream); }
.btn-primary:hover { background: var(--clay-deep); }
.btn-ghost-dark {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-on-sage);
}
.btn-ghost-dark:hover { border-color: var(--cream-muted); }
.btn-ghost-light {
  background: transparent;
  color: var(--navy);
  border-color: var(--sage);
}
.btn-ghost-light:hover { border-color: var(--sage-deep); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sage-tint);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { grid-column: 1; justify-self: start; }
.main-nav { grid-column: 2; }
.header-actions { grid-column: 3; justify-self: end; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 28px; width: auto; }
.brand-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 10px;
  color: var(--sage-deep);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy-soft);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--navy); border-color: var(--sage); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  white-space: nowrap;
}
.phone-link svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--clay); }
.phone-link .phone-label {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* ---------- Mobile burger menu ---------- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  grid-column: 3;
  flex-shrink: 0;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1), opacity 0.2s ease;
}
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sage-tint);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(38, 48, 62, 0.12);
  padding: 8px 24px 28px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.mobile-menu-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
}
.mobile-menu-actions .phone-link { font-size: 15px; }
.mobile-menu-actions .btn { width: 100%; justify-content: center; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 48, 62, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 55;
}
.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--sage-tint);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(380px, 620px) 1fr;
  align-items: center;
}
.hero-left {
  padding: 60px clamp(28px, 4vw, 64px) 56px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.avatar-stack {
  display: flex;
  flex-shrink: 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--sage-tint);
  object-fit: cover;
  display: block;
  margin-left: -10px;
  background: var(--sage-tint);
}
.avatar:first-child { margin-left: 0; }

.social-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.social-stars {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--clay);
}
.social-stars b {
  font-family: var(--f-head);
  color: var(--navy);
  font-weight: 800;
  margin-left: 2px;
}
.social-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--sage-deep);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--clay);
}
.hero h1 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--clay);
}
.hero-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-note {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sage-deep);
}

.hero-right {
  position: relative;
  aspect-ratio: 5 / 4;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-stamp {
  position: absolute;
  left: -6px;
  bottom: -0.09em;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
  text-stroke: 1.5px var(--cream);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

/* ---------- Hero marquee ---------- */
.hero-marquee {
  background: var(--navy);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.marquee-track .sep {
  color: var(--clay-light);
  font-size: 13px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- What is TMS ---------- */
.tms-intro {
  background: var(--navy);
  padding: 56px 0;
}
.tms-intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 72px;
  align-items: start;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin: 0 0 18px;
}
.section-eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--clay-light);
}

.term-name {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  color: var(--cream);
  margin: 0 0 14px;
}
.term-phonetic {
  font-size: 14.5px;
  color: var(--cream-muted);
  margin: 0 0 22px;
}
.term-phonetic em { font-style: italic; }
.term-def {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cream);
  max-width: 54ch;
  margin: 0 0 26px;
}
.tms-note {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--cream);
  max-width: 50ch;
  margin: 0;
  padding-left: 20px;
  border-left: 2.5px solid var(--clay-light);
}

.tms-facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-on-sage);
}
.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-on-sage);
}
.fact-num {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--cream);
  white-space: nowrap;
}
.fact-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cream-muted);
  text-align: right;
  max-width: 20ch;
}
.tms-facts .fact-label {
  text-align: left;
}

/* ---------- Who TMS is for (statement) ---------- */
.who-for {
  background: var(--sage-tint);
  padding: 56px 0;
  text-align: center;
}
.statement {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
  max-width: 700px;
  margin: 0 auto 32px;
}
.statement .word {
  color: rgba(38, 48, 62, 0.25);
  transition: color 0.15s ease;
}
.statement .word.lit {
  color: var(--navy);
}
.statement .pill {
  height: 0.85em;
  width: auto;
  aspect-ratio: 2.8 / 1;
  object-fit: cover;
  border-radius: 999px;
  vertical-align: -0.05em;
  margin: 0 5px;
}
.statement-cta { opacity: 1; }

/* ---------- Shared section heading (light-bg variant) ---------- */
.section-eyebrow-dark {
  color: var(--clay-deep);
}
.section-eyebrow-dark::before {
  background: var(--clay-deep);
}
.section-title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  color: var(--navy);
  max-width: 18ch;
  margin: 0 0 48px;
}
.section-title-light { color: var(--cream); }

/* ---------- How TMS works ---------- */
.how-works {
  background: var(--sage-tint);
  padding: 88px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 40px 32px 12px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-right: 0; }
.step-num {
  display: block;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--clay);
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 10px;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-soft);
  margin: 0;
  padding-right: 8px;
}

/* ---------- Why Sage ---------- */
.why-sage {
  background: var(--navy);
  padding: 88px 0;
}
.why-sage-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.why-sage-head .section-eyebrow {
  justify-content: center;
}
.why-sage-head .section-title {
  margin: 0 auto 16px;
  max-width: 22ch;
}
.why-sage-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--cream-muted);
  margin: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.why-col {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-on-sage);
}
.why-card {
  flex: 1;
  border-bottom: 1px solid var(--line-on-sage);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--cream);
  color: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.why-icon svg { width: 19px; height: 19px; }
.why-card h3 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
  margin: 0 0 8px;
}
.why-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-muted);
  margin: 0;
}
.why-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.why-media-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(38, 48, 62, 0.82);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}
.wmc-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  margin: 0 0 2px;
}
.wmc-role {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--clay-light);
  margin: 0;
}

/* ---------- Insurance ---------- */
.insurance {
  background: var(--sage-tint);
  padding: 88px 0;
  text-align: center;
}
.insurance .section-title { margin-left: auto; margin-right: auto; max-width: 22ch; }
.insurance-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 54ch;
  margin: -28px auto 44px;
}
.insurance-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin: 0 auto 44px;
  max-width: 760px;
}
.insurance-logos img {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.insurance-logos img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--navy);
  padding: 88px 0;
}
.faq .section-title { color: var(--cream); max-width: 15ch; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.faq-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-on-sage);
}
.faq-item {
  border-bottom: 1px solid var(--line-on-sage);
}
.faq-item summary {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
  padding: 22px 28px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 20px;
  font-size: 20px;
  font-weight: 400;
  color: var(--clay-light);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cream-muted);
  margin: 0 0 20px;
  padding-right: 24px;
}

/* ---------- Inquiry form ---------- */
.inquiry {
  background: var(--sage-tint);
  padding: 88px 0;
}
.inquiry .section-eyebrow { color: var(--clay-deep); }
.inquiry .section-eyebrow::before { background: var(--clay-deep); }
.inquiry .section-title { color: var(--navy); }
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.inquiry-copy {
  position: sticky;
  top: 100px;
}
.inquiry-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 48ch;
  margin: 0 0 32px;
}
.inquiry-trust {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.inquiry-trust .fact-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.inquiry-trust .fact-num { font-size: 18px; color: var(--navy); }
.inquiry-trust .fact-label { color: var(--sage-deep); }
.inquiry .phone-link-light { color: var(--navy); }
.inquiry .phone-link-light svg { color: var(--clay); }

.inquiry-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}
.contact-row svg {
  color: var(--clay);
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-row span { transition: color 0.2s ease; }
.contact-row:hover span { color: var(--clay-deep); }

.inquiry-form-card {
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
}
.inquiry-form-card iframe {
  display: block;
  width: 100%;
  min-height: 760px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-sage);
}
.footer-brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
  margin: 0 0 8px;
}
.footer-tag {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-muted);
  margin: 0;
  max-width: 32ch;
}
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin: 0 0 16px;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--cream-muted);
  margin: 0 0 6px;
}
.footer-col a { color: var(--cream-muted); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12.5px;
  color: var(--cream-muted);
  margin: 0;
}
.footer-disclaimer { max-width: 52ch; opacity: 0.7; }

/* ---------- Decorative leaf motif ---------- */
.leaf-deco {
  position: absolute;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  pointer-events: none;
  z-index: 0;
}
.leaf-deco--hero {
  width: 130px;
  height: auto;
  left: -6px;
  bottom: -4px;
  color: var(--sage);
  opacity: 0.22;
  transform-origin: bottom center;
}
.hero-left { position: relative; z-index: 1; }
.hero-left > *:not(.leaf-deco) { position: relative; z-index: 1; }

.why-sage { position: relative; overflow: hidden; }
.leaf-deco--why {
  width: 260px;
  height: auto;
  right: -30px;
  bottom: -30px;
  color: var(--cream);
  opacity: 0.06;
}

.site-footer { position: relative; overflow: hidden; }
.leaf-deco--footer {
  width: 150px;
  height: auto;
  right: 24px;
  top: -20px;
  color: var(--cream);
  opacity: 0.07;
  transform: rotate(18deg);
}

.who-for { position: relative; overflow: hidden; }
.leaf-deco--who {
  width: 150px;
  height: auto;
  right: 6%;
  top: -18px;
  color: var(--sage);
  opacity: 0.12;
  transform: rotate(12deg);
}

.tms-intro { position: relative; overflow: hidden; }
.leaf-deco--tms {
  width: 220px;
  height: auto;
  right: -24px;
  bottom: -26px;
  color: var(--cream);
  opacity: 0.06;
  transform: rotate(-6deg);
}

.how-works { position: relative; overflow: hidden; }
.leaf-deco--how {
  width: 170px;
  height: auto;
  right: 4%;
  top: -14px;
  color: var(--sage);
  opacity: 0.1;
  transform: rotate(8deg);
}

.insurance { position: relative; overflow: hidden; }
.leaf-deco--insurance {
  width: 160px;
  height: auto;
  left: 4%;
  bottom: -16px;
  color: var(--sage);
  opacity: 0.11;
  transform: rotate(-10deg);
}

.faq { position: relative; overflow: hidden; }
.leaf-deco--faq {
  width: 190px;
  height: auto;
  left: -22px;
  top: -18px;
  color: var(--cream);
  opacity: 0.06;
  transform: rotate(-14deg);
}

.inquiry { position: relative; }
.leaf-deco--inquiry {
  width: 170px;
  height: auto;
  left: 2%;
  bottom: -18px;
  color: var(--sage);
  opacity: 0.1;
  transform: rotate(10deg);
}

.leaf-sway { animation: leafSway 9s ease-in-out infinite; }
@keyframes leafSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .leaf-sway { animation: none; }
}
@media (max-width: 980px) {
  .leaf-deco--why { width: 180px; }
}
@media (max-width: 640px) {
  .leaf-deco--hero { display: none; }
  .leaf-deco--footer { width: 110px; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92) translateY(10px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero load-in ---------- */
.hero-left > .hero-social,
.hero-left > .hero-eyebrow,
.hero-left > h1,
.hero-left > .hero-sub,
.hero-left > .hero-cta-row {
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}
.hero-left > .hero-social { animation-delay: 0.05s; }
.hero-left > .hero-eyebrow { animation-delay: 0.18s; }
.hero-left > h1 { animation-delay: 0.28s; }
.hero-left > .hero-sub { animation-delay: 0.42s; }
.hero-left > .hero-cta-row { animation-delay: 0.54s; }

.avatar-stack .avatar {
  opacity: 0;
  animation: heroRise 0.6s ease forwards;
}
.avatar-stack .avatar:nth-child(1) { animation-delay: 0.1s; }
.avatar-stack .avatar:nth-child(2) { animation-delay: 0.18s; }
.avatar-stack .avatar:nth-child(3) { animation-delay: 0.26s; }

.hero-right img {
  opacity: 0;
  transform: scale(1.06);
  animation: heroImgIn 1.2s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}
.hero-stamp {
  opacity: 0;
  animation: heroRise 1s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-left > .hero-social,
  .hero-left > .hero-eyebrow,
  .hero-left > h1,
  .hero-left > .hero-sub,
  .hero-left > .hero-cta-row,
  .avatar-stack .avatar,
  .hero-right img,
  .hero-stamp {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Card hover micro-interactions ---------- */
.why-card,
.step {
  transition: transform 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.why-card:hover,
.step:hover {
  transform: translateY(-3px);
}
.why-card:hover .why-icon {
  background: var(--clay);
  color: #fffaf3;
  transition: background 0.25s ease, color 0.25s ease;
}
.why-icon {
  transition: background 0.25s ease, color 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .why-card:hover,
  .step:hover { transform: none; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .burger-btn { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { order: -1; min-height: 380px; }
  .hero-left { padding: 40px 24px 48px; }
  .hero-stamp { font-size: clamp(48px, 14vw, 90px); }
  .tms-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .tms-intro { padding: 40px 0; }
  .who-for { padding: 40px 0; }
  .statement { font-size: 16px; max-width: 90%; }
  .how-works, .why-sage, .insurance, .faq, .inquiry { padding: 56px 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .step { border-right: none; padding-right: 0; padding-left: 0; }
  .step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-media { grid-column: 1 / 3; order: -1; aspect-ratio: 21 / 9; margin-bottom: 4px; }
  .inquiry-grid { grid-template-columns: 1fr; gap: 40px; }
  .inquiry-copy { position: static; top: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-media { position: static; aspect-ratio: 16 / 9; order: -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-header .container { height: auto; padding-top: 14px; padding-bottom: 14px; }
  .brand-name { font-size: 14.5px; }
  .brand img { height: 32px; }
  .hero-cta-row { gap: 14px; }
  .fact-label { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .step {
    border-right: none !important;
    padding: 28px 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child { border-bottom: none; }
  .section-title { max-width: none; margin-bottom: 32px; }
  .faq .section-title { max-width: none; }
  .why-sage-head .section-title { max-width: none; }
  .why-grid { grid-template-columns: 1fr; gap: 8px; }
  .why-media { grid-column: 1 / 2; aspect-ratio: 16 / 9; margin-bottom: 8px; }
  .why-col { border-top: none; }
  .why-col:first-of-type { border-top: 1px solid var(--line-on-sage); }
  .insurance-sub { margin-top: -16px; }
  .inquiry-form-card iframe { min-height: 900px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
