/* ==========================================================================
   Naticchia's Custom Woodworking
   Modern & minimal: warm white, white oak, charcoal. Type: Manrope.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #FAF8F5;          /* warm white */
  --surface: #F1ECE4;     /* pale oak */
  --accent: #A67C52;      /* white oak tan: rules, highlights */
  --accent-ink: #7A5532;  /* darker oak: accent text that must pass contrast */
  --text: #22201E;        /* charcoal */
  --muted: #6E6862;       /* stone grey */
  --line: #E2DBD0;        /* hairlines */
  --placeholder: #E6E1DA; /* empty photo slots */
  --white: #FFFFFF;
  --error: #A33A2B;
  --success: #3F6B45;

  /* Wood species: used for profile dividers, the footer, the work order and small accents */
  --walnut: #5B3E2B;
  --cherry: #9A4E2F;
  --white-oak: #C49A6C;
  --maple: #E2C595;
  --tape: #E9BC3B;        /* tape-measure yellow */
  --ink-red: #B2342B;     /* rubber-stamp ink */
  --graphite: #3A3836;    /* pencil */

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.7rem + 3.8vw, 4.75rem);

  /* Space */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: clamp(5rem, 3.5rem + 6.5vw, 10rem);

  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: #B8916A var(--surface);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #B8916A; border: 3px solid var(--surface); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--walnut); }
::selection { background: rgba(196, 154, 108, 0.38); color: var(--text); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Paper grain over the whole page: a fixed, static noise tile */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.9 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { body::before { display: none; } }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
/* Headings use the serif; small uppercase labels opt back into the sans */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; font-variant-numeric: lining-nums; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--text); color: var(--white); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

/* --- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-7); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: var(--s-6); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-2xl); max-width: 18ch; }
.lede { font-size: var(--fs-lg); color: var(--muted); max-width: 58ch; }

/* --- Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { background: var(--accent-ink); }
.btn-light { background: var(--white); color: var(--text); }
.btn-light:hover { background: var(--surface); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--text); border-color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.text-link .arrow { transition: transform 0.25s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* --- Header ---------------------------------------------------------------
   Fixed to the top. Over a photo banner it starts clear (white text on the photo)
   and turns solid once the banner has scrolled away. JS toggles .is-clear. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--text); background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header::before {
  /* soft shade behind the clear header so white text reads on bright photos */
  content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0.5), rgba(20, 18, 16, 0));
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.site-header.is-clear { background: transparent; color: var(--white); box-shadow: none; }
.site-header.is-clear::before { opacity: 1; }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3);
  min-height: var(--header-h); padding-inline: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.brand { justify-self: center; display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: none; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: 0; line-height: 1; text-align: center; }
.brand-text small { display: block; font-family: var(--font); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-top: 3px; }
.brand.is-empty .brand-logo { display: none; }
.brand.is-empty .brand-text { display: block; }

.site-nav { justify-self: start; }
.site-nav ul { display: flex; gap: var(--s-3); }
.site-nav ul a {
  position: relative; display: inline-block; padding-block: 0.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: 0.78;
  transition: opacity 0.2s var(--ease);
}
/* Underline drawn like a quick pencil line: slightly wavy, drawn left to right */
.site-nav ul a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.05rem; height: 6px;
  background: currentColor; opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.6C14 2.2 27 4.6 44 3.2S77 2 99 3.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.6C14 2.2 27 4.6 44 3.2S77 2 99 3.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { opacity: 1; }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.nav-panel-cta, .site-nav .nav-status { display: none; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: var(--s-1); }
.nav-cta { min-height: 42px; padding-block: 0.5rem; }
.is-clear .nav-cta { background: var(--white); color: var(--text); }
.is-clear .nav-cta:hover { background: var(--surface); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; color: inherit;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); background: currentColor; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; }
  .brand-text { text-align: left; }
  .nav-toggle { display: inline-flex; }
  /* Full-screen menu: big serif links that slide in one after another, a shop photo below */
  .site-nav {
    position: fixed; inset: 0; z-index: -1; justify-self: stretch; /* start would shrink-wrap it */
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-h) + var(--s-3)) var(--gutter) var(--s-4);
    background: var(--bg); color: var(--text);
    visibility: hidden; opacity: 0;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; counter-reset: nav; }
  .site-nav li {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }
  .site-nav li:nth-child(2) { --i: 1; } .site-nav li:nth-child(3) { --i: 2; }
  .site-nav li:nth-child(4) { --i: 3; } .site-nav li:nth-child(5) { --i: 4; }
  .site-nav.is-open li { opacity: 1; transform: none; transition-delay: calc(0.08s + var(--i, 0) * 0.06s); }
  .site-nav ul a {
    display: flex; align-items: baseline; gap: var(--s-2); padding-block: 0.6rem; opacity: 1;
    font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); font-weight: 400;
    letter-spacing: -0.01em; text-transform: none; line-height: 1.15;
    border-bottom: 1px solid var(--line);
  }
  .site-nav ul a::before {
    counter-increment: nav; content: counter(nav, decimal-leading-zero);
    font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--muted);
  }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--accent-ink); font-style: italic; }
  .site-nav::after {
    content: ""; flex-shrink: 0; margin-top: var(--s-4); min-height: 160px; flex-grow: 1; max-height: 340px;
    background: #3a3632 url("../images/gallery/gallery-03.webp") center 40% / cover;
    opacity: 0; transition: opacity 0.6s var(--ease) 0.25s;
  }
  .site-nav.is-open::after { opacity: 1; }
  .site-nav .nav-status { display: flex; margin-top: var(--s-3); }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .header-actions .nav-cta { display: none; }
  .nav-panel-cta { display: flex; margin-top: var(--s-4); min-height: 52px; flex-shrink: 0; }
}

/* --- Photo slots (real image, or labeled grey box until one is added) ----- */
.ph { position: relative; margin: 0; background: var(--placeholder); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-empty { aspect-ratio: var(--ar, 4 / 3); }
.ph.is-empty img { display: none; }
.ph.is-empty::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-2); pointer-events: none;
  text-align: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(34,32,30,0.035) 14px 15px);
}
.ph--fixed { aspect-ratio: var(--ar, 4 / 3); }
/* Slots sized by their grid row: the photo fills the slot without stretching the row */
.featured a:first-child .ph img, .shop-photos .ph:first-child img { position: absolute; inset: 0; }

/* --- Home hero slideshow --------------------------------------------------- */
.hero {
  position: relative; height: 85vh; height: 85svh; min-height: 520px; max-height: 1000px;
  overflow: hidden; color: var(--white); background: #2b2825;
}
.hero::after {
  /* bottom shade so the headline and controls read on any photo */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.66) 0%, rgba(20, 18, 16, 0.2) 38%, rgba(20, 18, 16, 0) 60%);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); background: #2b2825; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-empty { aspect-ratio: auto; }
.slide.is-empty::after { color: rgba(255,255,255,0.55); }
@media (prefers-reduced-motion: no-preference) {
  /* slow drift closer on the photo being shown; resets once it has faded out */
  .slide img { transition: transform 0s linear 1.8s; }
  .slide.is-active img { transform: scale(1.07); transition: transform 9s linear; }
}
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4);
  padding: 0 clamp(1rem, 0.5rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 4rem); line-height: 1.04; max-width: 14ch; }
.hero p { margin-top: var(--s-1); color: rgba(255, 255, 255, 0.86); max-width: 40ch; }
.hero .btn { margin-top: var(--s-3); }
.btn-lg { min-height: 56px; padding: 1rem 2.25rem; font-size: 0.8125rem; }

.slide-controls { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.slide-bars { display: flex; gap: 6px; }
.slide-bar { display: grid; align-items: center; width: 48px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.bar-track { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.35); }
.bar-fill { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.slide-bar.is-done .bar-fill { transform: scaleX(1); }
.slide-bar.is-active .bar-fill { animation: bar-fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .slide-bar.is-active .bar-fill { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
.slide-pause {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: var(--white); cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.slide-pause:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.slide-pause svg { width: 12px; height: 12px; }
.slide-pause[hidden] { display: none; }

/* --- Inner page photo banners ---------------------------------------------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  height: 60vh; height: 60svh; min-height: 380px; max-height: 640px;
  overflow: hidden; color: var(--white); background: #2b2825;
}
.page-hero > .ph { position: absolute; inset: 0; background: #3a3632; }
.page-hero > .ph.is-empty { aspect-ratio: auto; }
.page-hero > .ph.is-empty::after { color: rgba(255,255,255,0.55); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.66) 0%, rgba(20, 18, 16, 0.18) 45%, rgba(20, 18, 16, 0) 65%);
}
.page-hero-content { position: relative; z-index: 2; padding-bottom: var(--s-5); }
.page-hero h1 { font-size: var(--fs-3xl); line-height: 1.02; }
.page-hero .lede { margin-top: var(--s-2); color: rgba(255, 255, 255, 0.88); }
/* The storefront is a wide panorama: a shorter banner keeps more of it in frame */
.page-hero--pano { height: clamp(340px, calc(100vw * 307 / 1397 + var(--header-h)), 60vh); min-height: 340px; }
.page-hero--pano::after { background: linear-gradient(to top, rgba(20, 18, 16, 0.75) 0%, rgba(20, 18, 16, 0.3) 55%, rgba(20, 18, 16, 0.1) 100%); }

/* --- Full-width photo band --------------------------------------------------- */
.photo-band { height: clamp(280px, 42vw, 620px); }
.photo-band img { object-position: center 55%; }

/* --- Home: opening statement + process ----------------------------------- */
.section--flush-top { padding-top: 0; }
.lead-statement {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: lining-nums;
  font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem); line-height: 1.25; max-width: 34ch; text-wrap: balance;
}
.intro-lead .text-link { margin-top: var(--s-4); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.process li { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.process .step { display: block; font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1; color: var(--accent-ink); font-variant-numeric: lining-nums; }
.process h3 { margin-top: var(--s-3); font-size: 1.375rem; }
.process p { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--muted); max-width: 32ch; }

/* --- Services list ------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); }
.services li { padding-block: var(--s-3); border-top: 1px solid var(--line); }
.services h3 { font-size: 1.375rem; }
.services p { margin-top: 0.35rem; color: var(--muted); font-size: var(--fs-sm); max-width: 46ch; }

/* --- Featured work ------------------------------------------------------- */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.featured a { display: block; text-decoration: none; }
.featured .ph { aspect-ratio: 4 / 3; }
.featured a:first-child { grid-column: span 2; grid-row: span 2; }
.featured a:first-child .ph { aspect-ratio: auto; height: 100%; min-height: 100%; }
.zoom img { transition: transform 0.8s var(--ease); }
.zoom:hover img, a:focus-visible .zoom img { transform: scale(1.035); }

/* --- CTA band ------------------------------------------------------------ */
.cta { background: var(--surface); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.cta h2 { font-size: var(--fs-2xl); max-width: 20ch; }
.cta p { margin-top: var(--s-2); color: var(--muted); max-width: 52ch; }
.cta a.phone { color: var(--text); font-weight: 600; }
.cta-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* --- Gallery ------------------------------------------------------------- */
.masonry { columns: 3 300px; column-gap: var(--s-2); }
.g-item { break-inside: avoid; margin-bottom: var(--s-2); }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-open:focus-visible { outline-offset: 4px; }
.g-item figcaption { display: none; }
.g-item.is-empty .g-open { position: absolute; inset: 0; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 18, 16, 0.96); color: var(--white);
}
.lightbox::backdrop { background: rgba(20, 18, 16, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 0.25s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-2) var(--gutter); font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(3.5rem, 6vw, 5.5rem); }
.lb-figure { display: grid; place-items: center; min-width: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lb-empty { width: min(70vw, 720px); aspect-ratio: 4 / 3; display: grid; place-items: center; background: #3a3632; color: rgba(255,255,255,0.6); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lb-caption { padding: var(--s-2) var(--gutter) var(--s-3); text-align: center; color: rgba(255,255,255,0.88); min-height: 3.5rem; }
.lb-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
body.lb-open { overflow: hidden; }

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-6); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-3); }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  background: var(--white); border: 1px solid #D5CDC1; border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236E6862' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.field-error { display: none; font-size: var(--fs-xs); color: var(--error); }
.field input:user-invalid ~ .field-error, .field textarea:user-invalid ~ .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { grid-column: 1 / -1; padding: var(--s-2) var(--s-3); background: var(--surface); border-left: 2px solid var(--accent); font-size: var(--fs-sm); color: var(--muted); }
.form-note a { color: var(--text); font-weight: 600; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.form-status { font-size: var(--fs-sm); }
.form-status.is-success { color: var(--success); font-weight: 600; }
.form-status.is-error { color: var(--error); font-weight: 600; }

.info-block { display: grid; gap: var(--s-4); }
.info-block > div { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.info-block h2, .info-block h3 { font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-1); }
.info-big { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
a.info-big:hover { color: var(--accent-ink); }
.info-block p, .info-block address { color: var(--text); }

.hours { display: grid; gap: 0.35rem; font-size: var(--fs-sm); }
.hours div { display: flex; justify-content: space-between; gap: var(--s-3); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }

/* --- Location ------------------------------------------------------------ */
.location-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-6); align-items: stretch; }
.address-big { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; font-variant-numeric: lining-nums; }
.address-big span { display: block; color: var(--muted); }
.location-info .btn { margin-top: var(--s-4); }
.location-info .info-block { margin-top: var(--s-5); }
.map { position: relative; min-height: 460px; background: var(--placeholder); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.02); }

/* --- About --------------------------------------------------------------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.story-copy p + p { margin-top: var(--s-3); }
.story-copy p { color: var(--muted); }
.story-copy p:first-child { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: var(--text); font-variant-numeric: lining-nums; }
.story-copy a { color: var(--text); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.values li { padding-top: var(--s-3); border-top: 2px solid var(--accent); }
.values h3 { font-size: 1.375rem; }
.values p { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--muted); }

.owners { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.owner .ph { aspect-ratio: 4 / 5; }
.ph--portrait img { object-position: center 25%; }
.owner h3 { margin-top: var(--s-3); font-size: var(--fs-xl); }
.owner .role { margin-top: 0.25rem; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); }
.owner p:not(.role) { margin-top: var(--s-2); color: var(--muted); max-width: 52ch; }

.shop-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-2); }
.shop-photos .ph { aspect-ratio: 3 / 4; }
.shop-photos .ph:first-child { aspect-ratio: auto; }

.supply-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.supply-grid li { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.supply-grid li + li { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.supply-grid h3 { font-size: 1.375rem; }
.supply-grid p { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.quote { margin: 0; padding: var(--s-4); background: var(--bg); border: 1px dashed #CFC6B9; }
.quote blockquote { margin: 0; font-size: var(--fs-base); color: var(--muted); font-style: italic; }
.quote figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.placeholder-tag { display: inline-block; margin-bottom: var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }

/* --- Footer -------------------------------------------------------------- */
/* Dark walnut: streaky grain over a deep brown, with a row of dovetails cut into the top edge */
.site-footer {
  --footer-ink: #EDE6DC; --footer-muted: rgba(237, 230, 220, 0.64); --dt: 14px;
  position: relative; margin-top: calc(var(--dt) * -1);
  padding-block: calc(var(--s-6) + var(--dt)) var(--s-4);
  color: var(--footer-ink); font-size: var(--fs-sm);
  background-color: #2A211B;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='600' preserveAspectRatio='none'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.09' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.44 0 0 0 0 0.31 0 0 0 0 0.21 1.1 0 0 0 -0.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #30261F, #241C17);
  background-size: 100% 100%; /* one wide tile stretched across: no seams */
  background-repeat: no-repeat;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M6 0h28l-6 14H12z'/%3E%3C/svg%3E") 0 0 / 56px var(--dt) repeat-x,
    linear-gradient(#000 0 0) 0 var(--dt) / 100% calc(100% - var(--dt)) no-repeat;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Cpath d='M6 0h28l-6 14H12z'/%3E%3C/svg%3E") 0 0 / 56px var(--dt) repeat-x,
    linear-gradient(#000 0 0) 0 var(--dt) / 100% calc(100% - var(--dt)) no-repeat;
}
.site-footer :focus-visible { outline-color: #D9B48C; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: var(--s-5); }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.footer-brand p { margin-top: var(--s-2); color: var(--footer-muted); max-width: 32ch; }
.site-footer h2 { font-family: var(--font); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: var(--s-2); }
.site-footer address, .site-footer li { line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #D9B48C; text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: var(--s-1); margin-top: var(--s-3); }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(237, 230, 220, 0.3); border-radius: 50%; color: inherit; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.social a:hover { background: var(--footer-ink); color: #2A211B; border-color: var(--footer-ink); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: var(--s-6); color: var(--footer-muted); font-size: var(--fs-xs); }
/* Title block, like the corner of a shop drawing */
.title-block {
  display: grid; grid-template-columns: 2.2fr repeat(5, 1fr); margin: 0;
  border: 1px solid rgba(237, 230, 220, 0.28);
}
.title-block > div { padding: 0.6rem 0.85rem 0.7rem; border-left: 1px solid rgba(237, 230, 220, 0.28); min-width: 0; }
.title-block > div:first-child { border-left: 0; }
.title-block dt { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--footer-muted); }
.title-block dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.25; color: var(--footer-ink); font-variant-numeric: lining-nums; }
.footer-legal { margin-top: var(--s-2); }
@media (max-width: 860px) {
  .title-block { grid-template-columns: repeat(3, 1fr); }
  .title-block .tb-wide { grid-column: 1 / -1; }
  .title-block > div { border-left: 1px solid rgba(237, 230, 220, 0.28); border-top: 1px solid rgba(237, 230, 220, 0.28); }
  .title-block > div:first-child, .title-block > div:nth-child(2), .title-block > div:nth-child(5) { border-left: 0; }
  .title-block .tb-wide { border-top: 0; }
}
.site-footer .hours { font-size: var(--fs-sm); max-width: 16rem; }
.site-footer .hours dt { color: var(--footer-muted); }

/* --- Scroll reveal (only when JS is running and motion is allowed) ------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .story, .contact-grid, .location-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .services { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr 1fr; }
  .featured a:first-child { grid-column: span 2; grid-row: auto; }
  .featured a:first-child .ph { aspect-ratio: 3 / 2; height: auto; }
  .supply-grid { grid-template-columns: 1fr 1fr; }
  .supply-grid li, .supply-grid li + li { padding: var(--s-3) var(--s-2); border-left: 0; }
  .supply-grid li:nth-child(even) { border-left: 1px solid var(--line); }
  .shop-photos { grid-template-columns: 1fr 1fr; }
  .shop-photos .ph:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
  .map { min-height: 360px; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 38px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .hero-overlay { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .form { grid-template-columns: 1fr; }
  .owners, .values, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .lb-stage { padding: 0 var(--s-1); }
  .lb-prev, .lb-next { top: auto; bottom: -3.75rem; transform: none; }
  .lb-caption { padding-inline: 4.5rem; }
}

/* ==========================================================================
   Shop details: drafting marks, wood, tools and small live touches
   ========================================================================== */

/* --- Sheet labels and section numbers (shop-drawing style) ---------------- */
.sheet-no {
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: var(--s-2);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
/* Carpenter's triangle: the mark woodworkers pencil across a set of boards */
.sheet-no::before {
  content: ""; width: 12px; height: 11px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M7 1.3 12.7 10.8H1.3z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M7 1.3 12.7 10.8H1.3z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
main { counter-reset: sec; }
.section-head h2::before {
  counter-increment: sec;
  content: "\00A7\00A0" counter(sec, decimal-leading-zero);
  content: "\00A7\00A0" counter(sec, decimal-leading-zero) / "";
  display: block; width: fit-content; margin-bottom: var(--s-2); padding-left: 20px;
  font-family: var(--font); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; line-height: 1.4; color: var(--accent-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M7 1.3 12.7 10.8H1.3z' fill='none' stroke='%237A5532' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 0 45% / 12px 11px no-repeat;
}

/* --- Moulding-profile dividers: a cross-section of a real profile, end grain showing --- */
.profile-rule {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.25rem; row-gap: 0.55rem;
}
.profile-rule::before, .profile-rule::after { content: ""; grid-row: 1; height: 1px; }
.profile-rule::before { grid-column: 1; background: linear-gradient(90deg, transparent, var(--line) 40%); }
.profile-rule::after { grid-column: 3; background: linear-gradient(90deg, var(--line) 60%, transparent); }
.pr-mark {
  grid-column: 2; grid-row: 1; width: 72px; height: 44px;
  background:
    repeating-radial-gradient(circle at 18% 150%, rgba(25, 14, 6, 0.16) 0 1px, transparent 1.2px 5px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.12)),
    var(--species, var(--white-oak));
  -webkit-mask: var(--profile) center / contain no-repeat;
          mask: var(--profile) center / contain no-repeat;
}
.pr-label {
  grid-column: 2; grid-row: 2; text-align: center; white-space: nowrap;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.pr-mark[data-profile="ogee"] { --species: var(--walnut); --profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M0 44V8h8C8 20 22 22 36 22C52 22 64 26 64 36h8v8z'/%3E%3C/svg%3E"); }
.pr-mark[data-profile="cove"] { --species: var(--cherry); --profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M0 44V6h6a28 28 0 0 0 28 28h38v10z'/%3E%3C/svg%3E"); }
.pr-mark[data-profile="bead"] { --species: var(--white-oak); --profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M0 44V24h4a13 13 0 0 1 26 0h6v6h36v14z'/%3E%3C/svg%3E"); }
.pr-mark[data-profile="ovolo"] { --species: var(--maple); --profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M0 44V8h6a26 26 0 0 1 26 26h4v4h36v6z'/%3E%3C/svg%3E"); }
.pr-mark[data-profile="crown"] { --species: var(--walnut); --profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cpath d='M4 44V36h6c6-12 12-18 22-20 12-2 14-12 26-12h10v8L24 44z'/%3E%3C/svg%3E"); }
.profile-rule--top { margin-bottom: var(--s-6); }
.profile-rule--bottom { margin-top: var(--s-6); }

/* --- Tape-measure scroll progress (under the header) --------------------- */
.tape { position: absolute; left: 0; right: 0; top: 100%; height: 10px; pointer-events: none; --p: 0; transition: opacity 0.3s var(--ease); }
.tape.is-empty, html.menu-open .tape { opacity: 0; }
.tape-fill {
  position: absolute; inset: 0;
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
  background:
    repeating-linear-gradient(90deg, transparent 0 1023px, rgba(178, 52, 43, 0.9) 1023px 1025px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(30, 22, 12, 0.78) 0 1px, transparent 1px 64px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(30, 22, 12, 0.62) 0 1px, transparent 1px 32px) 0 0 / 100% 62% no-repeat,
    repeating-linear-gradient(90deg, rgba(30, 22, 12, 0.5) 0 1px, transparent 1px 8px) 0 0 / 100% 34% no-repeat,
    linear-gradient(180deg, #F3CD55, #DCAA2C);
}
.tape-hook {
  position: absolute; top: -2px; left: calc(var(--p) * 100%); width: 4px; height: 14px; margin-left: -3px;
  background: linear-gradient(90deg, #A6A29C, #55524D); border-radius: 1px; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

/* --- Sawdust drifting through a shaft of light on the home slideshow ----- */
.dust {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none;
  background: linear-gradient(116deg, transparent 16%, rgba(255, 232, 190, 0.05) 28%, rgba(255, 232, 190, 0.1) 37%, rgba(255, 232, 190, 0.045) 47%, transparent 60%);
}

/* --- Photos: develop in from a warm blur, or get "planed" into view ------ */
@property --wipe { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .ph img.is-pending { opacity: 0; }
  .js .ph img.is-developing { animation: develop 1.4s var(--ease) both; }

  .js .shave.is-waiting, .js .shave.is-shaving { background-color: transparent; }
  .js .shave.is-waiting img { opacity: 0; } /* not clip-path: a fully clipped lazy image never loads */
  .js .shave.is-shaving { animation: shave 1.5s var(--ease-io) var(--shave-delay, 0s) both; }
  .js .shave.is-shaving img { clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
  /* the plane's leading edge: fresh-cut line plus a curl of shaving at the top */
  .js .shave.is-shaving::before {
    content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--wipe); width: 56px; margin-left: -28px; pointer-events: none;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath d='M28 0C28 13 30 21 38 23S51 17 45 12 33 13 35 18 42 21 42 17' fill='none' stroke='%23E8CC9C' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M28 0C28 13 30 21 38 23S51 17 45 12 33 13 35 18 42 21 42 17' fill='none' stroke='%23A97E4F' stroke-width='0.8' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E") 50% 0 / 56px 56px no-repeat,
      linear-gradient(90deg, transparent 25px, rgba(255, 246, 230, 0.95) 25px 28px, rgba(226, 197, 149, 0.75) 28px 30px, transparent 30px);
    filter: drop-shadow(2px 2px 2px rgba(60, 40, 20, 0.28));
    animation: shave-edge 1.5s linear var(--shave-delay, 0s) both;
  }

  .js .photo-band img { position: absolute; left: 0; top: -10%; height: 120%; transform: translate3d(0, var(--py, 0px), 0); }
}
@keyframes develop {
  from { opacity: 0; filter: blur(16px) sepia(0.8) saturate(0.7); }
  35% { opacity: 1; }
  to { opacity: 1; filter: blur(0) sepia(0) saturate(1); }
}
@keyframes shave { from { --wipe: 0%; } to { --wipe: 100%; } }
@keyframes shave-edge { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }

/* --- Maker's stamp: burned into the wood, turns as you scroll ------------ */
.maker-stamp { width: 150px; aspect-ratio: 1; color: var(--walnut); pointer-events: none; }
.maker-stamp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stamp-rotor { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(var(--rot, 0deg)); }
.stamp-disc { fill: none; }
.intro-lead .container { position: relative; }
.intro-lead .maker-stamp { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; }
.story-media { position: relative; }
.story-media .maker-stamp { position: absolute; z-index: 2; left: -40px; bottom: -44px; width: 132px; }
.story-media .stamp-disc { fill: var(--bg); }
@media (max-width: 1000px) {
  .intro-lead .maker-stamp { position: static; translate: none; width: 112px; margin-top: var(--s-5); }
}
@media (max-width: 860px) {
  .story-media .maker-stamp { left: auto; right: 14px; bottom: -40px; width: 108px; }
}

/* --- Live shop status ---------------------------------------------------- */
.shop-status { display: flex; align-items: center; gap: 0.55em; margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.4; }
.shop-status[hidden] { display: none !important; }
.shop-status b { font-weight: 700; }
.shop-status .dot { position: relative; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--status, #A8A099); }
.shop-status.is-open { --status: #3F9A55; }
.shop-status.is-soon, .shop-status.is-appt { --status: #D69A2A; }
@media (prefers-reduced-motion: no-preference) {
  .shop-status.is-open .dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--status);
    animation: status-pulse 2.4s var(--ease) infinite;
  }
}
@keyframes status-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
.hours .is-today dt, .hours .is-today dd { color: var(--accent-ink); font-weight: 700; }
.site-footer .hours .is-today dt, .site-footer .hours .is-today dd { color: #E5C29A; }

/* --- About banner: now and then a formation of jets climbs past, like the ones in the photo --- */
.jet {
  position: absolute; left: var(--jet-x, 0%); top: var(--jet-y, 80%); z-index: 1; width: 240px; pointer-events: none;
  color: rgba(28, 32, 42, 0.8); transform-origin: 0 50%;
  animation: fly var(--jet-dur, 14s) linear forwards;
}
.jet svg { display: block; width: 100%; height: auto; }
@keyframes fly {
  from { transform: rotate(var(--jet-a, -12deg)) translateX(-260px); }
  to { transform: rotate(var(--jet-a, -12deg)) translateX(150vw); }
}

/* --- "Copied" note for the phone number on desktop ------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; pointer-events: none;
  display: flex; align-items: center; gap: 0.6em; padding: 0.75rem 1.15rem; border-radius: var(--radius);
  background: var(--text); color: var(--white); font-size: var(--fs-sm); font-weight: 600;
  box-shadow: 0 10px 30px rgba(34, 32, 30, 0.22);
  opacity: 0; transform: translate(-50%, 14px); transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: ""; width: 14px; height: 9px; border-left: 2px solid var(--maple); border-bottom: 2px solid var(--maple); transform: translateY(-2px) rotate(-45deg); }

/* --- Page-to-page transitions ------------------------------------------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.hero, .page-hero { view-transition-name: banner; }
::view-transition-group(banner) { animation-duration: 0.55s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
::view-transition-group(lb-photo) { animation-duration: 0.45s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* --- Contact: work order that fills in as the form is typed -------------- */
.info-block > .work-order { padding: 1.5rem 1.4rem 1.2rem; border-top: 0; }
.work-order {
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --wo-line: 1.65rem;
  position: relative; margin-bottom: var(--s-2);
  background: #FBF4DF; color: var(--text);
  box-shadow: 0 1px 1px rgba(60, 40, 20, 0.06), 0 16px 32px -14px rgba(60, 40, 20, 0.32);
  transform: rotate(-0.8deg);
}
/* perforated edge where it tore off the pad */
.work-order::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px;
  background: radial-gradient(circle at 7px 5px, var(--bg) 3.2px, transparent 3.7px) 0 0 / 14px 10px repeat-x;
}
.wo-head { text-align: center; padding-bottom: 0.6rem; border-bottom: 2px solid var(--text); }
.wo-shop { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.wo-addr { margin-top: 0.15rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wo-title {
  display: flex; justify-content: space-between; align-items: baseline; margin: 0.75rem 0 0.25rem;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
}
.wo-no { color: var(--ink-red); letter-spacing: 0.08em; }
.wo-no b { font-family: "Courier New", Courier, monospace; font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; }
.wo-row { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; padding-top: 0.25rem; }
.wo-k { flex-shrink: 0; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wo-v {
  flex: 1; min-width: 0; height: var(--wo-line); margin: 0;
  border-bottom: 1px dotted rgba(34, 32, 30, 0.38);
  font-family: var(--font-hand); font-size: 1.4rem; line-height: var(--wo-line); color: var(--graphite);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wo-notes { padding-top: 0.55rem; }
.wo-notes .wo-v {
  height: calc(var(--wo-line) * 4); border: 0; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  background: repeating-linear-gradient(transparent 0 calc(var(--wo-line) - 1px), rgba(34, 32, 30, 0.2) calc(var(--wo-line) - 1px) var(--wo-line));
}
.wo-foot { display: flex; justify-content: space-between; margin-top: 0.9rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wo-stamp {
  position: absolute; right: 7%; top: 40%; display: grid; justify-items: center;
  padding: 0.35rem 0.9rem 0.4rem; border: 3px solid currentColor; border-radius: 6px;
  color: var(--ink-red); font-size: 1.7rem; font-weight: 800; letter-spacing: 0.14em; line-height: 1; text-transform: uppercase;
  mix-blend-mode: multiply; visibility: hidden; opacity: 0; transform: rotate(-12deg);
  /* uneven ink: a noise mask knocks small gaps out of the print */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='i'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23i)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='i'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23i)'/%3E%3C/svg%3E");
}
.wo-stamp small { margin-top: 0.3rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.2em; }
.work-order.is-stamped .wo-stamp { visibility: visible; animation: stamp-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-20deg) scale(2.2); }
  60% { opacity: 0.92; }
  to { opacity: 0.88; transform: rotate(-12deg) scale(1); }
}

/* --- 404: the offcut page ------------------------------------------------- */
.offcut { padding-top: var(--header-h); }
.offcut .sheet-no { color: var(--accent-ink); }
.offcut h1 { font-size: var(--fs-3xl); max-width: 14ch; }
.offcut .lede { margin-top: var(--s-3); }
.offcut-board { display: block; width: 100%; max-width: 640px; height: auto; margin-block: var(--s-5); color: var(--text); }
.offcut .cta-actions { margin-top: var(--s-2); }
