:root {
  --bg: #f3f0ea;
  --bg-2: #ebe6dd;
  --paper: #fbfaf7;
  --ink: #192836;
  --ink-2: #515b65;
  --line: #ddd6ca;
  --accent: #1f3c88;
  --dot: #10a678;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; }

/* Bilingual: show only the active language. */
html[data-language="fr"] [lang="en"] { display: none !important; }
html[data-language="en"] [lang="fr"] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.draft-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: .04em; text-align: center;
  padding: 6px 16px;
}

/* Header */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
header.scrolled { background: rgba(251, 250, 247, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.brand .mark { height: 44px; width: auto; }
.brand .word { font: 400 19px 'Jost', var(--sans); letter-spacing: .38em; margin-right: -.38em; }
.links { display: flex; gap: 32px; }
.links a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; font: 500 12px var(--sans); color: var(--ink-2); padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px var(--sans); text-decoration: none; letter-spacing: .01em;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn.lg { padding: 15px 28px; font-size: 15px; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #0e1a27; transform: translateY(-1px); }
.btn.ghost { border-color: rgba(43, 41, 37, .25); background: rgba(251, 250, 247, .5); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.ai { gap: 8px; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px rgba(16, 166, 120, .2); }
.menu-ai { display: none; }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(251, 250, 247, .7); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mbar { display: none; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 580px; overflow: hidden; background: linear-gradient(180deg, #f7f4ee 0%, #ece5d9 100%); }
/* A real delivered project as the hero: right half on wide screens, full bleed on phones and tablets. */
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: settle 7s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 47%, rgba(243, 240, 234, .6) 53%, rgba(243, 240, 234, 0) 66%), linear-gradient(0deg, rgba(243, 240, 234, .6) 0%, rgba(243, 240, 234, 0) 22%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.eyebrow::before { content: ''; flex: none; width: 42px; height: 6px; background: linear-gradient(var(--accent), var(--accent)) left center / 35px 1px no-repeat, radial-gradient(circle, var(--dot) 2.6px, transparent 3.2px) right center / 6px 6px no-repeat; }
.hero h1 { font-size: clamp(44px, 6.2vw, 88px); max-width: 14ch; }
.hero h1 em { color: var(--ink-2); font-weight: 400; }
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 34ch; margin: 24px 0 36px; font-weight: 300; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-copy > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 48px; z-index: 2; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(43, 41, 37, .35); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--ink); border-radius: 2px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section.tint { background: var(--paper); }
.head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.head h2, .contact h2 { font-size: clamp(36px, 5vw, 62px); }
.sub { color: var(--ink-2); margin: 16px 0 0; }

.trades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.trade { background: var(--bg); padding: 26px 24px 28px; text-decoration: none; color: inherit; }
.trade .num { font: 400 12px var(--sans); color: var(--accent); letter-spacing: .1em; }
.trade h3 { font-size: 24px; margin: 14px 0 8px; }
.trade p { color: var(--ink-2); margin: 0; font-size: 14px; line-height: 1.55; }
.trade.key { background: var(--ink); color: var(--paper); }
.trade.key .num { color: var(--dot); }
.trade.key p { color: rgba(251, 250, 247, .75); }
.trade.key:hover { background: #0e1a27; }

.subhead { font-size: clamp(26px, 2.6vw, 34px); margin: 88px 0 24px; }
.head + .subhead { margin-top: 0; }
.steps-photo { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.step { position: relative; margin: 0; height: clamp(320px, 34vw, 460px); border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; color: #fff; font-size: 14px; background: linear-gradient(0deg, rgba(20, 18, 15, .65), rgba(20, 18, 15, 0)); }
.step .n { display: block; font-size: 12px; letter-spacing: .14em; opacity: .8; margin-bottom: 2px; }
.ba-row { margin-top: 88px; display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ba-text h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.ba-text p { color: var(--ink-2); margin: 0; }
.ba { position: relative; aspect-ratio: 4 / 5; width: 100%; overflow: hidden; border-radius: 4px; background: var(--bg-2); user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none; }
.ba-handle::after { content: '\2194'; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(251, 250, 247, .9); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba-tag.l { left: 16px; } .ba-tag.r { right: 16px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 16px; }
.shot { position: relative; margin: 0; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.shot.tall { grid-row: span 2; }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 13px; color: #fff; background: linear-gradient(0deg, rgba(20, 18, 15, .6), rgba(20, 18, 15, 0)); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 22px; }
.steps li::before { content: '0' counter(s); display: block; font: 400 13px var(--sans); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.coords { list-style: none; padding: 0; margin: 36px 0 0; }
.coords a { text-decoration: none; }
.coords .mails { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.coords li { display: flex; text-align: right; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.coords .k { color: var(--ink-2); font-size: 14px; }
.todo { color: #b1683f; font-size: 14px; }

.quote { display: grid; gap: 18px; }
.quote label { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.quote input:not([type="checkbox"]), .quote textarea {
  font: 400 16px var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; width: 100%;
  transition: border-color .2s, background .2s;
}
.quote input:focus, .quote textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.quote .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.quote .consent input { margin-top: 3px; accent-color: var(--ink); }
.quote .btn { justify-self: start; }
.quote .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote button[disabled] { opacity: .6; cursor: wait; }
.form-note { margin: 0; font-size: 14px; color: var(--accent); min-height: 1.4em; }

footer { border-top: 1px solid var(--line); padding: 28px 0 56px; font-size: 13px; color: var(--ink-2); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.credit { color: var(--ink); font-weight: 500; }

/* Legal page */
.legal { padding: 140px 0 80px; max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 32px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p { color: var(--ink-2); }
header.light { background: rgba(251, 250, 247, .9); box-shadow: 0 1px 0 var(--line); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-cta, .btn.ai { display: none; }
  .links .menu-ai { display: block; color: var(--accent); }
  .links { display: none; position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: rgba(251, 250, 247, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 8px 16px 20px; box-shadow: 0 1px 0 var(--line); }
  .links.open { display: flex; }
  .links a { font: 400 26px var(--serif); color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 26px; z-index: 55; padding: 10px 16px; background: rgba(251, 250, 247, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; padding: 14px 12px; font-size: 15px; }
  .mbar .btn.ghost { flex: 0 0 34%; background: transparent; }
  footer { padding-bottom: 120px; }
  .trades { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .ba-row { grid-template-columns: 1fr; }
  .steps-photo { grid-template-columns: 1fr 1fr; }
  .step:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav { height: 62px; }
  .links { top: 62px; }
  .trades { grid-template-columns: 1fr 1fr; }
  .trade { padding: 20px 16px 22px; }
  .trade h3 { font-size: 20px; margin: 10px 0 6px; }
  .trade p { font-size: 13px; }
  .brand .mark { height: 36px; }
  .brand .word { font-size: 17px; letter-spacing: .3em; margin-right: -.3em; }
  .hero-photo { width: 100%; }
  .hero-photo img { object-position: 50% 30%; }
  .hero-veil { background: linear-gradient(0deg, rgba(243, 240, 234, .97) 0%, rgba(243, 240, 234, .88) 42%, rgba(243, 240, 234, .2) 68%, rgba(243, 240, 234, .35) 100%); }
  .draft-bar { font-size: 11px; padding: 5px 12px; }
  .hero-copy { justify-content: flex-end; padding-bottom: 96px; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .eyebrow { letter-spacing: .12em; font-size: 11px; gap: 10px; }
  .eyebrow::before { width: 30px; background-size: 24px 1px, 6px 6px; }
  .lede { margin: 18px 0 26px; }
  .cta .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .shot.wide { grid-column: span 2; grid-row: span 2; }
  .shot figcaption { font-size: 12px; padding: 32px 10px 10px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { animation: none; }
  .hero-copy > *, .js .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* Tablets in portrait: same bottom-anchored hero as phones, photo visible above the copy. */
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .hero-photo { width: 100%; }
  .hero-photo img { object-position: 50% 30%; }
  .hero-veil { background: linear-gradient(0deg, rgba(243, 240, 234, .97) 0%, rgba(243, 240, 234, .86) 40%, rgba(243, 240, 234, .15) 66%, rgba(243, 240, 234, .3) 100%); }
  .hero-copy { justify-content: flex-end; padding-bottom: 120px; }
  .hero h1 { font-size: clamp(56px, 8.6vw, 84px); max-width: 15ch; }
  .lede { max-width: 44ch; }
  .scroll-cue { display: none; }
  .trade { padding: 24px 22px 26px; }
}
