/* ============================================================
   Life & Death Tattoos, Shrewsbury
   Ink-black memento mori world. Bone type. Stencil-violet line.
   Mobile-first: base styles are the 390px experience.
   ============================================================ */

:root {
  --ink: #17151a;        /* body: their black, whisper of violet */
  --ink-well: #100e13;   /* deeper panels */
  --panel: #211e26;      /* raised surfaces on ink */
  --line: #363340;       /* hairlines on ink */
  --bone: #ece9e0;       /* their white logo, aged to bone */
  --bone-dim: #b8b3a7;   /* muted copy, AA 8.6:1 on ink */
  --stencil: #a06be0;    /* thermal-stencil violet, the colour every tattoo starts as */
  --stencil-bright: #c4a1ef; /* small text accent, 8.4:1 on ink */
  --life: #e0715f;       /* the colour-work counterpoint, used rarely */

  --font-display: "Grenze Gotisch", "Georgia", serif;
  --font-body: "Alegreya", "Georgia", serif;
  --font-caps: "Alegreya SC", "Georgia", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.1rem, 4.5vw, 2rem);
  --measure: 62ch;

  /* z scale */
  --z-nav: 40;
  --z-drawer: 50;
  --z-actionbar: 45;
  --z-lightbox: 60;
  --z-confirm: 70;
}

* { box-sizing: border-box; }

html {
  background: var(--ink); /* overscroll never flashes light */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip; /* clip, not hidden: keeps position:sticky alive */
}

/* film grain: static, subtle, never animated */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* in-page anchors must clear the fixed header */
[id] { scroll-margin-top: 5rem; }

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

a { color: var(--stencil-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.7rem, 13vw, 5.4rem); }
h2 { font-size: clamp(2rem, 8.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 5vw, 1.8rem); }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 4.6vw, 1.35rem); line-height: 1.5; color: var(--bone); }
.dim { color: var(--bone-dim); }
.accent { color: var(--stencil-bright); }

.caps {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- shell ---------- */

.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1120px; margin-inline: auto; }

section { position: relative; }

/* stacked two-column blocks need real air between the columns on phones,
   where .split-2 is plain flow rather than a grid with a gap */
.split-2 > * + * { margin-top: clamp(1.8rem, 6vw, 2.6rem); }

.sect { padding-block: clamp(3.4rem, 12vw, 6.5rem); }
.sect--tight { padding-block: clamp(2.2rem, 8vw, 4rem); }
.sect--well { background: var(--ink-well); }

/* their own separator mark, used sparingly between chapters */
.sepmark {
  display: flex;
  justify-content: center;
  color: var(--line);
  padding-block: 0.4rem;
}
.sepmark svg { width: 130px; height: auto; }

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--pad);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-desktop { display: none; }

.nav-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  margin: -0.5rem;
  color: var(--bone);
  cursor: pointer;
  display: inline-flex;
}
.nav-toggle svg { width: 30px; height: 30px; }
.nav-toggle .bar { transition: transform 0.35s var(--ease-out), opacity 0.25s; transform-origin: 50% 50%; }
.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--ink-well);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--pad) 3rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.drawer.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.drawer nav { display: grid; gap: 0.25rem; }
.drawer a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 9vw, 2.6rem);
  color: var(--bone);
  text-decoration: none;
  padding: 0.32rem 0;
  line-height: 1.1;
}
.drawer a[aria-current="page"] { color: var(--stencil-bright); }
.drawer .drawer-foot {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.4rem;
  color: var(--bone-dim);
  font-size: 0.98rem;
}
.drawer .drawer-foot a {
  font: inherit;
  color: var(--stencil-bright);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
.drawer-close {
  position: absolute;
  top: 0.7rem; right: var(--pad);
}
@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}

/* nav links stagger in */
.drawer nav a { transform: translateY(14px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.4s; }
.drawer.is-open nav a { transform: none; opacity: 1; }
.drawer.is-open nav a:nth-child(2) { transition-delay: 0.04s; }
.drawer.is-open nav a:nth-child(3) { transition-delay: 0.08s; }
.drawer.is-open nav a:nth-child(4) { transition-delay: 0.12s; }
.drawer.is-open nav a:nth-child(5) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .drawer nav a { transform: none; opacity: 1; transition: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  padding: 0.78rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--stencil); color: var(--ink-well); border-color: var(--stencil); }
.btn--primary:hover { background: var(--stencil-bright); border-color: var(--stencil-bright); color: var(--ink-well); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bone-dim); color: var(--bone); }
.btn--big { padding: 0.95rem 1.9rem; font-size: 1.08rem; }

/* ---------- hero: full-bleed section, inner wrap holds the copy ---------- */

.assist { position: absolute; width: 0; height: 0; overflow: hidden; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  /* clears the fixed action bar so the trust row is never hidden behind it */
  padding-bottom: calc(2.4rem + 4.6rem);
  background: var(--ink-well);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* framed on the needle and the leg, not just the artist's head */
  object-position: 45% 28%;
}
/* the scrim: bottom-weighted, edge to edge, so type sits on near-solid ink
   and there is no hard vertical seam on wide screens */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 3%, rgba(23,21,26,0.93) 32%, rgba(23,21,26,0.58) 62%, rgba(23,21,26,0.34) 100%),
    linear-gradient(to right, rgba(23,21,26,0.6), rgba(23,21,26,0.1) 62%, transparent);
}
.hero-inner { width: 100%; }
.hero-logo {
  width: clamp(56px, 14vw, 74px);
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.96;
}
.hero h1 { margin-bottom: 0.28em; }
.hero .lede { max-width: 30ch; margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* compact trust row, not a stacked list */
.trustbar {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.95rem;
  color: var(--bone);
}
.trustbar li { display: flex; align-items: baseline; gap: 0.36rem; }
.trustbar .dim { color: var(--bone-dim); }
.trustbar .stars { color: var(--stencil-bright); letter-spacing: 0.05em; font-size: 0.82rem; }

/* ---------- the wordmark is stencilled, then inked in ---------- */

.inkline { position: relative; }
.inkline-a11y {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.inkline-stencil, .inkline-ink { display: block; }
.inkline-stencil {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--stencil);
  opacity: 0;
  pointer-events: none;
}
/* with no JS the finished, inked wordmark is simply what shows */
.inkline-ink { color: var(--bone); }

html.js .inkline-stencil { opacity: 1; }
html.js .inkline-ink {
  clip-path: inset(0 100% 0 0);
  filter: url(#inkBleedF);
}
html.js .inkline.is-inked .inkline-ink {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s cubic-bezier(0.55, 0.03, 0.3, 1);
}
html.js .inkline.is-inked .inkline-stencil {
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}
html.js .inkline.is-done .inkline-ink { filter: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .inkline-stencil { opacity: 0; }
  html.js .inkline-ink,
  html.js .inkline.is-inked .inkline-ink { clip-path: none; filter: none; transition: none; }
}

/* ---------- reveals (JS-gated; default fully visible) ---------- */

html.js .rv { opacity: 0; transform: translateY(22px); }
html.js .rv.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- featured work (index) ---------- */

.workfeed { display: grid; gap: 1.1rem; margin-top: 2rem; }
.workfeed figure { margin: 0; position: relative; }
.workfeed img { width: 100%; border-radius: 3px; }
.workfeed figcaption {
  margin-top: 0.45rem;
  color: var(--bone-dim);
  font-size: 0.94rem;
}
@media (min-width: 700px) {
  .workfeed .tall { grid-row: span 2; }
}

/* ---------- life | death split ---------- */

.duality { display: grid; gap: 1rem; margin-top: 2rem; }
.duality-side {
  position: relative;
  border-radius: 3px;
  overflow: clip;
  display: block;
  color: var(--bone);
  text-decoration: none;
}
.duality-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duality-side .duality-label {
  position: absolute;
  left: 1rem; bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 2.9rem);
  text-shadow: 0 2px 18px rgba(0,0,0,0.75);
}
.duality-side::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,14,19,0.55), transparent 45%);
}
.duality-side--death img { filter: grayscale(1) contrast(1.05); }
.duality-side--life img { filter: grayscale(1) contrast(1.05); transition: filter 0.9s var(--ease-out); }
.duality-side--life:hover img,
.duality-side--life.is-alive img { filter: grayscale(0) contrast(1); }
.duality-side--life .duality-label i { font-style: normal; color: var(--life); }
@media (prefers-reduced-motion: reduce) {
  .duality-side--life img { transition: none; }
}

/* ---------- artist rail (index) ---------- */

.artist-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 300px);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 1.6rem var(--pad) 1rem;
  margin-inline: calc(-1 * var(--pad));
  scrollbar-width: none;
}
.artist-rail::-webkit-scrollbar { display: none; }
.artist-card {
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.1rem 1.1rem 1.25rem;
  color: var(--bone);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.artist-card img { border-radius: 2px; filter: grayscale(1); width: 100%; }
.artist-card b { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; }
.artist-card small { color: var(--bone-dim); font-size: 0.95rem; line-height: 1.45; }

/* ---------- steps (how booking works) ---------- */

.steps { display: grid; gap: 1.6rem; margin-top: 2rem; counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; max-width: var(--measure); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.05rem;
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--stencil-bright);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.25em; }
.step p { margin: 0; color: var(--bone-dim); }

/* ---------- quotes ---------- */

.quotes { display: grid; gap: 1.4rem; margin-top: 2rem; }
blockquote {
  margin: 0;
  padding: 0;
  max-width: 56ch;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  line-height: 1.45;
  font-style: italic;
}
blockquote footer {
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--bone-dim);
}

/* ---------- books-open board ---------- */

.books-board { display: grid; gap: 0.6rem; margin-top: 1.8rem; }
.books-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.8rem;
  padding: 0.75rem 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.books-row b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.books-chip {
  font-family: var(--font-caps);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--bone-dim);
}
.books-chip.is-open { color: var(--stencil-bright); border-color: var(--stencil); }
.books-chip.is-wait { color: var(--bone-dim); }
.books-note { margin-top: 0.8rem; color: var(--bone-dim); font-size: 0.92rem; }

/* ---------- freehand underline (the sharpie line) ---------- */

.scrawl { position: relative; display: inline-block; }
.scrawl svg {
  position: absolute;
  left: -2%; right: -2%; bottom: -0.28em;
  width: 104%; height: 0.42em;
  color: var(--stencil);
  overflow: visible;
}
.scrawl svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
html.js .scrawl svg path { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); }
html.js .scrawl.in svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease-out) 0.15s; }
@media (prefers-reduced-motion: reduce) {
  html.js .scrawl svg path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- gallery (work.html) ---------- */

.filterbar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.filterbar button {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-dim);
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filterbar button[aria-pressed="true"] {
  background: var(--stencil);
  border-color: var(--stencil);
  color: var(--ink-well);
}
.filterbar button:hover { border-color: var(--bone-dim); color: var(--bone); }

.gallery {
  columns: 2;
  column-gap: 0.7rem;
  margin-top: 1.8rem;
}
.gallery .piece {
  margin: 0 0 0.7rem;
  break-inside: avoid;
  position: relative;
  border-radius: 3px;
  overflow: clip;
  background: var(--panel);
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  cursor: zoom-in;
}
.gallery .piece img { width: 100%; transition: transform 0.6s var(--ease-out); }
.gallery .piece:hover img { transform: scale(1.025); }
.gallery .piece.is-hidden { display: none; }
/* the life|death wipe: colour floods through a turbulent edge */
.gallery.mode-death .piece[data-side="life"] img { filter: grayscale(1) contrast(1.05); }
.gallery.mode-all .piece img,
.gallery.mode-life .piece img { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .gallery .piece img { transition: transform 0.6s var(--ease-out), filter 0.8s var(--ease-out); }
}

.lightbox {
  border: 0;
  padding: 0;
  background: rgba(12, 10, 15, 0.94);
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  z-index: var(--z-lightbox);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox img {
  max-width: min(94vw, 900px);
  max-height: 82dvh;
  width: auto;
  border-radius: 3px;
}
.lightbox figure { margin: 0; display: grid; gap: 0.7rem; justify-items: center; }
.lightbox figcaption { color: var(--bone-dim); font-size: 0.95rem; text-align: center; padding-inline: 1rem; }
.lightbox .lb-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox .lb-prev { left: 0.4rem; }
.lightbox .lb-next { right: 0.4rem; }
.icon-btn {
  appearance: none;
  background: rgba(23, 21, 26, 0.7);
  border: 1px solid var(--line);
  color: var(--bone);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.icon-btn:hover { border-color: var(--bone-dim); }

/* ---------- artist pages ---------- */

.artist-block { padding-block: clamp(2.6rem, 9vw, 4.5rem); border-top: 1px solid var(--line); }
.artist-block:first-of-type { border-top: 0; }
.artist-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.artist-head img { width: 108px; border-radius: 3px; filter: grayscale(1); }
.artist-head h2 { margin: 0; font-size: clamp(1.9rem, 8vw, 2.7rem); }
.artist-head .role { color: var(--bone-dim); font-size: 0.98rem; }
.tagrow { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.9rem 0 1.1rem; }
.tag {
  font-family: var(--font-caps);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
}
.artist-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

/* ---------- faq ---------- */

.faq { margin-top: 1.6rem; display: grid; gap: 0.55rem; max-width: 720px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--stencil-bright);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.1rem 1.05rem; color: var(--bone-dim); }
.faq .faq-body p { margin-bottom: 0.6em; }
.faq .faq-body ul { margin: 0 0 0.6em; padding-left: 1.2rem; color: var(--bone-dim); }

/* ---------- booking form ---------- */

/* stacked booking blocks need air; on desktop the grid gap takes over */
.book-grid > * + * { margin-top: clamp(2.2rem, 8vw, 3rem); }

.bookform { margin-top: 2rem; display: grid; gap: 2rem; max-width: 720px; }
.bookform fieldset { border: 0; padding: 0; margin: 0; }
.bookform legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 5.4vw, 1.75rem);
  margin-bottom: 0.9rem;
  padding: 0;
}
.choicegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.55rem; }
.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}
.choice span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s;
}
.choice span small { font-family: var(--font-body); color: var(--bone-dim); font-size: 0.86rem; }
.choice input:checked + span {
  border-color: var(--stencil);
  background: color-mix(in srgb, var(--stencil) 16%, var(--panel));
}
.choice input:focus-visible + span { outline: 2px solid var(--stencil-bright); outline-offset: 2px; }

.field { display: grid; gap: 0.35rem; margin-top: 0.9rem; }
.field > label { font-family: var(--font-caps); font-weight: 500; font-size: 0.98rem; }
.field .hint { color: var(--bone-dim); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  background: var(--ink-well);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.02rem;
  padding: 0.72rem 0.85rem;
}
input::placeholder, textarea::placeholder { color: #8f8a80; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--stencil); outline-offset: 0; border-color: var(--stencil); }

.deposit-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.2rem 1.2rem 1rem;
  max-width: 720px;
}
.deposit-panel h3 { margin-bottom: 0.5em; }
.deposit-panel ul { margin: 0; padding-left: 1.2rem; color: var(--bone-dim); }
.deposit-panel li { margin-bottom: 0.4em; }

/* booking confirmation: "in the book" */
.confirm {
  border: 0;
  padding: 0;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(12, 10, 15, 0.95);
  z-index: var(--z-confirm);
  display: none;
  align-items: center;
  justify-content: center;
}
.confirm[open] { display: flex; }
.confirm-card {
  position: relative;
  margin: 1rem;
  max-width: 460px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem 1.6rem 1.8rem;
  text-align: center;
}
.confirm-card .seal { color: var(--stencil-bright); margin-bottom: 1rem; }
.confirm-card .seal svg { width: 64px; height: auto; }
html.js .confirm-card .seal.stamp svg { animation: stamp 0.55s var(--ease-out) both; }
@keyframes stamp {
  0% { transform: scale(1.8); opacity: 0; filter: blur(4px); }
  60% { transform: scale(0.96); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .confirm-card .seal.stamp svg { animation: none; }
}
.confirm-card .scrawl-frame {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  color: var(--stencil);
}
.confirm-card .scrawl-frame path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
html.js .confirm-card .scrawl-frame path { stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400); }
html.js .confirm[open] .scrawl-frame path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out) 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html.js .confirm-card .scrawl-frame path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- studio page ---------- */

/* margin-top is owned by .split-2 > * + * so the photo never sits flush
   against the buttons above it */
.shopfront { margin-inline: 0; margin-bottom: 0; }
.shopfront img { border-radius: 3px; }
.shopfront figcaption { margin-top: 0.5rem; font-size: 0.94rem; color: var(--bone-dim); }

.studio-photos { display: grid; gap: 0.8rem; margin-top: 2rem; }
.studio-photos img { border-radius: 3px; width: 100%; }
.hours { margin-top: 1.4rem; display: grid; gap: 0.3rem; max-width: 380px; }
.hours .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.hours .row span:first-child { font-family: var(--font-caps); }
.hours .row .closed { color: var(--bone-dim); }
.mapframe {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: clip;
}
.mapframe iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

/* ---------- mobile action bar ---------- */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-actionbar);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.55rem;
  padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
  /* opaque: content scrolling underneath must read as passing behind a bar,
     never as being clipped by it */
  background: var(--ink-well);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 26px rgba(16, 14, 19, 0.55);
}
.actionbar .btn { width: 100%; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink-well);
  border-top: 1px solid var(--line);
  padding: 3rem 0 0;
  margin-top: 2rem;
}
.site-foot .foot-grid { display: grid; gap: 2rem; }
.site-foot h3 { font-size: 1.3rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; }
/* comfortable thumb targets: footer links are a real navigation path on phones */
.site-foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot a { color: var(--bone-dim); text-decoration: none; }
.site-foot a:hover { color: var(--bone); }
.site-foot .foot-nap { color: var(--bone-dim); font-size: 0.98rem; line-height: 1.85; }
.site-foot .foot-nap a { display: inline-block; padding-block: 0.25rem; }
.site-foot .foot-legal {
  margin-top: 2.4rem;
  padding: 1.2rem 0 calc(4.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 0.92rem;
}
.site-foot .foot-legal a { color: var(--stencil-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding-top: clamp(6.5rem, 20vw, 9rem); padding-bottom: clamp(1.6rem, 6vw, 3rem); }
.page-hero .lede { max-width: 46ch; }

/* ============================================================
   >= 700px
   ============================================================ */
@media (min-width: 700px) {
  body { font-size: 1.1rem; }
  .actionbar { display: none; }
  .site-foot .foot-legal { padding-bottom: 1.4rem; }
  .site-foot .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .workfeed { grid-template-columns: 1fr 1fr; align-items: start; }
  .duality { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 3; column-gap: 0.9rem; }
  .studio-photos { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { padding-left: 0; padding-top: 3.2rem; }
  .step::before { top: 0; left: 0; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem; }
  .artist-head img { width: 148px; }
  .mapframe iframe { height: 400px; }
}

/* ============================================================
   >= 1000px
   ============================================================ */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 1.6rem; }
  .nav-desktop a {
    font-family: var(--font-caps);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    color: var(--bone-dim);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
  }
  .nav-desktop a:hover { color: var(--bone); }
  .nav-desktop a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--stencil); }
  .nav-desktop .btn { margin-left: 0.6rem; }

  /* Desktop is a two-column composition: the portrait photo keeps its own
     panel on the right, so the whole frame (leg, needle, artist) survives
     instead of being cropped to a head by a full-bleed cover. */
  .hero {
    min-height: 92svh;
    align-items: center;
    padding-bottom: 4rem;
  }
  .hero .lede { max-width: 34ch; font-size: 1.28rem; }
  .hero-inner { max-width: 1120px; }
  .hero-inner > * { max-width: 34rem; }
  .hero-media {
    left: auto;
    right: 0;
    width: 53%;
    /* feathered edges: no seam where the panel meets the ink */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26%), linear-gradient(to top, transparent, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 26%), linear-gradient(to top, transparent, #000 14%);
    mask-composite: intersect;
  }
  .hero-media img { object-position: 52% 34%; }
  .hero::after {
    background:
      linear-gradient(to right, var(--ink) 22%, rgba(23,21,26,0.72) 44%, rgba(23,21,26,0.18) 66%, transparent 82%),
      linear-gradient(to top, rgba(23,21,26,0.7), transparent 38%);
  }
  .trustbar { font-size: 1rem; gap: 0.4rem 2rem; }

  .workfeed { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .gallery { columns: 4; }
  .artist-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: unset;
    overflow-x: visible;
    gap: 1.1rem;
    margin-inline: 0;
    padding-inline: 0;
  }

  .split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .split-2 > * + * { margin-top: 0; }

  .book-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
      "form board"
      "form deposit";
    grid-template-rows: auto 1fr;
    gap: 1rem 3.5rem;
    align-items: start;
  }
  .book-grid > * + * { margin-top: 0; }
  .book-grid > .bg-form { grid-area: form; }
  .book-grid > .bg-board { grid-area: board; }
  .book-grid > .bg-deposit { grid-area: deposit; }
}

/* print: keep it sane */
@media print {
  body::after { display: none; }
  .site-head, .actionbar, .drawer { display: none !important; }
}
