/* ==========================================================================
   Blue and Crimson Business Advisory
   Tokens sampled from the logo: blue #1789CE, crimson #FF541C
   ========================================================================== */

:root {
  --paper: #F6F9FC;
  --white: #FFFFFF;
  --ink: #0C2233;
  --ink-soft: #3F5566;
  --muted: #6A7F8F;
  --line: #D8E3EC;
  --line-strong: #B9CCDB;

  --blue: #1789CE;
  --blue-600: #1273AE;
  --blue-700: #0E4F7E;
  --blue-900: #082C47;
  --blue-50: #EAF4FB;
  --blue-100: #D3E8F6;

  --crimson: #FF541C;
  --crimson-600: #D93F0B;
  --crimson-700: #B23208;
  --crimson-50: #FFF0EA;

  --error: #C4290C;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  --step-4: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --step-5: clamp(2.375rem, 1.4rem + 3.6vw, 4.25rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --radius-sm: 4px;
  --radius: 8px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus-ring: 0 0 0 3px var(--white), 0 0 0 6px var(--blue);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: .75rem 1rem; background: var(--blue-700); color: var(--white);
  font-weight: 600; text-decoration: none; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; outline: none; box-shadow: var(--focus-ring); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border: 2px solid var(--btn-border); border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; white-space: nowrap; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease), transform .12s var(--ease);
}
.btn:focus { outline: none; box-shadow: var(--focus-ring); }
.btn:focus:not(:focus-visible) { box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: var(--step--1); }

.btn-primary { --btn-bg: var(--crimson-600); --btn-fg: var(--white); --btn-border: var(--crimson-600); }
.btn-primary:hover:not(:disabled) { --btn-bg: var(--blue-700); --btn-border: var(--blue-700); }
.btn-primary:active:not(:disabled) { --btn-bg: var(--crimson-700); --btn-border: var(--crimson-700); }
.btn-primary:focus-visible { --btn-bg: var(--crimson-700); --btn-border: var(--crimson-700); }

.btn-secondary { --btn-bg: transparent; --btn-fg: var(--blue-700); --btn-border: var(--blue); }
.btn-secondary:hover:not(:disabled) { --btn-bg: var(--blue-700); --btn-fg: var(--white); --btn-border: var(--blue-700); }
.btn-secondary:active:not(:disabled) { --btn-bg: var(--crimson-600); --btn-fg: var(--white); --btn-border: var(--crimson-600); }
.btn-secondary:focus-visible { --btn-border: var(--blue-700); }

.btn-spinner {
  width: 18px; height: 18px; display: none;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(246, 249, 252, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .96); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--radius-sm); }
.brand img { height: 42px; width: auto; }
.brand:focus { outline: none; }
.brand:focus-visible { box-shadow: var(--focus-ring); }

.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: .5rem .9rem;
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 2px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--blue-700); }
.nav-link:hover::after { transform: scaleX(.35); }
.nav-link:active { color: var(--crimson-700); }
.nav-link:focus { outline: none; }
.nav-link:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue-700); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-cta-item { margin-left: .75rem; }
.nav-cta.is-active { --btn-bg: var(--blue-700); --btn-border: var(--blue-700); }

.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { border-color: var(--blue); }
.nav-toggle:active { background: var(--crimson-50); border-color: var(--crimson); }
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { box-shadow: var(--focus-ring); }
.nav-toggle-bar {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--blue-700);
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease), background-color .2s;
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--crimson-600); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand img { height: 36px; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(8, 44, 71, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open {
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem var(--gutter) 1.25rem; }
  .nav-link {
    display: flex; min-height: 52px; padding-inline: 0; font-size: var(--step-1);
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav-link::after { left: 0; right: auto; width: 40px; bottom: 10px; }
  .nav-link:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); padding-left: .75rem; }
  .nav-cta-item { margin: 1rem 0 0; }
  .nav-cta { width: 100%; min-height: 52px; font-size: var(--step-0); }
}

/* ==========================================================================
   Sections, shared
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--row { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 2rem 4rem; }
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-4);
  line-height: 1.05; letter-spacing: -.02em; color: var(--ink);
}
.section-lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 38rem; }
@media (max-width: 800px) { .section-head--row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-plane {
  /* asymmetric brand plane behind the workflow graphic */
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: linear-gradient(160deg, var(--blue-600), var(--blue-900));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.hero-plane::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 38px),
    radial-gradient(ellipse at 80% 20%, rgba(23,137,206,.55), transparent 60%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-kicker {
  display: inline-block; margin-bottom: 1.5rem; padding: .35rem .75rem;
  border: 2px solid var(--blue); color: var(--blue-700);
  font-weight: 600; font-size: var(--step--1);
}
.hero-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-5);
  line-height: 1; letter-spacing: -.03em; color: var(--ink);
  max-width: 15ch; text-wrap: balance;
}
.hero-sub { margin-top: 1.5rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 36rem;
}
.hero-facts dt { font-weight: 700; font-size: var(--step--1); color: var(--blue-700); margin-bottom: .35rem; }
.hero-facts dd { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }

/* ---------- Workflow graphic (modern glass card) ---------- */
.hero-visual { position: relative; }
.flow-card {
  padding: 1.35rem 1.35rem 1.2rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(3, 20, 34, .6), 0 4px 14px rgba(3, 20, 34, .12);
  animation: rise .8s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.flow-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.flow-badge {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: .72rem;
}
.flow-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-line { fill: none; stroke: #BFD5E6; stroke-width: 2; stroke-dasharray: 5 6; animation: dashflow 1.2s linear infinite; }
.flow-line--back { stroke: #F6B9A3; }
@keyframes dashflow { to { stroke-dashoffset: -22; } }
.node { fill: #FFFFFF; stroke: #E1EAF2; stroke-width: 1; }
.node-title { font-family: var(--font-body); font-weight: 700; font-size: 15px; fill: var(--ink); }
.node-sub { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.hub-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .7; transform-box: fill-box; transform-origin: center; animation: spinSlow 18s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.packet--blue { fill: var(--blue); }
.packet--crimson { fill: var(--crimson); }
.packet--green { fill: #1D8A5B; }
.back-label { font-family: var(--font-body); font-weight: 600; font-size: 12px; fill: var(--crimson-700); }

.flow-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.flow-tags li {
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 600; color: var(--ink-soft);
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plane { width: 100%; top: auto; height: 46%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .hero-title { max-width: 16ch; }
  .hero-visual { max-width: 580px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .flow-card { padding: 1rem; border-radius: 18px; }
}

/* ==========================================================================
   Software hub
   ========================================================================== */
.software { background: var(--white); border-bottom: 1px solid var(--line); }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.sw-tile {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 1rem;
  padding: 2rem clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
  outline: none;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.sw-tile:last-child { border-right: 0; }
.sw-logo { display: flex; align-items: center; height: 52px; }
.sw-logo img {
  height: 52px; width: auto;
  transition: transform .35s var(--ease);
}
.sw-logo--wide { grid-column: 1 / -1; }
.sw-logo--wide img { height: 38px; }
.sw-name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-3);
  letter-spacing: -.02em; line-height: 1; color: var(--ink);
  transition: color .35s var(--ease);
}
.sw-detail { grid-column: 1 / -1; margin-top: .5rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 30ch; }
.sw-tile:hover, .sw-tile:focus-visible { background: var(--paper); box-shadow: inset 0 -3px 0 var(--crimson); }
.sw-tile:hover .sw-logo img, .sw-tile:focus-visible .sw-logo img { transform: scale(1.04); }
.sw-tile:focus-visible { box-shadow: inset 0 -3px 0 var(--crimson), inset 0 0 0 2px var(--blue); }
.sw-tile:active { background: var(--blue-50); }
@media (max-width: 800px) {
  .software-grid { grid-template-columns: 1fr; }
  .sw-tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .sw-tile:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Services tabs
   ========================================================================== */
.tab-list {
  position: relative; display: flex; gap: .25rem;
  border-bottom: 2px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; min-height: 56px; padding: .75rem 1.25rem;
  border: 0; background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color .18s var(--ease), background-color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--blue-700); background: var(--blue-50); }
.tab:active { color: var(--crimson-700); background: var(--crimson-50); }
.tab:focus { outline: none; }
.tab:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue-700); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-indicator {
  position: absolute; bottom: 0; left: 0; height: 3px; width: 0;
  background: var(--crimson);
  transition: transform .35s var(--ease), width .35s var(--ease);
  pointer-events: none;
}

.tab-panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding-top: clamp(1.75rem, 3vw, 2.5rem); outline: none;
}
.tab-panel.is-active { animation: panelIn .35s var(--ease); }
.tab-panel:focus-visible { box-shadow: 0 0 0 2px var(--blue); border-radius: var(--radius-sm); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-copy { display: grid; gap: .75rem; align-content: start; }
.panel-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.1; letter-spacing: -.015em; }
.panel-copy p { font-size: var(--step-1); color: var(--ink-soft); max-width: 28rem; }

.panel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; border-top: 2px solid var(--blue); }
.panel-list li { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.panel-list strong { font-weight: 600; color: var(--blue-700); }
.panel-list span { font-size: var(--step--1); color: var(--ink-soft); }

@media (max-width: 860px) {
  .tab-panel { grid-template-columns: 1fr; }
  .tab { font-size: var(--step-0); padding-inline: 1rem; }
}
@media (max-width: 520px) { .panel-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Trust vault
   ========================================================================== */
.vault { position: relative; background: var(--blue-900); color: var(--white); overflow: hidden; isolation: isolate; }
.vault-photo { position: absolute; inset: 0; z-index: -2; }
.vault-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.vault-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue-900) 30%, rgba(8, 44, 71, .7));
}
.vault-lines { position: absolute; inset: 0; color: rgba(255, 255, 255, .09); z-index: -1; }
.vault-lines svg { width: 100%; height: 100%; }
.vault-inner { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.vault-statement {
  display: grid; gap: 1.5rem;
  padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 6px solid var(--crimson);
}
.vault-title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-4);
  line-height: 1.08; letter-spacing: -.02em; max-width: 24ch; text-wrap: balance;
}
.vault-lede { font-size: var(--step-1); color: #B7CEE0; max-width: 40rem; }
.vault-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid rgba(255, 255, 255, .9); }
.vault-grid li { padding: 1.75rem 1.5rem 0 0; display: grid; gap: .75rem; align-content: start; }
.vault-grid li + li { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .16); }
.vault-grid h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }
.vault-grid p { font-size: var(--step--1); color: #B7CEE0; line-height: 1.6; }
@media (max-width: 960px) {
  .vault-grid { grid-template-columns: 1fr 1fr; }
  .vault-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .vault-grid li { padding-bottom: 1.5rem; }
}
@media (max-width: 560px) {
  .vault-grid { grid-template-columns: 1fr; }
  .vault-grid li, .vault-grid li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--white); }
.about-top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start;
  padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line);
}
.about-statement {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-4);
  line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.about-text { display: grid; gap: 1.25rem; font-size: var(--step-1); color: var(--ink-soft); padding-top: .5rem; }

.about-split {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(3rem, 6vw, 4.5rem); align-items: center;
}
.about-photo {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  border: 3px solid var(--blue);
  box-shadow: 14px 14px 0 var(--crimson);
  background: var(--blue-100);
}
.about-photo img { width: 100%; height: auto; aspect-ratio: 1024 / 574; object-fit: cover; }

.process-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); margin-bottom: 1.25rem; }
.process-list { counter-reset: step; display: grid; }
.process-list li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; column-gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 2px solid var(--blue);
  font-family: var(--font-display); font-weight: 700; color: var(--blue-700);
}
.process-list li:last-child::before { border-color: var(--crimson); color: var(--crimson-600); }
.process-list h4 { font-weight: 600; font-size: var(--step-1); }
.process-list p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .about-top, .about-split { grid-template-columns: 1fr; }
  .about-photo { box-shadow: 8px 8px 0 var(--crimson); }
}

/* ==========================================================================
   Quote
   ========================================================================== */
.quote { background: var(--paper); }
.quote-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.quote-main {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.25rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field-label { font-weight: 600; font-size: var(--step--1); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  border: 2px solid var(--line); border-radius: 6px; background: var(--white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9AABB8; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px #FBD9CF; }
.field.is-valid input { border-color: #9CCDB5; }
.field-error { min-height: 1.35rem; font-size: .8125rem; color: var(--error); font-weight: 600; }
.field-hint { min-height: 1.35rem; font-size: .75rem; color: var(--muted); text-align: right; }

/* Service toggles */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.chip {
  position: relative; display: grid; gap: .3rem; align-content: start;
  min-height: 56px; padding: .9rem 2.5rem .9rem 1rem; align-content: center;
  border: 2px solid var(--line); border-radius: 6px; background: var(--white);
  text-align: left;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip::after {
  content: ""; position: absolute; top: 1rem; right: 1rem;
  width: 18px; height: 18px; border: 2px solid var(--line-strong); border-radius: 4px; background: var(--white);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.chip-title { font-weight: 600; color: var(--ink); }
.chip-desc { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.chip:hover { border-color: var(--blue); background: var(--blue-50); }
.chip:hover::after { border-color: var(--blue); }
.chip:active { border-color: var(--crimson); background: var(--crimson-50); }
.chip:focus { outline: none; }
.chip:focus-visible { box-shadow: 0 0 0 3px var(--blue-100); border-color: var(--blue); }
.chip[aria-pressed="true"] { border-color: var(--crimson); background: var(--crimson-50); }
.chip[aria-pressed="true"]::after {
  border-color: var(--crimson-600);
  background: var(--crimson-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 L6.5 11.5 L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chip[aria-pressed="true"]:hover { border-color: var(--crimson-600); background: #FFE5DA; }
.field.is-invalid .chip { border-color: #F2B3A2; }

.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; font-weight: 400 !important; font-size: var(--step--1); color: var(--ink-soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check-box { width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 4px; background: var(--white); transition: border-color .18s, background-color .18s, box-shadow .18s; }
.check:hover .check-box { border-color: var(--blue); }
.check input:active + .check-box { background: var(--crimson-50); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px var(--blue-100); border-color: var(--blue); }
.check input:checked + .check-box {
  border-color: var(--crimson-600);
  background: var(--crimson-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 L6.5 11.5 L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.field.is-invalid .check-box { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; margin-top: .25rem; font-size: var(--step--1); font-weight: 600; color: var(--error); }
.form-status a { color: inherit; text-underline-offset: 3px; }
.q-nav { display: flex; justify-content: flex-end; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.q-nav .btn { min-width: 190px; }

.q-success { display: grid; justify-items: start; gap: 1rem; padding: 1rem 0; outline: none; animation: panelIn .35s var(--ease); }
.q-success h3 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; }
.q-success p { color: var(--ink-soft); max-width: 36rem; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-icon path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .6s .15s var(--ease) forwards; }

.quote-aside {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: var(--blue-700); color: var(--white);
  border-radius: var(--radius); padding: 1.75rem;
}
.quote-aside h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); margin-bottom: 1.25rem; }
.aside-list { display: grid; }
.aside-list > div {
  display: grid; gap: .2rem;
  padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--step--1);
}
.aside-list dt { color: #A9C6DC; font-size: .75rem; font-weight: 600; }
.aside-list dd { font-weight: 600; overflow-wrap: anywhere; }
.aside-link { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; border-radius: 2px; transition: text-decoration-color .18s, color .18s; }
.aside-link:hover { text-decoration-color: var(--crimson); }
.aside-link:active { color: #FFD3C2; }
.aside-link:focus { outline: none; }
.aside-link:focus-visible { box-shadow: 0 0 0 2px var(--white); }
.aside-note {
  margin-top: 1rem; padding: 1.1rem; background: var(--white); color: var(--ink);
  border-radius: 6px; border-left: 5px solid var(--crimson);
}
.aside-note-title { font-weight: 700; margin-bottom: .25rem; }
.aside-note p:last-child { font-size: var(--step--1); color: var(--ink-soft); }

@media (max-width: 1000px) {
  .quote-shell { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
}
@media (max-width: 720px) {
  .chips { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .q-nav .btn { width: 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-soft); font-size: var(--step--1); max-width: 30ch; }
.footer-head { font-size: var(--step--1); font-weight: 700; color: var(--blue-700); margin-bottom: .75rem; }
.footer-col address { font-style: normal; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }
.footer-col p, .footer-col li { font-size: var(--step--1); margin-bottom: .4rem; }
.footer-link {
  color: var(--ink-soft); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; text-decoration-thickness: 2px; border-radius: 2px;
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
.footer-link:hover { color: var(--blue-700); text-decoration-color: var(--crimson); }
.footer-link:active { color: var(--crimson-700); }
.footer-link:focus { outline: none; }
.footer-link:focus-visible { box-shadow: 0 0 0 2px var(--blue); color: var(--blue-700); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .01ms !important;
  }
  .success-icon path { stroke-dashoffset: 0; }
}
