/* =========================================================================
   Design tokens
   Colours match the printed portfolio (charcoal, warm off-white, burnt orange).
   ========================================================================= */
/* Archivo, width fixed at 112 (expanded), variable weight 500-800 - made by tools from design/fonts/Archivo[wdth,wght].ttf */
@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #141618;
  --bg-2: #1a1d20;
  --bg-3: #222528;
  --line: rgba(237, 233, 225, 0.11);
  --line-strong: rgba(237, 233, 225, 0.22);
  --text: #ede9e1;
  --muted: #a39d93;
  --accent: #e07a50;
  --accent-deep: #b9532c;
  --accent-ink: #1a1208;

  --font-display: "Archivo Expanded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-small: 8px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section-y: clamp(72px, 10vw, 136px);
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.65rem); line-height: 1.08; }
h3 { font-size: 1.18rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-small); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
mark.missing { background: #ffd84d; color: #111; padding: 0 .3em; border-radius: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: .45em; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; align-items: last baseline; gap: 24px; flex-wrap: wrap; }

/* Layer texture: thin horizontal lines like the layers of a print */
.section-layers::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(237,233,225,.035) 0 1px, transparent 1px 6px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 1.4em; margin-bottom: .35em; color: var(--muted); font-size: .95rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7em; height: 2px; background: var(--accent); }

/* =========================================================================
   Buttons & links
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 .95rem/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; border: 1px solid var(--accent);
  cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: #ea8b62; transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(224,122,80,.7); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(237,233,225,.06); box-shadow: none; border-color: var(--text); }
.btn-small { padding: .7em 1.15em; font-size: .85rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); color: var(--accent); }
.link-arrow:hover span { transform: translateX(5px); }
.link-quiet { color: var(--muted); font-size: .95rem; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* the blur sits on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: rgba(20, 22, 24, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: opacity .35s var(--ease);
}
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
.site-header.is-scrolled, .site-header.is-solid { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); flex-shrink: 0; position: relative; z-index: 2; }
.brand .logo { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav ul a { text-decoration: none; font-size: .93rem; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav ul a:hover, .main-nav ul a[aria-current] { color: var(--text); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-extra { display: flex; align-items: center; gap: 18px; }
.lang-switch { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--muted); }
.lang-switch .lang-current { color: var(--text); }
.lang-switch .lang-sep { margin: 0 .3em; opacity: .5; }
.lang-switch:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--text); }
  .main-nav ul a[aria-current] { color: var(--accent); }
  .main-nav ul a::after { display: none; }
  .nav-extra { gap: 24px; }
  .site-header.menu-open { background: var(--bg); }
}
body.no-scroll { overflow: hidden; }

/* =========================================================================
   Hero (home)
   ========================================================================= */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(36px, 6vw, 72px);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: min(62%, 980px); z-index: -1; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); overflow: hidden; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-slide.is-active img { animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(20,22,24,.82) 26%, rgba(20,22,24,0) 60%),
    linear-gradient(to top, var(--bg) 0%, rgba(20,22,24,0) 35%),
    linear-gradient(to bottom, rgba(20,22,24,.6) 0%, rgba(20,22,24,0) 25%);
}
.hero-inner { display: grid; gap: clamp(36px, 6vw, 72px); }
.hero-copy { max-width: 760px; }
.hero .lead { max-width: 31em; }
.hero h1 { margin-bottom: .32em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts {
  list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.hero-facts strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.15; }
.hero-facts span { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 1200px) and (min-width: 901px) {
  .hero-media { width: 56%; }
  .hero .lead { max-width: 25em; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 8px); flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; inset: auto; width: auto; height: min(80vw, 480px); margin: 0 0 -20px; }
  .hero-media::after { background: linear-gradient(to top, var(--bg) 8%, rgba(20,22,24,0) 50%), linear-gradient(to bottom, var(--bg) 0%, rgba(20,22,24,0) 30%); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Print reveal: the hero picture is "printed" layer by layer from the bottom */
.js .hero-slide:first-child { animation: print-reveal 1.9s steps(28, end) .15s both; }
.print-head {
  position: absolute; left: 0; right: 0; height: 2px; bottom: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #ffd2bd 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(224,122,80,.65);
  opacity: 0; pointer-events: none;
}
.js .print-head { animation: print-head 1.9s steps(28, end) .15s both; }
@keyframes print-reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes print-head {
  0% { bottom: 0; opacity: 1; }
  96% { opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}

/* Staggered entrance for hero text */
.js .hero-in { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) both; animation-delay: calc(.25s + var(--d, 0) * .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =========================================================================
   Page hero (sub pages)
   ========================================================================= */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { max-width: 14em; margin-bottom: .35em; }
.page-hero-small h1 { font-size: clamp(1.6rem, 4.2vw, 2.9rem); -webkit-hyphens: auto; hyphens: auto; }
.not-found { min-height: 70vh; display: flex; align-items: center; }

/* =========================================================================
   Services
   ========================================================================= */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), transform .4s var(--ease), background .3s;
}
.service::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0; z-index: 0;
  background: repeating-linear-gradient(to bottom, rgba(224,122,80,.10) 0 1px, transparent 1px 5px);
  transition: height .6s var(--ease);
}
.service > * { position: relative; z-index: 1; }
.service:hover { border-color: rgba(224,122,80,.45); transform: translateY(-4px); }
.service:hover::before { height: 100%; }
.service-icon { display: inline-flex; color: var(--accent); margin-bottom: 22px; }
.service-icon svg { width: 44px; height: 44px; }
.service h3 { margin-bottom: .6em; }
.service p { color: var(--muted); font-size: .97rem; margin-bottom: 1.2em; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* =========================================================================
   Project cards
   ========================================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg-3); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.card-grid:not(.card-grid-featured) .card-media { aspect-ratio: 4 / 3.4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; filter: saturate(.92); }
.card:hover .card-media img { transform: scale(1.06); filter: saturate(1.05); }
.card-media::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s;
  background: repeating-linear-gradient(to bottom, rgba(20,22,24,.18) 0 1px, transparent 1px 5px);
}
.card:hover .card-media::after { opacity: 1; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7em; }
.card-body h2, .card-body h3 { font-size: 1.1rem; margin-bottom: .55em; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 1.1em; }
.card-more { margin-top: auto; font-size: .88rem; font-weight: 700; }
.card-more span { display: inline-block; color: var(--accent); transition: transform .3s var(--ease); }
.card:hover .card-more span { transform: translateX(5px); }
@media (max-width: 1260px) { .card-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid-featured .card-media { aspect-ratio: 4 / 3.3; } }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1261px) { .card-grid-featured .card-body h3 { min-height: calc(3 * 1.25em); } }
@media (max-width: 620px) { .card-grid, .card-grid-featured { grid-template-columns: 1fr; } .card-grid-featured .card-media { aspect-ratio: 4 / 3.6; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font: 700 .85rem/1 var(--font-body); color: var(--muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .75em 1.2em; cursor: pointer; transition: all .25s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.card.is-hidden { display: none; }
.card.is-filtered-in { animation: rise .55s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); opacity: 0; transform: translateY(14px); }
.note { color: var(--muted); margin-top: 40px; font-size: .95rem; }

/* =========================================================================
   Process
   ========================================================================= */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-strong);
  transform-origin: left; transform: scaleX(1);
}
.js .process::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.js .process.is-in::before { transform: scaleX(1); }
.step { position: relative; padding-top: 62px; }
.step-no {
  position: absolute; top: 0; left: 0; width: 47px; height: 47px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-strong);
  font-size: .82rem; font-weight: 700; color: var(--accent); letter-spacing: .04em;
}
.js .process .step { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.25s + var(--i) * .18s); }
.js .process.is-in .step { opacity: 1; transform: none; }
.step h3 { font-size: 1.02rem; margin-bottom: .55em; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { display: none; }
  .step { padding: 0 0 34px 72px; min-height: 80px; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 47px; bottom: 0; width: 1px; background: var(--line-strong); }
  .step:last-child { padding-bottom: 0; }
}

/* =========================================================================
   Materials
   ========================================================================= */
.materials-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.materials-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.materials { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.material { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .35s var(--ease); }
.material:hover { padding-left: 10px; }
.material dt { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; line-height: 1.15; }
.material dd { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .materials-wrap { grid-template-columns: 1fr; }
  .materials-wrap .section-head { position: static; }
  .material { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================================
   About
   ========================================================================= */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--muted); }
.about-copy h2 { margin-bottom: .6em; }
.about-stats { list-style: none; padding: 26px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-stats strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.55rem; line-height: 1.15; }
.about-stats span { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-media { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .about-stats { grid-template-columns: 1fr; } }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; text-wrap: balance;
  font-family: var(--font-display); font-weight: 650; letter-spacing: -0.01em; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { color: var(--muted); padding: 0 0 18px; max-width: 46em; }
.faq details[open] .faq-a { animation: rise .45s var(--ease) both; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(185,83,44,.28), transparent 60%),
    repeating-linear-gradient(to bottom, rgba(237,233,225,.03) 0 1px, transparent 1px 6px);
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { max-width: 15em; margin-bottom: .4em; }
.cta-inner p { color: var(--muted); max-width: 36em; margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* =========================================================================
   Project page
   ========================================================================= */
.project-hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(24px, 4vw, 40px); }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.project-hero h1 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); margin-bottom: .45em; }
@media (min-width: 621px) and (max-width: 900px) { .project-hero h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); } }
@media (max-width: 380px) { .project-hero h1 { font-size: 1.7rem; } }
.back-link { display: block; width: fit-content; text-decoration: none; color: var(--muted); font-size: .9rem; margin: 0 0 22px; }
.back-link:hover { color: var(--text); }
.project-hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.project-hero-media.is-landscape { aspect-ratio: 4 / 3; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
.facts dd { margin: 0; font-size: .97rem; }
@media (max-width: 900px) {
  .project-hero-grid { grid-template-columns: 1fr; }
  .project-hero-media { aspect-ratio: 4 / 3; order: -1; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

.project-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.project-note { max-width: 46em; border-left: 3px solid var(--accent-deep); background: var(--bg-2); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding: 16px 20px; font-size: .9rem; color: var(--muted); }
.project-note p { margin: 0; }
.project-note strong { color: var(--text); }
.prose { max-width: 46em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose h2 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); margin: 1.4em 0 .6em; }
.prose a { color: var(--text); }

.gallery { columns: 2; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; }
.gallery-item a { display: block; position: relative; border-radius: var(--radius-small); overflow: hidden; }
.gallery-item img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gallery-item a:hover img { transform: scale(1.035); }
.zoom-hint {
  position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20,22,24,.7); color: var(--text); font-size: 1.2rem;
  opacity: 0; transform: scale(.8); transition: all .3s var(--ease);
}
.gallery-item a:hover .zoom-hint, .gallery-item a:focus-visible .zoom-hint { opacity: 1; transform: none; }
.gallery-item figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.gallery-item figcaption strong { color: var(--text); }
@media (min-width: 1100px) { .gallery { columns: 3; } }
@media (max-width: 620px) { .gallery { columns: 1; } }

.next-project { padding-block: clamp(32px, 6vw, 72px); }
.next-project a { display: block; text-decoration: none; border-top: 1px solid var(--line); padding-top: 28px; }
.next-title { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.45rem, 3.2vw, 2.4rem); line-height: 1.12; transition: color .25s; }
.next-title { text-wrap: balance; }
.next-title .next-arrow { color: var(--accent); display: inline-block; transition: transform .3s var(--ease); }
.next-project a:hover .next-title .next-arrow { transform: translateX(8px); }
.nowrap { white-space: nowrap; }

/* =========================================================================
   Lightbox
   ========================================================================= */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,11,12,.96); display: grid; place-items: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { animation: fade .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox-figure figcaption { color: var(--muted); font-size: .92rem; text-align: center; max-width: 60em; }
.lightbox-figure figcaption strong { color: var(--text); }
button { font-family: inherit; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(20,22,24,.6); color: var(--text); font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lightbox-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox-close { top: 16px; right: 16px; font-size: 1.6rem; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 28px; left: 24px; font-size: .8rem; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px 90px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.request-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.request-form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.request-form legend, .field > label { font-size: .85rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 10px; display: block; padding: 0; }
.field > label em, .request-form legend em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-error { display: block; margin-top: 6px; font-size: .85rem; color: #f08a80; }
.field-error[hidden] { display: none; }
.field-error::before { content: "! "; font-weight: 700; }
.request-noscript { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: .65em 1.05em; border: 1px solid rgba(237,233,225,.40); border-radius: 999px; font-size: .88rem; color: var(--muted); transition: all .2s var(--ease); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice:hover span { border-color: var(--text); color: var(--text); }
.choice input:checked:hover + span { color: var(--accent-ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 20px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid rgba(237,233,225,.40); border-radius: var(--radius-small);
  padding: .8em .95em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8a847a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,122,80,.22); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e2574c; }
.form-hint { font-size: .88rem; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 8px 0 18px; }
.form-status { font-size: .9rem; color: var(--muted); }
.form-status.is-error { color: #f08a80; }
.form-privacy { font-size: .8rem; color: var(--muted); margin: 0; }
.form-privacy a { color: var(--text); text-decoration-color: var(--muted); }
.contact-aside h2 { font-size: 1.35rem; margin-bottom: .8em; }
.contact-list { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.contact-list span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--accent); }
.contact-checklist { background: var(--bg-2); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); }
.contact-checklist h3 { font-size: 1rem; margin-bottom: .8em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Legal pages */
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; margin: 2em 0 .5em; }
.legal > h2:first-child { margin-top: 0; }
.legal .note { margin-top: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-brand .logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 22em; font-size: .95rem; }
.footer-col h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .service.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* =========================================================================
   Logo animation (layers build up like a print on first load)
   ========================================================================= */
.logo .layer { transform-box: fill-box; }
.js .site-header .logo .layer { animation: layer-in .5s var(--ease) both; animation-delay: calc(.1s + var(--l, 0) * 70ms); }
@keyframes layer-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Reduced motion: everything visible, no movement
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in, .js .process .step { opacity: 1; transform: none; }
  .print-head { display: none; }
}

/* =========================================================================
   Print: show everything, no fixed header
   ========================================================================= */
@media print {
  .js .reveal, .js .hero-in, .js .process .step { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .process::before { transform: none !important; }
  .site-header { position: absolute; }
  .hero-slide:not(:first-child), .print-head, .lightbox { display: none !important; }
  .hero-slide:first-child { opacity: 1 !important; }
}
