/* Hallmark · pre-emit critique: P4 H5 E5 S5 R5 V4 */
/* Hallmark · macrostructure: editorial split hero · genre: editorial
 * tone: premium institutionnel · palette anchor: turquoise
 * structural fingerprint: balanced statement-and-visual opening
 */
/* Hallmark · component: HubSpot form · genre: editorial · theme: existing Agence 201
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: pass
 */
/* ────────────────────────────────────────────────────────────────────
   Agence 201 — Avantage Corporate Consulting
   Direction: Premium institutionnel, turquoise & beige, serif affirmé,
   formes angulaires, diagonales géométriques.
   ──────────────────────────────────────────────────────────────────── */

:root {
  /* Primary — turquoise profond */
  --primary: #007C89;
  --primary-dark: #005F68;
  --primary-light: #D9F2F4;

  /* Accent — turquoise lumineux */
  --accent: #23BFCB;
  --accent-dark: #009CA8;
  --accent-light: #E5FAFB;

  /* Ink */
  --ink: #111111;
  --ink-soft: #2A2A2A;

  /* Warm neutrals */
  --beige: #D8C6AD;
  --beige-light: #F2EBDD;
  --sand: #E7DCCF;

  /* Surfaces */
  --neutral: #F8F8F6;
  --surface: #FFFFFF;
  --surface-alt: #F3F5F5;

  /* Text */
  --text: #111111;
  --text-muted: #5F6467;
  --text-subtle: #8A8F92;
  --text-inverse: #FFFFFF;

  /* Borders */
  --border: #D9D7D2;
  --border-strong: #BFB8AE;

  /* Feedback */
  --success: #00876C;
  --warning: #C0832B;
  --error: #B9423A;

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, sans-serif;

  --fw-display: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-regular: 400;

  /* Spacing */
  --page-margin-mobile: 24px;
  --page-margin-desktop: 80px;
  --page-margin: clamp(var(--page-margin-mobile), 6vw, var(--page-margin-desktop));
  --container-max: 1160px;
  --section-gap: 112px;
  --card-padding: 32px;

  /* Radii — minimal, angular */
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Elevation — très discrète */
  --shadow-panel: 0 16px 48px rgba(17, 17, 17, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ───── Base ───── */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--surface);
  position: relative;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: var(--text-inverse);
}

/* ───── Utilities ───── */
.wrap {
  width: 100%;
  min-width: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

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

.site-footer :where(a, button, summary):focus-visible {
  outline-color: var(--surface);
}

main[id],
section[id] {
  scroll-margin-top: 140px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--text-inverse);
  padding: 10px 20px; text-decoration: none;
  font-weight: var(--fw-medium);
  z-index: 9999;
}
.skip-link:focus-visible { left: 20px; top: 0; }

/* Eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow .dash {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.num-eyebrow {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Headings — serif massif, présence éditoriale */
.display, h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: var(--fw-display);
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.display em {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--primary);
}

.section-title, h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: var(--fw-display);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-title em {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--primary);
}

/* Lede */
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Buttons — rectangulaires, pas d'arrondi */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-none);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 96px;
  width: auto;
  display: block;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: var(--fw-display);
  color: var(--primary);
  letter-spacing: -0.03em;
}
.brand-mark::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: super;
  /* Forme diagonale : losange */
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.brand-word {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  position: relative;
}

.nav a {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--primary); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav a.nav-cta {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 10px 20px;
  border-radius: var(--radius-none);
  white-space: nowrap;
  transition: background 0.25s var(--ease);
}
.nav a.nav-cta:hover { background: var(--primary-dark); }

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  min-width: 72px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  background: var(--surface);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.mobile-nav[open] summary::after {
  content: "−";
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 110;
  width: min(280px, calc(100vw - 48px));
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-panel);
}

.mobile-nav-panel a {
  display: block;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 13px;
}

.mobile-nav-panel a:not(.nav-cta)::after {
  display: none;
}

@media (max-width: 720px) {
  .header-wrap { height: 88px; }
  .brand-logo { height: 64px; }
  .nav > a { display: none; }
  .mobile-nav { display: block; }
  main[id],
  section[id] { scroll-margin-top: 104px; }
}

/* ───── 1 · HERO ───── */
.hero {
  padding-block: clamp(64px, 10vw, 140px) clamp(40px, 6vw, 80px);
  position: relative;
  overflow-x: clip;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 980px) {
  .hero-wrap {
    max-width: 1400px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 3vw, 48px);
  }
}

.hero-left {
  width: 100%;
  min-width: 0;
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero #hero-title {
  margin-block: 20px 28px;
}

.hero #hero-title .hl {
  position: relative;
  display: inline-block;
  z-index: 1;
}
/* Soulignement turquoise accent : trait diagonal */
.hero #hero-title .hl::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: 4px;
  height: 10px;
  background: var(--accent);
  opacity: 0.3;
  z-index: -1;
  transform: scaleX(0) skewX(-6deg);
  transform-origin: left;
  animation: under 1.1s var(--ease) 0.6s forwards;
}
@keyframes under { to { transform: scaleX(1) skewX(-6deg); } }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  max-width: 100%;
}

/* Hero right — identité visuelle */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.hero-visual-card {
  margin: 0;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.hero-visual-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Marquee */
.hero-marquee {
  margin-top: clamp(48px, 7vw, 80px);
  padding-block: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--neutral);
}
.marquee-track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: max-content;
}
.marquee-track span[aria-hidden="true"] { color: var(--accent); font-size: 10px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───── 2 · ABOUT ───── */
.about {
  padding-block: var(--section-gap);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.about-wrap { max-width: 780px; }
.about .section-title { margin-bottom: 28px; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}
.about-body strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}
.about-body em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.15em;
  font-weight: var(--fw-semibold);
  color: var(--primary-dark);
}

.geo {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

/* ───── 3 · OFFER ───── */
.offer {
  padding-block: var(--section-gap);
  background: var(--neutral);
  position: relative;
}

.offer-head { margin-bottom: 56px; }
.offer-head .section-title { margin-bottom: 16px; }
.offer-intro { color: var(--text-muted); }

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 90px) 1fr;
  gap: 24px;
  align-items: start;
  padding-block: 40px;
  border-top: 1px solid var(--border-strong);
  position: relative;
  transition: background 0.3s var(--ease);
}
.pillar:last-child { border-bottom: 1px solid var(--border-strong); }
.pillar:hover { background: rgba(0, 124, 137, 0.02); }

/* Couleurs par pilier — subtil indicator gauche */

.pillar-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: var(--fw-display);
  line-height: 0.9;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.pillar-num span {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.pillar:hover .pillar-num span { transform: translateY(-3px); }

.pillar-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-display);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--ink);
}
.pillar-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.tags li {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

/* ───── Logos partenaires / stack ───── */
.offer-stack {
  margin-top: 56px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 72px);
  width: 100%;
}

.logo-groups > .logo-group + .logo-group {
  position: relative;
}

.logo-groups > .logo-group + .logo-group::before {
  content: "";
  position: absolute;
  left: calc(clamp(32px, 6vw, 72px) / -2);
  top: 30px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.logo-group-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.offer-stack-eye {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.logo-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.logo-row img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.logo-row img.logo-img--color {
  filter: grayscale(1);
  opacity: 0.7;
}

.logo-row li:hover img {
  opacity: 1;
}

.logo-row li:hover img.logo-img--color {
  filter: grayscale(0);
  opacity: 1;
}

.logo-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: var(--fw-medium, 500);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ───── 4 · PROFILES ───── */
.profiles {
  padding-block: var(--section-gap);
  border-bottom: 1px solid var(--border);
}

.profiles-wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .profiles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .profiles-grid .profile {
    padding-inline: clamp(20px, 2.5vw, 32px);
    min-width: 0;
  }
  .profiles-grid .profile + .profile {
    border-left: 1px solid var(--border-strong);
  }
}

.profile { padding-block: 16px; }

.profile-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.profile h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-display);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--ink);
}
.profile p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 42ch;
}
.profile em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--primary);
  font-size: 1.1em;
}

/* ───── 5 · CONTACT ───── */
.contact {
  background: var(--neutral);
  padding-block: var(--section-gap);
  position: relative;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 1;
}
@media (min-width: 920px) {
  .contact-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.contact-intro .section-title { margin-bottom: 16px; }

.contact-bullets {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.contact-bullets li {
  display: flex; gap: 14px; align-items: center;
  font-size: 15px;
  color: var(--text-muted);
  padding-block: 16px;
  border-top: 1px solid var(--border);
}
.contact-bullets li::before {
  content: "→";
  font-weight: var(--fw-semibold);
  color: var(--primary);
  font-size: 14px;
}

/* Formulaire HubSpot — le panneau hôte reste cohérent en iframe et en HTML brut. */
.form {
  background: var(--surface);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  position: relative;
  min-width: 0;
}

.form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hubspot-form-shell {
  width: 100%;
  min-height: 360px;
}

.hubspot-form-shell:has(.hs-form-iframe),
.hubspot-form-shell:has(.hs-form) {
  min-height: 0;
}

.hubspot-form-shell .hs-form-iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.hubspot-form-fallback {
  color: var(--text-muted);
  font-size: 15px;
}

.hubspot-form-fallback a {
  color: var(--primary-dark);
  font-weight: var(--fw-semibold);
  text-underline-offset: 3px;
}

/* Ces règles internes prennent effet si le formulaire est configuré en HTML brut. */
.hubspot-form-shell .hs-form {
  width: 100%;
  font-family: var(--sans);
  color: var(--text);
}

.hubspot-form-shell .hs-form fieldset {
  max-width: none !important;
  margin: 0;
}

.hubspot-form-shell .hs-form-field {
  margin-bottom: 20px;
}

.hubspot-form-shell .hs-form-field > label,
.hubspot-form-shell .hs-form-checkbox-display,
.hubspot-form-shell .hs-form-booleancheckbox-display {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.hubspot-form-shell .hs-form-field .input {
  margin-right: 0 !important;
}

.hubspot-form-shell .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.hubspot-form-shell textarea.hs-input,
.hubspot-form-shell select.hs-input {
  width: 100% !important;
  min-height: 50px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-none);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hubspot-form-shell textarea.hs-input {
  min-height: 120px;
  resize: vertical;
}

.hubspot-form-shell .hs-input:not([type="checkbox"]):not([type="radio"]):hover {
  border-color: var(--ink);
}

.hubspot-form-shell .hs-input:not([type="checkbox"]):not([type="radio"]):focus,
.hubspot-form-shell .hs-input:not([type="checkbox"]):not([type="radio"]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--primary);
  box-shadow: none;
}

.hubspot-form-shell .hs-input.invalid,
.hubspot-form-shell .hs-form-field.error .hs-input {
  border-color: var(--error);
}

.hubspot-form-shell .hs-error-msgs,
.hubspot-form-shell .hs-error-msg {
  margin-top: 6px;
  color: var(--error);
  font-size: 13px;
  line-height: 1.45;
}

.hubspot-form-shell .inputs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hubspot-form-shell .hs-form-checkbox-display,
.hubspot-form-shell .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hubspot-form-shell input[type="checkbox"],
.hubspot-form-shell input[type="radio"] {
  accent-color: var(--primary);
  margin-top: 3px;
}

.hubspot-form-shell .hs-submit {
  margin-top: 24px;
}

.hubspot-form-shell .hs-button {
  min-height: 50px;
  padding: 14px 28px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-none);
  background: var(--primary);
  color: var(--text-inverse);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.15s var(--ease);
}

.hubspot-form-shell .hs-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.hubspot-form-shell .hs-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.hubspot-form-shell .hs-button:active {
  transform: translateY(1px);
}

.hubspot-form-shell .hs-button:disabled,
.hubspot-form-shell .hs-button[aria-busy="true"] {
  opacity: 0.6;
  cursor: wait;
}

.hubspot-form-shell .legal-consent-container,
.hubspot-form-shell .hs-richtext {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.hubspot-form-shell .legal-consent-container a,
.hubspot-form-shell .hs-richtext a {
  color: var(--primary-dark);
  font-weight: var(--fw-semibold);
  text-underline-offset: 3px;
}

.hubspot-form-shell .submitted-message {
  padding: 24px;
  border: 1px solid var(--accent);
  background: var(--accent-light);
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .hubspot-form-shell .hs-button {
    width: 100%;
    padding-inline: 16px;
  }
}

/* ───── 6 · FOOTER ───── */
.site-footer {
  padding-block: clamp(56px, 7vw, 96px) 40px;
  background: var(--ink);
  color: var(--text-subtle);
  position: relative;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) {
  .footer-wrap { grid-template-columns: 1.5fr 1fr 1fr; }
}

.foot-brand p {
  margin-top: 16px;
  line-height: 1.6;
}
.foot-brand p em {
  font-family: var(--serif);
  font-style: normal;
  color: var(--text-inverse);
}

.brand-mark.big {
  font-family: var(--serif);
  font-size: 48px;
  display: inline-block;
  color: var(--primary);
}

.foot-eye {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin-bottom: 16px;
}

.foot-contact p, .foot-meta li {
  font-size: 14px;
  line-height: 1.8;
}
.foot-contact a, .foot-meta a {
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.foot-contact a:hover, .foot-meta a:hover { color: var(--accent); }

.foot-contact .foot-social {
  margin-top: 16px;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-inverse);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
}

.foot-social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.foot-social a:active {
  color: var(--primary-light);
}

.foot-meta ul { display: flex; flex-direction: column; gap: 8px; }
.foot-tiny {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-subtle);
}

/* ───── Reveal (IntersectionObserver) ───── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* Hero stagger */
.hero-left > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-left > .eyebrow { animation-delay: 0.05s; }
.hero-left > .display  { animation-delay: 0.15s; }
.hero-left > .lede     { animation-delay: 0.28s; }
.hero-left > .cta-row  { animation-delay: 0.38s; }

.hero-right {
  opacity: 0; transform: translateY(16px);
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ───── LEGAL PAGE ───── */
.legal {
  padding-block: clamp(72px, 10vw, 128px);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.legal-wrap { max-width: 780px; }
.legal .section-title { margin-bottom: 48px; }

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-block h2 {
  font-family: var(--serif);
  font-weight: var(--fw-semibold);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-block p + p,
.legal-block p + .legal-meta,
.legal-block .legal-meta + p {
  margin-top: 16px;
}

.legal-block strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.legal-block a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.legal-block a:hover { color: var(--accent-dark); }

.legal-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
  padding: 20px 24px;
  background: var(--neutral);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}

.legal-meta > div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 16px;
  align-items: baseline;
}

.legal-meta dt {
  font-size: 13px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.legal-meta dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.legal-back {
  margin-top: 64px;
}

.arrow-left {
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow-left { transform: translateX(-3px); }

@media (max-width: 640px) {
  .legal-meta > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .hero .eyebrow {
    display: block;
    max-width: 100%;
  }

  .hero .eyebrow .dash {
    margin-right: 10px;
  }

  .form {
    padding-inline: 16px;
  }
}
