@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("assets/fonts/PTSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("assets/fonts/PTSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather Sans";
  src: url("assets/fonts/MerriweatherSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --navy-950: #020d1a;
  --navy-900: #031426;
  --navy-800: #08213a;
  --ink: #0b1726;
  --muted: #56616c;
  --paper: #e2e1dc;
  --paper-warm: #d5d3cb;
  --line: #c8c5bd;
  --gold: #d8941d;
  --gold-light: #f3c55e;
  --gold-dark: #985b08;
  --white: #fff;
  --shadow: 0 18px 50px rgba(3, 20, 38, .12);
  --radius: 18px;
  --heading: "Open Sans", Arial, sans-serif;
  --body: "PT Sans", "Segoe UI", Arial, sans-serif;
  --detail: "Merriweather Sans", "Segoe UI", Arial, sans-serif;
  --serif: var(--heading);
  --sans: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: linear-gradient(135deg,#deddd7 0%,#d0cfc8 52%,#e1dbd0 100%) fixed; font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
p,
small,
figcaption,
.brand small,
.breadcrumbs,
.hero-trust,
.metric-row span,
.stat-card span,
.case-metrics-mini span,
.timeline span,
.messenger-choice small,
.messenger-note { font-family: var(--detail); }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); }
.hero-lead, .section-heading > p:last-child { font-family: var(--body); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1600px, calc(100% - clamp(24px, 4vw, 72px))); margin-inline: auto; }
.section { padding: 104px 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-140%); border-radius: 8px; background: white; color: var(--ink); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #62a9ff; outline-offset: 3px; }

.hero { min-height: clamp(620px, 47vw, 760px); position: relative; display: flex; flex-direction: column; overflow: hidden; color: white; background-image: linear-gradient(90deg, rgba(2,13,26,.32) 0%, rgba(2,13,26,.1) 43%, rgba(2,13,26,0) 68%), url("assets/images/hero-reference-v3.png"); background-position: center; background-size: cover; }
.hero-brand { position: relative; z-index: 3; display: flex; min-height: 104px; align-items: center; padding-top: 12px; }
.hero-brand .brand { color: white; }
.hero-brand .brand-mark { width: 68px; height: 74px; }
.hero-brand .brand small { max-width: 250px; color: rgba(255,255,255,.78); line-height: 1.35; }
.nav { position: relative; z-index: 5; display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(243, 197, 94, .2); }
.hero .nav { min-height: 86px; margin-top: 14px; padding-inline: 18px; border: 1px solid rgba(243,197,94,.23); border-radius: 16px; background: linear-gradient(135deg,rgba(2,13,26,.82),rgba(3,20,38,.54)); box-shadow: 0 20px 55px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(16px) saturate(125%); }
.hero .brand small { max-width: 240px; line-height: 1.3; }
.brand { display: flex; min-width: 0; align-items: center; gap: 14px; }
.brand > span { min-width: 0; }
.brand strong { display: block; white-space: nowrap; }
.brand-mark { width: 56px; height: 64px; color: var(--gold-light); }
.brand-logo {
  object-fit: contain;
  filter: drop-shadow(0 6px 11px rgba(0,0,0,.26));
}
.brand-mark path:first-child { fill: rgba(216, 148, 29, .06); stroke: var(--gold-light); stroke-width: 2.2; }
.brand-mark path:nth-child(2) { stroke: var(--gold); stroke-width: 1.5; }
.brand-mark text { fill: var(--gold-light); stroke: none; font: 700 26px var(--serif); }
.brand-mark path:last-child { stroke: var(--gold-light); stroke-width: 1.4; }
.brand span { display: grid; }
.brand strong { color: var(--gold-light); font: 500 clamp(1.15rem, 2vw, 1.55rem) var(--serif); }
.brand small { color: rgba(255, 255, 255, .74); font-size: .72rem; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .9rem; }
.nav-links > a { position: relative; color: rgba(255, 255, 255, .82); transition: color .2s ease; }
.nav-links > a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; transform: scaleX(0); background: linear-gradient(90deg,transparent,var(--gold-light),transparent); box-shadow: 0 0 10px rgba(243,197,94,.75); transition: transform .2s ease; }
.nav-links > a:hover, .nav-links > a:focus-visible { color: var(--gold-light); }
.nav-links > a:hover::after, .nav-links > a:focus-visible::after { transform: scaleX(1); }
.menu-toggle.icon-button { display: none; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: transparent; cursor: pointer; }

.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 12px; padding-bottom: 58px; }
.eyebrow { margin: 0 0 14px; color: var(--gold-dark); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow, .final-cta .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 760px; margin: 0; font: 400 clamp(2.55rem, 3.75vw, 3.1rem)/1.06 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { color: inherit; font-style: normal; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { position: relative; isolation: isolate; display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 0 25px; overflow: hidden; border: 1px solid var(--gold); border-radius: 8px; color: #160e02; background: linear-gradient(135deg, #f7d377, #d89219); box-shadow: 0 0 0 1px rgba(255,222,145,.12), 0 12px 28px rgba(216,148,29,.22), 0 0 30px rgba(216,148,29,.1); font-family: var(--body); font-size: 1.05rem; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.button::before { content: ""; position: absolute; z-index: -1; inset: -14px; border-radius: inherit; background: radial-gradient(circle,rgba(255,222,132,.62),transparent 64%); opacity: 0; filter: blur(11px); transition: opacity .2s ease; }
.button::after { content: ""; position: absolute; inset: -80% auto -80% -45%; width: 32%; transform: rotate(18deg); background: linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent); transition: left .45s ease; pointer-events: none; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: linear-gradient(135deg, #ffe39b, #e4a12c); box-shadow: 0 0 0 1px rgba(255,231,167,.22), 0 18px 38px rgba(216,148,29,.3), 0 0 38px rgba(243,197,94,.24); }
.button:hover::before, .button:focus-visible::before { opacity: 1; }
.button:hover::after, .button:focus-visible::after { left: 120%; }
.button:active { transform: translateY(0) scale(.985); }
.button svg { width: 1.2rem; height: 1.2rem; }
.button-small { min-height: 42px; padding-inline: 18px; font-size: .95rem; }
.button-ghost, .button-outline { color: white; background: rgba(3,20,38,.48); box-shadow: none; }
.button-ghost:hover { color: var(--gold-light); background: rgba(3,20,38,.75); }
.button-outline { color: var(--ink); background: transparent; }
.button-outline:hover { color: var(--gold-dark); background: #fff8e9; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: rgba(255,255,255,.66); font-size: .82rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 1rem; height: 1rem; color: var(--gold-light); }

.capabilities { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.capabilities article { display: flex; align-items: center; gap: 17px; min-height: 112px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 15px 40px rgba(3,20,38,.08); }
.capabilities article > svg { flex: 0 0 auto; width: 42px; height: 42px; color: #ed6b09; stroke-width: 1.35; }
.capabilities h2 { margin: 0 0 4px; font: 500 1.17rem var(--serif); }
.capabilities p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .faq-layout h2, .final-cta h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.45rem)/1.1 var(--serif); letter-spacing: -.025em; }
.section-heading > p:last-child { margin: 15px 0 0; color: var(--muted); }
.topics-section { padding-top: 92px; background: radial-gradient(circle at 80% 10%, #fff1d8 0, transparent 26%), var(--paper); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.topic-grid li { display: flex; min-height: 64px; align-items: center; gap: 13px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.74); text-align: left; }
.topic-grid svg { flex: 0 0 auto; color: #ed6b09; }
.topic-grid .topic-wide { grid-column: span 2; justify-content: center; }

.process-section { padding-top: 36px; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px; margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 26px; right: -31px; width: 24px; height: 1px; background: var(--gold); }
.process-list li > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); font: 500 1.4rem var(--serif); }
.process-list h3 { margin: 2px 0 8px; font: 500 1.14rem var(--serif); }
.process-list p { margin: 0; color: var(--muted); font-size: .86rem; }

.case-feature { display: grid; grid-template-columns: .56fr 1.64fr; min-height: 250px; margin-bottom: 20px; overflow: hidden; border: 1px solid rgba(243,197,94,.52); border-radius: var(--radius); color: white; background: var(--navy-900); box-shadow: var(--shadow); }
.case-feature-image { min-height: 250px; background: linear-gradient(90deg, transparent 72%, var(--navy-900)), url("assets/images/case-bank-hero.webp") center/cover; }
.case-feature-content { display: flex; flex-direction: column; justify-content: center; padding: 28px 34px 26px; }
.case-feature h2 { max-width: 680px; margin: 0 0 14px; font: 500 clamp(1.8rem,3vw,2.6rem)/1.12 var(--serif); }
.case-feature-content > p:not(.eyebrow) { max-width: 700px; margin: 0; color: rgba(255,255,255,.72); }
.metric-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 18px 0; }
.metric-row > div { padding: 14px; border: 1px solid rgba(216,148,29,.72); border-radius: 8px; text-align: center; }
.metric-row strong { display: block; color: var(--gold-light); font: 500 1.2rem var(--serif); }
.metric-row span { color: rgba(255,255,255,.63); font-size: .72rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--gold-light); background: transparent; font-weight: 650; cursor: pointer; }
.text-link svg { width: 1.1rem; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

.cases-section { background: var(--paper-warm); }
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar button { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.filter-bar button:hover, .filter-bar button.active { border-color: var(--gold); color: white; background: var(--navy-800); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(3,20,38,.06); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-6px); border-color: #d6b16d; box-shadow: 0 22px 55px rgba(3,20,38,.15), 0 0 26px rgba(216,148,29,.1); }
.case-card[hidden] { display: none; }
.case-card img, .document-visual { width: 100%; height: 230px; object-fit: cover; }
.case-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.case-card-body > span { color: var(--gold-dark); font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.case-card h3 { margin: 10px 0; font: 500 1.42rem/1.24 var(--serif); }
.case-card p { min-height: 74px; margin: 0 0 19px; color: var(--muted); font-size: .88rem; }
.case-card .text-link { margin-top: auto; }
.case-card img[src*="resume-"] { object-position: top; }
.case-grid .case-card:nth-child(1) { order: 1; }
.case-grid .case-card:nth-child(5) { order: 2; }
.case-grid .case-card:nth-child(9) { order: 3; }
.case-grid .case-card:nth-child(2) { order: 4; }
.case-grid .case-card:nth-child(6) { order: 5; }
.case-grid .case-card:nth-child(10) { order: 6; }
.case-grid .case-card:nth-child(3) { order: 7; }
.case-grid .case-card:nth-child(7) { order: 8; }
.case-grid .case-card:nth-child(11) { order: 9; }
.case-grid .case-card:nth-child(4) { order: 10; }
.case-grid .case-card:nth-child(8) { order: 11; }
.case-grid .case-card:nth-child(12) { order: 12; }
.document-visual { position: relative; display: grid; place-content: center; color: var(--gold-light); background: radial-gradient(circle at 60% 40%, #173958, var(--navy-950)); }
.document-visual svg { width: 76px; height: 76px; }
.document-visual span { margin-top: 8px; color: white; font: 600 1.2rem var(--serif); letter-spacing: .18em; }
.document-visual i { position: absolute; right: 12%; width: 32%; height: 1px; background: rgba(243,197,94,.35); }
.document-visual i:nth-of-type(1) { top: 30%; }.document-visual i:nth-of-type(2) { top: 40%; }.document-visual i:nth-of-type(3) { top: 50%; }

.tariffs-section { background: linear-gradient(180deg, var(--paper), #fff); }
.tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tariff-card { position: relative; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(3,20,38,.05); }
.tariff-card > svg { width: 40px; height: 40px; margin-bottom: 22px; color: #ed6b09; }
.tariff-card > p { margin: 0; color: var(--gold-dark); font-weight: 700; }
.tariff-card h3 { margin: 4px 0 2px; font: 500 1.5rem var(--serif); }
.tariff-card > strong { font: 600 2.65rem var(--serif); }
.tariff-card ul { flex: 1; margin: 24px 0 30px; padding: 0; color: var(--muted); list-style: none; }
.tariff-card li { position: relative; padding: 7px 0 7px 23px; }
.tariff-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); }
.tariff-card.popular { transform: translateY(-12px); border-color: var(--gold); color: white; background: var(--navy-900); box-shadow: 0 24px 60px rgba(3,20,38,.18); }
.tariff-card.popular ul { color: rgba(255,255,255,.7); }
.popular-label { position: absolute; top: 16px; right: 16px; padding: 5px 9px; border: 1px solid rgba(243,197,94,.4); border-radius: 999px; color: var(--gold-light); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.security-note { display: flex; max-width: 800px; align-items: center; gap: 18px; margin: 36px auto 0; color: var(--muted); font-size: .9rem; }
.security-note svg { flex: 0 0 auto; width: 40px; height: 40px; color: var(--gold-dark); }
.security-note a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

.work-level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-level-card { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start; min-height: 150px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(3,20,38,.05); }
.work-level-card > svg { width: 52px; height: 52px; color: #ed6b09; }
.work-level-card h3 { margin: 0 0 9px; font: 500 1.2rem/1.25 var(--serif); }
.work-level-card p { margin: 0; color: var(--muted); font-size: .84rem; }

.faq-section { background: var(--paper-warm); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.faq-layout > div:first-child { position: sticky; top: 110px; }
.faq-layout > div:first-child > p:not(.eyebrow) { max-width: 420px; margin: 20px 0 28px; color: var(--muted); }
.faq-list { border-top: 1px solid #d9cbb4; }
.faq-list details { border-bottom: 1px solid #d9cbb4; }
.faq-list summary { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font: 500 1.22rem var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--gold-dark); font: 300 1.7rem var(--sans); transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -8px 48px 24px 0; color: var(--muted); }

.final-cta { color: white; background: radial-gradient(circle at 80% 0, #16476a 0, transparent 30%), var(--navy-900); }
.final-cta .shell { display: flex; min-height: 260px; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta p:last-child { margin-bottom: 0; color: rgba(255,255,255,.66); }
.final-cta .button { flex: 0 0 auto; min-width: 230px; }

.footer { padding: 62px 0 20px; color: rgba(255,255,255,.72); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.15fr .85fr; gap: 44px; }
.footer .brand { align-self: start; }
.footer h2 { margin: 0 0 14px; color: white; font: 500 1.06rem var(--serif); }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; font-size: .82rem; }
.footer a:hover, .footer-link:hover { color: var(--gold-light); }
.footer p { margin: 0; }
.footer-link { padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.copyright { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(243,197,94,.18); color: rgba(255,255,255,.45); font-size: .78rem; text-align: center; }

.question-dialog { width: min(940px, calc(100% - 24px)); max-height: min(90vh, 850px); padding: 0; overflow: auto; border: 1px solid rgba(243,197,94,.48); border-radius: 22px; background: #07182a; color: white; box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 42px rgba(216,148,29,.18); }
.question-dialog::backdrop { background: rgba(2,13,26,.78); backdrop-filter: blur(6px); }
.dialog-panel { position: relative; display: grid; gap: 19px; padding: 42px; }
.dialog-close { position: absolute; z-index: 2; top: 18px; right: 18px; border-color: var(--line); color: var(--ink); }
.dialog-heading h2 { margin: 0; font: 500 2.2rem var(--serif); }
.dialog-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.messenger-panel { gap: 24px; padding: 42px; background: radial-gradient(circle at 50% 0,rgba(216,148,29,.13),transparent 38%),linear-gradient(145deg,#061629,#020d1a); }
.messenger-panel .dialog-heading { max-width: 720px; text-align: center; margin-inline: auto; }
.messenger-panel .dialog-heading p:last-child { color: rgba(255,255,255,.68); }
.messenger-panel .dialog-close { border: 0; color: white; background: transparent; transition: color .2s ease,background .2s ease; }
.messenger-panel .dialog-close:hover,
.messenger-panel .dialog-close:focus-visible { outline: 0; color: var(--gold-light); background: rgba(255,255,255,.06); }
.messenger-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.messenger-choice { overflow: hidden; border: 0; border-radius: 14px; outline: 0; background: transparent; box-shadow: none; cursor: pointer; transition: background .2s ease,opacity .2s ease; }
.messenger-choice:hover,
.messenger-choice:focus-visible { outline: 0; background: transparent; box-shadow: none; }
.messenger-choice img { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; border-radius: 22px; clip-path: inset(0 round 22px); transition: filter .2s ease; }
.messenger-choice:hover img,
.messenger-choice:focus-visible img { filter: brightness(1.06); }
.messenger-choice > span { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.messenger-choice strong { color: var(--gold-light); font: 600 1.08rem var(--serif); }
.messenger-choice small { color: rgba(255,255,255,.62); font-size: .78rem; }
.messenger-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; color: rgba(255,255,255,.58); font-size: .82rem; text-align: center; }
.messenger-note svg { flex: 0 0 auto; color: var(--gold-light); }
.dialog-panel label { display: grid; gap: 7px; font-size: .86rem; font-weight: 650; }
.dialog-panel select, .dialog-panel textarea { width: 100%; border: 1px solid #cfc8bc; border-radius: 9px; color: var(--ink); background: white; }
.dialog-panel select { min-height: 48px; padding: 0 13px; }
.dialog-panel textarea { resize: vertical; min-height: 130px; padding: 12px 13px; }
.dialog-panel select:focus, .dialog-panel textarea:focus { border-color: var(--gold); outline: 3px solid rgba(216,148,29,.14); }
.field-meta { display: flex; justify-content: space-between; color: var(--muted); font-weight: 400; }
.field-error { color: #a12525; }
.file-field { padding: 16px; border: 1px dashed #c8b28c; border-radius: 10px; color: var(--muted); background: #fffbf2; cursor: pointer; }
.file-field > span { display: flex; align-items: center; gap: 13px; }
.file-field svg { color: var(--gold-dark); }
.file-field strong, .file-field small { display: block; }
.file-field input { width: 100%; margin-top: 10px; font-size: .78rem; font-weight: 400; }
#file-list { color: var(--gold-dark); font-size: .76rem; font-weight: 500; }
.consent { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 400 !important; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold-dark); }
.submit-question { width: 100%; }
.form-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .72rem; }
.form-note svg { flex: 0 0 auto; width: 1rem; }
.toast { position: fixed; z-index: 110; right: 20px; bottom: 20px; max-width: min(410px, calc(100% - 40px)); padding: 15px 18px; transform: translateY(140%); border: 1px solid rgba(243,197,94,.5); border-radius: 10px; color: white; background: var(--navy-900); box-shadow: var(--shadow); transition: transform .25s ease; }
.toast.show { transform: none; }

/* Shared motion and interaction layer */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: mentor-page-out .2s ease both; }
::view-transition-new(root) { animation: mentor-page-in .36s cubic-bezier(.2,.72,.2,1) both; }

@keyframes mentor-page-out {
  to { opacity: 0; transform: scale(.992); filter: blur(3px); }
}

@keyframes mentor-page-in {
  from { opacity: 0; transform: translateY(12px) scale(1.006); filter: blur(5px); }
}

@keyframes mentor-cta-glow {
  0%, 100% { box-shadow: 0 12px 28px rgba(216,148,29,.22), 0 0 22px rgba(243,197,94,.08); }
  50% { box-shadow: 0 16px 38px rgba(216,148,29,.3), 0 0 34px rgba(243,197,94,.22); }
}

html { transition: opacity .19s ease, filter .19s ease; }
html.page-is-leaving { opacity: 0; filter: blur(4px); }

html.motion-ready .motion-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s cubic-bezier(.2,.72,.2,1), transform .55s cubic-bezier(.2,.72,.2,1), border-color .25s ease, box-shadow .25s ease; transition-delay: var(--reveal-delay, 0ms); }
html.motion-ready .motion-reveal.is-visible { opacity: 1; transform: none; }
html.motion-ready .button.motion-reveal.is-visible:hover,
html.motion-ready .button.motion-reveal.is-visible:focus-visible { transform: translateY(-2px); }
html.motion-ready .capabilities article.motion-reveal.is-visible:hover,
html.motion-ready .case-card.motion-reveal.is-visible:hover,
html.motion-ready .work-level-card.motion-reveal.is-visible:hover,
html.motion-ready .tariff-card.motion-reveal.is-visible:hover,
html.motion-ready .stat-card.motion-reveal.is-visible:hover,
html.motion-ready .story-card.motion-reveal.is-visible:hover,
html.motion-ready .benefit-card.motion-reveal.is-visible:hover,
html.motion-ready .case-link-card.motion-reveal.is-visible:hover,
html.motion-ready .channel-card.motion-reveal.is-visible:hover,
html.motion-ready .video-link.motion-reveal.is-visible:hover,
html.motion-ready .payment-row.motion-reveal.is-visible:hover,
html.motion-ready .price-card.motion-reveal.is-visible:hover { transform: translateY(-5px); }

.hero-actions .button:first-child,
.final-cta .button,
.case-feature .button,
.case-cta .button { animation: mentor-cta-glow 3.2s ease-in-out infinite; }

.capabilities article,
.work-level-card,
.tariff-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; }

.capabilities article:hover,
.work-level-card:hover,
.tariff-card:hover { transform: translateY(-4px); border-color: rgba(216,148,29,.68); box-shadow: 0 18px 42px rgba(3,20,38,.11), 0 0 24px rgba(216,148,29,.08); }

.question-dialog[open] { animation: mentor-dialog-in .28s cubic-bezier(.2,.72,.2,1) both; }
.question-dialog[open]::backdrop { animation: mentor-backdrop-in .2s ease both; }
.question-dialog.is-closing { animation: mentor-dialog-out .22s ease both; }

@keyframes mentor-dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
}

@keyframes mentor-dialog-out {
  to { opacity: 0; transform: translateY(14px) scale(.985); }
}

@keyframes mentor-backdrop-in {
  from { opacity: 0; }
}

@media (max-width: 1020px) {
  .nav-links { position: absolute; top: 88px; right: 0; left: 0; display: none; align-items: stretch; padding: 18px; border: 1px solid rgba(243,197,94,.3); border-radius: 12px; background: rgba(2,13,26,.98); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links > a { padding: 9px 4px; }
  .nav-links > a::after { bottom: 3px; transform-origin: left; }
  .nav-links .button { width: 100%; margin-top: 6px; }
  .menu-toggle.icon-button { display: inline-grid; }
  .hero { min-height: 620px; background-position: 58% center; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li::after { display: none; }
  .case-feature { grid-template-columns: .8fr 1.2fr; }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .work-level-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 740px) {
  .shell { width: min(100% - 20px, 700px); }
  .section { padding: 76px 0; }
  .brand-mark { width: 44px; height: 52px; }
  .brand small { display: none; }
  .hero-brand { min-height: 88px; padding-top: 8px; }
  .hero-brand .brand { gap: 10px; }
  .hero-brand .brand-mark { width: 56px; height: 62px; }
  .hero-brand .brand strong { font-size: 1.13rem; }
  .hero-brand .brand small { display: block; max-width: 205px; font-size: .7rem; }
  .nav { min-height: 82px; }
  .hero .nav { width: min(100% - 20px, 620px); min-height: 74px; margin-top: 10px; padding-inline: 12px; border-radius: 13px; }
  .nav-links { top: 75px; }
  .hero { min-height: 720px; background-image: linear-gradient(180deg, rgba(2,13,26,.42), rgba(2,13,26,.94) 72%), url("assets/images/hero-reference-v3.png"); background-position: 72% center; }
  .hero-content { justify-content: flex-end; padding-bottom: 62px; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 4rem); }
  .hero h1 br { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 190px; }
  .hero-trust { gap: 11px 18px; }
  .capabilities { grid-template-columns: 1fr; margin-top: 20px; }
  .capabilities article { min-height: 92px; }
  .topics-section { padding-top: 64px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid li { min-height: 68px; padding: 11px; font-size: .82rem; }
  .process-list { grid-template-columns: 1fr; gap: 25px; }
  .case-feature { width: min(100% - 28px, 620px); grid-template-columns: 1fr; }
  .case-feature-image { min-height: 220px; background: linear-gradient(0deg, var(--navy-900), transparent 50%), url("assets/images/case-bank-hero.webp") center/cover; }
  .case-feature-content { padding: 28px 22px; }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
  .metric-row > div { padding: 10px 5px; }
  .metric-row strong { font-size: .97rem; }
  .case-grid, .tariff-grid { grid-template-columns: 1fr; }
  .case-card img, .document-visual { height: 210px; }
  .tariff-card.popular { transform: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-layout > div:first-child { position: static; }
  .final-cta .shell { flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .dialog-panel { padding: 38px 20px 24px; }
}

@media (max-width: 430px) {
  .hero-trust span:last-child { display: none; }
  .capabilities article > svg { width: 35px; height: 35px; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic-grid .topic-wide { grid-column: auto; justify-content: flex-start; }
  .topic-grid svg { width: 1.25rem; }
  .metric-row { grid-template-columns: 1fr; }
  .filter-bar { justify-content: center; overflow: visible; flex-wrap: wrap; padding-bottom: 0; }
  .filter-bar button { flex: 0 0 auto; }
  .tariff-card { padding: 28px 24px; }
  .question-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html.page-is-leaving { opacity: 1; filter: none; }
  html.motion-ready .motion-reveal { opacity: 1; transform: none; }
}

/* Compact reference composition for the home page */
@media (min-width: 741px) {
  .reference-home .shell { width: min(1600px, calc(100% - clamp(40px, 5vw, 96px))); }
  .reference-home .capabilities,
  .reference-home .topics-section > .shell,
  .reference-home .process-section > .shell,
  .reference-home .tariffs-section > .shell,
  .reference-home .case-feature { width: calc(100% - clamp(24px,2.5vw,48px)); max-width: none; }
  .reference-home .hero { min-height: clamp(640px, 47vw, 760px); }
  .reference-home .hero-brand { min-height: 170px; padding-top: 24px; }
  .reference-home .hero .nav { min-height: 80px; margin-top: 14px; padding-inline: 18px; border-radius: 14px; }
  .reference-home .brand { gap: 18px; }
  .reference-home .brand-mark { width: 104px; height: 116px; }
  .reference-home .brand strong { font-size: 1.8rem; }
  .reference-home .brand small { max-width: 320px; font-size: .88rem; line-height: 1.4; }
  .reference-home .nav-links { gap: 19px; font-size: .9rem; }
  .reference-home .nav-links .button { min-height: 44px; padding-inline: 18px; font-size: .94rem; }
  .reference-home .hero-content { padding-top: 0; padding-bottom: 52px; }
  .reference-home .hero h1 { max-width: 720px; font-size: clamp(2.7rem, 3.5vw, 3.4rem); line-height: 1.12; }
  .reference-home .hero-lead { max-width: 650px; margin-top: 24px; font-size: 1.18rem; line-height: 1.62; }
  .reference-home .hero-actions { margin-top: 34px; }
  .reference-home .hero-actions .button { min-height: 58px; padding-inline: 30px; font-size: 1.14rem; }

  .reference-home .capabilities { gap: 10px; margin-top: 18px; }
  .reference-home .capabilities article { min-height: 104px; gap: 15px; padding: 18px 20px; border-radius: 10px; box-shadow: 0 9px 24px rgba(3,20,38,.06); }
  .reference-home .capabilities article > svg { width: 40px; height: 40px; }
  .reference-home .capabilities h2 { font-size: 1.18rem; }
  .reference-home .capabilities p { font-size: .86rem; }

  .reference-home .section-heading { margin-bottom: 14px; }
  .reference-home .section-heading h2,
  .reference-home .faq-layout h2 { font-size: 1.85rem; line-height: 1.15; }
  .reference-home .topics-section { padding: 24px 0 2px; background: radial-gradient(circle at 80% 10%,#fff1d8 0,transparent 26%),var(--paper); }
  .reference-home .topic-grid { gap: 8px 11px; }
  .reference-home .topic-grid li { min-height: 54px; gap: 11px; padding: 10px 16px; border-radius: 8px; font-size: .92rem; }
  .reference-home .topic-grid svg { width: 1.45rem; height: 1.45rem; }

  .reference-home .process-section { padding: 14px 0 20px; }
  .reference-home .process-section .section-heading { margin-bottom: 12px; }
  .reference-home .process-list { gap: 28px; }
  .reference-home .process-list li { grid-template-columns: 46px 1fr; gap: 13px; }
  .reference-home .process-list li > span { width: 46px; height: 46px; font-size: 1.18rem; }
  .reference-home .process-list li:not(:last-child)::after { top: 23px; right: -23px; width: 19px; }
  .reference-home .process-list h3 { margin: 0 0 4px; font-size: 1.06rem; }
  .reference-home .process-list p { font-size: .84rem; line-height: 1.45; }

  .reference-home .case-feature { min-height: 184px; margin-bottom: 0; border-radius: 11px; }
  .reference-home .case-feature-image { min-height: 184px; }
  .reference-home .case-feature-content { padding: 14px 22px; }
  .reference-home .case-feature .eyebrow { margin-bottom: 3px; }
  .reference-home .case-feature h2 { margin-bottom: 9px; font-size: 1.58rem; }
  .reference-home .metric-row { gap: 8px; margin: 8px 0 0; }
  .reference-home .metric-row > div { padding: 9px 5px; border-radius: 7px; }
  .reference-home .metric-row strong { font-size: 1.12rem; }
  .reference-home .metric-row span { font-size: .76rem; }
  .reference-home .case-feature .text-link { display: none; }

  .reference-home .tariffs-section { padding: 12px 0 20px; }
  .reference-home .tariffs-section .eyebrow,
  .reference-home .tariffs-section .section-heading > p:last-child,
  .reference-home .security-note { display: none; }
  .reference-home .tariffs-section .section-heading { margin-bottom: 13px; }
  .reference-home .work-level-grid { gap: 14px; }
  .reference-home .work-level-card { grid-template-columns: 44px 1fr; min-height: 112px; gap: 14px; padding: 18px; border-radius: 10px; box-shadow: 0 6px 18px rgba(3,20,38,.04); }
  .reference-home .work-level-card > svg { width: 40px; height: 40px; }
  .reference-home .work-level-card h3 { margin-bottom: 5px; font-size: 1.1rem; }
  .reference-home .work-level-card p { font-size: .84rem; line-height: 1.45; }

  .reference-home .faq-section { padding: 10px 0 18px; background: var(--paper); }
  .reference-home .faq-layout { display: block; }
  .reference-home .faq-layout > div:first-child { position: static; text-align: center; }
  .reference-home .faq-layout > div:first-child .eyebrow,
  .reference-home .faq-layout > div:first-child > p:not(.eyebrow),
  .reference-home .faq-layout > div:first-child > .button { display: none; }
  .reference-home .faq-layout h2 { margin-bottom: 14px; }
  .reference-home .faq-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); max-width: 1320px; margin-inline: auto; gap: 8px 10px; border: 0; }
  .reference-home .faq-list details { grid-column: span 2; }
  .reference-home .faq-list details:nth-child(n+4) { grid-column: span 3; }
  .reference-home .faq-list details { align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.78); }
  .reference-home .faq-list summary { min-height: 42px; padding: 7px 12px; gap: 9px; font-size: .86rem; line-height: 1.25; text-align: left; }
  .reference-home .faq-list summary span { font-size: 1.25rem; }
  .reference-home .faq-list details p { margin: 0; padding: 1px 12px 11px; color: #3f4d5b; font-size: .79rem; line-height: 1.45; text-align: left; }

  .reference-home .final-cta .shell { min-height: 86px; gap: 28px; }
  .reference-home .final-cta .eyebrow { display: none; }
  .reference-home .final-cta h2 { font-size: 1.7rem; }
  .reference-home .final-cta p:last-child { margin: 3px 0 0; font-size: .88rem; }
  .reference-home .final-cta .button { min-width: 225px; min-height: 48px; }

  .reference-home .footer { padding: 20px 0 10px; }
  .reference-home .footer-grid { grid-template-columns: 1.15fr .8fr 1.15fr .85fr; gap: 25px; }
  .reference-home .footer .brand-mark { width: 54px; height: 62px; }
  .reference-home .footer .brand strong { font-size: 1.05rem; }
  .reference-home .footer h2 { margin-bottom: 6px; font-size: .96rem; }
  .reference-home .footer-grid > div { gap: 3px; font-size: .82rem; }
  .reference-home .copyright { margin-top: 11px; padding-top: 9px; font-size: .7rem; }
}

@media (min-width: 901px) and (max-width: 1020px) {
  .reference-home .menu-toggle.icon-button { display: none; }
  .reference-home .nav-links { position: static; display: flex; align-items: center; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .reference-home .nav-links > a { padding: 0; }
  .reference-home .nav-links .button { width: auto; margin-top: 0; }
  .reference-home .capabilities { grid-template-columns: repeat(4,1fr); }
  .reference-home .topic-grid { grid-template-columns: repeat(4,1fr); }
  .reference-home .process-list { grid-template-columns: repeat(4,1fr); }
  .reference-home .metric-row { grid-template-columns: repeat(5,1fr); }
  .reference-home .work-level-grid { grid-template-columns: repeat(3,1fr); }
  .reference-home .footer-grid { grid-template-columns: 1.15fr .8fr 1.15fr .85fr; }
}

@media (max-width: 740px) {
  .reference-home .hero { min-height: 700px; background-position: 68% center; }
  .reference-home .hero-content { justify-content: flex-end; padding-top: 10px; padding-bottom: 46px; }
  .reference-home .hero h1 { font-size: clamp(2.45rem,11.5vw,3.6rem); line-height: 1.04; }
  .reference-home .hero-lead { max-width: 34rem; margin-top: 22px; color: rgba(255,255,255,.84); font-size: 1rem; line-height: 1.56; }
  .reference-home .hero-actions { gap: 10px; margin-top: 28px; }
  .reference-home .hero-actions .button { min-height: 54px; }
  .reference-home .section { padding: 38px 0; }
  .reference-home .section-heading { margin-bottom: 22px; }
  .reference-home .section-heading h2,
  .reference-home .faq-layout h2 { font-size: 1.9rem; }

  .reference-home .capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .reference-home .capabilities article { min-height: 122px; gap: 11px; padding: 17px 13px; }
  .reference-home .capabilities article > div { min-width: 0; }
  .reference-home .capabilities article > svg { width: 36px; height: 36px; }
  .reference-home .capabilities h2 { font-size: 1.05rem; }
  .reference-home .capabilities p { font-size: .86rem; }

  .reference-home .topics-section { padding-top: 34px; }
  .reference-home .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .reference-home .topic-grid li { min-height: 50px; padding: 8px 10px; }

  .reference-home .process-section { padding: 18px 0 28px; }
  .reference-home .process-section .section-heading { margin-bottom: 18px; }
  .reference-home .process-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .reference-home .process-list li { grid-template-columns: 42px 1fr; gap: 10px; }
  .reference-home .process-list li > span { width: 42px; height: 42px; font-size: 1.1rem; }
  .reference-home .process-list h3 { margin: 0 0 4px; font-size: 1rem; }
  .reference-home .process-list p { font-size: .86rem; }

  .reference-home .case-feature-image { min-height: 170px; }
  .reference-home .case-feature-content { padding: 18px 16px 20px; }
  .reference-home .case-feature h2 { font-size: 1.4rem; }
  .reference-home .metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .reference-home .metric-row > div { padding: 8px 5px; }
  .reference-home .metric-row > div:last-child { grid-column: 1/-1; }
  .reference-home .case-feature .text-link { margin-top: 12px; }

  .reference-home .tariffs-section { padding: 30px 0; }
  .reference-home .tariffs-section .eyebrow,
  .reference-home .tariffs-section .section-heading > p:last-child,
  .reference-home .security-note { display: none; }
  .reference-home .tariffs-section .section-heading { margin-bottom: 16px; }
  .reference-home .work-level-grid { gap: 8px; }
  .reference-home .work-level-card { grid-template-columns: 40px 1fr; min-height: 102px; gap: 12px; padding: 16px; }
  .reference-home .work-level-card > svg { width: 36px; height: 36px; }
  .reference-home .work-level-card h3 { margin-bottom: 4px; font-size: 1rem; }
  .reference-home .work-level-card p { font-size: .86rem; }

  .reference-home .faq-section { padding: 28px 0 34px; }
  .reference-home .faq-layout { display: block; }
  .reference-home .faq-layout > div:first-child { position: static; text-align: center; }
  .reference-home .faq-layout > div:first-child .eyebrow,
  .reference-home .faq-layout > div:first-child > p:not(.eyebrow),
  .reference-home .faq-layout > div:first-child > .button { display: none; }
  .reference-home .faq-layout h2 { margin-bottom: 14px; font-size: 1.72rem; }
  .reference-home .faq-list { display: grid; grid-template-columns: 1fr; gap: 7px; border: 0; }
  .reference-home .faq-list details,
  .reference-home .faq-list details:nth-child(n+4) { grid-column: auto; }
  .reference-home .faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .reference-home .faq-list summary { min-height: 46px; padding: 8px 12px; font-size: .91rem; line-height: 1.28; text-align: left; }
  .reference-home .faq-list details p { margin: 0; padding: 0 12px 12px; color: #3f4d5b; font-size: .82rem; line-height: 1.46; text-align: left; }

  .reference-home .final-cta .shell { min-height: 0; padding: 30px 0; }
  .reference-home .final-cta .eyebrow { display: none; }
  .reference-home .final-cta h2 { font-size: 1.9rem; }
  .reference-home .final-cta p:last-child { margin: 5px 0 0; font-size: .82rem; }
  .reference-home .final-cta .button { width: 100%; min-width: 0; }

  .reference-home .footer { padding: 28px 0 14px; }
  .reference-home .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .reference-home .footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
  .reference-home .footer-grid > div { gap: 5px; font-size: .88rem; }
  .reference-home .copyright { margin-top: 20px; padding-top: 12px; }

  .messenger-panel { gap: 18px; padding: 50px 12px 18px; }
  .messenger-panel .dialog-heading { padding-inline: 10px; }
  .messenger-panel .dialog-heading h2 { font-size: 1.72rem; line-height: 1.08; }
  .messenger-grid { grid-template-columns: 1fr; gap: 12px; }
  .messenger-choice { border-radius: 12px; }
  .messenger-choice img { border-radius: 18px; clip-path: inset(0 round 18px); }
  .messenger-choice > span { min-height: 52px; padding: 8px 12px; }
  .messenger-choice small { font-size: .72rem; text-align: right; }
  .messenger-note { align-items: flex-start; padding-inline: 8px; font-size: .74rem; text-align: left; }
}

@media (max-width: 560px) {
  .reference-home .capabilities { grid-template-columns: 1fr; }
  .reference-home .capabilities article { min-height: 88px; }
  .reference-home .process-list { grid-template-columns: 1fr; gap: 17px; }
  .reference-home .footer-grid { grid-template-columns: 1fr; }
  .reference-home .footer .brand small { display: block; }
}

@media (min-width: 741px) {
  html { font-size: 17px; }
}

/* Approved footer layouts v4: main/standard and cases variants. */
.footer-reference-cta,
.footer-reference {
  color: rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 76% 4%,rgba(20,73,110,.34),transparent 34%),
    linear-gradient(135deg,#00101f 0%,#00192f 52%,#001124 100%);
}
.footer-reference-cta,
.footer-final-cta { border-bottom: 1px solid rgba(243,197,94,.78); }
.footer-reference-cta .shell,
.footer-final-cta .shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  min-height: clamp(176px,11.8vw,235px);
  align-items: center;
  gap: clamp(32px,5vw,88px);
  padding-block: 34px;
}
.footer-reference-cta h2,
.footer-final-cta h2 {
  margin: 0;
  color: #f1c655;
  font: 500 clamp(2.35rem,3.55vw,4.45rem)/1 Georgia,"Times New Roman",serif;
  letter-spacing: -.025em;
}
.footer-reference-cta p,
.footer-final-cta p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.91);
  font-size: clamp(1.05rem,1.55vw,1.82rem);
  line-height: 1.32;
}
.footer-reference-cta .button,
.footer-final-cta .button {
  min-width: clamp(230px,16.5vw,330px);
  min-height: clamp(58px,5vw,90px);
  padding-inline: clamp(24px,2.7vw,46px);
  justify-content: center;
  color: #11100d;
  font: 500 clamp(1.05rem,1.45vw,1.7rem) Georgia,"Times New Roman",serif;
  box-shadow: 0 12px 26px rgba(216,148,29,.23),inset 0 1px 0 rgba(255,255,255,.45);
}
.footer-reference {
  padding: 0 0 clamp(42px,4vw,70px);
}
.footer-reference .footer-grid {
  align-items: start;
  gap: 0;
  padding-top: clamp(54px,4.5vw,86px);
}
.footer-reference-standard .footer-grid {
  grid-template-columns: 1.2fr .9fr 1.25fr .82fr;
}
.footer-reference-cases .footer-grid {
  grid-template-columns: 1fr .78fr 1.72fr;
}
.footer-reference .footer-grid > div {
  min-height: 220px;
  gap: 10px;
  padding-left: clamp(28px,3.1vw,56px);
  border-left: 1px solid rgba(216,148,29,.78);
  font-size: clamp(.95rem,1.2vw,1.28rem);
}
.footer-reference .footer-grid > .footer-cases { min-height: 220px; }
.footer-reference .footer-brand {
  align-items: center;
  gap: clamp(18px,2vw,34px);
  padding-right: clamp(24px,3vw,52px);
}
.footer-reference .footer-brand .brand-mark {
  width: clamp(96px,7.4vw,148px);
  height: auto;
}
.footer-reference .footer-brand strong {
  font: 500 clamp(1.65rem,2.25vw,2.8rem)/1.05 Georgia,"Times New Roman",serif;
}
.footer-reference .footer-brand small {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.88);
  font-size: clamp(.96rem,1.15vw,1.28rem);
  line-height: 1.32;
}
.footer-reference h2 {
  margin: 0 0 6px;
  color: #f1c655;
  font: 500 clamp(1.55rem,1.85vw,2.25rem)/1.08 Georgia,"Times New Roman",serif;
}
.footer-reference a,
.footer-reference .footer-link {
  width: fit-content;
  color: rgba(255,255,255,.91);
  font: inherit;
  line-height: 1.35;
}
.footer-case-links {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-top: 10px;
}
.footer-case-links a {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(216,148,29,.9);
  border-radius: 5px;
  text-align: center;
  transition: color .2s ease,border-color .2s ease,background-color .2s ease;
}
.footer-case-links a:hover,
.footer-case-links a:focus-visible {
  color: #f6d77e;
  border-color: #f6d77e;
  background: rgba(216,148,29,.08);
}
.footer-cases-page .case-cta { display: none; }

/* The compact home-page theme has older high-specificity footer rules. */
.reference-home .footer-reference-cta .shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  min-height: clamp(176px,11.8vw,235px);
  gap: clamp(32px,5vw,88px);
  padding-block: 34px;
}
.reference-home .footer-reference-cta h2 {
  color: #f1c655;
  font: 500 clamp(2.35rem,3.55vw,4.45rem)/1 Georgia,"Times New Roman",serif;
}
.reference-home .footer-reference-cta p:last-child {
  margin: 12px 0 0;
  color: rgba(255,255,255,.91);
  font-size: clamp(1.05rem,1.55vw,1.82rem);
  line-height: 1.32;
}
.reference-home .footer-reference-cta .button {
  width: auto;
  min-width: clamp(230px,16.5vw,330px);
  min-height: clamp(58px,5vw,90px);
}
.reference-home .footer.footer-reference { padding: 0 0 clamp(42px,4vw,70px); }
.reference-home .footer-reference .footer-grid { gap: 0; padding-top: clamp(54px,4.5vw,86px); }
.reference-home .footer-reference .footer-grid > div {
  gap: 10px;
  font-size: clamp(.95rem,1.2vw,1.28rem);
}
.reference-home .footer-reference .footer-brand strong {
  font: 500 clamp(1.65rem,2.25vw,2.8rem)/1.05 Georgia,"Times New Roman",serif;
}
.reference-home .footer-reference .footer-brand small {
  display: block;
  margin-top: 12px;
  font-size: clamp(.96rem,1.15vw,1.28rem);
  line-height: 1.32;
}
.reference-home .footer-reference h2 {
  margin-bottom: 6px;
  font: 500 clamp(1.55rem,1.85vw,2.25rem)/1.08 Georgia,"Times New Roman",serif;
}

@media (max-width: 1120px) {
  .footer-reference-standard .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 0; }
  .footer-reference-standard .footer-grid > :nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-reference-cases .footer-grid { grid-template-columns: .9fr 1fr; gap: 38px 0; }
  .footer-reference-cases .footer-cases { grid-column: 1 / -1; min-height: 0; padding: 34px 0 0; border-top: 1px solid rgba(216,148,29,.5); border-left: 0; }
}

@media (max-width: 740px) {
  .footer-reference-cta .shell,
  .footer-final-cta .shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 38px;
  }
  .footer-reference-cta h2,
  .footer-final-cta h2 { font-size: clamp(2rem,9.5vw,3rem); }
  .footer-reference-cta p,
  .footer-final-cta p { margin-top: 10px; font-size: 1rem; }
  .footer-reference-cta .button,
  .footer-final-cta .button { width: 100%; min-height: 58px; }
  .footer-reference-standard .footer-grid,
  .footer-reference-cases .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-reference .footer-grid > div,
  .footer-reference-cases .footer-cases {
    grid-column: auto;
    min-height: 0;
    padding: 26px 0 0;
    border-top: 1px solid rgba(216,148,29,.45);
    border-left: 0;
  }
  .footer-reference .footer-brand { padding: 0; }
  .footer-reference .footer-brand .brand-mark { width: 82px; }
  .footer-reference .footer-brand strong { font-size: 1.65rem; }
  .footer-reference .footer-brand small { font-size: .95rem; }
  .footer-case-links { grid-template-columns: 1fr; gap: 9px; }
  .footer-case-links a { min-height: 52px; }
  .reference-home .footer-reference-cta .shell {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding-block: 38px;
  }
  .reference-home .footer-reference-cta h2 { font-size: clamp(2rem,9.5vw,3rem); }
  .reference-home .footer-reference-cta p:last-child { margin-top: 10px; font-size: 1rem; }
  .reference-home .footer-reference-cta .button { width: 100%; min-width: 0; min-height: 58px; }
  .reference-home .footer.footer-reference { padding: 0 0 42px; }
  .reference-home .footer-reference .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Footer typography and responsive layout v7. */
.footer-reference-cta .shell,
.footer-final-cta .shell,
.footer-reference > .shell {
  width: min(1600px, calc(100% - clamp(24px, 4vw, 72px)));
}

.footer-reference-cta h2,
.footer-reference .footer-final-cta h2,
.reference-home .footer-reference-cta h2 {
  max-width: 1500px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 3.25vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  text-wrap: balance;
}

.footer-reference-cta p,
.footer-reference .footer-final-cta p,
.reference-home .footer-reference-cta p:last-child {
  max-width: 1120px;
  font-family: var(--detail);
  font-size: clamp(1.05rem, 1.5vw, 1.82rem);
  font-weight: 400;
  line-height: 1.42;
}

.footer-reference-cta .button,
.footer-reference .footer-final-cta .button,
.reference-home .footer-reference-cta .button {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.footer-reference .footer-brand strong,
.reference-home .footer-reference .footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.04;
}

.footer-reference .footer-brand small,
.reference-home .footer-reference .footer-brand small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
}

.footer-reference h2,
.reference-home .footer-reference h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.footer-reference .footer-grid > div,
.reference-home .footer-reference .footer-grid > div {
  font-size: clamp(1rem, 1.32vw, 1.5rem);
}

.footer-reference-standard .footer-grid {
  grid-template-columns: 1.32fr .97fr 1.21fr .9fr;
}

.footer-reference-cases .footer-grid {
  grid-template-columns: 1.15fr .72fr 1.75fr;
}

.footer-reference-standard .footer-grid > div,
.reference-home .footer-reference-standard .footer-grid > div {
  font-size: clamp(1rem, 1.16vw, 1.32rem);
}

.footer-reference a,
.footer-reference .footer-link {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.42;
}

.footer-reference .footer-link {
  text-align: left;
}

.footer-reference a:focus-visible,
.footer-reference .footer-link:focus-visible {
  outline: 2px solid #f3c55e;
  outline-offset: 4px;
}

@media (min-width: 1600px) {
  .footer-reference .footer-grid {
    padding-top: clamp(64px, 4vw, 82px);
  }

  .footer-reference .footer-grid > div {
    gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 1120px) {
  .footer-reference-cta .shell,
  .footer-reference .footer-final-cta .shell,
  .reference-home .footer-reference-cta .shell {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    gap: clamp(24px, 4vw, 48px);
  }

  .footer-reference-cta h2,
  .footer-reference .footer-final-cta h2,
  .reference-home .footer-reference-cta h2 {
    font-size: clamp(2.35rem, 5.1vw, 3.35rem);
  }

  .footer-reference-standard .footer-grid,
  .reference-home .footer-reference-standard .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .footer-reference-standard .footer-grid > div,
  .reference-home .footer-reference-standard .footer-grid > div {
    min-height: 0;
    padding-top: 0;
    border-top: 0;
  }

  .footer-reference-standard .footer-grid > :nth-child(2),
  .footer-reference-standard .footer-grid > :nth-child(4),
  .reference-home .footer-reference-standard .footer-grid > :nth-child(2),
  .reference-home .footer-reference-standard .footer-grid > :nth-child(4) {
    padding-left: clamp(24px, 4vw, 44px);
    border-left: 1px solid rgba(216,148,29,.78);
  }

  .footer-reference-standard .footer-grid > :nth-child(3),
  .reference-home .footer-reference-standard .footer-grid > :nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-reference-cases .footer-grid {
    grid-template-columns: .9fr 1fr;
    gap: 34px 0;
  }

  .footer-reference-cases .footer-cases {
    grid-column: 1 / -1;
    padding: 30px 0 0;
    border-top: 1px solid rgba(216,148,29,.5);
    border-left: 0;
  }

  .footer-case-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-reference-cta .shell,
  .footer-reference .footer-final-cta .shell,
  .reference-home .footer-reference-cta .shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 32px;
  }

  .footer-reference-cta h2,
  .footer-reference .footer-final-cta h2,
  .reference-home .footer-reference-cta h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.04;
  }

  .footer-reference-cta p,
  .footer-reference .footer-final-cta p,
  .reference-home .footer-reference-cta p:last-child {
    margin-top: 10px;
    font-size: clamp(.98rem, 4.2vw, 1.08rem);
    line-height: 1.45;
  }

  .footer-reference-cta .button,
  .footer-reference .footer-final-cta .button,
  .reference-home .footer-reference-cta .button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    font-size: 1.08rem;
  }

  .footer-reference,
  .reference-home .footer.footer-reference {
    padding-bottom: 36px;
  }

  .footer-reference .footer-grid,
  .reference-home .footer-reference .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 32px;
  }

  .footer-reference .footer-grid > div,
  .footer-reference-cases .footer-cases,
  .reference-home .footer-reference .footer-grid > div {
    min-height: 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(216,148,29,.45);
    border-left: 0;
    font-size: 1.05rem;
  }

  .footer-reference .footer-brand,
  .reference-home .footer-reference .footer-brand {
    gap: 18px;
    padding: 0;
  }

  .footer-reference .footer-brand .brand-mark {
    width: clamp(76px, 22vw, 92px);
  }

  .footer-reference .footer-brand strong,
  .reference-home .footer-reference .footer-brand strong {
    font-size: clamp(1.7rem, 7vw, 2rem);
  }

  .footer-reference .footer-brand small,
  .reference-home .footer-reference .footer-brand small {
    margin-top: 8px;
    font-size: 1rem;
  }

  .footer-reference h2,
  .reference-home .footer-reference h2 {
    margin-bottom: 4px;
    font-size: 1.65rem;
  }

  .footer-case-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .footer-case-links a {
    min-height: 50px;
    padding: 8px 10px;
    font-size: .95rem;
    line-height: 1.25;
  }
}

@media (max-width: 360px) {
  .footer-reference-cta .shell,
  .footer-reference .footer-final-cta .shell,
  .reference-home .footer-reference-cta .shell {
    padding-block: 28px;
  }

  .footer-reference-cta h2,
  .footer-reference .footer-final-cta h2,
  .reference-home .footer-reference-cta h2 {
    font-size: 2rem;
  }

  .footer-reference .footer-grid,
  .reference-home .footer-reference .footer-grid {
    padding-top: 28px;
  }

  .footer-reference .footer-brand,
  .reference-home .footer-reference .footer-brand {
    align-items: flex-start;
  }

  .footer-reference .footer-brand .brand-mark {
    width: 72px;
  }

  .footer-reference .footer-brand strong,
  .reference-home .footer-reference .footer-brand strong {
    font-size: 1.58rem;
  }

  .footer-reference .footer-brand small,
  .reference-home .footer-reference .footer-brand small {
    font-size: .94rem;
  }
}

/* Compact footer composition v8. */
.footer-reference-cta .shell,
.footer-reference .footer-final-cta .shell,
.reference-home .footer-reference-cta .shell {
  min-height: clamp(140px, 9vw, 176px);
  gap: clamp(28px, 3.5vw, 58px);
  padding-block: 24px;
}

.footer-reference-cta h2,
.footer-reference .footer-final-cta h2,
.reference-home .footer-reference-cta h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.02;
}

.footer-reference-cta p,
.footer-reference .footer-final-cta p,
.reference-home .footer-reference-cta p:last-child {
  margin-top: 8px;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  line-height: 1.35;
}

.footer-reference-cta .button,
.footer-reference .footer-final-cta .button,
.reference-home .footer-reference-cta .button {
  min-width: clamp(210px, 14vw, 280px);
  min-height: clamp(52px, 3.8vw, 68px);
  padding-inline: clamp(20px, 2.1vw, 34px);
  font-size: clamp(1rem, 1.15vw, 1.4rem);
}

.footer-reference,
.reference-home .footer.footer-reference {
  padding-bottom: clamp(26px, 2.4vw, 40px);
}

.footer-reference .footer-grid,
.reference-home .footer-reference .footer-grid {
  padding-top: clamp(34px, 2.8vw, 48px);
}

.footer-reference .footer-grid > div,
.reference-home .footer-reference .footer-grid > div,
.footer-reference .footer-grid > .footer-cases {
  min-height: 164px;
  gap: 6px;
  padding-left: clamp(22px, 2.3vw, 38px);
  font-size: clamp(.95rem, 1.05vw, 1.25rem);
}

.footer-reference-standard .footer-grid > div,
.reference-home .footer-reference-standard .footer-grid > div {
  font-size: clamp(.94rem, .95vw, 1.12rem);
}

.footer-reference .footer-brand,
.reference-home .footer-reference .footer-brand {
  gap: clamp(14px, 1.5vw, 24px);
  padding-right: clamp(18px, 2vw, 32px);
}

.footer-reference .footer-brand .brand-mark {
  width: clamp(78px, 5.8vw, 112px);
}

.footer-reference .footer-brand strong,
.reference-home .footer-reference .footer-brand strong {
  font-size: clamp(1.65rem, 2vw, 2.4rem);
}

.footer-reference .footer-brand small,
.reference-home .footer-reference .footer-brand small {
  margin-top: 7px;
  font-size: clamp(.92rem, 1vw, 1.15rem);
  line-height: 1.3;
}

.footer-reference h2,
.reference-home .footer-reference h2 {
  margin-bottom: 3px;
  font-size: clamp(1.45rem, 1.65vw, 1.95rem);
}

.footer-case-links {
  gap: 9px;
  margin-top: 6px;
}

.footer-case-links a {
  min-height: 52px;
  padding: 8px 12px;
}

@media (min-width: 641px) and (max-width: 1120px) {
  .footer-reference-cta .shell,
  .footer-reference .footer-final-cta .shell,
  .reference-home .footer-reference-cta .shell {
    min-height: 150px;
    gap: 24px;
    padding-block: 22px;
  }

  .footer-reference-cta h2,
  .footer-reference .footer-final-cta h2,
  .reference-home .footer-reference-cta h2 {
    font-size: clamp(2rem, 4.3vw, 2.7rem);
  }

  .footer-reference .footer-grid,
  .reference-home .footer-reference .footer-grid {
    gap: 24px 0;
    padding-top: 30px;
  }

  .footer-reference .footer-grid > div,
  .reference-home .footer-reference .footer-grid > div {
    gap: 5px;
  }

  .footer-reference-cases .footer-cases {
    min-height: 0;
    padding-top: 22px;
  }

  .footer-reference.footer-reference-cases .footer-grid > .footer-cases {
    padding-inline: 0;
  }
}

@media (max-width: 640px) {
  .footer-reference-cta .shell,
  .footer-reference .footer-final-cta .shell,
  .reference-home .footer-reference-cta .shell {
    gap: 16px;
    padding-block: 24px;
  }

  .footer-reference-cta h2,
  .footer-reference .footer-final-cta h2,
  .reference-home .footer-reference-cta h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .footer-reference-cta p,
  .footer-reference .footer-final-cta p,
  .reference-home .footer-reference-cta p:last-child {
    margin-top: 7px;
    font-size: clamp(.92rem, 3.8vw, 1rem);
  }

  .footer-reference-cta .button,
  .footer-reference .footer-final-cta .button,
  .reference-home .footer-reference-cta .button {
    min-height: 52px;
    font-size: 1rem;
  }

  .footer-reference,
  .reference-home .footer.footer-reference {
    padding-bottom: 28px;
  }

  .footer-reference .footer-grid,
  .reference-home .footer-reference .footer-grid {
    gap: 16px;
    padding-top: 24px;
  }

  .footer-reference .footer-grid > div,
  .footer-reference-cases .footer-cases,
  .reference-home .footer-reference .footer-grid > div {
    min-height: 0;
    gap: 4px;
    padding-top: 15px;
    padding-inline: 0;
    font-size: 1rem;
  }

  .footer-reference .footer-brand,
  .reference-home .footer-reference .footer-brand {
    gap: 14px;
  }

  .footer-reference .footer-brand .brand-mark {
    width: clamp(64px, 19vw, 78px);
  }

  .footer-reference .footer-brand strong,
  .reference-home .footer-reference .footer-brand strong {
    font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  }

  .footer-reference .footer-brand small,
  .reference-home .footer-reference .footer-brand small {
    margin-top: 5px;
    font-size: .91rem;
  }

  .footer-reference h2,
  .reference-home .footer-reference h2 {
    font-size: 1.48rem;
  }

  .footer-case-links {
    gap: 8px;
    margin-top: 5px;
  }

  .footer-case-links a {
    min-height: 46px;
    padding: 7px 8px;
    font-size: .9rem;
  }
}

@media (max-width: 360px) {
  .footer-reference-cta .shell,
  .footer-reference .footer-final-cta .shell,
  .reference-home .footer-reference-cta .shell {
    padding-block: 22px;
  }

  .footer-reference .footer-grid,
  .reference-home .footer-reference .footer-grid {
    padding-top: 22px;
  }

  .footer-reference .footer-brand .brand-mark {
    width: 62px;
  }
}
