/* Kompass USA
   US palette: navy = trust and stability, red = action (used sparingly), white = clarity,
   sunrise gold = success and a fresh start. System fonts only, no external requests. */
:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --navy-soft: #13315c;
  --red: #b22234;
  --red-hover: #921a2a;
  --sun: #f2a541;
  --paper: #f7f5f0;
  --paper-2: #efeadf;
  --surface: #ffffff;
  --ink: #0e1a2b;
  --muted: #3c475a;
  --line: #e2ddd2;
  --on-dark: #eef2f8;
  --error: #b3261e;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(11 37 69 / 0.06), 0 12px 32px -12px rgb(11 37 69 / 0.18);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --star: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
picture {
  display: contents;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(72px, 10vw, 128px);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

/* Stars */
.star {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}
ul.stars {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
ul.stars li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}
ul.stars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 13px;
  height: 13px;
  background: var(--red);
  clip-path: var(--star);
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 650;
  font-size: 0.975rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgb(178 34 52 / 0.7);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.button:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgb(178 34 52 / 0.75);
}
.button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
  box-shadow: none;
}
.button.ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.45);
  box-shadow: none;
}
.button.ghost:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}
.text-link {
  color: var(--navy);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: var(--red);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.05rem;
}
.logo {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
}
.footer-logo img {
  height: 64px;
  width: auto;
}
.mark {
  width: 32px;
  height: 32px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.mark .mark-n {
  stroke-linecap: round;
}
.mark .mark-star {
  fill: var(--red);
  stroke: none;
}
#nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.925rem;
}
#nav > a:not(.button) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
#nav > a:not(.button):hover,
#nav > a[aria-current="page"]:not(.button) {
  color: var(--navy);
}
#nav .lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--navy);
}
.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

/* Hero (home and team) */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  min-height: clamp(600px, 88vh, 880px);
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img,
.cta-media img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgb(7 26 51 / 0.96) 0%, rgb(7 26 51 / 0.85) 38%, rgb(11 37 69 / 0.35) 75%, rgb(11 37 69 / 0.15) 100%),
    linear-gradient(0deg, rgb(7 26 51 / 0.85) 0%, transparent 35%);
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(72px, 10vw, 120px);
}
.hero h1 {
  max-width: 15ch;
}
.hero h1 span {
  display: block;
  color: var(--sun);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.07);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--on-dark);
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.pill .star {
  color: var(--sun);
}
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--on-dark);
  max-width: 40rem;
  margin-top: 26px;
}
.hero .lead.small {
  font-size: 1rem;
  margin-top: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.proof {
  list-style: none;
  padding: 26px 0 0;
  margin: 48px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 0.925rem;
  color: var(--on-dark);
  max-width: 820px;
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof .star {
  color: var(--sun);
  width: 0.85em;
  height: 0.85em;
}
.page-hero {
  min-height: clamp(480px, 70vh, 680px);
}
.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5vw, 4rem);
}
.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.jumps a {
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
}
.jumps a:hover {
  background: rgb(255 255 255 / 0.1);
}

/* Section heads */
.section-head {
  max-width: 46rem;
  margin-bottom: 48px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head p,
.split-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.075rem;
}

/* Paths */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.path {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.path-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.path-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.path:hover .path-media img {
  transform: scale(1.04);
}
.path-body {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.path-body > p:not(.kicker) {
  color: var(--muted);
}
.path-body .button {
  margin-top: auto;
  align-self: flex-start;
}
.kicker {
  color: var(--red);
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.path h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  margin-bottom: 12px;
}
.unsure {
  text-align: center;
  margin: 40px 0 0;
  color: var(--muted);
}

/* Why (navy with faint stripes) */
.why {
  background:
    repeating-linear-gradient(180deg, rgb(255 255 255 / 0.025) 0 40px, transparent 40px 80px),
    var(--navy);
  color: #fff;
  padding-block: clamp(72px, 10vw, 128px);
}
.why .section-head p,
.why .split-head p {
  color: var(--on-dark);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-grid.single {
  grid-template-columns: minmax(0, 1fr);
}
.why-card {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}
.why-card:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(242 165 65 / 0.5);
}
.why-card .star {
  color: var(--sun);
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
}
.why-card h3 {
  margin-bottom: 10px;
}
.why-card p {
  color: var(--on-dark);
  margin: 0;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(32px, 6vw, 96px);
}
.split-head {
  align-self: start;
  position: sticky;
  top: 108px;
}

/* Services */
.service-list .service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.service-list .service:first-child {
  border-top: 0;
  padding-top: 4px;
}
.service h3 {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.service h3 .star {
  color: var(--red);
  width: 0.8em;
  height: 0.8em;
  transform: translateY(1px);
}
.service p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* Deliverables */
.deliverables {
  background: var(--paper-2);
  padding-block: clamp(72px, 10vw, 128px);
}
.deliv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.deliv {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.deliv::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50%);
}
.deliv h3 {
  margin-bottom: 10px;
  color: var(--navy);
}
.deliv p {
  color: var(--muted);
  margin: 0;
  font-size: 0.975rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 2px;
  background: var(--line);
}
.timeline::after {
  background: linear-gradient(90deg, var(--red), var(--sun));
  transform-origin: left;
  transform: scaleX(var(--progress));
}
.timeline li {
  position: relative;
  padding-top: 48px;
}
.timeline .node {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  z-index: 1;
  fill: var(--surface);
  stroke: var(--navy);
  stroke-width: 1.6;
  transition: fill 0.3s;
}
.timeline li.lit .node {
  fill: var(--red);
  stroke: var(--red);
}
.step-label {
  display: block;
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 650;
  margin-bottom: 6px;
}
.timeline h3 {
  margin-bottom: 8px;
  color: var(--navy);
}
.timeline p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* People and trust */
.people-section {
  border-top: 1px solid var(--line);
}
.people-intro {
  max-width: 46rem;
  margin-bottom: 44px;
}
.people-intro p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.075rem;
}
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.person {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.person h3 {
  font-size: 1.4rem;
}
.role {
  color: var(--red);
  font-weight: 650;
  margin: 6px 0 14px;
}
.person p:not(.role) {
  color: var(--muted);
}
.trust {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}
.trust h3 {
  margin-bottom: 18px;
}
.trust ul.stars {
  margin: 0;
  color: var(--on-dark);
  font-size: 0.975rem;
}
.trust ul.stars li::before {
  background: var(--sun);
}

/* FAQ */
#faq {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  color: var(--muted);
  max-width: 44rem;
  padding-bottom: 8px;
}

/* CTA band with parallax photo */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
  padding-block: clamp(96px, 14vw, 168px);
  text-align: center;
}
.cta-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(7 26 51 / 0.55), rgb(7 26 51 / 0.82));
}
.cta-inner {
  max-width: 760px;
}
.cta-inner .big {
  width: 34px;
  height: 34px;
  color: var(--sun);
  margin: 0 auto 22px;
}
.cta-inner p {
  color: var(--on-dark);
  font-size: 1.125rem;
  margin: 18px auto 32px;
  max-width: 34rem;
}

/* Team profiles */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(32px, 6vw, 96px);
}
.profile + .profile {
  border-top: 1px solid var(--line);
}
.profile-side {
  align-self: start;
  position: sticky;
  top: 108px;
}
.profile-side h2 {
  color: var(--navy);
}
.profile-side h3 {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 650;
  margin: 28px 0 12px;
}
.profile-body {
  max-width: 42rem;
}
.profile-body p:first-child {
  font-size: 1.2rem;
  color: var(--navy);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-panel {
  position: sticky;
  top: 100px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(242 165 65 / 0.18), transparent 60%),
    var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.contact-panel-inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 44px);
}
.contact-panel h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 18px;
}
.contact-panel p {
  color: var(--on-dark);
}
.contact-panel h2 {
  font-size: 1.1rem;
  margin: 32px 0 14px;
}
.next-steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
}
.next-steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 16px 44px;
  color: var(--on-dark);
}
.next-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}
.contact-panel .direct {
  margin-top: 20px;
  color: #fff;
}
.contact-panel .direct a {
  color: var(--sun);
  font-weight: 650;
}
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}
form label:not(.check) {
  display: block;
  font-weight: 650;
  font-size: 0.925rem;
  margin: 0 0 6px;
  color: var(--navy);
}
form label span,
legend span {
  font-weight: 400;
  color: var(--muted);
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #cdd3dd;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(11 37 69 / 0.12);
}
fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}
legend {
  font-weight: 650;
  font-size: 0.925rem;
  margin-bottom: 10px;
  padding: 0;
  color: var(--navy);
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 8px;
  cursor: pointer;
}
label.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--red);
}
.choice-row {
  display: flex;
  gap: 28px;
}
label.consent {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.inline-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 16px 0;
}
form .button {
  margin-top: 4px;
}
[aria-invalid="true"]:not(fieldset) {
  border-color: var(--error) !important;
}
fieldset[aria-invalid="true"] legend {
  color: var(--error);
}
.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: -14px 0 18px;
}
fieldset .field-error,
label.consent + .field-error {
  margin-top: 4px;
}
.form-errors {
  border: 1px solid var(--error);
  background: #fdf3f2;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.925rem;
}
.form-errors p {
  margin: 0 0 6px;
  font-weight: 650;
}
.form-errors ul {
  margin: 0;
  padding-left: 18px;
}
.form-errors a {
  color: var(--error);
}
.form-confirmation h2 {
  margin-bottom: 12px;
  color: var(--navy);
}
.form-confirmation a {
  color: var(--navy);
}
[hidden] {
  display: none !important;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: 0.9rem;
}
.flag-rule {
  height: 6px;
  background: repeating-linear-gradient(180deg, var(--red) 0 1px, #fff 1px 2px);
  opacity: 0.85;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
  align-items: center;
  padding-block: 36px;
}
.footer-brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .mark {
  color: #fff;
}
.footer-brand span {
  display: flex;
  flex-direction: column;
}
.footer-brand strong {
  color: #fff;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a,
.footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  cursor: pointer;
}
.footer-links a:hover,
.footer-links button:hover {
  color: #fff;
}

/* Dialog */
dialog {
  width: min(600px, 100% - 32px);
  border: 0;
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop {
  background: rgb(7 26 51 / 0.55);
}
dialog h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--navy);
}
dialog p,
.credit-list {
  color: var(--muted);
}
.credit-list {
  padding-left: 18px;
  font-size: 0.925rem;
}
.credit-list li {
  margin-bottom: 6px;
}
dialog a {
  color: var(--navy);
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

/* Home: service tiles and "more" links */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.tile .star {
  color: var(--red);
  width: 18px;
  height: 18px;
}
.tile h3 {
  color: var(--navy);
  font-size: 1.075rem;
}
.tile p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.tile-cta {
  background: var(--navy);
  border-color: var(--navy);
  justify-content: space-between;
}
.tile-cta h3 {
  color: #fff;
}
.tile-cta .star {
  color: var(--sun);
  width: 26px;
  height: 26px;
}
.more {
  margin: 36px 0 0;
}

/* People with photos */
.people.three .person {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.person-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.person-body {
  padding: 26px 28px 30px;
}
.people-foot {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px 40px;
  align-items: end;
  margin-top: 20px;
}
.profile-photo {
  width: 100%;
  height: auto;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* Services page */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.detail.alt {
  background: var(--paper-2);
  box-shadow: 0 0 0 100vmax var(--paper-2);
  clip-path: inset(0 -100vmax);
}
.detail-head {
  align-self: start;
  position: sticky;
  top: 108px;
}
.detail-head .big {
  width: 30px;
  height: 30px;
  color: var(--red);
  margin-bottom: 16px;
}
.detail-head h2 {
  color: var(--navy);
}
.for {
  color: var(--muted);
  font-size: 1.075rem;
  margin-top: 16px;
}
.for strong {
  color: var(--ink);
}
.detail-body h3 {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.result {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.result h3 {
  color: var(--sun);
  margin-bottom: 6px;
}
.result p {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}
.not {
  color: var(--muted);
  font-size: 0.925rem;
  border-left: 3px solid var(--line);
  padding-left: 14px;
}
.detail-body .button {
  margin-top: 8px;
}
.services-page .page-hero .jumps a,
.team .page-hero .jumps a {
  background: rgb(255 255 255 / 0.06);
}

/* Services page: numbered building blocks (outlined 01-07 above each head) */
.services-page main {
  counter-reset: svc;
}
.services-page .detail {
  counter-increment: svc;
}
.services-page .detail-head::before {
  content: counter(svc, decimal-leading-zero);
  content: counter(svc, decimal-leading-zero) / "";
  display: block;
  font-size: clamp(4rem, 8vw, 6.75rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  /* gradient fill, not text-stroke: system fonts have overlapping contours that a stroke would draw */
  color: transparent;
  background: linear-gradient(170deg, rgb(178 34 52 / 0.42) 10%, rgb(11 37 69 / 0.07) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  width: fit-content;
  margin-bottom: 10px;
}

/* Services page: 3D result card that follows the pointer, with a light glare */
.services-page .result {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}
.services-page .result::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.services-page .result.tilt {
  transition-duration: 0.12s, 0.6s;
  box-shadow: 0 30px 60px -24px rgb(11 37 69 / 0.6);
}
.services-page .result.tilt::after {
  opacity: 1;
}

/* Services page: scroll-linked 3D fade in / fade out.
   script.js adds .fx3d (never with reduced motion) and sets --in (0..1 while
   an element enters from below) and --out (0..1 while its section leaves at
   the top). Without .fx3d the page is static and fully visible. */
html.fx3d .services-page main {
  overflow-x: clip; /* entering elements slide in from the side; clip keeps sticky heads working */
}
html.fx3d .detail {
  perspective: 1400px;
  perspective-origin: 50% 35%;
}
html.fx3d .detail .reveal {
  --k: calc(1 - var(--in, 0));
  opacity: calc(var(--in, 0) * (1 - var(--out, 0)));
  transform: translate3d(0, calc(var(--k) * 80px - var(--out, 0) * 60px), calc(var(--k) * -160px - var(--out, 0) * 140px))
    rotateX(calc(var(--k) * 16deg - var(--out, 0) * 12deg));
  transform-origin: 50% 0;
  transition: none;
  will-change: opacity, transform;
}
html.fx3d .detail-head.reveal {
  transform: translate3d(calc(var(--k) * -50px), calc(var(--k) * 40px - var(--out, 0) * 40px), calc(var(--k) * -120px - var(--out, 0) * 120px))
    rotateY(calc(var(--k) * 22deg + var(--out, 0) * 14deg));
  transform-origin: 0 50%;
}
html.fx3d .detail-head::before {
  transform: translate3d(0, calc(var(--k) * -36px + var(--out, 0) * 30px), 0);
}
html.fx3d .detail-head .big {
  transform: rotateY(calc(var(--k) * 200deg)) scale(calc(1 + var(--k) * 0.6));
}
html.fx3d .detail-body li {
  --show: clamp(0, calc(var(--in, 0) * 1.7 - var(--i, 0) * 0.14), 1);
  opacity: var(--show);
  transform: translate3d(calc((1 - var(--show)) * 28px), 0, 0);
}
html.fx3d .detail-body li:nth-child(2) { --i: 1; }
html.fx3d .detail-body li:nth-child(3) { --i: 2; }
html.fx3d .detail-body li:nth-child(4) { --i: 3; }
html.fx3d .detail-body li:nth-child(5) { --i: 4; }
html.fx3d .detail-body li:nth-child(6) { --i: 5; }

/* Services page hero: rises in on load, tilts away into depth on scroll */
@keyframes fx-rise {
  from {
    opacity: 0;
    transform: perspective(800px) translate3d(0, 34px, -90px) rotateX(18deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
html.fx3d .page-hero .hero-inner {
  opacity: calc(1 - var(--out, 0));
  transform: perspective(1000px) translate3d(0, calc(var(--out, 0) * -50px), calc(var(--out, 0) * -180px)) rotateX(calc(var(--out, 0) * 14deg));
  transform-origin: 50% 100%;
  will-change: opacity, transform;
}
html.fx3d .page-hero .hero-inner > * {
  animation: fx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
html.fx3d .page-hero .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
html.fx3d .page-hero .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
html.fx3d .page-hero .hero-inner > :nth-child(4) { animation-delay: 0.36s; }
@media (prefers-reduced-motion: no-preference) {
  .services-page .page-hero .jumps a {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
  }
  .services-page .page-hero .jumps a:hover {
    transform: perspective(500px) translateZ(26px) rotateX(10deg);
    box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.55);
  }
}

/* Process page: vertical timeline */
.timeline.vertical {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 900px;
}
.timeline.vertical::before,
.timeline.vertical::after {
  left: 13px;
  right: auto;
  top: 0;
  bottom: 0;
  width: 2px;
  height: auto;
}
.timeline.vertical::after {
  background: linear-gradient(180deg, var(--red), var(--sun));
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.timeline.vertical li {
  padding: 0 0 64px 64px;
}
.timeline.vertical h2 {
  color: var(--navy);
  margin-bottom: 8px;
}
.step-lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}
.step-grid > div {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.step-grid dt {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--red);
  margin-bottom: 4px;
}
.step-grid dd {
  margin: 0;
  color: var(--ink);
}
.step-grid .step-result {
  background: var(--navy);
}
.step-grid .step-result dt {
  color: var(--sun);
}
.step-grid .step-result dd {
  color: #fff;
  font-weight: 600;
}

/* Regions */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.region {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}
.region img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.region:hover img {
  transform: scale(1.04);
}
.region figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 20px 18px;
  color: #fff;
  background: linear-gradient(0deg, rgb(7 26 51 / 0.85), transparent);
  display: flex;
  flex-direction: column;
  font-size: 0.925rem;
}
.region figcaption strong {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.region-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 24px 0 0;
}

/* Client portal entry and page (KA-116) */
.lock {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
#nav .nav-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
}
#nav .nav-portal .lock {
  color: var(--red);
}
.tile-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.why-card .lock {
  color: var(--sun);
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
}
.access-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  max-width: 900px;
}
.access-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.access-icon .lock {
  width: 28px;
  height: 28px;
}
.access-card h2 {
  color: var(--navy);
  margin-bottom: 12px;
}
.access-card p {
  color: var(--muted);
}
.access-note {
  margin: 0;
  color: var(--ink) !important;
}

/* Scroll reveal (only when JS is running; content stays visible without it) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .tile-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .deliv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .menu {
    display: block;
  }
  .logo {
    height: 54px;
  }
  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  #nav.open {
    display: flex;
  }
  #nav > a:not(.button) {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }
  #nav .lang-switch {
    align-self: flex-start;
    margin: 14px 0;
    border-bottom: 1px solid var(--line) !important;
    padding: 4px 12px !important;
  }
  .paths,
  .why-grid,
  .split,
  .profile,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-head,
  .profile-side,
  .contact-panel,
  .detail-head {
    position: static;
  }
  .detail,
  .people-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .people.three {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
  }
  .timeline.vertical li {
    padding: 0 0 48px 48px;
  }
  .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-list .service {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .timeline::before,
  .timeline::after {
    left: 13px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .timeline::after {
    background: linear-gradient(180deg, var(--red), var(--sun));
    transform-origin: top;
    transform: scaleY(var(--progress));
  }
  .timeline li {
    padding: 0 0 32px 52px;
  }
  .hero {
    min-height: 0;
  }
  .hero::after {
    background: linear-gradient(180deg, rgb(7 26 51 / 0.82), rgb(7 26 51 / 0.94));
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .deliv-grid,
  .people,
  .tile-grid,
  .tile-grid.three,
  .region-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions .button {
    flex: 1 1 100%;
  }
  .proof {
    gap: 10px 20px;
  }
  .choice-row {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages (KA-136): readable measure, clear structure */
.legal-page { padding-top: clamp(96px, 14vw, 140px); }
.legal-wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.2rem; color: var(--navy); }
.legal-date { margin: -0.6rem 0 1rem; color: var(--muted); font-size: 0.95rem; }
.legal-block { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.legal-block h2 { font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--navy); }
.legal-block p, .legal-block li { line-height: 1.65; color: var(--ink); }
.legal-block ul { padding-left: 1.2rem; }
.legal-block a { color: var(--navy-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer-links a[aria-current="page"] { text-decoration: underline; }

/* KA-137: accessibility layer (WCAG 2.2 AA, body text aims for 7:1). Kept together so it is easy to review. */

/* Focus: visible on light and dark surfaces (two-tone ring), never color-only */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
  border-radius: 6px;
}
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.contact-panel :focus-visible {
  outline-color: var(--sun);
  box-shadow: 0 0 0 6px var(--navy-deep);
}

/* Readable sizes: nothing important below 15px */
#nav { font-size: 1rem; }
#nav > a:not(.button) { color: var(--ink); font-weight: 600; }
#nav .lang-switch { font-size: 0.9375rem; }
.button.small { font-size: 0.9375rem; }
.pill { font-size: 0.9375rem; color: #fff; background: rgb(7 26 51 / 0.55); border-color: rgb(255 255 255 / 0.4); }
.proof { font-size: 1rem; color: #fff; }
.hero .lead { color: #fff; font-size: clamp(1.125rem, 1.6vw, 1.3rem); }
.site-footer { font-size: 1rem; }
.form-note, .field-error, .step-label, .step-grid dt { font-size: 0.9375rem; }
form label:not(.check), legend, .not, .credit-list { font-size: 1rem; }

/* Text over photos: a solid enough scrim behind the text column, on small screens over the whole image */
.hero::after {
  background:
    linear-gradient(95deg, rgb(7 26 51 / 0.97) 0%, rgb(7 26 51 / 0.93) 45%, rgb(11 37 69 / 0.55) 75%, rgb(11 37 69 / 0.35) 100%),
    linear-gradient(0deg, rgb(7 26 51 / 0.9) 0%, transparent 40%);
}
@media (max-width: 760px) {
  .hero::after { background: rgb(7 26 51 / 0.9); }
}

/* CTA band over the sunset photo: darker scrim, strongest right behind the text */
.cta-band::after {
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgb(7 26 51 / 0.6), transparent 75%),
    linear-gradient(180deg, rgb(7 26 51 / 0.72), rgb(7 26 51 / 0.9));
}
.cta-inner p { color: #fff; }

/* Form fields: borders with at least 3:1 against white */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea { border: 1.5px solid #6b7488; }
input:focus,
select:focus,
textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(11 37 69 / 0.35); }
[aria-invalid="true"]:not(fieldset) { border-width: 2px !important; }
/* errors carry a symbol and text, not only red */
.field-error::before { content: "⚠ "; }

/* Links inside running text are underlined (not recognisable by color alone) */
main p a:not(.button),
main li a:not(.button),
main dd a:not(.button),
.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Social links */
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: #fff; border: 1.5px solid rgb(255 255 255 / 0.5);
}
.footer-social a:hover { background: rgb(255 255 255 / 0.12); }
.footer-social svg { width: 22px; height: 22px; }

/* Users who ask the system for more contrast get solid surfaces and full-strength text */
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --on-dark: #fff; --line: #6b7488; }
  .hero::after, .cta-band::after { background: rgb(7 26 51 / 0.97) !important; }
  .pill { background: var(--navy-deep); border-color: #fff; }
  .site-header, .card, .glass { backdrop-filter: none !important; }
  .button { border: 2px solid currentColor; }
}
/* Windows high-contrast mode: keep outlines and borders visible */
@media (forced-colors: active) {
  .button, .footer-social a { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}

/* Seasonal theme: Thanksgiving promo (body.autumn). Same layout, warm autumn palette instead of red;
   pumpkin #b8470c keeps 5.3:1 against white text, amber for accents on navy. */
.autumn,
.season-autumn {
  --red: #b8470c;
  --red-hover: #8f3608;
  --sun: #f0a030;
  --paper: #fbf5ec;
  --paper-2: #f6e8d5;
  --line: #ead9c2;
}
:is(.autumn, .season-autumn) .button { box-shadow: 0 8px 20px -10px rgb(184 71 12 / 0.7); }
:is(.autumn, .season-autumn) .button:hover { box-shadow: 0 12px 24px -10px rgb(184 71 12 / 0.75); }
:is(.autumn, .season-autumn) .hero::after {
  background:
    linear-gradient(95deg, rgb(7 26 51 / 0.95) 0%, rgb(40 24 18 / 0.82) 40%, rgb(120 50 10 / 0.3) 78%, rgb(150 60 10 / 0.12) 100%),
    linear-gradient(0deg, rgb(7 26 51 / 0.85) 0%, transparent 35%);
}
:is(.autumn, .season-autumn) .cta-band::after { background: linear-gradient(180deg, rgb(60 28 10 / 0.55), rgb(7 26 51 / 0.86)); }
:is(.autumn, .season-autumn) .flag-rule { background: linear-gradient(90deg, #8f3608, var(--red) 35%, var(--sun) 70%, #c9822b); opacity: 1; }
:is(.autumn, .season-autumn) .why-card:hover { border-color: rgb(240 160 48 / 0.55); }
.leaf { width: 1em; height: 1em; flex: none; fill: currentColor; }
.pill .leaf { color: var(--sun); }
.why-card .leaf { color: var(--sun); width: 26px; height: 26px; margin-bottom: 18px; }
.access-icon .leaf { width: 30px; height: 30px; }
:is(.autumn, .season-autumn) .access-card { border-left-color: var(--red); }
:is(.autumn, .season-autumn) .access-icon { background: var(--red); }
.cta-inner .leaf.big { width: 38px; height: 38px; color: var(--sun); margin: 0 auto 22px; display: block; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.offer-card > .leaf { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; color: var(--sun); opacity: 0.16; transform: rotate(-18deg); }
.offer-figure { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--red); margin: 0 0 10px; }
.offer-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.offer-card p:last-child { color: var(--muted); margin: 0; }
@media (min-width: 1000px) { .soon .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .offer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-contrast: more) { .offer-card > .leaf { display: none; } }

/* Thanksgiving: banner on the home page, turkey and falling maple leaves in the promo hero */
.promo-banner { background: linear-gradient(90deg, #8f3608, #b8470c 45%, #c9822b); color: #fff; }
.promo-banner-inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; font-size: 0.95rem; }
.promo-banner p { margin: 0; flex: 1; }
.promo-banner .maple { width: 22px; height: 22px; fill: #fbe3b0; flex: none; }
.promo-banner-link { color: #fff; font-weight: 650; white-space: nowrap; text-underline-offset: 3px; }
@media (max-width: 640px) { .promo-banner-inner { flex-wrap: wrap; gap: 6px 10px; font-size: 0.9rem; } }
.autumn-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.autumn-deco .turkey {
  position: absolute; right: max(4vw, calc((100vw - 1200px) / 2)); bottom: 8%;
  width: clamp(260px, 30vw, 420px); height: auto; overflow: visible;
  filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.35));
  animation: turkey-bob 5s ease-in-out infinite;
}
@keyframes turkey-bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.autumn-deco .fall { position: absolute; top: -40px; width: 26px; height: 26px; opacity: 0.85; animation: leaf-fall 14s linear infinite; }
.autumn-deco .fall-1 { left: 8%; fill: #f0a030; animation-delay: 0s; }
.autumn-deco .fall-2 { left: 28%; fill: #b8470c; width: 20px; animation-delay: -4s; animation-duration: 17s; }
.autumn-deco .fall-3 { left: 47%; fill: #c9822b; animation-delay: -9s; }
.autumn-deco .fall-4 { left: 63%; fill: #e8c27a; width: 18px; animation-delay: -2s; animation-duration: 19s; }
.autumn-deco .fall-5 { left: 78%; fill: #8f3608; animation-delay: -11s; animation-duration: 15s; }
.autumn-deco .fall-6 { left: 92%; fill: #f0a030; width: 22px; animation-delay: -6s; animation-duration: 18s; }
@keyframes leaf-fall {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(40px, 50vh) rotate(180deg); }
  100% { transform: translate(-20px, 105vh) rotate(360deg); }
}
.offer-card > .pumpkin { position: absolute; right: 20px; top: 20px; width: 64px; height: 64px; }
.offer-card > .maple-mark { position: absolute; right: 22px; top: 22px; width: 56px; height: 56px; fill: #b8470c; opacity: 0.85; }
/* smaller screens: the turkey stays fully visible, in a corner that the text does not use */
@media (max-width: 900px) { .autumn-deco .turkey { width: 170px; right: 16px; bottom: 16px; } }
@media (max-width: 600px) { .autumn-deco .turkey { width: 104px; right: 10px; top: 14px; bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .autumn-deco .turkey, .autumn-deco .fall { animation: none; } .autumn-deco .fall { display: none; } }
@media (prefers-contrast: more) { .autumn-deco { display: none; } }

/* Seasonal theme: Christmas (body.winter, banner .xmas, site-wide snow). Classic red stays, gold and pine accents. */
.winter,
.season-xmas {
  --sun: #f2c14e;
  --paper: #f5f7fa;
  --paper-2: #e9eef5;
  --line: #dde3ec;
}
:is(.winter, .season-xmas) .flag-rule { background: linear-gradient(90deg, #8c1b29, var(--red) 30%, #f2c14e 50%, #1f6b4a 70%, #14543a); opacity: 1; }
:is(.winter, .season-xmas) .hero::after {
  background:
    linear-gradient(95deg, rgb(7 26 51 / 0.96) 0%, rgb(7 26 51 / 0.86) 40%, rgb(11 37 69 / 0.5) 78%, rgb(11 37 69 / 0.3) 100%),
    linear-gradient(0deg, rgb(7 26 51 / 0.85) 0%, transparent 35%);
}
:is(.winter, .season-xmas) .access-card { border-left-color: var(--red); }
:is(.winter, .season-xmas) .access-icon { background: var(--red); }
:is(.winter, .season-xmas) .offer-card { border-top-color: var(--red); }
.offer-card > .maple-mark { fill: currentColor; }
:is(.winter, .season-xmas) .offer-card > .maple-mark { color: #c99a2e; }
.winter-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.winter-deco .moon {
  position: absolute; right: 12%; top: 14%; width: clamp(70px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffbe8, #f2e3b0 60%, #d9c38a);
  box-shadow: 0 0 60px 18px rgb(255 240 200 / 0.18);
}
.hero-sleigh { position: absolute; top: 9%; left: 0; width: clamp(220px, 24vw, 380px); opacity: 0; animation: sleigh-fly 18s linear infinite; }
.hero-sleigh .sleigh { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.35)); }
/* flies only across the right half of the hero, never over the headline */
@keyframes sleigh-fly {
  0% { transform: translate(50vw, 40px) rotate(-4deg); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(104vw, -50px) rotate(-7deg); opacity: 0; }
}
.sleigh .deer { animation: deer-gallop 0.6s ease-in-out infinite alternate; transform-box: fill-box; }
.sleigh .deer:nth-of-type(2) { animation-delay: -0.2s; }
.sleigh .deer:nth-of-type(3) { animation-delay: -0.4s; }
@keyframes deer-gallop { to { transform: translateY(-3px); } }
.promo-banner.xmas { position: relative; overflow: hidden; background: linear-gradient(90deg, #8c1b29, var(--red) 50%, #1f6b4a); }
.promo-banner.xmas .maple { fill: #f2c14e; }
.banner-sleigh { position: absolute; inset: 0; pointer-events: none; }
.banner-sleigh .sleigh { position: absolute; top: 2px; left: 0; height: calc(100% - 4px); width: auto; opacity: 0.9; animation: banner-fly 28s linear infinite; }
@keyframes banner-fly { from { transform: translateX(-120%); } to { transform: translateX(100vw); } }
.promo-banner-inner { position: relative; z-index: 1; }
canvas.snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 25; pointer-events: none; }
@media (max-width: 900px) { .winter-deco .moon { opacity: 0.5; } .hero-sleigh { top: 2%; width: 200px; } @keyframes sleigh-fly { 0% { transform: translate(-60vw, 30px); opacity: 0.6; } 100% { transform: translate(110vw, -20px); opacity: 0.6; } } }
@media (prefers-reduced-motion: reduce) {
  .hero-sleigh { animation: none; opacity: 1; left: auto; right: 4%; top: 6%; }
  .banner-sleigh, .sleigh .deer { animation: none; }
  .banner-sleigh { display: none; }
}
@media (prefers-contrast: more) { .winter-deco, .banner-sleigh { display: none; } }

/* Season look on every page (html.season-autumn / html.season-xmas, set by script.js inside the promo window).
   Removing the season dates in build-pages.mjs returns the whole site to the standard design. */
.season-deco { display: none; }
.season-autumn .season-deco.autumn-deco, .season-xmas .season-deco.winter-deco { display: block; }
.contact-panel .season-deco .hero-sleigh, .contact-panel .season-deco .moon { display: none; }

/* Partner links in the footer */
.footer-partners { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.9rem; color: var(--on-dark); }

.footer-partners a { color: var(--on-dark); text-underline-offset: 3px; }
.footer-partners a:hover { color: #fff; }
.footer-made { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--on-dark); opacity: 0.85; }
.footer-made a { color: var(--on-dark); text-underline-offset: 3px; }
.footer-made a:hover { color: #fff; }
.footer-disclaimer { flex-basis: 100%; margin: 0; max-width: 72ch; font-size: 0.8rem; line-height: 1.5; color: var(--on-dark); opacity: 0.85; }

/* Partners page */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.partner-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.partner-card h3 { color: var(--navy); font-size: 1.25rem; }
.partner-card p { color: var(--muted); margin: 0; }
.partner-area { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 650; color: var(--red) !important; text-transform: uppercase; letter-spacing: 0.04em; }
.partner-area .star { width: 14px; height: 14px; }
.partner-when { padding-top: 10px; border-top: 1px solid var(--line); }
.partner-card .text-link { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--navy); }
.footer-partners-label { font-weight: 650; color: #fff !important; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Services: coming soon (co-working, registered agent) */
.soon .section-head { max-width: 760px; margin-bottom: 28px; }
.soon-card { border-top-color: var(--navy); }
.soon-tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); background: var(--line); border-radius: 999px; padding: 4px 12px; margin: 0 0 14px; }
.soon-note { margin-top: 24px; color: var(--muted); }
.notary-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 12px; background: var(--surface); }
.notary-note p { margin: 0; font-size: 0.95rem; }
.notary-note strong { color: var(--navy); }
.notary-note .stamp { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Client portal showcase on the homepage (phone screens with fictional demo data) */
.portal {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.portal-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.portal-points li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.portal-points .star {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  fill: var(--red);
}
.portal-points h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy);
}
.portal-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}
.portal-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-weight: 600;
  color: var(--navy);
}
.portal-secure .lock {
  color: var(--red);
}
.portal-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.portal-phones .phone {
  margin: 0;
  text-align: center;
}
.portal-phones .phone:nth-child(2) {
  margin-top: 40px;
}
.portal-phones img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 6px solid var(--navy-deep);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.portal-phones figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
/* Portal page (KA-167): desktop view above the app phones */
.portal-desk {
  margin: 0 auto 48px;
  max-width: 1100px;
  text-align: center;
}
.portal-desk img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.portal-desk figcaption,
.portal-app figcaption {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}
.portal-app {
  max-width: 860px;
  margin: 0 auto;
}
.portal-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .portal {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  /* phones scroll sideways inside the section, never the page */
  .portal-phones {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
  }
  .portal-phones .phone {
    flex: 0 0 68%;
    scroll-snap-align: center;
  }
  .portal-phones .phone:nth-child(2) {
    margin-top: 0;
  }
}

/* Services page: interactive layer (progress, chapter rail, spotlight,
   list hover, magnetic buttons). Elements are created by script.js; all of
   it is off with reduced motion. */
@property --spot {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.fx-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 40;
  background: linear-gradient(90deg, var(--red), var(--sun));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}
.fx-rail {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  z-index: 25;
  display: none;
  transform: translate3d(16px, -50%, 0);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.fx-rail.show {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  pointer-events: auto;
}
.fx-rail ol {
  list-style: none;
  margin: 0;
  padding: 10px 8px;
  display: grid;
  gap: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.fx-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fx-rail a:hover,
.fx-rail a:focus-visible {
  color: var(--navy);
  transform: scale(1.12);
}
.fx-rail a[aria-current="true"] {
  background: var(--red);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 6px 16px -6px rgb(178 34 52 / 0.7);
}
.fx-rail a span {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translate3d(8px, -50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.fx-rail a:hover span,
.fx-rail a:focus-visible span {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}
/* only where it fits beside the 1200px content column */
@media (min-width: 1400px) {
  .fx-rail {
    display: block;
  }
}
html.fx3d .detail {
  background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgb(242 165 65 / calc(var(--spot) * 0.16)), transparent 65%);
  transition: --spot 0.5s ease;
}
html.fx3d .detail.spot {
  --spot: 1;
}
html.fx3d .detail-body li::before {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
  html.fx3d .detail-body li:hover {
    color: var(--navy);
    translate: 6px 0;
    transition: color 0.25s ease, translate 0.25s ease;
  }
  html.fx3d .detail-body li:hover::before {
    transform: rotate(144deg) scale(1.35);
  }
}
html.fx3d .detail-body li {
  transition: color 0.25s ease, translate 0.25s ease;
}
html.fx3d .services-page .button.magnetic {
  translate: var(--bx, 0) var(--by, 0);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
}
html.fx3d .services-page .button.magnetic.pull {
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, translate 0.08s linear;
}
.fx-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  pointer-events: none;
  animation: fx-ripple 0.6s ease-out forwards;
}
@keyframes fx-ripple {
  to {
    transform: scale(28);
    opacity: 0;
  }
}

/* KA-168: honeypot field of the inquiry form, off-screen for people and hidden from assistive technology */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* KA-168: consent banner. Non-modal, both choices equally prominent; the page stays usable while it is open. */
.consent-bar { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent-bar[hidden] { display: none; }
.consent-inner { pointer-events: auto; max-width: 46rem; background: #fff; color: #10233f; border: 1px solid rgba(16, 35, 63, 0.18); border-radius: 14px; box-shadow: 0 18px 48px rgba(16, 35, 63, 0.22); padding: 1.1rem 1.25rem; }
.consent-bar h2 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.consent-bar p { font-size: 0.92rem; line-height: 1.5; margin: 0 0 0.9rem; }
.consent-bar a { color: inherit; text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent-btn { flex: 1 1 12rem; min-height: 44px; font: inherit; font-weight: 600; border-radius: 999px; border: 2px solid #10233f; background: #fff; color: #10233f; cursor: pointer; padding: 0.55rem 1.1rem; }
.consent-btn:hover { background: #10233f; color: #fff; }
.consent-btn:focus-visible { outline: 3px solid #c8102e; outline-offset: 2px; }
