/* Campaign layout. Backgrounds and buttons inherit the main website's system. */
.brand-study {
  --study-wash: color-mix(in srgb, var(--surface-2) 54%, transparent);
  --study-accent: var(--indigo);
}
.study-card-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.5;
  text-transform: uppercase;
}
.brand-study .eyebrow { color: var(--study-accent); }
.study-header .nav { grid-template-columns: auto 1fr; }
.study-navigation { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.study-home-link { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.study-home-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.study-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.study-contact p { max-width: 270px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.study-hero { position: relative; padding: clamp(72px, 7.5vw, 112px) 0 56px; }
.study-hero-copy { position: relative; }
.study-hero h1 { max-width: 1050px; font-size: clamp(56px, 6.3vw, 80px); }
.study-hero .lead { max-width: 760px; margin-bottom: 0; }

/* A shared horizontal band, distinct from the boxed analysis cards and numbered process. */
.study-scope-navigation { margin-top: 56px; }
.study-scope-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 650; }
.study-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 32px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 32%, transparent); list-style: none; }
.study-scope li { min-width: 0; max-width: none; margin: 0; padding: 0 32px; }
.study-scope { border-bottom: 2px solid color-mix(in srgb, var(--study-accent) 65%, var(--line)); }
.study-scope li + li { border-left: 1px solid var(--line); }
.study-scope a { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; height: 100%; color: var(--ink); text-decoration: none; }
.study-scope-title { font-family: var(--serif); font-size: clamp(27px, 2.5vw, 34px); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color .2s ease; }
.study-scope-description { max-width: 32ch; color: var(--muted); font-size: 15px; line-height: 1.65; }
.study-scope a:hover .study-scope-title, .study-scope a:focus-visible .study-scope-title { color: var(--study-accent); text-decoration-line: underline; }

.study-section { position: relative; padding: clamp(64px, 7vw, 104px) 0; border-top: 1px solid var(--line); scroll-margin-top: 104px; }
.study-section-heading { display: block; max-width: 880px; margin-bottom: 48px; }
.study-section h2 { font-size: clamp(36px, 3.8vw, 50px); line-height: 1.12; }
.study-section-heading h2 { max-width: 850px; }
.study-section-heading .lead { max-width: 720px; margin-bottom: 0; }
.study-review-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 16px; }
.study-review-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 82%, var(--paper)); transition: border-color .25s ease, box-shadow .25s ease; }
.study-review-featured { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.study-review-icon { width: 30px; height: 30px; margin-bottom: 24px; fill: none; stroke: var(--study-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.study-card-label { display: block; margin-bottom: 16px; color: var(--muted); font-size: 11px; }
.study-review-card h3 { max-width: 20ch; margin-bottom: 16px; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.02em; line-height: 1.12; }
.study-review-card > p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.study-review-card .study-card-decision { margin: auto 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }

.study-findings-section, .study-faq-section { background: linear-gradient(180deg, transparent, var(--section-band) 34%, var(--section-band) 70%, transparent); }
.study-findings-layout { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 80px; }
.study-findings-intro .lead { max-width: 36ch; }
.study-caption { max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.study-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 8px 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.study-findings > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; padding: 32px 24px 32px 0; }
.study-findings > div:nth-child(even) { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.study-findings > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.study-findings dt { max-width: 16ch; margin-bottom: 16px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; }
.study-findings dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.study-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; counter-reset: route; list-style: none; }
.study-route li { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; counter-increment: route; padding: 0 32px 0 0; }
.study-route li:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 62px; right: 16px; height: 1px; background: var(--line); }
.study-route li::before { content: '0' counter(route); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; border: 1px solid color-mix(in srgb, var(--study-accent) 25%, var(--line)); border-radius: 50%; color: var(--study-accent); background: var(--study-wash); font-family: var(--mono); font-size: 13px; }
.study-route h3 { font-size: 20px; line-height: 1.3; }
.study-route p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.study-boundary { max-width: 900px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.study-trust-section { background: linear-gradient(180deg, transparent, var(--section-band) 24%, var(--section-band) 76%, transparent); }
.study-trust-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.study-text-link { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; color: var(--study-accent); font-size: 14px; font-weight: 750; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.study-trust-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.study-trust-list li { position: relative; padding: 24px 0 24px 28px; border-bottom: 1px solid var(--line); }
.study-trust-list li::before { content: ''; position: absolute; top: 32px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--study-accent); }
.study-trust-list h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.3; }
.study-trust-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.study-faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.study-faq-layout > div:first-child { position: sticky; top: 116px; align-self: start; }

.study-close { --ink: #F7F6F2; --muted: #C4C4C4; --line: #3A3A3A; padding: 64px 0; color: var(--ink); }
.brand-study .study-close .eyebrow { color: var(--indigo); }
.study-close-layout { position: relative; z-index: 1; }
.study-close h2 { max-width: 900px; font-size: clamp(40px, 4.5vw, 56px); }
.study-close .lead { max-width: 650px; }
.study-close .study-contact { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; width: fit-content; max-width: 100%; }
.study-close .study-contact p { text-align: left; }
.study-footer { padding: 40px 0 32px; border-top: 1px solid var(--line); background: var(--paper); }
.study-footer-main { display: flex; justify-content: space-between; gap: 24px; }
.study-footer-main p { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.study-footer-main .footer-links { align-content: start; gap: 8px 24px; }
.study-footer-note { margin: 32px 0 0; color: var(--muted); font-size: 12px; }
.study-mobile-chat { display: none; }

@media (hover: hover) {
  .study-review-card:hover { border-color: color-mix(in srgb, var(--study-accent) 48%, var(--line)); box-shadow: 0 16px 40px rgb(17 17 17 / .04); }
}

@media (max-width: 1000px) {
  .study-scope li { padding-inline: 24px; }
  .study-scope-title { min-height: 2.3em; }
  .study-findings-layout, .study-trust-layout { gap: 48px; }
  .study-review-card { padding: 24px; }
  .study-review-card h3 { font-size: 28px; }
  .study-findings { padding-inline: 24px; }
  .study-findings > div { padding-right: 16px; }
  .study-findings > div:nth-child(even) { padding-left: 16px; }
  .study-findings dt { font-size: 24px; }
  .study-faq-layout { gap: 40px; }
  .study-route li { padding-right: 24px; }
}

@media (max-width: 800px) {
  .study-navigation { gap: 16px; }
  .study-header-chat { display: none; }
  .study-hero { padding-top: 64px; }
  .study-hero h1 { max-width: 19ch; font-size: clamp(46px, 7.5vw, 60px); }
  .study-hero .lead { font-size: 18px; }
  .study-section-heading { margin-bottom: 32px; }
  .study-review-grid { grid-template-columns: 1fr 1fr; }
  .study-review-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .study-review-featured .study-review-icon, .study-review-featured .study-card-label, .study-review-featured h3 { grid-column: 1; }
  .study-review-featured > p:not(.study-card-decision) { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .study-review-featured .study-card-decision { grid-column: 1 / -1; margin-top: 16px; }
  .study-findings-layout, .study-trust-layout, .study-faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .study-faq-layout > div:first-child { position: static; }
  .study-findings-intro .lead { max-width: none; }
  .study-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .study-route li:nth-child(-n + 2) { margin-bottom: 40px; }
  .study-route li:nth-child(2)::after { display: none; }
  .study-route h3 { max-width: 21ch; }
  .study-faq-layout h2 { max-width: 650px; }
}

@media (max-width: 600px) {
  .brand-study { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .study-header .nav { min-height: 72px; gap: 12px; }
  .study-home-link { display: none; }
  .study-navigation .theme-control { width: 44px; padding: 0; justify-content: center; }
  .study-navigation .theme-control-label { display: none; }
  .study-hero { padding: 40px 0 56px; }
  .study-hero h1 { max-width: 18ch; font-size: clamp(40px, 10.4vw, 56px); }
  .study-contact { display: grid; justify-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 24px; }
  .study-contact p { max-width: 32ch; text-align: center; }
  .study-hero .study-contact, .study-findings-intro .study-contact, .study-close .study-contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; justify-items: start; gap: 16px; width: 100%; }
  .study-hero .study-contact p, .study-findings-intro .study-contact p, .study-close .study-contact p { max-width: 26ch; font-size: 12px; line-height: 1.5; text-align: left; }
  .study-hero .study-contact { grid-template-columns: 1fr; justify-items: stretch; width: 100%; gap: 12px; }
  .study-hero .study-contact .button { width: 100%; }
  .study-hero .study-contact p { justify-self: center; max-width: 32ch; font-size: 13px; text-align: center; }
  .study-scope-navigation { margin: 40px auto 0; }
  .study-scope-intro { text-align: center; }
  .study-scope { padding: 24px 0; mask-image: linear-gradient(90deg, transparent, #000 6px, #000 calc(100% - 6px), transparent); }
  .study-scope li { padding-inline: 6px; }
  .study-scope a { gap: 12px; }
  .study-scope-title { min-height: 2.3em; font-size: clamp(16px, 4.2vw, 22px); }
  .study-scope-description { font-size: 12px; line-height: 1.6; }
  .study-section { padding: 56px 0; scroll-margin-top: 88px; }
  .study-section h2 { font-size: 35px; }
  .study-review-grid { grid-template-columns: 1fr; }
  .study-review-featured { display: flex; grid-column: auto; }
  .study-review-featured > p:not(.study-card-decision) { align-self: auto; }
  .study-review-icon { width: 28px; height: 28px; margin-bottom: 20px; }
  .study-review-card h3 { max-width: 27ch; font-size: 29px; }
  .study-review-card .study-card-decision { padding-top: 16px; }
  .study-findings { padding: 0 16px; }
  .study-findings > div { padding: 24px 12px 24px 0; }
  .study-findings > div:nth-child(even) { padding: 24px 0 24px 12px; }
  .study-findings dt { max-width: none; margin-bottom: 12px; font-size: clamp(20px, 5.5vw, 24px); }
  .study-findings dd { font-size: 13px; line-height: 1.6; }
  .study-route { display: block; }
  .study-route li { display: block; padding: 0 0 32px 72px; }
  .study-route li:nth-child(-n + 2) { margin-bottom: 0; }
  .study-route li::before { position: absolute; top: 0; left: 0; margin: 0; }
  .study-route li:not(:last-child)::after, .study-route li:nth-child(2)::after { display: block; top: 58px; bottom: 10px; left: 23px; right: auto; width: 1px; height: auto; }
  .study-route li:last-child { padding-bottom: 0; }
  .study-route h3 { max-width: 23ch; padding-top: 4px; font-size: 20px; }
  .study-boundary { margin-top: 32px; }
  .study-close { padding: 40px 0; }
  .study-close h2 { font-size: 36px; }
  .study-footer-main { flex-direction: column; }
  .study-footer-main .footer-links { display: flex; flex-wrap: wrap; }
  .study-mobile-chat { position: fixed; inset: auto 0 0; z-index: 110; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(16px); }
  .study-mobile-chat .button { white-space: nowrap; }
  .study-mobile-chat > span { color: var(--muted); font-size: 10px; line-height: 1.5; }
  .study-mobile-chat strong { color: var(--ink); font-size: 11px; font-weight: 650; }
  .brand-study :is(a, button, summary) { scroll-margin-top: 96px; scroll-margin-bottom: 112px; }
}

@media (max-width: 359px) {
  .study-hero .study-contact, .study-findings-intro .study-contact, .study-close .study-contact { gap: 12px; }
  .study-findings-intro .study-contact .button, .study-close .study-contact .button { padding-inline: 14px; font-size: 13px; }
  .study-hero h1 { font-size: 37px; }
  .study-mobile-chat > span { max-width: 132px; font-size: 9px; }
  .study-mobile-chat strong { font-size: 10px; }
  .study-mobile-chat .button { padding-inline: 16px; }
}

/* Progressive reveal: visible by default, short motion, one pass per element. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-prep .brand-study .study-hero-copy > :not(.study-scope-navigation),
  html.motion-prep .brand-study .study-scope-intro,
  html.motion-prep .brand-study .study-scope li { opacity: 0; filter: blur(4px); transform: translateY(24px); transition: none; }
  html.motion-ready .brand-study .study-hero-copy .reveal:focus-within { opacity: 1; filter: none; transform: none; transition: none; }
  html.study-motion .study-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--study-delay, 0ms); }
  html.study-motion .study-reveal.is-visible { opacity: 1; transform: none; }
  html.study-motion .study-reveal:focus-within { opacity: 1; transform: none; transition: none; }
}
