/* Excede Finishing: homepage. Every block sits on the 12-column grid from site.css: main content starts on
   column 1, secondary text on column 9, halves split at column 7. Each section head is laid out differently,
   and only the hero sets a title on the left against text from column 9. */

.home main { display: block; }
.design, .closer, .wk--more { --focus: var(--on-dark); }

/* ---------- Line reveals ----------
   Headings are split into masked words in the HTML itself (a screen-reader copy sits beside them), so the
   lines are final from the first paint and nothing moves when the script arrives. */
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.rise .w > span { display: inline-block; }
.hero__title .ln { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w > span { animation: rise 1.15s var(--ease) both; animation-delay: calc(0.12s + var(--i, 0) * 42ms); }
  .hero__aside > * { animation: fadeUp 1s var(--ease) both; animation-delay: 0.55s; }
  .hero__aside > * + * { animation-delay: 0.67s; }
  /* home-ready, not js: the words wait only once js/home.js is running, so a late script never leaves them hidden */
  .home-ready .closer__title .w > span { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease) calc(var(--i, 0) * 42ms); }
  .home-ready .closer__title.in .w > span { transform: none; }
}
@keyframes rise { from { transform: translate3d(0, 108%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
/* Set by js/home.js on things further down the page, never on anything in the first screen */
.fx { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.fx.in { opacity: 1; transform: none; }
.rv { opacity: 0; transition: opacity 1.2s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; }
/* Keyboard focus never lands on something still waiting to appear (js/home.js also reveals on focus). The slow
   staggered fade is dropped for a quick one, so the focused control shows at once. */
.fx:focus-within, .rv:focus-within { opacity: 1; transform: none; transition-duration: 0.2s; transition-delay: 0s; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6.5vw, 108px); }
.hero__type { align-items: end; row-gap: 40px; }
.hero__title { grid-column: 1 / span 8; }
.hero__aside { grid-column: 9 / span 4; display: grid; gap: 32px; padding-bottom: 0.4vw; }
.hero__aside .lede { font-size: clamp(1.02rem, 1.2vw, 1.15rem); }
/* The scene is the scroll distance the photograph holds still for while the light changes. Without the
   script, or with reduced motion, it is a plain photograph and the light buttons switch it instead. */
.hero__scene { position: relative; margin-top: clamp(48px, 6vw, 96px); }
.has-scene .hero__scene { height: 250vh; height: 250svh; }
.hero__frame {
  position: relative; margin: 0;
  height: clamp(420px, 80vh, 960px);
  overflow: hidden; background: var(--linen);
  clip-path: inset(0 var(--in, var(--edge)) round var(--r, 2px));
}
.has-scene .hero__frame { position: sticky; top: 0; height: 100vh; height: 100svh; }
.hero__img { position: absolute; inset: 0; transform: scale(var(--zoom, 1)); transform-origin: 56% 58%; will-change: transform; }
.hero__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__shot--golden, .hero__shot--evening { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__img > picture:first-child > .hero__shot { animation: heroIn 2.4s var(--ease) both; }
}
@keyframes heroIn { from { transform: scale(1.08); } }
.hero__shade {
  position: absolute; inset: auto 0 0; height: 50%; pointer-events: none; opacity: var(--ui, 0);
  background: linear-gradient(to top, rgba(14, 9, 5, 0.7), rgba(14, 9, 5, 0));
}
.hero__light {
  --focus: #fff;
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 56px);
  align-items: end; row-gap: 20px; color: #fff;
  opacity: var(--ui, 0); pointer-events: none;
}
.hero__light.is-on { pointer-events: auto; }
/* a still photograph keeps its inset, so the controls step in from its edge */
html:not(.has-scene) .hero__light { padding-inline: calc(var(--margin) + clamp(16px, 2vw, 32px)); }
/* keyboard focus brings the controls up even before the photograph has opened out */
.hero__light:focus-within { opacity: 1; pointer-events: auto; }
.hero__frame:focus-within .hero__shade { opacity: 1; }
/* Without scripts: the photograph stays still, and controls that need the script are not shown */
html:not(.js) .hero__light, html:not(.js) .hero__shade, html:not(.js) .stage__live, html:not(.js) .styles, html:not(.js) .board-wrap { display: none; }
.hero__clock { grid-column: 1 / span 6; }
.hero__times { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 2.4vw, 40px); }
.hero__times button {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 300 clamp(1.35rem, 2.1vw, 2.15rem)/1.1 var(--f-display); letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  transition: color 0.5s, text-decoration-color 0.5s;
}
.hero__times button:hover { color: #fff; }
.hero__times button[aria-pressed='true'] { color: #fff; text-decoration-color: currentColor; }
/* The still photograph (reduced motion) keeps its light labels over the bright counter, so it gets a deeper
   shade and brighter, heavier labels with a soft shadow: at least 4.5:1 on the darkest tenth of the pixels
   behind each label, in all three lights. */
html:not(.has-scene) .hero__shade { height: 72%; background: linear-gradient(to top, rgba(14, 9, 5, 0.82), rgba(14, 9, 5, 0.5) 50%, rgba(14, 9, 5, 0)); }
html:not(.has-scene) .hero__times button { color: rgba(255, 255, 255, 0.92); font-weight: 400; text-shadow: 0 1px 14px rgba(14, 9, 5, 0.55); }
html:not(.has-scene) .hero__times button[aria-pressed='true'] { color: #fff; }
.hero__track { display: block; height: 1px; margin-top: 16px; background: rgba(255, 255, 255, 0.3); }
.hero__track i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--t, 0)); }
html:not(.has-scene) .hero__track { display: none; }
.hero__try { grid-column: 9 / span 4; justify-self: start; color: #fff; }
.hero__foot { padding-top: 18px; font-size: 14px; color: var(--muted); }
.hero__cap { grid-column: 1 / span 6; }

/* ---------- Statement: no heading, one paragraph across eleven columns ---------- */
.intro { padding: clamp(120px, 16vw, 248px) 0 clamp(104px, 13vw, 200px); }
.intro__text {
  grid-column: 1 / span 11;
  font: 300 clamp(1.85rem, 3.5vw, 3.7rem)/1.13 var(--f-display);
  letter-spacing: -0.02em; color: var(--ink);
  text-indent: calc(var(--colg) * 2);
}
.intro__text .wd { transition: opacity 0.25s linear; }
.intro__link { grid-column: 9 / span 4; justify-self: start; margin-top: clamp(48px, 6vw, 88px); }

/* ---------- Design in 3D: the head is the style list (columns 1 to 4), the render from column 6 ---------- */
.design { background: var(--walnut); color: var(--on-dark-2); padding: clamp(96px, 12vw, 184px) 0; }
.design h2 { color: var(--on-dark); }
.design__grid { align-items: start; row-gap: 40px; }
.design__side { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: clamp(32px, 3vw, 48px); }
.design__title { font-size: clamp(2.1rem, 3.5vw, 3.8rem); }
.styles { display: grid; border-top: 1px solid var(--line-dark); }
.style {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 54px;
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; background: none;
  cursor: pointer; text-align: left; color: var(--on-dark);
}
.style__name {
  flex: 1; display: flex; align-items: center;
  font: 300 clamp(1.3rem, 1.75vw, 1.8rem)/1.1 var(--f-display); letter-spacing: -0.015em;
  opacity: 0.66; transition: opacity 0.4s;
}
.style__name::before { content: ''; width: 0; height: 1px; background: currentColor; margin-right: 0; transition: width 0.6s var(--ease), margin 0.6s var(--ease); }
.style:hover .style__name { opacity: 0.85; }
.style[aria-checked='true'] .style__name { opacity: 1; }
.style[aria-checked='true'] .style__name::before { width: 24px; margin-right: 14px; }
.style:focus-visible { outline-offset: -2px; }
.style__sw { display: inline-flex; gap: 3px; flex: none; }
.style__sw i { width: 12px; height: 12px; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(243, 236, 225, 0.2); }
.style:not([aria-checked='true']) .style__sw { opacity: 0.6; }
.design__cta { display: grid; gap: 14px; justify-items: start; }
.design__cta .small { color: var(--on-dark-2); }

.stage { grid-column: 6 / span 7; margin: 0; }
.stage__view { position: relative; aspect-ratio: 1200 / 780; border-radius: 2px; overflow: hidden; background: #2a2829; isolation: isolate; }
.stage__layers, .stage__gl { position: absolute; inset: 0; }
.stage__layers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.stage__layers img.is-on { opacity: 1; }
.stage__gl { opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.stage__gl canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; cursor: grab; }
.stage__gl canvas:active { cursor: grabbing; }
.stage__gl .gl-fade { pointer-events: none; opacity: 0; }
.is-live .stage__gl { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
/* Under the picture: what the style is made of, then the controls. Nothing sits on the render itself. */
.stage__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px clamp(20px, 2.4vw, 40px); padding-top: 22px; }
.stage__say { min-height: 2.8em; max-width: 30em; font: 350 clamp(1.08rem, 1.3vw, 1.28rem)/1.4 var(--f-display); letter-spacing: -0.005em; color: var(--on-dark); transition: opacity 0.35s; }
.stage__say.swap { opacity: 0; }
.stage__tools { display: flex; align-items: center; gap: 10px; }
.stage__live, .stage__pause {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 2px; background: transparent; cursor: pointer;
  font: 600 14.5px/1 var(--f-body); color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(243, 236, 225, 0.42);
  transition: background 0.25s, box-shadow 0.25s;
}
.stage__live:hover, .stage__pause:hover { background: rgba(243, 236, 225, 0.08); box-shadow: inset 0 0 0 1px var(--on-dark); }
.stage__live svg { width: 22px; height: 22px; flex: none; }
.stage__pause[hidden] { display: none; }
.stage__hint { display: none; font-size: 14px; font-weight: 500; color: var(--on-dark-2); transition: opacity 0.5s; }
.stage__hint:focus { outline: none; }
.is-loading .stage__live, .is-live .stage__live, .no-webgl .stage__live, .is-live .stage__pause { display: none; }
.is-live .stage__hint { display: block; }
.is-live .stage__hint.is-gone { opacity: 0; }
.stage__load { grid-column: 1 / -1; display: none; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: var(--on-dark); }
.stage__load:focus { outline: none; }
.stage__load i { width: 120px; height: 1px; background: var(--line-dark); overflow: hidden; }
.stage__load b { display: block; height: 100%; background: var(--on-dark); transform-origin: left; transform: scaleX(0.04); transition: transform 0.4s var(--ease); }
.is-loading .stage__load { display: flex; }

/* ---------- Process: an oversized line across the measure, then sticky pictures beside the steps ---------- */
.process { background: var(--linen); padding: clamp(96px, 12vw, 184px) 0; }
.process__title { font-size: clamp(2.5rem, 6.2vw, 6.9rem); max-width: 13em; }
.process__body { margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.process__visual {
  grid-column: 1 / span 6; position: sticky; top: calc(var(--head-h) + 28px);
  height: min(calc(100vh - var(--head-h) - 56px), 820px); min-height: 440px;
}
.pv { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper); clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-io); }
.pv:nth-child(1) { z-index: 1; } .pv:nth-child(2) { z-index: 2; } .pv:nth-child(3) { z-index: 3; } .pv:nth-child(4) { z-index: 4; }
.pv.is-on { clip-path: inset(0 0 0 0); }
.pv img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.pv.is-on img { transform: none; }
.pv--sketch, .step__img--sketch {
  display: grid; place-items: center;
  background-color: #f5f5f2;
  background-image: linear-gradient(rgba(0, 55, 120, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 55, 120, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pv__sheet { width: 78%; padding: 10px; background: var(--paper); border-radius: 2px; box-shadow: 0 28px 50px -28px rgba(42, 31, 24, 0.55), 0 2px 6px rgba(42, 31, 24, 0.08); transform: rotate(-1.6deg); }
.pv__sheet svg { width: 100%; height: auto; }
/* the drawing's shape (viewBox 1200 x 780) until js/kitchen.js draws it */
.pv__sheet:empty::before { content: ''; display: block; aspect-ratio: 1200 / 780; }
/* Step 3: the wood stain samples from the sample board, laid on the same grid paper as the sketch in step 1 */
.pv--samples, .step__img--samples {
  display: grid; place-items: center;
  background-color: #f5f5f2;
  background-image: linear-gradient(rgba(0, 55, 120, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 55, 120, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pv__swatches { display: flex; align-items: flex-start; gap: 5%; width: 74%; }
.pv__swatches img {
  flex: 1 1 0; min-width: 0; width: auto; height: auto; aspect-ratio: 300 / 840; object-fit: cover;
  border-radius: 1px; box-shadow: 0 1px 1px rgba(30, 20, 12, 0.18), 0 14px 22px -12px rgba(30, 20, 12, 0.45);
}
.pv .pv__swatches img, .pv.is-on .pv__swatches img { transform: rotate(var(--r, 0deg)); transition: none; }
.step__img .pv__swatches img { width: auto; height: auto; }
.pv__swatches picture:nth-child(1) img { --r: -1.6deg; }
.pv__swatches picture:nth-child(2) img { --r: 1deg; margin-top: 4%; }
.pv__swatches picture:nth-child(3) img { --r: -0.6deg; margin-top: 1.5%; }
.pv__swatches picture:nth-child(4) img { --r: 1.8deg; margin-top: 5%; }
.step__img--samples .pv__swatches { width: 62%; }
/* The step number stands in the margin, in column 7, beside the picture */
.pv__num {
  position: absolute; top: -0.12em; left: calc(100% + var(--gap)); width: calc(var(--colg) - var(--gap));
  font: 300 clamp(4rem, 8.4vw, 9.4rem)/1 var(--f-display); letter-spacing: -0.04em; color: var(--ink);
  font-variant-numeric: lining-nums;
}
.pv__num span { display: inline-block; transition: opacity 0.3s; }
.pv__num span.swap { opacity: 0; }
.steps { grid-column: 9 / span 4; list-style: none; }
.step { padding: 22vh 0; opacity: 0.8; transition: opacity 0.6s; }
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 22vh; }
.step.is-on { opacity: 1; }
.step__n { display: none; }
.step h3 { margin-bottom: 18px; font-size: clamp(1.7rem, 2.4vw, 2.5rem); font-weight: 300; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); }
.step__img { display: none; margin: 0 0 24px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.process__more { grid-column: 9 / span 4; }

/* ---------- Work: the gallery first, its head underneath like a caption line ---------- */
.work {
  --h: clamp(300px, 40vw, 660px);
  --pad: max(var(--margin), calc((100% - var(--max)) / 2));
  padding: clamp(96px, 12vw, 184px) 0; overflow: hidden;
}
/* Without the script this is a plain sideways scroller; with it, the track moves on transforms with
   momentum and soft snapping (js/home.js). The first picture starts on the grid's left edge. */
.work__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.work__viewport::-webkit-scrollbar { display: none; }
.work__viewport:focus { outline: none; }
.work__viewport:focus-visible .wk__img, .work__viewport:focus-visible .wk--more { outline: 2px solid var(--focus); outline-offset: 3px; }
.work__track { position: relative; display: flex; gap: var(--gap); align-items: flex-start; width: max-content; padding: 0 var(--pad); }
.is-carousel .work__viewport { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.is-carousel .work__track { transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
@media (hover: hover) and (pointer: fine) { .is-carousel .work__viewport { cursor: grab; } }
.is-carousel .work__viewport.is-dragging, .is-carousel .work__viewport.is-dragging a { cursor: grabbing; }
.wk { flex: none; margin: 0; scroll-snap-align: start; }
.wk__img { height: var(--h); overflow: hidden; border-radius: 2px; background: var(--linen); }
.wk__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 1.2s var(--ease); -webkit-user-drag: none; }
.wk:hover .wk__img img { transform: scale(1.03); }
.is-dragging .wk__img img { transform: scale(0.985); transition-duration: 0.6s; }
.wk--wide { width: calc(var(--h) * 1.49); }
.wk--tall { width: calc(var(--h) * 0.8); }
.wk--square { width: var(--h); }
.wk figcaption { display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; gap: 4px 20px; padding-top: 16px; }
.wk__name { font: 350 clamp(1.15rem, 1.5vw, 1.45rem)/1.2 var(--f-display); color: var(--ink); letter-spacing: -0.01em; }
.wk__look { font-size: 14.5px; color: var(--muted); }
.wk__start { justify-self: start; margin-top: 8px; font-size: 14.5px; }
/* the wide pictures have room for the link beside the caption */
.wk--wide figcaption { grid-template-columns: minmax(0, 1fr) auto; }
.wk--wide .wk__look { grid-column: 1; }
.wk--wide .wk__start { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 0; }
.wk--more { width: calc(var(--h) * 0.8); height: var(--h); border-radius: 2px; background: var(--walnut); color: var(--on-dark); transition: background 0.3s; }
.wk--more:hover { background: var(--walnut-2); }
.wk__more { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: clamp(24px, 2.6vw, 40px); color: inherit; text-decoration: none; }
.wk__more:focus-visible { outline-offset: -8px; }
.wk__more-t { font: 300 clamp(1.7rem, 2.6vw, 2.7rem)/1.08 var(--f-display); letter-spacing: -0.02em; }
.wk--more .link { align-self: flex-start; color: var(--on-dark); }
.work__head { align-items: center; row-gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.work__title { grid-column: 1 / span 7; grid-row: 1; font-size: clamp(2.2rem, 4vw, 4.2rem); }
.work__progress { grid-column: 9 / span 2; grid-row: 1; position: relative; display: block; height: 1px; background: var(--line-2); overflow: hidden; }
.work__progress i { position: absolute; left: 0; top: 0; height: 100%; width: 30%; background: var(--ink); will-change: transform; }
.work__btns { grid-column: 11 / span 2; grid-row: 1; justify-self: end; display: flex; gap: 8px; }
html:not(.is-carousel) .work__progress, html:not(.is-carousel) .work__btns { display: none; }
.sq {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 2px; background: transparent; cursor: pointer; color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.sq:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
/* An end button keeps focus, so it dims its arrow and border, never its focus ring */
.sq[aria-disabled='true'] { cursor: default; background: transparent; color: rgba(28, 30, 34, 0.3); border-color: var(--line); }
.sq svg { width: 16px; height: 16px; }
/* A small label that trails the pointer over the gallery; its position is set every frame by the script */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; margin: 18px 0 0 18px;
  display: grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 2px; pointer-events: none;
  background: var(--ink); color: var(--plaster); font-size: 13.5px; font-weight: 600;
  translate: -300px -300px; opacity: 0; transition: opacity 0.25s;
}
.cursor.is-on { opacity: 1; }

/* ---------- Materials: the words on the left, the sample board from column 6 ---------- */
.materials { background: var(--linen); padding: clamp(96px, 12vw, 184px) 0; }
.materials__grid { align-items: center; row-gap: 56px; }
.materials__copy { grid-column: 1 / span 4; display: grid; gap: 28px; justify-items: start; }
.materials__copy h2 { font-size: clamp(2.1rem, 3.5vw, 3.8rem); }
.board-wrap { grid-column: 6 / span 7; }
.sample-board {
  position: relative; aspect-ratio: 7 / 5; list-style: none; margin: 0; padding: 0;
  border-radius: 2px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%), #f1ebe1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 40px 80px -48px rgba(42, 31, 24, 0.55), 0 2px 6px rgba(42, 31, 24, 0.06);
}
.sample-board::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .44 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sb { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); z-index: var(--z, 1); }
.sb button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(calc(var(--r, 0) * 1deg)); transform-origin: var(--o, 50% 50%);
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.sb img { width: 100%; height: auto; }
.sb--flat button { box-shadow: 0 1px 1px rgba(30, 20, 12, 0.18), 0 10px 18px -10px rgba(30, 20, 12, 0.45); border-radius: 1px; }
.sb--flat img { border-radius: 1px; }
.sb--metal button { filter: drop-shadow(0 6px 6px rgba(30, 20, 12, 0.32)); }
.sb:hover, .sb:focus-within { z-index: 20; }
.sb button:hover, .sb button:focus-visible { transform: rotate(calc(var(--r, 0) * 1deg)) translateY(-6px) scale(1.04); }
.sb--flat button:hover { box-shadow: 0 2px 2px rgba(30, 20, 12, 0.16), 0 26px 30px -16px rgba(30, 20, 12, 0.5); }
.sb--paint button:hover, .sb--paint button:focus-visible { transform: rotate(calc(var(--r, 0) * 1deg)) translateY(-14px); }
.chip { display: block; aspect-ratio: 5 / 7; border-radius: 1px; background: var(--c); position: relative; overflow: hidden; }
/* a painted Shaker sample: rails and stiles around a recessed panel */
.chip::before { content: ''; position: absolute; inset: 15% 18%; box-shadow: inset 1px 1px 1.5px rgba(0, 0, 0, 0.28), inset -1px -1px 1px rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.chip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.1)); }
.sample-name { display: flex; align-items: center; gap: 14px; margin-top: 22px; min-height: 26px; font-size: 15px; color: var(--ink-2); }
.sample-name::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; flex: none; }
.sample-name b { color: var(--ink); font-weight: 600; }

/* ---------- Beyond the kitchen: one oversized line, then two cards off the grid's halves ---------- */
.more { padding: clamp(96px, 12vw, 184px) 0; }
.more .grid { align-items: start; }
.more__title { grid-column: 1 / span 10; margin-bottom: clamp(56px, 7vw, 112px); font-size: clamp(2.4rem, 5vw, 5.4rem); }
.mc { display: grid; gap: 14px; text-decoration: none; color: var(--ink-2); }
.mc--a { grid-column: 1 / span 5; }
.mc--b { grid-column: 7 / span 6; margin-top: clamp(96px, 16vw, 280px); }
.mc__img { overflow: hidden; border-radius: 2px; margin-bottom: 14px; background: var(--linen); }
.mc--a .mc__img { aspect-ratio: 4 / 5; }
.mc--b .mc__img { aspect-ratio: 3 / 2; }
.mc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mc:hover .mc__img img { transform: scale(1.035); }
.mc h3 { font-weight: 300; font-size: clamp(1.6rem, 2.3vw, 2.4rem); letter-spacing: -0.02em; max-width: 16em; }
.mc p { max-width: 30em; }
.mc .link { margin-top: 10px; justify-self: start; }
.mc:hover .link { animation: underline 0.7s var(--ease); }
.mc:hover .link svg { transform: translateX(3px); }

/* ---------- People and place: the names are the head, the map from column 9 ---------- */
.contact { background: var(--linen); padding: clamp(96px, 12vw, 184px) 0; }
.contact .grid { align-items: start; row-gap: 64px; }
.contact__people { grid-column: 1 / span 7; }
.contact__people h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.people { list-style: none; border-top: 1px solid var(--line-2); }
.people a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 24px;
  padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid var(--line-2); text-decoration: none; position: relative;
}
.people a::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.people a:hover::before { transform: scaleX(1); }
.people__name { font: 300 clamp(1.9rem, 3.4vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.025em; color: var(--ink); transition: transform 0.6s var(--ease); }
.people a:hover .people__name { transform: translateX(14px); }
.people__how { font-size: 15.5px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.people svg { width: 18px; height: 18px; color: var(--ink); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.5s var(--ease); }
.people a:hover svg, .people a:focus-visible svg { opacity: 1; transform: none; }
.contact__place { grid-column: 9 / span 4; display: grid; gap: 28px; padding-top: clamp(8px, 1vw, 16px); }
.map { margin: 0; aspect-ratio: 524 / 404; color: var(--ink); border-radius: 2px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.map svg { width: 100%; height: 100%; }
.map__rings circle { stroke: var(--ink); stroke-opacity: 0.18; stroke-dasharray: 2 5; }
.map__rings text { font: 500 14px var(--f-body); fill: var(--muted); }
.map__roads path { stroke: var(--ink); stroke-opacity: 0.2; stroke-width: 1.4; }
.map__towns circle { fill: var(--ink); fill-opacity: 0.55; }
.map__towns circle.city { fill-opacity: 0.8; }
.map__towns text { font: 500 16px var(--f-body); fill: var(--ink-2); }
.map__towns text.city { font: 400 23px var(--f-display); fill: var(--ink); }
.map__shop circle { fill: var(--oxblood); }
.map__shop .pulse { fill: var(--oxblood); fill-opacity: 0.16; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) 3; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.map__shop .shop { font: 400 27px var(--f-display); fill: var(--ink); letter-spacing: -0.01em; }
.map__shop .shop-sub { font: 600 15px var(--f-body); fill: var(--oxblood); }
.contact__addr { display: grid; gap: 12px; justify-items: start; font-size: 15.5px; }
.contact__addr b { color: var(--ink); font-weight: 600; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 6px; }

/* ---------- Closer ---------- */
.closer { position: relative; min-height: clamp(560px, 92vh, 980px); display: flex; align-items: flex-end; overflow: hidden; color: var(--on-dark); background: var(--walnut); }
.closer__img { position: absolute; inset: -10% 0 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.closer__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.closer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 13, 8, 0) 30%, rgba(20, 13, 8, 0.78) 100%); }
.closer__in { position: relative; z-index: 1; padding-bottom: clamp(48px, 7vw, 104px); row-gap: 36px; }
.closer__title { grid-column: 1 / span 9; color: #f5f5f2; font-size: clamp(2.6rem, 5.6vw, 5.8rem); }
.closer__ctas { grid-column: 1 / span 8; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Narrow desktop: the header nav is gone, the sections keep their columns ---------- */
@media (max-width: 1239px) {
  .process__title { max-width: 11em; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .hero__title, .hero__aside, .more__title, .contact__people, .contact__place, .closer__title, .closer__ctas,
  .materials__copy, .board-wrap, .work__title { grid-column: 1 / -1; }
  .hero__aside, .materials__copy { grid-column: 1 / span 9; }
  .hero__cap { grid-column: 1 / span 9; }
  .intro__text, .intro__link { grid-column: 1 / -1; }
  /* the style list moves under the render: title, render, styles, button */
  .design__side { display: contents; }
  .design__title { grid-column: 1 / span 10; order: 0; }
  .stage { grid-column: 1 / -1; order: 1; }
  .styles { grid-column: 1 / -1; order: 2; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .design__cta { grid-column: 1 / -1; order: 3; }
  .process__visual { display: none; }
  .steps { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px var(--gap); }
  .step, .step:first-child, .step:last-child { padding: 0; opacity: 1; }
  .step__n { display: block; margin-bottom: 12px; font: 300 clamp(3rem, 7vw, 4.4rem)/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); }
  .step__img { display: block; }
  .step__img--sketch, .step__img--samples { display: grid; }
  .process__more { grid-column: 1 / -1; margin-top: 56px; }
  /* the title takes the first row; the progress line and the arrows share the second */
  .work__title { grid-row: 1; }
  .work__progress { grid-column: 1 / span 8; grid-row: 2; align-self: center; }
  .work__btns { grid-column: 9 / span 4; grid-row: 2; align-self: center; }
  .mc--a { grid-column: 1 / span 6; }
  .mc--b { grid-column: 7 / span 6; margin-top: clamp(64px, 12vw, 160px); }
  .contact__place { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--gap); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hero__title .ln { display: inline; }
  .hero__aside, .materials__copy, .hero__cap { grid-column: 1 / -1; }
  .has-scene .hero__scene { height: 200vh; height: 200svh; }
  .hero__frame { height: 62vh; }
  .hero__shot { object-position: 50% 50%; }
  .hero__clock, .hero__try { grid-column: 1 / -1; }
  .hero__times { gap: 2px 18px; }
  .intro__text { text-indent: 0; }
  .design__title { grid-column: 1 / -1; }
  .stage__cap { grid-template-columns: 1fr; }
  .styles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .work { --h: calc(82vw * 1.25); }
  .wk, .wk--wide, .wk--tall, .wk--square, .wk--more { width: 82vw; }
  .wk__img { height: auto; aspect-ratio: 4 / 5; }
  .wk__img img { object-position: var(--pos, 50% 50%); }
  .wk--more { height: auto; aspect-ratio: 4 / 5; }
  .wk--wide figcaption { grid-template-columns: 1fr; }
  .wk--wide .wk__start { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .work__progress { grid-column: 1 / span 7; }
  .work__btns { grid-column: 8 / span 5; }
  .mc--a, .mc--b { grid-column: 1 / -1; margin-top: 0; }
  .mc--b { margin-top: 56px; }
  .contact__place { grid-template-columns: 1fr; }
  .people a { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .people svg { display: none; }
  .people__how { font-size: 14px; }
  .closer { min-height: 82vh; }
  .closer__ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fx, .rv { opacity: 1; transform: none; }
  .home-ready .closer__title .w > span { transform: none; }
  .map__shop .pulse { animation: none; opacity: 0.4; }
  .stage__layers img { transition: none; }
}

/* ---------- Print: the page as a plain document ----------
   The scroll scene prints as one still photograph, the 3D stage and the sticky process pictures are left out,
   each step prints its own picture, the gallery prints as a grid, and nothing waits to appear. Ink, buttons
   and screen-only controls are handled in css/site.css. */
@media print {
  .fx, .rv, .intro__text .wd { opacity: 1 !important; transform: none !important; }
  .rise .w > span, .hero__aside > *, .hero__shot { animation: none !important; transform: none !important; }
  .hero { padding-top: 0; }
  .hero__scene, .has-scene .hero__scene { height: auto; margin-top: 20px; }
  .hero__frame, .has-scene .hero__frame { position: relative; height: 3.4in; clip-path: none; break-inside: avoid; }
  .hero__img { transform: none; }
  .hero__shot--golden, .hero__shot--evening, .hero__shade { display: none !important; }
  .intro, .design, .process, .work, .materials, .more, .contact { padding: 28px 0; }
  .intro__text { text-indent: 0; font-size: 22pt; }
  .intro__link { margin-top: 16px; }
  .design__side { gap: 12px; }
  .stage__view { max-width: 5in; break-inside: avoid; }
  /* The design heading stays with its render, and the contact list prints whole. break-after on a heading
     does not hold inside a grid, so the short blocks themselves stay together. */
  .design, .contact__people { break-inside: avoid; }
  .stage__gl { display: none !important; }
  .stage__cap { padding-top: 10px; }
  .process__body { margin-top: 20px; }
  .process__visual { display: none; }
  .steps { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gap); }
  .step, .step:first-child, .step:last-child { padding: 0; opacity: 1; }
  .step__img { display: grid; margin-bottom: 12px; }
  .process__more { grid-column: 1 / -1; margin-top: 16px; }
  .work__viewport { overflow: visible; }
  .work__track { transform: none !important; display: grid; grid-template-columns: 1fr 1fr; width: auto; gap: 20px var(--gap); }
  .wk, .wk--wide, .wk--tall, .wk--square { width: auto; }
  .wk__img { height: 2.4in; }
  .wk__img img { transform: none !important; }
  .wk--more, .sample-name { display: none; }
  .work { display: flex; flex-direction: column; }
  .work__head { order: -1; margin: 0 0 16px; }
  .materials__copy { gap: 14px; }
  .board-wrap { break-inside: avoid; }
  .more__title { margin-bottom: 24px; }
  .mc--b { margin-top: 0; }
  .mc__img { max-height: 3in; }
  .map__shop .pulse { display: none; }
  /* The map and the address print as one block, never split across a page break */
  .contact__place, .map { break-inside: avoid; }
  .closer { min-height: 0; display: block; overflow: visible; }
  .closer__img, .closer::after { display: none; }
  /* Top and bottom only: the side padding comes from .wrap and keeps the closer on the page margin */
  .closer__in { padding-top: 20px; padding-bottom: 0; }
}
