/* JUZUR theme — main stylesheet. Architectural luxury: warm ivory, natural
 * wood, charcoal, restrained forest green.
 * Tokens follow docs/design-spec.md §2. Logical properties throughout so an
 * RTL (Arabic) build needs few overrides. Fonts are declared by theme.json.
 *
 * Contents: tokens · base · type and actions · header · hero · concept figures ·
 * sections · collections · design inspiration · products · empty states ·
 * craft · made to measure · closing · roots (service pages) · reveals ·
 * pages · footer · responsive · reduced motion
 */

:root {
  /* Brand palette. Forest: primary brand surface. Charcoal (craft-black,
     footer-black): header, footer, high-contrast chapters. Walnut: warm wood
     accent. Ivory / limestone: light surfaces. Gold: primary actions and
     small accents only, always with charcoal text. */
  --ink: #222222;
  --ink-muted: #4f4b45; /* 7.4:1 on ivory */
  --bone: #e8e6e0;
  --white: #ffffff;
  --cream: #eae2d8;
  --cream-2: #ede7e1;
  --ivory: #f3efe8; /* homepage sections */
  --card: #fbf9f5;
  --limestone: #e9e2d7; /* Made to Measure band */
  --gold: #c2a46e; /* restrained accent: rules, labels on dark, the closing button */
  --gold-deep: #9c7f4c;
  --gold-light: #d3b884; /* gold hover */
  --walnut: #5b3a24;
  --on-dark: #f3efe8; /* headings and copy on dark surfaces */
  --on-dark-muted: #cfc6b4; /* secondary copy on dark surfaces */
  --sand: #bfb29c; /* muted text on dark surfaces: 6.3:1 on --forest, more on the blacks */
  --bronze: #927044;
  --bronze-dark: #7a5c36;
  --bronze-line: #957c68;
  --rule: #c3bfb9;
  --forest: #223427;
  --forest-black: #141811;
  --craft-black: #0e100b;
  --footer-black: #181c17;
  --shade: #0b0806;

  --font-display: var(--wp--preset--font-family--display, "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif);
  --font-body: var(--wp--preset--font-family--body, Poppins, system-ui, -apple-system, "Segoe UI", sans-serif);

  --gutter: clamp(20px, 5.4vw, 74px);
  --max: 1240px;
  --header-h: 84px;

  /* Spacing: 8px scale. Sections use three tiers; --section-pad is the default. */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 88px;
  --space-8: 112px;
  --section-pad-lg: clamp(72px, 8vw, 112px);
  --section-pad-md: clamp(56px, 6.4vw, 88px);
  --section-pad-sm: clamp(40px, 4vw, 56px);
  --section-pad: var(--section-pad-md);

  /* Type scale, site-wide (Cormorant Garamond display, Poppins text).
     Phones: body 16px, labels 12px (responsive block). */
  --fs-display-xl: clamp(42px, 4.5vw, 64px); /* hero: 64 desktop, 42–48 phones */
  --fs-display-l: clamp(30px, 2.9vw, 42px);  /* section headings */
  --fs-display-m: clamp(22px, 2vw, 28px);    /* card titles, secondary headings */
  --fs-lead: clamp(18px, 1.45vw, 20px);
  --fs-body: 17px;
  --fs-body-sm: 15px;  /* navigation, metadata, secondary UI */
  --fs-label: 13px;    /* uppercase eyebrows */
  --fs-caption: 14px;  /* legal, captions */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------------------------------------- base */

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

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

/* Anchors clear the header and, when logged in, the admin bar (core sets the
   variable; :root outranks core's `html` rule whatever the load order). */
:root { scroll-padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

a { color: inherit; }

button { font: inherit; color: inherit; }

figure { margin: 0; }

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

.section--dark :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.craft :focus-visible,
.bespoke :focus-visible,
.collection-card:focus-visible,
.site-footer :focus-visible { outline-color: var(--bone); }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--craft-black);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.site-main:focus { outline: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------- type and actions */

.eyebrow,
.lockup {
  margin: 0 0 18px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { color: var(--bronze-dark); } /* 4.80:1 on cream; --bronze is 3.54:1, below AA for 11px text */

.section--dark .eyebrow { color: var(--bone); } /* bronze tones are below 4.5:1 on --forest */

.lockup { display: flex; align-items: center; gap: 14px; }
.lockup-rule { width: 34px; height: 1px; background: var(--bronze-line); transform-origin: left center; }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-l);
  line-height: 1.05;
}

.section-intro { max-width: 560px; margin: 18px 0 0; font-size: var(--fs-lead); line-height: 1.55; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1; transition: transform 300ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

.button,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--craft-black);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.button:hover { background: var(--gold-light); border-color: var(--gold-light); }
.button .icon { width: 18px; height: 18px; margin-inline-start: 14px; stroke-width: 1.2; transition: transform 300ms var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--craft-black);
  color: var(--bone);
}

.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }

/* Homepage: fixed over the hero. Solid by default, so navigation stays readable
   if main.js never runs; main.js adds `header-managed` and then keeps it
   transparent at the top of the page and solid once it scrolls (`is-solid`). */
.site-header.is-overlay {
  position: fixed;
  inset: 0 0 auto;
  background: var(--craft-black);
  transition: background 400ms var(--ease-out);
}

.site-header.is-overlay.header-managed:not(.is-solid) { background: transparent; }

/* Below the WordPress admin bar when logged in (32px, or 46px at ≤782px). */
.admin-bar .site-header.is-overlay { top: var(--wp-admin--admin-bar--height, 0px); }

/* At ≤600px core lets the admin bar scroll away: the homepage header scrolls
   with it, and the sticky header pins at 0 instead of leaving a gap. */
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar .site-header.is-overlay { position: absolute; }
  :root { scroll-padding-top: var(--header-h); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding: 12px var(--gutter);
}

.site-header.is-overlay .header-inner { border-block-end: 1px solid rgb(232 230 224 / 0.16); transition: border-color 400ms; }
.site-header.is-overlay.is-solid .header-inner { border-color: transparent; }

/* Desktop: brand · centred navigation · actions. */
@media (min-width: 1024px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-actions { justify-self: end; }
}

.header-brand { display: flex; flex-shrink: 0; }

.site-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

.site-logo img,
.custom-logo { width: auto; height: 50px; }

.site-logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.26em;
  margin-inline-end: -0.26em; /* trailing letter-spacing */
  color: var(--white);
}

.primary-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(20px, 2.6vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--white); text-decoration-line: underline; text-decoration-color: var(--bronze-line); }

/* Search: the toggle needs main.js, so it exists only with JavaScript. */
.header-search-toggle { display: none; padding: 0; border: 0; background: none; cursor: pointer; }
.has-js .header-search-toggle { display: inline-grid; }

.header-search {
  border-block-start: 1px solid rgb(232 230 224 / 0.16);
  background: var(--craft-black);
}

.header-search-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.header-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgb(232 230 224 / 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: var(--fs-body);
}

.header-search-form input[type="search"]::placeholder { color: var(--sand); }

.header-search-submit {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--bone);
  background: var(--bone);
  color: var(--craft-black);
  font-size: var(--fs-body-sm);
  cursor: pointer;
}

.header-search-submit:hover { background: var(--white); }
.site-header.search-open,
.site-header.is-overlay.header-managed.search-open { background: var(--craft-black); }

.primary-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; }

.header-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.cart-count {
  position: absolute;
  top: 6px;
  inset-inline-end: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--bronze);
  color: var(--white);
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.cart-count[data-count="0"] { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .has-js .nav-toggle { display: inline-flex; }

  /* Without JavaScript the menu stays visible as a wrapped row. */
  .has-js .primary-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--craft-black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease-out), visibility 0s 300ms;
  }

  .has-js .admin-bar .primary-nav { padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); }

  .has-js .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms var(--ease-out);
  }

  .has-js .primary-nav .menu { flex-direction: column; gap: 6px; }

  .has-js .primary-nav a {
    font-family: var(--font-display);
    font-size: clamp(30px, 8vw, 44px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .header-inner { flex-wrap: wrap; }
  .has-js .header-inner { flex-wrap: nowrap; }
  .header-actions { margin-inline-start: auto; }
  .site-header.nav-open { background: var(--craft-black); }
}

body.nav-locked { overflow: hidden; }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 92svh, 900px);
  overflow: hidden;
  background: var(--shade);
  color: var(--bone);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Dark under the copy column (stops follow the column, not the viewport, so
   text stays above 11:1 over the bright window at every width), clear over
   the furniture. Measured against the photograph itself. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(11 8 6 / 0.88) 0, rgb(11 8 6 / 0.8) calc(var(--gutter) + 480px), rgb(11 8 6 / 0.4) calc(var(--gutter) + 640px), rgb(11 8 6 / 0) calc(var(--gutter) + 820px)),
    linear-gradient(0deg, rgb(11 8 6 / 0.6) 0%, rgb(11 8 6 / 0) 40%),
    linear-gradient(180deg, rgb(11 8 6 / 0.55) 0%, rgb(11 8 6 / 0) 22%);
}

.hero-inner {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-7);
}

.hero-copy { max-width: 560px; }

.hero-eyebrow {
  margin: 0 0 22px;
  color: var(--bone);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--on-dark);
}

.hero-body { max-width: 440px; margin: 22px 0 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--bone); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

/* Hero buttons: sentence-case labels, light on the dark photograph. */
.button--light,
.button--ghost,
.button--gold {
  min-height: 52px;
  padding: 0 26px;
}

.button--light { border-color: var(--bone); background: var(--bone); color: var(--craft-black); }
.button--light:hover { border-color: var(--white); background: var(--white); }

.button--ghost { border-color: rgb(232 230 224 / 0.7); background: transparent; color: var(--white); }
.button--ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 0.08); }

.button--gold { border-color: var(--gold); background: var(--gold); color: var(--craft-black); }
.button--gold:hover { border-color: var(--gold-light); background: var(--gold-light); }

.hero-scroll {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-scroll-ring {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(232 230 224 / 0.6);
  border-radius: 50%;
  transition: border-color 200ms, transform 300ms var(--ease-out);
}

.hero-scroll-ring .icon { width: 18px; height: 18px; }
.hero-scroll:hover .hero-scroll-ring { border-color: var(--white); transform: translateY(3px); }


/* Entrance: CSS only, full motion only, short. The photograph (the LCP
   image) is never faded: it only settles from a slight zoom. */
.motion-ok .hero-image { animation: settle 1.8s var(--ease-out) both; }
.motion-ok .hero-copy > *,
.motion-ok .hero-scroll { animation: rise 0.7s var(--ease-out) both; animation-delay: var(--d, 0.05s); }
.motion-ok .hero-copy > :nth-child(2) { --d: 0.12s; }
.motion-ok .hero-copy > :nth-child(3) { --d: 0.2s; }
.motion-ok .hero-copy > :nth-child(4) { --d: 0.28s; }
.motion-ok .hero-scroll { --d: 0.5s; }

@keyframes settle { from { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ------------------------------------------------------- concept figures */

.concept-figure { position: relative; }

.status-note { margin: 0; font-size: var(--fs-caption); opacity: 0.85; }

/* -------------------------------------------------------------- sections */

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--cream { background: var(--cream); color: var(--ink); }
.section--cream + .section--cream { padding-block-start: var(--section-pad-sm); }
.section--dark { background: var(--forest); color: var(--bone); }

.section-inner {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Image-led sections use more of the screen: narrower gutters, wider cap. */
.section-inner--wide {
  --gutter-wide: clamp(20px, 3.5vw, 56px);
  max-width: calc(1360px + 2 * var(--gutter-wide));
  padding-inline: var(--gutter-wide);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(var(--space-4), 3.6vw, var(--space-5));
}

/* Editorial heading: "01 —" in the margin, title, small kicker; arrow link. */
.section-head--editorial .section-head-text {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(14px, 1.8vw, 24px);
  align-items: baseline;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 17px;
  font-variant-numeric: lining-nums;
}

.section-index::after { content: ""; width: 28px; height: 1px; background: var(--rule); }

.section-head--editorial .section-title { font-size: var(--fs-display-l); line-height: 1.08; }

.section-kicker {
  grid-column: 2;
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-link { gap: 10px; font-size: var(--fs-body-sm); font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
.section-link .icon { width: 18px; height: 18px; stroke-width: 1.2; }

/* ------------------------------------------------------------ collections */
/* Four even image cards across the wide container: the photograph fills
   the card, the title and label sit on a restrained dark base. */

.collections { background: var(--ivory); padding-block: clamp(48px, 5vw, 72px) clamp(40px, 4vw, 60px); }
.collections .section-head { margin-bottom: clamp(24px, 2.6vw, 36px); }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-card {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--forest-black);
  color: var(--on-dark);
  text-decoration: none;
}

.collection-card-media { position: absolute; inset: 0; z-index: -2; }

.collection-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(14 16 11 / 0.9) 0%, rgb(14 16 11 / 0.62) 28%, rgb(14 16 11 / 0) 56%);
}

.collection-card-body {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 1.8vw, 28px);
}

.collection-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.05;
}

.collection-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.3;
}

.collection-card-label::before { content: ""; flex-shrink: 0; width: 18px; height: 1px; background: var(--gold); transition: width 400ms var(--ease-out); }

.collection-card .icon {
  flex-shrink: 0;
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 12px;
  border: 1px solid rgb(232 230 224 / 0.55);
  border-radius: 50%;
  transition: background 300ms, border-color 300ms, color 300ms, transform 400ms var(--ease-out);
}

a.collection-card:hover img,
a.collection-card:focus-visible img { transform: scale(1.05); }
a.collection-card:hover .collection-card-label::before { width: 30px; }
a.collection-card:hover .icon,
a.collection-card:focus-visible .icon { border-color: var(--gold); background: var(--gold); color: var(--craft-black); transform: translateX(4px); }
a.collection-card:focus-visible { outline-offset: 3px; }

/* ---------------------------------------------------- design inspiration */
/* Balanced 60/40 gallery: one large render beside two stacked ones, edges
   aligned top and bottom. Room-type captions sit on the images; one
   disclosure for the whole gallery sits under the heading. A thin wood-ring
   motif marks the section's top corner, clear of text and images. */

.inspiration {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  padding-block: clamp(56px, 6vw, 88px);
}

.inspiration::before {
  content: "";
  position: absolute;
  top: -96px;
  right: -64px;
  width: 300px;
  height: 300px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' fill='none' stroke='%23c2a46e' stroke-width='0.9'><path d='M172.9 150.0 L172.7 151.8 L172.4 153.6 L171.9 155.4 L171.2 157.1 L170.4 158.7 L169.3 160.3 L168.2 161.7 L166.9 163.0 L165.4 164.2 L163.9 165.2 L162.3 166.1 L160.6 166.9 L158.9 167.5 L157.1 168.0 L155.4 168.4 L153.6 168.7 L151.8 168.9 L150.0 169.1 L148.2 169.1 L146.3 169.1 L144.5 169.0 L142.6 168.7 L140.7 168.4 L138.8 167.8 L137.0 167.1 L135.2 166.2 L133.6 165.1 L132.2 163.8 L130.9 162.3 L129.9 160.7 L129.0 159.0 L128.4 157.2 L128.1 155.4 L127.9 153.6 L127.9 151.8 L128.0 150.0 L128.3 148.3 L128.7 146.5 L129.2 144.9 L129.7 143.2 L130.4 141.6 L131.2 140.0 L132.1 138.5 L133.2 137.0 L134.4 135.7 L135.8 134.4 L137.3 133.3 L138.9 132.4 L140.7 131.6 L142.5 131.0 L144.4 130.6 L146.2 130.4 L148.1 130.3 L150.0 130.3 L151.9 130.5 L153.7 130.8 L155.5 131.2 L157.3 131.6 L159.0 132.2 L160.7 132.9 L162.4 133.7 L164.0 134.6 L165.6 135.6 L167.1 136.8 L168.4 138.1 L169.6 139.6 L170.6 141.2 L171.5 142.8 L172.1 144.5 L172.6 146.3 L172.8 148.2Z'/><path d='M192.4 148.9 L192.1 152.2 L191.4 155.4 L190.4 158.5 L189.2 161.5 L187.8 164.4 L186.1 167.2 L184.3 170.0 L182.3 172.6 L180.1 175.1 L177.7 177.5 L175.0 179.7 L172.2 181.7 L169.1 183.4 L165.8 184.8 L162.3 185.8 L158.8 186.4 L155.2 186.6 L151.6 186.4 L148.1 185.9 L144.7 185.0 L141.4 183.8 L138.4 182.4 L135.5 180.8 L132.7 179.0 L130.1 177.2 L127.5 175.3 L125.1 173.3 L122.8 171.2 L120.5 168.9 L118.4 166.5 L116.4 164.0 L114.6 161.3 L113.0 158.4 L111.8 155.4 L110.8 152.2 L110.3 148.9 L110.2 145.6 L110.5 142.2 L111.1 138.9 L112.2 135.7 L113.6 132.6 L115.4 129.7 L117.5 126.9 L119.8 124.3 L122.4 122.0 L125.2 119.9 L128.1 118.1 L131.3 116.5 L134.5 115.2 L137.9 114.2 L141.3 113.5 L144.7 113.1 L148.2 113.0 L151.6 113.2 L155.0 113.5 L158.3 114.2 L161.5 115.0 L164.6 116.0 L167.7 117.1 L170.7 118.4 L173.7 119.9 L176.5 121.6 L179.3 123.4 L181.9 125.5 L184.3 127.8 L186.5 130.4 L188.4 133.1 L190.0 136.0 L191.2 139.1 L192.0 142.3 L192.4 145.6Z'/><path d='M212.1 147.8 L212.1 152.5 L211.5 157.3 L210.5 161.9 L209.0 166.5 L206.9 170.9 L204.5 175.0 L201.6 179.0 L198.3 182.6 L194.7 186.0 L190.9 189.1 L186.8 191.9 L182.5 194.4 L177.9 196.6 L173.3 198.5 L168.4 200.0 L163.4 201.1 L158.3 201.8 L153.2 202.0 L148.1 201.7 L143.0 200.9 L138.1 199.6 L133.4 197.7 L129.0 195.5 L124.9 192.9 L121.1 189.9 L117.6 186.8 L114.4 183.5 L111.5 180.0 L108.7 176.5 L106.1 172.8 L103.6 169.1 L101.2 165.2 L99.0 161.2 L97.1 156.9 L95.4 152.4 L94.2 147.8 L93.5 143.0 L93.3 138.1 L93.8 133.2 L95.0 128.3 L96.9 123.6 L99.4 119.2 L102.6 115.2 L106.2 111.5 L110.3 108.3 L114.7 105.6 L119.3 103.2 L124.0 101.3 L128.8 99.7 L133.7 98.4 L138.5 97.5 L143.4 96.8 L148.3 96.4 L153.2 96.3 L158.1 96.4 L163.0 96.9 L167.8 97.8 L172.5 99.0 L177.1 100.6 L181.5 102.6 L185.8 105.0 L189.8 107.7 L193.5 110.7 L196.9 114.1 L200.0 117.6 L202.9 121.4 L205.3 125.4 L207.5 129.6 L209.2 134.0 L210.6 138.5 L211.6 143.1Z'/><path d='M234.3 146.7 L234.3 153.1 L233.5 159.5 L231.8 165.7 L229.3 171.6 L226.0 177.2 L222.1 182.4 L217.6 187.2 L212.7 191.4 L207.5 195.2 L202.1 198.6 L196.6 201.6 L191.0 204.3 L185.3 206.8 L179.5 209.1 L173.6 211.1 L167.5 212.9 L161.2 214.4 L154.8 215.5 L148.2 216.2 L141.5 216.3 L134.7 215.8 L127.9 214.7 L121.3 212.9 L114.8 210.4 L108.7 207.2 L103.0 203.5 L97.8 199.2 L93.0 194.4 L88.9 189.2 L85.3 183.6 L82.3 177.8 L79.9 171.8 L78.2 165.6 L77.1 159.3 L76.7 153.0 L76.9 146.7 L77.8 140.5 L79.3 134.4 L81.3 128.6 L83.9 123.0 L87.0 117.6 L90.5 112.6 L94.4 107.8 L98.6 103.3 L103.0 99.0 L107.7 95.0 L112.6 91.3 L117.8 87.8 L123.3 84.5 L129.0 81.6 L135.1 79.1 L141.4 77.0 L148.0 75.5 L154.8 74.7 L161.7 74.5 L168.5 75.1 L175.3 76.4 L181.8 78.4 L188.1 81.1 L193.9 84.3 L199.5 88.0 L204.6 92.1 L209.3 96.6 L213.6 101.3 L217.6 106.2 L221.3 111.4 L224.6 116.7 L227.6 122.3 L230.1 128.1 L232.2 134.1 L233.6 140.4Z'/><path d='M253.8 145.6 L253.6 153.4 L252.5 161.2 L250.6 168.8 L247.9 176.2 L244.4 183.3 L240.1 190.1 L235.2 196.4 L229.7 202.2 L223.8 207.6 L217.4 212.5 L210.6 216.9 L203.6 220.8 L196.2 224.2 L188.7 227.1 L180.9 229.6 L172.8 231.4 L164.7 232.7 L156.4 233.3 L148.1 233.3 L139.7 232.6 L131.5 231.1 L123.4 229.0 L115.5 226.3 L107.9 222.9 L100.5 219.0 L93.5 214.5 L86.9 209.5 L80.7 204.0 L74.9 198.1 L69.7 191.6 L65.1 184.8 L61.2 177.5 L58.1 169.8 L55.9 161.9 L54.8 153.8 L54.7 145.6 L55.7 137.5 L57.7 129.6 L60.8 122.0 L64.7 114.9 L69.4 108.3 L74.6 102.2 L80.3 96.6 L86.2 91.4 L92.3 86.6 L98.5 82.2 L104.9 77.9 L111.4 73.9 L118.1 70.0 L125.0 66.3 L132.3 62.9 L140.0 60.0 L148.0 57.5 L156.4 55.8 L165.0 54.9 L173.8 54.9 L182.5 55.9 L191.1 58.0 L199.3 60.9 L207.1 64.8 L214.3 69.5 L220.9 74.8 L226.9 80.7 L232.3 87.0 L237.0 93.7 L241.2 100.6 L244.7 107.7 L247.8 115.0 L250.2 122.5 L252.1 130.1 L253.3 137.8Z'/><path d='M277.4 144.5 L277.1 154.1 L276.0 163.6 L274.0 173.1 L271.0 182.3 L267.1 191.3 L262.2 199.8 L256.4 207.9 L249.8 215.3 L242.4 222.1 L234.3 228.2 L225.8 233.5 L216.8 238.1 L207.4 242.0 L197.8 245.2 L188.0 247.6 L178.1 249.4 L168.1 250.4 L158.0 250.7 L147.9 250.2 L138.0 249.0 L128.2 246.9 L118.6 244.1 L109.4 240.5 L100.5 236.1 L92.1 231.1 L84.2 225.5 L76.7 219.3 L69.8 212.6 L63.3 205.5 L57.4 198.0 L51.9 190.0 L46.9 181.7 L42.6 172.9 L39.0 163.8 L36.2 154.3 L34.4 144.5 L33.7 134.5 L34.4 124.4 L36.3 114.5 L39.6 104.9 L44.3 95.7 L50.2 87.3 L57.2 79.6 L65.1 72.8 L73.7 66.9 L82.7 61.9 L92.0 57.7 L101.4 54.2 L110.8 51.3 L120.1 48.8 L129.5 46.6 L138.9 44.8 L148.4 43.3 L158.0 42.1 L167.8 41.4 L177.8 41.4 L187.8 42.0 L197.9 43.5 L207.9 46.0 L217.6 49.5 L226.9 54.0 L235.5 59.5 L243.4 65.9 L250.6 73.0 L256.8 80.8 L262.2 89.1 L266.7 97.9 L270.4 106.9 L273.3 116.1 L275.5 125.4 L276.8 134.9Z'/><path d='M299.1 143.4 L297.8 154.5 L295.4 165.4 L292.0 176.0 L287.5 186.2 L282.1 196.0 L275.9 205.2 L268.9 213.8 L261.4 222.0 L253.3 229.6 L244.8 236.8 L235.8 243.5 L226.4 249.9 L216.6 255.8 L206.3 261.3 L195.4 266.3 L184.0 270.6 L172.0 274.1 L159.6 276.6 L146.8 277.8 L133.9 277.7 L121.0 276.0 L108.4 272.9 L96.4 268.2 L85.1 262.1 L74.8 254.8 L65.7 246.4 L57.6 237.2 L50.7 227.4 L44.9 217.3 L39.9 207.0 L35.8 196.5 L32.3 186.0 L29.4 175.5 L27.1 164.9 L25.4 154.2 L24.3 143.4 L24.0 132.5 L24.7 121.5 L26.3 110.5 L29.2 99.7 L33.2 89.2 L38.5 79.1 L45.0 69.5 L52.5 60.7 L61.0 52.7 L70.3 45.5 L80.2 39.1 L90.7 33.6 L101.5 28.8 L112.6 24.7 L124.0 21.3 L135.7 18.6 L147.5 16.6 L159.6 15.4 L171.8 14.9 L184.1 15.4 L196.4 16.9 L208.6 19.5 L220.5 23.2 L232.0 28.1 L242.8 34.0 L253.0 41.0 L262.2 49.0 L270.5 57.8 L277.8 67.2 L284.1 77.3 L289.3 87.8 L293.4 98.6 L296.5 109.7 L298.5 120.9 L299.3 132.2Z'/></svg>") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
}

/* The motif needs the wide layout's free corner; narrower screens omit it. */
@media (max-width: 1199px) { .inspiration::before { display: none; } }

.inspiration .section-head { margin-bottom: 14px; }

.inspiration-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-rows: auto auto;
  gap: clamp(12px, 1.3vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.inspiration-grid > li:first-child { grid-row: 1 / span 2; }

.inspiration-item { position: relative; height: 100%; margin: 0; }

.inspiration-media { position: relative; height: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.inspiration-grid > li:first-child .inspiration-media { aspect-ratio: auto; min-height: 100%; }

.inspiration-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.inspiration-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(14 16 11 / 0.72) 0%, rgb(14 16 11 / 0) 34%); pointer-events: none; }
.inspiration-item:hover .inspiration-media img:not(.drift) { transform: scale(1.03); }

.inspiration-caption {
  position: absolute;
  inset-inline-start: clamp(16px, 1.6vw, 24px);
  bottom: clamp(14px, 1.4vw, 20px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
}

.inspiration-caption::before { content: ""; width: 24px; height: 1px; background: var(--gold); }

/* ------------------------------------------------------- signature pieces */
/* Real WooCommerce products (1–4) on neutral plates, the whole product
   visible; without eligible products, an invitation to the shop instead. */

.signature { background: var(--ivory); padding-block: clamp(64px, 7vw, 104px); }

.signature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }

.signature .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(34 34 34 / 0.05), 0 10px 28px -18px rgb(34 34 34 / 0.28);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.signature .product-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgb(34 34 34 / 0.06), 0 18px 36px -22px rgb(34 34 34 / 0.4); }
.signature .product-card-media { aspect-ratio: 4 / 3; background: #ece6dc; }
.signature .product-card-media img { object-fit: contain; padding: 6%; }
.signature .product-card-title { margin: 0; padding: 18px 20px 0; font-size: var(--fs-display-m); }
.signature .product-card-meta { margin-top: auto; padding: 10px 20px 20px; font-size: var(--fs-body-sm); }

.signature-invite {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 88px);
  align-items: end;
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.signature-invite-head .section-title { margin-top: 2px; }
.signature-text { max-width: 560px; margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }
.signature-invite-body .button { margin-top: 24px; }

/* --------------------------------------------------------- client reviews */
/* Real, approved WooCommerce product reviews only; rendered from three. */

.reviews { background: var(--ivory); padding-block: var(--section-pad-md); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-card figure {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  margin: 0;
  padding: clamp(24px, 2.4vw, 36px);
  border-top: 2px solid var(--gold);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(34 34 34 / 0.05), 0 10px 28px -18px rgb(34 34 34 / 0.28);
}

.review-rating { margin: 0; color: var(--gold-deep); font-size: 18px; letter-spacing: 0.12em; }
.review-text { margin: 0; font-family: var(--font-display); font-size: var(--fs-display-m); line-height: 1.3; color: var(--ink); }
.review-text p { margin: 0; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; font-size: var(--fs-body-sm); color: var(--ink-muted); }
.review-author { color: var(--ink); font-weight: 500; }
.review-verified { padding: 2px 8px; border: 1px solid var(--rule); font-size: var(--fs-caption); }
.review-product { flex-basis: 100%; color: var(--walnut); }

/* ----------------------------------------------------------- product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}


.product-card-link { display: block; text-decoration: none; }

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-2);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.product-card-link:hover img { transform: scale(1.03); }

.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 10px;
  background: var(--craft-black);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card-title {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display-m);
  line-height: 1.2;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: var(--fs-body-sm);
}

.product-card-price { font-weight: 500; }
.product-card-status { color: var(--ink-muted); }
.product-card-status[data-status="outofstock"] { color: #8a3b2b; }

.product-card-media img.woocommerce-placeholder { mix-blend-mode: multiply; opacity: 0.85; }

/* ---------------------------------------------------------- empty states */

.empty-state {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgb(34 34 34 / 0.14);
  text-align: center;
}

.empty-state.is-compact { margin-top: 28px; padding: 28px; text-align: start; }

.section--dark .empty-state { border-color: rgb(232 230 224 / 0.18); }

.empty-state-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
}

.empty-state-text { max-width: 460px; margin: 10px auto 0; }
.empty-state.is-compact .empty-state-text { margin-inline: 0; }
.empty-state .text-link { margin-top: 12px; }

.admin-hint {
  max-width: 560px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 1px dashed var(--bronze);
  font-size: 12px;
  text-align: start;
}

/* ------------------------------------------------------- craft & materials */
/* Charcoal chapter: the craft statement and the material statement side by
   side, then a strip of three material details. */

.craft { background: var(--craft-black); color: var(--on-dark-muted); padding-block: var(--section-pad-lg); }

.craft-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.craft .lockup,
.craft .eyebrow { color: var(--gold); }

.craft-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-l);
  line-height: 1.05;
  color: var(--on-dark);
}

.craft-sub { margin: 16px 0 14px; font-family: var(--font-display); font-size: var(--fs-display-m); line-height: 1.2; color: var(--on-dark); }
.craft-statement { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: var(--on-dark); }
.craft-text { max-width: 440px; margin: 0; font-size: var(--fs-body); line-height: 1.65; color: var(--on-dark-muted); }

.craft-strip { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(10px, 1.2vw, 16px); }
.craft-detail { margin: 0; height: clamp(220px, 22vw, 320px); overflow: hidden; background: var(--forest-black); }
.craft-detail img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.craft-detail:hover img { transform: scale(1.04); }

/* --------------------------------------------------------- made to measure */
/* Forest-green chapter: the process beside two image panels that open the
   existing service pages. */

.bespoke { background: var(--forest); color: var(--on-dark-muted); padding-block: var(--section-pad-lg); }

.bespoke-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.bespoke .eyebrow { color: var(--gold); }
.bespoke .section-title { color: var(--on-dark); }
.bespoke .section-intro { color: var(--on-dark-muted); }

.service-steps {
  display: grid;
  gap: 18px;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgb(232 230 224 / 0.18);
  list-style: none;
}

.service-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; font-size: var(--fs-body); color: var(--on-dark-muted); }
.step-number { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }

.bespoke-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.bespoke-card { margin: 0; }

.bespoke-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--on-dark);
  text-decoration: none;
  background: var(--forest-black);
}

.bespoke-media { position: absolute; inset: 0; z-index: -2; }
.bespoke-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.bespoke-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(14 16 11 / 0.92) 0%, rgb(14 16 11 / 0.6) 38%, rgb(14 16 11 / 0) 68%); }

.bespoke-body { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2vw, 30px); }
.bespoke-title { font-family: var(--font-display); font-size: var(--fs-display-m); line-height: 1.1; }
.bespoke-intro { font-size: var(--fs-body-sm); line-height: 1.55; color: var(--on-dark-muted); }

.bespoke-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--gold);
  font-size: var(--fs-body-sm);
  font-weight: 500;
}

.bespoke-link .icon { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
a.bespoke-panel:hover img,
a.bespoke-panel:focus-visible img { transform: scale(1.04); }
a.bespoke-panel:hover .bespoke-link .icon,
a.bespoke-panel:focus-visible .bespoke-link .icon { transform: translateX(4px); }
a.bespoke-panel:focus-visible { outline-offset: 3px; }


/* --------------------------------------------------------------- closing */
/* One clear final action: a limestone panel beside the courtyard render. */

.closing { background: var(--ivory); padding-block: var(--section-pad-md) var(--section-pad-lg); }

.closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--limestone);
}

.closing-media { position: relative; min-height: clamp(360px, 32vw, 480px); margin: 0; overflow: hidden; }
.closing-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }

.closing-body { align-self: center; padding: clamp(32px, 4vw, 64px); }

.closing-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-l);
  line-height: 1.06;
  color: var(--ink);
}

.closing-text { max-width: 400px; margin: 16px 0 0; font-size: var(--fs-body); color: var(--ink-muted); }
.closing-body .button { margin-top: 28px; }

/* ------------------------------------------------------------ root motif */

/* Rootlets hang from the top edge into the section's own padding, so they
   never cross a photograph or the content. */
.roots {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: clamp(64px, 7vw, 104px);
  translate: -50% 0;
  pointer-events: none;
}

.roots svg { width: 100%; overflow: visible; }

.root { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.root--main { stroke-width: 1.1; }
.root--branch { stroke-width: 0.8; }
.root--fine { stroke-width: 0.6; }

.roots--light .root { stroke: var(--bronze-line); }
.roots--dark .root { stroke: var(--rule); }

/* Drawn once when scrolled into view (main.js); static otherwise. */
.motion-ok .roots[data-roots]:not(.is-drawn) .root { stroke-dashoffset: 1; }
.motion-ok .roots.is-drawn .root { transition: stroke-dashoffset 1.6s var(--ease-out); }
.motion-ok .roots.is-drawn .root--branch { transition-delay: 0.45s; }
.motion-ok .roots.is-drawn .root--fine { transition-delay: 0.9s; }


/* --------------------------------------------------------------- reveals */
/* `reveal-ready` is added by main.js (full motion only), so content is
   visible whenever JavaScript is missing or motion is reduced. Only opacity,
   transform and clip-path move: no layout shift. `--i` staggers a group. */

.reveal-ready [data-reveal] {
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(20px); }
.reveal-ready [data-reveal="heading"]:not(.is-visible) { transform: translateY(26px); }
.reveal-ready [data-reveal="card"]:not(.is-visible) { transform: translateY(36px); }

/* Images open from the bottom edge while settling from a slight zoom. The
   observed element keeps its full box (IntersectionObserver must see it);
   only its first child is clipped. */
.reveal-ready [data-reveal="media"]:not(.is-visible) { opacity: 1; transform: none; }
.reveal-ready [data-reveal="media"] > :first-child {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal-ready [data-reveal="media"]:not(.is-visible) > :first-child { clip-path: inset(0 0 100% 0); }
.reveal-ready [data-reveal="media"] img:not(.drift) { transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal-ready [data-reveal="media"]:not(.is-visible) img:not(.drift) { transform: scale(1.08); }

/* Gentle drift of a few large photographs while they cross the viewport.
   Scroll-driven CSS where supported (no JavaScript, no layout change);
   static elsewhere, and never with reduced motion (`motion-ok`). */
@supports (animation-timeline: view()) {
  .motion-ok .drift {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}

@keyframes drift {
  from { transform: translateY(-4%) scale(1.1); }
  to { transform: translateY(4%) scale(1.1); }
}

/* Underline that draws in on hover for quiet text links. */
.footer-menu a,
.section-link,
.bespoke-link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 10px) / 0 1px;
  transition: background-size 350ms var(--ease-out);
}

.footer-menu a:hover,
.section-link:hover,
.bespoke-link:hover { background-size: 100% 1px; text-decoration: none; }

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

.page-wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  min-height: 50vh;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) var(--section-pad);
}

.page-header { margin-bottom: clamp(28px, 4vw, 48px); }

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-l);
  line-height: 1.05;
}

.entry-content > * { max-width: 760px; }
.entry-content > .alignwide,
.entry-content > .wp-block-woocommerce-cart,
.entry-content > .wp-block-woocommerce-checkout { max-width: var(--max); }

.post-list { display: grid; gap: 32px; }
.post-summary-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; }

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

.site-footer { position: relative; background: var(--footer-black); color: var(--bone); border-top: 1px solid rgb(194 164 110 / 0.22); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px clamp(24px, 4vw, 64px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(56px, 6vw, 88px) var(--gutter) clamp(40px, 4vw, 56px);
}

.footer-brand .site-logo img,
.footer-brand .custom-logo { height: 64px; }
.footer-brand .site-logo-name { font-size: 24px; }
.footer-tagline { max-width: 280px; margin: 22px 0 0; font-family: var(--font-display); font-size: 21px; line-height: 1.35; color: var(--on-dark); }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(20px, 3vw, 48px);
}

.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-menu { display: grid; margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-sm); line-height: 1.4; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); text-decoration: none; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid rgb(232 230 224 / 0.12);
  font-size: var(--fs-caption);
  color: var(--sand);
}

.footer-base p { margin: 0; }

/* Developer credit: secondary to the JUZUR brand. */
.footer-credit { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; color: var(--sand); }
.footer-credit img { width: auto; height: 20px; }
.footer-credit span:last-child { color: var(--bone); font-weight: 500; letter-spacing: 0.02em; }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }

  .bespoke-layout { grid-template-columns: minmax(0, 1fr); }
  .signature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .closing-panel { grid-template-columns: minmax(0, 1fr); }
  .closing-media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 899px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspiration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspiration-grid > li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .inspiration-grid > li:first-child .inspiration-media { min-height: 0; aspect-ratio: 16 / 10; }

  /* Craft details: the grain across the width, joint and hand below. */
  .craft-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-detail { height: auto; aspect-ratio: 4 / 3; }
  .craft-detail:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 599px) {
  .inspiration-grid { grid-template-columns: minmax(0, 1fr); }
  .inspiration-grid > li:first-child .inspiration-media { aspect-ratio: 4 / 3; }
  .inspiration-caption { font-size: 21px; }
  .signature-grid { grid-template-columns: minmax(0, 1fr); }
  .signature-invite { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .review-grid { grid-template-columns: minmax(0, 1fr); }

  /* Phones: the whole card is the link, so the arrow gives way to a
     readable one-line label. */
  .collection-card .icon,
  .collection-card-label::before { display: none; }
  .collection-card-label { margin-top: 6px; font-size: 14px; }
}

@media (max-width: 767px) {
  :root { --header-h: 71px; --fs-body: 16px; --fs-label: 12px; }

  .site-logo { gap: 10px; }
  .site-logo img,
  .custom-logo { height: 42px; }
  .site-logo-name { font-size: 18px; letter-spacing: 0.22em; margin-inline-end: -0.22em; }
  .header-actions { gap: 0; }
  .header-icon { flex-shrink: 0; }

  /* Hero: full-height photograph, text on the darkened lower part. */
  .hero { align-items: flex-end; min-height: max(600px, 100svh); }
  .hero-image { object-position: 64% 50%; }
  .hero-scrim {
    background:
      linear-gradient(0deg, rgb(11 8 6 / 0.94) 0%, rgb(11 8 6 / 0.88) 56%, rgb(11 8 6 / 0.45) 70%, rgb(11 8 6 / 0) 82%),
      linear-gradient(180deg, rgb(11 8 6 / 0.6) 0%, rgb(11 8 6 / 0) 22%);
  }
  .hero-inner { padding-block-end: 120px; }
  .hero-eyebrow { margin-bottom: 16px; letter-spacing: 0.14em; }
  .hero-title { font-size: clamp(40px, 11.5vw, 48px); }
  .hero-body { max-width: 340px; margin-top: 16px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .button { flex: 1 1 auto; padding-inline: 18px; white-space: nowrap; }
  .hero-actions .button .icon { margin-inline-start: 10px; }
  .hero-scroll { bottom: 28px; }
  .hero-scroll-ring { width: 40px; height: 40px; }

  .collection-grid { gap: 10px; }
  .collection-card { aspect-ratio: 3 / 4; }
  .collection-card-body { padding: 14px; gap: 6px; }
  .collection-card-title { font-size: 22px; }
  .collection-card .icon { width: 14px; height: 14px; padding: 8px; }
  .section-head--editorial .section-head-text { column-gap: 12px; }
  .section-index { font-size: 15px; gap: 8px; }
  .section-index::after { width: 18px; }

  /* Made to measure: one panel per row, landscape, so copy never crowds. */
  .bespoke-grid { grid-template-columns: minmax(0, 1fr); }
  .bespoke-panel { aspect-ratio: 4 / 3; }
  .bespoke-panel::after { background: linear-gradient(0deg, rgb(14 16 11 / 0.94) 0%, rgb(14 16 11 / 0.82) 55%, rgb(14 16 11 / 0.3) 100%); }


  .closing { padding-block: var(--section-pad-sm) var(--section-pad-md); }
  .closing-body { padding: 28px 22px 32px; }
  .closing-body .button { width: 100%; justify-content: space-between; }
  .signature-invite-body .button { width: 100%; justify-content: space-between; }

  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-base { justify-content: flex-start; }
}

/* Narrow phones: the menu button keeps its label for assistive technology only. */
@media (max-width: 400px) {
  .has-js .nav-toggle { justify-content: center; min-width: 44px; padding: 0; }
  .has-js .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 340px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
