/* Products and soil chemistry page. Builds on css/site.css. 22 Nov 2026. */
:root {
  --card: #FFFFFF;
  --terracotta: #B84A39;
  --soil-pale: #CFB48C;
}

.nav .btn--small { min-height: 44px; }
.fig { letter-spacing: -0.01em; }

/* 1. Hero */
.phero { padding: clamp(120px, 17vh, 176px) var(--gutter) 0; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 5vw, 84px); align-items: center; max-width: 1360px; margin: 0 auto; padding-bottom: clamp(48px, 8vh, 96px); }
.phero__eyebrow { margin-bottom: 22px; line-height: 1.7; }
.phero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.3vw, 88px); line-height: 0.98; letter-spacing: -0.02em; max-width: 15ch; }
.phero__lead { margin-top: 26px; max-width: 54ch; }
.phero__stat { display: flex; gap: 20px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hair); max-width: 600px; }
.phero__num { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; color: var(--emerald); font-weight: 500; }
.phero__stat .note { font-size: 14px; max-width: 44ch; }
.ptabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.ptabs__a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.ptabs__a .fig { font-size: 12px; color: var(--amber-deep); font-weight: 500; transition: color 0.3s; }
.ptabs__a:hover, .ptabs__a:focus-visible { background: var(--deep); color: var(--canvas); }
.ptabs__a:hover .fig, .ptabs__a:focus-visible .fig { color: var(--amber-lit); }

.phero__fig { position: relative; }
.granules { display: block; width: 100%; height: auto; overflow: visible; }
.gran__name { font-family: var(--serif); font-size: 28px; fill: var(--ink); }
.gran__part { font-family: var(--mono); font-size: 12.5px; fill: var(--ink-soft); letter-spacing: 0.02em; }
.gran__coat { transform-box: fill-box; transform-origin: center; transition: transform 0.7s var(--ease); }
.gran:hover .gran__coat { transform: scale(1.07); }
.gran__spin { transform-box: fill-box; transform-origin: center; }
.full .gran__spin { animation: granSpin 90s linear infinite; }
.full .gran--phos .gran__spin { animation-duration: 120s; animation-direction: reverse; }
@keyframes granSpin { to { transform: rotate(360deg); } }
.phero__fig figcaption { margin-top: 10px; max-width: 52ch; }

/* 2. Soil cross-section */
.soil__stage { max-width: 1360px; margin: 0 auto; }
.soil__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.soil__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 72px; padding: 14px 20px; border-radius: 18px; border: 1px solid var(--hair); background: transparent; text-align: left; cursor: pointer; transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.soil__tab .fig { font-size: 12px; color: var(--amber-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.soil__tabname { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); line-height: 1; }
.soil__tab:hover { border-color: var(--ink); }
.soil__tab.is-on { background: var(--deep); color: var(--canvas); border-color: var(--deep); }
.soil__tab.is-on .fig { color: var(--amber-lit); }
.soil__tab.is-on .soil__tabname::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 12px; border-radius: 50%; background: var(--amber-lit); vertical-align: middle; }

.soil__body { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.soil__fig { min-width: 0; }
.soil__svg { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(23, 26, 22, 0.55); touch-action: pan-y; }
.slbl { font-family: var(--mono); font-size: 15px; font-weight: 500; fill: #171A16; paint-order: stroke; stroke: rgba(251, 249, 243, 0.82); stroke-width: 4px; stroke-linejoin: round; }
.slbl--end { text-anchor: end; }
.slbl--mid { text-anchor: middle; }
.sc { opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
.sc.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease), visibility 0s; }
.soil__cap { margin-top: 14px; font-size: 14.5px; color: var(--ink); max-width: 66ch; }
.soil__disclaimer { margin-top: 6px; }

.soil__panel { background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 34px); border: 1px solid rgba(23, 26, 22, 0.08); box-shadow: 0 24px 50px -40px rgba(23, 26, 22, 0.5); }
.soil__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; background: var(--clay); margin-bottom: 26px; }
.soil__mode { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-height: 60px; padding: 10px 16px; border-radius: 13px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; transition: background-color 0.3s, color 0.3s; }
.soil__modek { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.soil__modev { font-weight: 700; font-size: 16px; }
.soil__mode.is-on { background: var(--deep); color: var(--canvas); }
.soil__mode.is-on .soil__modek { color: var(--amber-lit); }
.soil__mode.is-on .soil__modev::before { content: "● "; font-size: 10px; vertical-align: 2px; color: var(--amber-lit); }
.soil__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--terracotta); margin-bottom: 10px; }
.soil__stage[data-mode="van"] .soil__kicker { color: var(--emerald); }
.soil__spec { margin-top: 12px; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; background: var(--canvas); display: inline-block; }
.soil__spec[hidden] { display: none; }
.soil__text { margin-top: 16px; display: grid; gap: 12px; color: var(--ink-soft); font-size: 16.5px; }
.soil__product { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); text-decoration: none; }
.soil__product[hidden] { display: none; }
.soil__product img { width: 74px; height: 124px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(23, 26, 22, 0.25)); transition: transform 0.6s var(--ease); }
.soil__product:hover img { transform: translateY(-4px) rotate(-2deg); }
.soil__product > span { display: grid; gap: 4px; justify-items: start; }
.soil__productk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.soil__productn { font-family: var(--serif); font-size: 30px; line-height: 1; }
.soil__product .link-arrow { font-size: 14.5px; }

/* 3. Catalogue */
.cat { max-width: none; }
.cat__filters { display: grid; gap: 18px; max-width: 1360px; margin: 0 auto; }
.cat__group { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: start; }
.cat__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding-top: 14px; }
.cat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.chip .fig { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--deep); color: var(--canvas); border-color: var(--deep); }
.chip.is-on::before { content: "✓"; font-size: 13px; color: var(--amber-lit); }
.chip.is-on .fig { color: var(--on-deep-soft); }
.cat__status { max-width: 1360px; margin: 22px auto 18px; font-size: 14px; }

.cat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; max-width: 1360px; margin: 0 auto; }
.card { position: relative; }
.card[hidden] { display: none; }
.card__btn { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 1px solid rgba(23, 26, 22, 0.08); border-radius: var(--radius); background: var(--card); text-align: left; cursor: pointer; overflow: hidden; transition: box-shadow 0.5s var(--ease), border-color 0.3s, transform 0.5s var(--ease); }
.card__btn:hover, .card__btn:focus-visible { border-color: rgba(23, 26, 22, 0.4); box-shadow: 0 34px 50px -36px rgba(23, 26, 22, 0.6); }
.card__stage { position: relative; height: 250px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, #E4DBCB 0%, #F3EFE6 62%, #F7F4EE 100%); perspective: 800px; overflow: hidden; }
.card__stage::after { content: ""; position: absolute; left: 50%; bottom: 20px; width: 46%; height: 16px; transform: translateX(-50%); border-radius: 50%; background: rgba(23, 26, 22, 0.34); filter: blur(10px); }
.card__img { position: relative; z-index: 1; height: 205px; width: auto; max-width: 70%; object-fit: contain; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(var(--ty, 0px)); transition: transform 0.5s var(--ease); will-change: transform; }
.card__btn:hover .card__img, .card__btn:focus-visible .card__img { --ty: -8px; }
.card__mark { position: relative; z-index: 1; width: 150px; height: 150px; transform: translateY(var(--ty, 0px)); transition: transform 0.5s var(--ease); }
.card__btn:hover .card__mark { --ty: -8px; }
.card__markcap { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; background: rgba(23, 26, 22, 0.72); color: var(--on-deep); }
.card__catk { position: absolute; right: 12px; top: 12px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--hair); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card__name { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.card__analysis { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--hair); }
.card__more { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--hair); }
.card__more::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: var(--canvas); font-weight: 400; font-size: 18px; transition: transform 0.5s var(--ease), background-color 0.3s; }
.card__btn:hover .card__more::after { transform: rotate(90deg); background: var(--emerald); }
.cat__empty { max-width: 1360px; margin: 30px auto 0; display: grid; gap: 16px; justify-items: start; }
.cat__empty[hidden] { display: none; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 110; }
.drawer[hidden] { display: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(23, 26, 22, 0.55); opacity: 0; transition: opacity 0.45s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--canvas); display: flex; flex-direction: column; transform: translateX(102%); transition: transform 0.6s var(--ease); box-shadow: -30px 0 60px -30px rgba(23, 26, 22, 0.6); outline: none; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px 14px 26px; border-bottom: 1px solid var(--hair); }
.drawer__close { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; }
.drawer__close span[aria-hidden] { font-size: 22px; line-height: 1; }
.drawer__close:hover { background: var(--deep); color: var(--canvas); }
.drawer__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px 26px 40px; flex: 1; }
.d__top { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.d__img { width: 120px; height: 190px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(23, 26, 22, 0.28)); }
.d__mark { width: 120px; height: 120px; }
.d__name { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 54px); line-height: 0.96; letter-spacing: -0.015em; }
.d__analysis { margin-top: 12px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.d__about { margin-top: 22px; display: grid; gap: 8px; font-size: 16.5px; }
.d__sec { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hair); }
.d__h { font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber-deep); font-weight: 500; margin-bottom: 12px; }
.d__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.d__table caption { text-align: left; font-family: var(--serif); font-size: 20px; padding-bottom: 6px; }
.d__table th, .d__table td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.d__table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.d__table td.num, .d__table th.num { text-align: right; padding-right: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.d__bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--clay); overflow: hidden; }
.d__bar i { display: block; height: 100%; background: var(--emerald); border-radius: 2px; }
.d__dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 15.5px; }
.d__dl dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.d__list { display: grid; gap: 6px; font-size: 15.5px; }
.d__list li { padding-left: 16px; position: relative; }
.d__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 1px; background: var(--ink); }
.d__p { display: grid; gap: 8px; font-size: 15.5px; color: var(--ink-soft); }
.d__scroll { overflow-x: auto; }
.d__actions { display: grid; gap: 10px; margin-top: 30px; }
.d__actions .btn { width: 100%; text-align: center; }
html.drawer-open, html.drawer-open body { overflow: hidden; }

/* 4. Lab report */
.lab__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 3vw, 44px); max-width: 1360px; margin: 0 auto; align-items: start; }
.console { border: 1px solid var(--hair-light); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); background: linear-gradient(180deg, rgba(247, 244, 238, 0.06), rgba(247, 244, 238, 0.02)); position: relative; overflow: hidden; }
.console__top { display: grid; gap: 10px; margin-bottom: 28px; justify-items: start; }
.console__tag { display: grid; gap: 8px; padding: 16px 20px; border: 1.5px solid var(--amber-lit); border-radius: 4px; outline: 1px dashed rgba(231, 184, 102, 0.5); outline-offset: 4px; margin: 5px; }
.console__stamp { font-size: 12.5px; letter-spacing: 0.08em; color: var(--amber-lit); line-height: 1.7; }
.console__batch { font-size: clamp(17px, 2vw, 22px); letter-spacing: 0.06em; color: var(--on-deep); font-weight: 500; }
.console .console__tagnote { margin-top: 0; }
.d__between { margin-bottom: 12px; }
.d__p + .d__between, .d__list + .d__between { margin-top: 14px; }
.console__label { display: block; font-weight: 700; margin-bottom: 10px; }
.console__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.console__input { min-height: 58px; width: 100%; padding: 0 20px; border-radius: 14px; border: 1px solid rgba(247, 244, 238, 0.5); background: rgba(23, 26, 22, 0.6); color: var(--on-deep); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.console__input::placeholder { color: rgba(247, 244, 238, 0.62); text-transform: none; letter-spacing: 0.02em; }
.console__input:focus-visible, .band--deep :focus-visible { outline-color: var(--amber-lit); }
.console .note { margin-top: 12px; }
.console__status { min-height: 1.6em; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--amber-lit); }
.console__facts { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair-light); display: grid; gap: 10px; color: var(--on-deep-soft); font-size: 15.5px; }
.console__facts li { padding-left: 22px; position: relative; }
.console__facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 1px; background: var(--amber-lit); }
.lab__side { display: grid; gap: 16px; }
.lab__card { border: 1px solid var(--hair-light); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; color: var(--on-deep-soft); font-size: 16px; }
.lab__h { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-lit); font-weight: 500; }
.lab__chain { width: 100%; max-width: 420px; height: auto; }
.lab__card .link-arrow { color: var(--on-deep); justify-self: start; }

/* 5. Order */
.order__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1360px; margin: 0 auto clamp(28px, 5vh, 52px); border-top: 1px solid var(--ink); }
.order__steps li { display: grid; gap: 18px; padding: 20px 24px 6px 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; }
.order__steps li + li { padding-left: 24px; border-left: 1px solid var(--hair); }
.order__n { font-size: 13px; color: var(--amber-deep); }
.order__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(20px, 3vw, 44px); max-width: 1360px; margin: 0 auto; align-items: start; }
.order__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--card); border: 1px solid rgba(23, 26, 22, 0.08); border-radius: var(--radius); padding: clamp(20px, 3vw, 38px); box-shadow: 0 24px 50px -40px rgba(23, 26, 22, 0.5); }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 700; font-size: 14.5px; }
.field select, .field input { min-height: 54px; width: 100%; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(23, 26, 22, 0.45); background: var(--canvas); font: inherit; color: var(--ink); }
.order__preview { grid-column: 1 / -1; padding: 18px 20px; border-radius: 16px 16px 16px 4px; background: #E3F1DC; border: 1px solid rgba(45, 90, 60, 0.3); display: grid; gap: 8px; }
.order__previewk { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald); }
.order__preview p { font-size: 16px; overflow-wrap: anywhere; }
.order__wa { grid-column: 1 / -1; background: var(--emerald); }
.order__wa:hover { background: var(--deep); }
.order__form .note { grid-column: 1 / -1; }
.order__side { display: grid; gap: 14px; }
.order__card { border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 10px; }
.order__h { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-deep); font-weight: 500; }
.order__big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.order__big:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.order__card .link-arrow { justify-self: start; }
.order__card p { color: var(--ink-soft); font-size: 15.5px; }
.link-arrow { display: inline-block; padding-top: 10px; padding-bottom: 6px; }

/* Hero entrance, full mode only */
.motion.full .phero__title .wi { transform: translateY(110%); }
.motion.full .phero__title.is-in .wi { transform: none; transition: transform 1.1s var(--ease); }

@media (max-width: 1000px) {
  .phero__grid, .soil__body, .lab__grid, .order__grid { grid-template-columns: 1fr; }
  .phero__fig { max-width: 520px; }
  .cat__group { grid-template-columns: 1fr; gap: 8px; }
  .cat__label { padding-top: 0; }
}
@media (max-width: 700px) {
  .slbl { font-size: 24px; stroke-width: 6px; }
  .gran__name { font-size: 34px; }
  .gran__part { font-size: 17px; }
  .soil__tabs { gap: 6px; }
  .soil__tab { padding: 12px 12px; min-height: 68px; border-radius: 14px; }
  .soil__tab .fig { font-size: 10.5px; }
  .soil__tabname { font-size: 21px; }
  .soil__tab.is-on .soil__tabname::after { width: 7px; height: 7px; margin-left: 6px; }
  .cat__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__stage { height: 190px; }
  .card__img { height: 150px; }
  .card__mark { width: 110px; height: 110px; }
  .card__body { padding: 14px 14px 16px; }
  .card__name { font-size: 24px; }
  .card__analysis { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .card__catk { display: none; }
  .console__row { grid-template-columns: 1fr; }
  .console__top { align-items: flex-start; }
  .order__steps { grid-template-columns: 1fr; }
  .order__steps li { grid-template-columns: 28px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
  .order__steps li + li { padding-left: 0; border-left: 0; }
  .order__form { grid-template-columns: 1fr; }
  .drawer__panel { top: auto; left: 0; width: 100%; height: 92vh; height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(102%); }
  .drawer__body { padding: 20px 18px 36px; }
  .drawer__bar { padding-left: 18px; }
  .d__top { grid-template-columns: 92px 1fr; gap: 16px; }
  .d__img { width: 92px; height: 150px; }
  .d__mark { width: 92px; height: 92px; }
  .d__dl { grid-template-columns: 1fr; gap: 2px 0; }
  .d__dl dd { margin-bottom: 10px; }
}
@media (max-width: 380px) {
  .cat__grid { grid-template-columns: 1fr; }
}
.d__wl { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--hair); } .d__wl a { text-underline-offset: 3px; }

/* ---- 26 Nov 2026: Tahir's brief and the independent UX review ---- */
/* Dark hero stage */
.phero { background: radial-gradient(60% 70% at 72% 45%, #22302A 0%, #141915 62%); color: var(--on-deep); padding-bottom: clamp(40px, 6vh, 72px); }
.phero .phero__title { color: var(--on-deep); }
.phero .lead, .phero .note { color: var(--on-deep-soft); }
.phero .phero__stat { border-top-color: var(--hair-light); }
.phero .phero__num { color: var(--amber-lit); }
.phero .ptabs__a { border-color: rgba(247, 244, 238, 0.45); color: var(--on-deep); }
.phero .ptabs__a:hover, .phero .ptabs__a:focus-visible { background: var(--on-deep); color: var(--deep); }
.phero .rule { background: var(--hair-light); }
.phero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.phero__ctalink { color: var(--on-deep); }
.phero__fig { min-height: 460px; }
.phero__canvas { display: none; width: 100%; height: clamp(380px, 52vh, 560px); }
.phero__fig.is-3d .phero__canvas { display: block; }
.phero__fig.is-3d .granules { display: none; }
.phero__fig figcaption { color: var(--on-deep-soft); }
.gpin { display: none; position: absolute; left: 0; top: 0; z-index: 3; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid rgba(247, 244, 238, 0.35); background: rgba(20, 25, 21, 0.72); color: var(--on-deep); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.5s, background-color 0.3s; }
.phero__fig.is-3d .gpin { display: inline-flex; }
.gpin.is-placed { opacity: 1; }
.gpin__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber-lit); box-shadow: 0 0 0 0 rgba(231, 184, 102, 0.7); animation: pinPulse 2.4s infinite; }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 0 rgba(231, 184, 102, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(231, 184, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 184, 102, 0); } }
.calm .gpin__dot { animation: none; }
.gpin:hover, .gpin[aria-expanded="true"] { background: var(--amber-lit); color: var(--deep); }
.gpin[aria-expanded="true"] .gpin__dot { background: var(--deep); }
.gcard { position: absolute; right: 0; bottom: 64px; z-index: 4; width: min(360px, 92%); display: grid; gap: 8px; padding: 18px 20px; border-radius: 18px; background: #FBF8F1; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); font-size: 14.5px; line-height: 1.5; }
.gcard[hidden] { display: none; }
.gcard__k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-deep); }
.gcard__h { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.gcard .link-arrow { justify-self: start; margin-top: 4px; }

/* Cards: family colour, studio plinth and floor light */
.card__btn { border-top: 4px solid var(--fam, var(--emerald)); }
.card__stage { background: radial-gradient(70% 55% at 50% 92%, color-mix(in srgb, var(--fam, #2D5A3C) 22%, transparent) 0%, transparent 70%), linear-gradient(180deg, #F7F4EE 0%, #EDE6D9 100%); }
.card__stage::before { content: ""; position: absolute; left: 50%; bottom: 16px; width: 62%; height: 26px; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(180deg, #FFFFFF, #E2D9C8); box-shadow: inset 0 -2px 0 rgba(23, 26, 22, 0.08); }
.card__catk { background: var(--fam, var(--emerald)); color: #FFFFFF; border-color: transparent; }
.card__img { filter: drop-shadow(0 18px 16px rgba(23, 26, 22, 0.28)); }
.chip:disabled { opacity: 0.38; cursor: not-allowed; }
.chip:disabled:hover { border-color: var(--hair); }

/* Drawer: family colour */
.d__bar i { background: var(--fam, var(--emerald)); }
#drawerCat { color: var(--fam, var(--amber-deep)); }
.d__picnote { margin-top: 8px; }
.d__name { overflow-wrap: normal; hyphens: manual; }

/* The fixed menu no longer covers a section when a link jumps to it */
section[id], #orderForm { scroll-margin-top: 120px; }

/* Phone: 2 columns of cards and 1 row of chips that scrolls sideways */
@media (max-width: 640px) {
  .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__stage { height: 190px; }
  .card__img { height: 160px; }
  .card__name { font-size: 22px; }
  .card__body { padding: 14px; gap: 8px; }
  .card__analysis { font-size: 11.5px; }
  .card__more { font-size: 12.5px; }
  .cat__group { grid-template-columns: 1fr; gap: 8px; }
  .cat__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .cat__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 42px; }
  .phero__fig { min-height: 0; }
  .phero__canvas { height: 340px; }
  .gcard { position: relative; bottom: auto; width: 100%; margin-top: 12px; }
}
.gcard { right: auto; left: 0; top: 0; bottom: auto; }
@media (max-width: 640px) { .gcard { top: auto; } }
.phero__lic { margin-top: 14px; max-width: 60ch; }
.phero__title { font-size: clamp(36px, 4.2vw, 68px); max-width: 18ch; }
