/* ==========================================================================
   Climber Capital — one-page draft
   Palette: granite navy, cool snow, Swiss red used sparingly.
   ========================================================================== */

/* Self-hosted variable fonts (Latin subset): no requests to Google */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --ink: #0f1b26;
  --granite: #1c3042;
  --slate: #3b5468;
  --stone: #5a6b79;
  --mist: #e3e9ee;
  --snow: #f4f7f9;
  --white: #ffffff;
  --line: #d2dbe2;
  --red: #c8102e;

  --font-head: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;

  --gutter: 24px;
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(30px, 4vw, 46px); }
/* long German compounds ("Vermögensverwaltungsmandate") need to break on small screens */
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) dt { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h3 { font-size: 21px; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.muted { color: var(--stone); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { top: 16px; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b9c8d4;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.eyebrow-dark { color: var(--slate); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-intro { font-size: 19px; color: var(--stone); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--granite); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
  --header-h: 64px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* The firm's existing logo (navy PNG with transparency); shown white over dark areas */
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); transition: filter .35s var(--ease); }
.site-header.is-scrolled .brand img { filter: none; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-current::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid currentColor;
  padding: 9px 18px !important;
  border-radius: 3px;
}
.nav-toggle { display: none; }

.lang-switch { display: flex; gap: 2px; margin-left: -6px; }
.lang-switch button {
  font: 600 12px/1 var(--font-head);
  letter-spacing: .08em;
  color: inherit;
  background: none;
  border: 0;
  padding: 8px 6px;
  cursor: pointer;
  opacity: .6;
  border-bottom: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--red); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
/* Photo is taller than the hero so the parallax drift never shows an edge */
.hero-img {
  position: absolute;
  left: 0; top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 62% 45%;
  will-change: transform;
}
/* darken the left for the text, and the top for the header */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,20,29,.82) 0%, rgba(10,20,29,.55) 38%, rgba(10,20,29,.08) 72%),
    linear-gradient(180deg, rgba(10,20,29,.55) 0%, rgba(10,20,29,0) 22%, rgba(10,20,29,0) 75%, rgba(10,20,29,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 10vh;
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 11ch;
  margin-bottom: 28px;
}
.hero-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 560px;
  color: #d5dfe7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Philosophy --------------------------------------------------------------- */
.philosophy {
  position: relative;
  background: var(--snow);
  padding: 120px 0 130px;
  overflow: hidden;
}
.contours {
  position: absolute;
  right: -180px; top: 50%;
  width: 760px; height: 760px;
  transform: translateY(-50%);
  fill: none;
  stroke: #c7d3dc;
  stroke-width: 1.2;
  opacity: .8;
}
.philosophy .container { position: relative; }
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
}
.philosophy-photo { margin: 0; }
.philosophy-photo img, .services-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.philosophy-photo img { aspect-ratio: 4 / 5; object-position: 55% 40%; }
.statement {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.statement-follow { font-size: 20px; color: var(--stone); max-width: 600px; }

/* Photo band --------------------------------------------------------------- */
.photo-band {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--granite);
}
.band-img {
  position: absolute;
  left: 0; top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 60% 40%;
  will-change: transform;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,27,38,.6) 0%, rgba(15,27,38,0) 60%),
    linear-gradient(180deg, rgba(15,27,38,0) 30%, rgba(15,27,38,.85) 100%);
}
.band-caption { position: relative; z-index: 1; padding-bottom: 64px; }
.band-caption h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.025em; max-width: 14ch; margin-bottom: 14px; }
.band-caption p { font-size: 19px; max-width: 520px; color: #dbe4eb; margin: 0; }

/* Ascent ------------------------------------------------------------------- */
.ascent { padding: 130px 0 80px; background: var(--white); }
.ascent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.ascent-visual {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: calc(100vh - var(--header-h) - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ascent-mountain {
  width: 100%; max-width: 440px; height: 100%; max-height: 620px; overflow: visible;
  /* fade out the bottom and both sides, so the scene has no hard edges */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 91%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 91%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.mtn-far { fill: #f0f3f6; }
.mtn-far-snow { fill: var(--white); }
.mtn-lit { fill: url(#mtn-lit); stroke: #c6d1da; stroke-width: .8; stroke-linejoin: round; }
.mtn-facet { fill: #d9e1e8; }
.mtn-shade { fill: url(#mtn-shade); }
.mtn-strata { fill: none; stroke: #aebdca; stroke-width: .9; stroke-linecap: round; opacity: .55; }
.mtn-ridge { fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linejoin: round; opacity: .75; }
.mtn-snow { fill: var(--white); }
.mtn-snow-shade { fill: #e4ebf1; opacity: .9; }
.mtn-glacier { fill: #f4f7f9; }
.mtn-camp { fill: var(--slate); }
.mtn-camp-door { fill: #e9eff4; }
.mtn-flag-pole { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.trail { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-base { stroke: var(--slate); stroke-width: 1.8; stroke-dasharray: 1 6; opacity: .7; }
.trail-done { stroke: var(--red); stroke-width: 3; }
.waypoint { fill: var(--white); stroke: var(--slate); stroke-width: 2; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.waypoint.is-reached { fill: var(--red); stroke: var(--red); }
#trail-climber { color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 40px 28px;
  border-left: 2px solid var(--line);
  opacity: .35;
  transition: opacity .5s var(--ease), border-color .5s var(--ease);
}
.step.is-active { opacity: 1; border-left-color: var(--red); }
.step h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.step p { font-size: 18px; color: var(--stone); max-width: 460px; }
.step-stage {
  font-family: var(--font-head);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red) !important;
  margin-bottom: 12px;
}
.no-js .step, html:not(.js) .step { opacity: 1; }

/* Services ----------------------------------------------------------------- */
.services { padding: 110px 0; background: var(--snow); }
.services-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 56px;
}
.services-top .section-head { margin-bottom: 0; }
.services-photo { margin: 0; }
.services-photo img { aspect-ratio: 4 / 3; object-position: 50% 28%; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service {
  background: var(--white);
  padding: 40px 34px 36px;
  border-top: 3px solid var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15,27,38,.35); }
.service p { color: var(--stone); margin: 0; }
.icon {
  width: 44px; height: 44px; margin-bottom: 26px;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}

/* Difference --------------------------------------------------------------- */
.difference { padding: 120px 0; background: var(--ink); color: var(--white); }
.difference h2 { color: var(--white); }
.difference .section-intro { color: #aebdca; }
.difference-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.difference .section-head { margin-bottom: 0; }
.principles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
.principle { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.principle dt { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.principle dd { margin: 0; color: #aebdca; }

/* Regulation --------------------------------------------------------------- */
.regulation { padding: 110px 0; background: var(--white); }
.reg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reg-item { padding: 34px 32px 30px 0; }
.reg-item + .reg-item { padding-left: 32px; border-left: 1px solid var(--line); }
.reg-item p:last-child { color: var(--stone); margin: 0; }
.reg-name { font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.downloads { margin-top: 56px; }
.downloads h3 { font-size: 17px; margin-bottom: 14px; }
.downloads ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.downloads a {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.downloads a:hover { border-color: var(--ink); background: var(--snow); }
.doc-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.doc-text { display: flex; flex-direction: column; line-height: 1.35; }
.doc-name { font-weight: 500; }
.doc-meta { font-size: 13px; color: var(--stone); }

/* Contact ------------------------------------------------------------------ */
.contact {
  padding: 120px 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(20,36,50,.62) 0%, rgba(15,27,38,.9) 100%),
    var(--granite) url("../images/lake-geneva.jpg") center 35% / cover no-repeat;
}
.contact .section-intro { color: #b8c6d2; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.contact address { font-style: normal; margin: 32px 0 22px; line-height: 1.7; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; }
.contact-lines a { text-decoration: none; font-weight: 500; }
.contact-lines a:hover { text-decoration: underline; }
.contact .muted { color: #93a6b5; font-size: 15px; }

.contact-form { background: var(--white); color: var(--ink); padding: 40px; border-radius: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--snow);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field.has-error input { border-color: var(--red); }
.form-note { margin: 14px 0 0; font-size: 14px; color: var(--stone); min-height: 1.4em; }
.form-note.is-success { color: #1d6b43; font-weight: 500; }
.form-note.is-error { color: var(--red); }
.form-privacy { font-size: 13px; color: var(--stone); margin: 4px 0 20px; }
.form-privacy a { color: inherit; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
/* honeypot: hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent p { font-size: 17px; margin-bottom: 22px; }
.form-consent a { font-weight: 500; }
.contact-form [hidden] { display: none; }

/* Map ---------------------------------------------------------------------- */
.map-wrap {
  margin-top: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}
.office-map { height: 380px; background: var(--mist); position: relative; }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(15,27,38,.045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(15,27,38,.045) 0 1px, transparent 1px 44px),
    var(--mist);
}
.map-consent p { max-width: 440px; margin: 0; font-size: 15px; color: var(--stone); }
.map-consent-pin { width: 30px; height: 39px; fill: var(--red); }
/* soften swisstopo's dark building fills so the red pin stands out */
.office-map .leaflet-tile-pane { filter: contrast(.5) brightness(1.3); }
.map-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 16px 22px;
  font-size: 15px;
}
.map-bar a { font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--red); }
.map-bar a:hover { text-decoration: underline; }
.map-pin { width: 34px; height: 44px; }
.map-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(15,27,38,.35)); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c4d0da; padding: 64px 0 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.brand-footer { margin-bottom: 18px; }
.brand-footer img { height: 26px; }
.site-footer .muted { color: #8195a6; }
.disclaimer p { max-width: 720px; }

/* Reveal ------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .ascent-grid { grid-template-columns: 1fr; gap: 0; }
  .ascent-visual {
    top: var(--header-h);
    height: 30vh;
    z-index: 2;
    background: linear-gradient(var(--white) 82%, rgba(255,255,255,0));
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px 0 18px;
  }
  .step { min-height: 46vh; }
  .service-grid { grid-template-columns: 1fr; }
  .difference-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .philosophy-grid, .services-top { grid-template-columns: 1fr; gap: 44px; }
  .philosophy-photo img { aspect-ratio: 3 / 2; object-position: 50% 42%; }
  .photo-band { height: 64vh; min-height: 420px; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-item, .reg-item + .reg-item { padding: 26px 0; border-left: 0; }
  .reg-item + .reg-item { border-top: 1px solid var(--line); }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
    width: 44px; height: 44px;
    background: none; border: 0; padding: 0;
    color: inherit; cursor: pointer;
    position: relative; z-index: 60;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: "";
    position: absolute; left: 11px; width: 22px; height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), background .3s;
  }
  .nav-toggle-bar { top: 21px; }
  .nav-toggle-bar::before { left: 0; top: -7px; }
  .nav-toggle-bar::after { left: 0; top: 7px; }
  .nav-open .nav-toggle-bar { background: transparent; }
  .nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--ink);
    color: var(--white);
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .site-nav a { font-size: 22px; }
  .site-nav .lang-switch { margin: 18px 0 0; gap: 10px; }
  /* tablets: the text column reaches the ibex, so darken further across */
  .hero::before {
    background:
      linear-gradient(90deg, rgba(10,20,29,.86) 0%, rgba(10,20,29,.7) 50%, rgba(10,20,29,.2) 85%),
      linear-gradient(180deg, rgba(10,20,29,.55) 0%, rgba(10,20,29,0) 22%);
  }
  .hero-lede { max-width: 480px; }
  .site-nav .lang-switch button { font-size: 15px; padding: 8px 8px; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .brand { position: relative; z-index: 60; }
  .nav-open .brand img { filter: brightness(0) invert(1); }
  .nav-open .site-header { color: var(--white); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  /* phones: photo on top, text below on the dark fade, so the copy never sits on busy rock */
  .hero { align-items: flex-end; }
  .hero-content { padding-top: 38svh; padding-bottom: 5vh; }
  .hero h1 { font-size: 40px; margin-bottom: 20px; }
  .hero-lede { font-size: 16.5px; margin-bottom: 28px; }
  .hero-img {
    top: 0; height: 50svh; object-position: 64% 40%;
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  }
  .hero::before { background: linear-gradient(180deg, rgba(10,20,29,.55) 0%, rgba(10,20,29,0) 14%); }
  .office-map { height: 300px; }
  .brand img { height: 24px; }
  .philosophy, .services, .difference, .regulation, .contact { padding: 80px 0; }
  .ascent { padding: 80px 0 40px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }
  .contours { width: 520px; height: 520px; right: -260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal notice & privacy page ---------------------------------------------- */
.legal-page { background: var(--white); }
.legal-nav { display: flex; align-items: center; gap: 22px; }
.legal-back { font-size: 15px; font-weight: 500; text-decoration: none; }
.legal-back::before { content: "← "; }
.legal-back:hover { text-decoration: underline; }
.legal-main { padding: calc(var(--header-h) + 72px) 0 110px; }
.legal-doc { max-width: 820px; }
.legal-doc h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 12px; }
.legal-updated { color: var(--stone); font-size: 15px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.legal-toc a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 3px;
}
.legal-toc a:hover { border-color: var(--ink); }
.legal-section { padding-top: 56px; scroll-margin-top: var(--header-h); }
.legal-section h2 { font-size: clamp(26px, 3vw, 34px); padding-top: 22px; border-top: 3px solid var(--ink); }
.legal-section h3 { font-size: 18px; margin: 34px 0 8px; }
.legal-section p { color: #33434f; }
.legal-section a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal-intro { font-size: 18px; }
.legal-facts { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0; margin: 24px 0 10px; border-top: 1px solid var(--line); }
.legal-facts dt, .legal-facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-facts dt { font-family: var(--font-head); font-weight: 600; padding-right: 20px; }
.legal-facts dd { color: #33434f; }
/* placeholders the firm must fill in before publishing */
.ph { background: #fff1a8; color: var(--ink); padding: 0 4px; border-radius: 2px; }
.site-footer a { color: inherit; }

@media (max-width: 600px) {
  .legal-back { display: none; }
  .legal-facts { grid-template-columns: 1fr; }
  .legal-facts dt { padding-bottom: 0; border-bottom: 0; }
  .legal-main { padding-top: calc(var(--header-h) + 40px); }
}

/* Consent banner ------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 90;
  width: min(460px, calc(100vw - 32px));
  padding: 24px 24px 22px;
  background: var(--white);
  color: var(--ink);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  box-shadow: 0 20px 50px -18px rgba(15,27,38,.45), 0 0 0 1px rgba(15,27,38,.06);
}
.consent[hidden] { display: none; }
.consent-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.consent-text { font-size: 14px; color: #33434f; margin-bottom: 18px; }
.consent-text a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
/* both choices equally prominent */
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .btn { justify-content: center; padding: 13px 16px; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--snow); }
.link-button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}

@media (max-width: 600px) {
  .consent { left: 16px; bottom: 16px; padding: 20px 18px 18px; }
}
