/* ==========================================================================
   Hive & Honey — beekeeping tools & knowledge
   Warm honey light theme · hexagon geometry · centered floating capsule header
   No framework. No external requests. Everything below is the whole theme.
   ========================================================================== */

/* ------------------------------------------------------------- tokens */
:root {
  /* the three */
  --cream-50:  #FBF7EF;
  --wax-800:   #4A3218;
  --honey-500: #D99A2B;

  /* honey ramp */
  --honey-900: #7A5210;
  --honey-700: #A87520;
  --honey-500: #D99A2B;
  --honey-400: #E8B458;
  --honey-300: #F0C878;
  --honey-200: #F7DFA8;
  --honey-100: #FBF0D4;

  /* wax ramp */
  --wax-950: #2A1C0E;
  --wax-900: #3A2812;
  --wax-800: #4A3218;
  --wax-700: #5C4020;
  --wax-600: #7A5A34;
  --wax-500: #A08460;
  --wax-400: #C4AB88;
  --wax-300: #E0D2B8;
  --wax-200: #F0E8D8;

  /* cream ramp */
  --cream-50:  #FBF7EF;
  --cream-100: #F5EFE2;
  --cream-200: #EDE4D0;
  --cream-300: #E0D2B8;
  --cream-400: #D1BFA0;

  /* accents */
  --leaf-900: #3E5A26;
  --leaf-700: #5A7A3A;
  --leaf-500: #7A9A5A;
  --leaf-300: #A8C488;
  --leaf-100: #E0EDD0;

  --sting-900: #8A3A28;
  --sting-700: #A84A32;
  --sting-500: #C4614A;
  --sting-300: #E8A08C;
  --sting-100: #FAE0D8;

  --smoke-900: #33526E;
  --smoke-700: #4A6C8C;
  --smoke-500: #6A8CA8;
  --smoke-300: #A8C4D9;
  --smoke-100: #E4EDF3;

  /* semantic */
  --ok:      #5A7A3A;
  --warn:    #A84A32;
  --info:    #4A6C8C;
  --ok-bg:   #E0EDD0;
  --warn-bg: #FAE0D8;
  --info-bg: #E4EDF3;

  /* text */
  --ink:        #2A1C0E;
  --ink-muted:  #6B5A40;
  --ink-faint:  #8A7558;
  --on-dark:      #FBF7EF;
  --on-dark-muted:#E0D2B8;

  /* surfaces */
  --bg:        #FBF7EF;
  --surface:   #FFFFFF;
  --surface-2: #F5EFE2;
  --surface-3: #EDE4D0;
  --border:      #E0D2B8;
  --border-strong: #D1BFA0;

  /* shadows — warm, never neutral grey */
  --shadow-xs: 0 1px 2px rgba(74, 50, 24, .05);
  --shadow-sm: 0 2px 6px rgba(74, 50, 24, .07);
  --shadow-md: 0 6px 16px rgba(74, 50, 24, .08);
  --shadow-lg: 0 14px 36px rgba(74, 50, 24, .10);

  /* radii */
  --r-sm: 8px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* motion */
  --t-fast: .16s ease;
  --t:      .28s ease;
  --t-bounce: .4s cubic-bezier(.34, 1.56, .64, 1);

  /* layout */
  --container: 1200px;
  --container-narrow: 820px;
  --container-wide: 1360px;
  --gutter: 22px;
  --header-h: 56px;

  /* type */
  --font-head: "Bitter", "Rockwell", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "Menlo", "SF Mono", "Courier New", monospace;

  /* hexagon geometry — used for icons, badges and decorative cells */
  --hex: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
  --hex-flat: polygon(0% 25%, 50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%);

  /* the comb pattern, reused as a background wash */
  --comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cg fill='none' stroke='%23D99A2B' stroke-width='1' stroke-opacity='.28'%3E%3Cpath d='M14 1 26 1 32 12 26 23 14 23 8 12Z'/%3E%3Cpath d='M42 1 54 1 60 12 54 23 42 23 36 12Z'/%3E%3Cpath d='M-14 1 -2 1 4 12 -2 23 -14 23 -20 12Z'/%3E%3Cpath d='M14 25 26 25 32 36 26 47 14 47 8 36Z'/%3E%3Cpath d='M42 25 54 25 60 36 54 47 42 47 36 36Z'/%3E%3Cpath d='M-14 25 -2 25 4 36 -2 47 -14 47 -20 36Z'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--wax-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--honey-700); }
p a, li a, .prose a { text-decoration: underline; text-decoration-color: var(--honey-300); text-underline-offset: 3px; }
p a:hover, li a:hover, .prose a:hover { text-decoration-color: var(--honey-500); }

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

::selection { background: var(--honey-200); color: var(--wax-950); }

:focus-visible {
  outline: 3px solid var(--honey-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 400;
  background: var(--honey-500);
  color: var(--wax-900);
  font-weight: 800;
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: var(--wax-900); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }
h5 { font-size: .98rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 800; color: var(--wax-900); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
li::marker { color: var(--honey-500); }

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--honey-300);
  color: var(--ink-muted);
  font-style: italic;
}

code, kbd, samp { font-family: var(--font-mono); font-size: .88em; }
code {
  background: var(--cream-200);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--wax-800);
}
kbd {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .8em;
}
.mono { font-family: var(--font-mono); }

/* a measured value — weight, temperature, yield */
.param {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--wax-800);
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--honey-700);
  margin-bottom: 10px;
}
.eyebrow.on-dark { color: var(--honey-400); }

.lede { font-size: 1.06rem; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* -------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.section { padding: 60px 0; }
.section-sm { padding: 38px 0; }
.section-tight { padding: 42px 0 60px; }
.section-alt { background: var(--cream-100); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-comb { background-color: var(--cream-50); background-image: var(--comb); background-size: 56px 48px; }

.section-head { margin-bottom: 30px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-muted); margin-bottom: 0; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.section-head-row .section-head { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--gutter); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split-wide { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.split-side { display: grid; grid-template-columns: 1fr 310px; gap: 44px; align-items: start; }

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 30px; }

/* -------------------------------------------------------------- header */
/* §5 — the only site here without a full-bleed header bar. A sticky,
   transparent rail holds a centered floating capsule. */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
  padding: 0 var(--gutter);
}

.capsule {
  pointer-events: auto;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  padding: 0 10px 0 14px;
  border-radius: var(--r-pill);
  background: rgba(251, 247, 239, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--honey-300);
  box-shadow: var(--shadow-md);
  transition: height var(--t), box-shadow var(--t), background var(--t);
}
.site-header.is-condensed .capsule { height: 48px; box-shadow: var(--shadow-sm); }
.site-header.is-condensed .brand-tag { opacity: 0; height: 0; margin: 0; }
.site-header.is-condensed .brand-mark { width: 24px; height: 24px; }

/* decorative comb cells flanking the capsule on wide screens */
.capsule::before,
.capsule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 96px;
  height: 44px;
  transform: translateY(-50%);
  background-image: var(--comb);
  background-size: 32px 28px;
  opacity: .5;
  pointer-events: none;
}
.capsule::before { left: -108px; }
.capsule::after { right: -108px; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--honey-500);
  clip-path: var(--hex);
  flex: 0 0 auto;
  transition: width var(--t), height var(--t);
}
.brand-mark svg { width: 60%; height: 60%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--wax-800);
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--honey-700);
  transition: opacity var(--t), height var(--t);
}

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; justify-content: center; }
.main-nav > a,
.nav-drop > button {
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 500;
  color: var(--wax-800);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.main-nav > a:hover,
.nav-drop > button:hover { background: rgba(217, 154, 43, .12); color: var(--honey-700); }
.main-nav > a[aria-current="page"],
.nav-drop > button[aria-current="page"] { color: var(--honey-700); background: rgba(217, 154, 43, .08); }
.main-nav > a[aria-current="page"] { font-weight: 700; }
.nav-drop > button svg { width: 13px; height: 13px; transition: transform var(--t-fast); }
.nav-drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-drop { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 330px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  transition: background var(--t-fast);
}
.dropdown a:hover { background: var(--honey-100); color: var(--honey-700); }
.dd-ico {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  display: grid; place-items: center;
  background: var(--honey-200);
  clip-path: var(--hex);
}
.dd-ico svg { width: 12px; height: 12px; }
.dd-body { min-width: 0; }
.dd-name { display: block; font-size: .86rem; font-weight: 700; }
.dd-desc { display: block; font-size: .72rem; color: var(--ink-muted); line-height: 1.45; }
.dropdown .dd-all {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-weight: 800;
  font-size: .8rem;
  color: var(--honey-700);
  justify-content: center;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--wax-800);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: rgba(217, 154, 43, .14); color: var(--honey-700); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { width: 38px; height: 38px; display: none; }
.nav-toggle svg { width: 20px; height: 20px; }

.btn-studio {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--honey-500);
  color: var(--honey-700);
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-bounce);
  white-space: nowrap;
}
.btn-studio:hover { background: var(--honey-500); color: var(--wax-900); transform: translateY(-1px); }
.btn-studio svg { width: 14px; height: 14px; }

/* search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(42, 28, 14, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  padding: 90px 20px 20px;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.search-field svg { width: 18px; height: 18px; color: var(--honey-500); flex: 0 0 auto; }
.search-field input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-hit {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink);
}
.search-hit:hover, .search-hit:focus { background: var(--honey-100); color: var(--wax-900); }
.search-hit .sh-kind {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-700);
}
.search-hit .sh-title { display: block; font-weight: 700; font-size: .92rem; font-family: var(--font-head); }
.search-hit .sh-desc { display: block; font-size: .78rem; color: var(--ink-muted); }
.search-empty { padding: 24px; text-align: center; color: var(--ink-muted); font-size: .9rem; }
.search-hint { padding: 10px 18px 14px; font-size: .74rem; color: var(--ink-faint); border-top: 1px solid var(--border); }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--wax-900); color: var(--on-dark-muted); margin-top: 60px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0 34px;
}
.site-footer h4 {
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--honey-400); margin-bottom: 14px; font-family: var(--font-body);
}
.site-footer a { color: var(--on-dark-muted); font-size: .88rem; }
.site-footer a:hover { color: var(--honey-300); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-tag { color: var(--honey-400); }
.footer-about { font-size: .86rem; line-height: 1.65; color: var(--on-dark-muted); margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(224, 210, 184, .28);
  color: var(--on-dark-muted);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer-social a:hover { background: var(--honey-500); border-color: var(--honey-500); color: var(--wax-900); }
.footer-social svg { width: 16px; height: 16px; }

.subscribe { display: flex; gap: 8px; margin-top: 12px; }
.subscribe input {
  flex: 1; min-width: 0;
  background: rgba(251, 247, 239, .07);
  border: 1px solid rgba(224, 210, 184, .3);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: .84rem;
}
.subscribe input::placeholder { color: rgba(224, 210, 184, .6); }
.subscribe input:focus { outline: none; border-color: var(--honey-400); }

.footer-disclaimers {
  border-top: 1px solid rgba(224, 210, 184, .2);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
}
.safety-block {
  border: 1px solid rgba(217, 154, 43, .45);
  border-radius: var(--r);
  padding: 16px 18px;
  background: rgba(217, 154, 43, .07);
}
.safety-block h5 {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-400); margin: 0 0 8px;
}
.safety-block h5 svg { width: 16px; height: 16px; }
.safety-block p { font-size: .82rem; line-height: 1.65; color: var(--on-dark-muted); margin: 0; }
.safety-block ul { margin: 8px 0 0; padding-left: 1.1em; }
.safety-block li { font-size: .82rem; color: var(--on-dark-muted); margin-bottom: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(224, 210, 184, .2);
  padding: 18px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
}
.footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(224, 210, 184, .3);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--honey-300);
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-bounce), box-shadow var(--t-fast);
  text-align: center;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-primary { background: var(--honey-500); color: var(--wax-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--honey-400); color: var(--wax-950); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-wax { background: var(--wax-800); color: var(--on-dark); }
.btn-wax:hover { background: var(--wax-700); color: var(--on-dark); transform: translateY(-2px); }
.btn-outline { background: var(--surface); color: var(--wax-800); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--honey-500); color: var(--honey-700); background: var(--honey-100); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(251, 247, 239, .4); }
.btn-ghost-light:hover { background: rgba(251, 247, 239, .12); color: var(--on-dark); border-color: var(--honey-400); }
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--honey-300); }
.card-media { aspect-ratio: 16 / 10; background: var(--cream-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-title { font-size: 1.06rem; font-weight: 700; font-family: var(--font-head); margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--honey-700); }
.card-text { font-size: .88rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
  color: var(--ink-muted);
}
.card-link { position: absolute; inset: 0; z-index: 1; }
.card { position: relative; }

/* category card — icon, no image */
.cat-card .cat-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--honey-500);
  clip-path: var(--hex);
  margin-bottom: 4px;
}
.cat-card .cat-ico svg { width: 24px; height: 24px; color: var(--wax-900); }
.cat-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 700; color: var(--honey-700);
}

/* tool card — cream plate, line artwork */
.tool-card .card-media { background: var(--cream-100); display: grid; place-items: center; padding: 12px; }
.tool-card .card-media img { object-fit: contain; width: 100%; height: 100%; }
.tool-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--cream-200);
  color: var(--wax-700);
  border: 1px solid var(--border);
}
.stage-pill.on-dark { background: rgba(217, 154, 43, .16); border-color: rgba(217, 154, 43, .4); color: var(--honey-300); }

/* blog card */
.blog-card .card-media { aspect-ratio: 16 / 9; }
.blog-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .76rem; color: var(--ink-faint);
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--wax-400); }

/* calculator card */
.calc-card { background: var(--surface); }
.calc-card .card-body { gap: 10px; }
.mini-field { display: flex; flex-direction: column; gap: 4px; }
.mini-field label { font-size: .74rem; font-weight: 700; color: var(--ink-muted); }
.mini-field input, .mini-field select {
  font-family: var(--font-mono);
  font-size: .84rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-50);
  color: var(--ink);
  width: 100%;
}
.mini-field input:focus, .mini-field select:focus { outline: none; border-color: var(--honey-500); }
.mini-out {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 700;
  color: var(--honey-700);
  background: var(--honey-100);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  text-align: center;
}

/* studio card — deep wax plate */
.studio-card {
  background: var(--wax-800);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--wax-700);
  transition: transform var(--t), box-shadow var(--t);
}
.studio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.studio-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 42px 36px;
  opacity: .16;
  pointer-events: none;
}
.studio-thumb { aspect-ratio: 16 / 10; position: relative; background: radial-gradient(circle at 50% 55%, rgba(217, 154, 43, .3), transparent 68%); }
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-card .card-body { position: relative; z-index: 1; }
.studio-card .card-title, .studio-card .card-title a { color: var(--on-dark); }
.studio-card .card-title a:hover { color: var(--honey-300); }
.studio-card .card-text { color: var(--on-dark-muted); }
.studio-card .card-foot { border-top-color: rgba(224, 210, 184, .2); color: var(--honey-300); }

.badge-3d {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--honey-500);
  color: var(--wax-900);
}
.badge-3d svg { width: 11px; height: 11px; }
.badge-3d.ghost { background: transparent; border: 1px solid var(--honey-400); color: var(--honey-300); }

/* hexagon-cut card, for showing a single hive or queen */
.honeycomb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
}
.honeycomb-card .hc-hex {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--honey-200);
  clip-path: var(--hex);
}
.honeycomb-card .hc-hex svg { width: 20px; height: 20px; color: var(--honey-900); }

/* ---------------------------------------------------------------- tags */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--honey-100);
  color: var(--honey-900);
  border: 1px solid transparent;
}
.tag.wax { background: var(--cream-200); color: var(--wax-700); }
.tag.leaf { background: var(--leaf-100); color: var(--leaf-900); }
.tag.sting { background: var(--sting-100); color: var(--sting-900); }
.tag.smoke { background: var(--smoke-100); color: var(--smoke-900); }
.tag.line { background: transparent; border-color: var(--border-strong); color: var(--wax-700); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--wax-700);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--honey-500); color: var(--honey-700); }
.chip[aria-pressed="true"], .chip.active { background: var(--wax-800); color: var(--cream-50); border-color: var(--wax-800); }

.hex-badge {
  display: inline-grid; place-items: center;
  width: 34px; height: 38px;
  background: var(--honey-500);
  clip-path: var(--hex);
  font-size: .62rem; font-weight: 800; line-height: 1.05;
  color: var(--wax-900);
  text-align: center;
  padding: 0 3px;
}

/* ------------------------------------------------------------- notices */
.notice {
  border-radius: var(--r);
  padding: 15px 18px;
  font-size: .9rem;
  border: 1px solid transparent;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice strong { display: block; margin-bottom: 2px; }
.notice.safety { background: var(--honey-100); border-color: var(--honey-300); color: var(--honey-900); }
.notice.safety strong { color: var(--honey-900); }
.notice.info { background: var(--info-bg); border-color: var(--smoke-300); color: var(--smoke-900); }
.notice.info strong { color: var(--smoke-900); }
.notice.warn { background: var(--warn-bg); border-color: var(--sting-300); color: var(--sting-900); }
.notice.warn strong { color: var(--sting-900); }
.notice.neutral { background: var(--surface-2); border-color: var(--border); color: var(--ink); }

.tip-box {
  border-left: 4px solid var(--honey-500);
  background: var(--honey-100);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: .92rem;
}
.tip-box .tb-label {
  display: block;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-900); margin-bottom: 4px;
}
.tip-box p:last-child { margin-bottom: 0; }
.tip-box.warn { border-left-color: var(--sting-700); background: var(--sting-100); }
.tip-box.warn .tb-label { color: var(--sting-900); }
.tip-box.note { border-left-color: var(--smoke-700); background: var(--info-bg); }
.tip-box.note .tb-label { color: var(--smoke-900); }
.tip-box.ok { border-left-color: var(--leaf-700); background: var(--leaf-100); }
.tip-box.ok .tb-label { color: var(--leaf-900); }

.legal-note {
  background: var(--cream-100);
  border-left: 4px solid var(--wax-600);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px;
  font-size: .84rem;
  color: var(--ink-muted);
  margin-top: 26px;
}
.legal-note p:last-child { margin-bottom: 0; }

.empty-state {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r);
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-muted);
  background: var(--cream-50);
}
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--wax-400); }

.safety-strip {
  background: var(--warn-bg);
  border: 1px solid var(--sting-300);
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: .84rem;
  color: var(--sting-900);
}
.safety-strip .ss-items { display: flex; gap: 16px; flex-wrap: wrap; }
.safety-strip .ss-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.safety-strip svg { width: 16px; height: 16px; }
.safety-strip .ss-lead { font-weight: 800; }

.season-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
}
.season-indicator .dot { width: 9px; height: 9px; border-radius: 50%; }
.season-spring .dot { background: var(--leaf-500); }
.season-summer .dot { background: var(--honey-500); }
.season-autumn .dot { background: var(--honey-700); }
.season-winter .dot { background: var(--wax-600); }

/* ---------------------------------------------------------- page hero */
.page-hero {
  background: var(--wax-800);
  color: var(--on-dark);
  padding: 34px 0 40px;
  border-bottom: 3px solid var(--honey-500);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 56px 48px;
  opacity: .14;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--on-dark); margin-bottom: .35em; }
.page-hero .lede { color: var(--on-dark-muted); max-width: 720px; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--honey-400); }

.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; margin-bottom: 14px; color: rgba(224, 210, 184, .75);
}
.breadcrumbs a { color: rgba(224, 210, 184, .9); }
.breadcrumbs a:hover { color: var(--honey-300); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: .6; }
.breadcrumbs [aria-current] { color: var(--honey-300); font-weight: 700; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--shadow-md);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  display: block;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #FBF7EF 0%, rgba(251, 247, 239, .9) 46%, rgba(74, 50, 24, .25) 100%);
}
.hero-comb {
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 56px 48px;
  opacity: .55;
  pointer-events: none;
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px);
  max-width: 640px;
  z-index: 2;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--honey-300);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--honey-900);
  margin-bottom: 16px;
}
.hero-kicker svg { width: 14px; height: 14px; }
.hero h1, .hero h2 { font-size: clamp(1.95rem, 4.2vw, 2.9rem); margin-bottom: .4em; }
.hero p { font-size: 1.02rem; color: var(--ink-muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.hero-nav {
  position: absolute; bottom: 20px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  z-index: 3;
}
.hero-dots { display: flex; align-items: center; gap: 9px; }
.hero-dot {
  width: 12px; height: 13px;
  background: var(--wax-400);
  clip-path: var(--hex);
  border: 0; padding: 0; cursor: pointer;
  transition: width var(--t), background var(--t);
}
.hero-dot.active { width: 30px; background: var(--honey-500); }
.hero-arrow {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .86);
  color: var(--wax-800);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.hero-arrow:hover { background: var(--honey-500); border-color: var(--honey-500); color: var(--wax-900); }
.hero-arrow svg { width: 16px; height: 16px; }

/* trust strip */
.trust-strip { background: var(--wax-800); color: var(--on-dark); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ti-ico {
  width: 36px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(217, 154, 43, .18);
  clip-path: var(--hex);
}
.trust-item .ti-ico svg { width: 18px; height: 18px; color: var(--honey-400); }
.trust-item h3 { font-size: .94rem; color: var(--on-dark); margin-bottom: 2px; }
.trust-item p { font-size: .8rem; color: var(--on-dark-muted); margin: 0; line-height: 1.55; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); counter-reset: step; }
.steps li { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.steps .step-art { aspect-ratio: 16 / 10; background: var(--cream-100); }
.steps .step-art img { width: 100%; height: 100%; object-fit: cover; }
.steps .step-num {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 36px;
  display: grid; place-items: center;
  background: var(--honey-500);
  clip-path: var(--hex);
  font-family: var(--font-head);
  font-size: .9rem; font-weight: 700; color: var(--wax-900);
}
.steps .step-body { padding: 16px; }
.steps .step-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--honey-700); }
.steps h3 { font-size: 1.02rem; margin: 4px 0 6px; }
.steps p { font-size: .85rem; color: var(--ink-muted); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--honey-500);
  border-radius: var(--r-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 56px 48px;
  opacity: .3;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--wax-950); margin-bottom: .3em; }
.cta-band p { color: rgba(42, 28, 14, .82); margin: 0; max-width: 560px; }
.cta-band .btn-wax:hover { background: var(--wax-950); }

/* --------------------------------------------------------- tool detail */
.exhibit {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.exhibit-frame {
  background: var(--surface);
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.exhibit-frame img { width: 100%; height: 100%; object-fit: contain; }
.exhibit-frame canvas { width: 100%; height: 100%; border-radius: var(--r-sm); }
.exhibit-3d-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.exhibit-3d-tabs button {
  flex: 1;
  font-size: .76rem; font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--wax-700);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.exhibit-3d-tabs button[aria-pressed="true"] { background: var(--wax-800); color: var(--cream-50); border-color: var(--wax-800); }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 5px;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--honey-500); transform: translateY(-2px); }
.thumb[aria-pressed="true"] { border-color: var(--honey-500); box-shadow: 0 0 0 2px var(--honey-200); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: 16px; }
.spec-table caption {
  text-align: left;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-700);
  padding-bottom: 8px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th { font-weight: 600; color: var(--ink-muted); width: 44%; }
.spec-table td { font-family: var(--font-mono); font-size: .8rem; color: var(--wax-800); overflow-wrap: anywhere; }

.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.fact .f-label { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--honey-700); }
.fact .f-value { font-family: var(--font-mono); font-size: .9rem; color: var(--wax-800); margin-top: 2px; }

.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.related-list a:hover { border-color: var(--honey-500); background: var(--honey-100); }
.related-list .rl-ico {
  width: 30px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--honey-200);
  clip-path: var(--hex);
}
.related-list .rl-ico svg { width: 15px; height: 15px; color: var(--honey-900); }
.related-list .rl-name { font-weight: 700; font-size: .88rem; }
.related-list .rl-cat { font-size: .74rem; color: var(--ink-muted); }

/* --------------------------------------------------------- filter bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
  margin-bottom: 26px;
}
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.filter-field.grow { flex: 1 1 220px; }
.filter-field label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.filter-field input, .filter-field select {
  font-family: var(--font-body);
  font-size: .88rem;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-50);
  color: var(--ink);
  width: 100%;
}
.filter-field input:focus, .filter-field select:focus { outline: none; border-color: var(--honey-500); box-shadow: 0 0 0 3px var(--honey-100); }
.filter-count { font-size: .82rem; color: var(--ink-muted); margin-left: auto; white-space: nowrap; }
.filter-count b { color: var(--wax-800); font-family: var(--font-mono); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--wax-800);
  font-family: var(--font-mono);
  font-size: .84rem;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pagination button:hover:not(:disabled) { border-color: var(--honey-500); color: var(--honey-700); }
.pagination button[aria-current="page"] { background: var(--wax-800); color: var(--cream-50); border-color: var(--wax-800); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* -------------------------------------------------------- calculators */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.calc-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.calc-form h2 { font-size: 1.2rem; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; color: var(--wax-800); }
.field .hint { font-size: .74rem; color: var(--ink-faint); margin-top: 5px; display: block; }
.field input, .field select {
  width: 100%;
  font-family: var(--font-mono);
  font-size: .92rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-50);
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--honey-500); box-shadow: 0 0 0 3px var(--honey-100); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--honey-500); }
.range-row output { font-family: var(--font-mono); font-size: .84rem; color: var(--honey-700); min-width: 62px; text-align: right; font-weight: 700; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 auto;
  font-size: .82rem; font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--wax-700);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.seg button[aria-pressed="true"] { background: var(--honey-500); border-color: var(--honey-500); color: var(--wax-900); }

.result-card {
  background: var(--wax-800);
  border-radius: var(--r);
  padding: 28px;
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.result-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 56px 48px;
  opacity: .12;
}
.result-card > * { position: relative; z-index: 1; }
.result-card h2 { color: var(--on-dark); font-size: 1.1rem; margin-bottom: 14px; }
.result-primary { text-align: center; margin-bottom: 22px; }
.result-primary .rp-value {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--honey-400);
  line-height: 1.05;
  display: block;
}
.result-primary .rp-unit { font-size: 1rem; color: var(--honey-300); }
.result-primary .rp-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 6px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.result-cell {
  background: rgba(251, 247, 239, .07);
  border: 1px solid rgba(224, 210, 184, .2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.result-cell .l { font-size: .72rem; color: var(--on-dark-muted); display: block; margin-bottom: 2px; }
.result-cell .v { font-family: var(--font-mono); font-size: 1rem; color: var(--honey-300); font-weight: 700; }

.gauge { margin-bottom: 20px; }
.gauge-head { display: flex; justify-content: space-between; font-size: .76rem; color: var(--on-dark-muted); margin-bottom: 6px; }
.gauge-track { height: 10px; background: rgba(251, 247, 239, .12); border-radius: var(--r-pill); overflow: hidden; }
.gauge-fill { height: 100%; background: linear-gradient(90deg, var(--honey-700), var(--honey-400)); border-radius: var(--r-pill); transition: width var(--t); }

.formula-box {
  background: rgba(251, 247, 239, .06);
  border-left: 3px solid var(--honey-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 14px;
  font-size: .8rem;
  color: var(--on-dark-muted);
}
.formula-box code { background: rgba(251, 247, 239, .1); border-color: rgba(224, 210, 184, .2); color: var(--honey-200); }

/* ------------------------------------------------------------- studio */
.studio-shell { padding: 24px 0 60px; }
.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.studio-bar .sb-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.studio-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.studio-stage {
  background: var(--wax-950);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--wax-700);
}
.studio-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 56px 48px;
  opacity: .1;
}
.studio-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sc-overlay {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 10px;
  z-index: 3; pointer-events: none;
}
.sc-pill {
  background: rgba(42, 28, 14, .72);
  border: 1px solid rgba(217, 154, 43, .4);
  color: var(--honey-200);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: .76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sc-step {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  background: rgba(42, 28, 14, .78);
  border: 1px solid rgba(217, 154, 43, .35);
  border-radius: var(--r);
  padding: 12px 16px;
  z-index: 3;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sc-step .ss-title { color: var(--honey-300); font-weight: 800; font-size: .84rem; }
.sc-step .ss-text { color: var(--on-dark-muted); font-size: .8rem; margin: 2px 0 0; }
.sc-hint {
  position: absolute; bottom: 14px; right: 14px;
  font-size: .7rem; color: rgba(224, 210, 184, .65);
  z-index: 2;
}

.studio-fallback {
  position: absolute; inset: 0;
  display: none;
  place-items: center;
  padding: 30px;
  text-align: center;
  z-index: 4;
}
.studio-fallback.show { display: grid; }
.studio-fallback > div { max-width: 420px; }
.studio-fallback svg { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--honey-500); }
.studio-fallback h3 { color: var(--on-dark); font-size: 1.1rem; }
.studio-fallback p { color: var(--on-dark-muted); font-size: .86rem; }
.studio-fallback .switch-3d { margin-top: 14px; }

.studio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}
.studio-panel h3 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-700);
  margin-bottom: 14px;
}
.studio-panel .panel-block + .panel-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.studio-panel label { display: block; font-size: .8rem; font-weight: 700; color: var(--wax-800); margin-bottom: 6px; }
.studio-panel label .lv { font-family: var(--font-mono); color: var(--honey-700); font-size: .8rem; float: right; }
.studio-panel input[type="range"] { width: 100%; accent-color: var(--honey-500); }
.studio-panel select, .studio-panel input[type="number"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: .84rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-50);
  color: var(--ink);
}
.studio-panel select:focus, .studio-panel input:focus { outline: none; border-color: var(--honey-500); }

.readout {
  font-family: var(--font-mono);
  font-size: .8rem;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--wax-800);
  line-height: 1.9;
}
.readout .rk { color: var(--ink-muted); }

.score-badge {
  display: grid; place-items: center;
  width: 92px; height: 100px;
  margin: 0 auto 12px;
  background: var(--honey-500);
  clip-path: var(--hex);
  text-align: center;
}
.score-badge .sb-num { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: var(--wax-900); line-height: 1; }
.score-badge .sb-lbl { font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--wax-800); }
.score-badge.ok { background: var(--leaf-300); }
.score-badge.warn { background: var(--sting-300); }

.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0;
  font-size: .82rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: 0; }
.step-list li .n {
  width: 20px; height: 22px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--cream-300);
  clip-path: var(--hex);
  font-size: .66rem; font-weight: 800; color: var(--wax-700);
  font-family: var(--font-mono);
}
.step-list li.done { color: var(--leaf-900); }
.step-list li.done .n { background: var(--leaf-300); }
.step-list li.active { color: var(--wax-900); font-weight: 700; }
.step-list li.active .n { background: var(--honey-500); }

/* --------------------------------------------------------------- blog */
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.featured-post .fp-media { aspect-ratio: 16 / 11; background: var(--cream-100); }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: 30px 34px 30px 0; }
.featured-post h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.featured-post .fp-body .card-text { font-size: .94rem; }

.post-hero { background: var(--wax-800); color: var(--on-dark); padding: 30px 0 34px; position: relative; overflow: hidden; border-bottom: 3px solid var(--honey-500); }
.post-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--comb); background-size: 56px 48px; opacity: .14; }
.post-hero > .container { position: relative; z-index: 1; }
.post-hero h1 { color: var(--on-dark); }
.post-hero .post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--on-dark-muted); margin-top: 14px; }
.post-hero .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(224, 210, 184, .6); align-self: center; }

.post-figure { margin: 26px 0; }
.post-figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--border); }
.post-figure figcaption { font-size: .8rem; color: var(--ink-muted); margin-top: 8px; text-align: center; }

.toc {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 26px 0;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-700); margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; font-size: .88rem; }
.toc a { color: var(--wax-700); }
.toc a:hover { color: var(--honey-700); }

.step-block {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  align-items: flex-start;
}
.step-block .sb-num {
  width: 52px; height: 58px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--honey-500);
  clip-path: var(--hex);
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700; color: var(--wax-900);
}
.step-block .sb-body { min-width: 0; }
.step-block h3 { margin-bottom: .3em; }

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.sidebar-card h3 {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-700); margin-bottom: 12px;
}
.sidebar-sticky { position: sticky; top: 90px; }

.author-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream-100);
  border-radius: var(--r);
  padding: 18px;
  margin: 30px 0;
  border: 1px solid var(--border);
}
.author-box .ab-avatar {
  width: 52px; height: 58px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--honey-300);
  clip-path: var(--hex);
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700; color: var(--wax-900);
}
.author-box h4 { margin-bottom: .2em; }
.author-box p { font-size: .84rem; color: var(--ink-muted); margin: 0; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.post-nav a:hover { border-color: var(--honey-500); background: var(--honey-100); }
.post-nav .pn-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--honey-700); display: block; }
.post-nav .pn-title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.post-nav .pn-next { text-align: right; }

.read-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--honey-500);
  z-index: 250;
  width: 0;
  transition: width .1s linear;
}

.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--wax-800);
  color: var(--honey-300);
  border: 1px solid var(--wax-700);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t), background var(--t-fast);
  z-index: 190;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--honey-500); color: var(--wax-900); }
.to-top svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ content */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.info-card .ic-hex {
  width: 44px; height: 48px;
  display: grid; place-items: center;
  background: var(--honey-200);
  clip-path: var(--hex);
  margin-bottom: 14px;
}
.info-card .ic-hex svg { width: 20px; height: 20px; color: var(--honey-900); }
.info-card h3 { font-size: 1.04rem; }
.info-card p { font-size: .88rem; color: var(--ink-muted); margin: 0; }

.prose-block { max-width: 760px; }
.prose-block h2 { margin-top: 1.6em; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block h3 { margin-top: 1.4em; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 16px; font-size: .88rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--leaf-900); }
.form-status.err { color: var(--sting-900); }
.field-error { font-size: .76rem; color: var(--sting-700); margin-top: 4px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--sting-500); }
.field.invalid .field-error { display: block; }
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .92rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-50);
  color: var(--ink);
  resize: vertical;
  min-height: 130px;
}
textarea:focus { outline: none; border-color: var(--honey-500); box-shadow: 0 0 0 3px var(--honey-100); }

/* ------------------------------------------------------------- search */
.search-page-form { display: flex; gap: 12px; margin-bottom: 26px; }
.search-page-form input {
  flex: 1;
  font-size: 1rem;
  padding: 13px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
}
.search-page-form input:focus { outline: none; border-color: var(--honey-500); box-shadow: 0 0 0 3px var(--honey-100); }

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-layout { grid-template-columns: 1fr; }
  .split-side { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
}

@media (max-width: 1000px) {
  .capsule::before, .capsule::after { display: none; }
  .main-nav > a, .nav-drop > button { padding: 6px 9px; font-size: .8rem; }
  .btn-studio span { display: none; }
  .btn-studio { padding: 7px 10px; }
}

@media (max-width: 900px) {
  /* §5 — the capsule becomes a full-width top drawer. Do NOT reintroduce
     `order:` or `flex:1 1 100%` here; the drawer is absolutely positioned. */
  .site-header { top: 0; padding: 0; }
  .capsule {
    max-width: none;
    border-radius: 0 0 var(--r) var(--r);
    border-left: 0; border-right: 0; border-top: 0;
    height: var(--header-h);
    padding: 0 14px;
    flex-wrap: nowrap;
  }
  .site-header.is-condensed .capsule { height: var(--header-h); }
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--cream-50);
    border: 1px solid var(--honey-300);
    border-top: 0;
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    gap: 2px;
    display: none;
    max-height: 78vh;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button {
    justify-content: space-between;
    padding: 11px 14px;
    font-size: .92rem;
    border-radius: var(--r-sm);
    width: 100%;
  }
  .nav-drop { width: 100%; }
  .dropdown {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--honey-300);
    border-radius: 0;
    margin: 2px 0 6px 10px;
    padding: 2px 0 2px 6px;
    display: none;
  }
  .dropdown.open { display: block; transform: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 26px; }
  .exhibit { position: static; }
  .calc-layout { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-body { padding: 0 24px 26px; }
  .hero { height: 420px; }
  .cta-band { padding: 32px; }
  .footer-disclaimers { grid-template-columns: 1fr; }
  .studio-stage { min-height: 420px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-3, .grid-4, .grid-auto, .info-grid, .trust-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .hero { height: 460px; border-radius: var(--r); }
  .hero-content { padding: 0 20px; max-width: none; }
  .hero-nav { gap: 8px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .detail-facts, .result-grid, .field-row, .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 20px; }
  .page-hero { padding: 24px 0 28px; }
  .exhibit { padding: 14px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .post-nav { grid-template-columns: 1fr; }
  .filter-bar { padding: 14px; }
  .filter-field { min-width: 100%; }
  .filter-count { margin-left: 0; }
  .studio-stage { min-height: 340px; }
  .studio-bar { padding: 10px 12px; }
  .step-block { gap: 12px; }
  .step-block .sb-num { width: 42px; height: 47px; font-size: 1rem; }
}

/* ---------------------------------------------------------- a11y / print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-slide { transition: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .read-progress, .hero-nav, .filter-bar { display: none; }
  body { background: #fff; }
  .page-hero, .post-hero, .result-card, .studio-card { background: #fff !important; color: #000 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
