:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #101828;
  --navy: #071a33;
  --blue: #1f5eff;
  --blue-dark: #1647c8;
  --sky: #dcecff;
  --sky-soft: #f5f9ff;
  --muted: #637083;
  --line: rgba(7, 26, 51, 0.12);
  --line-light: rgba(255, 255, 255, 0.22);
  --green: #1fa463;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--blue); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(78px, 10vw, 150px); }
.section-sm { padding-block: clamp(54px, 7vw, 96px); }
.section-rule { border-top: 1px solid var(--line); }
.section-navy { color: var(--white); background: var(--navy); }
.section-white { background: var(--sky-soft); }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.kicker::before { width: 2px; height: 30px; content: ""; background: currentColor; }
.section-navy .kicker { color: #79a0ff; }
.display {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.068em;
  line-height: 0.92;
}
.display em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.title-xl {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.062em;
  line-height: 0.94;
}
.title-lg {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.title-md {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.03;
}
.lead {
  max-width: 770px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 1.55;
}
.section-navy .lead { color: rgba(255, 255, 255, 0.74); }
.small { color: var(--muted); font-size: 0.9rem; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 35px rgba(7, 26, 51, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
  min-height: 86px;
  gap: clamp(20px, 3vw, 48px);
}
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { width: 166px; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.main-nav a {
  position: relative;
  padding-block: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-cta { white-space: nowrap; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button:hover { border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.button-blue { border-color: var(--blue); background: var(--blue); }
.button-blue:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button-light { border-color: var(--white); color: var(--navy); background: var(--white); }
.button-light:hover { border-color: var(--white); color: var(--white); background: transparent; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 5px;
  border-bottom: 1px solid currentColor;
  font-weight: 750;
}
.text-link:hover { color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }

.home-hero { min-height: calc(100svh - 86px); padding-block: clamp(52px, 6vw, 92px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); align-items: end; gap: clamp(36px, 6vw, 96px); }
.hero-copy { align-self: center; }
.hero-copy .lead { max-width: 690px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.portrait-frame { position: relative; min-height: min(70vh, 760px); overflow: hidden; background: #d8d8d8; }
.portrait-frame::before { position: absolute; z-index: 2; top: 0; bottom: 0; left: 24px; width: 3px; content: ""; background: var(--blue); }
.portrait-frame img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.03); }
.portrait-frame figcaption { position: absolute; z-index: 3; right: 18px; bottom: 18px; left: 42px; display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.55); color: var(--white); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }

.human-statement { display: grid; grid-template-columns: 2fr 10fr; gap: clamp(30px, 5vw, 90px); }
.human-statement blockquote { max-width: 1120px; margin: 0; font-size: clamp(2.4rem, 5.7vw, 6.1rem); font-weight: 650; letter-spacing: -0.058em; line-height: 0.98; }
.human-statement em { color: #8cacff; font-family: var(--serif); font-weight: 400; }

.services-list { margin-top: clamp(50px, 7vw, 92px); border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 4fr) minmax(260px, 5fr) 40px;
  align-items: center;
  gap: 24px;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
  transition: color 240ms ease, background 240ms ease, padding 240ms ease;
}
.service-row:hover { padding-inline: 18px; color: var(--white); background: var(--navy); }
.service-row .num { color: var(--blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; }
.service-row h3 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.service-row p { margin: 0; color: var(--muted); }
.service-row:hover p { color: rgba(255, 255, 255, 0.72); }
.service-row .arrow { font-size: 1.5rem; }

.image-editorial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.image-editorial figure, .gallery-grid figure { margin: 0; }
.image-editorial figure, .gallery-grid figure { overflow: hidden; background: var(--sky-soft); }
.image-editorial img, .gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 420ms ease; }
.image-editorial figure:hover img, .gallery-grid figure:hover img { transform: scale(1.025); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); }
.split > :first-child { grid-column: 1 / span 5; }
.split > :last-child { grid-column: 7 / -1; }
.copy p { margin: 0 0 1.1em; color: var(--muted); font-size: clamp(1.02rem, 1.35vw, 1.2rem); }
.copy p:last-child { margin-bottom: 0; }
.copy strong { color: var(--ink); }
.section-navy .copy p { color: rgba(255, 255, 255, 0.72); }
.section-navy .copy strong { color: var(--white); }

.chapter-list { margin-top: 50px; border-top: 1px solid var(--line); }
.chapter {
  display: grid;
  grid-template-columns: 80px minmax(200px, 4fr) minmax(260px, 6fr);
  gap: 28px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}
.chapter .num { color: var(--blue); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; }
.chapter h2, .chapter h3 { margin: 0; font-size: clamp(1.45rem, 2.3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.05; }
.chapter p { max-width: 640px; margin: 0; color: var(--muted); }
.chapter ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.chapter li + li { margin-top: 8px; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 80px); margin-top: clamp(50px, 7vw, 90px); }
.person { display: grid; grid-template-columns: minmax(180px, 5fr) minmax(220px, 6fr); gap: clamp(22px, 3vw, 40px); align-items: end; }
.person figure { margin: 0; overflow: hidden; background: #d8d8d8; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.person h3 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -0.045em; line-height: 1; }
.person p { margin: 0 0 18px; color: var(--muted); }
.person-role { display: block; margin-bottom: 14px; color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.page-hero { padding-block: clamp(70px, 9vw, 132px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.page-hero-side { padding-left: 24px; border-left: 2px solid var(--blue); color: var(--muted); }
.page-hero-side p { margin: 0 0 18px; }
.page-hero-side p:last-child { margin-bottom: 0; }

.featured-media { position: relative; min-height: clamp(430px, 68vw, 880px); overflow: hidden; }
.featured-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.featured-media .media-note { position: absolute; right: var(--gutter); bottom: var(--gutter); max-width: 430px; padding: 20px 22px; color: var(--white); background: var(--navy); }

.gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.gallery-grid figure { grid-column: span 2; }
.gallery-grid figure:nth-child(4) { grid-column: 2 / span 2; }
.gallery-grid figure:nth-child(5) { grid-column: 4 / span 2; }
.gallery-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; }
.gallery-grid-two figure:nth-child(n) { grid-column: auto; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { min-height: 180px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact span { display: block; margin-bottom: 34px; color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.fact strong { display: block; max-width: 320px; font-size: clamp(1.25rem, 2vw, 1.8rem); letter-spacing: -0.028em; line-height: 1.15; }

.faq-list { margin-top: 50px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 54px 25px 0; cursor: pointer; list-style: none; font-size: clamp(1.08rem, 1.7vw, 1.32rem); font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 20px; right: 4px; content: "+"; color: var(--blue); font-size: 1.7rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 800px; margin: 0; padding: 0 0 28px; color: var(--muted); }

.contact-band { display: grid; grid-template-columns: 8fr 4fr; gap: 40px; align-items: end; }
.contact-band .title-lg { max-width: 900px; }
.contact-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.direct-contact { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--line-light); }
.direct-contact a, .direct-contact div { min-height: 120px; padding: 24px 24px 0 0; border-right: 1px solid var(--line-light); }
.direct-contact a:not(:first-child), .direct-contact div:not(:first-child) { padding-left: 24px; }
.direct-contact small { display: block; margin-bottom: 12px; color: rgba(255, 255, 255, 0.55); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.direct-contact strong { font-size: clamp(1rem, 1.4vw, 1.25rem); }

.form-shell { display: grid; grid-template-columns: minmax(260px, 4fr) minmax(0, 7fr); gap: clamp(42px, 7vw, 110px); align-items: start; }
.form-panel { padding: clamp(26px, 4vw, 54px); color: var(--ink); background: var(--white); box-shadow: 0 24px 70px rgba(7, 26, 51, 0.09); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9ca5b2;
  border-radius: 0;
  outline: 0;
  padding: 12px 2px;
  color: var(--ink);
  background: transparent;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.privacy-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 26px 0; color: var(--muted); font-size: 0.82rem; }
.privacy-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.privacy-check a { color: var(--ink); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.5em; margin: 16px 0 0; font-size: 0.86rem; font-weight: 700; }
.form-status.is-error { color: #ad2533; }
.form-status.is-success { color: #147b4b; }

.consultation-dialog {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 34px 100px rgba(7, 26, 51, 0.35);
}
.consultation-dialog::backdrop { background: rgba(7, 26, 51, 0.78); }
.dialog-head { display: flex; justify-content: space-between; gap: 30px; padding: 28px clamp(24px, 4vw, 46px); border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -0.045em; }
.dialog-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--ink); background: transparent; font-size: 1.5rem; cursor: pointer; }
.dialog-body { max-height: calc(92vh - 100px); overflow-y: auto; padding: clamp(24px, 4vw, 46px); }
.dialog-body .form-panel { padding: 0; box-shadow: none; }

.ai-launcher {
  position: fixed;
  z-index: 91;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(88px, 7vw, 102px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 38px rgba(7, 26, 51, 0.25);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}
.ai-launcher:hover { background: var(--blue); transform: translateY(-2px); }
.ai-launcher-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.ai-launcher-mark span { display: block; width: 3px; border-radius: 3px; background: #8cacff; }
.ai-launcher-mark span:nth-child(1) { height: 8px; }
.ai-launcher-mark span:nth-child(2) { height: 16px; }
.ai-launcher-mark span:nth-child(3) { height: 11px; }
.ai-assistant.is-open .ai-launcher { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(8px); }

.ai-panel {
  position: fixed;
  z-index: 420;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(16px, 2vw, 30px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(440px, calc(100vw - 32px));
  height: min(700px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid rgba(7, 26, 51, 0.12);
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(7, 26, 51, 0.3);
}
.ai-panel[hidden] { display: none; }
.ai-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 22px 19px;
  color: var(--white);
  background: var(--navy);
}
.ai-eyebrow { color: #8cacff; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.ai-panel-head h2 { margin: 4px 0 5px; font-size: 1.34rem; letter-spacing: -0.035em; line-height: 1.08; }
.ai-panel-head p { margin: 0; color: rgba(255, 255, 255, 0.64); font-size: 0.73rem; }
.ai-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.ai-close:hover { color: var(--navy); background: var(--white); }
.ai-panel-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 22px;
  background: linear-gradient(180deg, var(--sky-soft) 0, var(--white) 42%);
}
.ai-data-note {
  margin: 0 0 15px;
  padding: 10px 12px;
  border-left: 2px solid var(--blue);
  color: #586579;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  line-height: 1.45;
}
.ai-data-note a { color: var(--ink); text-decoration: underline; }
.ai-log { display: flex; flex-direction: column; gap: 12px; }
.ai-message {
  align-self: flex-start;
  max-width: 88%;
  padding: 12px 14px;
  border: 1px solid rgba(7, 26, 51, 0.09);
  border-radius: 4px 16px 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 7px 20px rgba(7, 26, 51, 0.05);
  font-size: 0.89rem;
  line-height: 1.48;
}
.ai-message p { margin: 0; }
.ai-message-user {
  align-self: flex-end;
  border-color: var(--blue);
  border-radius: 16px 4px 16px 16px;
  color: var(--white);
  background: var(--blue);
  box-shadow: none;
}
.ai-status { min-height: 1.3em; margin: 12px 2px 0; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.ai-status.is-error { color: #ad2533; }
.ai-status.is-thinking::after { content: " •••"; color: var(--blue); letter-spacing: 0.12em; }

.ai-analysis {
  align-self: stretch;
  max-width: none;
  margin-top: 4px;
  padding: 19px;
  border: 1px solid rgba(31, 94, 255, 0.25);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 26, 51, 0.08);
}
.ai-analysis-kicker { margin: 0 0 6px; color: var(--blue); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.ai-analysis h3 { margin: 0 0 15px; font-size: 1.35rem; letter-spacing: -0.04em; line-height: 1.1; }
.ai-analysis-section + .ai-analysis-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-analysis h4 { margin: 0 0 5px; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ai-analysis p, .ai-analysis li { color: #4f5d70; font-size: 0.82rem; line-height: 1.48; }
.ai-analysis p { margin: 0; }
.ai-analysis ul { margin: 7px 0 0; padding-left: 18px; }
.ai-analysis li + li { margin-top: 4px; }

.ai-fallback {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(7, 26, 51, 0.12);
  background: var(--white);
}
.ai-fallback[hidden] { display: none; }
.ai-fallback p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.ai-fallback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.ai-fallback .button { min-height: 42px; padding: 9px 14px; font-size: 0.76rem; }
.ai-fallback .text-link { font-size: 0.78rem; }
.ai-restart { margin-top: 14px; padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--blue); background: transparent; cursor: pointer; font-size: 0.76rem; font-weight: 800; }

.ai-contact {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  color: var(--white);
  background: var(--navy);
}
.ai-contact[hidden], .ai-lead-form[hidden] { display: none; }
.ai-contact-kicker { margin: 0 0 6px; color: #8cacff; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.ai-contact h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.04em; line-height: 1.08; }
.ai-contact-intro > p:not(.ai-contact-kicker) { margin: 10px 0 16px; color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }
.ai-contact .button { min-height: 44px; padding: 10px 16px; font-size: 0.78rem; }
.ai-lead-form { display: grid; gap: 15px; }
.ai-field { display: grid; gap: 5px; }
.ai-field label { color: rgba(255, 255, 255, 0.76); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ai-field label span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.ai-field input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}
.ai-field input:focus { border-color: #8cacff; box-shadow: 0 1px 0 #8cacff; }
.ai-privacy { display: grid; grid-template-columns: 19px 1fr; gap: 9px; align-items: start; margin-top: 4px; color: rgba(255, 255, 255, 0.68); font-size: 0.7rem; line-height: 1.4; }
.ai-privacy input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.ai-privacy a { color: var(--white); text-decoration: underline; }

.ai-composer {
  padding: 13px 15px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.ai-composer[hidden] { display: none; }
.ai-composer textarea {
  display: block;
  width: 100%;
  max-height: 120px;
  padding: 0 2px 8px;
  overflow-y: auto;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  resize: none;
  font-size: 0.88rem;
  line-height: 1.4;
}
.ai-composer textarea:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; border-radius: 4px; }
.ai-composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-counter { color: var(--muted); font-size: 0.67rem; }
.ai-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
}
.ai-send:hover { background: var(--blue-dark); }
.ai-send:disabled, .ai-lead-form button:disabled { opacity: 0.5; cursor: wait; }
body.ai-chat-open .whatsapp-float { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(10px); }

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(16px, 2vw, 30px);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: #1fa463;
  box-shadow: 0 10px 30px rgba(7, 26, 51, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}
.whatsapp-float:hover { background: #17804d; transform: translateY(-3px); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

.site-footer { padding-block: 64px 25px; border-top: 4px solid var(--blue); color: var(--white); background: #041225; }
.footer-main { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-bottom: 54px; }
.footer-brand img { width: 190px; padding: 9px 11px; background: var(--white); }
.footer-brand p { max-width: 520px; margin: 24px 0 0; color: var(--white); font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: var(--white); transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease; }
.footer-social a:hover { border-color: var(--white); color: var(--navy); background: var(--white); transform: translateY(-3px); }
.footer-social svg { width: 23px; height: 23px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 26px; padding-top: 24px; border-top: 1px solid var(--line-light); color: rgba(255, 255, 255, 0.52); font-size: 0.76rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--white); }

.cookie-banner {
  position: fixed;
  z-index: 500;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 34px);
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-main { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: end; }
.cookie-copy span { color: #8cacff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.cookie-copy h2 { margin: 7px 0 10px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; }
.cookie-copy p { max-width: 700px; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.cookie-policy-links { display: flex; gap: 15px; margin-top: 13px; font-size: 0.75rem; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cookie-button { min-height: 43px; padding: 10px 15px; border: 1px solid var(--white); color: var(--white); background: transparent; cursor: pointer; font-size: 0.8rem; font-weight: 800; }
.cookie-accept { color: var(--navy); background: var(--white); }
.cookie-details { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.cookie-category { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 14px 0; }
.cookie-category strong { display: block; font-size: 0.9rem; }
.cookie-category p { margin: 3px 0 0; color: rgba(255, 255, 255, 0.62); font-size: 0.77rem; }
.cookie-category span { color: rgba(255, 255, 255, 0.55); font-size: 0.75rem; }
.cookie-category input { width: 20px; height: 20px; accent-color: var(--blue); }
.cookie-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; color: var(--white); background: transparent; cursor: pointer; font-size: 1.4rem; }

.legal-layout { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 100px); }
.legal-nav { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 9px; font-size: 0.86rem; }
.legal-nav strong { margin-bottom: 10px; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; }
.legal-nav a { color: var(--muted); }
.legal-nav a:hover { color: var(--blue); }
.legal-content h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -0.035em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 1.8em 0 0.5em; }
.legal-content p, .legal-content li { color: #4d5969; }
.legal-content a { text-decoration: underline; }
.legal-content li + li { margin-top: 8px; }
.legal-callout { margin: 24px 0; padding: 22px; border-left: 3px solid var(--blue); background: var(--white); }

.result-page { display: grid; place-items: center; min-height: calc(100svh - 86px); padding-block: 80px; text-align: center; }
.result-page .title-lg { max-width: 800px; }
.result-page .lead { margin-inline: auto; }
.result-page .actions { justify-content: center; }

:focus-visible { outline: 3px solid #ffbf47; outline-offset: 4px; }

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open {
    position: fixed;
    z-index: 99;
    inset: 86px 0 auto;
    display: flex;
    height: calc(100vh - 86px);
    height: calc(100dvh - 86px);
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(0px, 0.8dvh, 6px);
    padding: clamp(12px, 2.5dvh, 28px) var(--gutter) max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
  }
  .main-nav.is-open > a:not(.mobile-only) { flex: 0 0 auto; width: 100%; padding-block: clamp(8px, 1.5dvh, 14px); border-bottom: 1px solid var(--line); font-size: clamp(1.2rem, min(4.5vw, 3.2dvh), 2.25rem); line-height: 1.05; letter-spacing: -0.04em; }
  .main-nav.is-open .mobile-only { display: inline-flex; flex: 0 0 auto; width: fit-content; min-height: 44px; margin-top: clamp(7px, 1.5dvh, 16px); padding: 10px 18px; border-bottom: 0; color: var(--white); font-size: 0.88rem; }
  .hero-grid { grid-template-columns: 1fr 0.68fr; }
  .service-row { grid-template-columns: 58px minmax(220px, 4fr) minmax(240px, 5fr) 32px; }
  .team-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: minmax(220px, 4fr) minmax(260px, 6fr); }
}

@media (min-width: 1041px) { .mobile-only { display: none; } }

@media (max-width: 780px) {
  body { font-size: 16px; }
  body.ai-chat-open { overflow: hidden; }
  .header-inner { min-height: 74px; }
  .brand img { width: 142px; }
  .main-nav.is-open { inset: 74px 0 auto; height: calc(100vh - 74px); height: calc(100dvh - 74px); }
  .home-hero { min-height: auto; }
  .hero-grid, .page-hero-grid, .contact-band, .form-shell { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 22px 10px; }
  .display { font-size: clamp(2.6rem, 10.5vw, 4.2rem); letter-spacing: -0.062em; }
  .portrait-frame { min-height: 72svh; }
  .human-statement { grid-template-columns: 1fr; }
  .human-statement blockquote { font-size: clamp(2.6rem, 12vw, 4.6rem); }
  .service-row { grid-template-columns: 42px 1fr 26px; min-height: 112px; gap: 13px; }
  .service-row p { display: none; }
  .image-editorial { grid-template-columns: 1fr; }
  .split > :first-child, .split > :last-child { grid-column: 1 / -1; }
  .chapter { grid-template-columns: 44px 1fr; gap: 14px; }
  .chapter > :last-child { grid-column: 2; }
  .person { grid-template-columns: 1fr; }
  .person figure { max-height: 78svh; }
  .person img { aspect-ratio: 4 / 5; }
  .page-hero-side { padding: 22px 0 0; border-top: 2px solid var(--blue); border-left: 0; }
  .facts { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid figure:nth-child(n) { grid-column: auto; }
  .direct-contact { grid-template-columns: 1fr; }
  .direct-contact a, .direct-contact div, .direct-contact a:not(:first-child), .direct-contact div:not(:first-child) { min-height: auto; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; align-items: start; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner { right: 8px; bottom: 8px; left: 8px; max-height: 88svh; overflow-y: auto; }
  .cookie-banner-main { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
  .cookie-button { flex: 1 1 130px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .whatsapp-float { width: 54px; height: 54px; }
  .ai-launcher { right: 16px; bottom: 82px; max-width: calc(100vw - 32px); min-height: 46px; padding: 11px 16px; font-size: 0.8rem; }
  .ai-panel {
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 18px;
  }
  .ai-panel-head { padding: 18px 18px 16px; }
  .ai-panel-body { padding: 14px 14px 18px; }
  .ai-composer { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); }
}

@media (max-width: 440px) {
  .display { letter-spacing: -0.073em; }
  .hero-facts { flex-direction: column; gap: 7px; }
  .portrait-frame { min-height: 66svh; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:nth-child(n) { grid-column: auto; }
  .service-row { grid-template-columns: 34px 1fr 22px; }
  .chapter { grid-template-columns: 34px 1fr; }
  .ai-launcher { gap: 8px; padding-inline: 14px; }
  .ai-message { max-width: 92%; }
  .ai-contact { padding: 17px; }
}

@media (max-width: 1040px) and (max-height: 520px) {
  .main-nav.is-open { justify-content: flex-start; gap: 0; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .main-nav.is-open > a:not(.mobile-only) { padding-block: 7px; font-size: clamp(1rem, 3.6dvh, 1.25rem); }
  .main-nav.is-open .mobile-only { min-height: 40px; margin-top: 6px; padding: 8px 16px; }
  .ai-panel { inset: 4px; border-radius: 12px; }
  .ai-panel-head { padding: 11px 15px 10px; }
  .ai-panel-head h2 { margin-block: 2px 3px; font-size: 1.08rem; }
  .ai-panel-body { padding: 9px 12px 12px; }
  .ai-data-note { margin-bottom: 9px; padding: 7px 9px; font-size: 0.64rem; }
  .ai-composer { padding: 8px 12px; }
  .ai-composer textarea { padding-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .whatsapp-float, .cookie-banner, .consultation-dialog, .ai-assistant { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 30px; }
}
