/* Comptrust Accounting (demo): site styles. Fonts are self-hosted (no third-party requests), so the strict CSP works.
   Inter (UI and headings) and Fraunces (editorial accents) are variable fonts under the SIL Open Font Licence. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #1f3a68;
  --navy-dark: #142846;
  --navy-deep: #0d1c36;
  --ink: #17223b;
  --text: #50657e;          /* 5.4:1 on the tint, 5.9:1 on white (WCAG AA) */
  --accent: #d01d50;          /* white text on it: 5.3:1 */
  --accent-dark: #c01a4a;
  --teal: #3aa7c9;
  --gold: #f2b84b;
  --tint: #f3f6fb;
  --line: #e2e8f1;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(20, 40, 70, 0.10);
  --font-head: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, .h1 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 650; color: var(--ink); letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }

/* Editorial accent: one word per heading in italic serif */
h1 em, h2 em, .h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 440; color: var(--accent); letter-spacing: 0; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.section { padding: 100px 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-dark); color: #c7d3e6; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9em;
}
.eyebrow--line { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow--line::before { content: ""; width: 34px; height: 2px; background: currentColor; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; }

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(225, 36, 90, 0.35); }
.btn:hover::after { left: 120%; }
.btn--small { padding: 10px 22px; font-size: 0.78rem; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: none; }

.btn-ghost { color: var(--white); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.btn-ghost::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(5px); }

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}
.link-more::after { content: " \2192"; display: inline-block; transition: transform 0.25s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }

/* Top bar */
.topbar { background: var(--navy-deep); color: #b9c6da; font-size: 0.86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.topbar__info { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__info li { display: flex; align-items: center; gap: 8px; }
.topbar svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
.topbar a { color: #e6edf7; }
.topbar a:hover { color: var(--white); }
.topbar__call { margin: 0; }
.topbar__call a { font-weight: 700; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 40, 70, 0.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.45rem; color: var(--navy); }
.logo strong { color: var(--accent); }
.logo--light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { position: relative; color: var(--ink); font-weight: 600; font-size: 0.97rem; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease); }
.nav ul a:hover, .nav ul a.is-active { color: var(--accent); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: ""; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; left: 0; }
.nav-toggle__bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; background: var(--navy-deep); overflow: hidden; padding: 70px 0 150px; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; animation: kenburns 28s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 15% 40%, rgba(13, 28, 54, 0.95), rgba(13, 28, 54, 0.6) 60%, rgba(13, 28, 54, 0.35));
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, 1%); } }

.hero__ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.12); z-index: 1; pointer-events: none; }
.hero__ring--one { width: 520px; height: 520px; left: -180px; top: -160px; animation: spin 60s linear infinite; }
.hero__ring--two { width: 260px; height: 260px; right: 8%; bottom: -120px; border-color: rgba(225, 36, 90, 0.35); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; align-items: center; }
.hero__slides { position: relative; display: grid; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero h1, .hero .h1 { color: var(--white); }
.hero .lead { color: #d3dded; font-size: 1.12rem; max-width: 520px; margin-bottom: 1.8em; }
.hero .eyebrow { color: #ff7ea1; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Layered entrance for each slide (re-plays every time a slide becomes active) */
.hero__slide .eyebrow { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.hero__slide .lead { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s; }
.hero__slide .hero__actions { opacity: 0; transform: scale(0.92); transition: opacity 0.6s var(--ease) 0.75s, transform 0.6s var(--ease) 0.75s; }
.hero__slide.is-active .eyebrow, .hero__slide.is-active .lead, .hero__slide.is-active .hero__actions { opacity: 1; transform: none; }

.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word__inner { display: inline-block; transform: translateY(105%); transition: transform 0.75s var(--ease); transition-delay: calc(0.15s + var(--i, 0) * 0.07s); }
.hero__slide.is-active .word__inner { transform: none; }

.hero__controls { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.hero__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--white);
  font-size: 1.1rem; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button, .testimonials__dots button {
  width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: width 0.3s, background 0.3s;
  position: relative;
}
/* Invisible 28 px hit area around the small dots (WCAG 2.2 target size) */
.hero__dots button::before, .testimonials__dots button::before { content: ""; position: absolute; inset: -8px; }
.hero__dots button[aria-selected="true"], .testimonials__dots button[aria-selected="true"] { width: 34px; background: var(--accent); }

/* Live document sorting panel */
.stream-panel {
  margin: 0; background: rgba(9, 20, 40, 0.72); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); overflow: hidden;
  animation: panel-in 1s var(--ease) 0.3s both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
.stream-panel__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.stream-panel__bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff6b81; }
.stream-panel__bar span:nth-child(2) { background: var(--gold); }
.stream-panel__bar span:nth-child(3) { background: #4fd18b; }
.stream-panel__bar p { margin: 0 0 0 10px; color: #9fb2cf; font-size: 0.82rem; letter-spacing: 0.04em; }
.stream-panel canvas { display: block; width: 100%; height: auto; aspect-ratio: 56 / 38; }
.stream-panel__caption { margin: 0; padding: 12px 18px 16px; color: #9fb2cf; font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------------------------------------------------------------- Scroll animations (WOW-style) */
[data-anim] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.anim-ready[data-anim] { opacity: 0; }
.anim-ready[data-anim="fade-up"] { transform: translateY(40px); }
.anim-ready[data-anim="fade-left"] { transform: translateX(50px); }
.anim-ready[data-anim="fade-right"] { transform: translateX(-50px); }
.anim-ready[data-anim="zoom"] { transform: scale(0.88); }
.anim-ready[data-anim].is-in { opacity: 1; transform: none; }

/* Feature cards overlapping the hero */
.features { position: relative; z-index: 3; margin-top: -90px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover .icon-badge { transform: rotateY(180deg); }
.feature-card__tag { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 0.2em; }

.icon-badge {
  width: 62px; height: 62px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--navy); margin-bottom: 18px;
  transition: transform 0.6s var(--ease);
}
.icon-badge svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge--light { background: #fde7ee; }
.icon-badge--light svg { stroke: var(--accent); }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; padding: 24px; }
.about__media img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__circle {
  position: absolute; width: 78%; aspect-ratio: 1; left: -6%; top: -8%; border-radius: 50%;
  border: 2px dashed rgba(225, 36, 90, 0.45); animation: spin 45s linear infinite;
}
.about__dots {
  position: absolute; right: -10px; bottom: -10px; width: 160px; height: 160px;
  background-image: radial-gradient(var(--navy) 2px, transparent 2.5px); background-size: 18px 18px; opacity: 0.18;
}
.about__badge {
  position: absolute; z-index: 2; right: -6px; bottom: 50px;
  background: var(--accent); color: var(--white); border-radius: var(--radius);
  padding: 18px 24px; box-shadow: var(--shadow); text-align: center;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px); } }
.about__badge strong { display: block; font-size: 2.2rem; line-height: 1; font-family: var(--font-head); }
.about__badge span { font-size: 0.85rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.8em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat__num { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat__label { font-size: 0.86rem; }

/* Section heads */
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; text-align: left; gap: 24px; flex-wrap: wrap; }
.section-head--light h2 { color: var(--white); }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); transition: box-shadow 0.3s, border-color 0.3s;
}
.service::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 100%);
  transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: 0;
}
.service > * { position: relative; z-index: 1; transition: color 0.3s; }
.service:hover { box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: none; }
.service:hover h3, .service:hover p { color: var(--white); }
.service:hover .icon-badge--light { background: var(--accent); }
.service:hover .icon-badge--light svg { stroke: var(--white); }
.service__num { position: absolute; right: 24px; top: 18px; font-family: var(--font-serif); font-style: italic; font-size: 2.6rem; color: rgba(31, 58, 104, 0.08); }
.service:hover .service__num { color: rgba(255, 255, 255, 0.12); }
.service p { margin: 0; }

/* Steps */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.steps__list::before {
  content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 20px); opacity: 0.4;
}
.steps__list li { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--tint); text-align: center; }
.steps__num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--accent); color: var(--white); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 8px rgba(225, 36, 90, 0.12);
}
.steps__list p { margin: 0; }

/* Insights */
.insights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(20, 40, 70, 0.06); transition: box-shadow 0.3s; }
.post:hover { box-shadow: var(--shadow); }
.post__media { position: relative; overflow: hidden; }
.post__media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.post:hover .post__media img { transform: scale(1.08); }
.post__date { position: absolute; left: 18px; bottom: 18px; background: var(--accent); color: var(--white); font-weight: 700; font-size: 0.82rem; padding: 6px 12px; border-radius: 8px; }
.post__body { padding: 26px 26px 30px; }
.post__meta { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5em; }

/* Quote form */
.cta { background: linear-gradient(135deg, var(--tint) 0%, #fff 60%); }
.cta__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.cta__experience {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 22px 28px; margin-bottom: 18px;
}
.cta__experience strong { font-size: 3rem; line-height: 1; font-family: var(--font-head); color: var(--white); }
.cta__experience span { max-width: 90px; line-height: 1.3; }
.cta__phone { font-weight: 600; color: var(--ink); }
.cta__phone a { color: var(--accent); }
.cta__form { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta__form label { display: block; font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-bottom: 16px; }
.cta__form input, .cta__form select, .cta__form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--tint);
  border: 1px solid var(--line); border-radius: 10px;
}
.cta__form input:focus, .cta__form select:focus, .cta__form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; background: var(--white); }
.cta__form [aria-invalid="true"] { border-color: var(--accent); background: #fff4f7; }
.form-note { font-size: 0.85rem; }
.form-status { margin: 14px 0 0; font-weight: 600; color: var(--navy); min-height: 1.5em; }

/* Testimonials */
.testimonials { overflow: hidden; }
.testimonials::before {
  content: "\201C"; position: absolute; left: 50%; top: 40px; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 16rem; line-height: 1; color: rgba(255, 255, 255, 0.05);
}
.testimonials__track { position: relative; max-width: 780px; margin: 0 auto; min-height: 220px; }
.quote { position: absolute; inset: 0; margin: 0; text-align: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.6s, visibility 0.6s, transform 0.6s var(--ease); }
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { margin: 0 0 26px; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.55; color: var(--white); font-style: italic; }
.quote figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.quote figcaption img { border-radius: 50%; }
.quote figcaption strong { display: block; color: var(--white); }
.testimonials__dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* Partners: auto-scrolling logo strip */
.partners { padding: 90px 0; overflow: hidden; }
.partners__head { text-align: center; margin-bottom: 44px; }
.partners__head p:last-child { font-size: 0.85rem; margin: 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: grid; place-items: center; min-width: 220px; height: 92px; padding: 0 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.marquee__track li:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.marquee__track img { filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Footer */
.footer { background: var(--navy-deep); color: #aebcd2; padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #d5deeb; }
.footer a:hover { color: var(--accent); }
.footer .logo { margin-bottom: 16px; }
.footer__abn { font-size: 0.85rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; font-size: 0.88rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--white); font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--white); background: var(--accent-dark); }

/* Demo notices: keep these visible on every page */
.demo-banner { background: #fff3cd; color: #5c4400; border-bottom: 1px solid #f0d78c; font-size: 0.9rem; }
.demo-banner p { width: min(100% - 32px, var(--container)); margin: 0 auto; padding: 9px 0; text-align: center; }
.demo-banner a { color: #5c4400; font-weight: 700; text-decoration: underline; }
.demo-banner a:hover { color: var(--accent); }

.demo-badge {
  position: fixed; left: 16px; bottom: 22px; z-index: 40;
  background: #fff3cd; color: #5c4400; border: 1px solid #f0d78c; border-radius: 999px;
  padding: 8px 16px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(20, 40, 70, 0.12);
}
.demo-badge:hover { color: var(--accent); }

.demo-info__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.demo-info__note { background: #fff3cd; border-left: 4px solid #e0b43a; border-radius: 8px; padding: 16px 18px; color: #4a3800; }
.demo-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.demo-info__list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.demo-info__list strong { display: block; color: var(--navy); margin-bottom: 4px; }

.builders { margin-top: 28px; }
.builders__title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.builders__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.builders__list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px;
  box-shadow: 0 6px 16px rgba(20, 40, 70, 0.06);
}
.builders__initials {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em;
}
.builders__initials--alt { background: var(--accent); }
.builders__name { font-weight: 700; color: var(--ink); }

/* Privacy page */
.page-hero { background: var(--navy-dark); padding: 72px 0; }
.page-hero h1 { color: var(--white); margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Responsive */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .stream-panel { max-width: 640px; }
}

@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav ul { gap: 18px; }
  .services__grid, .insights__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--white); padding: 20px 16px 26px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 40, 70, 0.10);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .btn { text-align: center; }

  .features__grid, .steps__list { grid-template-columns: 1fr; }
  .steps__list::before { display: none; }
  .about__grid, .cta__grid, .demo-info__grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
  .hero__ring--one { width: 340px; height: 340px; }
}

@media (max-width: 600px) {
  .demo-banner__more { display: none; }
  .topbar__info li:last-child { display: none; }
  .services__grid, .insights__grid, .form-row, .footer__grid { grid-template-columns: 1fr; }
  .cta__form { padding: 28px 20px; }
  .hero { padding: 48px 0 130px; }
  .hero__actions { gap: 18px; }
  .quote blockquote { font-size: 1.12rem; }
  .testimonials__track { min-height: 300px; }
  .marquee__track li { min-width: 180px; height: 80px; }
  .about__media { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim-ready[data-anim] { opacity: 1; transform: none; }
  .word__inner { transform: none; }
  .hero__slide .eyebrow, .hero__slide .lead, .hero__slide .hero__actions { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Feedback: buttons and links visibly respond when pressed */
.btn:active, .btn--outline:active, .btn-light:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 0.05s; }
.link-more:active, .btn-ghost:active { opacity: 0.7; }
/* Eyebrow labels on dark sections use a lighter pink so they stay readable */
.section--dark .eyebrow, .section-head--light .eyebrow, .cta .eyebrow--light { color: #ff8fae; }
