/* ==========================================================================
   McDermott Fine Woodworking
   Palette is sampled from the work itself: the logo ink, the walnut, and the
   red lacquer inside the reading stand. The page background is set to the
   same near-white as the photo seamless so pieces float without a visible
   edge — the work sits on the page the way it would sit in a gallery.
   ========================================================================== */

:root {
  --paper:      #f1f3f7;
  --paper-lift: #f7f8fb;
  --ink:        #0c1b21;
  --ink-70:     rgba(12, 27, 33, 0.70);
  --ink-50:     rgba(12, 27, 33, 0.50);
  --ink-35:     rgba(12, 27, 33, 0.35);
  --rule:       rgba(12, 27, 33, 0.14);
  --rule-soft:  rgba(12, 27, 33, 0.08);
  --lacquer:    #7c2d2a;
  --walnut:     #8a604a;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 62ch;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 620ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 100;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

/* The small, wide-tracked uppercase label used for categories, specs and
   nav — the connective tissue of the whole site. */
.label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0;
}

.lede {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 32ch;
  text-wrap: pretty;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* --- Shell ------------------------------------------------------------- */

.wrap { padding-inline: var(--gutter); }
.wrap--narrow { max-width: 60rem; margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: 0.75rem; }

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

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), padding 300ms var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  padding-block: 0.8rem;
}

.wordmark { display: block; flex: 0 0 auto; }
.wordmark img {
  width: clamp(150px, 17vw, 230px);
  transition: width 300ms var(--ease);
}
.site-header[data-scrolled="true"] .wordmark img { width: clamp(132px, 13vw, 178px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-70);
  padding-block: 0.35rem;
  position: relative;
  transition: color 200ms var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav__ig { display: inline-flex; }
.nav__ig svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

@media (max-width: 44rem) {
  .nav {
    position: fixed; inset: 0 0 auto; top: 0;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    min-height: 100svh;
    background: var(--paper);
    transform: translateY(-100%);
    transition: transform 460ms var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { font-size: 1rem; letter-spacing: 0.1em; }
  .nav-toggle {
    display: block; position: relative; z-index: 60;
    background: none; border: 0; padding: 0.5rem; cursor: pointer;
    font: inherit; font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  }
}

/* --- Opening ------------------------------------------------------------
   Matt's brief, and the Square Manufacturing rule: one large photograph of
   the work with the logo above it, and nothing else competing for it.     */

.opening {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  min-height: calc(100svh - 5.5rem);
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.opening__mark { width: min(74vw, 27rem); height: auto; }

/* On the home page the wordmark is already the largest thing on screen, so
   the one in the header stays out of the way until you scroll past it. */
.is-home .site-header .wordmark {
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}
.is-home .site-header[data-scrolled="true"] .wordmark {
  opacity: 1;
  pointer-events: auto;
}
.opening__figure { margin: 0; }
.opening__figure img {
  height: min(58svh, 38rem);
  width: auto;
  max-width: 88vw;
  object-fit: contain;
}
.opening__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink-35);
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 240ms var(--ease);
}
.opening__scroll:hover { color: var(--ink); }
.opening__scroll svg { animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge {
  0%, 62%, 100% { transform: translateY(0); }
  76% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) { .opening__scroll svg { animation: none; } }

@media (max-width: 40rem) {
  .opening__figure img { height: min(48svh, 26rem); }
}

/* --- Statement band -----------------------------------------------------
   The Rivian effect: one line of type laid across a photograph in
   difference blend mode, so it darkens over the pale seamless and lightens
   over the wood. One element, no boxes, no scrim.                         */

.statement {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(78svh, 44rem);
  overflow: hidden;
}
.statement > img {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.statement__line {
  grid-area: 1 / 1;
  /* Sits above centre so the line reads against the open upper part of the
     photograph rather than across the middle of the piece. */
  align-self: start;
  margin: clamp(2.5rem, 17svh, 11rem) 0 0;
  padding-inline: var(--gutter);
  max-width: 22ch;
  text-align: center;
  font-size: clamp(1.75rem, 5.4vw, 4.25rem);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
@supports not (mix-blend-mode: difference) {
  .statement__line { mix-blend-mode: normal; color: var(--ink); }
}

/* --- Sections ---------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* --- Work grid (click-through portfolio) --------------------------------
   Wales & Wales hover: the row is quiet until you approach it, then the
   piece names itself. Titles are always in the DOM for screen readers.   */

/* Two generous columns rather than four small ones: the catalogue is short,
   and a lone piece in a category should read as a plate, not a stamp. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(26rem, 100%), 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

.piece-card { position: relative; }
.piece-card a {
  display: block; text-decoration: none; color: inherit;
}
.piece-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-lift);
  aspect-ratio: 4 / 5;
}
.piece-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease), opacity 300ms var(--ease);
}
.piece-card a:hover .piece-card__frame img,
.piece-card a:focus-visible .piece-card__frame img { transform: scale(1.032); }

.piece-card__caption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.piece-card a:hover .piece-card__caption,
.piece-card a:focus-visible .piece-card__caption { opacity: 1; transform: none; }

.piece-card__title { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.piece-card__cat { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-50); white-space: nowrap; }

/* Quiet editorial text that keeps a one-piece row from looking unfinished. */
.grid-note {
  align-self: center;
  max-width: 30ch;
  padding-block: 1rem;
}
.grid-note .label { margin-bottom: 0.7rem; }
.grid-note p:last-child {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-70);
  text-wrap: pretty;
}
@media (max-width: 44rem) { .grid-note { display: none; } }

/* On touch devices there is no hover — show the caption permanently. */
@media (hover: none) {
  .piece-card__caption { opacity: 1; transform: none; }
}

/* --- Gallery (no click-through, grouped by category) -------------------- */

.gallery-group { padding-block: clamp(2rem, 5vw, 4.5rem); }
.gallery-group + .gallery-group { border-top: 1px solid var(--rule); }

.gallery-group__head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.gallery-group__head h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.gallery-group__head p { margin: 0; color: var(--ink-70); max-width: 40ch; }

/* A deliberately irregular gallery — pieces are not all the same size,
   so the wall has rhythm instead of a spreadsheet. */
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  align-items: start;
}
.gallery-wall figure { margin: 0; grid-column: span 2; }
.gallery-wall figure:nth-child(6n + 1) { grid-column: span 3; }
.gallery-wall figure:nth-child(6n + 4) { grid-column: span 3; }
.gallery-wall img { width: 100%; background: var(--paper-lift); }
.gallery-wall figcaption {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  align-items: baseline;
  padding-top: 0.7rem;
  font-size: 0.8125rem; color: var(--ink-70);
}
.gallery-wall figcaption b { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.gallery-wall figcaption span { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-35); }

@media (max-width: 60rem) {
  .gallery-wall { grid-template-columns: repeat(4, 1fr); }
  .gallery-wall figure,
  .gallery-wall figure:nth-child(6n + 1),
  .gallery-wall figure:nth-child(6n + 4) { grid-column: span 2; }
}
@media (max-width: 34rem) {
  .gallery-wall { grid-template-columns: 1fr; }
  .gallery-wall figure,
  .gallery-wall figure:nth-child(6n + 1),
  .gallery-wall figure:nth-child(6n + 4) { grid-column: span 1; }
}

/* --- Category filter --------------------------------------------------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  align-items: baseline;
}
.filters a {
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-35);
  padding-block: 0.3rem;
  transition: color 200ms var(--ease);
}
.filters a:hover { color: var(--ink-70); }
.filters a[aria-current="true"] { color: var(--ink); }

/* --- Piece detail ------------------------------------------------------ */

.piece-head {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 56rem) {
  .piece-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
}
.piece-head h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
.piece-head__meta { display: grid; gap: 0.35rem; }

/* Variant A — one big plate, details beneath.
   No panel behind the photograph: these are shot on seamless already, and a
   second background just boxes the piece in. */
.plate { display: grid; place-items: center; }
.plate img { width: auto; max-height: min(80svh, 50rem); max-width: 100%; }

.plate-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
  margin-top: clamp(0.75rem, 1.8vw, 1.5rem);
}
.plate-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-lift); }

/* Variant B — the triptych: three detail photographs, equal weight */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
}
.triptych figure { margin: 0; }
.triptych img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-lift); }
.triptych figcaption { padding-top: 0.65rem; font-size: 0.75rem; color: var(--ink-50); }
@media (max-width: 48rem) { .triptych { grid-template-columns: 1fr; } }

/* --- Specifications ---------------------------------------------------- */

.piece-body {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 56rem) {
  .piece-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.specs { border-top: 1px solid var(--ink); padding-top: 0.9rem; }
.specs dl { margin: 0; display: grid; }
.specs div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule-soft);
}
.specs dt {
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50);
  padding-top: 0.18rem;
}
.specs dd { margin: 0; }
@media (max-width: 30rem) { .specs div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* --- Inquiry block (Wales & Wales: talk to the maker, don't fill a form) */

.inquire {
  border-top: 1px solid var(--ink);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}
.inquire h2 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); margin-bottom: 0.6rem; }
.inquire p { color: var(--ink-70); margin: 0 0 1.4rem; max-width: 34ch; }

.contact-lines { display: grid; gap: 0.15rem; }
.contact-lines a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  background-image: linear-gradient(var(--lacquer), var(--lacquer));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 380ms var(--ease), color 200ms var(--ease);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.contact-lines a:hover, .contact-lines a:focus-visible {
  color: var(--lacquer);
  background-size: 100% 1px;
}

/* --- Buttons / links --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.arrow-link svg { transition: transform 300ms var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* --- Landing page: all the work ----------------------------------------
   Every piece is a row of photographs. The row is quiet until you approach
   it, then it names itself — Wales & Wales. The whole row is one link.     */

.cat {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  /* Footer links jump straight to a category; without this the heading lands
     underneath the sticky site header. */
  scroll-margin-top: var(--header-h, 4.5rem);
}
#work { scroll-margin-top: var(--header-h, 4.5rem); }
.cat:first-child { padding-top: clamp(1rem, 3vw, 2rem); }

/* Pins beneath the site header for as long as this category is on screen,
   so the category changes under you as you scroll. */
.cat__head {
  position: sticky;
  top: var(--header-h, 4.5rem);
  z-index: 20;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.35rem 2rem;
  margin-inline: var(--gutter);
  padding-block: 0.85rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}
.cat__head h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.cat__head .label { color: var(--ink-35); }

.piece-row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-inline: var(--gutter);
  padding-block: 0 clamp(1.75rem, 4vw, 3.25rem);
}

/* A justified row: flex-grow is each photo's aspect ratio, so the row lands
   on one shared height without cropping anything. */
.piece-row__photos {
  display: flex;
  gap: clamp(0.5rem, 1.2vw, 1.1rem);
  align-items: stretch;
}
.piece-row__photos figure {
  margin: 0;
  min-width: 0;
  flex: var(--ar) 1 0;
  overflow: hidden;
  background: var(--paper-lift);
}
.piece-row__photos img {
  width: 100%; height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.piece-row:hover .piece-row__photos img,
.piece-row:focus-visible .piece-row__photos img { transform: scale(1.022); }

.piece-row__meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.4rem 1.5rem;
  padding-top: 0.9rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.piece-row:hover .piece-row__meta,
.piece-row:focus-visible .piece-row__meta { opacity: 1; transform: none; }

.piece-row__title {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.piece-row__cue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-50);
}

/* No hover on touch, so the row always says what it is. */
@media (hover: none) {
  .piece-row__meta { opacity: 1; transform: none; }
}

@media (max-width: 44rem) {
  .piece-row__photos { flex-direction: column; }
  .piece-row__photos figure { flex: none; }
}

/* --- Timeline (about) --------------------------------------------------- */

.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
  padding-block: clamp(1.1rem, 2.6vw, 1.9rem);
  border-top: 1px solid var(--rule);
  position: relative;
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 44rem) {
  .timeline li { grid-template-columns: 6rem minmax(0, 1fr); }
}
@media (min-width: 62rem) {
  .timeline li { grid-template-columns: 6rem minmax(0, 1fr) 22rem; align-items: start; }
}

.timeline__media { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.timeline__media figure { margin: 0; flex: 1 1 9rem; }
.timeline__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--paper-lift);
}
.timeline li:not(:has(.timeline__media figure)) .timeline__media { display: none; }
.timeline__year {
  font-family: var(--serif); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.02em;
  color: var(--ink-35);
  font-variant-numeric: tabular-nums;
  transition: color 300ms var(--ease);
}
.timeline li:hover .timeline__year { color: var(--lacquer); }
.timeline h3 { font-size: 1.125rem; margin-bottom: 0.3rem; }
.timeline p { margin: 0; color: var(--ink-70); max-width: 52ch; }

/* --- Footer ------------------------------------------------------------
   Square Manufacturing's rule: you are never more than a glance away from
   being able to contact the maker. This sits on every page.              */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 2rem;
  margin-top: auto;
}
.site-footer__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); }
}
.site-footer h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.9rem; max-width: 18ch; }
.site-footer nav { display: grid; gap: 0.5rem; }
.site-footer nav a {
  text-decoration: none; color: var(--ink-70);
  font-size: 0.8125rem;
  transition: color 200ms var(--ease);
  justify-self: start;
}
.site-footer nav a:hover { color: var(--ink); }

.colophon {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-35);
}

.page { display: flex; flex-direction: column; min-height: 100svh; }
main { flex: 1 0 auto; }

/* --- Reveal on scroll --------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- Review-mode variant switcher --------------------------------------
   Visible only while site.reviewMode is true in src/_data/site.json.
   Set it to false (or delete the include) before the site goes live.     */

.review-bar {
  position: fixed; z-index: 80;
  left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(12, 27, 33, 0.22);
  max-width: calc(100vw - 2rem);
}
.review-bar[hidden] { display: none; }
.review-bar span { opacity: 0.55; white-space: nowrap; }
.review-bar a {
  padding: 0.35rem 0.75rem; border-radius: 999px;
  text-decoration: none; color: var(--paper);
  border: 1px solid rgba(241, 243, 247, 0.28);
  white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.review-bar a:hover { background: var(--paper); color: var(--ink); }
.review-bar a[aria-current="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.review-bar button {
  background: none; border: 0; color: var(--paper); opacity: 0.55;
  cursor: pointer; font: inherit; padding: 0.35rem 0.5rem;
}
.review-bar button:hover { opacity: 1; }

/* --- About --------------------------------------------------------------- */

.about-lede { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.about-lede .label { margin-bottom: 1.2rem; }
.about-lede h1 { font-size: clamp(1.875rem, 5.6vw, 4.25rem); max-width: 18ch; }

.about-intro {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
@media (min-width: 56rem) {
  .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
}
.about-figure figure { margin: 0; }
.about-figure img { width: 100%; background: var(--paper-lift); }
.about-figure figcaption { padding-top: 0.7rem; }

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

.contact-page {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 56rem) {
  .contact-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.contact-page__title { font-size: clamp(2.25rem, 6.5vw, 4.5rem); }
.contact-page__details { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
