/* ============================================================
   ZAAR Atelier — new site component system
   Loaded after portfolio.css (which defines --zaar-* color
   tokens and base fonts). Namespaced with `zr-` to avoid any
   collision with legacy rules still used on archived pages.
   ============================================================ */

:root {
  --zr-gutter: clamp(24px, 6vw, 96px);
  --zr-section-y: clamp(48px, 7vw, 110px);
  --zr-max: 1360px;
}

* { box-sizing: border-box; }

.zr-body {
  background: var(--zaar-warm-white);
  overflow-x: hidden;
}

.zr-container {
  max-width: var(--zr-max);
  margin: 0 auto;
  padding: 0 var(--zr-gutter);
}

img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
.zr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--zr-gutter);
  border-bottom: 1px solid rgba(28, 28, 26, 0.08);
}
.zr-wordmark {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--zaar-graphite);
  text-decoration: none;
}
details.zr-nav-toggle { display: contents; }
.zr-nav-desktop {
  display: none;
  align-items: center;
}
.zr-nav-summary {
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zaar-graphite);
  list-style: none;
}
.zr-nav-summary::-webkit-details-marker { display: none; }
.zr-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zr-nav-links a {
  color: var(--zaar-graphite);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.zr-nav-links a:hover,
.zr-nav-links a.zr-active {
  color: var(--zaar-copper);
  opacity: 1;
}
.zr-lang {
  display: flex;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-left: 36px;
}
.zr-lang a { color: var(--zaar-graphite); text-decoration: none; opacity: 0.5; }
.zr-lang a.zr-active { opacity: 1; color: var(--zaar-copper); font-weight: 700; }
.zr-lang span { opacity: 0.35; }

@media (max-width: 880px) {
  .zr-nav-summary { display: block; }
  details.zr-nav-toggle { display: block; position: relative; }
  .zr-nav-links {
    flex-direction: column;
    gap: 18px;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    background: var(--zaar-warm-white);
    border: 1px solid rgba(28, 28, 26, 0.1);
    padding: 26px 30px;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(28, 28, 26, 0.08);
    z-index: 20;
  }
  .zr-lang { margin: 20px 0 0; padding: 26px 30px 0; }
}
@media (min-width: 881px) {
  /* The desktop nav bar is a separate, permanently-visible copy of the links
     (see .zr-nav-desktop above) — the <details> dropdown is mobile-only from
     here up, hidden entirely rather than just hiding its <summary>, since a
     closed <details> with no "open" attribute hides its own contents natively
     regardless of CSS and previously left desktop with no visible nav at all. */
  details.zr-nav-toggle { display: none; }
  .zr-nav-desktop { display: flex; }
}

/* ---------- Eyebrow / titles ---------- */
.zr-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--zaar-copper);
  font-family: var(--default-font-family);
  font-weight: 600;
  margin-bottom: 22px;
}
.zr-title {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.15;
  color: var(--zaar-graphite);
  margin: 0;
}
.zr-prose {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(28, 28, 26, 0.75);
}
.zr-prose p { margin: 0 0 22px; text-align: left; }
.zr-prose p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.zr-section { padding: var(--zr-section-y) 0; }
.zr-section--graphite {
  background: var(--zaar-graphite);
  color: var(--zaar-warm-white);
}
.zr-section--graphite .zr-title,
.zr-section--graphite h2,
.zr-section--graphite h3 { color: var(--zaar-warm-white); }
.zr-section--ivory { background: var(--zaar-ivory); }

/* ---------- Hero ---------- */
.zr-hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--zaar-graphite);
  color: var(--zaar-warm-white);
  padding: 140px var(--zr-gutter) 100px;
}
.zr-hero-inner { max-width: 900px; }
.zr-hero h1 {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 86px);
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--zaar-warm-white);
}
.zr-hero .zr-lede {
  font-size: 19px;
  line-height: 1.65;
  max-width: 58ch;
  color: rgba(250, 248, 244, 0.82);
  margin: 0 0 44px;
  text-align: left;
}
.zr-hero-actions { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }

/* ---------- Buttons / links ---------- */
.zr-btn {
  display: inline-block;
  background: var(--zaar-copper);
  color: var(--zaar-warm-white) !important;
  padding: 16px 34px;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.3s ease, opacity 0.3s ease;
  border: none;
  cursor: pointer;
}
.zr-btn:hover { background: #9c5c3a; }
.zr-btn--ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit !important;
}
.zr-btn--ghost:hover { background: rgba(28, 28, 26, 0.06); }
.zr-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--zaar-copper);
  padding-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
  display: inline-block;
}
.zr-link:hover { opacity: 0.65; }

/* ---------- Introduction (2-col asymmetric) ---------- */
.zr-intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .zr-intro-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Project grid (asymmetric) ---------- */
.zr-project-grid {
  display: grid;
  /* Single track by default (below the 901px breakpoint every card spans the
     full row anyway — see .zr-project-card below). A 12-track grid here
     instead, even with minmax(0, 1fr) tracks, still bakes in a fixed-pixel
     floor: 11 column-gaps of 40px between the collapsed tracks add up to
     440px that a spanning item carries regardless of viewport, which blew
     mobile layouts out past their container. Only switch to the 12-track
     asymmetric grid once the nth-child span/offset rules that need it are
     actually active. */
  grid-template-columns: 1fr;
  gap: 56px 40px;
  margin-top: 72px;
}
/* No grid-column here at the base/mobile level: with the grid's explicit
   template above at a single 1fr track, an explicit "span 12" would still
   make the browser generate 11 more *implicit* columns to satisfy the span
   (per the grid spec, a span beyond the explicit grid always gets implicit
   tracks) — reintroducing the same 11-gaps-of-40px = 440px floor this whole
   rework exists to avoid, even though grid-template-columns itself is 1fr.
   One explicit column plus no span at all is enough: the single card fills
   it. The span:12 (needed to interoperate with the nth-child span/offset
   rules on the 12-track grid) only makes sense once that grid is active. */
.zr-project-card { min-width: 0; }
@media (min-width: 901px) {
  .zr-project-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .zr-project-card { grid-column: span 12; }
  .zr-project-card:nth-child(4n+1) { grid-column: span 7; }
  .zr-project-card:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: 90px; }
  .zr-project-card:nth-child(4n+3) { grid-column: span 5; }
  .zr-project-card:nth-child(4n)   { grid-column: 6 / span 7; margin-top: 90px; }
}
/* Homepage teaser: a small, fixed set of cards (currently 3) reads as a mistake
   under the asymmetric editorial rhythm above, which is tuned for a longer,
   repeating list. Give it uniform, equal-size tiles instead. */
.zr-project-grid--teaser .zr-project-card {
  grid-column: auto !important;
  margin-top: 0 !important;
}
/* Below 701px this needs its own explicit single column: without it, the grid
   falls back to the 12-track editorial grid above with each card auto-placed
   into just 1 of those 12 tracks — squeezing all 3 teaser cards into a sliver
   of the row and forcing the same overflow the minmax fix above guards
   against. One column keeps the cards stacked full-width until there's room
   for three across. */
.zr-project-grid--teaser { grid-template-columns: 1fr; }
@media (min-width: 701px) {
  .zr-project-grid--teaser { grid-template-columns: repeat(3, 1fr) !important; }
}
.zr-project-card .zr-project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
}
.zr-project-card h3 {
  font-family: var(--heading-font-family);
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 6px;
  text-align: left;
}
.zr-project-card-location {
  display: block;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(28, 28, 26, 0.55);
  margin: -2px 0 10px;
}
.zr-project-meta {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(28, 28, 26, 0.55);
  margin: 0 0 14px;
  text-align: left;
}
.zr-project-services {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(28, 28, 26, 0.6);
  text-align: left;
}
.zr-project-services .zr-plus { color: var(--zaar-copper); font-weight: 700; }
.zr-project-credit {
  font-size: 12px;
  color: rgba(28, 28, 26, 0.5);
  margin-top: 10px;
  font-style: italic;
  text-align: left;
}

.zr-empty-state {
  border-top: 1px solid rgba(28, 28, 26, 0.15);
  padding-top: 40px;
  margin-top: 60px;
  max-width: 62ch;
}
.zr-section--graphite .zr-empty-state { border-top-color: rgba(250, 248, 244, 0.2); }

/* ---------- Expertise blocks ---------- */
.zr-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
  margin-top: 80px;
}
@media (max-width: 900px) {
  .zr-expertise-grid { grid-template-columns: 1fr; gap: 52px; }
}
.zr-expertise { border-top: 1px solid rgba(28, 28, 26, 0.15); padding-top: 28px; }
.zr-expertise .zr-num {
  font-family: var(--heading-font-family);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--zaar-copper);
  display: block;
  margin-bottom: 20px;
}
.zr-expertise h3 {
  font-family: var(--heading-font-family);
  font-size: 22px;
  margin: 0 0 16px;
  text-align: left;
}
.zr-expertise p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(28, 28, 26, 0.75);
  text-align: left;
  margin: 0 0 22px;
}
.zr-expertise ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(28, 28, 26, 0.6);
  line-height: 2.1;
}
.zr-expertise ul li::before { content: "+ "; color: var(--zaar-copper); }

/* ---------- Value list (graphite section) ---------- */
.zr-value-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
  max-width: 780px;
}
.zr-value-list li {
  padding-left: 32px;
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.88);
  text-align: left;
}
.zr-value-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--zaar-copper);
  font-weight: 700;
}

/* ---------- Numbered process ---------- */
.zr-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px;
  margin-top: 80px;
}
@media (max-width: 900px) {
  .zr-process { grid-template-columns: 1fr; gap: 44px; }
}
.zr-process-step { border-top: 1px solid rgba(28, 28, 26, 0.15); padding-top: 24px; }
.zr-process-step .zr-num {
  font-family: var(--heading-font-family);
  font-size: 18px;
  color: var(--zaar-copper);
  letter-spacing: 0.04em;
}
.zr-process-step h3 {
  font-family: var(--heading-font-family);
  font-size: 19px;
  margin: 14px 0 12px;
  text-align: left;
}
.zr-process-step p {
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(28, 28, 26, 0.72);
  text-align: left;
  margin: 0 0 16px;
}
.zr-process-step .zr-deliverable {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zaar-copper);
}
.zr-process-step .zr-deliverable-text {
  display: block;
  color: rgba(28, 28, 26, 0.55);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  margin-top: 6px;
}

/* ---------- About block ---------- */
.zr-about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .zr-about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.zr-about-grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- Philosophy (big editorial line) ---------- */
.zr-philosophy { text-align: center; }
.zr-philosophy p {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.45;
  color: var(--zaar-graphite);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- CTA ---------- */
.zr-cta { text-align: center; }
.zr-cta .zr-title { max-width: 16ch; margin: 0 auto 24px; text-align: center; }
.zr-cta .zr-prose { max-width: 52ch; margin: 0 auto 44px; text-align: center; }
.zr-cta .zr-prose p { text-align: center; }
.zr-cta-actions { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }

/* ---------- Bottom CTA band (every page except home/expertises/contact,
   which already end in their own call-to-action right above the footer) ---------- */
.zr-bottom-cta { background: var(--zaar-ivory); padding: 44px var(--zr-gutter); }
.zr-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.zr-bottom-cta-inner p {
  margin: 0;
  font-family: var(--heading-font-family);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--zaar-graphite);
}

/* ---------- Clients grid (Section 05) ---------- */
.zr-client-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  max-width: 760px;
}
@media (max-width: 640px) { .zr-client-list { grid-template-columns: 1fr; } }
.zr-client-list li {
  font-size: 15px;
  color: rgba(28, 28, 26, 0.72);
  padding-left: 20px;
  position: relative;
  text-align: left;
}
.zr-client-list li::before { content: "+"; position: absolute; left: 0; color: var(--zaar-copper); font-weight: 700; }

/* ---------- Contact ---------- */
.zr-contact-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.zr-social-row { display: flex; gap: 12px; flex-shrink: 0; }
.zr-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28, 28, 26, 0.15);
  border-radius: 50%;
  color: var(--zaar-graphite);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.zr-social-icon svg { width: 18px; height: 18px; }
.zr-social-icon:hover { background: var(--zaar-copper); border-color: var(--zaar-copper); color: var(--zaar-warm-white); }

.zr-contact-map-wrap { position: relative; }
.zr-contact-map {
  width: 100%;
  height: clamp(280px, 38vw, 420px);
  background: var(--zaar-ivory);
}
.zr-map-fallback-link {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--zaar-ivory);
  color: var(--zaar-graphite);
  text-decoration: underline;
  text-decoration-color: var(--zaar-copper);
  font-size: 14px;
}
/* The `hidden` attribute (toggled by JS when the map fails to load) already
   maps to display:none by default, but an author rule setting display:flex
   directly on the element would override that UA default regardless of the
   attribute — so flex is only applied when the element is NOT hidden. */
.zr-map-fallback-link:not([hidden]) { display: flex; }
.zr-map-fallback-link--static { position: static; height: clamp(280px, 38vw, 420px); }
/* Recolour MapLibre's default control chrome to sit quietly within the
   editorial palette instead of its default white/blue map-app look. */
.zr-contact-map-wrap .maplibregl-ctrl-group {
  background: var(--zaar-warm-white);
  border: 1px solid rgba(28, 28, 26, 0.12);
  border-radius: 8px;
  box-shadow: none;
}
.zr-contact-map-wrap .maplibregl-ctrl-attrib {
  background: rgba(250, 248, 244, 0.75);
  font-size: 10.5px;
}

.zr-contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .zr-contact-layout { grid-template-columns: 1fr; gap: 56px; } }

.zr-contact-form { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.zr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .zr-form-row { grid-template-columns: 1fr; } }
.zr-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.5);
  text-align: left;
}
.zr-contact-form input,
.zr-contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--zaar-graphite);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 28, 26, 0.2);
  padding: 8px 2px;
  text-transform: none;
  letter-spacing: normal;
}
.zr-contact-form input:focus,
.zr-contact-form textarea:focus { outline: none; border-bottom-color: var(--zaar-copper); }
.zr-contact-form textarea { resize: vertical; min-height: 140px; }
.zr-form-hint { font-size: 12px; text-transform: none; letter-spacing: normal; color: rgba(28, 28, 26, 0.45); }
.zr-contact-form .zr-form-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: rgba(28, 28, 26, 0.75);
}
.zr-form-checkbox input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.zr-form-checkbox a { color: var(--zaar-graphite); text-decoration: underline; text-decoration-color: var(--zaar-copper); }
.zr-contact-form button.zr-btn { align-self: flex-start; margin-top: 6px; }

.zr-contact-info-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(28, 28, 26, 0.5);
  margin: 0 0 24px;
  text-align: left;
}
.zr-contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 560px) { .zr-contact-info-grid { grid-template-columns: 1fr; gap: 28px; } }
/* Explicit line-height so this lines up with the reach-block's first <h4>
   regardless of which line-height the surrounding text context would
   otherwise hand it (the two elements are very different font sizes —
   16px bold vs 12.5px uppercase — so leaving line-height to inherit made
   their visible baselines drift apart even though both boxes started at
   the same pixel). */
.zr-contact-company { font-weight: 600; color: var(--zaar-graphite); margin: 0 0 6px; text-align: left; line-height: 1.3; }
.zr-contact-address { color: rgba(28, 28, 26, 0.75); margin: 0; text-align: left; }
.zr-contact-reach-block > div + div { margin-top: 22px; }
.zr-contact-reach-block h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(28, 28, 26, 0.5);
  margin: 0 0 6px;
  text-align: left;
}
.zr-contact-reach-block a { color: var(--zaar-graphite); text-decoration: none; font-weight: 600; }
.zr-contact-reach-block a:hover { color: var(--zaar-copper); }

/* The guidance line below the info grid is a bare <p class="zr-prose">, not
   a wrapper div — so the ".zr-prose p" descendant rule elsewhere in this
   file doesn't reach it, and it was falling through to portfolio.css's
   legacy sitewide "p { text-align: center }" rule. Scope a left-align
   override here rather than changing the shared .zr-prose base rule, since
   other .zr-prose usage elsewhere (e.g. inside .zr-philosophy) is
   deliberately centered via its own ancestor context. */
.zr-contact-info-col .zr-prose { text-align: left; }

/* ---------- Footer ---------- */
.zr-footer {
  background: var(--zaar-graphite);
  color: rgba(250, 248, 244, 0.85);
  padding: 100px var(--zr-gutter) 40px;
}
.zr-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  max-width: var(--zr-max);
  margin: 0 auto;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.14);
}
/* Every footer column (heading, paragraphs, nav/contact/social lists) reads
   left-aligned, explicitly — not left to inheritance from the legacy sitewide
   "p { text-align: center }" rule in portfolio.css. */
.zr-footer-grid > div { text-align: left; }
@media (max-width: 780px) {
  .zr-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 24px; }
}
.zr-footer h4 {
  font-family: var(--heading-font-family);
  font-size: 16px;
  color: var(--zaar-warm-white);
  margin: 0 0 18px;
  text-align: left;
}
.zr-footer p { text-align: left; font-size: 14px; margin: 0 0 8px; color: rgba(250, 248, 244, 0.75); }
.zr-footer ul { list-style: none; padding: 0; margin: 0; }
.zr-footer li { margin-bottom: 10px; font-size: 14px; }
.zr-footer a { color: rgba(250, 248, 244, 0.75); text-decoration: none; transition: color 0.3s ease; }
.zr-footer a:hover { color: var(--zaar-copper); }
.zr-footer-bottom {
  max-width: var(--zr-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(250, 248, 244, 0.55);
  flex-wrap: wrap;
  gap: 14px;
}
.zr-footer-bottom a { color: rgba(250, 248, 244, 0.55); }
.zr-footer-bottom a:hover { color: var(--zaar-copper); }
.zr-signature {
  font-family: var(--heading-font-family);
  font-style: italic;
  font-size: 14px;
  color: var(--zaar-taupe);
  text-align: center;
  padding-top: 32px;
}

@media (max-width: 640px) {
  .zr-hero { padding: 120px var(--zr-gutter) 70px; min-height: 82vh; }
  .zr-nav { padding: 22px var(--zr-gutter); }
}


/* ---------- Expertise summary (compact homepage teaser) ---------- */
.zr-expertise-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .zr-expertise-summary-grid { grid-template-columns: 1fr; gap: 32px; }
}
.zr-expertise-summary { border-top: 1px solid rgba(28, 28, 26, 0.15); padding-top: 20px; }
.zr-expertise-summary .zr-num {
  font-family: var(--heading-font-family);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--zaar-copper);
  display: block;
  margin-bottom: 12px;
}
.zr-expertise-summary h3 {
  font-family: var(--heading-font-family);
  font-size: 19px;
  margin: 0 0 10px;
  text-align: left;
}
.zr-expertise-summary p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(28, 28, 26, 0.68);
  text-align: left;
  margin: 0;
}

/* ---------- Inline client line (compact) ---------- */
.zr-inline-list {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(28, 28, 26, 0.68);
  max-width: 760px;
  margin: 28px 0 0;
  text-align: left;
}
.zr-inline-list strong { color: var(--zaar-graphite); font-weight: 600; }

/* ---------- Back to top ---------- */
.zr-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zaar-graphite);
  color: var(--zaar-warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(28, 28, 26, 0.22);
}
.zr-to-top.zr-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.zr-to-top:hover { background: var(--zaar-copper); }
@media (prefers-reduced-motion: reduce) {
  .zr-to-top { transition: opacity 0.3s ease; }
  html { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* ============================================================
   Project cards (grid) — homepage teaser + /projets grid
   ============================================================ */
.zr-project-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.zr-project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  margin-bottom: 24px;
  background: var(--zaar-taupe);
}
.zr-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.zr-project-card:hover .zr-project-img img { transform: scale(1.03); }
.zr-project-card-cat {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--zaar-copper);
  font-weight: 600;
  margin-bottom: 10px;
}
.zr-project-card-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(28, 28, 26, 0.68);
  text-align: left;
  margin: 0;
}

/* ============================================================
   Individual project page
   ============================================================ */
.zr-project-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background: var(--zaar-graphite);
  overflow: hidden;
}
.zr-project-hero-img,
.zr-project-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zr-project-hero-overlay {
  position: relative;
  width: 100%;
  padding: 140px 0 64px;
  background: linear-gradient(180deg, rgba(28, 28, 26, 0) 0%, rgba(28, 28, 26, 0.72) 78%, rgba(28, 28, 26, 0.88) 100%);
}
.zr-eyebrow--light { color: var(--zaar-taupe); }
.zr-project-hero-overlay h1 {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.15;
  color: var(--zaar-warm-white);
  margin: 0 0 20px;
}
.zr-project-hero-overlay .zr-lede {
  font-size: 17px;
  line-height: 1.65;
  max-width: 58ch;
  color: rgba(250, 248, 244, 0.85);
  margin: 0;
  text-align: left;
}

.zr-project-back { margin-top: 18px; }

.zr-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 48px 40px;
  margin-top: 48px;
}
@media (max-width: 780px) {
  .zr-project-gallery { grid-template-columns: 1fr; gap: 40px; }
}
.zr-project-gallery-item { margin: 0; }
/* A single trailing item left dangling in the last row (odd total count) spans
   the full width instead of sitting alone in one column — reads as a deliberate
   closing image rather than a layout mistake. */
.zr-project-gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.zr-project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
.zr-project-gallery-item figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(28, 28, 26, 0.55);
  text-align: left;
}
.zr-section--graphite .zr-project-gallery-item figcaption { color: rgba(250, 248, 244, 0.55); }

.zr-project-contrib {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 780px) {
  .zr-project-contrib { grid-template-columns: 1fr; gap: 36px; }
}

.zr-project-next { border-top: 1px solid rgba(28, 28, 26, 0.1); }
.zr-project-next-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.zr-project-next-link .zr-eyebrow { margin-bottom: 14px; }
.zr-project-next-link .zr-title {
  transition: color 0.3s ease;
}
.zr-project-next-link:hover .zr-title { color: var(--zaar-copper); }

@media (max-width: 640px) {
  .zr-project-hero { min-height: 58vh; }
  .zr-project-hero-overlay { padding: 120px 0 48px; }
}
