:root {
  --bg: #070708;
  --bg-elevated: #0d0e11;
  --surface: #121318;
  --text: #f4f3ef;
  --muted: #a4a5ad;
  --line: rgba(255,255,255,.13);
  --line-soft: rgba(255,255,255,.075);
  --accent: #93a3ff;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--text); color: var(--bg); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--pad); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; width: clamp(124px, 11vw, 174px); }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 46px); }
.nav > a:not(.button) {
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.78);
  transition: color .2s ease;
}
.nav > a:not(.button):hover { color: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .nav a:focus-visible, .contact-email:focus-visible, .footer-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.button-small { min-height: 42px; padding-inline: 18px; }
.button-outline { border-color: rgba(255,255,255,.36); }
.button-outline:hover { background: #fff; color: #090909; border-color: #fff; }
.button-primary { background: var(--text); color: #080809; }
.button-primary:hover { background: #fff; }

.hero {
  position: relative;
  min-height: 810px;
  height: min(1000px, 100svh);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}
.hero-art {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 28%;
  background-image: url('/assets/hero-art.svg');
  background-position: center;
  background-size: cover;
  opacity: .95;
}
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #050506 0%, rgba(5,5,6,.97) 25%, rgba(5,5,6,.56) 58%, rgba(5,5,6,.12) 100%),
    linear-gradient(0deg, rgba(5,5,6,.80) 0%, transparent 34%);
}
.hero-inner { position: relative; height: 100%; }
.hero-copy {
  width: min(820px, 72%);
  padding-top: clamp(190px, 24vh, 272px);
}
.eyebrow {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 600;
  color: #c7c8ce;
}
.eyebrow > span { width: 34px; height: 1px; background: var(--accent); }
.hero h1, .section h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.047em;
  line-height: .98;
}
.hero-tagline {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(19px, 1.8vw, 30px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: .11em;
}
.hero h1 { max-width: 920px; font-size: clamp(48px, 6.4vw, 100px); }
.hero-lead {
  max-width: 630px;
  margin: 36px 0 0;
  color: #c0c1c7;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}
.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  color: #d7d7dc;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 7px;
}
.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: 44px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(5,5,6,.42);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
}

.trust { background: #0b0c0f; border-bottom: 1px solid var(--line-soft); }
.trust-inner { min-height: 122px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.trust p { margin: 0; color: #7f8088; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.client-list { display: flex; align-items: center; gap: clamp(40px, 7vw, 120px); }
.client-list span { font-size: clamp(22px, 2.2vw, 36px); font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.72); }
.client-list span:last-child { font-weight: 500; letter-spacing: .08em; }

.section { padding-block: clamp(100px, 11vw, 178px); }
.section-heading { display: grid; grid-template-columns: 1fr 1.55fr 1fr; gap: clamp(36px, 5vw, 86px); align-items: start; margin-bottom: clamp(64px, 8vw, 118px); }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 2; font-size: clamp(46px, 5.2vw, 82px); }
.section-heading > p:last-child { grid-column: 3; margin: 7px 0 0; color: var(--muted); font-size: 17px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  position: relative;
  min-height: 300px;
  padding: clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 70%);
  transition: background .25s ease;
}
.service-card:hover { background: rgba(255,255,255,.035); }
.service-index { color: #777982; font-size: 11px; letter-spacing: .14em; }
.service-card h3 { margin: 104px 0 16px; font-size: clamp(22px, 2vw, 31px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.service-card p { margin: 0; color: #9fa0a7; max-width: 330px; }

.section-contrast { background: #efeee9; color: #111114; }
.section-contrast .eyebrow { color: #55565c; }
.section-contrast .eyebrow > span { background: #111114; }
.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(60px, 10vw, 180px); align-items: start; }
.split h2 { font-size: clamp(58px, 7vw, 108px); }
.about-copy { padding-top: 40px; }
.about-copy > p { margin: 0 0 25px; color: #46474d; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; }
.facts { margin: 60px 0 0; border-top: 1px solid rgba(17,17,20,.2); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid rgba(17,17,20,.14); }
.facts dt { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: #6d6e73; }
.facts dd { margin: 0; font-size: 15px; }

.contact-section { position: relative; overflow: hidden; background: #090a0d; }
.contact-section::before {
  content: "";
  position: absolute;
  width: 850px;
  height: 850px;
  right: -250px;
  top: -390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,127,230,.20), rgba(108,127,230,0) 67%);
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact-inner h2 { max-width: 1040px; font-size: clamp(54px, 7.3vw, 118px); }
.contact-inner > p:not(.eyebrow) { max-width: 650px; margin: 36px 0 58px; color: var(--muted); font-size: 18px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  font-size: clamp(24px, 3vw, 48px);
  letter-spacing: -.035em;
}

.site-footer { border-top: 1px solid var(--line-soft); background: #060607; }
.footer-inner { min-height: 160px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 50px; }
.footer-brand {
  display: inline-flex;
  width: 116px;
  line-height: 0;
}
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-copy p { margin: 3px 0; color: #777880; font-size: 12px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: #b6b6bc; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }

@media (max-width: 1000px) {
  .nav > a:not(.button) { display: none; }
  .hero { min-height: 780px; height: 100svh; }
  .hero-art { left: 0; opacity: .70; transform: translateX(10%); }
  .hero-shade { background: linear-gradient(90deg, rgba(5,5,6,.98), rgba(5,5,6,.58) 68%, rgba(5,5,6,.32)), linear-gradient(0deg, rgba(5,5,6,.85), transparent 50%); }
  .hero-copy { width: 92%; }
  .section-heading { grid-template-columns: 1fr 1.6fr; }
  .section-heading .eyebrow { grid-column: 1; }
  .section-heading h2 { grid-column: 2; }
  .section-heading > p:last-child { grid-column: 2; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .about-copy { max-width: 720px; padding-top: 0; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  .site-header { position: absolute; }
  .header-inner { min-height: 82px; }
  .brand { width: 112px; }
  .nav .button { min-height: 38px; padding: 0 13px; font-size: 9px; }
  .hero { min-height: 740px; }
  .hero-art { inset: 0; background-position: 58% center; opacity: .55; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,5,6,.96), rgba(5,5,6,.45)), linear-gradient(0deg, rgba(5,5,6,.92), transparent 52%); }
  .hero-copy { width: 100%; padding-top: 155px; }
  .hero-tagline { margin-bottom: 20px; font-size: 17px; letter-spacing: .09em; }
  .hero h1 { font-size: clamp(43px, 13vw, 66px); line-height: .97; }
  .hero-lead { margin-top: 28px; font-size: 17px; }
  .hero-actions { margin-top: 34px; align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-meta { left: var(--pad); right: var(--pad); bottom: 24px; justify-content: flex-start; }
  .hero-meta span { font-size: 8px; }
  .trust-inner { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 22px; }
  .client-list { width: 100%; justify-content: space-between; gap: 20px; }
  .client-list span { font-size: 22px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 0; }
  .section-heading > p:last-child { margin-top: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-card h3 { margin-top: 70px; }
  .split h2 { font-size: clamp(52px, 15vw, 78px); }
  .facts > div { grid-template-columns: 90px 1fr; }
  .contact-inner h2 { font-size: clamp(48px, 14vw, 72px); }
  .contact-email { font-size: 22px; gap: 14px; }
  .footer-inner { padding-block: 42px; min-height: 0; grid-template-columns: 1fr auto; gap: 24px; }
  .footer-copy { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { flex-direction: column; gap: 12px; align-items: flex-end; }
}

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


/* ===== Pages expertises SEO ===== */
.expertise-page { background: #070708; }
.expertise-header { position: absolute; }
.breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: rgba(255,255,255,.58); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current="page"] { color: rgba(255,255,255,.83); }
.expertise-hero { position: relative; min-height: 790px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.expertise-hero-media { position: absolute; z-index: -3; inset: 0; margin: 0; }
.expertise-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.08); }
.expertise-hero-overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(5,5,6,.98) 0%, rgba(5,5,6,.86) 37%, rgba(5,5,6,.34) 70%, rgba(5,5,6,.20) 100%), linear-gradient(0deg, rgba(5,5,6,.84) 0%, transparent 42%); }
.expertise-hero-inner { padding-top: 148px; padding-bottom: 110px; min-height: 790px; display: flex; flex-direction: column; justify-content: space-between; }
.expertise-hero-copy { max-width: 920px; margin-top: 95px; }
.expertise-hero-copy h1 { margin: 0; font-size: clamp(52px, 7vw, 108px); line-height: .96; letter-spacing: -.055em; font-weight: 500; max-width: 1000px; }
.expertise-hero-copy > p:not(.eyebrow) { max-width: 760px; margin: 34px 0 0; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.55; color: #d0d1d6; }
.hero-chips { margin-top: 42px; display: flex; gap: 9px; flex-wrap: wrap; }
.hero-chips span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.23); background: rgba(6,6,7,.38); backdrop-filter: blur(7px); text-transform: uppercase; letter-spacing: .11em; font-size: 9px; }
.photo-credit { position: absolute; bottom: 18px; right: 0; left: 0; color: rgba(255,255,255,.52); font-size: 9px; line-height: 1.4; text-align: right; }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.expertise-trust { background: #0b0c0f; border-bottom: 1px solid var(--line-soft); }
.expertise-trust-inner { min-height: 90px; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 28px; align-items: center; }
.expertise-trust-inner > * { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #888a93; }
.expertise-trust-inner strong { color: #f0f0ed; }
.article-section { background: #f0efe9; color: #151519; padding: clamp(92px, 9vw, 150px) 0; }
.article-layout { display: grid; grid-template-columns: minmax(190px, 285px) minmax(0, 850px); justify-content: space-between; gap: clamp(60px, 9vw, 150px); align-items: start; }
.article-sidebar { position: sticky; top: 35px; padding: 28px 0; border-top: 1px solid rgba(20,20,24,.24); }
.article-sidebar > p { margin: 0 0 18px; color: #67686e; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; }
.article-sidebar nav { display: grid; }
.article-sidebar nav a { padding: 9px 0; border-bottom: 1px solid rgba(20,20,24,.10); color: #5e5f66; font-size: 13px; line-height: 1.35; }
.article-sidebar nav a:hover { color: #111114; }
.sidebar-cta { width: 100%; margin-top: 28px; background: #111114; color: #fff; }
.sidebar-cta:hover { background: #292a31; }
.expertise-article { min-width: 0; }
.expertise-article .article-lead { margin: 0 0 80px; color: #222329; font-size: clamp(23px, 2.1vw, 34px); line-height: 1.38; letter-spacing: -.025em; }
.expertise-article section { scroll-margin-top: 30px; }
.expertise-article section + section { margin-top: 88px; }
.expertise-article h2 { margin: 0 0 28px; color: #111114; font-size: clamp(34px, 3.7vw, 56px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; }
.expertise-article h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.expertise-article p { margin: 0 0 22px; color: #44454b; font-size: 18px; line-height: 1.72; }
.expertise-article strong { color: #18181c; }
.feature-list { display: grid; gap: 0; margin: 34px 0; padding: 0; list-style: none; border-top: 1px solid rgba(20,20,24,.18); }
.feature-list li { padding: 18px 0; border-bottom: 1px solid rgba(20,20,24,.14); color: #45464d; font-size: 17px; line-height: 1.6; }
.callout { margin: 45px 0; padding: 34px 38px; background: #17181d; color: #f4f3ef; }
.callout h3 { color: #fff; }
.callout p { margin: 0; color: #bbbcc4; }
.process-section { padding-top: 6px; }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(20,20,24,.18); border-left: 1px solid rgba(20,20,24,.18); }
.process-grid > div { min-height: 230px; padding: 28px; border-right: 1px solid rgba(20,20,24,.18); border-bottom: 1px solid rgba(20,20,24,.18); }
.process-grid span { color: #74757c; font-size: 10px; letter-spacing: .12em; }
.process-grid h3 { margin-top: 58px; }
.process-grid p { margin: 0; font-size: 15px; line-height: 1.55; }
.faq-section details { border-top: 1px solid rgba(20,20,24,.18); }
.faq-section details:last-child { border-bottom: 1px solid rgba(20,20,24,.18); }
.faq-section summary { cursor: pointer; list-style: none; position: relative; padding: 23px 48px 23px 0; font-size: 19px; font-weight: 500; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: 8px; top: 20px; font-size: 24px; font-weight: 300; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { padding: 0 50px 22px 0; font-size: 16px; }
.related-section { padding-top: 10px; }
.related-section .eyebrow { color: #5f6067; }
.related-section .eyebrow > span { background: #111114; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid rgba(20,20,24,.18); border-left: 1px solid rgba(20,20,24,.18); }
.related-card { min-height: 300px; padding: 24px; border-right: 1px solid rgba(20,20,24,.18); border-bottom: 1px solid rgba(20,20,24,.18); display: flex; flex-direction: column; transition: background .2s ease; }
.related-card:hover { background: #e7e5de; }
.related-card > span { color: #77787f; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.related-card h3 { margin-top: 55px; font-size: 23px; }
.related-card p { font-size: 14px; line-height: 1.5; }
.related-card strong { margin-top: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.expertise-contact { border-top: 1px solid var(--line-soft); }

/* Hub expertises */
.hub-hero { min-height: 660px; padding-top: 175px; padding-bottom: 100px; background: radial-gradient(circle at 80% 25%, rgba(102,119,221,.25), transparent 38%), #070708; display: flex; align-items: flex-end; }
.hub-hero .breadcrumb { margin-bottom: 86px; }
.hub-hero h1 { margin: 0; font-size: clamp(70px, 10vw, 150px); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
.hub-hero > .shell > p:last-child { max-width: 760px; margin: 42px 0 0; color: #b6b7be; font-size: 20px; line-height: 1.65; }
.hub-section { padding: 0 0 clamp(100px, 11vw, 170px); }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.hub-card { min-height: 430px; padding: clamp(30px, 4vw, 58px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background .2s ease; }
.hub-card:hover { background: rgba(255,255,255,.035); }
.hub-card > span { color: #747681; font-size: 11px; letter-spacing: .14em; }
.hub-card h2 { margin: 112px 0 20px; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.hub-card p { max-width: 520px; margin: 0; color: #9fa0a8; font-size: 16px; }
.hub-card strong { margin-top: auto; color: #dddde2; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.hub-about .dark-button { background: #111114; color: #fff; margin-top: 25px; }

/* Linked service cards on homepage */
a.service-card { display: block; }
.service-card strong { position: absolute; left: clamp(28px, 3vw, 48px); bottom: 28px; color: #d1d2d8; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.service-card p { padding-bottom: 38px; }

@media (max-width: 1050px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: none; }
  .expertise-trust-inner { grid-template-columns: repeat(2, 1fr); padding-block: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 235px; }
  .hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .expertise-hero { min-height: 790px; }
  .expertise-hero-inner { min-height: 790px; padding-top: 112px; padding-bottom: 86px; }
  .expertise-hero-copy { margin-top: 72px; }
  .expertise-hero-copy h1 { font-size: clamp(48px, 14vw, 72px); }
  .expertise-hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .expertise-hero-overlay { background: linear-gradient(90deg, rgba(5,5,6,.97), rgba(5,5,6,.56)), linear-gradient(0deg, rgba(5,5,6,.92), transparent 54%); }
  .photo-credit { bottom: 10px; text-align: left; font-size: 7px; padding-right: 20px; }
  .expertise-trust-inner { grid-template-columns: 1fr; gap: 11px; padding-block: 25px; }
  .article-section { padding-top: 75px; }
  .expertise-article .article-lead { margin-bottom: 62px; font-size: 23px; }
  .expertise-article section + section { margin-top: 68px; }
  .expertise-article h2 { font-size: 37px; }
  .expertise-article p { font-size: 17px; }
  .callout { padding: 28px 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid > div { min-height: 200px; }
  .related-grid { grid-template-columns: 1fr; }
  .hub-hero { min-height: 600px; padding-top: 125px; }
  .hub-hero .breadcrumb { margin-bottom: 65px; }
  .hub-hero h1 { font-size: clamp(65px, 20vw, 96px); }
  .hub-card { min-height: 350px; }
  .hub-card h2 { margin-top: 80px; }
}

/* =========================================================
   MARAMEO V1 · FEUILLE UNIFIÉE ET STABILISÉE
   ========================================================= */

html { scroll-padding-top: 24px; }
body { overflow-x: hidden; }
main { display: block; }

/* En-tête et logo : la hauteur, et non la largeur, pilote le logo. */
.site-header {
  background: linear-gradient(180deg, rgba(4,4,5,.78), rgba(4,4,5,.25) 72%, transparent);
}
.header-inner { min-height: 112px; }
.site-header .brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  height: 74px;
  line-height: 0;
}
.site-header .brand img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* Accueil : le contenu définit la hauteur, aucun texte ne peut être coupé. */
.home-page .hero {
  min-height: 100svh;
  height: auto;
  overflow: hidden;
}
.home-page .hero-inner {
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
}
.home-page .hero-copy {
  position: relative;
  width: min(930px, 82%);
  padding-top: clamp(170px, 19vh, 225px);
  padding-bottom: 56px;
}
.home-page .hero h1 {
  font-size: clamp(48px, 5.8vw, 92px);
}
.home-page .hero-lead { max-width: 760px; }
.home-page .hero-meta {
  position: static;
  margin: auto 0 0 auto;
  padding-bottom: 38px;
  max-width: 100%;
}

/* Cartes de services avec pictogrammes. */
.service-card {
  min-height: 390px;
  overflow: hidden;
}
.service-icon {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: 50%;
  width: min(56%, 230px);
  height: 126px;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  opacity: .94;
  pointer-events: none;
  user-select: none;
  transition: opacity .25s ease, transform .25s ease;
}
.service-card:hover .service-icon {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
.service-index,
.service-card h3,
.service-card p,
.service-card strong { position: relative; z-index: 2; }
.service-card h3 { margin-top: 174px; }

/* Hub des sept expertises. */
.hub-grid .hub-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 370px;
}
.hub-grid .hub-card:last-child:nth-child(odd) h2 {
  max-width: 900px;
  margin-top: 76px;
}

/* Pages d'expertise. */
.expertise-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.expertise-hero-copy { position: relative; z-index: 1; }
.expertise-article { overflow-wrap: break-word; }

/* Footer : proportions du logo garanties. */
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 68px;
  line-height: 0;
}
.footer-brand img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* Mentions légales. */
.legal-page {
  min-height: 100svh;
  padding: 150px var(--pad) 100px;
  background: #efeee9;
  color: #111114;
}
.legal-wrap { max-width: 900px; margin: auto; }
.legal-page h1 {
  margin: 0 0 70px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 500;
}
.legal-page h2 { margin: 42px 0 12px; font-size: 24px; }
.legal-page p, .legal-page li { color: #46474d; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page .back {
  display: inline-block;
  margin-bottom: 35px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
}

/* Page 404. */
.error-page main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  background: #070708;
}
.error-page .box { max-width: 760px; }
.error-page .code {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #93949c;
}
.error-page .box h1 {
  margin: 25px 0;
  font-size: clamp(54px, 9vw, 120px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 500;
}
.error-page .box p { margin: 0 0 35px; color: #a4a5ad; }

@media (min-width: 1001px) and (max-height: 900px) {
  .home-page .hero-copy {
    padding-top: 138px;
    padding-bottom: 42px;
  }
  .home-page .hero h1 { font-size: clamp(48px, 5.15vw, 78px); }
  .home-page .hero-tagline { font-size: clamp(18px, 1.45vw, 25px); }
  .home-page .hero-lead { margin-top: 26px; }
  .home-page .hero-actions { margin-top: 28px; }
}

@media (max-width: 1050px) {
  .hub-grid .hub-card:last-child:nth-child(odd) {
    grid-column: auto;
    min-height: 350px;
  }
  .hub-grid .hub-card:last-child:nth-child(odd) h2 { margin-top: 80px; }
}

@media (max-width: 1000px) {
  .home-page .hero-copy {
    width: 94%;
    padding-top: 150px;
    padding-bottom: 48px;
  }
  .home-page .hero-meta {
    margin-left: 0;
    justify-content: flex-start;
  }
  .service-card { min-height: 370px; }
  .service-icon {
    top: 52px;
    width: min(58%, 220px);
    height: 118px;
  }
  .service-card h3 { margin-top: 162px; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 84px; gap: 14px; }
  .site-header .brand { height: 56px; }
  .nav .button { white-space: nowrap; }

  .home-page .hero {
    min-height: 100svh;
    height: auto;
  }
  .home-page .hero-inner {
    min-height: 100svh;
    height: auto;
  }
  .home-page .hero-copy {
    width: 100%;
    padding-top: 132px;
    padding-bottom: 36px;
  }
  .home-page .hero h1 {
    font-size: clamp(42px, 12.4vw, 62px);
    overflow-wrap: normal;
  }
  .home-page .hero-meta {
    margin-top: 34px;
    padding-bottom: 26px;
  }

  .service-card { min-height: 350px; }
  .service-icon {
    top: 46px;
    width: min(62%, 225px);
    height: 112px;
  }
  .service-card h3 { margin-top: 154px; }

  .hub-hero {
    min-height: 560px;
    padding-top: 118px;
    padding-bottom: 80px;
  }
  .hub-hero .breadcrumb { margin-bottom: 52px; }
  .hub-hero h1 { font-size: clamp(52px, 15vw, 68px); }
  .hub-card { min-height: 330px; }

  .expertise-hero-inner {
    padding-top: 102px;
    padding-bottom: 76px;
  }
  .expertise-hero-copy { margin-top: 58px; }
  .expertise-hero-copy h1 { font-size: clamp(44px, 12.5vw, 66px); }

  .footer-brand { height: 56px; }
  .legal-page { padding-top: 95px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-icon { transition: none; }
}

/* Refonte éditoriale du 18 septembre 2026 : texte, lisibilité et navigation. */
.home-page .hero-tagline { letter-spacing: .015em; font-weight: 500; line-height: 1.25; }
.home-page .hero h1 { max-width: 970px; }
#marameo-title { font-size: clamp(42px, 5vw, 76px); line-height: 1.04; }
#contact-title { font-size: clamp(43px, 5.2vw, 80px); line-height: 1.03; }
a.service-card { display: flex; flex-direction: column; }
.service-card p { padding-bottom: 0; }
.service-card strong { position: static; margin-top: auto; padding-top: 28px; }
.all-services-link { margin: 38px 0 0; color: var(--muted); font-size: 16px; }
.all-services-link a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.hub-card strong { padding-top: 30px; }
.hub-about h2 { font-size: clamp(44px, 5.5vw, 82px); }
.footer-copy .footer-signature { color: #dddde2; font-size: 17px; margin-bottom: 10px; }
.expertise-article p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #77787f; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.article-section a:focus-visible, .article-section summary:focus-visible,
.section-contrast a:focus-visible { outline-color: #111114; }
.section-heading > *, .split > *, .footer-inner > * { min-width: 0; }
.expertise-hero-copy h1 { overflow-wrap: normal; }
.expertise-trust-inner > :last-child { text-transform: none; letter-spacing: .02em; }
@media (max-width: 700px) {
  .home-page .hero h1 { font-size: clamp(36px, 10.7vw, 62px); }
  .expertise-hero-copy h1 { font-size: clamp(36px, 10.8vw, 66px); }
  .hub-hero h1 { font-size: clamp(38px, 11.2vw, 68px); }
  .footer-copy .footer-signature { font-size: 17px; }
  .all-services-link a { display: inline; }
  .eyebrow { flex-wrap: wrap; row-gap: 8px; }
}
