:root {
  /* Cape Nova Capital brand colors, taken from the company letterhead */
  --swiss-red: #d35a16; /* brand orange — decorative use and large text only (fails AA contrast for small text) */
  --swiss-red-dark: #b04a12; /* AA-safe orange — default for small text/icons on white and buttons */
  --swiss-red-darker: #8a3a0d; /* button hover state */
  --teal: #2f7e9e; /* brand teal — primary structural color */
  --teal-dark: #22617a;
  --peach: #f8cfb7; /* brand peach/tan — soft tint backgrounds */
  --ink: #17242b;
  --ink-soft: #3a4d56;
  --paper: #ffffff;
  --paper-tint: #f8cfb7;
  --line: #d9d9d6;
  --muted: #5c6c73;
  --header-height: 82px;
  --grid-max: 1280px;
  --gutter: 32px;
  --font-mono: "IBM Plex Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 2px 10px rgba(23, 36, 43, 0.06), 0 1px 3px rgba(23, 36, 43, 0.07);
  --shadow-soft-lift: 0 14px 28px rgba(23, 36, 43, 0.12), 0 4px 10px rgba(23, 36, 43, 0.08);
  font-family: var(--font-body);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--swiss-red);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) 1.6fr auto;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(23, 36, 43, 0.08);
  box-shadow: 0 8px 24px rgba(23, 36, 43, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-height);
  padding: 0 24px;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  background: url("assets/logo-mark-03.svg") center / contain no-repeat;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(23, 36, 43, 0.07);
  color: var(--ink);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}

.header-ctas .button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.68rem;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--swiss-red-dark);
  border-color: var(--swiss-red-dark);
  color: var(--paper);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--swiss-red-darker);
  border-color: var(--swiss-red-darker);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-light:hover,
.button-light:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.button-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(88vh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 36%, rgba(255, 255, 255, 0.32) 57%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0)),
    url("assets/photos/hero-exterior.webp") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  top: 0;
  bottom: 0;
  width: 12px;
  background: var(--swiss-red);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 0 auto;
  padding: 80px 0 56px;
  padding-left: 24px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.hero-grid > * {
  grid-column: 1 / span 6;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--swiss-red-dark);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Orange fails AA contrast on the peach tint sections — teal-dark reads clearly instead */
.section-tint .eyebrow:not(.eyebrow-invert) {
  color: var(--teal-dark);
}

.eyebrow-invert {
  color: var(--paper);
}

.eyebrow-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eyebrow-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.eyebrow-brand small {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  margin-bottom: 24px;
  font-size: 4.7rem;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 760px;
}

h2 {
  margin-bottom: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.text-accent {
  color: var(--swiss-red);
}

.hero-copy {
  max-width: 700px;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-proof span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--swiss-red-dark);
  flex: none;
}

.reg-marks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.reg-marks span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid rgba(23, 36, 43, 0.38);
}

.reg-marks span:nth-child(1) {
  top: 28px;
  left: calc(var(--gutter) + 20px);
  border-top-width: 1px;
  border-left-width: 1px;
}

.reg-marks span:nth-child(2) {
  top: 28px;
  right: 28px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.reg-marks span:nth-child(3) {
  bottom: 28px;
  left: calc(var(--gutter) + 20px);
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.reg-marks span:nth-child(4) {
  bottom: 28px;
  right: 28px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.reg-marks span:nth-child(4)::after {
  content: "REG. 2026/400126/07";
  position: absolute;
  right: 24px;
  bottom: 4px;
  color: rgba(23, 36, 43, 0.45);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.signal-strip {
  background: var(--ink);
  color: var(--paper);
}

.strip-inner {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.strip-inner span {
  font-size: 1.4rem;
  line-height: 1.15;
}

.section {
  padding: 96px 0;
}

.section-white {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
}

.section-white::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/photos/exterior-texture.webp") left center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.section-tint {
  position: relative;
  background: var(--paper-tint);
}

.section-tint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/photos/exterior-texture.webp") left center / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.section-red {
  background: var(--teal);
  color: var(--paper);
}

.section-black {
  background: var(--teal-dark);
  color: var(--paper);
}

.section-grid,
.two-column,
.model-grid,
.professional-grid,
.assessment-layout,
.legal-band,
.site-footer {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 0 auto;
}

.section-grid,
.two-column,
.model-grid,
.professional-grid,
.assessment-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.section-intro {
  grid-column: 1 / span 4;
}

.route-grid {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.route-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.route-number,
.timeline span,
.professional-list span {
  display: inline-block;
  margin-bottom: 42px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Same label, three different backgrounds — each needs its own AA-safe color */
.route-number {
  color: var(--swiss-red-dark);
}

.timeline span {
  color: var(--teal-dark);
}

.professional-list span {
  color: var(--peach);
}

.route-card p {
  color: var(--ink-soft);
}

.route-card a {
  margin-top: auto;
  color: var(--swiss-red-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.model-grid > div:first-child,
.professional-grid > div:first-child {
  grid-column: 1 / span 5;
}

.model-copy,
.professional-list {
  grid-column: 7 / span 6;
}

.model-copy p {
  font-size: 1.18rem;
}

.model-copy p:last-child {
  margin-bottom: 0;
}

.two-column > div:first-child {
  grid-column: 1 / span 5;
}

.two-column > div:last-child {
  grid-column: 7 / span 6;
}

.copy-stack p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.fact-grid {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.fact-grid div {
  background: var(--paper);
  padding: 20px;
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.fact-grid strong,
.fact-grid span {
  display: block;
}

.fact-grid strong {
  margin-bottom: 8px;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.fact-grid span {
  color: var(--muted);
}

.home-grid {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-grid-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
}

.home-grid-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.home-grid-item:hover img {
  transform: scale(1.04);
}

.home-grid-note {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

.section-photo {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}

.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-photo--twilight::before {
  background-image: url("assets/photos/exterior-golden-hour.webp");
  background-position: center 40%;
}

.section-photo--entrance::before {
  background-image: url("assets/photos/entrance-family.webp");
  background-position: center 30%;
}

.section-photo--exterior::before {
  background-image: url("assets/photos/exterior-daytime-alt.webp");
  background-position: center 30%;
}

.section-photo--documents::before {
  background-image: url("assets/photos/documents.webp");
  background-position: center 35%;
}

.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 36, 43, 0.92) 0%, rgba(23, 36, 43, 0.72) 42%, rgba(23, 36, 43, 0.38) 100%);
}

.section-photo--uniform::after {
  background: linear-gradient(180deg, rgba(23, 36, 43, 0.88) 0%, rgba(23, 36, 43, 0.82) 100%);
}

.section-photo > * {
  position: relative;
  z-index: 1;
}

.statement-band {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.statement-band::after {
  background: linear-gradient(0deg, rgba(23, 36, 43, 0.88) 0%, rgba(23, 36, 43, 0.32) 48%, rgba(23, 36, 43, 0) 72%);
}

.statement-band-copy {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 0 auto;
  padding-bottom: 56px;
  max-width: 520px;
}

.statement-rule {
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--paper);
}

.statement-band-copy p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--paper);
}

.section-photo .cta-teaser-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.timeline {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 250px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.timeline p {
  color: var(--muted);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.criteria-panel {
  padding: 26px;
  background: var(--paper);
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.criteria-panel-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.criteria-panel ul {
  margin: 22px 0 0;
  padding-left: 18px;
}

.criteria-panel li + li {
  margin-top: 12px;
}

.professional-list {
  display: grid;
  gap: 24px;
}

.professional-list article {
  background: rgba(23, 36, 43, 0.62);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.professional-list p {
  color: rgba(255, 255, 255, 0.72);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.metric-grid div {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-grid strong {
  color: var(--swiss-red-dark);
  font-size: 1.1rem;
}

.metric-grid span {
  color: var(--muted);
  text-transform: uppercase;
}

.faq-list {
  grid-column: 5 / span 8;
}

details {
  background: var(--paper);
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
  box-shadow: var(--shadow-soft);
}

summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.08rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  background: var(--swiss-red-dark);
  color: var(--paper);
  font-size: 1.1rem;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  max-width: 780px;
  padding: 0 48px 22px 0;
  color: var(--muted);
}

.assessment-intro {
  grid-column: 1 / span 4;
}

.assessment-intro p {
  color: var(--muted);
}

.form-shell {
  grid-column: 5 / span 8;
  border: 1px solid rgba(23, 36, 43, 0.08);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 20px 20px 4px;
  padding: 6px;
  background: var(--paper-tint);
  border-radius: 999px;
}

.form-tabs button {
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.form-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.lead-form {
  padding: 24px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}

.form-panel {
  display: none;
}

.form-panel.is-active {
  display: block;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.form-section-heading {
  margin: 28px 0 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.form-panel > .form-section-heading:first-child {
  margin-top: 4px;
}

.form-note {
  margin: -10px 0 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.cta-teaser {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cta-teaser-copy p.eyebrow {
  margin-bottom: 14px;
}

.cta-teaser-copy h1,
.cta-teaser-copy h2 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.cta-teaser-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 26px;
  color: var(--ink-soft);
}

.cta-teaser-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.not-found-hero {
  min-height: calc(80vh - var(--header-height));
  display: flex;
  align-items: center;
}

.not-found-teaser {
  text-align: center;
  margin: 0 auto;
}

.not-found-actions {
  justify-content: center;
}

select {
  width: 100%;
  border: 1px solid rgba(23, 36, 43, 0.16);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 160ms ease;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 36, 43, 0.16);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 160ms ease;
}

textarea {
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(23, 36, 43, 0.3);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.full-field,
.consent-row {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  text-transform: none;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  accent-color: var(--swiss-red-dark);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-status {
  margin: 0;
  color: var(--swiss-red-dark);
  font-weight: 800;
}

.legal-band {
  padding: 54px 0;
}

.legal-band div {
  max-width: 920px;
}

.legal-band h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.legal-band p {
  color: var(--ink-soft);
}

.legal-band p a {
  color: var(--swiss-red-dark);
  font-weight: 700;
}

.legal-updated {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-dark) !important;
}

.legal-hero {
  padding: 64px 0 8px;
}

.legal-hero div {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 0 auto;
  max-width: 720px;
}

.legal-hero p.eyebrow {
  margin-bottom: 14px;
}

.legal-hero h1 {
  margin-bottom: 16px;
}

.legal-hero > div > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.legal-page {
  width: min(100% - 2 * var(--gutter), var(--grid-max));
  margin: 0 auto;
  padding: 40px 0 96px;
}

.legal-nav {
  display: flex;
  gap: 6px;
  margin: 0 0 48px;
  padding: 6px;
  max-width: 640px;
  background: var(--paper-tint);
  border-radius: 999px;
}

.legal-nav a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.legal-section {
  max-width: 760px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.legal-section h3 {
  margin: 30px 0 10px;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section a {
  color: var(--swiss-red-dark);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  grid-template-areas:
    "brand nav"
    "contact contact";
  gap: 24px 40px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--ink);
}

.site-footer > div:first-child {
  grid-area: brand;
}

.site-footer nav {
  grid-area: nav;
}

.footer-contact {
  grid-area: contact;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-contact-heading {
  margin: 0 0 4px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--teal);
}

.footer-contact p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-contact p strong {
  color: var(--ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-brand {
  min-height: 0;
  padding: 0;
  border-right: 0;
}

.site-footer p {
  margin: 18px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.site-footer nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--swiss-red-dark);
}

@media (max-width: 1160px) {
  :root {
    --gutter: 24px;
  }

  .site-header {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(23, 36, 43, 0.05);
  }

  .header-ctas {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--header-height);
    min-height: var(--header-height);
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    width: 28px;
    height: 2px;
    display: block;
    background: var(--ink);
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    top: -8px;
  }

  .nav-toggle-bars::after {
    top: 8px;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-grid > * {
    grid-column: 1 / span 7;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
    --gutter: 18px;
  }

  body {
    background: var(--paper);
  }

  .brand {
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 58%, rgba(255, 255, 255, 0.2) 100%),
      url("assets/photos/hero-exterior.webp") center bottom / cover no-repeat;
  }

  .hero::after {
    left: 0;
    width: 8px;
  }

  .hero-grid {
    display: block;
    padding: 54px 0 210px;
  }

  h1 {
    font-size: 2.52rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .strip-inner,
  .section-grid,
  .two-column,
  .model-grid,
  .professional-grid,
  .assessment-layout,
  .cta-teaser,
  .site-footer {
    display: block;
  }

  .strip-inner {
    padding: 24px 0;
  }

  .strip-inner span {
    display: block;
    font-size: 1.15rem;
  }

  .section {
    padding: 68px 0;
  }

  .section-intro,
  .assessment-intro {
    margin-bottom: 28px;
  }

  .route-grid,
  .timeline,
  .criteria-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .home-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
  }

  .route-grid,
  .timeline,
  .faq-list,
  .form-shell {
    grid-column: auto;
  }

  .route-card,
  .timeline li {
    min-height: auto;
  }

  .route-number,
  .timeline span,
  .professional-list span {
    margin-bottom: 24px;
  }

  .model-copy,
  .professional-list,
  .copy-stack,
  .criteria-grid,
  .form-shell {
    margin-top: 28px;
  }

  .field-grid,
  .form-tabs {
    grid-template-columns: 1fr;
  }

  .form-tabs {
    border-radius: var(--radius);
  }

  .form-tabs button {
    border-radius: calc(var(--radius) - 4px);
  }

  .legal-nav {
    flex-direction: column;
    max-width: none;
    border-radius: var(--radius);
  }

  .legal-nav a {
    border-radius: calc(var(--radius) - 4px);
  }

  details p {
    padding-right: 0;
  }

  .site-footer {
    padding-bottom: 34px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
    margin-top: 24px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Subtle scroll-reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1.is-visible { transition-delay: 90ms; }
.reveal-delay-2.is-visible { transition-delay: 180ms; }
.reveal-delay-3.is-visible { transition-delay: 270ms; }
.reveal-delay-4.is-visible { transition-delay: 360ms; }
.reveal-delay-5.is-visible { transition-delay: 450ms; }

/* Subtle hover lift for interactive cards */
.route-card,
.criteria-panel,
.professional-list article,
.timeline li,
.metric-grid div,
.fact-grid div,
.home-grid-item,
details {
  transition: opacity 700ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.route-card:hover,
.criteria-panel:hover,
.professional-list article:hover,
.timeline li:hover,
.metric-grid div:hover,
.fact-grid div:hover,
.home-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-lift);
}

details:hover {
  box-shadow: 0 6px 18px rgba(23, 36, 43, 0.08);
}

.button {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23, 36, 43, 0.16);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

summary::after {
  transition: transform 220ms ease, background 220ms ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

/* POPIA / privacy consent banner */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 360ms ease, opacity 360ms ease;
  pointer-events: none;
}

.consent-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.consent-banner-inner {
  width: min(100%, 880px);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(23, 36, 43, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft-lift);
  backdrop-filter: blur(14px);
}

.consent-banner-eyebrow {
  margin: 0;
  flex: 0 0 auto;
  color: var(--swiss-red-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consent-banner-copy {
  margin: 0;
  flex: 1 1 auto;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-banner-copy a {
  color: var(--swiss-red-dark);
  font-weight: 700;
}

.consent-banner-dismiss {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .consent-banner {
    padding: 0 16px;
  }

  .consent-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 20px;
  }

  .consent-banner-dismiss {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
