/* =========================================================
   Atelier Rive — Interior Architecture HTML Template
   Version 1.0
   ---------------------------------------------------------
   1.  Fonts & design tokens
   2.  Base
   3.  Layout helpers & type
   4.  Buttons & links
   5.  Header & full-screen menu
   6.  Contact window & forms
   7.  Home 1: slideshow and sections
   8.  Home 2: split opening and sections
   9.  Projects & project detail
   10. About, services & process
   11. Journal
   12. Contact page
   13. Call to action & footer
   14. Motion
   15. Responsive
   ========================================================= */

/* 1. Fonts & design tokens
   Change the look of the whole template here. */
@font-face { font-family: "Spectral"; src: url("../fonts/spectral.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --color-paper: #ece9e4;      /* page background */
  --color-stone: #e2ded7;      /* alternate bands */
  --color-dark: #1d1f21;       /* charcoal: dark bands, footer */
  --color-dark-2: #26292c;     /* cards on dark */
  --color-ink: #1d1e20;        /* headings */
  --color-text: #4d4b47;       /* body text */
  --color-muted: #66625c;      /* labels, secondary text */
  --color-light: #eeebe6;      /* text on dark */
  --color-light-muted: #aeaaa3;
  --color-label-dark: #9a968f; /* labels on dark */
  --color-error: #a23a32;
  --line: rgba(29, 30, 32, .14);
  --line-strong: rgba(29, 30, 32, .3);
  --line-light: rgba(238, 235, 230, .16);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "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, 128px);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slide-time: 5s;
}

/* 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; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
: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; }

/* 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; }
.section--stone { background: var(--color-stone); }
.section--dark { background: var(--color-dark); color: var(--color-light-muted); }
.section--dark .title { color: var(--color-light); }
.section--dark .label { color: var(--color-label-dark); }
.title { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.15; letter-spacing: -.005em; }
.title--page { font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 1.08; }
.small-title { font: 600 .68rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-ink); margin: 2rem 0 .9rem; }
.label { font: 600 .66rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1.2rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 3.6vw, 52px); }
.section-head .label { margin-bottom: .9rem; }
.rule { display: block; width: 34px; height: 1px; margin: 24px 0; background: currentColor; opacity: .6; }

/* 4. Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 50px; padding: 14px 26px;
  background: transparent; color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 600 .66rem/1.2 var(--font-body); letter-spacing: .18em; 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:active { transform: translateY(0) scale(.98); }
.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: #3a3e42; border-color: #3a3e42; }
.btn--dark:active { background: #000; border-color: #000; }
.btn--outline:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-light); }
.btn--light { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--ghost { border-color: rgba(238, 235, 230, .5); color: var(--color-light); }
.btn--ghost:hover { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: #d9d6d0; border-color: #d9d6d0; color: #8d8982; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 16px;
  font: 600 .66rem/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none; padding-block: 6px;
}
.text-link__line { display: block; width: 44px; height: 1px; background: currentColor; transition: width .45s var(--ease); }
.text-link:hover .text-link__line { width: 72px; }
.section--dark .text-link { color: var(--color-light); }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; font: 600 .66rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-ink); text-decoration: none; padding-block: 6px; }
.arrow-link .arrow-icon { transition: transform .35s var(--ease); }
.arrow-link:hover .arrow-icon { transform: translateX(6px); }
.section--dark .arrow-link { color: var(--color-light); }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.6rem; font: 600 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); text-decoration: none; }
.back-link:hover { color: var(--color-ink); }
.back-link .arrow-icon { transition: transform .35s var(--ease); }
.back-link:hover .arrow-icon { transform: translateX(-4px); }
.crumbs { font: 600 .64rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--color-ink); }
.crumbs span[aria-hidden] { margin: 0 8px; }

/* 5. Header & full-screen menu */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--color-paper); color: var(--color-ink); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.has-dark-hero .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; color: var(--color-light); }
.has-dark-hero .site-header.is-scrolled { background: rgba(29, 31, 33, .97); box-shadow: 0 1px 0 var(--line-light); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; height: var(--header-h); }
.logo { justify-self: start; font: 400 1.3rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: inherit; text-decoration: none; white-space: nowrap; }
.main-nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.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: 50%; right: 50%; bottom: 2px; height: 1px; background: currentColor; transition: left .35s var(--ease), right .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { left: 0; right: .18em; }
.menu-toggle { justify-self: end; display: inline-flex; align-items: center; gap: 12px; height: 46px; margin-right: -8px; padding: 0 8px; background: none; border: 0; color: inherit; cursor: pointer; font: 600 .64rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.burger line { transition: transform .35s var(--ease); }
.menu-toggle:hover .burger line:nth-child(2) { transform: translateX(-6px); }

.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__inner {
  position: absolute; inset: 0; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); grid-template-rows: auto 1fr;
  background: var(--color-paper); color: var(--color-text);
  opacity: 0; transition: opacity .45s var(--ease);
}
.menu.is-open .menu__inner { opacity: 1; }
.menu__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); color: var(--color-ink); }
.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__main { padding: clamp(36px, 7vh, 80px) clamp(32px, 5vw, 88px) 48px var(--gutter); }
.menu__nav ul { display: grid; gap: 2px; }
.menu__nav a { display: inline-flex; align-items: baseline; gap: 22px; padding: 2px 0; font: 400 clamp(2rem, 3.4vw, 2.9rem)/1.2 var(--font-display); color: var(--color-ink); text-decoration: none; transition: transform .35s var(--ease); }
.menu__nav a:hover { transform: translateX(8px); }
.menu__nav a[aria-current="page"] > span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.menu__num { min-width: 2.4em; font-size: 1.1rem; color: var(--color-muted); }
.menu__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: clamp(28px, 4vh, 40px) 0 0; padding-top: clamp(28px, 4vh, 40px); border-top: 1px solid var(--line); max-width: 560px; }
.menu__contact { margin-top: clamp(44px, 8vh, 96px); max-width: 460px; }
.menu__title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; margin-bottom: .8rem; }
.menu__text { font-size: .92rem; margin-bottom: 1.6rem; }
.menu__contact .social { margin-top: 28px; }
.menu__copy { display: none; }
.menu__side { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: minmax(260px, 1fr) auto; }
.menu__media { position: relative; overflow: hidden; background: var(--color-stone); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__approach { padding: clamp(32px, 4vw, 56px); background: var(--color-dark); color: var(--color-light-muted); font-size: .92rem; }
.menu__approach .label { color: var(--color-label-dark); }
.menu__approach-title { font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.2; color: var(--color-light); }
.menu__approach .text-link { color: var(--color-light); margin-top: 1.2rem; }
body.is-locked { overflow: hidden; }

.social { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.social a { display: inline-flex; align-items: center; gap: 9px; font: 600 .64rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--color-ink); padding-block: 4px; }
.social a:hover span { text-decoration: underline; text-underline-offset: .3em; }
.social--chips { gap: 10px; }
.social--chips a { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: background-color .3s var(--ease), color .3s var(--ease); }
.social--chips a:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-light); }
.social--chips a:hover span { text-decoration: none; }

.contact-list { display: grid; gap: 18px; }
.contact-item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; color: var(--color-ink); }
.contact-item__icon { color: var(--color-muted); padding-top: 3px; }
.contact-item__label { display: block; margin-bottom: 2px; font: 600 .62rem/1.5 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.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-list--small { gap: 12px; font-size: .92rem; }
.contact-list--small .contact-item__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-list--small .contact-item__icon { padding-top: 1px; }

/* 6. Contact window & forms */
.modal { width: min(540px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--color-paper); color: var(--color-text); overflow: auto; }
.modal::backdrop { background: rgba(20, 21, 22, .62); }
.modal[open] { animation: rise .45s var(--ease); }
.modal__inner { position: relative; padding: clamp(28px, 4vw, 48px); }
.modal__close { position: absolute; top: 12px; right: 18px; margin: 0; color: var(--color-ink); }
.modal__title { font-size: clamp(1.8rem, 3vw, 2.2rem); text-align: center; margin-bottom: .6rem; }
.modal__text { max-width: 26rem; margin: 0 auto 1.8rem; text-align: center; font-size: .92rem; color: var(--color-muted); }
.modal .contact-list { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

.form { display: grid; gap: 16px; scroll-margin-top: 110px; }
.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: 50px; padding: 12px 14px;
  background: rgba(255, 255, 255, .4); color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .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); box-shadow: inset 0 0 0 1px var(--color-ink); background: rgba(255, 255, 255, .7); }
.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='%231d1e20' 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: 128px; resize: vertical; }
.field.is-invalid label { color: var(--color-error); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error); }
.field-error { margin: 0; font-size: .82rem; color: var(--color-error); }
.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); border-radius: var(--radius); color: var(--color-ink); font-size: .95rem; }
.form-status.is-visible { display: block; }

/* 7. Home 1: slideshow and sections */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(600px, 94vh, 900px); background: var(--color-dark); color: var(--color-light); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 21, 22, .38) 0%, rgba(20, 21, 22, 0) 24%), linear-gradient(0deg, rgba(20, 21, 22, .45) 0%, rgba(20, 21, 22, 0) 26%), linear-gradient(90deg, rgba(20, 21, 22, .62) 0%, rgba(20, 21, 22, .3) 42%, rgba(20, 21, 22, 0) 68%); }
.hero__inner { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 48px) 120px; }
.hero .label { color: rgba(238, 235, 230, .88); }
.hero__title { max-width: 8.6em; font-size: clamp(2.8rem, 5.2vw, 4.7rem); line-height: 1.05; letter-spacing: -.01em; color: var(--color-light); }
.hero__text { max-width: 28rem; margin: 1.4rem 0 0; }
.hero .text-link { margin-top: 2.2rem; color: var(--color-light); }
.hero__controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 32px; display: flex; justify-content: flex-end; }
.slide-nav { display: flex; align-items: center; gap: 14px; font: 600 .7rem/1 var(--font-body); letter-spacing: .14em; }
.slide-nav__bar { position: relative; width: 72px; height: 1px; overflow: hidden; background: rgba(238, 235, 230, .35); }
.slide-nav__progress { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
.is-playing .slide-nav__progress { animation: progress var(--slide-time) linear forwards; }
.slide-nav__btn { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; background: none; border: 1px solid rgba(238, 235, 230, .4); border-radius: 50%; color: inherit; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.slide-nav__btn:hover { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }
.slide-nav__btn:first-of-type { margin-left: 8px; }
.slide-nav__pause .icon-play, .slide-nav__pause[aria-pressed="true"] .icon-pause { display: none; }
.slide-nav__pause[aria-pressed="true"] .icon-play { display: block; }
.hero--404 { min-height: 100svh; }

.intro__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; max-width: calc(1080px + 2 * var(--gutter)); }
.intro__text p { max-width: 26rem; margin-bottom: 1.6rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 28px); }
.project-card a { display: block; text-decoration: none; }
.project-card__media { display: block; overflow: hidden; aspect-ratio: 6 / 5; background: var(--color-stone); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card a:hover img { transform: scale(1.05); }
.project-card__name { margin: 18px 0 4px; font: 600 .72rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-ink); }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: .84rem; color: var(--color-muted); }
.project-card__meta span + span::before, .post-meta span + span::before { content: ""; display: inline-block; width: 1px; height: .85em; margin: 0 12px; vertical-align: -1px; background: currentColor; opacity: .45; }
.section--dark .project-card__media { background: var(--color-dark-2); }
.section--dark .project-card__name { color: var(--color-light); }
.section--dark .project-card__meta { color: var(--color-light-muted); }
.carousel__nav { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--color-paper); }
.split__media { position: relative; min-height: clamp(420px, 44vw, 660px); overflow: hidden; background: var(--color-stone); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text { align-self: center; padding: clamp(56px, 7vw, 112px) var(--edge) clamp(56px, 7vw, 112px) clamp(32px, 6vw, 104px); }
.split__text .title { margin-bottom: 1.4rem; max-width: 18ch; }
.split__text p:not(.label) { max-width: 27rem; margin-bottom: 2rem; }
.split--reverse .split__media { order: 2; }
.split--reverse .split__text { padding: clamp(56px, 7vw, 112px) clamp(32px, 6vw, 104px) clamp(56px, 7vw, 112px) var(--edge); }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature__text .title { margin-bottom: 1.4rem; }
.feature__text p:not(.label) { max-width: 26rem; margin-bottom: 2rem; }
.feature__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-stone); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.contact-band { background: var(--color-stone); padding-block: clamp(64px, 7vw, 104px); }
.contact-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.contact-band__text .title { margin-bottom: 1rem; }
.contact-band__text p:not(.label) { max-width: 26rem; margin-bottom: 2rem; }

/* 8. Home 2: split opening and sections */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, calc(100vh - var(--header-h)), 820px); }
.hero-split__text { align-self: center; padding: 56px clamp(28px, 4vw, 64px) 56px var(--edge); }
.hero-split__title { max-width: 8.6em; font-size: clamp(2.6rem, 4.4vw, 4.2rem); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1.4rem; }
.hero-split__text > p:not(.label) { max-width: 24rem; margin-bottom: 2.2rem; }
.hero-split__media { position: relative; overflow: hidden; background: var(--color-stone); }
.hero-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.showcase { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.showcase__text .title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin-bottom: 1.4rem; }
.showcase__text p:not(.label) { max-width: 22rem; margin-bottom: 1.8rem; }
.showcase__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line-light); background: var(--color-dark-2); }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.showcase__media:hover img { transform: scale(1.04); }

.steps-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.steps-head > p { max-width: 30rem; }
.steps { counter-reset: none; }
.steps--three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.step__num { display: block; font: 400 1.05rem/1 var(--font-display); color: var(--color-muted); }
.step__title { font-size: clamp(1.3rem, 1.8vw, 1.5rem); line-height: 1.25; margin: 14px 0 8px; }
.steps--three .step { padding-top: 22px; border-top: 1px solid var(--line); }
.step p { font-size: .94rem; max-width: 22rem; }
.steps--list { margin-top: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.steps--list .step { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps--list .step__num { padding-top: 6px; }
.steps--list .step__title { margin-top: 0; }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.strip figure { overflow: hidden; height: clamp(260px, 28vw, 440px); background: var(--color-stone); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip figure:hover img { transform: scale(1.04); }

.journal-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 96px); }
.journal-band__intro .title { margin-bottom: 1.6rem; }
.journal-band__posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.mini-post { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.mini-post__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-dark-2); }
.mini-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mini-post:hover .mini-post__media img { transform: scale(1.05); }
.mini-post__title { font-size: 1.3rem; line-height: 1.25; margin-bottom: .6rem; color: var(--color-light); }
.mini-post__title a, .post-card__title a { text-decoration: none; }
.mini-post__title a:hover, .post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.mini-post__body p:not(.post-meta) { font-size: .9rem; margin-bottom: .8rem; }
.section--dark .post-meta { color: var(--color-label-dark); }

/* 9. Projects & project detail */
.page-head { padding-top: clamp(40px, 5vw, 80px); }
.page-head__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.page-head__text .title--page { margin-bottom: 1.4rem; }
.page-head__text p:not(.label):not(.crumbs) { max-width: 28rem; }
.page-head__text .text-link { margin-top: 1rem; }
.page-head__media { overflow: hidden; aspect-ratio: 16 / 11; background: var(--color-stone); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media--tall { aspect-ratio: 4 / 3.4; }

.filters { display: flex; flex-wrap: wrap; gap: 4px 32px; border-bottom: 1px solid var(--line); }
.filter { position: relative; padding: 16px 0; background: none; border: 0; color: var(--color-muted); cursor: pointer; font: 600 .68rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; transition: color .25s var(--ease); }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--color-ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.filter:hover { color: var(--color-ink); }
.filter[aria-pressed="true"] { color: var(--color-ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter__count { margin-left: 3px; font-size: .58rem; vertical-align: super; letter-spacing: .06em; }
.filter-status { margin: 14px 0 36px; font-size: .86rem; color: var(--color-muted); }

.facts { background: var(--color-dark); color: var(--color-light); padding-block: clamp(36px, 4vw, 52px); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.facts dt { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-label-dark); margin-bottom: 8px; }
.facts dd { font-size: .95rem; line-height: 1.6; }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.story__text p { max-width: 36rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: 600 .62rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-ink); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { display: block; padding: 0; border: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-stone); cursor: zoom-in; }
.shot:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.lightbox { width: min(1120px, 92vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 21, 22, .96); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox__arrow { position: absolute; bottom: -54px; width: 48px; height: 42px; 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); }

.review { max-width: 46rem; margin-inline: auto; text-align: center; }
.review blockquote { margin: 0; }
.review blockquote p { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.35 var(--font-display); color: var(--color-ink); }
.review figcaption { margin-top: 1.4rem; font: 600 .64rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }

.project-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding-block: clamp(36px, 4vw, 56px); }
.project-nav__link { display: inline-flex; align-items: center; gap: 18px; justify-self: start; font: 400 1.2rem/1.3 var(--font-display); color: var(--color-ink); text-decoration: none; }
.project-nav__link .label { display: block; margin-bottom: 4px; }
.project-nav__link--next { justify-self: end; text-align: right; }
.project-nav__link .arrow-icon { flex: none; transition: transform .35s var(--ease); }
.project-nav__link:hover .arrow-icon { transform: translateX(5px); }
.project-nav__link:hover .arrow-icon--left { transform: translateX(-5px); }

/* 10. About, services & process */
.founder__media { overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--color-stone); }
.founder__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.founder__card { display: grid; gap: 6px; padding: clamp(24px, 3vw, 36px); background: var(--color-dark); color: var(--color-light-muted); }
.founder__name { font: 400 1.5rem/1.2 var(--font-display); color: var(--color-light); }
.founder__card .label { margin: 0 0 6px; color: var(--color-label-dark); }
.founder__bio { font-size: .92rem; max-width: 30rem; }

.stats { background: var(--color-dark); color: var(--color-light); padding-block: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line-light); }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stats__list div { display: flex; flex-direction: column-reverse; gap: 10px; }
.stats dd { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); }
.stats dt { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-label-dark); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.principle { padding-top: 22px; border-top: 1px solid var(--line); }
.principle .step__title { margin-top: 0; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.service { padding: 32px 0 40px; border-top: 1px solid var(--line-light); }
.service__icon { display: inline-block; margin-bottom: 18px; color: var(--color-light); }
.service__title { font: 600 .74rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-light); margin-bottom: .7rem; }
.service p { font-size: .94rem; max-width: 22rem; }

.process { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.process__text .title { margin-bottom: 1.2rem; max-width: 18ch; }
.process__text > div > p:not(.label) { max-width: 28rem; }
.process__media { position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-stone); }
.process__media img { width: 100%; height: 100%; object-fit: cover; }

/* 11. Journal */
.page-intro { padding-bottom: clamp(36px, 4vw, 56px); }
.page-intro__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.page-intro__inner > p { max-width: 28rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px clamp(16px, 2vw, 28px); }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-stone); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding-top: 18px; }
.post-card__title { font-size: clamp(1.3rem, 1.8vw, 1.5rem); line-height: 1.25; margin-bottom: .6rem; }
.post-card__body p:not(.post-meta) { font-size: .94rem; margin-bottom: .8rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: .7rem !important; font: 600 .62rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }

.post-head { padding-bottom: clamp(32px, 4vw, 52px); }
.post-head__inner, .prose { max-width: calc(46rem + 2 * var(--gutter)); }
.post-head .title--page { margin-bottom: 1.2rem; }
.post-lead { font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.5 var(--font-display); color: var(--color-text); }
.post-hero { margin-bottom: clamp(40px, 5vw, 72px); }
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--color-stone); }
.prose { padding-bottom: var(--section); }
.prose p { font-size: 1.02rem; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.25; margin: 2.6rem 0 .9rem; }
.prose blockquote { margin: 2.6rem 0; padding-left: 26px; border-left: 1px solid var(--color-ink); }
.prose blockquote p { font: 400 clamp(1.4rem, 2.2vw, 1.75rem)/1.4 var(--font-display); color: var(--color-ink); }
.prose__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 2.6rem 0; }
.prose__pair figure { overflow: hidden; aspect-ratio: 1; background: var(--color-stone); }
.prose__pair img { width: 100%; height: 100%; object-fit: cover; }
.author { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.author__name { margin-bottom: .2rem !important; font: 400 1.25rem/1.3 var(--font-display); color: var(--color-ink); }
.author p:not(.author__name) { font-size: .9rem; color: var(--color-muted); }
.prose--legal { max-width: 44rem; padding: 0; margin-top: 2rem; }

/* 12. Contact page */
.contact__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__text .title--page { margin-bottom: 1.2rem; }
.contact__text > p:not(.label) { max-width: 24rem; margin-bottom: 2.2rem; }
.contact__hours { display: grid; grid-template-columns: 24px 1fr; gap: 14px; margin-top: 18px; color: var(--color-ink); }
.contact__follow { margin: 2.4rem 0 1rem; }
.contact__media { overflow: hidden; aspect-ratio: 2 / 3; background: var(--color-stone); }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__form .small-title { margin-top: 0; }

/* 13. Call to action & footer */
.cta { background: var(--color-stone); padding-block: clamp(56px, 6vw, 88px); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2; max-width: 22ch; margin-bottom: .6rem; }
.cta__inner p { margin: 0; max-width: 30rem; }

.site-footer { background: var(--color-dark); color: var(--color-light-muted); font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 2fr)); gap: 40px 32px; padding-block: clamp(56px, 6vw, 88px) clamp(40px, 4vw, 56px); }
.footer-brand .logo { color: var(--color-light); }
.footer-brand p { margin-top: 22px; line-height: 1.9; }
.footer-brand a, .footer-col a, .footer-bottom a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease), color .25s var(--ease); }
.footer-brand a:hover, .footer-col a:hover, .footer-bottom a:hover { background-size: 100% 1px; color: var(--color-light); }
.footer-col__title { margin-bottom: 16px; font: 600 .64rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-light); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font: 600 .64rem/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 30px; font: 600 .62rem/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-light); }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { display: flex; gap: 22px; }

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

@media (prefers-reduced-motion: no-preference) {
  /* One calm entrance for the opening of each page */
  .hero__slide.is-active img, .hero-split__media img, .page-head__media img, .founder__media img { animation: settle 2.6s var(--ease) backwards; }
  .hero__inner > *, .hero-split__text > *, .page-head__text > *, .page-intro .wrap > *, .post-head__inner > *, .contact__text > * { animation: rise .9s var(--ease) backwards; }
  .hero__inner > :nth-child(2), .hero-split__text > :nth-child(2), .page-head__text > :nth-child(2), .post-head__inner > :nth-child(2), .contact__text > :nth-child(2) { animation-delay: .12s; }
  .hero__inner > :nth-child(3), .hero-split__text > :nth-child(3), .page-head__text > :nth-child(3), .post-head__inner > :nth-child(3), .contact__text > :nth-child(3) { animation-delay: .24s; }
  .hero__inner > :nth-child(n+4), .hero-split__text > :nth-child(n+4), .page-head__text > :nth-child(n+4), .post-head__inner > :nth-child(n+4), .contact__text > :nth-child(n+4) { animation-delay: .34s; }
  .hero__controls { animation: rise .9s .5s var(--ease) backwards; }

  /* 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; }

  /* Each icon moves in its own way on hover, once on phones when it scrolls into view */
  .service:hover .icon-sofa .move, .icon-sofa.is-played .move { animation: plump .7s var(--ease); }
  .service:hover .icon-plan .draw-line, .icon-plan.is-played .draw-line { animation: draw .8s var(--ease); }
  .service:hover .icon-swatch .move-a, .icon-swatch.is-played .move-a { animation: fan-left .8s var(--ease); }
  .service:hover .icon-swatch .move-b, .icon-swatch.is-played .move-b { animation: fan-right .8s var(--ease); }
  .service:hover .icon-chair .move, .icon-chair.is-played .move { animation: rock .9s var(--ease); }
  .service:hover .icon-clipboard .draw-line, .icon-clipboard.is-played .draw-line { animation: draw .7s var(--ease); }
  .service:hover .icon-vase .move, .icon-vase.is-played .move { animation: sway 1s var(--ease); }
  .contact-item:hover .icon-mail .move, .icon-mail.is-played .move { animation: flap .7s var(--ease); transform-origin: 50% 0%; }
  .contact-item:hover .icon-phone, .icon-phone.is-played { animation: buzz .5s linear; }
  .contact-item:hover .icon-pin .move, .icon-pin.is-played .move { animation: drop .7s var(--ease); }
  .contact__hours:hover .icon-clock .move, .icon-clock.is-played .move { animation: tick 1s var(--ease); transform-origin: 50% 100%; }
  .social a:hover .icon-instagram .move, .social a:focus-visible .icon-instagram .move, .icon-instagram.is-played .move { animation: focus-lens .7s var(--ease); }
  .social a:hover .icon-linkedin .move, .social a:focus-visible .icon-linkedin .move, .icon-linkedin.is-played .move { animation: lift .6s var(--ease); }
  .social a:hover .icon-pinterest .move, .social a:focus-visible .icon-pinterest .move, .icon-pinterest.is-played .move { animation: pin-tilt .7s var(--ease); }
}
@keyframes settle { from { transform: scale(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes plump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(1.5px) scaleY(.85); } 70% { transform: translateY(-1px); } }
@keyframes draw { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
@keyframes fan-left { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes fan-right { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg); } }
@keyframes rock { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(4deg); } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 65% { transform: rotate(7deg); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-1); } }
@keyframes buzz { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-2px) rotate(-6deg); } 40%, 80% { transform: translateX(2px) rotate(6deg); } }
@keyframes drop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-6px); } 65% { transform: translateY(1px); } }
@keyframes tick { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes focus-lens { 0%, 100% { transform: scale(1); } 40% { transform: scale(.6); } 70% { transform: scale(1.12); } }
@keyframes lift { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3px); } }
@keyframes pin-tilt { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-14deg); } 70% { transform: rotate(6deg); } }
.draw-line { stroke-dasharray: 26; stroke-dashoffset: 0; }
.icon-pin .move { transform-origin: 50% 100%; }
.icon-chair .move { transform-origin: 0% 100%; }
.icon-vase .move { transform-origin: 50% 100%; }
.icon-swatch .move-a, .icon-swatch .move-b { transform-origin: 50% 100%; }

/* 15. Responsive */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .contact__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__media { display: none; }
}

@media (max-width: 900px) {
  /* Menu on tablets and phones: one dark column */
  .menu__inner { display: flex; flex-direction: column; background: var(--color-dark); color: var(--color-light-muted); }
  .menu__top { border-bottom-color: var(--line-light); color: var(--color-light); }
  .menu__side, .menu__projects, .menu__contact .label, .menu__title, .menu__text { display: none; }
  .menu__main { flex: 1; display: flex; flex-direction: column; padding: 28px var(--gutter) 32px; }
  .menu__nav a { font-size: clamp(1.9rem, 7.4vw, 2.5rem); color: var(--color-light); }
  .menu__num { display: none; }
  .menu__buttons { border-top-color: var(--line-light); }
  .menu .btn--outline { border-color: rgba(238, 235, 230, .45); color: var(--color-light); }
  .menu .btn--outline:hover { background: var(--color-light); color: var(--color-ink); }
  .menu__contact { margin-top: 32px; flex: 1; display: flex; flex-direction: column; }
  .menu .contact-item { color: var(--color-light); }
  .menu .contact-item__icon { color: var(--color-light-muted); }
  .menu .social a { color: var(--color-light); }
  .menu__copy { display: block; margin-top: auto; padding-top: 32px; font: 600 .62rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-label-dark); }

  .intro__inner, .split, .feature, .contact-band__inner, .showcase, .steps-head, .journal-band,
  .page-head__inner, .story, .process, .page-intro__inner, .contact__inner { grid-template-columns: 1fr; }
  .split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .split__text, .split--reverse .split__text { padding: 56px var(--gutter); }
  .split--reverse .split__media { order: 0; }
  .project-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--three, .principles, .services { grid-template-columns: 1fr; }
  .facts__list, .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__media { position: static; aspect-ratio: 4 / 3; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__text { padding: 48px var(--gutter); }
  .hero-split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

@media (max-width: 700px) {
  /* Featured projects become a swipeable row with arrows */
  .carousel__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > li { flex: 0 0 80%; scroll-snap-align: start; }
  .carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; color: var(--color-light); }
  .journal-band__posts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: .96rem; }
  .logo { font-size: 1.12rem; letter-spacing: .18em; }

  /* Phone: full photo with the whole heading on the first screen */
  .hero { align-items: flex-end; min-height: 100svh; }
  .hero__inner { padding-bottom: 108px; }
  .hero::after { background: linear-gradient(0deg, rgba(20, 21, 22, .82) 0%, rgba(20, 21, 22, .45) 45%, rgba(20, 21, 22, .12) 75%, rgba(20, 21, 22, .3) 100%); }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero__controls { justify-content: flex-start; bottom: 28px; }
  .slide-nav__bar { width: 48px; }
  .hero--404 .hero__inner { padding-bottom: 64px; }

  /* Home 2 on a phone: photo over the full width with the text on top */
  .hero-split { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - var(--header-h)); color: var(--color-light); }
  .hero-split__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-split::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 21, 22, .86) 0%, rgba(20, 21, 22, .58) 50%, rgba(20, 21, 22, .12) 82%); }
  .hero-split__text { position: relative; z-index: 1; align-self: flex-end; padding: 48px var(--gutter) 44px; }
  .hero-split__text .label { color: rgba(238, 235, 230, .88); }
  .hero-split__title { font-size: clamp(2.4rem, 11vw, 3rem); color: var(--color-light); }
  .hero-split .btn--dark { background: var(--color-light); border-color: var(--color-light); color: var(--color-ink); }

  .project-grid--all, .post-grid { grid-template-columns: 1fr; }
  .mini-post { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip figure { height: 220px; }
  .strip figure:last-child { grid-column: 1 / -1; }
  .gallery, .prose__pair { grid-template-columns: 1fr; }
  .filters { gap: 4px 22px; }
  .project-nav { grid-template-columns: 1fr; text-align: left; }
  .project-nav__link--next { justify-self: start; text-align: left; flex-direction: row-reverse; }
  .project-nav__all { justify-self: stretch; }
  .cta__inner .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }

  /* Contact window fills the phone screen */
  .modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .modal__inner { padding: 56px var(--gutter) 40px; }
  .lightbox__arrow { bottom: -58px; }
}

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