/* ===================================================================
   RidgeCraft — Shared design system (used by all Phase 1 pages
   built after the original 7. The first 7 pages have inline CSS
   that mirrors this; consolidate on Webflow build.)
   =================================================================== */

/* Fractful @font-face declarations land here at Webflow build.
   Wireframe phase falls through to Spectral via the --serif stack. */

:root {
  --black: oklch(15% 0.01 70);
  --warm-black: oklch(18% 0.012 65);
  --lime: oklch(90.2% 0.14 121);   /* #d1ed7f — RidgeCraft brand lime, exact */
  --lime-deep: oklch(82% 0.13 121);
  --latte: oklch(74% 0.05 70);
  --latte-dark: oklch(52% 0.06 60);
  --mocha: oklch(43% 0.06 50);
  --oat: oklch(93% 0.012 75);
  --warm-gray: oklch(89% 0.008 75);
  --steel: oklch(53% 0.005 70);
  --paper: oklch(97% 0.008 75);
  --serif: 'Fractful', 'Spectral', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --pad-section: clamp(64px, 8vw, 128px);
  --pad-x: clamp(20px, 5vw, 80px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: clip;
  font-size: 18px;
  line-height: 1.75;
  color: var(--black);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }
p { max-width: 65ch; }

.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--latte-dark); }
.h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 6.5vw, 84px); line-height: 1.04; letter-spacing: -0.02em; }
.h1 em { font-style: italic; font-weight: 500; color: var(--latte-dark); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.h2 em { font-style: italic; color: var(--latte-dark); font-weight: 500; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.h4 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; }
.lede { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.tabular { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 0;
  transition: transform 320ms var(--ease-out), background-color 320ms var(--ease-out), color 320ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary, .menu .btn-primary { background: var(--lime); color: var(--black); }
.btn-primary:hover { transform: translateY(-1px); background: var(--lime-deep); }
.btn-dark, .menu .btn-dark { background: var(--black); color: var(--paper); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-line, .menu .btn-line { background: transparent; color: var(--black); border-bottom: 1px solid var(--black); padding: 6px 0; min-height: 44px; }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-ghost-dark { background: transparent; color: var(--paper); border: 1px solid oklch(100% 0 0 / 0.25); }
.btn-ghost-dark:hover { border-color: var(--lime); color: var(--lime); }
.btn-bare { border-color: transparent; padding-inline: var(--s-2); }

.lime-mark { width: 32px; height: 2px; background: var(--lime); margin-bottom: var(--s-5); }

/* === A11y: skip-link & focus indicators === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-3);
  z-index: 100;
  background: var(--black);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 2px solid var(--lime);
}
.skip-link:focus {
  left: var(--s-3);
  outline: 0;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Form fields keep their underline-color focus, but give them a real ring too */
.ef-field input:focus-visible, .ef-field select:focus-visible, .ef-field textarea:focus-visible,
.fb-field input:focus-visible, .fb-field textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* === NAV === */
.nav { position: sticky; top: 0; z-index: 50; background: oklch(97% 0.008 75 / 0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--warm-gray); }
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--black); }
.brand .lime-ink { color: var(--lime-deep); }
.menu { display: flex; gap: var(--s-7); align-items: center; list-style: none; }
.menu > li > a:not(.btn), .menu > li > button { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--black); padding-block: 8px; }
.menu > li > a.active { color: var(--latte-dark); }
.menu > li > a:not(.btn):hover, .menu > li > button:hover { color: var(--latte-dark); }
.menu .has-drop { display: flex; align-items: center; gap: 6px; }
.menu .has-drop::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 240ms var(--ease-out); }
.menu .has-drop[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.menu-cta { padding: 12px 22px; font-size: 11px; }

.dropdown { position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 1px solid var(--warm-gray); border-top: 1px solid var(--warm-gray); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--warm-gray); }
.drop-card { background: var(--paper); padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-3); transition: background 240ms var(--ease-out); }
.drop-card:hover { background: var(--oat); }
.drop-card.featured { background: var(--oat); }
.drop-card .num { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--latte-dark); }
.drop-card .name { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--black); }
.drop-card .meta { display: flex; gap: var(--s-4); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--latte-dark); }
.drop-card .desc { font-size: 14px; line-height: 1.6; color: var(--steel); max-width: 38ch; }
.drop-card .arrow { margin-top: auto; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--black); display: inline-flex; gap: 8px; transition: color 240ms var(--ease-out); }
.drop-card .arrow > span { display: inline-block; transition: transform 320ms var(--ease-out); }
.drop-card:hover .arrow > span { transform: translateX(5px); }

/* === Tiered dropdown (DIY -> Semi-Custom -> Signature -> Custom Elite) ===
   Selectors are by tier name, not by position. The previous version keyed off
   :nth-child, so inserting Semi-Custom as the second card silently handed
   Signature the Custom Elite vitrine treatment. Names do not renumber. */
.nav .dropdown-inner { grid-template-columns: repeat(4, 1fr); }

/* i. DIY — entry point: paper, lighter weight */
.nav .dropdown-inner > .drop-card.diy { background: var(--paper); padding: var(--s-7) var(--s-7) var(--s-6); }
.nav .dropdown-inner > .drop-card.diy:hover { background: var(--oat); }
.nav .dropdown-inner > .drop-card.diy .name { font-size: 22px; }
.nav .dropdown-inner > .drop-card.diy .arrow { color: var(--steel); }
.nav .dropdown-inner > .drop-card.diy:hover .arrow { color: var(--black); }

/* ii. Semi-Custom — the feature: warm oat, lime edge, lime tip on hover.
   The accent is an edge and a flag, never a flood. */
.nav .dropdown-inner > .drop-card.semi { background: var(--oat); padding: var(--s-7); position: relative; }
.nav .dropdown-inner > .drop-card.semi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lime);
}
.nav .dropdown-inner > .drop-card.semi:hover { background: oklch(91% 0.014 75); }
.nav .dropdown-inner > .drop-card.semi .name { font-size: 26px; }
.nav .dropdown-inner > .drop-card.semi:hover .arrow { color: var(--lime-deep); }

/* iii. Signature — the catalog: paper, same weight as DIY */
.nav .dropdown-inner > .drop-card.signature { background: var(--paper); padding: var(--s-7); }
.nav .dropdown-inner > .drop-card.signature:hover { background: var(--oat); }
.nav .dropdown-inner > .drop-card.signature .name { font-size: 22px; }
.nav .dropdown-inner > .drop-card.signature .arrow { color: var(--steel); }
.nav .dropdown-inner > .drop-card.signature:hover .arrow { color: var(--black); }

/* iv. Custom Elite — vitrine register: warm-black, champagne hairlines, paper text */
.nav .dropdown-inner > .drop-card.elite {
  background: var(--warm-black);
  color: var(--paper);
  padding: var(--s-7);
  position: relative;
  box-shadow: inset 0 1px 0 oklch(85% 0.025 80 / 0.65);
  transition: background 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.nav .dropdown-inner > .drop-card.elite:hover {
  background: oklch(22% 0.014 65);
  box-shadow: inset 0 1px 0 oklch(85% 0.025 80);
}
.nav .dropdown-inner > .drop-card.elite .num { color: oklch(85% 0.025 80); }
.nav .dropdown-inner > .drop-card.elite .name { color: var(--paper); font-size: 24px; font-style: italic; font-weight: 500; }
.nav .dropdown-inner > .drop-card.elite .meta { color: oklch(85% 0.025 80); }
.nav .dropdown-inner > .drop-card.elite .desc { color: oklch(100% 0 0 / 0.62); }
.nav .dropdown-inner > .drop-card.elite .arrow { color: oklch(85% 0.025 80); }
.nav .dropdown-inner > .drop-card.elite:hover .arrow { color: var(--paper); }

/* Four cards across needs tighter prose than three did. */
.nav .dropdown-inner > .drop-card .desc { max-width: 30ch; font-size: 13px; }

/* === MOBILE BURGER + DRAWER === */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 320ms var(--ease-out), opacity 240ms var(--ease-out);
  transform-origin: center;
}
.nav-burger.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
  overflow-y: auto;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-inner {
  padding: 96px var(--pad-x) var(--s-7);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.mobile-menu { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin-bottom: var(--s-2); }
.mobile-section { padding: var(--s-3) 0; border-bottom: 1px solid var(--warm-gray); display: flex; flex-direction: column; gap: 6px; }
.mobile-section-key { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--latte-dark); }
.mobile-link {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) 0;
  min-height: 44px;
  line-height: 1.25;
}
.mobile-section .mobile-link { padding-top: 0; padding-bottom: var(--s-3); }
.mobile-meta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--latte-dark);
}
.mobile-rule { height: 1px; background: var(--warm-gray); margin: var(--s-5) 0; }
.mobile-cta {
  margin-top: var(--s-5);
  padding: 18px 28px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.mobile-foot {
  margin-top: auto;
  padding-top: var(--s-7);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--latte-dark);
}

@media (max-width: 880px) {
  .menu > li:not(.menu-cta-li) { display: none; }
  .menu-cta-li { display: none; }
  .dropdown { display: none; }
  .nav-burger { display: inline-flex; }
}

/* === BREADCRUMBS === */
.crumbs { padding: var(--s-5) 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--black); }
.crumbs .sep { padding: 0 var(--s-3); color: var(--warm-gray); }

/* === FOOTER === */
.foot { background: var(--warm-black); color: oklch(100% 0 0 / 0.65); padding: var(--s-9) 0 var(--s-5); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); margin-bottom: var(--s-8); }
.foot-brand { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--paper); margin-bottom: var(--s-3); }
.foot-brand .lime-ink { color: var(--lime); }
.foot-tag { font-family: var(--serif); font-style: italic; font-size: 14px; color: oklch(100% 0 0 / 0.62); margin-bottom: var(--s-4); }
.foot-contact { font-size: 13px; line-height: 1.85; color: oklch(100% 0 0 / 0.62); }
.foot-col h4 { font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime); font-weight: 600; margin-bottom: var(--s-4); }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: oklch(100% 0 0 / 0.6); transition: color 200ms var(--ease-out); }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { border-top: 1px solid oklch(100% 0 0 / 0.08); padding-top: var(--s-5); display: flex; justify-content: space-between; font-size: 12px; color: oklch(100% 0 0 / 0.55); }
.foot-bottom em { font-family: var(--serif); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* === PRODUCT PAGE — gallery, config, editorial, materials === */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; min-height: calc(100vh - 76px - 56px); }
.gallery { background: var(--mocha); position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; flex-direction: column; }
.gallery-main { flex: 1; position: relative; overflow: hidden; }
.gallery-main::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 70%, transparent 30%, oklch(0% 0 0 / 0.2)); }
.gallery-tag { position: absolute; top: var(--s-6); left: var(--s-6); background: var(--paper); padding: 14px 20px; display: flex; align-items: center; gap: var(--s-3); }
.gallery-tag-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; }
.gallery-tag-text { font-family: var(--serif); font-weight: 600; font-size: 13px; }
.gallery-tag-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--latte-dark); margin-bottom: 2px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: oklch(100% 0 0 / 0.1); }
.thumb { aspect-ratio: 1.4; cursor: pointer; transition: opacity 0.25s var(--ease-out); opacity: 0.55; }
.thumb.active, .thumb:hover { opacity: 1; }

.info { padding: var(--s-9) var(--pad-x); }
.info .eyebrow { margin-bottom: var(--s-3); display: block; }
.info .h1 { margin-bottom: var(--s-4); }
.info .tagline { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--steel); line-height: 1.5; margin-bottom: var(--s-7); max-width: 42ch; }
.info-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: var(--s-7); border-top: 1px solid var(--warm-gray); border-bottom: 1px solid var(--warm-gray); }
.info-meta-item { padding: var(--s-4) 0; padding-right: var(--s-4); border-right: 1px solid var(--warm-gray); }
.info-meta-item:nth-child(2) { padding-left: var(--s-4); }
.info-meta-item:last-child { border-right: 0; padding-left: var(--s-4); padding-right: 0; }
.meta-key { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.meta-val { font-family: var(--serif); font-weight: 600; font-size: 16px; }

.config { background: var(--paper); padding: var(--s-7); border: 1px solid var(--warm-gray); margin-bottom: var(--s-6); }
.config-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--warm-gray); }
.config-row:last-of-type { border-bottom: 0; }
.config-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.config-help { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--steel); margin-top: 4px; }
.select { position: relative; min-width: 220px; }
.select select { width: 100%; font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 14px 42px 14px 18px; background: var(--paper); border: 1px solid var(--warm-gray); border-radius: 0; color: var(--black); appearance: none; cursor: pointer; transition: border-color 200ms var(--ease-out); }
.select select:hover, .select select:focus:not(:focus-visible) { border-color: var(--black); }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-right: 1px solid var(--latte-dark); border-bottom: 1px solid var(--latte-dark); rotate: 45deg; pointer-events: none; }

.total { display: flex; align-items: baseline; justify-content: space-between; padding: var(--s-6) 0; border-top: 2px solid var(--black); margin-bottom: var(--s-5); }
.total-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); font-weight: 500; }
.total-amount { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cta-wrap { display: flex; flex-direction: column; gap: var(--s-3); }
.cta-fineprint { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--latte-dark); text-align: center; margin-top: 8px; }

.value-math { background: var(--oat); padding: var(--s-5) var(--s-6); margin-top: var(--s-5); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.vm-item { padding-right: var(--s-5); border-right: 1px solid var(--warm-gray); }
.vm-item:last-child { border-right: 0; padding-right: 0; padding-left: var(--s-5); }
.vm-item:nth-child(2) { padding-left: var(--s-5); }
.vm-label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--latte-dark); font-weight: 600; margin-bottom: 4px; }
.vm-value { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.2; }
.vm-value em { font-style: italic; color: var(--latte-dark); font-weight: 500; }

/* Editorial section */
.editorial { background: var(--oat); padding: var(--pad-section) 0; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-9); align-items: start; }
.editorial-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15; position: sticky; top: 100px; max-width: 12ch; }
.editorial-h2 em { font-style: italic; color: var(--latte-dark); font-weight: 500; }
.editorial-body p { font-size: 17px; line-height: 1.85; margin-bottom: var(--s-4); color: var(--black); max-width: 60ch; }
.editorial-body p:first-child::first-letter { font-family: var(--serif); font-size: 64px; font-weight: 600; float: left; line-height: 0.92; margin: 8px 14px 0 0; color: var(--latte-dark); }
.spec-list { margin-top: var(--s-7); border-top: 1px solid var(--warm-gray); }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-7); padding: var(--s-4) 0; border-bottom: 1px solid var(--warm-gray); }
.spec-key { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--latte-dark); font-weight: 600; padding-top: 4px; }
.spec-val { font-size: 15px; line-height: 1.7; }

/* Materials compare */
.materials { background: var(--black); color: var(--paper); padding: var(--pad-section) 0; }
.materials-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-8); align-items: end; margin-bottom: var(--s-7); }
.materials-eyebrow { color: var(--lime); }
.materials h2 { color: var(--paper); margin-top: var(--s-3); }
.materials h2 em { color: var(--lime); }
.materials p.lede { color: oklch(100% 0 0 / 0.6); }
.mat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: oklch(100% 0 0 / 0.1); }
.mat-col { padding: var(--s-7); background: var(--black); }
.mat-col.them { color: oklch(100% 0 0 / 0.5); }
.mat-tag { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s-4); color: oklch(100% 0 0 / 0.4); }
.mat-col.us .mat-tag { color: var(--lime); }
.mat-col h3 { color: var(--paper); margin-bottom: var(--s-5); }
.mat-list { list-style: none; }
.mat-list li { padding: var(--s-3) 0; border-bottom: 1px solid oklch(100% 0 0 / 0.08); display: grid; grid-template-columns: 130px 1fr; gap: var(--s-4); font-size: 14px; }
.mat-list li:last-child { border-bottom: 0; }
.mat-list li > span:first-child { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; padding-top: 3px; color: oklch(100% 0 0 / 0.4); }
.mat-col.us .mat-list li > span:first-child { color: var(--lime); }
.mat-list li > span:last-child { font-family: var(--serif); }

/* Beyond Signature doorway */
.beyond { background: var(--paper); padding: var(--s-9) 0; border-top: 1px solid var(--warm-gray); border-bottom: 1px solid var(--warm-gray); }
.beyond-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-9); align-items: center; }
.beyond h2 em { color: var(--latte-dark); }
.beyond p { color: var(--steel); margin-top: var(--s-3); max-width: 50ch; }
.beyond-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Siblings */
.siblings { background: var(--paper); padding: var(--pad-section) 0; }
.siblings-head { margin-bottom: var(--s-7); display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--s-5); }
.siblings-head h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); }
.siblings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: var(--warm-gray); }
.sib-card { background: var(--paper); transition: background 280ms var(--ease-out); }
.sib-card:hover { background: var(--oat); }
.sib-photo { aspect-ratio: 5 / 4; }
.sib-info { padding: var(--s-5); }
.sib-num { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--latte-dark); margin-bottom: 4px; }
.sib-name { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.15; margin-bottom: var(--s-2); }
.sib-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }

@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; height: auto; min-height: 420px; }
  .info { padding: var(--s-7) var(--pad-x); }
  .config-row { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .select { width: 100%; }
  .editorial-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .editorial-h2 { position: static; max-width: none; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .editorial-body p:first-child::first-letter { font-size: 48px; }
  .materials-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .mat-grid { grid-template-columns: 1fr; }
  .mat-col { min-width: 0; padding: var(--s-5); }
  .mat-list li { grid-template-columns: 1fr; gap: 4px; }
  .beyond-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .value-math { grid-template-columns: 1fr; }
  .vm-item { padding: 8px 0 !important; border-right: 0; border-bottom: 1px solid var(--warm-gray); }
  .vm-item:last-child { border-bottom: 0; }
}

/* === Image / video utilities for elevated pages === */
.aspect-21-9 { aspect-ratio: 21 / 9; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-3-2 { aspect-ratio: 3 / 2; }
.aspect-1-1 { aspect-ratio: 1 / 1; }

.editorial-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1200ms var(--ease-out); }
.editorial-frame { position: relative; overflow: hidden; background: var(--mocha); }
.editorial-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, oklch(0% 0 0 / 0.35)); pointer-events: none; }

/* SVG-grain overlay you can layer over any solid block */
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Editorial caption (small label that sits beside or under photos) */
.cap { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--latte-dark); display: inline-flex; align-items: center; gap: var(--s-2); }
.cap::before { content: ''; width: 8px; height: 1px; background: var(--lime); display: inline-block; }

/* Pull-quote block — editorial moment */
.pullquote { padding: var(--pad-section) 0; background: var(--paper); }
.pullquote-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.pullquote blockquote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 56px); line-height: 1.18; letter-spacing: -0.01em; color: var(--black); }
.pullquote blockquote em { color: var(--latte-dark); font-style: italic; font-weight: 500; }
.pullquote .attribution { margin-top: var(--s-7); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--latte-dark); }

/* === FADE === */
[data-fade] { opacity: 0; transform: translateY(20px); transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-fade].in { opacity: 1; transform: none; }
/* Decelerating stagger. The gap between siblings narrows as the group lands,
   so a row reads as one gesture instead of a metronome. */
[data-fade="2"] { transition-delay: 110ms; }
[data-fade="3"] { transition-delay: 200ms; }
[data-fade="4"] { transition-delay: 272ms; }
[data-fade="5"] { transition-delay: 330ms; }
[data-fade="6"] { transition-delay: 376ms; }
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
}

/* Configurator price pulse — feedback when total updates */
@keyframes pricepulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.total-amount.pulse { animation: pricepulse 380ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Editorial select styling — refined dropdown for product configurators */
.config .select select, .info .select select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--warm-gray);
  padding: 14px 36px 14px 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--black);
  cursor: pointer;
  transition: border-bottom-color 240ms cubic-bezier(0.22, 1, 0.36, 1), padding-bottom 240ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}
.config .select select:hover, .info .select select:hover { border-bottom-color: var(--latte-dark); }
.config .select select:focus-visible, .info .select select:focus-visible { border-bottom-color: var(--lime); outline: 0; }

/* Inquiry form states — sending, failed, sent. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 10px 0 0; font-size: 14px; line-height: 1.45; flex-basis: 100%; }
.form-status:empty { display: none; }
.form-status.is-error { color: #a3241c; }
.form-status.is-success { color: #2f6b3a; }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }


/* === PAGE TRANSITIONS ===
   Cross-document View Transitions. One metaphor site-wide: the page crossfades
   into the next instead of hard-cutting. Chromium honours it; every other
   browser ignores the at-rule and navigates the way it always did. */
@view-transition { navigation: auto; }

/* === REDUCED MOTION ===
   One place that turns the motion layer off. Everything added here animates
   only transform and opacity, so switching it off costs the layout nothing. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-group(*),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  .drop-card .arrow > span,
  .ind-photo img,
  .editorial-img,
  .thumb { transition: none !important; }
}


/* === STICKY MOBILE CTA === */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: oklch(100% 0 0 / 0.14);
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta.in { transform: translateY(0); }
.sticky-cta a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.sticky-cta-go { flex: 1 1 auto; background: var(--lime); color: var(--black); }
.sticky-cta-tel { flex: 0 0 34%; background: var(--black); color: var(--paper); }
@media (max-width: 700px) {
  /* position lives in here too: the bar is a phone-only component, and a
     checker reading the stylesheet should be able to see that. */
  .sticky-cta { display: flex; position: fixed; }
  body { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* Checkout error, shown under a Buy button when /api/checkout refuses.
   Hidden until site/checkout.js has something to say. */
.checkout-error {
  margin-top: var(--s-3);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mocha);
  max-width: 44ch;
}
.checkout-error[hidden] { display: none; }

/* L2 front: decide from the first screen, details stay below. */
.read-first { padding: var(--s-6) 0 var(--s-8); }
.read-count { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--latte-dark); margin: 0 0 12px; }
.read-offer { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 0 0 12px; max-width: 22ch; }
.read-cost { font-size: 18px; line-height: 1.6; margin: 0 0 20px; max-width: 40ch; }
.read-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 0 0 20px; }
.read-card div { background: var(--oat); padding: 16px 18px; }
.read-card .read-label { display: block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--latte-dark); margin: 0 0 8px; }
.read-card .read-value { display: block; font-size: 18px; line-height: 1.45; font-weight: 400; }
.read-index { list-style: none; margin: 28px 0 0; padding: 0; max-width: 40em; }
.read-index li { border-top: 1px solid var(--warm-gray); }
.read-index a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; color: inherit; text-decoration: none; font-size: 18px; }
.read-index a:hover { color: var(--latte-dark); }
@media (max-width: 700px) { .read-card { grid-template-columns: 1fr; } }
.btn[aria-busy="true"] { opacity: 0.68; cursor: progress; }

/* The iOS 16px form-zoom floor is NOT here. Several pages carry an inline
   <style> that mirrors this file and wins on source order, so the rule lives in
   site/_partials/head-tail.html, which the build injects last into every head. */
