/*
Theme Name: Golden Modern
Description: A quiet, product-like theme for the Golden Mean Gauge: Geist type, a near-white ground, ink and one brass accent. The homepage sections are edited on the Home page in wp-admin; every other page keeps its own content and WPBakery layout.
Version: 1.9.13
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: golden-modern
*/

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/Geist-SemiBold.woff2") format("woff2"); }

:root {
  --bg: #fafaf9;
  --panel: #ffffff;
  --sunk: #f2f1ee;
  --line: #e7e5e1;
  --line-2: #d6d3cc;
  --ink: #0c0c0b;
  --ink-2: #57544e;
  --ink-3: #6b675f; /* 4.98:1 on --sunk, 5.39:1 on --bg (WCAG AA) */
  --brass: #a87b2c;
  --brass-ink: #6d4f17;
  --brass-soft: #f4ead6;
  --danger: #b42318;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.08);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brass-soft); color: var(--ink); }
.nums { font-variant-numeric: tabular-nums; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* ---------- buttons: every pressable thing answers the press ---------- */
.btn, .button, button.button, input[type=submit], .wpcf7-submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 15px/1 "Geist", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.btn:active, .button:active, input[type=submit]:active, .wpcf7-submit:active { transform: scale(0.97); }
.btn-primary, .button.alt, .single_add_to_cart_button, .checkout-button, #place_order, input[type=submit], .wpcf7-submit,
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: var(--panel); border: 1px solid var(--line); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn[aria-busy=true] { opacity: 0.6; pointer-events: none; }
.btn svg { flex: none; }
.button:disabled, .button.disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover, input[type=submit]:hover, .wpcf7-submit:hover { background: #2a2925; border-color: #2a2925; }
  .btn-ghost:hover, .button:not(.alt):not(.single_add_to_cart_button):not(.checkout-button):hover { border-color: var(--line-2); }
  .btn-light:hover { background: var(--brass-soft); border-color: var(--brass-soft); }
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgb(250 250 249 / 0.85); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }
.top.is-scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg, .brand-logo { width: 22px; height: 22px; flex: none; object-fit: contain; }
.top .nav { flex: 0 1 auto; min-width: 0; }
.nav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.nav .menu > li { position: relative; }
.nav a { display: block; padding: 6px 0; white-space: nowrap; transition: color 200ms ease; }
.nav .sub-menu a { white-space: normal; }
.nav .menu > li > a { position: relative; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--ink); }
.nav .current-menu-item > a::after, .nav .current_page_item > a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brass); }
.nav .sub-menu .current-menu-item > a::after, .nav .sub-menu .current_page_item > a::after { display: none; }
.nav .sub-menu { position: absolute; top: 100%; left: -12px; min-width: 200px; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top left; visibility: hidden; transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 150ms; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; transform: none; visibility: visible; }
.nav .sub-menu a { padding: 8px 10px; border-radius: 8px; }
.nav .menu > li.menu-item-has-children > a, .nav .menu > li.page_item_has_children > a { display: flex; align-items: center; gap: 5px; }
.nav .menu > li.menu-item-has-children > a::before, .nav .menu > li.page_item_has_children > a::before { content: ""; order: 2; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } .nav .sub-menu a:hover { background: var(--sunk); } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brass); color: #fff; font-size: 12px; font-weight: 600; }
.menu-btn { display: none; }
/* medium widths: the menu moves to its own row under the name and wraps if it must */
@media (min-width: 861px) and (max-width: 1180px) {
  html { scroll-padding-top: 130px; }
  .top .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 4px; }
  .top .nav { order: 3; flex-basis: 100%; }
  .nav .menu { justify-content: flex-start; }
}
/* tablets and phones: the Menu button opens the menu panel */
@media (max-width: 860px) {
  .top .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 400px) { .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .menu-btn { width: 36px; padding: 0; } .brand span { font-size: 15px; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; line-height: 1.35; border-radius: 999px; background: var(--brass-soft); color: var(--brass-ink); font-size: 13px; font-weight: 500; }
.pill i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.hero h1 { margin-top: 20px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.hero-lead { margin-top: 20px; max-width: 46ch; font-size: 18px; color: var(--ink-2); }
.hero-cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 32px; margin-top: 48px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

/* the playground */
.play { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.play-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.play-head b { color: var(--ink); font-weight: 500; }
.play-stage { position: relative; }
.play-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.play-cta { margin-top: 16px; width: 100%; justify-content: center; gap: 8px; }
/* hero: the gauge measuring the Atlas moth, on an endless loop */
.hero-video { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.hero-video-stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--sunk); }
.hero-video-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; left: 10px; bottom: 10px; min-height: 32px; min-width: 44px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-toggle:hover { background: rgba(0,0,0,.72); }
.hero-video .play-cta { margin-top: 12px; }
/* the moving gauge beside "The Golden Proportion" */
.intro-play { position: sticky; top: 88px; }
.play-stage > svg { position: relative; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.leg { fill: #9aa0a6; }
.leg-mid { fill: var(--brass); }
.bar { fill: #c2c6ca; }
.rivet { fill: #fff; stroke: #9aa0a6; stroke-width: 2; }
.handle { cursor: grab; }
.handle:active { cursor: grabbing; }
.handle .ring { fill: var(--panel); stroke: var(--ink); stroke-width: 2; transition: transform 160ms var(--ease-out); transform-box: fill-box; transform-origin: center; }
.handle:active .ring { transform: scale(0.9); }
.handle:focus-visible { outline: none; }
.handle:focus-visible .ring { stroke: var(--brass); stroke-width: 3; }
.gap-label { font: 500 14px "Geist", sans-serif; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.readout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.readout div { background: var(--sunk); border-radius: var(--radius-sm); padding: 10px 12px; }
.readout span { display: block; font-size: 12px; color: var(--ink-3); }
.readout output { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout .phi output { color: var(--brass-ink); }
.chips, .filters { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: var(--panel); transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed=true], .chip[aria-current=page] { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--line-2); color: var(--ink); } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.sec-head h2, .intro h2, .band h2, .story h2, .faq h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.sec-head p { max-width: 40ch; color: var(--ink-2); }

/* the golden proportion + moth wing viewer */
.intro { padding-top: 24px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.intro-copy .prose { margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.viewer { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 12px; position: sticky; top: 88px; }
.viewer-stage { aspect-ratio: 336 / 248; border-radius: var(--radius-sm); overflow: hidden; background: var(--sunk); }
.viewer-stage img { width: 100%; height: 100%; object-fit: cover; }
.viewer figcaption { display: flex; align-items: center; gap: 12px; padding: 12px 4px 2px; }
.viewer figcaption > span { flex: none; width: 52px; font-size: 13px; color: var(--ink-3); }
.viewer figcaption > .viewer-ctl { width: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.viewer-toggle { min-height: 24px; min-width: 44px; padding: 2px 0; font-size: 13px; font-weight: 500; color: var(--ink); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.viewer-toggle[hidden] { display: none; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; outline-offset: 1px; opacity: 0.55; transition: opacity 200ms ease, transform 160ms var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:active { transform: scale(0.95); }
.thumb[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) and (pointer: fine) { .thumb:hover { opacity: 1; } }

/* audience: segmented control with a clipped active layer */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sunk); max-width: 100%; }
.seg-list { display: flex; }
.seg-list button { height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg-active { position: absolute; inset: 4px; pointer-events: none; transition: clip-path 250ms var(--ease-out); clip-path: inset(0 100% 0 0 round 999px); }
.seg-active .seg-list button { background: var(--ink); color: #fff; }
.use { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.use-pic { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.use-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a photo much taller or wider than the box is shown whole, on a soft blurred copy of itself, so nothing is cut off */
.use-pic.is-tall::before { content: ""; position: absolute; inset: -24px; background: var(--pic) center / cover no-repeat; filter: blur(24px) saturate(.9); opacity: .55; }
.use-pic.is-tall img { object-fit: contain; }
.use-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.use-card h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; }
.use-card > p { margin-top: 12px; color: var(--ink-2); }
.use-card ul { margin-top: 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.use-card li, .prose-dots li { display: flex; gap: 10px; font-size: 15px; }
.use-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--brass); }
.pick { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pick small { display: block; font-size: 13px; color: var(--ink-3); }
.pick strong { font-weight: 500; }
.swap { transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.swap.is-leaving { opacity: 0; filter: blur(2px); transform: translateY(4px); }
.viewer-stage .swap.is-leaving { transform: none; }

/* products */
#shop { padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; list-style: none; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: var(--line-2); } .card:hover .card-pic img { transform: scale(1.03); } }
.card-open { display: flex; flex-direction: column; flex: 1; }
.card-pic { aspect-ratio: 1; background: var(--sunk); overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.card-body { padding: 16px 16px 0; }
.card-tag { font-size: 12px; color: var(--ink-3); }
.card h3 { margin-top: 2px; font-size: 16px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px 16px; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; }
.shop-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; }
.ship-note { font-size: 14px; color: var(--ink-3); max-width: 70ch; }

/* dark band: the gauge */
.band { background: var(--ink); color: #f5f4f1; padding: 72px 0; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band .prose { margin-top: 20px; color: #c9c6bf; font-size: 17px; }
.band .btn { margin-top: 32px; }
.band-pic { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #1d1c1a; }
.band-pic img { width: 100%; height: 100%; object-fit: cover; }

/* concept and applications */
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.learn-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.learn-pic { aspect-ratio: 16 / 9; background: var(--sunk); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.learn-pic img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.learn-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.learn-body h2 { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.learn-body .prose { margin-top: 14px; color: var(--ink-2); }
.learn-body .btn { margin-top: auto; align-self: start; }
.learn-body .prose + .btn { margin-top: 28px; }

/* story */
.story-band { background: var(--panel); border-block: 1px solid var(--line); }
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.story-pic { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.story-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.story > div > p { margin-top: 20px; max-width: 54ch; color: var(--ink-2); font-size: 17px; }
.timeline { margin-top: 32px; padding: 0; list-style: none; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline b { font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline span { color: var(--ink-2); }
.story .link-arrow { margin-top: 24px; }

/* questions */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-head p { margin-top: 12px; color: var(--ink-2); }
.faq-head a, .prose a, .comments a, .woocommerce-info a, .woocommerce-message a:not(.button) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .faq-head a:hover, .prose a:hover { text-decoration-color: currentColor; } }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.acc-q svg { flex: none; width: 16px; height: 16px; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
.acc-q[aria-expanded=true] svg { transform: rotate(45deg); }
.acc-a { padding: 0 0 20px; max-width: 58ch; color: var(--ink-2); }
.acc-a p + p { margin-top: 10px; }
.acc-a[hidden] { display: none; }
.acc-a:not([hidden]) { animation: acc-in 200ms var(--ease-out); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-line { margin-top: 10px; max-width: 34ch; }
.foot-mail { margin-top: 6px; }
.foot h2 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.foot .menu { padding: 0; list-style: none; }
.foot li + li { margin-top: 6px; }
.foot a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--ink); } }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.foot .legal-links li + li { margin-top: 0; }
.legal-links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.legal .company { flex-basis: 100%; max-width: 90ch; line-height: 1.5; }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 40px; }
.page-head h1 { margin-top: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; max-width: 22ch; }
.page-head .pill + h1 { margin-top: 18px; }
.page-head p { margin-top: 16px; max-width: 56ch; font-size: 18px; color: var(--ink-2); }
.page-head-404 { padding: 96px 0 120px; }
.page-head-404 h1 { margin-top: 18px; }
.page-frame { max-width: 860px; padding-bottom: 96px; }
.shop-frame, .list-frame { padding-bottom: 96px; }
.lead-pic { margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.lead-pic img { width: 100%; max-height: 520px; object-fit: cover; }

/* prose: the site's own page and post bodies */
.prose { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + *, .prose .wpb_wrapper > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { color: var(--ink); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; text-align: left !important; }
.prose h1, .prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose h4, .prose h5 { font-size: 18px; margin-top: 1.2em; }
.prose > :first-child, .prose .wpb_wrapper > :first-child, .prose .vc_row:first-child h2:first-child { margin-top: 0; }
.prose p { text-align: left !important; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--brass); }
.prose strong, .prose b { font-weight: 600; }
.prose img { border-radius: var(--radius-sm); }
.prose .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 45%; }
.prose .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 45%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--brass); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.table-scroll:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.table-scroll table { min-width: 560px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--radius-sm); }
.prose figure figcaption, .wp-caption-text, .gallery-caption { margin-top: 8px; font-size: 13px; color: var(--ink-3); text-align: center; }
.wp-caption { max-width: 100%; }
.prose span[style*="color: #ffffff"], .prose span[style*="color:#ffffff"] { color: inherit !important; }

/* WordPress galleries */
.gallery { display: grid; gap: 10px; margin-block: 1.5em !important; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.gallery-columns-1 { --cols: 1; } .gallery-columns-2 { --cols: 2; } .gallery-columns-3 { --cols: 3; } .gallery-columns-4 { --cols: 4; } .gallery-columns-5 { --cols: 5; } .gallery-columns-6 { --cols: 6; }
.gallery br { display: none; }
.gallery-item { margin: 0 !important; width: auto !important; }
.gallery-icon img { width: 100%; height: auto; border: 0 !important; border-radius: var(--radius-sm); background: var(--sunk); }

/* WPBakery inside the reading frame */
.prose .vc_row { margin-left: -15px; margin-right: -15px; }
.prose .vc_row[data-vc-full-width] { margin-inline: 0; left: 0 !important; width: auto !important; padding-inline: 0 !important; }
.prose .vc_row-full-width { display: none; }
.prose [class*="vc_custom_"] { background-color: transparent !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.prose .vc_custom_heading { color: var(--ink) !important; font-family: inherit !important; }
.prose .wpb_single_image .vc_single_image-wrapper, .prose .wpb_single_image img { border-radius: var(--radius-sm); }
.prose .vc_btn3-container { margin-top: 1.5em; }
.prose .vc_btn3.vc_btn3-style-outline, .prose a.vc_btn3 { background: var(--ink) !important; border: 1px solid var(--ink) !important; color: #fff !important; border-radius: 999px !important; font: 500 15px/1 "Geist", sans-serif !important; padding: 14px 20px !important; text-transform: none; text-decoration: none !important; transition: transform 160ms var(--ease-out); }
.prose a.vc_btn3:active { transform: scale(0.97); }
.wpb_gallery .flexslider { border: 0; border-radius: var(--radius-sm); background: var(--sunk); box-shadow: none; overflow: hidden; }
.prose .vc_grid-container { margin-top: 0; }
.prose .vc_grid-item-mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .prose .vc_grid-item-mini:hover { border-color: var(--line-2); } }
.prose .vc_gitem-zone-img, .prose .vc_gitem-zone { border-radius: 0; }
.prose .vc_gitem-post-data-source-post_title h4, .prose .vc_gitem-post-data h4 { font-size: 18px !important; margin: 0 !important; letter-spacing: -0.015em; }
.prose .vc_grid .vc_gitem-zone-c { background: var(--panel); }
.prose .vc_grid .vc_gitem-zone-c .vc_gitem-row-position-top { padding: 16px 16px 4px; }
.prose .vc_grid .vc_btn3-container { margin-top: 0; }
.prose .vc_grid .vc_btn3 { padding: 10px 16px !important; font-size: 14px !important; }
.prose .vc_gitem-post-data-source-post_excerpt { font-size: 15px; color: var(--ink-2); }
.prose .vc_grid-pagination { margin-top: 24px; }

/* posts list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 200ms ease; }
.post-pic { aspect-ratio: 3 / 2; background: var(--sunk); overflow: hidden; }
.post-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post-card a:hover { border-color: var(--line-2); } .post-card a:hover img { transform: scale(1.03); } }
.post-body { padding: 18px 20px 22px; }
.post-body h2 { margin-top: 2px; font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.post-body p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.empty { color: var(--ink-2); font-size: 17px; }
.empty a { text-decoration: underline; text-underline-offset: 3px; }
.pagination, .woocommerce-pagination { margin-top: 40px; }
.nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color 200ms ease; }
.post-nav a.is-next { grid-column: 2; text-align: right; }
.post-nav small { display: block; font-size: 13px; color: var(--ink-3); }
.post-nav span { font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .post-nav a:hover { border-color: var(--line-2); } }

/* comments */
.comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments h2, .comment-reply-title { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.comment-list { padding: 0; list-style: none; margin-top: 24px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--ink-3); }
.comment-respond { margin-top: 32px; }

/* ---------- forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], input[type=number], textarea, select,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .select2-container .select2-selection {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink);
  font: 400 16px/1.4 "Geist", system-ui, sans-serif; transition: border-color 200ms ease, box-shadow 200ms ease;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(12 12 11 / 0.06); }
.select2-container .select2-selection--single { height: 44px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
label { font-size: 14px; font-weight: 500; }
form.search { display: flex; gap: 8px; }
form.search input { flex: 1; min-width: 0; height: 44px; }
form.search .btn { height: 44px; }
.wpcf7 form p { margin-top: 16px; }
.wpcf7 form p:first-child { margin-top: 0; }
.wpcf7 label { display: grid; gap: 6px; }
.wpcf7-not-valid-tip { font-size: 13px; color: var(--danger); margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 15px; }

/* ---------- WooCommerce ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .wc-block-components-notice-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding: 14px 18px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); font-size: 15px;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-error { border-color: #f1c4bf; background: #fdf3f2; color: var(--danger); }
.woocommerce-message .button { order: 2; height: 36px; font-size: 14px; }
.crumbs, .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 32px 0 24px; font-size: 13px; color: var(--ink-3); }
.crumbs a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }
.page-head .filters { margin-top: 24px; }
.section-nav .chip-home { gap: 6px; color: var(--ink); font-weight: 500; }
.section-nav .chip-home svg { transform: scaleX(-1); }
.section-nav .chip { height: auto; min-height: 32px; padding-block: 5px; }

/* single product */
.product-frame { padding-bottom: 96px; }
.product-frame .gm-product-top { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.product-frame .gm-product-top > .woocommerce-product-gallery, .product-frame .gm-product-top > .images { position: sticky !important; top: 88px; }
.woocommerce-product-gallery { margin: 0 !important; width: auto !important; float: none !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image, .woocommerce-product-gallery .flex-viewport { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.woocommerce-product-gallery__image img { width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 64px; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; opacity: 0.6; cursor: pointer; transition: opacity 200ms ease; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.9); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; }
.product-frame .summary { float: none !important; width: auto !important; margin: 0 !important; }
.product_title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.summary .price { display: block; margin-top: 12px; font-size: 22px; color: var(--ink) !important; }
.summary .woocommerce-product-details__short-description { margin-top: 16px; color: var(--ink-2); }
.summary form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.summary .single_add_to_cart_button { flex: 1; min-width: 180px; }
.quantity .qty { width: 76px; text-align: center; }
.summary .product_meta { margin-top: 24px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.summary .product_meta a { color: var(--ink-2); }
.spec { margin-top: 20px; display: grid; font-size: 14px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; text-align: right; }
.summary .spec { margin-top: 24px; }
.woocommerce-tabs, .related, .upsells { grid-column: 1 / -1; }
.woocommerce-tabs { max-width: 860px; margin-top: 56px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--ink-2); }
.woocommerce-tabs ul.tabs li.active a { border-color: var(--ink); color: var(--ink); }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce-Tabs-panel { font-size: 17px; }
.related > h2, .upsells > h2, .cross-sells > h2, .cart_totals > h2 { margin: 32px 0 20px; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.onsale { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: var(--brass); color: #fff; font-size: 12px; font-weight: 600; }
#reviews .comment-reply-title { font-size: 20px; }
.star-rating { color: var(--brass); }

/* cart, checkout, account */
.shop-frame .prose, .woocommerce-cart .prose, .woocommerce-checkout .prose, .woocommerce-account .prose { font-size: 16px; line-height: 1.6; }
.shop_table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-spacing: 0; }
.shop_table th, .shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.shop_table thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); background: var(--bg); }
.shop_table tr:last-child td { border-bottom: 0; }
.shop_table .product-thumbnail img { width: 64px; border-radius: 8px; }
.shop_table .product-remove a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3) !important; text-decoration: none; font-size: 18px; transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .shop_table .product-remove a:hover { background: var(--sunk); color: var(--danger) !important; } }
.shop_table .product-name a { font-weight: 500; text-decoration: none; }
.shop_table td.actions { background: var(--bg); }
.shop_table .coupon { display: inline-flex; gap: 8px; }
.shop_table .coupon .input-text { width: 180px; }
.shop_table td.actions > .button { float: right; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 32px; }
.cart_totals { width: min(440px, 100%); }
.cart_totals .shop_table th { width: 40%; font-weight: 500; }
.wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; height: 52px; font-size: 16px; }
.woocommerce-shipping-methods { padding: 0; list-style: none; }
.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: auto; float: none; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce form .form-row-wide, #billing_address_1_field, #billing_address_2_field, #shipping_address_1_field, #shipping_address_2_field { grid-column: 1 / -1; }
.woocommerce form .form-row .required { color: var(--brass); text-decoration: none; }
.woocommerce-checkout .col2-set, .woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: auto; float: none; }
.woocommerce-checkout h3 { margin: 0 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -0.025em; }
#order_review_heading { margin-top: 40px; }
#payment { margin-top: 24px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
#payment .wc_payment_methods { padding: 0; list-style: none; }
#payment .payment_box { margin: 10px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sunk); font-size: 14px; }
#place_order { width: 100%; height: 52px; margin-top: 16px; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation ul { padding: 0; list-style: none; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none !important; color: var(--ink-2); transition: background-color 200ms ease; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--sunk); color: var(--ink); font-weight: 500; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 920px; }
.woocommerce-form-login, .woocommerce-form-register { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-form-login__rememberme { display: inline-flex; gap: 8px; align-items: center; margin-right: 12px; }
.woocommerce-cart .wc-empty-cart-message + .return-to-shop, .return-to-shop { margin-top: 16px; }

/* ---------- panels: product sheet and menu ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(12 12 11 / 0.32); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.gm-panel { position: fixed; z-index: 41; top: 8px; right: 8px; bottom: 8px; width: min(440px, calc(100% - 16px)); background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 16px)); transition: transform 400ms var(--ease-drawer), visibility 0s 400ms; visibility: hidden; }
.gm-panel.is-open { transform: none; visibility: visible; transition: transform 400ms var(--ease-drawer); }
.gm-panel.is-closing { transition-duration: 250ms, 0s; transition-delay: 0s, 250ms; }
.sheet-grip { display: none; }
.sheet-pic { aspect-ratio: 4 / 3; background: var(--sunk); flex: none; }
.sheet-pic img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 24px; overflow-y: auto; flex: 1; }
.sheet-body h2 { font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; }
.sheet-body .price { display: block; margin-top: 6px; font-size: 18px; }
.sheet-desc { margin-top: 16px; color: var(--ink-2); }
.sheet-foot { padding: 16px 24px 24px; display: flex; gap: 10px; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.9); transition: transform 160ms var(--ease-out); }
.sheet-x:active { transform: scale(0.94); }
.menu-panel { padding: 0 8px 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; flex: none; }
.panel-head .sheet-x { position: static; background: var(--sunk); }
.menu-panel nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.menu-panel .menu, .menu-panel .sub-menu { padding: 0; list-style: none; }
.menu-panel .menu a { display: block; padding: 12px 16px; border-radius: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; transition: background-color 200ms ease; }
.menu-panel .sub-menu a { font-size: 16px; padding: 8px 16px 8px 28px; color: var(--ink-2); }
.menu-panel .current-menu-item > a, .menu-panel .current_page_item > a { background: var(--sunk); }
@media (hover: hover) and (pointer: fine) { .menu-panel .menu a:hover { background: var(--sunk); } }
.menu-panel .search { padding: 12px 16px 0; }

/* ---------- toasts ---------- */
.toaster { position: fixed; z-index: 50; right: 20px; bottom: 20px; width: 340px; height: 0; }
.toast { position: absolute; right: 0; bottom: 0; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); font-size: 14px; transform-origin: bottom center; transition: transform 400ms ease, opacity 400ms ease; }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.toast b { display: block; font-weight: 500; }
.toast span { color: var(--ink-3); font-size: 13px; }
.toast a { margin-left: auto; font-weight: 500; font-size: 13px; }
.toast.is-gone { opacity: 0; transform: translateY(100%) !important; transition-duration: 200ms; }

/* ---------- entrance: once, staggered, short; only when script runs ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(8px); animation: rise 500ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .clip-in { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
  .js .clip-in.is-in { clip-path: inset(0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gm-panel, .toast, .seg-active { transition: opacity 200ms ease, visibility 0s 200ms; }
  .gm-panel { transform: none; opacity: 0; }
  .gm-panel.is-open { opacity: 1; transition: opacity 200ms ease; }
  @starting-style { .toast { transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .use, .story, .faq, .intro-grid, .band-grid, .learn, .product-frame .gm-product-top { grid-template-columns: 1fr; gap: 32px; }
  .viewer, .intro-play { position: static; }
  .product-frame .gm-product-top > .woocommerce-product-gallery, .product-frame .gm-product-top > .images { position: static !important; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > div:first-child { grid-column: 1 / -1; }
  .story-pic { max-width: 420px; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .woocommerce-checkout .col2-set, .woocommerce .col2-set, .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
  .shop_table_responsive thead { display: none; }
  .shop_table_responsive tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border: 0; text-align: right !important; }
  .shop_table_responsive td::before { content: attr(data-title); font-weight: 500; color: var(--ink-3); text-align: left; }
  .shop_table_responsive td.product-remove::before, .shop_table_responsive td.product-thumbnail::before, .shop_table_responsive td.actions::before { content: none; }
  .shop_table_responsive td.actions { display: grid; gap: 10px; }
  .shop_table .coupon { display: grid; grid-template-columns: 1fr auto; }
  .shop_table .coupon .input-text { width: 100%; }
  .shop_table td.actions > .button { float: none; width: 100%; }
  .prose .alignright, .prose .alignleft { float: none; margin: 1em 0; max-width: 100%; }
  .gallery { --cols: 2 !important; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 64px; }
  .pill { border-radius: 14px; }
  .readout output { font-size: 16px; }
  .readout div { padding: 8px 10px; }
  .facts { grid-template-columns: repeat(2, auto); gap: 20px 32px; }
  .section, .band { padding: 48px 0; }
  .intro { padding-top: 8px; }
  .sec-head { flex-direction: column; align-items: start; }
  .seg { overflow-x: auto; scrollbar-width: none; }
  .grid { gap: 10px; }
  .posts { grid-template-columns: 1fr; }
  .card-body { padding: 12px 12px 0; }
  .card h3 { font-size: 15px; }
  .card-foot { padding: 10px 12px 12px; }
  .card-foot .btn { padding: 0 12px; }
  .use-card, .learn-body { padding: 24px; }
  .seg-list button { padding: 0 14px; }
  .shop-foot { flex-direction: column; align-items: start; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .page-head { padding: 40px 0 28px; }
  .page-frame, .shop-frame, .list-frame, .product-frame { padding-bottom: 64px; }
  .prose { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.is-next { grid-column: 1; }
  .toaster { right: 12px; left: 12px; bottom: 12px; width: auto; }
  /* product sheet becomes a bottom sheet */
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88svh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .sheet.is-open { transform: none; }
  .sheet-grip { display: block; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 28px; touch-action: none; }
  .sheet-grip::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: rgb(255 255 255 / 0.9); }
  .sheet-pic { aspect-ratio: 16 / 9; }
}

/* ---------- WooCommerce stylesheet overrides ---------- */
.grid::before, .grid::after, .woocommerce .products::before, .woocommerce .products::after { content: none !important; display: none !important; }
.woocommerce ul.products.grid { display: grid; margin: 0; }
.woocommerce .card .price, .woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price { color: var(--ink); font-size: inherit; }
.woocommerce div.product .summary p.price { font-size: 22px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 0 14px; font-weight: 500; color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; }
.woocommerce div.product form.cart .button { float: none; }
.woocommerce .quantity .qty { width: 76px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin-bottom: 0; }
.hero .wrap > *, .intro-grid > *, .use > *, .story > *, .faq > *, .band-grid > *, .learn > *, .product-frame .gm-product-top > * { min-width: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; padding: 0; font-size: 16px; margin: 0; }
@media (max-width: 420px) { .top .wrap { gap: 10px; } .brand { gap: 8px; } .brand span { font-size: 15px; } .top-actions { gap: 6px; } }
.prose { overflow-x: clip; }
@media (max-width: 760px) { .prose .vc_row { margin-inline: 0; } .prose .vc_column_container > .vc_column-inner { padding-inline: 0; } }
.card .price, .woocommerce .card .price { color: var(--ink) !important; font-size: 16px; }

/* ---------- accessibility (WCAG 2.2 AA) ---------- */
.woocommerce div.product .stock.in-stock { color: #3f6e2e; }
.woocommerce div.product .stock.out-of-stock { color: #a3261d; }
.product_meta a, .post-meta a, .comment-metadata a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):not(.button) { text-decoration: underline; text-underline-offset: 2px; }
.nav li.is-dismissed > .sub-menu { opacity: 0; visibility: hidden; }
.a11y-statement h2 { margin-top: 40px; }
.a11y-statement dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.a11y-statement dt { color: var(--ink-3); }
@media (forced-colors: active) {
  .btn, .chip, .card, .gm-panel, .toast, .seg-list button[aria-selected="true"] { border: 1px solid CanvasText; }
  .handle .ring { stroke: CanvasText; }
}
.posts > li, .grid > li { min-width: 0; }
.prose .vc_gitem-zone-c { height: auto !important; overflow: visible; }
iframe:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.foot .wrap > * { min-width: 0; }
.foot-mail a { overflow-wrap: anywhere; }
/* Let card text grow when users widen text spacing (WCAG 1.4.12); the photo keeps the rounded top. */
.prose .vc_grid-item-mini { overflow: visible; height: auto !important; }
.prose .vc_grid-item-mini .vc_gitem-zone-img, .prose .vc_grid-item-mini .vc_gitem-zone-a { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }

/* ---------- cookie banner: theme colours and type ---------- */
body #cbl13-root { --cbl13-accent: var(--ink); --cbl13-bg: var(--panel); --cbl13-fg: var(--ink); --cbl13-muted: var(--ink-2); --cbl13-border: var(--line); font-family: inherit; }
/* the site is light only, so the banner stays light too */
@media (prefers-color-scheme: dark) {
  body #cbl13-root .cbl13-btn--ghost { border-color: var(--line-2); color: var(--ink); }
  body #cbl13-root .cbl13-btn--ghost:hover { background: var(--sunk); }
  body #cbl13-root .cbl13-banner, body .cbl13-reopen { border-color: var(--line); }
  body #cbl13-root .cbl13-modal__head, body #cbl13-root .cbl13-modal__actions, body #cbl13-root .cbl13-cat { border-color: var(--line); }
}
@media (max-width: 640px) { body #cbl13-root .cbl13-banner__body { flex-basis: auto; } }
body #cbl13-root button, body .cbl13-reopen { font-family: inherit; }

/* ---------- checkout: not a medical device ---------- */
.gm-disclaimer { margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--sunk); }
.gm-disclaimer h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.gm-disclaimer p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.gm-disclaimer .form-row { margin: 0; padding: 0; }
.gm-disclaimer label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.gm-disclaimer input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }

/* ---------- WPBakery pages shown without the plugin (inc/wpbakery.php) ---------- */
.gm-vc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; margin: 0 0 1.5em; }
.gm-vc-col { grid-column: span var(--span, 12); min-width: 0; }
.gm-vc-row > :not(.gm-vc-col) { grid-column: 1 / -1; min-width: 0; } /* content left outside a column by a broken code */
.gm-vc-col > :first-child, .gm-vc-text > :first-child { margin-top: 0; }
@media (max-width: 760px) { .gm-vc-col { grid-column: 1 / -1; } }
.gm-vc-image { margin: 1.25em 0; }
.gm-vc-image.is-center img { margin-inline: auto; }
.gm-vc-image.is-right img { margin-left: auto; }
.gm-vc-image img { border-radius: var(--radius-sm); }
.gm-photo-row, .gm-vc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.25em 0; padding: 0; list-style: none; }
.gm-vc-gallery li { margin: 0; }
.gm-photo-row > a, .gm-photo-row > img { display: block; margin: 0; }
.gm-photo-row img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.gm-vc-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.gm-vc-rule { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.gm-vc-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* article cards inside a page keep their card look, not the page's text styles */
.prose .gm-vc-grid { margin: 0; padding: 0; }
.prose > * + .gm-vc-grid { margin-top: 32px; }
.prose .gm-vc-grid li { margin: 0; }
.prose .gm-vc-grid a:not(.btn):not(.button) { text-decoration: none; }
.prose .gm-vc-grid .post-body h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.prose .gm-vc-grid .post-body p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.prose .gm-vc-grid img { border-radius: 0; }
@media (min-width: 761px) { .page-frame .gm-vc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- photo viewer ---------- */
.lb-zoom { cursor: zoom-in; }
.lb-zoom:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.lb { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(12 12 11 / 0.94); color: #fff; overscroll-behavior: contain; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; }
.lb-stage { display: grid; justify-items: center; gap: 12px; width: 100%; height: 100%; padding: 64px 72px 24px; margin: 0; align-content: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; opacity: 0; transition: opacity 200ms ease; }
.lb-img.is-in { opacity: 1; }
.lb-cap { display: flex; gap: 16px; align-items: baseline; justify-content: center; max-width: 70ch; font-size: 14px; color: rgb(255 255 255 / 0.85); text-align: center; }
.lb-count { flex: none; color: rgb(255 255 255 / 0.7); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 0.12); color: #fff; transition: background 150ms ease; }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgb(255 255 255 / 0.24); } }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 600px) {
  .lb-stage { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .lb-img { transition: none; } }
@media (forced-colors: active) { .lb-btn { border: 1px solid CanvasText; } }
.prose .gm-vc-gallery, .prose .gm-photo-row { padding: 0; margin: 1.5em 0; list-style: none; }
.prose .gm-vc-gallery li, .prose .gm-vc-gallery li + li { margin: 0; padding: 0; }
.prose .gm-vc-gallery li::before, .prose .gm-vc-gallery li::marker { content: none; }
.gm-vc-gallery a, .gm-vc-gallery img { display: block; }

/* ---------- contents lists shown as picture boxes (inc/toc-cards.php) ---------- */
.prose .toc-cards { margin: 1.5em 0 2.5em; padding: 0; list-style: none; }
.prose .toc-cards li, .prose .toc-cards li + li { margin: 0; padding: 0; }
.prose .toc-cards li::before, .prose .toc-cards li::marker { content: none; }
.prose .toc-cards a:not(.btn):not(.button) { text-decoration: none; }
.prose .toc-cards img { border-radius: 0; }
.toc-cards .post-body { padding: 14px 16px 16px; }
.toc-title { display: block; font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
@media (min-width: 761px) { .page-frame .toc-cards { grid-template-columns: repeat(3, 1fr); } }
.prose .back-to-contents { margin: 1.5em 0 2.5em; font-size: 14px; }
.prose .back-to-contents a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.prose .back-to-contents a:hover { color: var(--ink); text-decoration: underline; }
.toc-cards:focus { outline: none; }

/* ---------- Golden Mean Gauge tool: [golden_gauge] (inc/gauge.php) ---------- */
/* the tool is wider than the reading column, so that page lets it out of the column's clip */
.prose:has(.gm-gauge) { overflow-x: visible; }
.gm-gauge { --gm-gauge-w: min(1200px, 100vw - 40px); position: relative; left: 50%; width: var(--gm-gauge-w); margin: 2em 0 2em calc(var(--gm-gauge-w) / -2); }
.prose .gm-gauge-frame, .gm-gauge-frame { display: block; width: 100%; max-width: none; height: var(--gm-gauge-h, 760px); border: 0; border-radius: 0; background: transparent; }
.gm-gauge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px !important; font-size: 15px; color: var(--ink-2); }
.prose .gm-gauge-actions a.btn { text-decoration: none; }
@media (max-width: 760px) { .prose .gm-gauge-frame, .gm-gauge-frame { height: 1180px; } }
