/*
Theme Name: Quartier Libre
Theme URI: https://www.quartier-libre.org/
Author: Quartier Libre
Description: Thème Gutenberg éditable pour le site Quartier Libre.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: quartier-libre
*/

:root {
  --ql-blue: #010046;
  --ql-blue-2: #0d0b5d;
  --ql-orange: #eb7d33;
  --ql-ivory: #fffaf1;
  --ql-paper: #f7f3ec;
  --ql-peach: #f5ddcc;
  --ql-mist: #dce7ee;
  --ql-sand: #eadfca;
  --ql-sage: #dbe2d6;
  --ql-ink-soft: #3f4157;
  --ql-line: rgba(1, 0, 70, 0.18);
  --ql-shell: min(1240px, calc(100% - 64px));
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ql-paper);
  color: var(--ql-blue);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ql-orange); outline-offset: 4px; }

.wp-site-blocks { overflow: hidden; }
.wp-site-blocks > * { margin-block-start: 0; }
.ql-shell { width: var(--ql-shell); margin-inline: auto; }

.ql-site-header {
  position: relative;
  z-index: 20;
  background: var(--ql-paper);
  border-bottom: 1px solid var(--ql-line);
}

.ql-header-inner {
  width: var(--ql-shell);
  min-height: 96px;
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 36px;
}

.ql-header-inner .wp-block-site-logo img { width: 274px; height: auto; }
.ql-header-inner .wp-block-navigation { justify-self: center; font-size: 14px; font-weight: 620; }
.ql-header-inner .wp-block-navigation__container { gap: clamp(20px, 2.8vw, 42px); }
.ql-header-inner .wp-block-navigation-item__content { position: relative; padding-block: 8px; }
.ql-header-inner .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  inset: auto 0 1px;
  height: 2px;
  background: var(--ql-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.ql-header-inner .wp-block-navigation-item__content:hover::after,
.ql-header-inner .current-menu-item .wp-block-navigation-item__content::after,
.ql-header-inner .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }

.ql-header-cta .wp-block-button__link {
  min-height: 46px;
  padding: 13px 19px;
  border: 1px solid var(--ql-blue);
  border-radius: 0;
  background: transparent;
  color: var(--ql-blue);
  font-size: 13px;
  font-weight: 700;
}
.ql-header-cta .wp-block-button__link:hover { background: var(--ql-blue); color: #fff; }

.ql-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px !important;
  color: var(--ql-orange);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ql-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ql-eyebrow-light { color: #ffb17d; }

.ql-button .wp-block-button__link,
.wp-block-button.ql-button > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--ql-orange);
  color: var(--ql-blue);
  font-size: 14px;
  font-weight: 730;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.ql-button .wp-block-button__link:hover,
.wp-block-button.ql-button > .wp-block-button__link:hover { transform: translateY(-2px); background: var(--ql-blue); color: #fff; }

.ql-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 750;
}

.ql-hero { width: var(--ql-shell); margin-inline: auto; padding: 38px 0 118px; }
.ql-hero-media { position: relative; min-height: 540px; margin: 0 !important; overflow: hidden; background: var(--ql-mist); }
.ql-hero-media img { height: 540px !important; object-fit: cover; object-position: center 47%; }
.ql-hero-media .wp-block-cover__inner-container { height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; }
.ql-image-caption {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 22px;
  margin: 0 !important;
  padding: 8px 12px;
  background: rgba(1, 0, 70, .82);
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ql-hero-card {
  position: relative;
  z-index: 4;
  width: min(710px, calc(100% - 92px));
  margin: -205px 0 0 48px !important;
  padding: clamp(38px, 4vw, 52px);
  background: var(--ql-paper);
  box-shadow: 0 28px 62px rgba(1, 0, 70, .12);
}
.ql-hero-card h1 { max-width: 690px; margin: 0; font-size: clamp(44px, 4.25vw, 58px); font-weight: 720; line-height: 1.03; letter-spacing: -.045em; }
.ql-hero-intro { max-width: 650px; margin: 23px 0 0 !important; color: var(--ql-ink-soft); font-size: 16px; }
.ql-territory { margin: 18px 0 0 !important; font-size: 12px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.ql-territory::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--ql-orange); box-shadow: 0 0 0 5px rgba(235, 125, 51, .13); }
.ql-hero-actions { display: flex !important; align-items: center; gap: 28px; margin-top: 27px !important; }

.ql-proof-band { padding: 0 !important; background: var(--ql-blue); color: #fff; }
.ql-proof-grid { width: var(--ql-shell); margin-inline: auto; display: grid !important; grid-template-columns: repeat(4, 1fr); }
.ql-proof-item { min-height: 210px; padding: 40px clamp(22px, 3vw, 42px); border-left: 1px solid rgba(255, 255, 255, .18); }
.ql-proof-item:last-child { border-right: 1px solid rgba(255, 255, 255, .18); }
.ql-proof-value { margin: 0 !important; color: #ff9b58; font-size: clamp(44px, 5vw, 68px); font-weight: 720; line-height: .98; letter-spacing: -.04em; }
.ql-proof-label { margin: 17px 0 0 !important; font-size: 14px; font-weight: 680; }
.ql-proof-note { margin: 3px 0 0 !important; color: rgba(255, 255, 255, .62); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.ql-section { width: var(--ql-shell); margin-inline: auto; padding: 132px 0; }
.ql-split-heading { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: 80px; align-items: end; }
.ql-split-heading h2, .ql-heading h2 { margin: 0; font-size: clamp(38px, 4.3vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.ql-section-lead { margin: 0 0 6px !important; color: var(--ql-ink-soft); font-size: 18px; }

.ql-issues-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); margin-top: 76px !important; border-top: 1px solid var(--ql-line); border-bottom: 1px solid var(--ql-line); }
.ql-issue-card { position: relative; min-height: 355px; padding: 32px 34px 38px; border-right: 1px solid var(--ql-line); transition: transform 180ms ease, background 180ms ease; }
.ql-issue-card:first-child { border-left: 1px solid var(--ql-line); }
.ql-issue-card:hover { transform: translateY(-5px); background: var(--ql-ivory); }
.ql-index { margin: 0 !important; color: var(--ql-orange); font-size: 17px; font-weight: 760; letter-spacing: .15em; }
.ql-issue-card h3 { max-width: 270px; margin: 80px 0 18px; font-size: 29px; line-height: 1.08; letter-spacing: -.025em; }
.ql-issue-card p:last-child { margin: 0; color: var(--ql-ink-soft); font-size: 15px; }

.ql-method-home { padding: 132px max(32px, calc((100% - 1240px) / 2)); background: var(--ql-blue); color: #fff; }
.ql-method-home > .wp-block-group__inner-container { width: 100%; margin-inline: auto; }
.ql-method-heading { display: grid !important; grid-template-columns: 1.2fr .72fr; gap: 80px; align-items: end; }
.ql-method-heading .ql-eyebrow { grid-column: 1 / -1; margin-bottom: -38px !important; }
.ql-method-heading h2 { margin: 0; font-size: clamp(38px, 4.3vw, 60px); line-height: 1.06; letter-spacing: -.04em; }
.ql-method-heading > p:last-child { margin: 0 0 5px !important; color: rgba(255, 255, 255, .72); font-size: 17px; }
.ql-method-cards { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 74px !important; }
.ql-method-card { display: grid !important; grid-template-columns: minmax(190px, .76fr) 1fr; min-height: 260px; overflow: hidden; background: var(--ql-ivory); color: var(--ql-blue); }
.ql-method-visual { position: relative; display: grid !important; place-items: center; min-height: 260px; border-right: 1px solid rgba(1, 0, 70, .12); }
.ql-tone-peach { background: var(--ql-peach); }
.ql-tone-mist { background: var(--ql-mist); }
.ql-tone-sand { background: var(--ql-sand); }
.ql-tone-sage { background: var(--ql-sage); }
.ql-method-icon { display: grid; place-items: center; width: 124px; height: 124px; margin: 0 !important; border: 1px solid rgba(1, 0, 70, .13); border-radius: 50%; background: rgba(255, 250, 241, .72); }
.ql-method-icon img { width: 64px !important; height: 64px !important; object-fit: contain; }
.ql-method-caption { position: absolute; bottom: 18px; left: 22px; margin: 0 !important; font-size: 9px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.ql-method-copy { display: flex !important; flex-direction: column; justify-content: flex-end; padding: 30px; }
.ql-method-copy .ql-index { margin-bottom: auto !important; }
.ql-method-copy h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.05; }
.ql-method-copy p:last-child { margin: 0; color: var(--ql-ink-soft); font-size: 14px; }

.ql-references-home .ql-reference-grid { margin-top: 74px; }
.ql-footprint { padding: 122px max(32px, calc((100% - 1240px) / 2)); background: var(--ql-blue-2); color: #fff; display: grid !important; grid-template-columns: 1fr .92fr; gap: 90px; align-items: center; }
.ql-footprint > .wp-block-group__inner-container { display: contents; }
.ql-footprint-copy h2 { margin: 0; font-size: clamp(38px, 4.3vw, 60px); line-height: 1.06; letter-spacing: -.04em; }
.ql-footprint-copy > p:not(.ql-eyebrow) { max-width: 630px; margin: 28px 0 0 !important; color: rgba(255, 255, 255, .72); }
.ql-communes { display: flex !important; flex-wrap: wrap; gap: 9px; margin-top: 34px !important; }
.ql-communes p { margin: 0 !important; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .23); color: rgba(255, 255, 255, .82); font-size: 11px; }
.ql-testimonial { display: grid !important; grid-template-columns: 150px 1fr; gap: 34px; align-items: end; padding: 34px; background: var(--ql-peach); color: var(--ql-blue); }
.ql-testimonial-image { width: 150px; height: 220px; margin: 0 !important; overflow: hidden; border-radius: 90px 90px 8px 8px; }
.ql-testimonial-image img { width: 100%; height: 100%; object-fit: cover; object-position: 32% center; }
.ql-testimonial blockquote { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 650; line-height: 1.3; }
.ql-testimonial-source { color: rgba(1, 0, 70, .58); font-size: 11px; }

.ql-interior-hero { width: var(--ql-shell); margin-inline: auto; padding: 112px 0 106px; }
.ql-interior-hero-grid { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .58fr); gap: 90px; align-items: end; }
.ql-interior-hero h1 { max-width: 820px; margin: 0; font-size: clamp(50px, 5.6vw, 78px); font-weight: 720; line-height: 1.02; letter-spacing: -.045em; }
.ql-interior-hero-grid > p { margin: 0 0 7px !important; color: var(--ql-ink-soft); font-size: 18px; }

.ql-method-index { width: var(--ql-shell); margin: 0 auto 102px !important; display: grid !important; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ql-line); border-bottom: 1px solid var(--ql-line); }
.ql-method-index-item { min-height: 120px; padding: 18px; border-left: 1px solid var(--ql-line); display: grid !important; grid-template-columns: 66px 1fr; grid-template-rows: auto auto; gap: 0 17px; align-items: center; }
.ql-method-index-item:last-child { border-right: 1px solid var(--ql-line); }
.ql-method-index-item::before { content: ""; grid-column: 1; grid-row: 1 / span 2; width: 66px; height: 66px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 31px 31px; }
.ql-method-index-item:nth-child(1)::before { background-color: #f3dac8; background-image: url("assets/icons/comprendre.svg"); }
.ql-method-index-item:nth-child(2)::before { background-color: #dce8ee; background-image: url("assets/icons/explorer.svg"); }
.ql-method-index-item:nth-child(3)::before { background-color: var(--ql-sand); background-image: url("assets/icons/arbitrer.svg"); }
.ql-method-index-item:nth-child(4)::before { background-color: var(--ql-sage); background-image: url("assets/icons/mettre-en-oeuvre.svg"); }
.ql-method-index-item p { grid-column: 2; align-self: end; margin: 0 !important; color: var(--ql-orange); font-size: 8px; font-weight: 800; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; }
.ql-method-index-item h3 { grid-column: 2; align-self: start; margin: 5px 0 0; font-size: 18px; }

.ql-method-detail { padding: 112px max(32px, calc((100% - 1240px) / 2)); border-top: 1px solid rgba(1, 0, 70, .11); scroll-margin-top: 32px; display: grid !important; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: clamp(66px, 8vw, 120px); }
#comprendre.ql-method-detail { background: #f3dac8; }
#explorer.ql-method-detail { background: #dce8ee; }
.ql-method-detail > .wp-block-group__inner-container { display: contents; }
.ql-method-detail-intro { position: relative; }
.ql-method-detail .ql-index { color: rgba(1, 0, 70, .22); font-size: 94px; font-weight: 760; line-height: .84; letter-spacing: -.07em; }
.ql-method-detail-intro::before { content: ""; position: absolute; top: -8px; right: 0; width: 76px; height: 76px; border: 1px solid rgba(1, 0, 70, .14); border-radius: 50%; background-color: rgba(255, 250, 241, .52); background-position: center; background-repeat: no-repeat; background-size: 38px 38px; }
#comprendre .ql-method-detail-intro::before { background-image: url("assets/icons/comprendre.svg"); }
#explorer .ql-method-detail-intro::before { background-image: url("assets/icons/explorer.svg"); }
#arbitrer .ql-method-detail-intro::before { background-image: url("assets/icons/arbitrer.svg"); }
#mettre-en-oeuvre .ql-method-detail-intro::before { background-image: url("assets/icons/mettre-en-oeuvre.svg"); }
.ql-method-detail-intro h2 { margin: 0; font-size: clamp(43px, 4vw, 60px); line-height: 1; letter-spacing: -.045em; }
.ql-method-detail-intro h3 { margin: 34px 0 16px; font-size: 23px; line-height: 1.25; }
.ql-method-detail-intro > p:last-child { color: var(--ql-ink-soft); font-size: 16px; }
.ql-method-phase { margin: 52px 0 9px !important; color: var(--ql-orange); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ql-method-tools { display: grid !important; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(1, 0, 70, .16); border-left: 1px solid rgba(1, 0, 70, .16); }
.ql-method-tool { min-height: 218px; padding: 28px; border-right: 1px solid rgba(1, 0, 70, .16); border-bottom: 1px solid rgba(1, 0, 70, .16); background: rgba(255, 250, 241, .32); }
.ql-method-tool h3 { margin: 40px 0 9px; font-size: 20px; }
.ql-method-tool p { margin: 0; color: var(--ql-ink-soft); font-size: 14px; }
.ql-method-tool::before { content: ""; display: block; width: 30px; height: 30px; background: var(--ql-orange); -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
#comprendre .ql-method-tool:nth-child(1)::before { -webkit-mask-image: url("assets/icons/message-square-text.svg"); mask-image: url("assets/icons/message-square-text.svg"); }
#comprendre .ql-method-tool:nth-child(2)::before,
#arbitrer .ql-method-tool:nth-child(1)::before { -webkit-mask-image: url("assets/icons/bar-chart-3.svg"); mask-image: url("assets/icons/bar-chart-3.svg"); }
#comprendre .ql-method-tool:nth-child(3)::before { -webkit-mask-image: url("assets/icons/users.svg"); mask-image: url("assets/icons/users.svg"); }
#comprendre .ql-method-tool:nth-child(4)::before,
#explorer .ql-method-tool:nth-child(2)::before { -webkit-mask-image: url("assets/icons/map.svg"); mask-image: url("assets/icons/map.svg"); }
#explorer .ql-method-tool:nth-child(1)::before { -webkit-mask-image: url("assets/icons/building-2.svg"); mask-image: url("assets/icons/building-2.svg"); }
#explorer .ql-method-tool:nth-child(3)::before { -webkit-mask-image: url("assets/icons/clipboard-list.svg"); mask-image: url("assets/icons/clipboard-list.svg"); }
#explorer .ql-method-tool:nth-child(4)::before { -webkit-mask-image: url("assets/icons/explorer.svg"); mask-image: url("assets/icons/explorer.svg"); }
#arbitrer .ql-method-tool:nth-child(2)::before,
#mettre-en-oeuvre .ql-method-tool:nth-child(4)::before { -webkit-mask-image: url("assets/icons/landmark.svg"); mask-image: url("assets/icons/landmark.svg"); }
#arbitrer .ql-method-tool:nth-child(3)::before,
#mettre-en-oeuvre .ql-method-tool:nth-child(2)::before { -webkit-mask-image: url("assets/icons/handshake.svg"); mask-image: url("assets/icons/handshake.svg"); }
#arbitrer .ql-method-tool:nth-child(4)::before { -webkit-mask-image: url("assets/icons/arbitrer.svg"); mask-image: url("assets/icons/arbitrer.svg"); }
#mettre-en-oeuvre .ql-method-tool:nth-child(1)::before { -webkit-mask-image: url("assets/icons/calendar-check-2.svg"); mask-image: url("assets/icons/calendar-check-2.svg"); }
#mettre-en-oeuvre .ql-method-tool:nth-child(3)::before { -webkit-mask-image: url("assets/icons/file-check-2.svg"); mask-image: url("assets/icons/file-check-2.svg"); }
.ql-deliverables { margin-top: 34px !important; padding: 27px 30px; background: var(--ql-blue); color: #fff; }
.ql-deliverables strong { color: #ffb17d; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.ql-deliverables p:last-child { margin-bottom: 0 !important; }
.ql-content-label { margin: 0 0 18px !important; color: #ffb17d; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.ql-deliverables ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ql-deliverables li { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .24); font-size: 11px; }

.ql-method-closing h2 { max-width: 850px; }
.ql-method-closing .ql-section-lead { max-width: 720px; margin-top: 27px !important; }
.ql-method-closing .wp-block-buttons { margin-top: 34px; }

.ql-team-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 19px; }
.ql-team-card { overflow: hidden; }
.ql-team-portrait { height: 375px; margin: 17px 17px 0 !important; overflow: hidden; border-radius: 170px 170px 8px 8px; }
.ql-team-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.01); }
.ql-team-section, .ql-section:has(.ql-team-grid) { padding-top: 0; }
.ql-team-copy { position: relative; min-height: 310px; padding: 28px 24px 31px; }
.ql-team-copy::after { position: absolute; top: 29px; right: 24px; color: rgba(1, 0, 70, .35); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.ql-team-card:nth-child(1) .ql-team-copy::after { content: "01"; }
.ql-team-card:nth-child(2) .ql-team-copy::after { content: "02"; }
.ql-team-card:nth-child(3) .ql-team-copy::after { content: "03"; }
.ql-team-card:nth-child(4) .ql-team-copy::after { content: "04"; }
.ql-team-card:nth-child(1) .ql-team-portrait img { object-position: center 42%; }
.ql-team-card:nth-child(2) .ql-team-portrait img { object-position: center 38%; }
.ql-team-card:nth-child(3) .ql-team-portrait img { object-position: center 38%; }
.ql-team-card:nth-child(4) .ql-team-portrait img { object-position: center 36%; }
.ql-team-copy h2 { margin: 0; font-size: 27px; line-height: 1.05; }
.ql-team-role { min-height: 44px; margin: 16px 0 18px !important; color: var(--ql-orange); font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.ql-team-copy > p:last-child { color: var(--ql-ink-soft); font-size: 14px; }
.ql-partners { padding: 126px max(32px, calc((100% - 1240px) / 2)); background: var(--ql-blue); color: #fff; }
.ql-partners > .wp-block-group__inner-container { display: contents; }
.ql-partners .ql-section-lead { color: rgba(255, 255, 255, .7); }
.ql-partner-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); margin-top: 72px !important; border-top: 1px solid rgba(255, 255, 255, .18); border-left: 1px solid rgba(255, 255, 255, .18); }
.ql-partner-card { min-height: 255px; padding: 31px; border-right: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ql-partner-card::before { content: ""; display: block; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 27px 27px; }
.ql-partner-card:nth-child(1)::before { background-image: url("assets/icons/partner-building.svg"); }
.ql-partner-card:nth-child(2)::before { background-image: url("assets/icons/partner-scale.svg"); }
.ql-partner-card:nth-child(3)::before { background-image: url("assets/icons/partner-banknote.svg"); }
.ql-partner-card:nth-child(4)::before { background-image: url("assets/icons/partner-heart-handshake.svg"); }
.ql-partner-card:nth-child(5)::before { background-image: url("assets/icons/partner-leaf.svg"); }
.ql-partner-card:nth-child(6)::before { background-image: url("assets/icons/partner-house-plus.svg"); }
.ql-partner-card h3 { margin: 34px 0 10px; font-size: 23px; }
.ql-partner-card p { color: rgba(255, 255, 255, .66); font-size: 14px; }

.ql-projects-page { width: var(--ql-shell); margin: 0 auto; padding-bottom: 132px; }
.ql-projects-intro { display: flex !important; justify-content: space-between; align-items: end; padding: 25px 0; border-top: 1px solid var(--ql-line); }
.ql-projects-intro h2, .ql-projects-intro p { margin: 0 !important; }
.ql-projects-intro p { color: var(--ql-ink-soft); font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }

.ql-reference-grid { display: grid; grid-template-columns: repeat(var(--ql-columns, 3), minmax(0, 1fr)); gap: 23px; }
.ql-reference-card { overflow: hidden; background: var(--ql-ivory); }
.ql-reference-card.ql-tone-peach { background: var(--ql-peach); }
.ql-reference-card.ql-tone-mist { background: var(--ql-mist); }
.ql-reference-card.ql-tone-sand { background: var(--ql-sand); }
.ql-reference-card.ql-tone-sage { background: var(--ql-sage); }
.ql-reference-image { position: relative; display: block; height: 265px; overflow: hidden; background: var(--ql-blue); }
.ql-reference-grid.is-home .ql-reference-image { height: 280px; margin: 18px 18px 0; border-radius: 180px 180px 8px 8px; }
.ql-reference-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(1, 0, 70, .42)); pointer-events: none; }
.ql-reference-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); transition: transform 360ms ease; }
.ql-reference-card:hover .ql-reference-image img { transform: scale(1.025); }
.ql-reference-meta-badge { position: absolute; z-index: 2; right: 14px; bottom: 13px; padding: 6px 8px; background: rgba(247, 243, 236, .92); color: var(--ql-blue); font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.ql-reference-copy { position: relative; min-height: 335px; padding: 27px 26px 32px; }
.ql-reference-grid.is-home .ql-reference-copy { min-height: 330px; }
.ql-reference-place { max-width: calc(100% - 42px); margin: 0 0 12px !important; color: var(--ql-orange); font-size: 10px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.ql-reference-index { position: absolute; top: 27px; right: 25px; margin: 0 !important; color: rgba(1, 0, 70, .34); font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.ql-reference-copy h3 { margin: 0; font-size: 28px; line-height: 1.07; letter-spacing: -.03em; }
.ql-reference-type { margin: 13px 0 22px !important; font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.ql-reference-description { margin: 0 !important; color: var(--ql-ink-soft); font-size: 14px; }
.ql-reference-grid.is-archive .ql-reference-place { font-size: 9px; }
.ql-reference-grid.is-archive .ql-reference-type { font-size: 10px; }
.ql-reference-grid.is-archive .ql-reference-description { font-size: 13px; }
.ql-reference-link { display: inline-flex; margin-top: 22px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 760; }
.ql-reference-empty { grid-column: 1 / -1; padding: 34px; border: 1px solid var(--ql-line); background: var(--ql-ivory); }

.ql-reference-hero { width: var(--ql-shell); margin: 0 auto; padding: 92px 0 62px; }
.ql-reference-hero h1 { max-width: 920px; margin: 0; font-size: clamp(50px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.045em; }
.ql-reference-detail-meta { margin: 22px 0 0; color: var(--ql-orange); font-size: 12px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.ql-reference-featured { width: var(--ql-shell); height: min(58vw, 680px); margin: 0 auto !important; overflow: hidden; }
.ql-reference-featured img { width: 100%; height: 100%; object-fit: cover; }
.ql-reference-content { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 86px 0 126px; }
.ql-reference-content > * { margin-left: 0; margin-right: 0; }

.ql-contact { width: var(--ql-shell); margin: 0 auto; padding: 112px 0 126px; }
.ql-contact h1 { max-width: 920px; margin: 0; font-size: clamp(56px, 7vw, 94px); line-height: 1.02; letter-spacing: -.045em; }
.ql-contact-grid { display: grid !important; grid-template-columns: 1.05fr 1.25fr .8fr; margin-top: 102px !important; border-top: 1px solid var(--ql-line); border-left: 1px solid var(--ql-line); }
.ql-contact-card { min-height: 250px; padding: 30px; border-right: 1px solid var(--ql-line); border-bottom: 1px solid var(--ql-line); }
.ql-contact-card::before { content: ""; display: block; width: 58px; height: 58px; border-radius: 50%; background-color: var(--ql-peach); background-position: center; background-repeat: no-repeat; background-size: 28px 28px; }
.ql-contact-card:nth-child(1)::before { background-image: url("assets/icons/map-pin.svg"); }
.ql-contact-card:nth-child(2)::before { background-image: url("assets/icons/mail.svg"); }
.ql-contact-card:nth-child(3)::before { background-image: url("assets/icons/phone.svg"); }
.ql-contact-label { margin: 48px 0 9px !important; color: var(--ql-orange); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ql-contact-card p:last-child, .ql-contact-card address { margin: 0; font-style: normal; font-size: clamp(19px, 2vw, 27px); font-weight: 650; line-height: 1.3; }
.ql-contact-card a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.ql-site-footer { background: var(--ql-paper); border-top: 1px solid var(--ql-line); }
.ql-footer-top { width: var(--ql-shell); margin-inline: auto; display: flex !important; justify-content: space-between; align-items: end; gap: 70px; padding: 80px 0; border-bottom: 1px solid var(--ql-line); }
.ql-footer-top h2 { max-width: 770px; margin: 0; font-size: clamp(38px, 4.3vw, 60px); line-height: 1.06; letter-spacing: -.04em; }
.ql-footer-bottom { width: var(--ql-shell); margin-inline: auto; display: grid !important; grid-template-columns: 1fr 1fr 1.15fr; gap: 40px; align-items: start; padding: 38px 0 46px; font-size: 12px; }
.ql-footer-bottom .wp-block-site-logo img { width: 246px; height: auto; }
.ql-footer-bottom p { margin: 0 !important; }
.ql-footer-address { justify-self: end; text-align: right; }

.ql-editor-note { padding: 16px; border-left: 4px solid var(--ql-orange); background: #fff; color: var(--ql-ink-soft); }

@media (max-width: 1120px) {
  .ql-team-grid, .ql-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ql-team-portrait { height: 490px; }
  .ql-reference-image { height: 330px; }
}

@media (max-width: 1020px) {
  .ql-header-inner { grid-template-columns: 250px 1fr auto; }
  .ql-header-cta { display: none; }
  .ql-split-heading, .ql-method-heading, .ql-footprint, .ql-interior-hero-grid, .ql-method-detail { grid-template-columns: 1fr; gap: 36px; }
  .ql-method-heading .ql-eyebrow { margin-bottom: -12px !important; }
  .ql-method-cards { grid-template-columns: 1fr; }
  .ql-method-index { grid-template-columns: repeat(2, 1fr); }
  .ql-method-index-item:nth-child(n+3) { border-top: 1px solid var(--ql-line); }
  .ql-team-grid { grid-template-columns: repeat(2, 1fr); }
  .ql-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .ql-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .ql-contact-card:last-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root { --ql-shell: min(100% - 36px, 640px); }
  body { font-size: 16px; }
  .ql-header-inner { min-height: 78px; grid-template-columns: 1fr auto; gap: 16px; }
  .ql-header-inner .wp-block-navigation { justify-self: end; }
  .ql-header-inner .wp-block-site-logo img { width: 230px; }
  .ql-hero { width: 100%; padding: 20px 0 80px; }
  .ql-hero-media { width: var(--ql-shell); min-height: 395px; margin-inline: auto !important; }
  .ql-hero-media img { height: 395px !important; }
  .ql-hero-card { width: var(--ql-shell); margin: -72px auto 0 !important; padding: 30px 24px 32px; }
  .ql-hero-card h1 { font-size: clamp(38px, 11.7vw, 53px); }
  .ql-hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .ql-proof-grid { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .ql-proof-item { min-height: 156px; padding: 27px 18px; }
  .ql-proof-item:nth-child(odd) { border-left: 0; }
  .ql-proof-value { font-size: 42px; }
  .ql-section, .ql-method-home, .ql-footprint, .ql-partners { padding-top: 86px; padding-bottom: 86px; }
  .ql-method-home, .ql-footprint, .ql-partners, .ql-method-detail { padding-left: 18px; padding-right: 18px; }
  .ql-split-heading, .ql-method-heading { gap: 24px; }
  .ql-split-heading h2, .ql-heading h2, .ql-method-heading h2, .ql-footprint-copy h2, .ql-footer-top h2 { font-size: clamp(35px, 10vw, 47px); }
  .ql-issues-grid, .ql-method-index, .ql-method-tools, .ql-team-grid, .ql-partner-grid, .ql-reference-grid, .ql-contact-grid { grid-template-columns: 1fr; }
  .ql-issue-card { min-height: 265px; border-left: 1px solid var(--ql-line); border-bottom: 1px solid var(--ql-line); }
  .ql-method-card { grid-template-columns: 1fr; }
  .ql-method-visual { min-height: 210px; border-right: 0; border-bottom: 1px solid rgba(1, 0, 70, .12); }
  .ql-method-index-item, .ql-method-index-item:nth-child(n+3) { border-top: 1px solid var(--ql-line); border-right: 1px solid var(--ql-line); }
  .ql-method-index-item:first-child { border-top: 0; }
  .ql-method-detail { padding: 78px 0; }
  .ql-method-detail { padding-left: 18px; padding-right: 18px; gap: 56px; }
  .ql-method-detail .ql-index { font-size: 76px; }
  .ql-method-detail-intro::before { width: 62px; height: 62px; background-size: 30px 30px; }
  .ql-method-phase { margin-top: 40px !important; }
  .ql-team-portrait { height: min(118vw, 510px); }
  .ql-team-copy { min-height: 0; }
  .ql-partner-grid { margin-top: 50px !important; }
  .ql-reference-image, .ql-reference-grid.is-home .ql-reference-image { height: 265px; }
  .ql-reference-copy { min-height: 0; }
  .ql-interior-hero { padding: 78px 0 70px; }
  .ql-interior-hero h1 { font-size: clamp(42px, 13vw, 59px); }
  .ql-interior-hero-grid { gap: 28px; }
  .ql-contact { padding: 78px 0 90px; }
  .ql-contact h1 { font-size: clamp(48px, 15vw, 70px); }
  .ql-contact-grid { margin-top: 70px !important; }
  .ql-contact-card, .ql-contact-card:last-child { grid-column: auto; min-height: 225px; }
  .ql-footer-top { align-items: stretch; flex-direction: column; gap: 34px; padding: 66px 0; }
  .ql-footer-bottom { grid-template-columns: 1fr; gap: 22px; }
  .ql-footer-address { justify-self: start; text-align: left; }
}

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