@charset "UTF-8";
/* Craftwork v2 */

:root {
  --bg: #f3f1ec;
  --panel: #e8e5de;
  --ink: #1b1a18;
  --muted: #76726a;
  --line: rgba(27, 26, 24, 0.14);
  --line-strong: rgba(27, 26, 24, 0.4);
  --white: #fbfaf7;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 44px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(88px, 12vw, 176px);
  --header-h: 68px;

  /* Type scale: six sizes. Everything on the site uses one of these. */
  --t-display: clamp(2.35rem, 5.4vw, 5.25rem);
  --t-h2: clamp(1.75rem, 3.2vw, 3rem);
  --t-lede: clamp(1.3rem, 2.1vw, 1.9rem);
  --t-large: 1.25rem;
  --t-body: 1rem;
  --t-small: 0.9375rem;

  /* Text and rules on the dark (ink) ground. */
  --inv-soft: rgba(243, 241, 236, 0.72);
  --inv-muted: rgba(243, 241, 236, 0.5);
  --inv-line: rgba(243, 241, 236, 0.18);
  --inv-line-strong: rgba(243, 241, 236, 0.4);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
#main { flex: 1 0 auto; }

body {
  margin: 0;
  /* Pin the footer to the bottom of the window on short pages. */
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; font-size: var(--t-small);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.display {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.h2 {
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lede {
  font-size: var(--t-lede);
  line-height: 1.28;
  letter-spacing: -0.022em;
}
.label {
  font-size: var(--t-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow::after {
  content: ""; width: 0.42em; height: 0.42em;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg); margin-left: -0.1em;
}
.link-arrow:hover { border-color: currentColor; gap: 0.75em; }

/* ---------- Layout ---------- */

.wrap { padding-inline: var(--gutter); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--line); }

/* ---------- Page transitions ---------- */

/* Cross-document view transitions (Chrome, Edge, Safari 18.2+). Other
   browsers just navigate normally. The header is lifted out so it stays
   put while the page beneath fades and rises into place. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }

::view-transition-old(root) { animation: page-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: page-in 0.7s 0.1s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: 0.5s; }

@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
/* Over the hero: fully transparent, white text. The hero's darkened top
   edge keeps it legible. It turns solid once you scroll past. */
.site-header.is-over:not(.is-solid):not(.menu-open) {
  color: var(--white);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

/* The original stacked lockup, "home" under the wordmark. Sized so the
   Craftwork part matches the old 132px wordmark. */
.brand {
  display: block;
  width: 136px; aspect-ratio: 920 / 200;
  background: currentColor;
  -webkit-mask: url("../logo/craftwork-home-stacked.svg") center / contain no-repeat;
  mask: url("../logo/craftwork-home-stacked.svg") center / contain no-repeat;
}

.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: var(--t-body); font-weight: 500; }
.nav a { position: relative; padding-block: 6px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: var(--t-small);
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink);
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    font-size: var(--t-h2); letter-spacing: -0.03em;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav a { padding-block: 10px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .site-header.menu-open { background: var(--bg); border-bottom-color: var(--line); }
  .site-header.menu-open .nav { opacity: 1; transform: none; visibility: visible; }
}

/* ---------- Square button ---------- */

/* Square uppercase button. */
.btn-sq {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px; font-size: var(--t-small); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  transition: background-color 0.3s, color 0.3s;
}
.btn-sq--dark { background: var(--ink); color: var(--bg); }
.btn-sq--dark:hover { background: #000; }
.btn-sq--light { background: var(--white); color: var(--ink); }
.btn-sq svg { width: 14px; height: 11px; flex: none; transition: transform 0.4s var(--ease); }
.btn-sq:hover svg { transform: translateX(3px); }

/* ---------- Header: Menu / logo / Contact ---------- */

/* Menu (icon + label) on the left, logo centred, a square
   "Start a project" button on the right. The menu opens full screen with
   large links and a photo that changes with the hovered link. */
.site-header--menu { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header--menu .brand { grid-column: 2; grid-row: 1; position: relative; z-index: 2; }

/* Menu button */
.site-header--menu .menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  grid-column: 1; grid-row: 1; justify-self: start; position: relative; z-index: 2;
  padding: 8px 0; font-size: var(--t-body); font-weight: 500;
}
.menu-icon { position: relative; width: 22px; height: 10px; }
.menu-icon i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), width 0.4s var(--ease), top 0.5s var(--ease);
}
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-icon i { top: 4.25px; width: 100%; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { transform: rotate(-45deg); }
.menu-word--open { display: none; }
.menu-btn[aria-expanded="true"] .menu-word--open { display: block; }
.menu-btn[aria-expanded="true"] .menu-word--closed { display: none; }

/* Header button: white over the hero, dark once the header is solid */
.header-cta {
  grid-column: 3; grid-row: 1; justify-self: end; position: relative; z-index: 2;
  padding: 12px 18px; background: var(--ink); color: var(--bg);
}
.site-header.is-over:not(.is-solid):not(.menu-open) .header-cta { background: var(--white); color: var(--ink); }
@media (max-width: 760px) {
  /* Smaller logo and button so all three fit around the centre. */
  .site-header--menu .brand { width: 112px; }
  /* Phones: Menu and the logo only; Contact is in the menu. */
  .header-cta { display: none; }
  .site-header--menu .menu-btn .menu-word { display: none !important; }
}

/* Full-screen menu */
.site-header--menu .menu-panel {
  position: fixed; inset: 0; z-index: 1; display: block;
  padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) var(--gutter) clamp(24px, 3vw, 40px);
  background: var(--bg); color: var(--ink);
  font-size: inherit; letter-spacing: normal; border: 0;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s 0.8s;
}
.site-header--menu.menu-open .menu-panel { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s; opacity: 1; transform: none; }
.site-header--menu.menu-open { background: transparent; border-bottom-color: transparent; color: var(--ink); }
/* The scrolled header's backdrop blur would make it the containing block for
   the fixed menu panel, squeezing the "full-screen" menu into the header bar.
   Drop it while the menu is open. */
.site-header.site-header--menu.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* While open: above everything (including the cursor label). Page scroll is
   blocked in alt.js without hiding the scrollbar, so nothing shifts. */
.site-header--menu.menu-open { z-index: 1000; }
html.menu-locked { overscroll-behavior: none; }
html.menu-locked .cursor { display: none; }
.site-header--menu.menu-open .header-cta { background: var(--ink); color: var(--bg); }
.menu-inner {
  height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto;
  column-gap: var(--col-gap); row-gap: 24px;
}
.menu-links { grid-column: 1 / span 7; display: flex; flex-direction: column; justify-content: center; }
.site-header--menu .menu-links a {
  display: flex; align-items: baseline; gap: 0.4em; padding: 0; border: 0;
  font-size: var(--t-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.04em;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), color 0.3s;
}
.site-header--menu.menu-open .menu-links a { opacity: 1; transform: none; }
.site-header--menu.menu-open .menu-links a:nth-child(1) { transition-delay: 0.25s, 0.25s, 0s; }
.site-header--menu.menu-open .menu-links a:nth-child(2) { transition-delay: 0.31s, 0.31s, 0s; }
.site-header--menu.menu-open .menu-links a:nth-child(3) { transition-delay: 0.37s, 0.37s, 0s; }
.site-header--menu.menu-open .menu-links a:nth-child(4) { transition-delay: 0.43s, 0.43s, 0s; }
.menu-links:hover a { color: var(--muted); }
.menu-panel a::after { display: none; }
.site-header--menu .menu-links a:hover { color: var(--ink); }
/* The page you're on gets a small marker. */
.site-header--menu .menu-links a[aria-current="page"]::before { content: ""; align-self: center; width: 0.18em; height: 0.18em; border-radius: 50%; background: currentColor; order: 2; }
.menu-num { font-size: var(--t-small); letter-spacing: 0.06em; font-weight: 600; color: var(--muted); transform: translateY(-1.6em); }
.menu-media { grid-column: 9 / -1; align-self: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.menu-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s var(--ease); }
.menu-media img.is-swapping { opacity: 0; }
.menu-foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted);
}
@media (max-width: 760px) {
  .menu-links { grid-column: 1 / -1; }
  .menu-media { display: none; }
  .site-header--menu .menu-links a { font-size: var(--t-h2); padding-block: 8px; }
}

/* ---------- Media ---------- */

.media { position: relative; overflow: hidden; background: var(--panel); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--43 { aspect-ratio: 4 / 3; }
.media--45 { aspect-ratio: 4 / 5; }
.media--34 { aspect-ratio: 3 / 4; }
.media--32 { aspect-ratio: 3 / 2; }
.media--169 { aspect-ratio: 16 / 9; }

.card { display: block; }
.card .media img { transition: transform 1.2s var(--ease); }
.card:hover .media img { transform: scale(1.025); }
.card-meta {
  display: flex; flex-direction: column; gap: 1px;
  padding-top: 14px; font-size: var(--t-large); line-height: 1.4; letter-spacing: -0.012em;
}
.card-title { font-weight: 500; }
.card-meta .muted { font-size: var(--t-body); letter-spacing: -0.006em; }
.card-title { transition: opacity 0.3s var(--ease); }

/* Cursor-follow label */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--bg); color: var(--ink);
  font-size: var(--t-small); white-space: nowrap;
  opacity: 0; scale: 0.85;
  transition: opacity 0.25s var(--ease), scale 0.35s var(--ease);
}
.cursor::after { content: "\2192"; }
.cursor.is-on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) {
  .js [data-cursor] { cursor: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero carousel (home) ---------- */

.hero {
  --hero-dur: 6.5s;
  --wipe: cubic-bezier(0.77, 0, 0.18, 1);
  position: relative; height: 100svh; min-height: 560px;
  color: var(--white); overflow: hidden; background: #2a2724;
}
.hero-slides { position: absolute; inset: 0; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.hero-slides.is-dragging { cursor: grabbing; }
.hero-slides img, .hero-slide { -webkit-user-drag: none; }
.hero-slide picture { transition: transform 0.6s var(--ease); }
.hero-slides.is-dragging .hero-slide picture { transition: none; }
.hero-slide {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
  will-change: opacity;
}
.hero-slide picture, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide img { transform: scale(1.08); will-change: transform; }

/* Compositor-only (opacity + transform) so it stays smooth on large images.
   The incoming slide fades in over the outgoing one, which stays opaque
   underneath, so there's never a dip to black. */
.hero-slide.is-active {
  z-index: 2; opacity: 1; pointer-events: auto;
  transition: opacity 1.4s var(--ease);
}
.hero-slide.is-leaving { z-index: 1; opacity: 1; }
/* A slow zoom-out runs for the whole time a slide is on screen. Same
   animation on both states, so it doesn't restart when a slide starts leaving. */
.hero-slide.is-active img,
.hero-slide.is-leaving img { animation: hero-drift calc(var(--hero-dur) + 2s) linear both; }
.hero.is-static .hero-slide.is-active { transition: none; }

@keyframes hero-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.12) 12%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 52%, rgba(0,0,0,0.48) 100%);
}
.hero-inner {
  position: absolute; inset: auto 0 0 0; z-index: 4; pointer-events: none;
  padding: 0 var(--gutter) clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: end;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-title { grid-column: 1 / span 8; }
.hero-title span { display: block; opacity: 0.55; }
.hero-meta { grid-column: 9 / -1; justify-self: end; }

/* Project switcher (carried over from v1): inactive projects sit as small
   image chips; the active one opens into a frosted pill with its title.
   The wipe across the active thumbnail is the autoplay timer. */
.hero-thumbs { display: flex; align-items: center; gap: 8px; }
/* Hidden for now. visibility (not display) keeps the wipe animation running,
   since it is what advances the carousel. */
.hero-thumbs { visibility: hidden; }
.hero-thumb {
  position: relative; display: flex; align-items: center; flex: none; gap: 12px;
  width: 34px; height: 34px; padding: 4px; overflow: hidden;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  color: var(--ink); cursor: pointer; text-align: left;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), padding 0.5s var(--ease),
    background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Only the active pill shows for now; the other chips are hidden. */
.hero-thumb:not(.is-active) { display: none; }
.hero-thumb.is-active {
  width: 272px; height: 60px; padding: 8px 16px 8px 8px;
  background: rgba(246, 243, 236, 0.72);
  -webkit-backdrop-filter: blur(40px) saturate(1.4); backdrop-filter: blur(40px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.hero-thumb-img {
  position: relative; flex: none; width: 24px; height: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 7px;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), border-color 0.3s var(--ease);
}
.hero-thumb:not(.is-active):hover .hero-thumb-img { border-color: rgba(255, 255, 255, 0.9); }
.hero-thumb.is-active .hero-thumb-img { width: 42px; height: 42px; border-color: rgba(255, 255, 255, 0.5); }
.hero-thumb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-thumb-img i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246,243,236,0.65) 0%, rgba(246,243,236,0.65) 88%, rgba(255,255,255,0.98) 100%);
  transform: scaleX(0); transform-origin: left;
}
.hero-thumb.is-active .hero-thumb-img i { animation: hero-progress var(--hero-dur) linear forwards; }
.hero.is-paused .hero-thumb.is-active .hero-thumb-img i { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

.hero-thumb-text {
  display: flex; flex-direction: column; gap: 3px; flex: none; white-space: nowrap;
  opacity: 0; transform: translateX(4px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.hero-thumb.is-active .hero-thumb-text { opacity: 1; transform: none; transition-delay: 0.22s; }
.hero-thumb-title { font-size: var(--t-small); font-weight: 500; line-height: 1.15; }
.hero-thumb-cta { font-size: var(--t-small); color: var(--muted); line-height: 1.15; }
.hero-thumb-cta::after { content: " \2192"; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide img { transform: none; }
  .hero-thumb.is-active .hero-thumb-img i { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .hero-title { grid-column: 1 / -1; }
  /* The switcher is hidden for now, so keep it from pushing the title up. */
  .hero-meta { position: absolute; left: var(--gutter); bottom: 0; }
  .hero-thumbs { gap: 6px; }
  .hero-thumb.is-active { width: 220px; height: 56px; padding: 7px 14px 7px 7px; }
}

/* ---------- Intro ---------- */

.intro { row-gap: 40px; }
.intro-label { grid-column: 1 / span 6; }
.intro-body { grid-column: 7 / -1; }
.intro-links { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 36px; }
.intro-links .link-arrow { font-size: var(--t-large); letter-spacing: -0.012em; }
@media (max-width: 900px) {
  .intro-label, .intro-body { grid-column: 1 / -1; }
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

/* ---------- Selected work (home) ---------- */

.selected { row-gap: clamp(48px, 6vw, 88px); }
.selected .card { grid-column: span 6; }
.card-all .media {
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px);
  transition: background-color 0.4s var(--ease);
}
.card-all:hover .media { background: #000; }
.card-all-count { font-size: var(--t-small); opacity: 0.6; line-height: 1; }
/* Trim leading so the visible text sits the same distance from every edge. */
.card-all-count, .card-all-label { text-box: trim-both cap alphabetic; }
.card-all-label { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.03em; }
.card-all-label .arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.card-all:hover .card-all-label .arrow { transform: translateX(0.2em); }
@media (max-width: 760px) {
  .selected .card { grid-column: 1 / -1; }
}

/* ---------- Testimonials (marquee) ---------- */

.testimonials-head {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; margin-bottom: clamp(36px, 5vw, 64px);
}
.rating { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-small); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color 0.3s; }
.rating:hover { border-color: var(--ink); }
.rating-stars, .review-stars { display: inline-flex; gap: 2px; margin: 0; }
.rating-stars svg, .review-stars svg { width: 12px; height: 12px; fill: currentColor; }

/* Clip sideways only, so a hovered card can scale and grow past the row. */
.marquee { overflow-x: clip; position: relative; z-index: 2; }
.marquee-row { overflow-x: clip; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee-row.is-dragging { cursor: grabbing; }
.marquee-row.is-dragging a { pointer-events: none; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; gap: var(--col-gap); padding-right: var(--col-gap); }
.marquee img, .marquee a { -webkit-user-drag: none; }

/* The li is a fixed-height slot; the card inside is absolutely placed so it
   can expand downward over the page without shifting the row. */
.review {
  position: relative; flex: none;
  width: clamp(290px, 30vw, 420px); height: var(--review-h, 300px);
  transition: opacity 0.5s var(--ease);
}
.review-card {
  position: absolute; inset: 0 0 auto 0; min-height: 100%;
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(27, 26, 24, 0.08);
  background: #fff;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
@media (hover: hover) {
  .review:hover { z-index: 5; }
  .review:hover .review-card {
    --s: 1.04;
    box-shadow: 0 34px 60px -24px rgba(27, 26, 24, 0.28);
    transition: transform 0.25s ease-out, box-shadow 0.6s var(--ease);
  }
  .marquee-row:has(.review:hover) .review:not(:hover) { opacity: 0.4; }
  .marquee-row.is-dragging .review { opacity: 1 !important; }
  .marquee-row.is-dragging .review-card { --s: 1; --rx: 0deg; --ry: 0deg; box-shadow: none; }
}
.review-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.02em;
}
.review-name { margin: 0 0 2px; font-weight: 500; }
.review-quote {
  margin: 0; font-size: var(--t-large); line-height: 1.4; letter-spacing: -0.012em;
  max-height: calc(1.4em * 5); overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
/* Longer reviews fade out at the cut and open to full length on hover. */
.review.is-long .review-quote { -webkit-mask-image: linear-gradient(#000 calc(100% - 2.2em), transparent); mask-image: linear-gradient(#000 calc(100% - 2.2em), transparent); }
@media (hover: hover) {
  .review.is-long:hover .review-quote { max-height: var(--full); -webkit-mask-image: none; mask-image: none; }
}
.review-link { margin-top: auto; align-self: flex-start; font-size: var(--t-small); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.3s; }
.review-link::after { content: " \2197"; }
.review-link:hover { border-color: var(--ink); }


/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--bg); padding: clamp(40px, 5vw, 64px) var(--gutter); }
.site-footer .muted { color: var(--inv-muted); }
.footer-cols { row-gap: 36px; font-size: var(--t-small); }
.footer-cols > div { grid-column: span 2; display: flex; flex-direction: column; gap: 4px; }
.footer-cols > .footer-about { grid-column: 1 / span 5; gap: 22px; margin-right: auto; }
.footer-about p { margin: 0; max-width: 42ch; color: var(--inv-soft); }
.footer-logo { width: 173px; }
.footer-cols > .footer-about + div { grid-column: 7 / span 2; }
.footer-cols .label { color: var(--inv-muted); margin-bottom: 10px; }
.footer-cols a:hover { opacity: 0.65; }
.footer-brand { width: 100%; max-width: none; aspect-ratio: 891 / 99; margin-top: clamp(64px, 9vw, 120px); opacity: 0.95; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 88px); font-size: var(--t-small); }
@media (max-width: 1000px) {
  .footer-cols > div, .footer-cols > .footer-about + div { grid-column: span 4; }
  .footer-cols > .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .footer-cols > div, .footer-cols > .footer-about + div { grid-column: span 6; } }

/* ---------- Page head (inner pages) ---------- */

.page-head { padding-top: calc(var(--header-h) + clamp(64px, 10vw, 150px)); padding-bottom: clamp(48px, 7vw, 96px); row-gap: 28px; }
.page-head .label { grid-column: 1 / span 3; padding-top: 0.9em; }
.page-head .display { grid-column: 4 / -1; max-width: 17ch; }
.page-head .lede { grid-column: 4 / span 7; color: var(--muted); }
.page-head--simple { padding-top: calc(var(--header-h) + clamp(120px, 16vw, 260px)); }
.page-head--simple .display { grid-column: 1 / -1; }
.page-head--simple .lede { grid-column: 1 / span 6; }
@media (max-width: 900px) {
  .page-head .label, .page-head .display, .page-head .lede { grid-column: 1 / -1; }
}

/* ---------- Work index ---------- */

.work-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-block: 16px; border-block: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* Once pinned under the header, the header's own rule is enough. */
.work-bar.is-stuck { border-top-color: transparent; }
.view-toggle button {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted);
  transition: color 0.2s;
}
.view-toggle button:hover, .view-toggle button[aria-pressed="true"] { color: var(--ink); }

/* Category filter dropdown */
.filter-menu { position: relative; display: flex; align-items: center; gap: 20px; font-size: var(--t-small); }
.filter-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: #fff; border: 1px solid rgba(27, 26, 24, 0.2); cursor: pointer;
  transition: border-color 0.2s;
}
.filter-toggle::after {
  content: ""; width: 6px; height: 6px; margin: -3px 2px 0 4px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.filter-toggle[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { border-color: var(--ink); }
.filter-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 300px;
  padding: 8px 0; background: #fff; border: 1px solid rgba(27, 26, 24, 0.2);
  box-shadow: 0 18px 40px -18px rgba(27, 26, 24, 0.3);
}
.filter-opt {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 16px; cursor: pointer;
}
.filter-opt:hover { background: var(--bg); }
.filter-opt .count {
  display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding-inline: 0.4em;
  border-radius: 999px; background: var(--panel); color: var(--muted);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.filter-foot { display: flex; justify-content: flex-end; padding: 10px 16px 6px; margin-top: 6px; border-top: 1px solid var(--line); }
.filter-foot .link-arrow { background: none; border-width: 0 0 1px; cursor: pointer; padding: 0 0 2px; }
.filter-foot .link-arrow::after { display: none; }
.view-toggle { display: flex; gap: 16px; font-size: var(--t-small); }

.work-grid { padding-top: clamp(32px, 4vw, 56px); column-gap: 12px; row-gap: clamp(36px, 4vw, 56px); }
.work-grid .card { grid-column: span 4; }
.work-grid .card[hidden] { display: none; }
@media (max-width: 1000px) { .work-grid .card { grid-column: span 6; } }
@media (max-width: 600px) { .work-grid .card { grid-column: 1 / -1; } }

.work-list { padding-top: 8px; }
.work-list[hidden], .work-grid[hidden] { display: none; }
.work-list a {
  display: grid; grid-template-columns: 160px repeat(11, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}
.work-list a[hidden] { display: none; }
.work-list a:hover { background: var(--panel); }
.work-list .thumb { grid-column: 1; aspect-ratio: 4 / 3; }
.work-list .t { grid-column: 2 / span 4; font-size: var(--t-large); line-height: 1.4; letter-spacing: -0.012em; }
.work-list .c { grid-column: 6 / span 4; color: var(--muted); font-size: var(--t-small); }
.work-list .l { grid-column: 10 / span 2; color: var(--muted); font-size: var(--t-small); }
.work-list .y { grid-column: 12; text-align: right; color: var(--muted); font-size: var(--t-small); }
@media (max-width: 760px) {
  .work-list a { grid-template-columns: 96px 1fr auto; }
  .work-list .t { grid-column: 2; }
  .work-list .y { grid-column: 3; }
  .work-list .c, .work-list .l { display: none; }
}

/* ---------- Project page ---------- */

.project-head { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(40px, 5vw, 72px); row-gap: 40px; }
.project-head .display { grid-column: 1 / span 8; }
.project-head .summary { grid-column: 1 / span 6; }
.project-facts { grid-column: 8 / -1; align-self: end; font-size: var(--t-small); border-bottom: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; }
@media (max-width: 900px) {
  .project-head .display, .project-head .summary, .project-facts { grid-column: 1 / -1; }
}


.gallery { display: grid; gap: var(--col-gap); padding-bottom: var(--section); }
.gallery .row { display: grid; gap: var(--col-gap); grid-template-columns: 1fr 1fr; align-items: start; }
.gallery .row.full { grid-template-columns: 1fr; }
.gallery .row.solo { grid-template-columns: repeat(12, 1fr); }
.gallery .row.solo figure { grid-column: 4 / span 6; }
.gallery figure { margin: 0; background: var(--panel); }
.gallery img { width: 100%; height: auto; }
/* Piece heading inside a multi-piece portfolio (Custom Furniture). */
.gallery .piece { display: grid; gap: 10px; max-width: 40em; padding-top: clamp(40px, 6vw, 96px); }
.gallery .piece:first-child { padding-top: 0; }
@media (max-width: 700px) {
  .gallery .row { grid-template-columns: 1fr; }
  .gallery .row.solo figure { grid-column: 1 / -1; }
}

/* Back link: the arrow-link chevron, flipped to point left, no underline. */
.link-back { grid-column: 1 / -1; justify-self: start; border-bottom: 0; padding-bottom: 0; }
.link-back:hover { color: var(--muted); }
.link-back::after { order: -1; transform: rotate(-135deg); margin: 0 0 0 0.1em; }

/* Previous / Next */
.project-nav {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--col-gap);
  padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line);
}
.pn { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.pn-next { justify-self: end; flex-direction: row-reverse; text-align: right; }
.pn-thumb { position: relative; flex: none; width: clamp(88px, 10vw, 160px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.pn-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pn:hover .pn-thumb img { transform: scale(1.05); }
.pn-text { display: flex; flex-direction: column; gap: 6px; }
.pn-dir { font-size: var(--t-small); color: var(--muted); }
.pn-title { font-size: var(--t-lede); line-height: 1.15; letter-spacing: -0.022em; }
@media (max-width: 760px) {
  .pn-thumb { display: none; }
}

/* ---------- Services (stacking rows) ---------- */

.service { padding-block: clamp(28px, 3vw, 44px); row-gap: 24px; scroll-margin-top: var(--header-h); background: var(--bg); }
.service { border-top: 1px solid var(--line); }
.service.is-stuck { border-top-color: transparent; }
.service > * { grid-row: 1; }
/* --recede (0 to 1) is set from scroll as the next row slides over this one:
   the whole row shrinks back while its content fades. */
.service { transform: scale(calc(1 - 0.05 * var(--recede, 0))); transform-origin: 50% 0; }
.service > * { opacity: calc(1 - var(--recede, 0)); }
.service .num { grid-column: 1 / span 1; color: var(--ink); }
.service .media { grid-column: 8 / -1; align-self: start; }
.service .body { grid-column: 2 / span 5; display: flex; flex-direction: column; gap: 18px; }
/* Service names and engagement cards share one title size. */
.service .body .h2, .engage-title.h2 { font-size: var(--t-lede); line-height: 1.15; letter-spacing: -0.022em; }
.service .includes-label { margin: 6px 0 -8px; font-size: var(--t-small); color: var(--muted); }
.service .includes { font-size: var(--t-small); columns: 2; column-gap: var(--col-gap); }
.service .includes li { padding-block: 6px; border-top: 1px solid var(--line); break-inside: avoid; }
.service-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 16px; }

@media (min-width: 901px) {
  /* Each row pins under the site header, so the next row slides up and
     covers the one before. */
  .service { position: sticky; top: var(--header-h); min-height: min(62vh, 560px); }
  .service:last-child { margin-bottom: 12vh; }
  /* Image fills the full height of its row instead of a fixed 4:3. */
  .service .media { align-self: stretch; aspect-ratio: auto; }
  .service .media img { position: absolute; inset: 0; }
}
@media (max-width: 900px) {
  .service > * { grid-row: auto; }
  .service .num, .service .media, .service .body { grid-column: 1 / -1; }
}

/* Dark band that runs straight into the footer. Each card reveals a project
   photo on hover behind its text. */
.engage-wrap { scroll-margin-top: var(--header-h); background: var(--ink); color: var(--bg); padding-block: var(--section); }
.engage-head {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; margin-bottom: clamp(36px, 5vw, 64px);
}
.engage-head .lede { margin: 0; max-width: 34ch; color: var(--inv-soft); }
.engage { row-gap: var(--col-gap); }
.engage-card {
  grid-column: span 4; position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(420px, 38vw, 560px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--inv-line);
  transition: border-color 0.5s var(--ease);
}
.engage-card img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.engage-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(27,26,24,0.35) 0%, rgba(27,26,24,0.55) 45%, rgba(27,26,24,0.92) 100%);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.engage-card:hover, .engage-card:focus-visible { border-color: var(--inv-line-strong); }
.engage-card:hover img, .engage-card:focus-visible img { opacity: 1; transform: none; }
.engage-card:hover::after, .engage-card:focus-visible::after { opacity: 1; }
.engage-num { font-size: var(--t-display); line-height: 0.9; letter-spacing: -0.04em; color: var(--inv-line-strong); transition: color 0.5s var(--ease); }
.engage-card:hover .engage-num { color: var(--bg); }
.engage-body { display: flex; flex-direction: column; gap: 16px; }
.engage-text { color: var(--inv-soft); max-width: 36ch; margin-bottom: 12px; }
.engage-best { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px 20px; border-block: 1px solid var(--inv-line); font-size: var(--t-small); }
.engage-best span { width: 100%; color: var(--inv-muted); margin-bottom: 2px; }
.engage-best i { font-style: normal; padding: 4px 10px; border: 1px solid var(--inv-line-strong); border-radius: 999px; }
.engage-card .link-arrow { align-self: flex-start; margin-top: 12px; }
.engage-card:hover .link-arrow { border-color: currentColor; gap: 0.75em; }
@media (max-width: 900px) {
  .engage-card { grid-column: 1 / -1; min-height: 0; }
}

/* ---------- Process (scroll stepper) ---------- */

.steps { position: relative; }
.steps-pin { padding: 0 var(--gutter); }
.steps-media, .steps-rail { display: none; }
.step { padding-block: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.step > * { margin: 0; }
.step-img-m { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; background: var(--panel); }
.step-body { max-width: 34rem; }
.step-list { font-size: var(--t-small); color: var(--muted); }
.step-list li { padding-block: 4px; }
.step-list li::before { content: "\2014\00a0"; }

@media (min-width: 901px) {
  .steps { height: calc(var(--count) * 70vh + 100svh); }
  .steps-pin {
    position: sticky; top: var(--header-h);
    height: calc(100svh - var(--header-h));
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
    padding-block: clamp(28px, 4vw, 48px);
  }
  .steps-media { display: block; grid-column: 1 / span 6; position: relative; overflow: hidden; background: var(--panel); }
  .steps-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.05);
    transition: opacity 0.8s var(--ease), transform 1.4s var(--ease);
    will-change: opacity, transform;
  }
  .steps-img.is-active { opacity: 1; transform: none; }

  .steps-side {
    grid-column: 8 / -1;
    display: grid; grid-template-columns: 1px 1fr;
    column-gap: clamp(24px, 3vw, 44px);
  }
  .steps-rail { display: block; grid-column: 1; background: var(--line); position: relative; }
  .steps-rail i { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: top; }


  .steps-list { grid-column: 2; display: grid; align-items: center; }
  /* Steps share one grid cell, centred vertically beside the image. */
  .step {
    grid-area: 1 / 1;
    padding: 0; border: 0;
    opacity: 0; visibility: hidden; transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), visibility 0s 0.7s;
  }
  .step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s 0.15s var(--ease), transform 0.8s 0.15s var(--ease), visibility 0s; }
  .step-img-m { display: none; }
  .step-title { font-size: var(--t-display); letter-spacing: -0.04em; line-height: 1.02; }
}

/* ---------- FAQs (process) ---------- */

.faqs { row-gap: 28px; }
.faqs-head { grid-column: 1 / span 4; align-self: start; }
.faqs-list { grid-column: 6 / -1; border-bottom: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; cursor: pointer; list-style: none;
  font-size: var(--t-large); line-height: 1.4; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus that turns into a minus. */
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease), background-size 0.4s var(--ease);
}
.faq[open] summary::after { background-size: 100% 1.5px, 1.5px 0; transform: rotate(180deg); }
.faq::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq[open]::details-content { height: auto; }
.faq-a { padding-bottom: 24px; max-width: 60ch; color: var(--muted); }
.faq-a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.3s; }
.faq-a a:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) { .faqs-head, .faqs-list { grid-column: 1 / -1; } }

/* ---------- Contact ---------- */

.contact { padding-bottom: var(--section); row-gap: 40px; }
.contact-aside { grid-column: 9 / -1; grid-row: 1; align-self: start; }
.contact-aside dl { margin: 0; font-size: var(--t-small); border-bottom: 1px solid var(--line); }
.contact-aside dl div { padding-block: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-aside dt { color: var(--muted); }
.contact-aside dd { margin: 0; }
.contact-form { grid-column: 1 / span 7; grid-row: 1; }
@media (min-width: 1001px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 28px); } }
@media (max-width: 1000px) {
  .contact-aside, .contact-form { grid-column: 1 / -1; grid-row: auto; }
}

.form-section { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.form-section > legend, .form-section > .legend {
  float: left; width: 100%; padding: 0; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
/* Section titles match the numbered rows on Services. */
.form-legend { font-size: var(--t-large); line-height: 1.4; letter-spacing: -0.012em; }
.contact-form { --form-indent: 48px; }
/* Number set at the title's size so the two share a baseline. */
.form-legend .label { display: inline-block; width: var(--form-indent); font-size: inherit; font-weight: 400; letter-spacing: inherit; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Fields sit under the section title, not under its number. */
fieldset.form-section > *:not(legend) { margin-left: var(--form-indent); }
.form-hint { margin-left: var(--form-indent); font-size: var(--t-small); color: var(--muted); }
fieldset.form-section { border-left: 0; border-right: 0; border-bottom: 0; margin: 0; padding-inline: 0; min-width: 0; }
fieldset.form-section > *:not(legend) { clear: both; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--col-gap); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: var(--t-small); color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-large); color: var(--ink);
  background: #fff; border: 1px solid rgba(27, 26, 24, 0.2);
  border-radius: 0; padding: 12px 16px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231b1a18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 26, 24, 0.08); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

.services-pick { display: flex; flex-direction: column; }
.svc-head {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding-block: 12px; cursor: pointer;
}
.svc-head input, .filter-opt input {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 20px; height: 20px; background: #fff; border: 1px solid var(--line-strong); border-radius: 0;
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.svc-head input::after, .filter-opt input::after { content: ""; width: 9px; height: 5px; border: solid var(--bg); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.svc-head input:checked, .filter-opt input:checked { background: var(--ink); border-color: var(--ink); }
.svc-head input:checked::after, .filter-opt input:checked::after { opacity: 1; }
.svc-name { font-size: var(--t-large); line-height: 1.4; letter-spacing: -0.012em; }
.svc-hint { grid-column: 2; font-size: var(--t-small); color: var(--muted); }
.svc-budget {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease);
}
.svc-budget > div { overflow: hidden; }
.svc-budget .field { padding: 0 0 22px 36px; max-width: 460px; }
.svc.is-on .svc-budget { grid-template-rows: 1fr; }

.form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--bg); border: 0; cursor: pointer;
  padding: 16px 26px; font-size: var(--t-body);
  transition: gap 0.3s var(--ease), background-color 0.3s;
}
.btn::after { content: "\2192"; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.form-status { margin: 0 auto 0 0; color: var(--muted); }
.form-status:empty { display: none; }
.contact-form.is-sent > :not(.form-done) { display: none; }
.form-done {
  border-top: 1px solid var(--ink); padding-top: 36px;
  scroll-margin-top: calc(var(--header-h) + 32px);
  animation: page-in 0.7s var(--ease) both;
}
.form-done:focus { outline: none; }
.form-done-title { margin: 0; font-size: var(--t-h2); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; max-width: 14ch; }
.form-done-body { margin: 20px 0 32px; font-size: var(--t-large); line-height: 1.45; color: var(--muted); max-width: 34ch; }
.form-again { background: none; border-top: 0; border-left: 0; border-right: 0; padding-inline: 0; font: inherit; color: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .form-done { animation: none; } }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:hover { gap: 20px; background: #000; }
