/* =========================================================
   Van Halderen — Bespoke Renovation HTML Template
   Version 1.0
   ---------------------------------------------------------
   1.  Fonts & design tokens
   2.  Base
   3.  Layout helpers & type
   4.  Buttons & links
   5.  Header & menu
   6.  Hero & page heroes
   7.  Home sections
   8.  Projects & project page
   9.  Process, about & journal
   10. Contact & forms
   11. Call to action & footer
   12. Motion
   13. Responsive
   ========================================================= */

/* 1. Fonts & design tokens
   Change the look of the whole template here. */
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --color-paper: #efebe5;      /* page background */
  --color-stone: #e4ded5;      /* alternate bands */
  --color-dark: #1c1b19;       /* dark panels, buttons */
  --color-dark-2: #252320;     /* footer */
  --color-ink: #1c1b19;        /* headings */
  --color-text: #46423c;       /* body text */
  --color-muted: #6b655c;      /* secondary text */
  --color-light: #f2eee8;      /* text on dark */
  --color-light-muted: #b7b0a5;
  --line: rgba(28, 27, 25, .14);
  --line-strong: rgba(28, 27, 25, .32);
  --line-light: rgba(242, 238, 232, .2);

  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --section: clamp(72px, 8.5vw, 120px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font: 400 .98rem/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--color-ink); margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--color-dark); color: var(--color-light); text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--color-muted); }

/* 3. Layout helpers & type */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.title { font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.22; letter-spacing: -.01em; }
.title--lg { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.2; }
.label { font: 600 .66rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1.2rem; }
.label--light { color: var(--color-light-muted); }

/* 4. Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 46px; padding: 12px 22px;
  background: transparent; color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: 600 .66rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow-icon { transition: transform .35s var(--ease); }
.btn:hover .arrow-icon { transform: translateX(4px); }
.btn--dark { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-light); }
.btn--dark:hover { background: #34312c; border-color: #34312c; }
.btn--light { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--outline-light { border-color: rgba(242, 238, 232, .55); color: var(--color-light); }
.btn--outline-light:hover { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }
.btn--block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

.text-link, .more-link {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 .66rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none;
}
.text-link .arrow-icon, .more-link .arrow-icon { transition: transform .35s var(--ease); }
.text-link:hover .arrow-icon, .more-link:hover .arrow-icon { transform: translateX(6px); }
.text-link--light { color: var(--color-light); }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem; font: 600 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-light-muted); text-decoration: none; }
.back-link:hover { color: var(--color-light); }

/* 5. Header & menu (sits on the dark opening of every page) */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; color: var(--color-light); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-scrolled { background: rgba(28, 27, 25, .97); box-shadow: 0 1px 0 var(--line-light); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .header-inner { height: 70px; }
.logo { display: grid; grid-template-columns: auto; justify-items: center; color: inherit; text-decoration: none; line-height: 1; }
.logo .monogram { margin-bottom: 7px; }
.logo__name { font: 400 1.05rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; margin-right: -.16em; white-space: nowrap; }
.logo__tag { margin-top: 5px; font: 600 .5rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-right: -.32em; white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(20px, 2.4vw, 34px); }
.main-nav a { position: relative; display: inline-block; padding: 8px 0; font: 600 .64rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: .18em; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { border-color: rgba(242, 238, 232, .25); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 -10px 0 auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.menu-toggle svg line { transition: transform .35s var(--ease); }
.menu-toggle:hover svg line:nth-child(2) { transform: translateX(-5px); }

.menu-panel { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.menu-panel.is-open { visibility: visible; pointer-events: auto; }
.menu-panel__inner {
  position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 32px;
  padding: 14px var(--gutter) 36px; background: var(--color-dark); color: var(--color-light);
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu-panel.is-open .menu-panel__inner { opacity: 1; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-close { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-right: -12px; background: none; border: 0; color: inherit; cursor: pointer; transition: transform .35s var(--ease); }
.menu-close:hover { transform: rotate(90deg); }
.menu-panel nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-light); font: 600 .78rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: padding-left .3s var(--ease); }
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { padding-left: 8px; }
.menu-panel .btn { align-self: flex-start; }
.menu-panel__meta { margin-top: auto; display: grid; gap: 16px; color: var(--color-light-muted); }
.menu-panel__meta a { text-decoration: none; color: var(--color-light); }
body.is-locked { overflow: hidden; }

.socials { display: flex; gap: 4px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; color: inherit; transition: transform .3s var(--ease); }
.socials a:hover { transform: translateY(-2px); }

/* 6. Hero & page heroes */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(580px, 92vh, 860px); background: var(--color-dark); color: var(--color-light); overflow: hidden; }
.hero__media, .page-hero__media, .values-band__media, .quote-band__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img, .page-hero__media img, .values-band__media img, .quote-band__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 17, .55) 0, rgba(20, 19, 17, 0) 180px), linear-gradient(90deg, rgba(20, 19, 17, .72) 0%, rgba(20, 19, 17, .35) 50%, rgba(20, 19, 17, .1) 80%), linear-gradient(0deg, rgba(20, 19, 17, .35), rgba(20, 19, 17, 0) 40%); }
.hero__inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 48px) clamp(64px, 11vh, 120px); }
.hero__title { font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.015em; color: var(--color-light); }
.hero__sub { margin: 1.6rem 0 2.2rem; font: 600 .78rem/1.8 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light); }

.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 52vh, 480px); background: var(--color-dark); color: var(--color-light); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 17, .5) 0, rgba(20, 19, 17, 0) 160px), linear-gradient(90deg, rgba(20, 19, 17, .88) 0%, rgba(20, 19, 17, .6) 45%, rgba(20, 19, 17, .25) 100%); }
.page-hero__inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 40px) clamp(44px, 6vh, 64px); }
.page-hero__title { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.08; color: var(--color-light); max-width: 18ch; }
.page-hero__sub { margin: 1rem 0 .9rem; font: 600 .7rem/1.6 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.page-hero__text { max-width: 30rem; color: var(--color-light-muted); }
.page-hero--project { min-height: clamp(460px, 70vh, 680px); }
.page-hero--project::after { background: linear-gradient(0deg, rgba(20, 19, 17, .8) 0%, rgba(20, 19, 17, .2) 55%, rgba(20, 19, 17, .35) 100%); }
.page-hero--full { min-height: max(560px, 86vh); }

/* 7. Home sections */
.intro__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(40px, 8vw, 140px); align-items: end; }
.intro__inner .title { max-width: 20ch; }
.intro__side p { max-width: 22rem; margin-bottom: 2rem; font-size: .92rem; }

.featured { display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); background: var(--color-dark); color: var(--color-light-muted); }
.featured__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 64px) clamp(48px, 6vw, 88px) var(--edge); }
.featured__text .title { color: var(--color-light); margin-bottom: 1.2rem; }
.featured__text p { max-width: 22rem; margin-bottom: 2rem; }
.featured__media { position: relative; display: block; min-height: clamp(380px, 36vw, 520px); overflow: hidden; }
.featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.featured:hover .featured__media img { transform: scale(1.04); }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--color-paper); }
.strip__item { overflow: hidden; aspect-ratio: 4 / 4.5; background: var(--color-stone); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip__item:hover img { transform: scale(1.05); }

.values-band { position: relative; background: var(--color-dark); color: var(--color-light-muted); padding-block: clamp(56px, 6vw, 88px); }
.values-band::after, .quote-band::after { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 17, .72); }
.values { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; text-align: center; }
.value__icon { display: inline-block; color: var(--color-light); margin-bottom: 16px; }
.value h3 { font: 600 .68rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light); margin-bottom: .7rem; }
.value p { max-width: 15rem; margin-inline: auto; font-size: .9rem; }

.testimonial { text-align: center; }
.testimonial--stone { background: var(--color-stone); }
.quote { max-width: 48rem; margin-inline: auto; }
.quote blockquote { margin: 0; }
.quote p { font: 400 clamp(1.35rem, 2.2vw, 1.8rem)/1.45 var(--font-display); color: var(--color-ink); }
.quote figcaption { margin-top: 1.4rem; font: 600 .66rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }

/* 8. Projects & project page */
.filters { display: flex; gap: 6px 32px; margin-bottom: clamp(28px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; padding: 10px 0; background: none; border: 0; cursor: pointer; color: var(--color-muted);
  font: 600 .64rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  background-image: linear-gradient(var(--color-ink), var(--color-ink)); background-repeat: no-repeat; background-position: left bottom; background-size: 0 1px;
  transition: color .25s var(--ease), background-size .35s var(--ease);
}
.filter:hover, .filter[aria-pressed="true"] { color: var(--color-ink); background-size: 100% 1px; }
[data-category].is-hidden { display: none; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(18px, 2.2vw, 30px); }
.project__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-stone); margin-bottom: 16px; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__name { font-size: 1.3rem; line-height: 1.25; }
.project__name a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.project:hover .project__name a { background-size: 100% 1px; }
.project__meta { margin: .3rem 0 0; font-size: .85rem; color: var(--color-muted); }

.case { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.facts { border-top: 1px solid var(--line); position: sticky; top: 100px; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.facts dd { margin-top: 4px; font: 400 1.15rem/1.3 var(--font-display); color: var(--color-ink); }
.case__text { max-width: 40rem; }
.case__text .title { margin-bottom: 1.4rem; }
.case__text h3 { font-size: 1.3rem; margin: 2rem 0 .7rem; }
.case__text p { font-size: 1.02rem; line-height: 1.85; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shot { padding: 0; border: 0; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--color-stone); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot:hover img { transform: scale(1.05); }

.next__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--color-dark); color: var(--color-light); text-decoration: none; }
.next__media { position: relative; overflow: hidden; min-height: clamp(260px, 26vw, 380px); background: #2b2925; }
.next__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1.1s var(--ease), opacity .4s var(--ease); }
.next__link:hover .next__media img { transform: scale(1.05); opacity: 1; }
.next__text { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--edge) 48px clamp(32px, 5vw, 80px); }
.next__title { font: 400 clamp(1.9rem, 3.4vw, 2.9rem)/1.1 var(--font-display); transition: transform .4s var(--ease); }
.next__link:hover .next__title { transform: translateX(8px); }
.next__place { margin-top: .6rem; color: var(--color-light-muted); }

.lightbox { width: min(1100px, 92vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 19, 17, .96); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__caption { margin-top: 14px; text-align: center; font-size: .85rem; color: var(--color-light-muted); }
.lightbox__arrow { position: absolute; bottom: -12px; width: 48px; height: 40px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--color-light); cursor: pointer; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__close { position: absolute; top: -54px; right: -6px; margin: 0; color: var(--color-light); }

/* 9. Process, about & journal */
.steps { border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step summary { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.step summary::-webkit-details-marker { display: none; }
.step__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-stone); }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.step summary:hover .step__media img { transform: scale(1.06); }
.step__head { display: grid; gap: 4px; }
.step__title { font: 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 var(--font-display); color: var(--color-ink); }
.step__nr { color: var(--color-muted); }
.step__lead { font-size: .92rem; }
.step__toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--color-ink); transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.step summary:hover .step__toggle { background: var(--color-dark); color: var(--color-light); }
.step[open] .step__toggle { transform: rotate(90deg); }
.step__more { max-width: 38rem; margin: 0 0 22px calc(180px + clamp(20px, 3vw, 48px)); }

.quote-band { position: relative; background: var(--color-dark); padding-block: clamp(64px, 8vw, 110px); text-align: center; }
.quote-band .wrap { position: relative; z-index: 1; }
.quote-band__text { max-width: 34ch; margin: 0 auto; font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.4 var(--font-display); color: var(--color-light); }

.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.mission__text .title { margin-bottom: 1.2rem; }
.mission__text > p { max-width: 28rem; }
.mission__media { overflow: hidden; aspect-ratio: 4 / 3.6; background: var(--color-stone); }
.mission__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; gap: 10px; margin: 1.6rem 0 2rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: var(--color-ink); }
.checklist svg { margin-top: 6px; }
.numbers-band { background: var(--color-stone); padding-block: clamp(44px, 5vw, 68px); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.numbers div { display: flex; flex-direction: column-reverse; gap: 6px; padding-left: 20px; border-left: 1px solid var(--line-strong); }
.numbers dd { font: 400 clamp(2rem, 3vw, 2.6rem)/1 var(--font-display); color: var(--color-ink); }
.numbers dt { font-size: .85rem; color: var(--color-muted); }

.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 64px) clamp(18px, 2.2vw, 30px); }
.story { display: flex; flex-direction: column; align-items: flex-start; }
.story__media { display: block; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-stone); margin-bottom: 18px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.story:hover .story__media img { transform: scale(1.05); }
.story__meta { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .5rem; }
.story__title { font-size: 1.3rem; line-height: 1.3; margin-bottom: .5rem; }
.story__title a { text-decoration: none; }
.story__title a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.story__text { font-size: .92rem; margin-bottom: 1.2rem; }

.post { max-width: 42rem; margin-inline: auto; }
.post > p { font-size: 1.05rem; line-height: 1.85; }
.post h2 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin: 2.4rem 0 .9rem; }
.post figure { margin: 2.6rem 0; }
.post figure img { background: var(--color-stone); }
.post figcaption { margin-top: 10px; font-size: .88rem; color: var(--color-muted); }
.pullquote { margin: 2.6rem 0; padding-left: 26px; border-left: 1px solid var(--color-ink); }
.pullquote p { font: 400 clamp(1.35rem, 2.2vw, 1.7rem)/1.4 var(--font-display); color: var(--color-ink); }
.post__credits { margin-top: 2.4rem; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem !important; color: var(--color-muted); }
.post__credits a { color: var(--color-ink); }

/* 10. Contact & forms */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__intro .title { margin-bottom: 1rem; }
.contact__intro > p { max-width: 24rem; }
.contact-list { display: grid; gap: 14px; margin-top: 2rem; }
.contact-item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; color: var(--color-ink); }
.contact-item__icon { padding-top: 2px; }
.contact-item a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact-item a:hover { background-size: 100% 1px; }
.contact__form { scroll-margin-top: 110px; }
.map { line-height: 0; }
.map-art { display: block; width: 100%; height: clamp(220px, 26vw, 340px); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: rgba(255, 255, 255, .45); color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: 400 .98rem/1.4 var(--font-body);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-ink); background: rgba(255, 255, 255, .75); }
.input::placeholder, .textarea::placeholder { color: #8d867c; }
.select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c1b19' stroke-width='1.3'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 0; font-size: .86rem; color: var(--color-muted); }
.form-note a { color: var(--color-ink); }
.form-status { display: none; margin: 0; padding: 14px 16px; border: 1px solid var(--color-ink); color: var(--color-ink); font-size: .95rem; }
.form-status.is-visible { display: block; }

/* 11. Call to action & footer */
.cta { position: relative; background: var(--color-dark) radial-gradient(120% 140% at 85% 0%, #2f2c27 0%, var(--color-dark) 60%); color: var(--color-light-muted); padding-block: clamp(44px, 5vw, 68px); }
.cta--light { background: var(--color-paper); color: var(--color-text); border-top: 1px solid var(--line); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 48px; }
.cta__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.25; color: var(--color-light); margin-bottom: .3rem; max-width: 22ch; }
.cta--light .cta__title { color: var(--color-ink); }
.cta p { margin: 0; font-size: .92rem; }

.site-footer { background: var(--color-dark-2); color: var(--color-light-muted); font-size: .88rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr .9fr 1.3fr; gap: 32px; padding-block: clamp(52px, 6vw, 80px); }
.footer-brand .logo { color: var(--color-light); justify-items: start; margin-bottom: 1.2rem; }
.footer-brand .logo__name, .footer-brand .logo__tag { margin-right: 0; }
.footer-brand p { max-width: 24ch; }
.footer-title { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light); margin-bottom: 1rem; }
.footer-list { display: grid; gap: 8px; }
.footer-list a { text-decoration: none; transition: color .25s var(--ease); }
.footer-list a:hover { color: var(--color-light); }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.footer-contact svg { margin-top: 5px; color: var(--color-light); }
.footer-bottom {
  display: flex; align-items: center; gap: 14px 26px; padding-block: 18px 24px;
  background: linear-gradient(var(--line-light), var(--line-light)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: .8rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--color-light); }
.footer-bottom .to-top { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); color: var(--color-light); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.footer-bottom .to-top:hover { border-color: var(--color-light); transform: translateY(-3px); }

/* 12. Motion */
.icon { display: block; overflow: visible; }
.icon .move { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* One calm entrance for the opening of each page */
  .hero__media img, .page-hero__media img { animation: settle 2.6s var(--ease) backwards; }
  .hero__inner > *, .page-hero__inner > * { animation: rise .9s var(--ease) backwards; }
  .hero__inner > :nth-child(2), .page-hero__inner > :nth-child(2) { animation-delay: .14s; }
  .hero__inner > :nth-child(3), .page-hero__inner > :nth-child(3) { animation-delay: .28s; }
  .page-hero__inner > :nth-child(n+4) { animation-delay: .4s; }

  /* Sections slide in softly (only when JavaScript runs) */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  /* The details of a step unfold */
  .step[open] .step__more { animation: rise .5s var(--ease); }

  /* Each icon moves in its own way on hover, once on phones when it scrolls into view */
  .value:hover .icon-person .move, .icon-person.is-played .move { animation: nod .8s var(--ease); }
  .value:hover .icon-tools .move, .icon-tools.is-played .move { animation: hammer .8s var(--ease); transform-origin: 0% 100%; }
  .value:hover .icon-shield .move, .icon-shield.is-played .move { animation: draw-check .7s var(--ease); }
  .value:hover .icon-gem .move, .icon-gem.is-played .move { animation: spin 1.2s var(--ease); }
  .contact-item:hover .icon-phone, .footer-contact li:hover .icon-phone, .icon-phone.is-played { animation: buzz .5s linear; }
  .contact-item:hover .icon-mail .move, .footer-contact li:hover .icon-mail .move, .icon-mail.is-played .move { animation: flap .7s var(--ease); transform-origin: 50% 0%; }
  .contact-item:hover .icon-pin .move, .footer-contact li:hover .icon-pin .move, .icon-pin.is-played .move { animation: drop .7s var(--ease); }
  .map:hover .map-pin { animation: drop .7s var(--ease); }
  .checklist li:hover .icon-check path { animation: draw .6s var(--ease); }
  .socials a:hover svg, .footer-social a:hover svg { animation: tilt .5s var(--ease); }
  .to-top:hover svg { animation: lift .7s var(--ease); }
}
@keyframes settle { from { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes nod { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-2.5px); } 70% { transform: translateY(1px); } }
@keyframes hammer { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-18deg); } 55% { transform: rotate(6deg); } }
@keyframes draw-check { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@keyframes buzz { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-2px) rotate(-6deg); } 40%, 80% { transform: translateX(2px) rotate(6deg); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-1); } }
@keyframes drop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-6px); } 65% { transform: translateY(1px); } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes tilt { 50% { transform: rotate(-10deg) scale(1.1); } }
@keyframes lift { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }
.icon-check path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.icon-pin .move { transform-origin: 50% 100%; }
.map-pin { transform-box: fill-box; transform-origin: 50% 100%; }

/* 13. Responsive */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}

@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .intro__inner, .featured, .mission, .contact, .case, .next__link { grid-template-columns: 1fr; }
  .featured__text { padding: 56px var(--gutter); }
  .featured__media { min-height: 0; aspect-ratio: 4 / 3; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid, .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next__text { padding: 40px var(--gutter); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .step summary { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .step__more { margin-left: calc(120px + clamp(20px, 3vw, 48px)); }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: .96rem; }
  /* Phone: full photo with the whole heading on the first screen */
  .hero { min-height: calc(100svh - 0px); }
  .hero::after { background: linear-gradient(0deg, rgba(20, 19, 17, .85) 0%, rgba(20, 19, 17, .45) 55%, rgba(20, 19, 17, .3) 100%); }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  .logo .monogram { width: 18px; height: 21px; margin-bottom: 5px; }
  .page-hero { min-height: 420px; }
  .project-grid, .stories, .form-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .step summary { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; }
  .step__lead { display: none; }
  .step__more { margin-left: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-main > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom p { flex-basis: 100%; }
  .lightbox__arrow { bottom: -56px; }
}

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