/* Highland Bureau — site styles v2 (elegant, white, photographic).
   Type: Montserrat (headings) + Lato (body), as on the TSCCI site. Brand: navy #2E2D62, teal #2CBFA6, deep teal #1F9C88 */
:root {
  --navy: #2E2D62; --navy-900: #1C1B40; --saltire: #0065BD; --saltire-700: #004C8F; --saltire-50: #EEF5FC; --scot-900: #0B1E3B; --scot-800: #12305C; --heather: #7A5A9A; --teal: #2CBFA6; --teal-deep: #1F9C88; --teal-50: #F1FAF8;
  --ink: #17172B; --text: #3B3C4E; --muted: #6A6C7E; --line: #E6E7EE; --line-2: #D5D7E2; --paper: #FAFAFC; --white: #fff;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif; --body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .55em; }
h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.1vw, 42px); font-weight: 700; letter-spacing: -.022em; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--saltire); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--saltire) 0 60%, var(--teal) 60%); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 680px; line-height: 1.65; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--display); letter-spacing: .01em; padding: 17px 28px; border: 1.5px solid transparent; border-radius: 2px; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn-navy { --fill: var(--navy); --on: #fff; color: var(--navy); border-color: var(--navy); }
.btn-line { --fill: var(--teal); --on: var(--navy-900); color: var(--navy); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--teal); }
.btn-white { --fill: #fff; --on: var(--navy); color: #fff; border-color: rgba(255,255,255,.75); }
.btn-teal { --fill: var(--teal); --on: var(--navy-900); color: #fff; border-color: var(--teal); }
.btn-ghost { --fill: #fff; --on: var(--navy); color: #fff; border-color: rgba(255,255,255,.55); }
.link { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link::after { content: "→"; transition: transform .25s; } .link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.utility { border-bottom: 1px solid var(--line); font-size: 13.5px; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.utility a { color: var(--muted); text-decoration: none; } .utility a:hover { color: var(--navy); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: flex; align-items: center; gap: 28px; height: 104px; }
.brand img { height: 84px; width: auto; }
.nav { display: flex; align-items: stretch; gap: 2px; margin: 0 0 0 auto; padding: 0; height: 100%; list-style: none; }
.nav > li { display: flex; align-items: center; }
.nav > li > a, .nav > li > button { font: 600 15px var(--display); color: var(--ink); background: none; border: 0; padding: 10px 14px; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 7px; height: 100%; position: relative; }
.nav > li > a::after, .nav > li > button::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .25s; }
.nav > li:hover > a::after, .nav > li:hover > button::before, .nav > li.open > button::before { transform: scaleX(1); }
.nav > li > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav .cta { margin-left: 14px; } .nav .cta a::after { display: none; }
.nav > li > a, .nav > li > button { white-space: nowrap; }
@media (min-width: 1141px) and (max-width: 1400px) {
  .nav > li > a, .nav > li > button { padding: 10px 10px; font-size: 14.5px; }
  .nav > li > a::after, .nav > li > button::before { left: 10px; right: 10px; }
  .nav .cta { margin-left: 8px; } .nav .cta a.btn { padding: 12px 18px; }
}
.site-header .brand { flex-shrink: 0; }
@media (min-width: 1141px) and (max-width: 1260px) { .brand img { height: 68px; } }
.nav .cta a.btn { height: auto; padding: 13px 22px; color: var(--navy); border: 1.5px solid var(--navy); --fill: var(--navy); --on: #fff; background: linear-gradient(var(--navy), var(--navy)) no-repeat left center / 0% 100%; }
.nav .cta a.btn:hover { background-size: 100% 100%; }
.nav .cta a.btn:hover { color: #fff; }
.mega { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; background-color: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(23,23,43,.10); display: none; }
.nav > li:hover .mega, .nav > li.open .mega, .nav > li:focus-within .mega { display: block; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 30px 36px; height: auto; padding-top: 36px; padding-bottom: 40px; align-items: start; }
.mega h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 10px; }
.mega h4 a { color: inherit; text-decoration: none; }
.mega ul { list-style: none; margin: 0 0 6px; padding: 0; }
.mega li a { display: block; font-size: 15px; color: var(--text); text-decoration: none; padding: 3px 0; }
.mega li a:hover { color: var(--navy); }
.mega .feature-link { grid-column: 5; grid-row: 1 / span 3; text-decoration: none; color: var(--ink); }
.mega .feature-link img { aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 14px; }
.mega .feature-link strong { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.mega .feature-link span { font-size: 14px; color: var(--muted); }
.mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 30px; flex-wrap: wrap; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--navy); margin: 7px 8px; }

/* ---------- hero (home) ---------- */
.hero { padding: 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { margin-bottom: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero .trust b { color: var(--ink); font-weight: 700; }
.photo-frame { position: relative; isolation: isolate; }
.photo-frame img { width: 100%; aspect-ratio: 5/6; object-fit: cover; }
.photo-frame::before { content: ""; position: absolute; right: -24px; top: -24px; width: 38%; height: 46%; z-index: -1;
  background: linear-gradient(to top right, transparent calc(50% - 9px), #fff calc(50% - 8px), #fff calc(50% + 8px), transparent calc(50% + 9px)), linear-gradient(to bottom right, transparent calc(50% - 9px), #fff calc(50% - 8px), #fff calc(50% + 8px), transparent calc(50% + 9px)), var(--saltire); }
.photo-frame::after { content: ""; position: absolute; left: -24px; bottom: -24px; width: 30%; height: 28%; border: 1.5px solid var(--navy); z-index: -1; }
.floatcard { position: absolute; left: -48px; bottom: 48px; background: #fff; padding: 18px 22px; box-shadow: 0 24px 50px rgba(23,23,43,.16); display: flex; gap: 14px; align-items: center; min-width: 290px; }
.floatcard .tick { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.floatcard .tick::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--navy-900); border-bottom: 2.5px solid var(--navy-900); transform: rotate(-45deg) translate(1px,-1px); }
.floatcard strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 15px; }
.floatcard small { color: var(--muted); font-size: 13px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 72px; }
.page-hero.has-photo .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.page-hero.has-photo .photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); max-width: 860px; }
.crumbs { font-size: 13.5px; margin-bottom: 36px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--navy); }
.page-hero.has-photo .crumbs { grid-column: 1 / -1; margin-bottom: -24px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { display: inline-block; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-2); color: var(--text); }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.rule { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head h2 { margin: 0; }
.stats { padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .inner { display: contents; }
.stat { padding: 40px 28px 44px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4vw, 52px); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.bodies-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.body-item { padding: 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.body-item strong { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.body-item strong::before { content: ""; width: 8px; height: 8px; background: var(--teal); flex: none; }
.body-item span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* service groups as an editorial list */
.group-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; border-top: 1px solid var(--line); }
.group-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.group-row svg { width: 30px; height: 30px; stroke: var(--teal-deep); margin-top: 2px; }
.group-row h3 { margin: 0 0 6px; transition: color .2s; }
.group-row p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.group-row .count { font-family: var(--display); font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.group-row:hover h3 { color: var(--teal-deep); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border-top: 1.5px solid var(--ink); padding-top: 22px; transition: border-color .25s; }
.card:hover { border-top-color: var(--teal); color: var(--text); }
.card h3 { margin: 6px 0 8px; } .card:hover h3 { color: var(--navy); }
.card p { font-size: 15px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.card .meta { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.card .more { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--navy); }

.photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.photo-card { text-decoration: none; color: var(--text); display: block; }
.photo-card .img { overflow: hidden; margin-bottom: 22px; }
.photo-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card h3 { margin: 0 0 8px; } .photo-card:hover h3 { color: var(--navy); }
.photo-card p { font-size: 15px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 14.5px; transition: border-color .2s, color .2s; }
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 12.5px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.feature.flip .feature-img { order: 2; }
.feature-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.feature-img.wide img { aspect-ratio: 4/3; }
.points { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.points li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.points strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.points span { font-size: 15px; color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step { border-top: 1px solid var(--line-2); padding-top: 24px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--teal-deep); margin-bottom: 18px; letter-spacing: .08em; }
.step h3 { margin-bottom: 8px; } .step p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 820px; }

.banner { position: relative; padding: 0; }
.banner img { width: 100%; height: 560px; object-fit: cover; }
.banner .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46,45,98,.9) 0%, rgba(46,45,98,.58) 45%, rgba(46,45,98,0) 75%); display: flex; align-items: center; }
.banner h2 { color: #fff; max-width: 560px; } .banner p { color: rgba(255,255,255,.85); max-width: 500px; }
.banner .eyebrow { color: var(--teal); }

.cta-band { padding: 104px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 88px; align-items: start; }
.prose h2 { font-size: 27px; margin-top: 56px; } .prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.prose ul.ticks li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); }
.prose ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 11px; height: 6px; border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(-45deg); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 14px; }
.prose ol { padding-left: 20px; } .prose ol li { margin-bottom: 8px; }
.callout { border-left: 2px solid var(--teal); padding: 6px 0 6px 24px; margin: 36px 0; }
.callout p { color: var(--ink); } .callout p:last-child { margin: 0; }
.aside { position: sticky; top: 130px; border: 1px solid var(--line); padding: 30px; }
.aside .head strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.aside .head span { font-size: 14px; color: var(--muted); }
.aside dl { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.aside dt { font-family: var(--display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 18px; }
.aside dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.aside .actions { margin-top: 26px; display: grid; gap: 10px; }

/* services finder */
.finder { display: grid; grid-template-columns: 1fr 280px; gap: 14px; margin-bottom: 20px; }
.finder input, .finder select, .form input, .form select, .form textarea { width: 100%; font: 16px var(--body); padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; color: var(--ink); }
.finder input:focus, .finder select:focus, .form :is(input, select, textarea):focus { outline: 2px solid rgba(44,191,166,.45); outline-offset: 0; border-color: var(--teal-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { font: 500 13.5px var(--display); padding: 9px 15px; border: 1px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; border-radius: 40px; }
.chip.on, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.finder-count { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.group-block { margin-bottom: 72px; }
.group-block > h2 { font-size: 22px; margin-bottom: 26px; }
.group-block > h2 a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 7px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); }
.form .check input { width: auto; margin-top: 5px; }
.form .error { color: #B42318; font-size: 14px; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.success { border-left: 2px solid var(--teal); padding: 6px 0 6px 20px; margin-bottom: 28px; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #B9BAD6; font-size: 14.5px; }
.site-footer .top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-top: 80px; padding-bottom: 56px; }
.site-footer img { height: 84px; width: auto; margin-bottom: 22px; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #DCDDF0; text-decoration: none; } .site-footer a:hover { color: var(--teal); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 28px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Scottish touches ---------- */
.tartan { height: 7px; background:
  repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.55) 18px 19px, transparent 19px 46px, rgba(44,191,166,.9) 46px 52px, transparent 52px 64px),
  repeating-linear-gradient(90deg, var(--navy) 0 26px, var(--saltire) 26px 40px, var(--navy) 40px 64px); }
.site-footer .tartan { height: 6px; }

/* ---------- interaction ---------- */
.site-header { transition: box-shadow .3s; }
.site-header > .wrap, .brand img { transition: height .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23,23,43,.07); }
.site-header.scrolled > .wrap { height: 88px; } .site-header.scrolled .brand img { height: 66px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s } .reveal-stagger.in > *:nth-child(3) { transition-delay: .16s } .reveal-stagger.in > *:nth-child(4) { transition-delay: .24s }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s } .reveal-stagger.in > *:nth-child(6) { transition-delay: .4s } .reveal-stagger.in > *:nth-child(n+7) { transition-delay: .46s }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

/* live verification card in hero */
.floatcard { transition: opacity .35s ease, transform .35s ease; }
.floatcard.swap { opacity: 0; transform: translateY(8px); }
.floatcard .tick { position: relative; }
.floatcard .tick.pending { background: var(--saltire-50); }
.floatcard .tick.pending::after { width: 16px; height: 16px; border: 2px solid var(--saltire); border-top-color: transparent; border-radius: 50%; transform: none; animation: spin .8s linear infinite; border-left-color: var(--saltire); border-bottom-color: var(--saltire); }
@keyframes spin { to { transform: rotate(360deg); } }
.floatcard .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--teal); width: 0; }
.floatcard .bar.run { animation: bar 3.6s linear forwards; }
@keyframes bar { to { width: 100%; } }

/* check finder (home) */
.finder-tool { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.ft-q { margin-bottom: 28px; }
.ft-q > span { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { font: 500 14px var(--display); padding: 11px 16px; border: 1px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; border-radius: 2px; transition: all .2s; }
.seg button:hover { border-color: var(--navy); color: var(--navy); }
.seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg button { display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] .saltire-flag { box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.ft-toggles label { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.ft-toggles input { width: 18px; height: 18px; accent-color: var(--navy); }
.ft-result { border: 1px solid var(--line); padding: 34px 36px; position: relative; }
.ft-result::before { content: ""; position: absolute; left: -1px; top: -1px; right: -1px; height: 3px; background: linear-gradient(90deg, var(--saltire), var(--teal)); }
.ft-result h3 { margin-bottom: 4px; } .ft-result .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.ft-list { list-style: none; padding: 0; margin: 0 0 24px; }
.ft-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: ftIn .4s ease both; }
.ft-list li:nth-child(2) { animation-delay: .05s } .ft-list li:nth-child(3) { animation-delay: .1s } .ft-list li:nth-child(4) { animation-delay: .15s } .ft-list li:nth-child(5) { animation-delay: .2s } .ft-list li:nth-child(6) { animation-delay: .25s }
@keyframes ftIn { from { opacity: 0; transform: translateX(-8px); } }
.ft-list .n { font-family: var(--display); font-size: 12px; color: var(--saltire); padding-top: 3px; font-weight: 600; }
.ft-list a { font-family: var(--display); font-weight: 600; color: var(--ink); text-decoration: none; } .ft-list a:hover { color: var(--saltire); }
.ft-list small { display: block; color: var(--muted); font-size: 14px; }

/* systems logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 36px 20px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.logo-img { height: 46px; display: flex; align-items: center; gap: 10px; }
.logo-img img { height: 38px; max-width: 170px; width: auto; transition: transform .35s ease; }
.logo-img span { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.logo-tile em { font-style: normal; font-family: var(--body); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--saltire); background: var(--saltire-50); padding: 4px 9px; opacity: .85; }
.logo-tile:hover { background: var(--paper); }
.logo-tile:hover img { transform: scale(1.06); }
.sys-more { margin: 26px 0 0; color: var(--muted); font-size: 15px; max-width: 900px; }
/* systems wall */
.systems { overflow: hidden; }
.sys-row { position: relative; margin-bottom: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sys-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.sys-row.rev .sys-track { animation-direction: reverse; animation-duration: 56s; }
.sys-row:hover .sys-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sys { display: flex; align-items: center; gap: 10px; padding: 18px 26px; border: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: #4D4F63; white-space: nowrap; background: #fff; transition: color .2s, border-color .2s; }
.sys:hover { color: var(--navy); border-color: var(--line-2); }
.sys em { font-style: normal; font-family: var(--body); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--saltire); background: var(--saltire-50); padding: 3px 7px; }
.sys em.live { color: var(--teal-deep); background: var(--teal-50); }
.sys-label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sys-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 28px; }
.sys-note strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.sys-note span { font-size: 14.5px; color: var(--muted); }

/* industry showcase */
.showcase { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: stretch; }
.sc-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sc-tabs button { position: relative; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); transition: color .25s, padding .25s; }
.sc-tabs button span { font-family: var(--display); font-weight: 600; font-size: 16.5px; }
.sc-tabs button small { font-size: 12.5px; color: var(--muted); }
.sc-tabs button:hover { color: var(--ink); }
.sc-tabs button[aria-selected="true"] { color: var(--ink); padding-left: 16px; }
.sc-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--saltire); }
.sc-bar { position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--teal); }
.sc-tabs button[aria-selected="true"] .sc-bar.run { animation: bar var(--dur, 7s) linear forwards; }
.sc-all { margin-top: 22px; }
.sc-panels { display: grid; }
.sc-panel { grid-area: 1 / 1; display: grid; grid-template-rows: 400px auto; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.sc-panel.on { opacity: 1; visibility: visible; }
.sc-img { overflow: hidden; min-height: 0; } .sc-img img { display: block; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.sc-panel.on .sc-img img { transform: scale(1); }
.sc-body { background: #fff; margin: -72px 0 0 48px; position: relative; padding: 32px 36px 0; }
.sc-body h3 { font-size: 24px; margin-bottom: 10px; }
.sc-body p { color: var(--muted); font-size: 15.5px; max-width: 620px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.sc-chips a { font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.sc-chips a:hover { border-color: var(--saltire); color: var(--saltire); }

/* live dashboard demo */
.demo { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.demo-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.demo-steps li { position: relative; border-bottom: 1px solid var(--line); }
.demo-steps button { width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 10px; text-align: left; background: none; border: 0; padding: 22px 0; cursor: pointer; color: var(--muted); font: inherit; font-size: 14.5px; line-height: 1.55; }
.demo-steps b { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--line-2); padding-top: 2px; transition: color .25s; }
.demo-steps strong { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); margin-bottom: 2px; transition: color .25s; }
.demo-steps li.on b { color: var(--saltire); } .demo-steps li.on strong { color: var(--ink); }
.demo-steps li:not(.on) button span { max-height: 26px; overflow: hidden; display: block; }
.demo-bar { position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--teal); }
.demo-steps li.on .demo-bar.run { animation: bar var(--dur, 5s) linear forwards; }
.demo-window { border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(23,23,43,.12); background: #fff; }
.dw-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dw-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dw-bar span { margin-left: 12px; font-size: 12.5px; color: var(--muted); font-family: var(--display); font-weight: 500; }
.dw-body { display: grid; }
.dw-screen { grid-area: 1 / 1; padding: 28px 32px; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.dw-screen.on { opacity: 1; transform: none; }
.dw-k { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.dw-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.dw-fields div { border: 1px solid var(--line); padding: 10px 12px; }
.dw-fields small { display: block; font-size: 11.5px; color: var(--muted); } .dw-fields b { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink); }
.dw-checks { list-style: none; margin: 0; padding: 0; }
.dw-checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.tg { width: 30px; height: 17px; border-radius: 20px; background: var(--line-2); position: relative; flex: none; }
.tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .3s; }
.tg.on { background: var(--saltire); } .tg.on::after { left: 15px; }
.dw-checks.done li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%231C1B40' stroke-width='1.8'/%3E%3C/svg%3E") center/16px no-repeat; flex: none; }
.dw-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dw-row b { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); display: block; } .dw-row small { font-size: 13px; color: var(--muted); }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--saltire-50); color: var(--saltire); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 12.5px; }
.pill-s { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; }
.pill-s.blue { background: var(--saltire-50); color: var(--saltire); } .pill-s.amber { background: #FFF5E0; color: #9A6200; }
.dw-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.dw-prog { display: grid; grid-template-columns: 190px 1fr 130px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.dw-prog i { height: 6px; background: var(--line); border-radius: 6px; position: relative; overflow: hidden; }
.dw-prog i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--saltire), var(--teal)); border-radius: 6px; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.dw-screen.on .dw-prog i::after { width: var(--p); }
.dw-prog em { font-style: normal; font-size: 12.5px; color: var(--muted); text-align: right; } .dw-prog em.ok { color: var(--teal-deep); font-weight: 700; }
.dw-result { display: flex; gap: 16px; align-items: center; padding: 6px 0 22px; }
.big-tick { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); position: relative; flex: none; transform: scale(.6); transition: transform .5s cubic-bezier(.2,1.6,.4,1) .2s; }
.big-tick::after { content: ""; position: absolute; left: 17px; top: 18px; width: 18px; height: 10px; border-left: 3px solid var(--navy-900); border-bottom: 3px solid var(--navy-900); transform: rotate(-45deg); }
.dw-screen.on .big-tick { transform: scale(1); }
.dw-result b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); } .dw-result small { color: var(--muted); }
.dw-actions { display: flex; gap: 16px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.dw-btn { background: var(--navy); color: #fff; font-family: var(--display); font-weight: 600; font-size: 13px; padding: 11px 16px; }
.dw-rem { font-size: 13px; color: var(--muted); }

/* refinements */
.group-row { position: relative; }
.group-row::after { content: "→"; position: absolute; right: 0; bottom: 28px; color: var(--saltire); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; }
.group-row:hover::after { opacity: 1; transform: none; }
.photo-frame img { transition: transform .4s ease-out; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 46px; height: 46px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; box-shadow: 0 10px 24px rgba(23,23,43,.08); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* hero with photo on the left: mirror the saltire block and outline, card sits on the right edge */
.hero-flip .photo-frame::before { right: auto; left: -24px; }
.hero-flip .photo-frame::after { left: auto; right: -24px; }
.hero-flip .floatcard { left: -48px; right: auto; }

/* ---------- v3: HireRight-inspired foundation ---------- */
.hero-full { position: relative; padding: 0; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hf-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 70% 30%; transform: scale(1.04); animation: hfZoom 14s ease-out forwards; }
@keyframes hfZoom { to { transform: scale(1); } }
.hf-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,27,64,.94) 0%, rgba(28,27,64,.82) 38%, rgba(28,27,64,.35) 68%, rgba(28,27,64,.1) 100%); }
.hf-inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
.hf-copy { max-width: 680px; }
.hero-full h1 { color: #fff; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.08; margin-bottom: 22px; }
.hero-full .eyebrow { color: #9FE3D6; } .hero-full .eyebrow::before { background: var(--teal); }
.hero-full .lead { color: rgba(255,255,255,.86); }
.hero-full .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-full .floatcard { position: relative; left: auto; bottom: auto; margin-bottom: 8px; }

.stats-panel { padding: 0; margin-top: -1px; }
.sp-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--saltire-50); margin-top: 56px; padding: 34px 12px; }
.sp-inner .stat { border: 0; border-left: 1.5px dotted #9CC3E8; text-align: center; padding: 6px 20px; }
.sp-inner .stat:first-child { border-left: 0; padding-left: 20px; }
.sp-inner .stat b { font-weight: 700; color: var(--saltire); font-size: clamp(38px, 4.4vw, 56px); }
.sp-inner .stat span { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15px; margin-top: 8px; }

.news { padding-top: 88px; }
.news-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.news-intro { border-right: 1px solid var(--line); padding-right: 36px; }
.news-intro h2 { font-size: clamp(26px, 2.4vw, 32px); }
.news-intro p { color: var(--muted); }
.slider-nav { display: flex; gap: 10px; margin-top: 18px; }
.slider-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.slider-nav button:hover { background: var(--navy); border-color: var(--navy); }
.slider-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2; }
.slider-nav button:hover svg { stroke: #fff; }
.slider-nav button:disabled { opacity: .35; cursor: default; background: #fff; } .slider-nav button:disabled svg { stroke: var(--navy); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 2.35); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; outline: none; }
.slider::-webkit-scrollbar { display: none; }
.dark-card { scroll-snap-align: start; background: var(--navy); color: #C9CADC; border-radius: 10px; padding: 30px 30px 28px; text-decoration: none; display: flex; flex-direction: column; min-height: 320px; transition: transform .3s ease, background .3s; }
.dark-card:hover { transform: translateY(-4px); background: var(--navy-900); color: #C9CADC; }
.dc-k { font-family: var(--display); font-weight: 600; font-size: 12.5px; color: #fff; margin-bottom: 12px; }
.dark-card h3 { color: #fff; font-size: 22px; line-height: 1.25; }
.dark-card:first-child h3 { color: var(--teal); }
.dark-card p { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.dc-cta { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: #fff; }
.dc-cta::after { content: " ›"; color: var(--teal); }

.shadow-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shadow-card { display: flex; flex-direction: column; background: #fff; padding: 28px 24px 24px; text-decoration: none; color: var(--text); box-shadow: 0 1px 2px rgba(23,23,43,.05), 0 10px 28px rgba(23,23,43,.08); transition: transform .3s, box-shadow .3s; position: relative; }
.shadow-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--saltire), var(--teal)); transition: width .35s; }
.shadow-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(23,23,43,.06), 0 22px 44px rgba(23,23,43,.12); color: var(--text); }
.shadow-card:hover::before { width: 100%; }
.shadow-card h3 { font-size: 20px; margin: 8px 0 10px; }
.shadow-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.shadow-card .meta { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saltire); }
.sc-more { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--saltire); }
.sc-more::after { content: " ›"; }

.dark-band { background: var(--navy); color: #C9CADC; }
.dark-band h2, .dark-band h3, .dark-band strong { color: #fff; }
.dark-band .section-head p, .dark-band .sys-more, .dark-band .sys-note span, .dark-band .note { color: #A9AAC2; }
.dark-band a { color: #9FE3D6; }
.dark-band .eyebrow { color: #9FE3D6; }
.dark-band .logo-wall { border-color: rgba(255,255,255,.1); }
.dark-band .logo-tile { border-color: rgba(255,255,255,.1); }
.dark-band .logo-tile:hover { background: rgba(255,255,255,.04); }
.dark-band .logo-img img { filter: brightness(0) invert(1) opacity(.82); }
.dark-band .logo-tile:hover img { filter: brightness(0) invert(1); }
.dark-band .logo-img span { color: #fff; }
.dark-band .logo-tile em { background: rgba(0,101,189,.25); color: #A8CCF0; }
.dark-band .sys-note { border-color: rgba(255,255,255,.1); }

.final-cta { padding: 96px 0; }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fc-card { padding: 52px 48px; display: flex; flex-direction: column; align-items: flex-start; }
.fc-card h2 { font-size: clamp(24px, 2.4vw, 32px); }
.fc-card p { margin-bottom: 28px; }
.fc-dark { background: var(--navy); color: #C9CADC; } .fc-dark h2 { color: #fff; } .fc-dark .eyebrow { color: #9FE3D6; }
.fc-light { background: var(--saltire-50); } .fc-light p { color: var(--text); }

/* ---------- check finder v2 interactions ---------- */
.seg { position: relative; display: inline-flex; flex-wrap: nowrap; gap: 0; padding: 4px; border: 1px solid var(--line-2); background: #fff; border-radius: 3px; max-width: 100%; }
.seg button { position: relative; z-index: 1; border: 0 !important; background: transparent !important; padding: 12px 18px; color: var(--text); transition: color .3s ease; border-radius: 2px; white-space: nowrap; }
.seg button:hover { color: var(--navy); }
.seg button[aria-pressed="true"] { color: #fff !important; }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; background: var(--navy); border-radius: 2px; box-shadow: 0 6px 16px rgba(46,45,98,.25); transition: left .38s cubic-bezier(.3,1.3,.5,1), width .38s cubic-bezier(.3,1.3,.5,1); }
.seg button::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 0; height: 0; }
.ft-toggles .sw-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 14px; margin: 0 -14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .25s; }
.ft-toggles .sw-row:hover { background: var(--paper); }
.sw-row input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 42px; height: 24px; border-radius: 24px; background: var(--line-2); position: relative; transition: background .3s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.sw-row input:checked + .sw { background: var(--teal); }
.sw-row input:checked + .sw::after { transform: translateX(18px); }
.sw-row input:focus-visible + .sw { outline: 3px solid rgba(44,191,166,.45); outline-offset: 2px; }
.sw-text { font-size: 15px; color: var(--text); line-height: 1.45; }
.sw-text small { display: block; font-size: 13px; color: var(--muted); }
.sw-row:has(input:checked) { background: var(--teal-50); }
.sw-row:has(input:checked) .sw-text { color: var(--ink); }
.ft-title { display: flex; align-items: center; gap: 12px; }
.ft-badge { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 34px; background: var(--navy); color: #fff; font-size: 15px; transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .3s; }
.ft-badge.bump { transform: scale(1.25); background: var(--teal); color: var(--navy-900); }
.ft-list li { transition: background .6s ease; }
.ft-list li.added { background: var(--teal-50); }
.ft-list li .tag-new { display: inline-block; margin-left: 8px; font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: #fff; border: 1px solid var(--teal); padding: 2px 6px; vertical-align: 2px; animation: fadeTag 2.4s ease forwards; }
@keyframes fadeTag { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.ft-list li { padding-left: 10px; padding-right: 10px; margin: 0 -10px; }

/* ---------- interactive buttons: outlined, fill sweeps in from the left ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(var(--fill, var(--navy)), var(--fill, var(--navy))) no-repeat left center / 0% 100%; border-width: 1.5px; border-style: solid;
  transition: background-size .38s cubic-bezier(.2,.7,.2,1), color .3s ease, border-color .3s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.btn:hover { background-size: 100% 100%; color: var(--on, #fff); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(46,45,98,.16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arr { display: inline-block; width: 0; opacity: 0; overflow: hidden; transform: translateX(-6px); transition: width .25s ease, opacity .25s ease, transform .25s ease; }
.btn:hover .arr { width: 1em; opacity: 1; transform: none; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.4); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.btn:focus-visible { outline: 3px solid rgba(44,191,166,.45); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; height: auto; padding: 8px 0 24px; border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(23,23,43,.12); max-height: calc(100vh - 104px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > li { flex-direction: column; align-items: stretch; }
  .nav > li > a, .nav > li > button { padding: 15px 32px; width: 100%; justify-content: space-between; }
  .nav > li > a::after, .nav > li > button::before { display: none; }
  .nav > li:hover .mega { display: none; } .nav > li.open .mega { display: block; }
  .mega { position: static; box-shadow: none; border: 0; background: var(--paper); }
  .mega .wrap { grid-template-columns: 1fr 1fr; padding-top: 20px; padding-bottom: 20px; }
  .mega .feature-link { display: none; }
  .nav .cta { margin: 12px 32px 0; }
  .hero .wrap, .feature, .page-hero.has-photo .wrap { grid-template-columns: 1fr; gap: 56px; }
  .feature.flip .feature-img { order: 0; }
  .photo-frame img { aspect-ratio: 4/3; }
  .floatcard { left: 16px; bottom: -28px; }
  .hero-flip .floatcard { left: 16px; right: auto; }
  .cards, .cards.four, .photo-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bodies-row { grid-template-columns: repeat(2, 1fr); }
  .group-list { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 48px; } .aside { position: static; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .page-hero.has-photo .crumbs { margin-bottom: 0; }
  .finder-tool { grid-template-columns: 1fr; gap: 40px; }
  .seg { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sys-note { grid-template-columns: 1fr; gap: 16px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .showcase, .demo { grid-template-columns: 1fr; gap: 32px; }
  .hf-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 64px; }
  .hf-shade { background: linear-gradient(90deg, rgba(28,27,64,.92) 0%, rgba(28,27,64,.75) 60%, rgba(28,27,64,.45) 100%); }
  .sp-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } .sp-inner .stat:nth-child(3) { border-left: 0; }
  .news-grid { grid-template-columns: 1fr; gap: 28px; } .news-intro { border: 0; padding: 0; }
  .slider { grid-auto-columns: 70%; }
  .shadow-cards { grid-template-columns: repeat(2, 1fr); }
  .fc-grid { grid-template-columns: 1fr; }
  .sc-tabs { flex-direction: row; overflow-x: auto; border-top: 0; gap: 22px; scrollbar-width: none; }
  .sc-tabs button { flex: none; padding: 12px 0; } .sc-tabs button small, .sc-all { display: none; }
  .sc-tabs button[aria-selected="true"] { padding-left: 0; } .sc-tabs button[aria-selected="true"]::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 3px; }
  .sc-panel { grid-template-rows: 300px auto; }
  .sc-body { margin: -48px 0 0 20px; padding: 24px 24px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  section { padding: 72px 0; }
  .utility .wrap { justify-content: space-between; gap: 12px; font-size: 12.5px; }
  .site-header > .wrap { height: 80px; } .brand img { height: 54px; }
  .site-header.scrolled > .wrap { height: 70px; } .site-header.scrolled .brand img { height: 48px; }
  .nav { max-height: calc(100vh - 80px); }
  .mega .wrap { grid-template-columns: 1fr; }
  .cards, .cards.four, .cards.two, .photo-cards, .bodies-row, .steps { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; } .stat { padding: 26px 14px 28px; } .stat:nth-child(odd) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 0; }
  .finder, .form { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .photo-frame::before { right: -10px; top: -10px; } .photo-frame::after { left: -10px; bottom: -10px; }
  .hero-flip .photo-frame::before { left: -10px; right: auto; } .hero-flip .photo-frame::after { right: -10px; left: auto; }
  .floatcard { position: relative; left: auto; right: auto; bottom: auto; min-width: 0; margin: -32px 14px 0; }
  .banner img { height: 480px; }
  .banner .overlay { background: linear-gradient(0deg, rgba(28,27,64,.92) 0%, rgba(28,27,64,.6) 60%, rgba(28,27,64,.2) 100%); align-items: flex-end; padding-bottom: 36px; }
  .group-row { grid-template-columns: 36px 1fr; } .group-row .count { display: none; }
  .hero-full { min-height: 0; } .hf-shade { background: rgba(28,27,64,.82); }
  .hero-full .floatcard { margin: 6px 0 0; }
  .sp-inner { margin-top: 32px; padding: 26px 4px; } .sp-inner .stat { padding: 4px 8px; }
  .slider { grid-auto-columns: 86%; } .dark-card { min-height: 300px; padding: 26px 24px; }
  .shadow-cards { grid-template-columns: 1fr; }
  .fc-card { padding: 38px 26px; }
  .sc-panel { grid-template-rows: 220px auto; } .sc-body { margin: -36px 0 0 12px; padding: 20px 18px 0; }
  .dw-screen { padding: 20px 18px; }
  .dw-fields { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; } .dw-fields div:last-child { grid-column: 1 / -1; }
  .dw-prog { grid-template-columns: 1fr 90px; } .dw-prog em { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } *, *::before, *::after { animation: none !important; transition: none !important; } .reveal, .reveal-stagger > * { opacity: 1; transform: none; } }
