/* =========================================================================
   SA Designer Studio
   Hand-written. No framework, no build step.
   Layers: tokens -> reset -> primitives -> components -> sections -> motion
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Ground. Tuned to sit flush with the charcoal falloff in the studio
     photography so images bleed into the page instead of sitting on it. */
  --ink-000: #0b0a09;
  --ink-050: #0e0d0b;
  --ink-100: #16150f;
  --ink-200: #1e1c16;
  --ink-300: #2a2720;

  --paper:   #f5f1e8;   /* warm off-white. never #fff */
  --paper-dim: #cfc8b8;
  --muted:   #8a8578;

  /* Pulled from the client's own threadwork, not invented. */
  --gold:      #c9a227;
  --gold-lift: #e3c35c;
  --gold-deep: #8a6d16;
  --rose:      #7b2d4e;

  --rule: color-mix(in oklab, var(--gold) 26%, transparent);

  /* Type */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid scale — 390px to 1600px viewport */
  --t-hero:  clamp(3.2rem, 1.2rem + 8.6vw, 9.5rem);
  --t-h1:    clamp(2.4rem, 1.3rem + 4.6vw, 5.2rem);
  --t-h2:    clamp(1.9rem, 1.2rem + 2.9vw, 3.4rem);
  --t-h3:    clamp(1.35rem, 1.05rem + 1.2vw, 1.9rem);
  --t-body:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --t-lead:  clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --t-meta:  0.72rem;

  /* Space */
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 4rem);
  --bay: clamp(4.5rem, 2rem + 8vw, 11rem);   /* between sections */
  --measure: 34rem;                           /* readable line length */
  --wide: 88rem;                              /* standard content column */
  --ultra: 104rem;                            /* wide editorial rows */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;
}

/* ---------- 2. Reset ----------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-050);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

/* ---------- 3. Primitives ------------------------------------------------ */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin-inline: auto;
}

.shell--narrow { width: min(100% - (var(--gutter) * 2), 62rem); }
.shell--ultra  { width: min(100% - (var(--gutter) * 2), var(--ultra)); }

/* ---------- 3b. Editorial grid -------------------------------------------
   A 12-column bed. Content is placed in deliberate, uneven spans so the page
   reads as a layout rather than a stack of centred blocks. Everything
   collapses to one column below 54rem. */

.g {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 54rem) {
  .col-1-6   { grid-column: 1 / 7; }
  .col-1-7   { grid-column: 1 / 8; }
  .col-1-5   { grid-column: 1 / 6; }
  .col-2-7   { grid-column: 2 / 8; }
  .col-5-13  { grid-column: 5 / 13; }
  .col-6-13  { grid-column: 6 / 13; }
  .col-7-13  { grid-column: 7 / 13; }
  .col-8-13  { grid-column: 8 / 13; }
  .col-9-13  { grid-column: 9 / 13; }
  .col-1-13  { grid-column: 1 / 13; }

  /* Vertical offsets — the thing that stops a grid looking like a table. */
  .drop-1 { margin-block-start: clamp(2rem, 5vw, 5rem); }
  .drop-2 { margin-block-start: clamp(4rem, 9vw, 9rem); }
}

@media (max-width: 53.999rem) {
  .g > * { grid-column: 1 / -1; }
}

.bay { padding-block: var(--bay); }

.measure { max-width: var(--measure); }

/* Letterspaced uppercase label. Used for eyebrows, meta, nav. */
.meta {
  font-size: var(--t-meta);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta--gold { color: var(--gold); }

/* Eyebrow with a drawn rule to its left. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.eyebrow::before {
  content: "";
  inline-size: clamp(1.5rem, 4vw, 3.5rem);
  block-size: 1px;
  background: var(--gold);
  transform-origin: left;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--paper-dim);
  font-weight: 300;
}

.rule {
  border: 0;
  block-size: 1px;
  background: var(--rule);
  margin: 0;
  transform-origin: left;
}

/* Gold-italic accent inside display headings. */
.accent {
  font-style: italic;
  color: var(--gold);
}

/* ---------- 4. Buttons --------------------------------------------------- */

.btn {
  --btn-fg: var(--ink-000);
  --btn-bg: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 2rem;
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}

/* Wipe fill, not a colour fade. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-lift);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgb(201 162 39 / 0.55); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-fg: var(--paper);
  --btn-bg: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--paper) 28%, transparent);
}
.btn--ghost::after { background: var(--paper); }
.btn--ghost:hover { --btn-fg: var(--ink-000); box-shadow: inset 0 0 0 1px var(--paper); }

.btn__icon { transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

/* Text link with a rule that draws in from the left. */
.tlink {
  display: inline-block;
  padding-bottom: 3px;
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.tlink:hover { background-size: 100% 1px; color: var(--gold); }

/* ---------- 5. Header ---------------------------------------------------- */

.hdr {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  padding-block: 1.15rem;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s, padding 0.5s var(--ease),
              box-shadow 0.5s var(--ease);
}

.hdr[data-stuck="true"] {
  padding-block: 0.7rem;
  background: color-mix(in oklab, var(--ink-000) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--rule);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: baseline; gap: 0.55rem; }

.brand__mark {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.brand__mark em { font-style: italic; color: var(--gold); }

.brand__sub {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* At phone width the lockup has to stay on one line — wrapped, it collides
   with the burger and reads as a layout fault. The tagline goes. */
@media (max-width: 47.999rem) {
  .brand__sub { display: none; }
  .brand__mark { font-size: 1.3rem; white-space: nowrap; }
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.3rem); }

.nav a {
  font-size: var(--t-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.3s;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -6px;
  block-size: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold); }

.hdr__cta { display: none; }
@media (min-width: 62rem) { .hdr__cta { display: inline-flex; } .hdr .btn { padding: 0.8rem 1.5rem; } }

/* Mobile menu */
.burger {
  display: grid;
  gap: 5px;
  padding: 8px;
  margin-inline-end: -8px;
}
.burger span {
  display: block;
  inline-size: 24px;
  block-size: 1.5px;
  background: var(--paper);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 62rem) { .burger { display: none; } }

@media (max-width: 61.999rem) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--ink-000);
    clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
    transition: clip-path 0.65s var(--ease);
    pointer-events: none;
  }
  .nav[data-open="true"] { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); pointer-events: auto; }
  .nav a { font-size: 1.5rem; font-family: var(--display); letter-spacing: 0.04em; text-transform: none; }
  .nav a::after { inset-block-end: -4px; }
}

/* ---------- 6. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  align-items: end;
  padding-block: 8rem 3.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Framed so the model reads at the top of the hero and the embroidery is still
   in shot at the bottom — the garment is the product, it can't crop away. */
.hero__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 58% 30%;
}

@media (max-width: 53.999rem) {
  .hero__media img { object-position: 62% 18%; }
}

/* Two-stop scrim: keeps the embroidery readable, keeps text legible. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--ink-050) 2%, transparent 52%),
    linear-gradient(to right, rgb(11 10 9 / 0.78) 0%, rgb(11 10 9 / 0.15) 62%);
}

.hero__title {
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-inline-size: 15ch;
}

.hero__body { max-inline-size: 40ch; margin-block: 1.8rem 2.4rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }


/* ---------- 7. Section heads --------------------------------------------- */

.head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head__title { font-size: var(--t-h2); }
/* Title left across seven columns, supporting line pushed right and dropped
   below its baseline. Two unequal columns at different heights, not a
   symmetrical pair. */
.head--split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1.6rem;
}
.head--split > :first-child { grid-column: 1 / 8; }
.head--split > :last-child  { grid-column: 8 / 13; }

@media (min-width: 54rem) {
  .head--split > :last-child { margin-block-start: clamp(1.5rem, 3vw, 3rem); }
}

@media (max-width: 53.999rem) {
  .head--split > * { grid-column: 1 / -1; }
}

/* ---------- 8. Work grid ------------------------------------------------- */

/* Staggered two-up. Alternate items sit lower and narrower so the eye moves
   diagonally down the page instead of scanning a tidy row of equal tiles. */
.work {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 54rem) {
  .work > :nth-child(even) { margin-block-start: clamp(3rem, 8vw, 8rem); }
  .work > :nth-child(4n+1) { margin-inline-end: clamp(0rem, 4vw, 4rem); }
  .work > :nth-child(4n+4) { margin-inline-start: clamp(0rem, 4vw, 4rem); }
}

@media (max-width: 53.999rem) {
  .work { grid-template-columns: 1fr; gap: 2rem; }
  .work > :nth-child(even) { margin-block-start: 0; }
}

.piece {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-100);
  border-radius: 2px;
  isolation: isolate;
}

.piece__frame { aspect-ratio: 3 / 4; overflow: hidden; }

.piece img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.8s var(--ease);
}

.piece:hover img { transform: scale(1.075); }

/* Caption rides in from the bottom on hover; always visible on touch. */
.piece__cap {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.6rem 1.4rem 1.3rem;
  background: linear-gradient(to top, rgb(11 10 9 / 0.92), transparent);
}

.piece__name {
  font-family: var(--display);
  font-size: var(--t-h3);
  line-height: 1.1;
  display: block;
}

.piece__tech { display: block; margin-top: 0.3rem; }

.piece--tall { grid-row: span 2; }
.piece--tall .piece__frame { aspect-ratio: 3 / 5; }
@media (max-width: 53.999rem) {
  .piece--tall { grid-row: auto; }
  .piece--tall .piece__frame { aspect-ratio: 3 / 4; }
}

/* ---------- 9. Split feature --------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 54rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.split__media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.split__media img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Thin gold frame inset, drawn not painted. */
.split__media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in oklab, var(--gold) 34%, transparent);
  pointer-events: none;
}

/* ---------- 10. Process -------------------------------------------------- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  gap: 0.6rem 2rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 48rem) {
  .step { grid-template-columns: 5rem 16rem 1fr; align-items: baseline; }
}

.step__n {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.step__n::before { content: counter(step, decimal-leading-zero); }

.step__t { font-size: var(--t-h3); }
.step__d { color: var(--paper-dim); max-inline-size: 46ch; }

/* ---------- 11. Services ------------------------------------------------- */

/* Separators are borders on the cards, not a coloured container showing through
   1px gaps. The gap technique paints any empty trailing cell as a solid slab
   whenever the item count isn't a multiple of the column count — which is what
   produced the blank block at two columns. Borders can't do that. */
.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  border-block-start: 1px solid var(--rule);
}

.card { border-block-end: 1px solid var(--rule); }

@media (min-width: 40.001rem) {
  .card + .card { border-inline-start: 1px solid var(--rule); }
}

/* Drop the divider on the first card of each row, or it reads as a stray
   indent rule where the row actually begins. */
@media (min-width: 40.001rem) and (max-width: 62rem) {
  .card:nth-child(2n + 1) { border-inline-start: 0; }
}
@media (min-width: 62.001rem) {
  .card:nth-child(3n + 1) { border-inline-start: 0; }
}

@media (max-width: 62rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem)  { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background: var(--ink-050);
  overflow: hidden;
  transition: background 0.55s var(--ease);
}
.card:hover { background: var(--ink-100); }

.card__t { font-size: var(--t-h3); margin-bottom: 0.7rem; }
.card__d { color: var(--paper-dim); font-size: 0.95rem; }

.card__price {
  display: block;
  margin-top: 1.4rem;
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 12. Visit / map ---------------------------------------------- */

.visit { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 54rem) { .visit { grid-template-columns: 0.9fr 1.1fr; } }

.facts { display: grid; gap: 1.6rem; }
.fact__k { margin-bottom: 0.25rem; }
.fact__v { font-family: var(--display); font-size: 1.45rem; line-height: 1.3; }
.fact__v a { transition: color 0.3s; }
.fact__v a:hover { color: var(--gold); }

.map {
  position: relative;
  min-block-size: 22rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink-100);
}
/* Google's embed only ships a light theme, so it gets inverted to sit on the
   dark ground instead of glowing out of the page. */
.map iframe {
  position: absolute; inset: 0;
  inline-size: 100%; block-size: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) brightness(0.78) contrast(1.08);
}

/* ---------- 13. Footer --------------------------------------------------- */

/* Bottom padding clears the fixed WhatsApp dock, which otherwise sits on top
   of the last footer column. */
.ftr { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 5rem) 6rem; }

.ftr__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.ftr__list { display: grid; gap: 0.55rem; padding: 0; margin: 0.9rem 0 0; list-style: none; }
.ftr__list a { color: var(--paper-dim); font-size: 0.93rem; transition: color 0.3s; }
.ftr__list a:hover { color: var(--gold); }

.ftr__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* ---------- 14. WhatsApp dock -------------------------------------------- */

/* Visible by default so it survives a JS failure — the script only hides it
   while the hero's own WhatsApp CTA is on screen, which it would otherwise
   sit on top of at phone width. */
.wa {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.8rem);
  inset-inline-end: clamp(1rem, 3vw, 1.8rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  background: #1f8a4c;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgb(0 0 0 / 0.65);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              opacity 0.4s var(--ease), translate 0.4s var(--ease),
              visibility 0s;
}

.wa[data-show="false"] {
  opacity: 0;
  visibility: hidden;
  translate: 0 1rem;
  transition-delay: 0s, 0s, 0s, 0s, 0.4s;
}

.wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -12px rgb(31 138 76 / 0.6); }
.wa svg { flex: none; }
.wa span { font-size: var(--t-meta); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }

@media (max-width: 30rem) { .wa span { display: none; } .wa { padding: 0.95rem; } }

/* ---------- 15. Motion ---------------------------------------------------- */

/* Baseline: IntersectionObserver adds .in. Progressive enhancement to
   scroll-driven animation happens in the @supports block below. */

[data-rise] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rise].in { opacity: 1; transform: none; }

[data-draw] { transform: scaleX(0); transition: transform 1s var(--ease) var(--d, 0ms); }
[data-draw].in { transform: scaleX(1); }

/* Hero words: masked line reveal. */
.reveal { display: block; overflow: hidden; }
.reveal > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.15s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { transform: translateY(0); } }

.hero__media img { animation: settle 1.6s var(--ease) forwards; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }

/* Scroll-driven where supported — replaces the JS observer entirely. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-rise] {
      opacity: 1;
      transform: none;
      transition: none;
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    [data-draw] {
      transition: none;
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 24%;
    }
    @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    /* The hero is above the fold on load, so a view() timeline is the wrong
       clock for it — it would start mid-range and drift back down as the hero
       scrolls away. Put hero reveals back on a time-based animation. */
    .hero [data-rise] {
      animation: rise-in 0.9s var(--ease) both;
      animation-timeline: auto;
      animation-delay: var(--d, 0ms);
    }

    /* Slow parallax drift on split imagery. */
    .split__media img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry cover;
    }
    @keyframes drift { from { transform: translateY(-3%) scale(1.06); } to { transform: translateY(3%) scale(1.06); } }
  }
}

/* View transitions between pages. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.32s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease-io) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 16. Reduced motion ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Content must be fully present, not mid-animation. */
  [data-rise] { opacity: 1 !important; transform: none !important; }
  [data-draw] { transform: scaleX(1) !important; }
  .reveal > span { transform: none !important; }

  @view-transition { navigation: none; }
}

/* ---------- 17. Skip link ------------------------------------------------ */

.skip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background: var(--gold);
  color: var(--ink-000);
  font-size: var(--t-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0 0 4px 4px;
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- 18. Page header (interior pages) ----------------------------- */

.phead {
  padding-block: clamp(8rem, 14vw, 12rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.phead__title { font-size: var(--t-h1); max-inline-size: 18ch; }
.phead__sub { margin-top: 1.5rem; max-inline-size: 52ch; }

/* ---------- 19. Gallery (work page) -------------------------------------- */

.gal {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.gal figure { margin: 0; }

.gal figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}
.gal__name { font-family: var(--display); font-size: var(--t-h3); }

.gal__img {
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-100);
}
.gal__img img {
  inline-size: 100%;
  transition: transform 1.2s var(--ease);
}
.gal figure:hover .gal__img img { transform: scale(1.05); }

/* ---------- 20. FAQ ------------------------------------------------------ */

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

.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.2rem, 2.4vw, 1.8rem);
  font-family: var(--display);
  font-size: var(--t-h3);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq__a {
  padding-bottom: 1.6rem;
  max-inline-size: 60ch;
  color: var(--paper-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__a { animation: fade-down 0.45s var(--ease) both; }
  @keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
}

/* ---------- 21. Notice --------------------------------------------------- */

.notice {
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--ink-100);
  color: var(--paper-dim);
  font-size: 0.9rem;
  max-inline-size: 62ch;
}

/* ---------- 22. Mobile menu CTA ------------------------------------------ */

/* The full-screen menu is a dead end without the primary action in it.
   Desktop already has the header CTA, so this only exists on small screens. */
.nav__cta { display: none; }

@media (max-width: 61.999rem) {
  .nav__cta { display: inline-flex; margin-top: 1rem; }
  .nav[data-open="true"] .nav__cta { pointer-events: auto; }
}

/* Provenance note. Quiet, but present — the garments are real, the models
   are rendered, and a bespoke buyer is entitled to know which is which. */
.ftr__note {
  margin-top: 1.4rem;
  max-inline-size: 74ch;
  line-height: 1.9;
  opacity: 0.7;
}

/* ---------- 23. Service rows ---------------------------------------------
   Replaces the card grid for services. A list of rows scales to any number of
   items — no empty cells — and reads as a price list, which is what it is. */

.svc { border-block-start: 1px solid var(--rule); }

.svc__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 0.5rem;
  padding-block: clamp(1.6rem, 3.2vw, 2.6rem);
  border-block-end: 1px solid var(--rule);
  transition: background 0.5s var(--ease);
}
.svc__row:hover { background: color-mix(in oklab, var(--gold) 4%, transparent); }

.svc__name  { grid-column: 1 / 5; font-size: var(--t-h3); }
.svc__desc  { grid-column: 5 / 11; color: var(--paper-dim); max-inline-size: 52ch; }
.svc__price { grid-column: 11 / 13; text-align: right; align-self: start; color: var(--gold); }

@media (max-width: 53.999rem) {
  .svc__row > * { grid-column: 1 / -1; text-align: left; }
  .svc__price { margin-block-start: 0.4rem; }
}

/* ---------- 24. Process steps with imagery -------------------------------- */

/* Homepage: compact two-column text list, no imagery. */
.steps--tight { columns: 2; column-gap: clamp(2rem, 5vw, 4.5rem); }
.steps--tight .step {
  break-inside: avoid;
  display: block;
  padding-block: 1.1rem;
}
.steps--tight .step__t { font-size: 1.25rem; margin-block: 0.2rem 0.35rem; }
.steps--tight .step__d { font-size: 0.94rem; }
@media (max-width: 53.999rem) { .steps--tight { columns: 1; } }

/* Craft page: alternating image / text rows. */
.stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1.4rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-block-end: 1px solid var(--rule);
}
.stage:first-of-type { border-block-start: 1px solid var(--rule); }

/* grid-row is explicit on both children. Without it, auto-placement refuses to
   backtrack: on the reversed rows the body asks for columns to the LEFT of the
   media that precedes it in source order, so it gets pushed to a new row and
   the text lands under the image instead of beside it. */
.stage__media { grid-row: 1; grid-column: 1 / 6; overflow: hidden; border-radius: 2px; background: var(--ink-100); }
.stage__body  { grid-row: 1; grid-column: 7 / 13; }

/* Flip every second row so the page alternates rather than marching down one side. */
.stage:nth-child(even) .stage__media { grid-column: 8 / 13; }
.stage:nth-child(even) .stage__body  { grid-column: 1 / 7; }

.stage__media img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.stage:hover .stage__media img { transform: scale(1.04); }

.stage__n { color: var(--gold); font-family: var(--display); font-size: 1.5rem; }
.stage__t { font-size: var(--t-h3); margin-block: 0.3rem 0.8rem; }
.stage__d { color: var(--paper-dim); max-inline-size: 48ch; }

@media (max-width: 53.999rem) {
  .stage__media, .stage__body,
  .stage:nth-child(even) .stage__media,
  .stage:nth-child(even) .stage__body { grid-column: 1 / -1; grid-row: auto; }
  .stage__media { order: -1; }
}

/* ---------- 25. Bleed feature --------------------------------------------
   Image runs off one edge of the viewport; text holds the opposite column.
   The asymmetry is the point — it stops the page reading as a centred stack. */

.feat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
  align-items: center;
}

/* Same auto-placement trap as .stage — pin both to row 1. */
.feat__media { grid-row: 1; grid-column: 1 / 8; position: relative; overflow: hidden; }
.feat__body  { grid-row: 1; grid-column: 9 / 13; }

.feat--right .feat__media { grid-column: 6 / 13; }
.feat--right .feat__body  { grid-column: 1 / 5; }

.feat__media img { inline-size: 100%; object-fit: cover; }

@media (min-width: 54rem) {
  /* Run the image out to the physical edge of the window. */
  .feat__media { margin-inline-start: calc((100vw - min(100vw - var(--gutter) * 2, var(--wide))) / -2); }
  .feat--right .feat__media {
    margin-inline-start: 0;
    margin-inline-end: calc((100vw - min(100vw - var(--gutter) * 2, var(--wide))) / -2);
  }
}

@media (max-width: 53.999rem) {
  .feat__media, .feat__body,
  .feat--right .feat__media, .feat--right .feat__body { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- 26. Visit block ----------------------------------------------- */

.visit--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 53.999rem) { .visit--wide { grid-template-columns: 1fr; } }
