/* Euro Design Furniture — site styles
   Palette: paper, bone, graphite, walnut. Type: Cormorant Garamond + Inter (self-hosted).
   Motion tokens follow transitions.dev (texts reveal, modal, text morph, success check, error shake, learn-more). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #f5f2ed;
  --bone: #ebe5db;
  --line: #d8d0c3;
  --ink: #1d1c1a;
  --ink-2: #3f3b36;
  --muted: #6a645b;
  --walnut: #7a5a3c;
  --focus: #7a5a3c;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --col-gap: clamp(16px, 2.4vw, 40px);
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-dur: 600ms;

  /* transitions.dev tokens */
  --stagger-dur: 900ms;
  --stagger-distance: 14px;
  --stagger-stagger: 90ms;
  --stagger-blur: 3px;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-morph-dur: 180ms;
  --text-morph-resize-dur: 240ms;
  --text-morph-blur: 2px;
  --text-morph-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --learn-shift: 3px;
  --learn-spread: 8deg;
  --learn-in: 350ms;
  --learn-out: 350ms;
  --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --check-opacity-dur: 500ms;
  --check-rotate-dur: 500ms;
  --check-rotate-from: 80deg;
  --check-bob-dur: 500ms;
  --check-y-amount: 24px;
  --check-blur-dur: 500ms;
  --check-blur-from: 10px;
  --check-path-dur: 500ms;
  --check-path-delay: 80ms;
  --check-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-opacity: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-rotate: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1);
  --check-ease-path: cubic-bezier(0.22, 1, 0.36, 1);
  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(122, 90, 60, 0.15);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input, textarea { font: inherit; color: inherit; touch-action: manipulation; }
::selection { background: #d9c7b0; color: var(--ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }

.visually-hidden {
  position: absolute !important; 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: var(--gutter); top: 12px; z-index: 100;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-size: 0.8125rem; letter-spacing: 0.08em;
  transform: translateY(-160%); transition: transform 200ms var(--ease);
}
.skip-link:focus-visible { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 300; }
h3 { font-size: clamp(1.45rem, 1.9vw, 1.85rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.38;
  font-weight: 400;
  color: var(--ink-2);
}
.body-copy { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; max-width: 62ch; }
.body-copy + .body-copy { margin-top: 1.1em; }

/* links with a drawn underline */
.u-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--hover-dur) var(--ease), color 200ms ease;
  padding-bottom: 2px;
}
.u-link:hover, .u-link:focus-visible, .u-link[aria-current="page"] { background-size: 100% 1px; }
.u-link.is-static { background-size: 100% 1px; }
.u-link.is-static:hover { background-size: 0% 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease, transform 150ms var(--ease);
}
.btn:hover { background: #34312d; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* learn-more chevron (transitions.dev #24) */
.t-learn { display: inline-flex; align-items: center; gap: 10px; }
.t-learn-chevron { display: inline-flex; transform: translateX(0); transition: transform var(--learn-out) var(--learn-ease); }
.t-learn-chevron svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.t-learn-arm { transform-box: view-box; transform-origin: 10px 8px; vector-effect: non-scaling-stroke; transition: transform var(--learn-out) var(--learn-ease); }
.t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
.t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: clamp(172px, 15vw, 214px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav .nav-box { padding: 0 18px; min-height: 40px; border: 1.5px solid currentColor; }
.nav .nav-box[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav .icon-link { justify-content: center; min-width: 44px; margin-right: -12px; }
.icon-link svg { width: 18px; height: 18px; }
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 4px; margin-right: -4px;
  background: none; border: 0; cursor: pointer;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.menu-toggle .bars { position: relative; width: 22px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 300ms var(--ease), top 300ms var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: calc(var(--header-h) + 8px) var(--gutter) 40px;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
    overscroll-behavior: contain;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; letter-spacing: 0; text-transform: none; min-height: 60px; }
  .nav .nav-box, .nav .nav-box[aria-current="page"] { border: 0; padding: 0; min-height: 60px; background: none; color: inherit; }
  .nav .icon-link { margin: 16px 0 0 -10px; }
  .nav .icon-link svg { width: 26px; height: 26px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- header over the slideshow (home) ---------- */
.site-header--over { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.site-header--over::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: -2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0.42), rgba(20, 18, 16, 0.18) 55%, rgba(20, 18, 16, 0));
}
.site-header--over .wrap { padding-top: clamp(4px, 1.2vw, 16px); }
.site-header--over .brand img { filter: brightness(0) invert(1); transition: filter 260ms var(--ease); }
.site-header--over .menu-toggle { color: inherit; }
body.menu-open .site-header--over { color: var(--ink); }
body.menu-open .site-header--over .brand img { filter: none; }
body.menu-open .site-header--over::before { opacity: 0; }

/* ---------- slideshow (home) ---------- */
.slides {
  position: relative; height: clamp(440px, 62vw, 780px); max-height: 86svh;
  overflow: hidden; background: #24211e; color: #fff;
}
.slides-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1400ms var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.slides-pause {
  position: absolute; z-index: 3; right: max(calc(var(--gutter) - 12px), env(safe-area-inset-right)); bottom: 8px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: #fff; opacity: 0.7;
  transition: opacity 200ms var(--ease);
}
.slides-pause:hover, .slides-pause:focus-visible { opacity: 1; }
.slides-pause span, .slides-pause span::before {
  position: absolute; top: 50%; left: 50%; width: 2px; height: 10px; margin-top: -5px;
  background: currentColor; content: "";
}
.slides-pause span { margin-left: -3px; }
.slides-pause span::before { left: 4px; margin: 0; top: 0; }
.slides-pause[aria-pressed="true"] span {
  width: 0; height: 0; margin: -5px 0 0 -3px; background: none;
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor;
}
.slides-pause[aria-pressed="true"] span::before { display: none; }
.slides :focus-visible { outline-color: #fff; }

/* ---------- intro (home) ---------- */
.intro { padding-block: clamp(72px, 9vw, 128px) clamp(40px, 5vw, 72px); text-align: center; }
.intro h1 {
  margin: 0 auto; max-width: 22ch;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.1; font-weight: 300;
}
.intro-lead { margin: 22px auto 0; max-width: 46ch; color: var(--muted); font-size: 1.0625rem; }

/* ---------- featured projects (home, after Leo Designs' "featured homes") ---------- */
.caps-title {
  margin: 0; padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(48px, 6vw, 88px);
  text-align: center; font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.feature { position: relative; padding-bottom: clamp(72px, 8vw, 120px); }
.feature-banner { display: block; height: clamp(260px, 37vw, 560px); overflow: hidden; background: var(--ink); }
.feature-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.68; transition: transform 1200ms var(--ease), opacity 600ms var(--ease); }
.feature:has(.feature-title a:hover) .feature-banner img, .feature-banner:hover img { transform: scale(1.03); opacity: 0.6; }
.feature-title {
  position: absolute; left: 0; right: 0; top: calc(clamp(260px, 37vw, 560px) / 2); transform: translateY(-50%);
  margin: 0; padding: 0 var(--gutter); text-align: center; pointer-events: none;
  font-family: var(--sans); font-weight: 300; color: #fff;
  font-size: clamp(1.25rem, 3.2vw, 2.75rem); line-height: 1.25; letter-spacing: 0.2em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 30px rgba(0, 0, 0, 0.35);
}
.feature-title a { pointer-events: auto; color: inherit; text-decoration: none; }
.feature-title a::after { content: ""; position: absolute; inset: -40px 0; }
.feature-title a:focus-visible { outline: 1px solid #fff; outline-offset: 6px; }
.feature-desc {
  margin: clamp(32px, 4vw, 56px) auto clamp(32px, 4vw, 56px); max-width: 52ch; text-align: center;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--ink-2);
}
.feature-big, .feature-row a { display: block; overflow: hidden; background: var(--bone); }
.feature-big img, .feature-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.feature-big:hover img, .feature-row a:hover img { transform: scale(1.03); }
.feature-big { aspect-ratio: 3 / 2; max-width: 1320px; margin: 0 auto; }
.feature-row { display: grid; gap: var(--col-gap); max-width: 1320px; margin: var(--col-gap) auto 0; }
.feature-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-row--3 a { aspect-ratio: 2 / 3; }
.feature-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-row--2 a { aspect-ratio: 4 / 3; }
.feature-row--2.is-portrait a { aspect-ratio: 4 / 5; }
.feature-big + .feature-row { margin-top: var(--col-gap); }
.feature-more { margin: clamp(40px, 4.5vw, 64px) 0 0; text-align: center; }
.btn--line {
  background: transparent; color: var(--muted); border: 1.5px solid #a39b90;
  padding-inline: 34px;
}
.btn--line:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (max-width: 560px) {
  .feature-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .feature-title { font-weight: 400; letter-spacing: 0.16em; }
  .feature-row--2 { gap: 8px; }
}

/* texts reveal (transitions.dev #18) */
.t-stagger-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter var(--stagger-dur) var(--stagger-ease);
}
.t-stagger-line--2 { transition-delay: var(--stagger-stagger); }
.t-stagger-line--3 { transition-delay: calc(var(--stagger-stagger) * 2); }
.t-stagger-line--4 { transition-delay: calc(var(--stagger-stagger) * 3); }
.t-stagger.is-shown .t-stagger-line { opacity: 1; transform: translateY(0); filter: blur(0); }
.hero-actions.t-stagger-line { display: flex; }
.facts.t-stagger-line { display: grid; }
.no-js .t-stagger-line { opacity: 1; transform: none; filter: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 150px); }
.section--bone { background: var(--bone); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px;
  padding-bottom: clamp(28px, 3vw, 44px); margin-bottom: clamp(36px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.section-head p { color: var(--muted); max-width: 44ch; }

/* ---------- work grid ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: clamp(56px, 6vw, 96px);
}
.card { display: block; }
.card-frame { position: relative; overflow: hidden; background: var(--bone); aspect-ratio: 3 / 2; }
.card-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform 1100ms var(--ease);
}
.card:hover .card-frame img, .card:focus-visible .card-frame img { transform: scale(1.03); }
.card-meta { padding-top: 22px; }
.card-index { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.55em; font-variant-numeric: tabular-nums; }
.card-title { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.12; }
.card-title span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 96%;
  transition: background-size var(--hover-dur) var(--ease);
}
.card:hover .card-title span, .card:focus-visible .card-title span { background-size: 100% 1px; }
.card-sub { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.card:focus-visible { outline-offset: 8px; }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; row-gap: 56px; }
}

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.process li { border-top: 1px solid var(--ink); padding-top: 22px; }
.process .num { display: block; font-size: 0.75rem; letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.process h3 { margin: 18px 0 12px; }
.process p { color: var(--ink-2); font-size: 0.9375rem; max-width: 30ch; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; row-gap: 36px; } }

/* ---------- closing CTA ---------- */
.closing .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end; }
.closing h2 { grid-column: 1 / span 8; max-width: 16ch; }
.closing .closing-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.closing .closing-side p { color: var(--ink-2); }
@media (max-width: 900px) {
  .closing h2, .closing .closing-side { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .closing .btn { width: 100%; } }

/* ---------- footer ---------- */
.social-row { display: flex; justify-content: center; gap: 8px; padding: 8px 0 clamp(40px, 4vw, 56px); color: var(--ink-2); }
.social-row .icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.social-row .icon-link svg { width: 18px; height: 18px; }
.site-footer { background: var(--bone); padding: clamp(48px, 5vw, 72px) 0 40px; text-align: center; font-size: 0.875rem; color: var(--muted); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-line { margin: 0; line-height: 2; }
.footer-line a, .footer-small a { color: inherit; text-decoration: none; }
.footer-line a:hover, .footer-small a:hover, .footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-small { margin: 22px 0 0; font-size: 0.75rem; }
@media (max-width: 560px) {
  .footer-line span[aria-hidden] { display: block; height: 0; overflow: hidden; }
  .footer-line a { display: inline-flex; min-height: 40px; align-items: center; }
}

/* ---------- project page ---------- */
.project-head { padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.back-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: color 200ms ease;
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 350ms var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }
.project-head .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px; margin-top: clamp(28px, 4vw, 56px); align-items: end; }
.project-head h1 { grid-column: 1 / span 8; font-size: clamp(2.5rem, 5vw, 5rem); max-width: 18ch; }
.facts { grid-column: 9 / span 4; margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.facts dd { margin: 0; }
@media (max-width: 900px) {
  .project-head h1, .facts { grid-column: 1 / -1; }
}

.project-cover { margin: 0; }
.project-cover .frame { position: relative; overflow: hidden; background: var(--bone); max-height: 92svh; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.project-intro { padding-block: clamp(56px, 7vw, 112px); }
.project-intro .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.project-intro .lead { grid-column: 3 / span 8; }
@media (max-width: 900px) { .project-intro .lead { grid-column: 1 / -1; } }

.gallery { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 40px); padding-bottom: clamp(72px, 9vw, 140px); }
.g-row { display: flex; gap: clamp(20px, 2.4vw, 40px); align-items: flex-start; }
.g-row--single { justify-content: center; }
.g-row--single .g-item { max-width: min(100%, 72vh * var(--r)); }
.g-item { flex: var(--r) 1 0; min-width: 0; margin: 0; }
.g-item a { display: block; position: relative; overflow: hidden; background: var(--bone); cursor: zoom-in; }
.g-item img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform 1100ms var(--ease); }
.g-item a:hover img { transform: scale(1.02); }
.g-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: clamp(40px, 6vw, 96px); }
.g-text p { grid-column: 3 / span 6; }
.g-text--right p { grid-column: 6 / span 6; }
.g-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: center; }
.g-split .g-item { grid-column: 7 / span 6; }
.g-split .g-copy { grid-column: 1 / span 5; }
.g-split--flip .g-item { grid-column: 1 / span 6; grid-row: 1; }
.g-split--flip .g-copy { grid-column: 8 / span 5; grid-row: 1; }
@media (max-width: 760px) {
  .g-row { flex-direction: column; }
  .g-item { flex: none; width: 100%; }
  .g-row--single .g-item { max-width: 100%; }
  .g-text p, .g-text--right p { grid-column: 1 / -1; }
  .g-split .g-item, .g-split .g-copy, .g-split--flip .g-item, .g-split--flip .g-copy { grid-column: 1 / -1; grid-row: auto; }
}

/* share */
.share { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.share h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.share ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 0.875rem; color: var(--ink);
}
.share svg { width: 16px; height: 16px; flex: none; }

/* text morph (transitions.dev #33) */
.t-morph { white-space: nowrap; }
.t-morph-swap { display: inline-grid; vertical-align: bottom; justify-items: start; transition: width var(--text-morph-resize-dur) var(--text-morph-ease); }
.t-morph-swap > span { grid-area: 1 / 1; white-space: pre; transition: opacity var(--text-morph-dur) var(--text-morph-ease), filter var(--text-morph-dur) var(--text-morph-ease); }
.t-morph-new { opacity: 0; filter: blur(var(--text-morph-blur)); }
.t-morph-swap.is-morphing .t-morph-old { opacity: 0; filter: blur(var(--text-morph-blur)); }
.t-morph-swap.is-morphing .t-morph-new { opacity: 1; filter: blur(0); }

/* prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); padding-block: clamp(48px, 6vw, 96px); }
.pager a { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.pager .next { grid-column: 2; grid-template-columns: 1fr 120px; text-align: right; }
.pager .thumb { overflow: hidden; background: var(--bone); aspect-ratio: 1; }
.pager .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease); }
.pager a:hover .thumb img { transform: scale(1.03); }
.pager .label { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pager .title { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.15; }
.pager .next .t-learn { justify-content: flex-end; }
@media (max-width: 760px) {
  .pager { grid-template-columns: 1fr; row-gap: 28px; }
  .pager .next { grid-column: 1; }
  .pager a, .pager .next { grid-template-columns: 88px 1fr; text-align: left; }
  .pager .next .thumb { order: -1; }
  .pager .next .t-learn { justify-content: flex-start; }
}

/* ---------- lightbox (transitions.dev #06 modal) ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(22, 21, 19, 0.96); color: #f5f2ed;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-stage:focus { outline: none; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 7vw, 120px); }
.lb-stage img {
  max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain;
  transform-origin: center; transform: scale(var(--modal-scale)); opacity: 0;
  transition: transform var(--modal-open-dur) var(--modal-ease), opacity var(--modal-open-dur) var(--modal-ease);
}
.lightbox.is-open .lb-stage img.is-ready { transform: scale(1); opacity: 1; }
.lightbox.is-closing .lb-stage img { transform: scale(var(--modal-scale-close)); opacity: 0; transition-duration: var(--modal-close-dur); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(12px, 2vw, 28px); }
.lb-count { font-size: 0.8125rem; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: #b9b2a7; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 10px;
  background: none; border: 0; color: inherit; cursor: pointer; opacity: 0.8;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: opacity 200ms ease;
}
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(4px, 1.5vw, 24px); }
.lb-next { right: clamp(4px, 1.5vw, 24px); }
.lb-caption { min-height: 48px; padding: 8px clamp(12px, 7vw, 120px) 20px; text-align: center; font-size: 0.875rem; color: #b9b2a7; }
.lightbox :focus-visible { outline-color: #d9c7b0; }
@media (max-width: 760px) {
  .lb-nav { top: auto; bottom: 8px; transform: none; }
  .lb-stage { padding: 0; }
  .lb-caption { padding-inline: 64px; }
}

/* ---------- about ---------- */
.page-head { padding: clamp(40px, 6vw, 96px) 0 clamp(48px, 6vw, 96px); }
.page-head .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; align-items: end; }
.page-head h1 { grid-column: 1 / span 8; margin-top: 18px; max-width: 14ch; }
.page-head .lead { grid-column: 1 / span 7; }
.about-story .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.about-story .copy { grid-column: 1 / span 5; position: sticky; top: 40px; }
.about-story .copy h2 { margin-bottom: 28px; }
.about-story .pics { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.about-story .pics figure { margin: 0; overflow: hidden; background: var(--bone); }
.about-story .pics figure:first-child { grid-column: 1 / -1; }
.about-story .pics img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .page-head h1, .page-head .lead { grid-column: 1 / -1; }
  .about-story .copy { grid-column: 1 / -1; position: static; }
  .about-story .pics { grid-column: 1 / -1; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 64px; padding-bottom: clamp(80px, 10vw, 150px); }
.contact-info { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 36px; }
.contact-info h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-info address, .contact-info .big { font-variant-numeric: lining-nums; }
.contact-info address { font-style: normal; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.contact-info .people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-info .people li { display: flex; flex-direction: column; }
.contact-info .people .who { font-size: 0.875rem; color: var(--muted); }
.contact-info .big { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; display: inline-flex; align-items: center; min-height: 44px; }
.contact-info .socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.contact-info .socials a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-form-wrap { grid-column: 6 / span 7; }
@media (max-width: 960px) {
  .contact-info, .contact-form-wrap { grid-column: 1 / -1; }
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid #b7ad9e; border-radius: 0;
  font-size: 1.0625rem; line-height: 1.5;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8d8579; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.t-input { transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.field.is-error input, .field.is-error textarea { border-bottom-color: #9b3b2a; box-shadow: 0 1px 0 0 #9b3b2a; }
.t-input.is-shaking { animation: t-input-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear; }
@keyframes t-input-shake {
  0%      { transform: translateX(0); animation-timing-function: var(--shake-ease); }
  28.57%  { transform: translateX(var(--shake-distance)); animation-timing-function: var(--shake-ease); }
  57.14%  { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57%  { transform: translateX(var(--shake-overshoot)); animation-timing-function: var(--shake-ease); }
  100%    { transform: translateX(0); }
}
.field-error { font-size: 0.8125rem; color: #9b3b2a; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-foot .note { font-size: 0.8125rem; color: var(--muted); max-width: 40ch; }
.form-status { grid-column: 1 / -1; font-size: 0.9375rem; color: #9b3b2a; }
.form-status:empty { display: none; }

.form-done { display: none; padding: 40px 0; }
.form-done.is-shown { display: block; }
.form-done h2 { margin: 24px 0 14px; }
.form-done p { color: var(--ink-2); max-width: 46ch; }

/* success check (transitions.dev #10) */
.t-success-check { display: inline-block; transform-origin: center; opacity: 0; }
.t-success-check svg { display: block; overflow: visible; width: 56px; height: 56px; }
.t-success-check svg circle { fill: none; stroke: var(--line); stroke-width: 1.2; }
.t-success-check svg path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.t-success-check[data-state="in"] {
  animation:
    t-check-fade var(--check-opacity-dur) var(--check-ease-opacity) forwards,
    t-check-rotate var(--check-rotate-dur) var(--check-ease-rotate) forwards,
    t-check-blur var(--check-blur-dur) var(--check-ease-out) forwards,
    t-check-bob var(--check-bob-dur) var(--check-ease-bob) forwards;
}
.t-success-check[data-state="in"] svg path { animation: t-check-draw var(--check-path-dur) var(--check-ease-path) var(--check-path-delay, 0ms) forwards; }
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate { from { transform: rotate(var(--check-rotate-from)); } to { transform: rotate(0deg); } }
@keyframes t-check-blur { from { filter: blur(var(--check-blur-from)); } to { filter: blur(0); } }
@keyframes t-check-bob { from { translate: 0 var(--check-y-amount); } to { translate: 0 0; } }
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60svh; display: grid; align-content: center; gap: 28px; padding-block: 80px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .slide { transition: none !important; }
  .feature-banner img, .feature-big img, .feature-row img { transition: none !important; transform: none !important; }
  .t-stagger-line { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .card-frame img, .g-item img, .pager .thumb img { transition: none !important; transform: none !important; }
  .t-learn-chevron, .t-learn-arm, .t-morph-swap, .t-morph-swap > span { transition: none !important; }
  .lb-stage img { transition: none !important; }
  .t-input { animation: none !important; transform: none !important; }
  .t-success-check { animation: none !important; opacity: 1; }
  .t-success-check svg path { animation: none !important; stroke-dashoffset: 0 !important; }
  .nav { transition: none !important; }
}

@media print {
  .site-header nav, .menu-toggle, .share, .pager, .closing, .lightbox { display: none !important; }
  body { background: #fff; }
}
