/* ==========================================================================
   Haynes & Pine — one-page site
   1. Tokens          6. Statement + work    11. Contact + form
   2. Base            7. Detail pause        12. Footer
   3. Type + labels   8. What we build       13. Gallery (dialog)
   4. Buttons/links   8b. Mantel study       14. Motion
   5. Header + hero  10. Trade / philosophy  15. Privacy + utilities
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ivory:     #F4EFE6;
  --bone:      #EAE3D6;
  --charcoal:  #24221F;
  --ink:       #181614;   /* warm near-black */
  --walnut:    #4B3426;
  --oak:       #7A5A40;   /* button fill */
  --oak-deep:  #654832;
  --brass:     #A88A5C;   /* used sparingly: hairline accents only */
  --text:      #24221F;
  --text-soft: #5D5750;
  --text-dim:  #8A8279;
  --on-dark:   #EEE8DD;
  --on-dark-soft: rgba(238, 232, 221, 0.66);
  --line:      rgba(36, 34, 31, 0.16);
  --line-dark: rgba(238, 232, 221, 0.18);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1440px;
  --gutter: clamp(1.25rem, 4.2vw, 4rem);
  --space: clamp(4.5rem, 9vw, 8.5rem);      /* vertical section rhythm */
  --header-h: 6rem;
  --bleed: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2));   /* shell edge to viewport edge */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

[hidden] { display: none !important; }
.site-main { overflow-x: clip; }
.site-main:focus { outline: none; }
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* 3. Type + labels
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.label {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.label span::after { content: "/"; margin-left: 0.7em; color: var(--text-dim); }
.label--light { color: var(--on-dark-soft); }
.label--light span::after { color: rgba(238, 232, 221, 0.4); }

/* 4. Buttons + links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 280ms var(--ease), color 280ms var(--ease);
}
.btn--solid { background: var(--oak); color: #F7F2EA; }
.btn--solid:hover { background: var(--oak-deep); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-block: 0.6rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 420ms var(--ease);
}
.link-arrow::after { content: "\2192"; font-size: 0.95rem; letter-spacing: 0; transition: transform 420ms var(--ease); }
.link-arrow:hover { background-size: calc(100% - 1.6em) 1px; }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--light { color: var(--on-dark); }

/* 5. Header + hero
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 0.75rem 1rem; font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--text);
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.2) blur(10px); }
}
body[data-header="overlay"] .site-header { position: fixed; inset: 0 0 auto 0; }
body[data-header="overlay"] .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent; border-color: transparent; color: var(--on-dark); backdrop-filter: none;
}
.site-header__inner {
  padding-inline: var(--gutter);   /* full width, so the logo lines up with the hero copy */
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
}

/* Header brand: [pine icon] [wordmark / tagline]. Footer keeps its own lockup. */
.brand { display: flex; align-items: center; gap: clamp(0.65rem, 0.9vw, 0.9rem); margin-right: auto; min-width: 0; }
.brand picture { flex: none; display: block; }
.brand__pine { height: clamp(2.9rem, 3.9vw, 3.75rem); width: auto; transition: filter 400ms var(--ease); }
.brand__text { display: grid; gap: 0.45rem; min-width: 0; }
.site-header .brand__mark { width: clamp(11.75rem, 18vw, 17.5rem); }
.brand__mark { height: auto; transition: filter 400ms var(--ease); }
.brand__tag {
  font: 500 0.5rem/1 var(--sans); letter-spacing: 0.21em; text-transform: uppercase; opacity: 0.72;
  white-space: nowrap;
}
.site-header .brand__tag { font-size: 0.56rem; letter-spacing: 0.19em; opacity: 0.9; transition: opacity 400ms var(--ease); }

/* the wordmark artwork is dark ink: tint it over dark surfaces */
.site-footer .brand__mark { filter: brightness(0) invert(0.93) sepia(0.12); }
body[data-header="overlay"] .site-header:not(.is-scrolled) .brand__mark,
.site-header.is-open .brand__mark { filter: brightness(0) invert(1) sepia(0.08) drop-shadow(0 1px 6px rgba(20, 15, 10, 0.35)); }
body[data-header="overlay"] .site-header:not(.is-scrolled) .brand__tag { opacity: 1; text-shadow: 0 1px 6px rgba(20, 15, 10, 0.45); }
/* the pine's mid-tone greens sink into the warm photo: lift them while over the hero / dark menu only */
body[data-header="overlay"] .site-header:not(.is-scrolled) .brand__pine,
.site-header.is-open .brand__pine { filter: brightness(1.85) contrast(1.05) drop-shadow(0 1px 5px rgba(20, 15, 10, 0.4)); }

@media (max-width: 30em) {
  .brand { gap: 0.6rem; }
  .site-header .brand__tag { font-size: 0.5rem; letter-spacing: 0.13em; }
}

.site-nav__list { display: flex; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.site-nav__link {
  font: 500 0.72rem/1 var(--sans); letter-spacing: 0.08em;
  padding-block: 0.5rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 380ms var(--ease);
}
.site-nav__link:hover { background-size: 100% 1px; }
.site-header__cta { padding: 0.85rem 1.3rem; }

.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; margin-right: -0.6rem; }
.menu-toggle__icon { display: grid; gap: 6px; width: 1.4rem; margin: auto; }
.menu-toggle__icon span { height: 1px; background: currentColor; transition: transform 300ms var(--ease), opacity 200ms; }
.site-header.is-open .menu-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--ink); color: var(--on-dark);
  opacity: 0; visibility: hidden;
  transition: opacity 360ms var(--ease), visibility 0s 360ms;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 360ms var(--ease); }
.mobile-menu__inner { padding: 2rem var(--gutter) 3rem; display: grid; gap: 3rem; }
.mobile-nav li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav__link {
  display: flex; align-items: baseline; gap: 1.25rem; padding: 1.1rem 0;
  font: 400 2.1rem/1 var(--serif);
}
.mobile-nav__link span { font: 500 0.65rem/1 var(--sans); letter-spacing: 0.18em; color: var(--on-dark-soft); }
.mobile-menu__foot { display: grid; gap: 1.25rem; justify-items: start; }
.mobile-menu__foot p { font-size: 0.85rem; color: var(--on-dark-soft); max-width: 22rem; }
.mobile-menu li, .mobile-menu__foot { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--i) * 45ms + 80ms); }
.mobile-menu.is-open li, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
/* backdrop-filter would make the header the containing block for the fixed menu */
.site-header.is-open { background: var(--ink); color: var(--on-dark); border-color: var(--line-dark); backdrop-filter: none; }

@media (max-width: 63.99em) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 5rem; }
}
@media (min-width: 64em) { .mobile-menu { display: none; } }

/* Hero — the photograph is shown as-is: no filters, no full overlay.
   Two restrained gradients only: a soft lower-left one behind the copy
   and a thin top one behind the navigation. */
.hero {
  position: relative;
  height: clamp(36rem, 100svh, 64vw);
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 88% at 0% 100%, rgba(24, 18, 12, 0.7) 0%, rgba(24, 18, 12, 0.42) 48%, rgba(24, 18, 12, 0) 100%),
    linear-gradient(180deg, rgba(24, 18, 12, 0.46) 0%, rgba(24, 18, 12, 0) 17%),
    radial-gradient(ellipse 30% 20% at 0% 0%, rgba(24, 18, 12, 0.32) 0%, rgba(24, 18, 12, 0) 100%);   /* behind the logo */
}
.hero__content {
  position: relative; z-index: 1;
  width: 100%;   /* anchored to the left edge at every width, clear of the fireplace wall */
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(3rem, 8vh, 5.5rem);
}
.hero__title {
  font: 400 clamp(2.9rem, 5.3vw, 6rem)/0.96 var(--serif);
  letter-spacing: -0.018em;
  text-shadow: 0 1px 24px rgba(20, 15, 10, 0.28);
}
.hero__line { display: block; }
.hero__lede {
  margin-top: clamp(1.25rem, 2.6vh, 1.9rem);
  max-width: 28rem;
  font-size: clamp(0.95rem, 1.05vw, 1.03rem);
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.92);
  text-shadow: 0 1px 14px rgba(20, 15, 10, 0.35);
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }

/* phones and portrait tablets: image on top (left built-in + fireplace),
   copy on the dark band beneath */
@media (max-width: 47.99em), (max-aspect-ratio: 5/4) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__media { position: relative; height: 54svh; min-height: 21rem; flex: none; }
  .hero__media img { object-position: 76% 50%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(24, 18, 12, 0.56) 0%, rgba(24, 18, 12, 0) 22%),
      linear-gradient(0deg, var(--ink) 0%, rgba(24, 22, 20, 0.55) 16%, rgba(24, 22, 20, 0) 34%);
  }
  .hero__content { margin-top: -4.5rem; padding: 0 var(--gutter) 2.75rem; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__title { font-size: clamp(2.5rem, 7.5vw + 1rem, 4.2rem); }
  .hero__actions { margin-top: 1.75rem; }
}

/* 6. Brand statement — quiet, type only
   -------------------------------------------------------------------------- */
.statement { padding-block: var(--space) clamp(3.5rem, 7vw, 6rem); }
.statement__grid { display: grid; gap: 1.75rem; }
.statement__text {
  font-size: clamp(1.85rem, 3.3vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em;
  max-width: 26ch; color: var(--charcoal);
}
@media (min-width: 64em) {
  .statement__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: start; }
  .statement__label { grid-column: 1 / 4; padding-top: 1rem; }
  .statement__text { grid-column: 4 / 13; }
}

/* 6b. Selected work — varied scale, real projects
   -------------------------------------------------------------------------- */
.work { padding-block: clamp(3rem, 6vw, 5rem) var(--space); border-top: 1px solid var(--line); }
.work__head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.work__grid { display: grid; gap: 3rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { grid-column: 1 / -1; margin: 0; }
.tile--a { margin-inline: calc(-1 * var(--gutter)); }               /* phones: lead image edge to edge */
.tile--a .tile__cap { padding-inline: var(--gutter); }
.tile--c, .tile--e { grid-column: auto; }
.tile--d { order: 5; }
.work__more { order: 6; }
.tile__media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); background: var(--bone); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__cap, .gallery__item figcaption { display: grid; gap: 0.2rem; margin-top: 0.9rem; }
.tile__name { font: 500 1.2rem/1.2 var(--serif); }
.tile__loc { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-soft); }
.tile__desc { margin-top: 0.35rem; max-width: 34rem; font-size: 0.82rem; line-height: 1.55; color: var(--text-soft); }
.work__more { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

@media (min-width: 48em) {
  .work__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem 1.5rem; align-items: start; }
  .tile--a { grid-column: 1 / 9; margin-inline: 0; }
  .tile--a .tile__cap { padding-inline: 0; }
  .tile--b { grid-column: 9 / 13; margin-top: clamp(4rem, 9vw, 9rem); }
  .tile--c { grid-column: 1 / 5; }
  .tile--d { grid-column: 5 / 10; margin-top: clamp(3rem, 6vw, 6rem); order: 0; }
  .tile--e { grid-column: 10 / 13; margin-top: clamp(6rem, 13vw, 13rem); }
  .work__more { grid-column: 10 / 13; order: 0; margin-top: -2rem; }
}
@media (min-width: 64em) {
  .tile--a { grid-column: 1 / 9; margin-left: calc(-1 * var(--bleed)); }   /* lead image meets the viewport edge */
  .tile--a .tile__cap { padding-left: var(--bleed); }
  .tile--c { grid-column: 2 / 5; }
}

/* 7. Detail pause
   -------------------------------------------------------------------------- */
.pause {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  min-height: clamp(19rem, 34vw, 30rem);
  display: grid; align-items: center;
}
.pause__media { position: absolute; inset: -12% 0 -12% 30%; }
.pause__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: sepia(0.28) saturate(0.9) brightness(0.58) contrast(1.15); }
.pause::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 28%, rgba(24, 22, 20, 0.55) 52%, rgba(40, 26, 16, 0.15) 100%);
}
.pause__text {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin-inline: auto; padding: 4rem var(--gutter);
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
}
.pause__title { font-size: clamp(2.3rem, 4.4vw, 4.2rem); }
.rule { display: block; height: 1px; width: clamp(3rem, 7vw, 6.5rem); background: var(--line); transform-origin: left; flex: none; }
.rule--light { background: rgba(168, 138, 92, 0.75); }
@media (max-width: 47.99em) {
  .pause__media { inset: -10% 0 -10% 0; }
  .pause::after { background: linear-gradient(0deg, rgba(24, 22, 20, 0.88) 12%, rgba(24, 22, 20, 0.1) 75%); }
  .pause__media img { filter: sepia(0.25) saturate(0.9) brightness(0.72) contrast(1.15); }
  .pause__text { align-self: end; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* 8. What we build
   -------------------------------------------------------------------------- */
.build { padding-block: var(--space); }
.build__grid { display: grid; gap: 3rem; }
.build__list { margin-top: 2rem; border-top: 1px solid var(--line); counter-reset: none; }
.build__item {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; column-gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 300ms var(--ease);
}
.build__n { font: 500 0.7rem/1 var(--sans); letter-spacing: 0.14em; color: var(--text-dim); }
.build__name { font: 400 clamp(1.35rem, 2vw, 1.75rem)/1.2 var(--serif); }
.build__item::after { grid-column: 3; grid-row: 1; content: "\2192"; font-size: 0.95rem; color: var(--text-dim); opacity: 0; transform: translateX(-6px); transition: opacity 300ms, transform 300ms var(--ease); }
.build__note {
  grid-column: 2 / -1; grid-row: 2;
  font-size: 0.85rem; color: var(--text-soft);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 500ms var(--ease), opacity 400ms var(--ease), margin 500ms var(--ease);
}
.build__item[aria-pressed="true"] .build__note { max-height: 3rem; opacity: 1; margin-top: 0.4rem; }
.build__item[aria-pressed="true"]::after,
.build__item:hover::after { opacity: 1; transform: none; color: var(--oak); }
.build__item[aria-pressed="true"] .build__n { color: var(--oak); }
.build__list:hover .build__item:not(:hover):not([aria-pressed="true"]) { color: var(--text-dim); }

.build__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.build__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity 700ms var(--ease), transform 1400ms var(--ease);
}
.build__img.is-active { opacity: 1; transform: none; }

@media (min-width: 64em) {
  .build__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .build__media { aspect-ratio: 4 / 4.2; margin-right: calc(-1 * var(--gutter)); }
}
@media (max-width: 63.99em) {
  /* phones: the image leads, the list follows; the note shows on the active item only */
  .build__media { order: -1; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; }
  .build__list-wrap { order: 0; }
  .build__grid { gap: 2rem; }
  .build__grid .label { margin-top: 0; }
  .build__list-wrap { display: flex; flex-direction: column; }
}

/* 8b. Custom Mantel — fabrication study (bone ground: the process chapter)
   Phones: lead edge to edge, then one image at a time; corner + layering pair.
   -------------------------------------------------------------------------- */
.mantel { background: var(--bone); padding-block: var(--space); }
.mantel .mantel__inner > * + * { margin-top: clamp(3rem, 6vw, 5.5rem); }
.mantel__head { display: grid; gap: 2rem; }
.mantel__headline { margin-top: 1.5rem; font-size: clamp(2.5rem, 4.4vw, 4.4rem); }
.mantel__intro { display: grid; gap: 0.6rem; align-content: end; max-width: 30rem; }
.mantel__name { font: 400 1.4rem/1.2 var(--serif); }
.mantel__sub { font-size: 0.82rem; color: var(--text-soft); }
.mantel__p { margin-top: 0.75rem; font-size: 0.92rem; color: var(--text-soft); }

.mantel__fig { margin: 0; }
.mantel__media { overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); background: var(--ivory); }
.mantel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.mantel__fig:hover .mantel__media img { transform: scale(1.03); }
.mantel__cap { margin-top: 0.85rem; display: flex; gap: 0.6rem; font: 500 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.mantel__cap span { color: var(--text-dim); }
.mantel__cap span::after { content: "/"; margin-left: 0.6rem; }
.mantel__note { font-size: 0.8rem; color: var(--text-soft); }

.mantel__fig--lead .mantel__media     { --ratio: 4 / 3; }
.mantel__fig--raw .mantel__media      { --ratio: 1 / 1; }
.mantel__fig--fab .mantel__media      { --ratio: 16 / 9; }
.mantel__fig--profile .mantel__media  { --ratio: 4 / 5; }
.mantel__fig--corner .mantel__media   { --ratio: 4 / 5; }
.mantel__fig--layering .mantel__media { --ratio: 4 / 5; }
.mantel__fig--final .mantel__media    { --ratio: 4 / 5; }

.mantel__fig--lead { margin-inline: calc(-1 * var(--gutter)); }
.mantel__row, .mantel__details { display: grid; gap: 3rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mantel__row > *, .mantel__fig--profile { grid-column: 1 / -1; }
.mantel__end { display: grid; gap: 1.25rem; }
.mantel__end .mantel__note { order: 2; }

@media (min-width: 48em) {
  .mantel__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: end; }
  .mantel__title { grid-column: 1 / 8; }
  .mantel__intro { grid-column: 8 / 13; }
  .mantel__fig--lead { margin-inline: 0; }
  .mantel__fig--lead .mantel__media { --ratio: 16 / 10; }
  .mantel__row, .mantel__details { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
  .mantel__fig--raw { grid-column: 1 / 7; }
  .mantel__fig--fab { grid-column: 7 / 13; margin-top: clamp(4rem, 8vw, 8rem); }
  .mantel__fig--profile  { grid-column: 1 / 6; }
  .mantel__fig--corner   { grid-column: 6 / 9; }
  .mantel__fig--corner .mantel__media { --ratio: 1 / 1; }
  .mantel__fig--layering { grid-column: 9 / 13; margin-top: clamp(5rem, 10vw, 9rem); }
  .mantel__end { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: end; }
  .mantel__end .mantel__note { order: 0; grid-column: 1 / 6; grid-row: 1; padding-bottom: 2.5rem; max-width: 18rem; }
  .mantel__fig--final { grid-column: 7 / 13; grid-row: 1; }
}
@media (min-width: 64em) {
  .mantel__fig--lead { margin-right: calc(-1 * var(--bleed)); }           /* bleeds to the right edge */
  .mantel__fig--final { margin-right: calc(-1 * var(--bleed)); }
}

/* 10. Trade collaboration (dark) + philosophy (type only)
   -------------------------------------------------------------------------- */
.trade { background: var(--ink); color: var(--on-dark); padding-block: clamp(5rem, 10vw, 9rem); }
.trade__grid { display: grid; gap: 3.5rem; }
.trade__title { margin-top: 1.5rem; font-size: clamp(2.7rem, 5vw, 4.9rem); }
.trade__cta { margin-top: 2.25rem; }
.trade__list { border-bottom: 1px solid var(--line-dark); }
.trade__item {
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; row-gap: 0.4rem; align-items: baseline;
  padding: 1.5rem 0; border-top: 1px solid var(--line-dark);
}
.trade__n { font: 500 0.66rem/1 var(--sans); letter-spacing: 0.16em; color: rgba(168, 138, 92, 0.85); }
.trade__name { font: 400 clamp(1.85rem, 3.2vw, 3rem)/1.05 var(--serif); letter-spacing: -0.01em; transition: color 400ms var(--ease); }
.trade__note { grid-column: 2; font-size: 0.88rem; line-height: 1.6; color: var(--on-dark-soft); max-width: 24rem; }
.trade__item:hover .trade__name { color: #F7F1E6; }

@media (min-width: 64em) {
  .trade__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: start; }
  .trade__head { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 2rem); }
  .trade__list { grid-column: 6 / 13; }
  .trade__item { grid-template-columns: 3rem 1fr 15rem; padding: 1.9rem 0; }
  .trade__note { grid-column: 3; grid-row: 1; align-self: center; }
}

.philosophy { padding-block: var(--space); }
.philosophy__grid { display: grid; gap: 2rem; }
.philosophy__title { font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: 0.98; }
.philosophy__text { display: grid; gap: 1.5rem; max-width: 26rem; }
.philosophy__p { color: var(--text-soft); }
.philosophy__sig { font: 400 1.25rem/1 var(--serif); display: flex; align-items: baseline; gap: 0.75rem; }
.philosophy__sig span { font: 500 0.62rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); }

@media (min-width: 64em) {
  .philosophy__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: end; }
  .philosophy__label { grid-column: 1 / -1; }
  .philosophy__title { grid-column: 1 / 9; margin-top: 1rem; }
  .philosophy__text { grid-column: 9 / 13; padding-bottom: 0.6rem; }
}

/* 11. Contact + form
   -------------------------------------------------------------------------- */
.contact { padding-block: var(--space); background: var(--bone); }
.contact__start { margin-top: 0.5rem; }
.contact__grid { display: grid; gap: 3rem; }
.contact__title { margin-top: 1.5rem; font-size: clamp(2.3rem, 3.8vw, 3.6rem); max-width: 14ch; }
.contact__sub { margin: 1.1rem 0 1.75rem; font: 400 1.3rem/1.35 var(--serif); color: var(--text-soft); }

@media (min-width: 64em) {
  .contact__grid { grid-template-columns: 4fr 8fr; column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .contact__lead { position: sticky; top: calc(var(--header-h) + 2rem); }
  .form { border-left: 1px solid var(--line); padding-left: clamp(2rem, 4vw, 3.5rem); }
}

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; gap: 1.6rem 1.5rem; }
@media (min-width: 40em) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
@media (min-width: 64em) { .form__grid { grid-template-columns: repeat(3, 1fr); } }

.field { display: grid; align-content: start; gap: 0.35rem; min-width: 0; }
.field__label { font: 500 0.64rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); }
.field__opt { letter-spacing: 0.08em; text-transform: none; color: var(--text-dim); margin-left: 0.3em; }
.field__input {
  width: 100%;
  font: 400 1rem/1.4 var(--sans); color: var(--text);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 0;
  transition: border-color 300ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: var(--text-dim); opacity: 0.8; }
.field__input:focus { outline: none; border-bottom-color: var(--walnut); }
.field__input:focus-visible { box-shadow: 0 1px 0 0 var(--walnut); }
.field__input[aria-invalid="true"] { border-bottom-color: #9A3B2A; }
.field__select {
  padding-right: 1.5rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235D5750'/%3E%3C/svg%3E") right 0.2rem center / 10px 6px no-repeat;
}
.field__textarea { resize: vertical; min-height: 5.5rem; }
.field__error { font-size: 0.78rem; color: #9A3B2A; }

.upload { position: relative; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.upload.is-dragover { border-bottom-color: var(--walnut); }
.upload__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__input:focus-visible + .upload__label { outline: 1px solid currentColor; outline-offset: 3px; }
.upload__label { font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.upload__hint { font-size: 0.72rem; color: var(--text-dim); }
.upload__list { display: grid; gap: 0.3rem; }
.upload__item { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; }
.upload__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__item small { margin-left: 0.5rem; color: var(--text-dim); }
.upload__remove { font-size: 0.72rem; text-decoration: underline; color: var(--text-soft); }

.form__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.form__foot .field__error { flex-basis: 100%; order: 2; }
.form__status { flex-basis: 100%; font-size: 0.85rem; color: var(--text-soft); order: 3; }
.form__status:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.82rem; color: var(--text-soft); cursor: pointer; }
.consent input { accent-color: var(--oak); margin-top: 0.2rem; }
.form__summary { margin-bottom: 1.75rem; padding: 1rem 0 1rem 1.1rem; border-left: 2px solid #9A3B2A; font-size: 0.88rem; }
.form__summary ul { margin-top: 0.4rem; display: grid; gap: 0.25rem; }
.form__summary a { text-decoration: underline; }
.form__success { align-self: center; }
.form__success:focus { outline: none; }
.form__success-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }

/* 12. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer__inner {
  max-width: var(--max); margin-inline: auto; padding: clamp(3rem, 5vw, 4rem) var(--gutter) 2rem;
  display: grid; gap: 2.25rem;
}
.site-footer__brand { display: grid; gap: 0.5rem; justify-items: start; }
.site-footer__brand .brand__mark { width: 11rem; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 0.78rem; letter-spacing: 0.06em; }
.site-footer__nav a:hover, .site-footer__legal a:hover { color: #fff; }
.site-footer__area { display: grid; gap: 0.75rem; font-size: 0.8rem; color: var(--on-dark-soft); max-width: 22rem; }
.site-footer__contact, .site-footer__social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer__k { display: none; }
.site-footer__legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: 0.72rem; color: var(--on-dark-soft);
}
@media (min-width: 64em) {
  .site-footer__inner { grid-template-columns: 4fr 4fr 4fr; align-items: center; }
  .site-footer__nav ul { justify-content: center; }
  .site-footer__area { justify-self: end; border-left: 1px solid var(--line-dark); padding-left: 2rem; }
}

/* 13. Galleries (native dialog)
   -------------------------------------------------------------------------- */
.gallery {
  width: min(72rem, 100vw); max-width: 100vw; max-height: 100dvh; height: 100dvh;
  margin: 0 0 0 auto; padding: 0 var(--gutter) 4rem;
  border: 0; background: var(--ivory); color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
}
.gallery::backdrop { background: rgba(24, 22, 20, 0.72); }
.gallery[open] { animation: gallery-in 520ms var(--ease); }
@keyframes gallery-in { from { transform: translateX(3rem); opacity: 0; } }
.gallery__bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; background: var(--ivory); border-bottom: 1px solid var(--line);
}
.gallery__close { font: 500 0.68rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; padding: 0.6rem 0; }
.gallery__title { margin: 2.5rem 0 1rem; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.gallery__loc { font-size: 0.45em; color: var(--text-soft); margin-left: 0.5rem; letter-spacing: 0; }
.gallery__p { max-width: 36rem; color: var(--text-soft); margin-bottom: 2rem; }
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; margin-top: 2rem; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bone); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 3 / 2; }
@media (min-width: 48em) { .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; } }

/* 14. Motion — subtle reveal, image settle, line draw
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="image"] { transform: none; clip-path: inset(6% 0 0 0); transition: opacity 1000ms var(--ease), clip-path 1300ms var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="image"] img { transform: scale(1.06); transition: transform 1600ms var(--ease); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transition: transform 1200ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js [data-reveal="image"].is-visible img { transform: none; }
.js .tile:hover [data-reveal] img, .js [data-reveal="image"].is-visible.tile:hover img { transform: scale(1.03); }

/* hero entrance */
.js .hero__line, .js .hero__lede, .js .hero__actions { opacity: 0; transform: translateY(22px); animation: rise 1100ms var(--ease) forwards; animation-delay: calc(200ms + var(--i) * 120ms); }
.js .hero__media img { transform: scale(1.03); animation: settle 2400ms var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-delay: 0ms !important; }
}

/* 15. Privacy page + utilities
   -------------------------------------------------------------------------- */
.legal { padding-block: clamp(3.5rem, 8vw, 7rem) var(--space); }
.legal .container { max-width: 44rem; margin-inline: auto; padding-inline: var(--gutter); }
.legal__head { padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.legal__title { margin-top: 1.5rem; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.legal__meta { margin-top: 1.25rem; font: 500 0.68rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.legal__lede { margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-soft); }
.legal__section { padding-block: clamp(2rem, 4vw, 2.75rem); border-bottom: 1px solid var(--line); }
.legal__section:last-child { border-bottom: 0; }
.legal__section h2 { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--serif); letter-spacing: -0.01em; }
.legal__section h3 { margin-top: 1.5rem; font: 500 0.68rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); }
.legal__section p, .legal__section ul { margin-top: 0.9rem; font-size: 0.97rem; line-height: 1.7; color: var(--text); }
.legal__section ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: 0.4rem; }
.legal__section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color 300ms var(--ease); }
.legal__section a:hover { text-decoration-color: currentColor; }
@media (min-width: 64em) {
  .legal .container { max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
  .legal__head, .legal__section { grid-column: 3 / 10; }
}

.page-intro { padding-block: clamp(4rem, 10vw, 8rem); }
.page-intro .container { max-width: 48rem; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 0.68rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); }
.page-intro__title { margin: 1.5rem 0; font: 400 clamp(2.5rem, 5vw, 4rem)/1.02 var(--serif); }
.page-intro__p { color: var(--text-soft); }

.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;
}
