:root {
  --night: #061b28;
  --night-soft: #0c2b39;
  --blue: #246b8f;
  --paper: #f2f4f1;
  --white: #fff;
  --ink: #122a34;
  --muted: #52666d;
  --line: #d6dedf;
  --lime: #bdd500;
  --bordeaux: #942e57;
  --content: min(1240px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(5,24,35,.78);
  color: var(--white);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, min-height 180ms ease;
}
.site-header.is-scrolled { min-height: 68px; background: rgba(5,24,35,.96); }
.brand {
  display: block;
  width: clamp(150px,16vw,224px);
  padding: 7px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
}
.brand img { width: 100%; height: 36px; object-fit: contain; }
.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(16px,2vw,32px);
  font-size: .84rem;
  font-weight: 750;
}
.main-navigation a { padding: 10px 0; }
.main-navigation a:hover { color: var(--lime); }
.main-navigation .nav-contact {
  padding: 11px 18px;
  border: 1px solid rgba(189,213,0,.72);
  border-radius: 6px;
}
.menu-button { display: none; }

.hero {
  position: relative;
  display: flex;
  min-height: 92vh;
  min-height: 760px;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-image,.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-shade {
  background:
    linear-gradient(90deg,rgba(4,21,32,.94) 0%,rgba(4,21,32,.79) 38%,rgba(4,21,32,.18) 74%),
    linear-gradient(0deg,rgba(4,19,28,.45),transparent 35%);
}
.hero-content { position: relative; z-index: 2; width: var(--content); margin: 70px auto 0; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--lime); }
.hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3.2rem,6.5vw,6.75rem);
  font-weight: 780;
  letter-spacing: -.065em;
  line-height: .94;
}
.hero-copy {
  max-width: 690px;
  margin: 30px 0 0;
  color: #d8e8ec;
  font-size: clamp(1.05rem,1.55vw,1.35rem);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: var(--night); }
.button-ghost { border-color: rgba(255,255,255,.45); background: rgba(5,24,35,.26); color: var(--white); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(22px,4vw,64px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scroll-cue i { position: relative; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.scroll-cue i::after {
  position: absolute;
  inset: 13px 15px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-2px,-2px);
}

.section { width: var(--content); margin: 0 auto; padding: clamp(90px,10vw,150px) 0; }
.section-label {
  margin-bottom: 42px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.intro-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.75fr); gap: clamp(50px,8vw,120px); }
.intro-grid h2,.section-heading h2,.quarters-copy h2,.partner-teaser h2,.contact-section h2 {
  margin: 0;
  font-size: clamp(2.5rem,4.8vw,5.15rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.intro-copy { padding-top: 34px; }
.intro-copy p { margin: 0 0 22px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.intro-copy p:first-child { color: var(--ink); font-size: 1.35rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lime);
  font-weight: 850;
}
.text-link span { color: var(--blue); }

.services-section { padding-top: 60px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(260px,.55fr);
  align-items: end;
  gap: clamp(40px,8vw,110px);
  margin-bottom: 64px;
}
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.46);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.service-card:hover { z-index: 2; background: var(--night-soft); color: var(--white); transform: translateY(-5px); }
.service-card.featured { background: var(--blue); color: var(--white); }
.service-number { color: var(--bordeaux); font-size: .72rem; font-weight: 900; }
.featured .service-number,.service-card:hover .service-number { color: var(--lime); }
.service-card h3 { margin: 56px 0 18px; font-size: 1.38rem; line-height: 1.14; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.service-card.featured p,.service-card:hover p { color: #d6e4e9; }
.service-card a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; font-size: .78rem; font-weight: 850; }

.platform-section { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); min-height: 720px; background: var(--night); color: var(--white); }
.platform-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(70px,9vw,150px) clamp(32px,7vw,110px); }
.platform-copy h2 { margin: 0; font-size: clamp(2.8rem,4.5vw,5.2rem); letter-spacing: -.06em; line-height: .98; }
.platform-copy > p:not(.eyebrow) { max-width: 650px; margin: 30px 0; color: #b9cdd4; font-size: 1.05rem; line-height: 1.75; }
.button-light { align-self: flex-start; background: var(--white); color: var(--night); }
.platform-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.platform-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px,4vw,58px);
  overflow: hidden;
}
.platform-card:first-child { grid-column: 1 / -1; }
.lime-card { background: var(--lime); color: var(--night); }
.blue-card { background: var(--blue); }
.image-card {
  background:
    linear-gradient(rgba(8,31,42,.4),rgba(8,31,42,.88)),
    url("./assets/yourkey-quartier-hero.jpg") center / cover;
}
.platform-card > span:not(.sr-only) { position: absolute; top: 34px; left: 40px; font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.platform-card strong { font-size: clamp(1.7rem,3vw,3.25rem); letter-spacing: -.04em; }
.platform-card p { max-width: 450px; margin: 13px 0 0; font-size: .94rem; line-height: 1.6; }
.platform-card i { position: absolute; right: 38px; top: 30px; font-size: 1.75rem; font-style: normal; }

.quarters-section { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); align-items: stretch; gap: 0; }
.quarters-visual { min-height: 680px; overflow: hidden; }
.quarters-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; transform: scale(1.06); }
.quarters-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px,6vw,96px); background: var(--white); }
.quarters-copy > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.quarters-copy ul { display: grid; gap: 14px; margin: 0 0 36px; padding: 0; list-style: none; }
.quarters-copy li { position: relative; padding: 0 0 14px 26px; border-bottom: 1px solid var(--line); font-weight: 750; }
.quarters-copy li::before { position: absolute; left: 0; color: var(--bordeaux); content: "→"; }
.quarters-copy .text-link { align-self: flex-start; }

.partner-teaser { display: grid; grid-template-columns: .5fr 1.5fr; gap: 50px; padding-top: 70px; }
.partner-teaser > div { display: grid; grid-template-columns: 1fr .55fr; gap: 50px; align-items: end; }
.partner-teaser h2 { grid-row: span 2; }
.partner-teaser p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.button-dark { justify-self: start; background: var(--night); color: var(--white); }

.contact-section {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(320px,.65fr);
  gap: clamp(60px,10vw,150px);
  padding: clamp(90px,11vw,160px) max(32px,calc((100vw - 1240px) / 2));
  background: var(--blue);
  color: var(--white);
}
.contact-details { display: flex; flex-direction: column; justify-content: center; }
.contact-details p { margin: 0 0 32px; color: #d7e8ef; font-size: 1.05rem; line-height: 1.7; }
.contact-details > a { align-self: flex-start; margin-top: 11px; font-weight: 750; }
.contact-details .contact-mail {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.35);
  font-size: clamp(1.05rem,2vw,1.5rem);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr .65fr .65fr .65fr;
  gap: 44px;
  padding: 68px max(32px,calc((100vw - 1240px) / 2)) 32px;
  background: #04141d;
  color: #c9d7dc;
  font-size: .84rem;
}
.footer-brand img { width: 190px; padding: 8px; background: var(--white); }
.site-footer strong { color: var(--white); }
.site-footer p { line-height: 1.7; }
.site-footer nav { display: grid; align-content: start; gap: 12px; }
.site-footer nav a:hover { color: var(--lime); }
.copyright { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #78909a; }

.subpage-hero { padding: 190px max(32px,calc((100vw - 1240px) / 2)) 100px; background: var(--night); color: var(--white); }
.subpage-hero h1 { max-width: 940px; margin: 0; font-size: clamp(3rem,7vw,6.8rem); letter-spacing: -.065em; line-height: .95; }
.subpage-hero p:last-child { max-width: 720px; margin: 30px 0 0; color: #c1d4dc; font-size: 1.2rem; line-height: 1.7; }
.partners-list { display: grid; gap: 1px; background: var(--line); }
.partner-row { display: grid; grid-template-columns: .55fr 1.25fr; gap: clamp(40px,8vw,110px); padding: clamp(50px,8vw,100px); background: var(--paper); }
.partner-logo { display: grid; min-height: 260px; place-items: center; padding: 40px; background: var(--white); }
.partner-logo img { max-width: 260px; max-height: 130px; object-fit: contain; }
.partner-copy { align-self: center; }
.partner-copy h2 { margin: 0 0 20px; font-size: clamp(2rem,4vw,4rem); letter-spacing: -.05em; }
.partner-copy p { max-width: 720px; color: var(--muted); line-height: 1.75; }
.legal-main { width: min(860px,calc(100% - 48px)); margin: 0 auto; padding: 160px 0 100px; }
.legal-main h1 { font-size: clamp(2.5rem,6vw,5rem); letter-spacing: -.05em; }
.legal-main h2 { margin-top: 44px; }
.legal-main p,.legal-main li { color: var(--muted); line-height: 1.75; }

@media (max-width: 1080px) {
  .main-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 20px 28px 30px; background: rgba(5,24,35,.98); }
  .main-navigation.is-open { display: grid; }
  .menu-button { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: transparent; }
  .menu-button span:not(.sr-only) { width: 19px; height: 1px; background: var(--white); }
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-section,.quarters-section { grid-template-columns: 1fr; }
  .platform-copy { min-height: 620px; }
  .quarters-visual { min-height: 520px; }
  .partner-teaser,.partner-teaser > div { grid-template-columns: 1fr; }
  .partner-teaser h2 { grid-row: auto; }
  .site-footer { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  :root { --content: min(100% - 36px,1240px); }
  .site-header { min-height: 68px; padding-inline: 18px; }
  .brand { width: 148px; }
  .hero { min-height: 720px; }
  .hero-image { object-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(4,21,32,.92),rgba(4,21,32,.52)); }
  .hero h1 { font-size: clamp(2.75rem,13vw,4.1rem); }
  .hero-copy { font-size: 1rem; }
  .scroll-cue { display: none; }
  .section { padding: 82px 0; }
  .intro-grid,.section-heading,.contact-section,.partner-row { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .services-grid,.platform-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .platform-card:first-child { grid-column: auto; }
  .platform-card { min-height: 330px; }
  .quarters-visual { min-height: 380px; }
  .quarters-copy { padding: 40px 28px; }
  .contact-section { padding: 82px 24px; }
  .site-footer { grid-template-columns: 1fr; padding: 56px 24px 28px; }
  .partner-row { padding: 28px 18px 58px; }
  .partner-logo { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
