/* Layout: gallery-white pages, oversized expanded display type (BIG-like), project sheets set in mono like drawing title blocks. Single light theme by choice. */
:root {
  --bg: #f4f4f1;        /* chaux */
  --surface: #e8e7e2;   /* béton clair */
  --ink: #141414;
  --muted: #5d5e58;
  --line: #cfcec7;
  --accent: #2f5d50;    /* vert cèdre */
  --on-accent: #f4f4f1;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: .8125rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.75rem; --s3: 2.5rem;
  --maxw: 1320px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

.mono, .eyebrow { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.tbd { background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(47,93,80,.12) 6px 12px); outline: 1px dashed var(--accent); padding: 0 .25em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); flex: none; }
.brand-word { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; display: flex; gap: .35em; align-items: baseline; }
.brand-word span { font-weight: 300; letter-spacing: .06em; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  font-family: var(--f-mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none; padding: 8px 12px; border-radius: 2px;
}
.main-nav a:hover { background: var(--surface); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.menu-toggle {
  display: none; font: 500 .875rem var(--f-mono); text-transform: uppercase; letter-spacing: .05em;
  background: none; border: 1px solid var(--ink); color: var(--ink); padding: 8px 14px; border-radius: 2px; cursor: pointer;
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { background: none; color: var(--accent); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.hero-title {
  font-size: clamp(4.5rem, 19vw, 17rem); font-weight: 900; font-stretch: 125%;
  line-height: .82; letter-spacing: -.02em; margin-block: 16px 28px;
  display: flex; flex-wrap: wrap; column-gap: .18em; align-items: baseline;
}
.ht-thin { font-weight: 200; font-stretch: 125%; text-transform: uppercase; font-size: .56em; letter-spacing: .04em; }
.ht-line { display: inline-block; animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
.ht-line + .ht-line { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(18%); opacity: .2; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ht-line { animation: none; } }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.hero-lede { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; max-width: 38ch; }
.hero-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hero-tags li { font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--ink); padding: 6px 10px; }
@media (max-width: 760px) { .hero-row { grid-template-columns: 1fr; } .hero-tags { justify-content: flex-start; } }

.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 760px) { .hero-figure img { aspect-ratio: 4 / 3; } }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; font-stretch: 112%; }
.link-arrow { font-family: var(--f-mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent); }
.band { background: var(--surface); }

.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.015em; line-height: .9; margin-top: 12px; }

/* ---------- Project grid ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }
.project-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .project-grid--featured { grid-template-columns: 1fr; } }
.detail-gallery.detail-gallery--one { grid-template-columns: 1fr; }
.detail-gallery--one img { aspect-ratio: 2 / 1; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.card-img { overflow: hidden; background: var(--surface); }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.card:hover .card-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card-img img { transition: none; } }
.card-meta { display: flex; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 1.375rem; font-weight: 700; font-stretch: 110%; }
.card:hover h3 { color: var(--accent); }
.badge-example { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { font: 500 .8125rem var(--f-mono); text-transform: uppercase; letter-spacing: .04em; background: none; color: var(--ink); border: 1px solid var(--ink); padding: 9px 14px; cursor: pointer; border-radius: 2px; }
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.project-grid--all { padding-bottom: clamp(56px, 8vw, 104px); }

/* ---------- Services / steps ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.service h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 110%; }
.service p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { padding: 20px 24px 8px 0; border-left: 1px solid var(--line); padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 110%; }
.steps p { color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-block: 20px; }
}

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; border-top: 1px solid var(--ink); }
.cta-title { font-size: clamp(2rem, 5.4vw, 4.25rem); font-weight: 800; font-stretch: 115%; max-width: 18ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 .875rem var(--f-mono); text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  padding: 16px 24px; border-radius: 2px; cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: none; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Project detail ---------- */
.detail { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 32px; }
.detail-back { align-self: flex-start; }
.detail-head { display: flex; flex-direction: column; gap: 12px; }
.detail-title { font-size: clamp(2.5rem, 7.5vw, 6rem); font-weight: 900; font-stretch: 120%; letter-spacing: -.01em; line-height: .92; }
.detail-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
@media (max-width: 860px) { .detail-body { grid-template-columns: 1fr; } }
.sheet { border: 1px solid var(--ink); align-self: start; }
.sheet div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.sheet div:last-child { border-bottom: 0; }
.sheet dt, .sheet dd { margin: 0; padding: 10px 14px; font-family: var(--f-mono); font-size: .875rem; }
.sheet dt { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: var(--s-1); border-right: 1px solid var(--line); }
.sheet dd { font-variant-numeric: tabular-nums; }
.detail-text { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; font-size: 1.125rem; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) { .detail-gallery { grid-template-columns: 1fr; } }
.detail-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 18px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; padding-bottom: clamp(56px, 8vw, 104px); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-intro { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.lead { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; }
.about-card { display: flex; flex-direction: column; gap: 8px; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); display: grid; place-items: center; margin-bottom: 10px; border: 1px dashed var(--accent); }
.portrait span { font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; color: var(--muted); }
.about-name { font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: 1.5rem; }
.about-meta { color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.figures div { border-top: 1px solid var(--ink); padding-top: 12px; }
.figures dt { font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.figures dd { margin: 6px 0 0; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .figures { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; padding-bottom: clamp(56px, 8vw, 104px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; }
.info-block { border-top: 1px solid var(--ink); padding-block: 16px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.info-value { font-family: var(--f-display); font-weight: 700; font-stretch: 105%; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.2; user-select: all; }
.info-value a { text-decoration: none; }
.info-value a:hover { color: var(--accent); }
.info-email { overflow-wrap: anywhere; font-size: clamp(1.05rem, 2.1vw, 1.4rem); }
.copy { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .05em; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; border-bottom: 1px solid currentColor; }

.contact-form { background: var(--surface); padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; align-self: start; }
.form-intro { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-bottom: 1px solid var(--ink); border-radius: 0; padding: 12px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.form-error { color: #9b2c1c; font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); }
.footer-inner { padding-block: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer .muted { color: #a9aaa3; }
.footer-brand { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: .875rem; }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-family: var(--f-mono); font-size: var(--s-1); }

.portrait--mark { background: var(--accent); border: 0; color: var(--on-accent); }
.portrait--mark svg { width: 34%; height: auto; }
.info-address { font-size: clamp(1.05rem, 2.1vw, 1.35rem); user-select: text; }
