/* Incepta — shared styles
 * Aesthetic: minimalist editorial + monospace accents.
 * Observed from live site: deep near-black bg, soft cream/off-white text,
 * monospace labels (ui-monospace stack), serif/sans mix for body.
 */

/* ============================================================
 * SELF-HOSTED FONTS (latin subset, woff2, served from assets/fonts/)
 * URLs resolve relative to this file, so blog/ pages work unchanged.
 * ============================================================ */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/space-grotesk-normal-300-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-normal-400-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-normal-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/archivo-normal-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
 * SURFACE TOKENS
 * Dark is the site default. Any section can flip its surface with
 * data-surface="light" | "dark" — every component below reads only
 * these tokens, so both surfaces are fully supported everywhere.
 * ============================================================ */
:root, [data-surface="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-panel: #141414;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --fg: #f1ede4;       /* warm off-white */
  --fg-dim: #b8b2a6;
  --fg-muted: #8a857a; /* AA: 5.39:1 on --bg, 5.14:1 on --bg-elev */
  --accent: #f1ede4;
  --hover-tint: rgba(255,255,255,0.02);
  --scrim: rgba(10,10,10,0.7);
  --good: #bde080; --good-border: #6f8a49;
  --warn: #e0a060; --warn-border: #6b4a20;
  --bad: #e09090;  --bad-border: #6b3838;
  --tint-good: rgba(80,120,40,0.10);
  --tint-warn: rgba(120,80,20,0.08);
  --tint-bad: rgba(140,60,60,0.14);
}
[data-surface="light"] {
  --bg: #f4efe3;       /* warm cream */
  --bg-elev: #ece5d5;
  --bg-panel: #efe9da;
  --border: rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.26);
  --fg: #14120e;
  --fg-dim: #4a453b;
  --fg-muted: #6a665a; /* AA: 5.00:1 on --bg, 4.57:1 on --bg-elev */
  --accent: #14120e;
  --hover-tint: rgba(0,0,0,0.028);
  --scrim: rgba(244,239,227,0.8);
  --good: #55701f; --good-border: #8fa55e;
  --warn: #96601c; --warn-border: #c9a071;
  --bad: #a04848;  --bad-border: #c98f8f;
  --tint-good: rgba(90,120,40,0.10);
  --tint-warn: rgba(150,100,30,0.10);
  --tint-bad: rgba(160,70,70,0.10);
}

:root {
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 64px;
  --nav-offset: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html, body { color: var(--fg); }
html { scroll-padding-top: calc(var(--nav-h) + var(--nav-offset) + 16px); }
/* Smooth in-page scrolling is enabled by shared.js AFTER load, so reload /
   load-time anchor jumps are instant instead of animating (looked buggy). */
html.js-smooth { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 425; /* Space Grotesk variable axis — a touch heavier than 400 (user, 2026-07-05) */
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Any element with data-surface paints a full-bleed band of its surface
 * color behind itself — even when the element is width-capped (.wrap),
 * the band extends to the viewport edges. */
[data-surface] { position: relative; color: var(--fg); }
[data-surface]::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--bg);
  z-index: -1;
}

/* ============================================================
 * NAV — liquid glass slab, constant on every surface.
 * One fixed gradient blends the site's two colors (ink → warm),
 * dark enough that cream text reads over dark AND cream bands.
 * Soft 12px corners — rounded, not pill.
 * ============================================================ */
.nav {
  position: fixed; top: var(--nav-offset); left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  pointer-events: none;
  --nav-fg: #f1ede4;
  --nav-fg-dim: #c4bcab;
  --nav-border: rgba(241,237,228,0.14);
  --nav-border-strong: rgba(241,237,228,0.28);
  --nav-invert: #14120e;
}
.nav-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 8px 18px;
  pointer-events: auto;
  gap: 24px;
  color: var(--nav-fg);
  background: rgba(18,16,13,0.5);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.22),
    0 0 28px rgba(196,164,110,0.1),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.22);
  /* no overflow:hidden – the Products dropdown hangs below the slab;
     the ::before/::after washes clip via border-radius:inherit instead */
  transition: background 240ms ease, box-shadow 240ms ease;
}
/* static light: soft top illumination + faint warm cast at the base */
.nav-inner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.08), transparent 38%),
    linear-gradient(to top, rgba(196,164,110,0.08), transparent 45%);
}
/* liquid: a soft specular glow that trails the cursor (lerped in shared.js) */
.nav-inner::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px 150px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.08), transparent 75%);
  opacity: 0;
  transition: opacity 600ms ease;
}
.nav-inner:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nav-inner::after { display: none; }
}
.nav.is-scrolled .nav-inner {
  background: rgba(14,12,10,0.66);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.4),
    0 0 28px rgba(196,164,110,0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; }
.nav-brand img { width: 24px; height: 24px; }
.nav-brand-word {
  font-family: 'Archivo', var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--nav-fg);
  text-shadow: 0 1px 2px rgba(10,9,7,0.4);
}
.nav-links {
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex: 1;
  justify-content: center;
  position: relative;
}
.nav-links a {
  color: #d6cfc0;
  text-shadow: 0 1px 2px rgba(10,9,7,0.4);
  transition: color 160ms ease;
  position: relative;
}
.nav-links a:hover { color: #ffffff; }

/* --- Keyboard access --- */
/* Visible focus for keyboard users only; currentColor adapts to either surface. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* Hidden until focused, then drops in over the nav (fixed chrome — nav palette). */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-250%);
  padding: 10px 16px;
  border-radius: 8px;
  background: #f1ede4; color: #14120e;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition: transform 160ms ease;
}
.skip-link:focus-visible { transform: none; outline-offset: 1px; }

/* --- Products dropdown (nav) --- */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop-panel {
  position: absolute; top: 100%; left: 50%;
  padding-top: 24px; /* invisible bridge – keeps :hover alive across the gap below the slab */
  transform: translateX(-50%) translateY(-6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 260ms cubic-bezier(.22,.8,.28,1),
    visibility 0s linear 200ms;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 200ms ease,
    transform 260ms cubic-bezier(.22,.8,.28,1);
}
.nav-drop-menu {
  min-width: 172px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px;
  background: rgba(14,12,10,0.88);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.38),
    0 0 28px rgba(196,164,110,0.1),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.nav-drop-menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #d6cfc0;
  transition: color 160ms ease, background 160ms ease;
}
.nav-drop-menu a i {
  font-style: normal;
  font-size: 10px;
  color: var(--nav-fg-dim);
  opacity: 0.55;
  transition: opacity 160ms ease;
}
.nav-drop-menu a:hover { color: #ffffff; background: rgba(255,255,255,0.07); }
.nav-drop-menu a:hover i { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nav-drop-panel { transition: none; transform: translateX(-50%); }
  .nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { transform: translateX(-50%); }
}
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--nav-border-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-fg);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
/* hover: the glass fills with light instead of flat-inverting */
.nav-cta:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border-color: rgba(241,237,228,0.55);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 16px rgba(241,237,228,0.12);
}
.nav-cta svg { width: 12px; height: 12px; }

.nav-burger { display: none; }

@media (max-width: 820px) {
  :root { --nav-offset: 14px; }
  .nav-inner { padding: 8px 8px 8px 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 10px; }
}

/* --- LAYOUT --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ""; width: 6px; height: 6px;
  background: var(--fg-muted); border-radius: 50%;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* --- TYPE SCALE --- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--fg-dim);
}
.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 62ch;
}
.body--lg { font-size: 18px; line-height: 1.5; color: var(--fg); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: all 180ms ease;
}
/* hover is additive: the fill arrives WITH a soft glow (nav-CTA kin) */
.btn:hover {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
  box-shadow: 0 0 18px color-mix(in oklab, var(--fg) 28%, transparent);
}
.btn .arrow {
  width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  transition: transform 180ms ease;
}
.btn:hover .arrow { transform: translate(2px, -2px); }
/* solid = hero primary: off-white fill at rest; hover goes transparent but
   BRIGHT — the glow stays on, so it reads as lit glass, not a retreat */
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover {
  background: var(--bg); color: var(--fg); border-color: var(--fg);
  box-shadow: 0 0 18px color-mix(in oklab, var(--fg) 34%, transparent);
}
/* Arrow glyph (up-right) */
.arrow { flex: 0 0 auto; }
.arrow svg { width: 100% !important; height: 100% !important; display: block; }
.nav-cta .arrow { width: 12px; height: 12px; }
.nav-cta .arrow svg { width: 12px !important; height: 12px !important; }

/* --- INDEX MARKS --- */
.idx {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--fg-muted);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 160px 0 56px;
  background: var(--bg);
}
/* Brand glyph — big square on the right, spanning the footer's full height */
.footer-glyph {
  position: absolute;
  right: 88px; /* clear of the back-to-top arrow */
  top: -160px; bottom: -56px; /* through the footer's own padding, edge to edge */
  aspect-ratio: 1 / 1;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}
.footer-glyph img {
  width: 100%; height: 100%; display: block; object-fit: contain;
}
.footer-inner { position: relative; }
.footer-main {
  display: flex; justify-content: flex-start; align-items: flex-start;
  gap: clamp(72px, 14vw, 200px); flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-name {
  font-family: 'Archivo', var(--sans); font-weight: 600;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 0.09em; /* optical — offsets the trailing tracking */
}
.footer-brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--fg-dim);
}
.footer-col a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--fg);
  transition: opacity 160ms ease;
}
.footer-col a:hover { opacity: 0.6; }
.footer-legal {
  margin-top: 130px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted);
  gap: 20px; flex-wrap: wrap;
}
.footer-legal a:hover { color: var(--fg); }
.footer-top-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong); border-radius: 50%;
  display: inline-grid; place-items: center;
  transition: background 160ms ease;
}
.footer-top-btn:hover { background: var(--bg-elev); }

@media (max-width: 820px) {
  .footer { padding-top: 72px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 44px; }
  .footer-legal { margin-top: 64px; }
  .footer-glyph { top: auto; bottom: -32px; width: 200px; height: 200px; opacity: 0.14; }
}

/* --- UTILITIES --- */
.hr { height: 1px; background: var(--border); border: 0; }
.rule { border-top: 1px solid var(--border); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

/* Media placeholders (for when assets don't load) */
.media {
  position: relative; overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.media video, .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-caption {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-muted);
  background: var(--scrim); padding: 6px 10px;
  border-radius: 100px; backdrop-filter: blur(8px);
}

/* --- TWEAKS PANEL --- */
#tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: 280px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg);
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#tweaks.open { display: block; }
#tweaks h5 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
#tweaks h5 button {
  font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
}
#tweaks .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; gap: 10px;
}
#tweaks label { letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }
#tweaks input[type="color"] {
  width: 28px; height: 22px; border: 1px solid var(--border-strong);
  background: transparent; border-radius: 4px; padding: 0;
}
#tweaks select {
  background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: 4px;
  padding: 4px 6px; font-family: var(--mono); font-size: 11px;
}

/* Mobile menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  /* same glass family as the nav slab — page shows through, softly */
  background: rgba(14, 13, 11, 0.88);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  padding: 108px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.menu-overlay.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 220ms ease;
}
.menu-overlay a {
  font-family: var(--serif); font-size: 32px;
  color: var(--fg);
  border-bottom: 1px solid rgba(244, 239, 227, 0.14);
  padding-bottom: 18px;
}
/* Products disclosure inside the overlay – same row look, tap to expand */
.menu-group { border-bottom: 1px solid rgba(244, 239, 227, 0.14); padding-bottom: 18px; }
.menu-group-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 0; text-align: left;
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 32px; color: var(--fg);
}
.menu-group-toggle svg { transition: transform 240ms ease; opacity: 0.6; }
.menu-group.open .menu-group-toggle svg { transform: rotate(180deg); opacity: 1; }
.menu-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(.22,.8,.28,1);
}
.menu-group.open .menu-sub { grid-template-rows: 1fr; }
.menu-sub-in { overflow: hidden; display: flex; flex-direction: column; }
.menu-overlay .menu-sub a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 22px; color: #d6cfc0;
  padding: 14px 2px 14px 18px;
  border-bottom: 1px solid rgba(244, 239, 227, 0.08); /* thin separators between products */
}
.menu-overlay .menu-sub a:first-child { padding-top: 20px; }
.menu-overlay .menu-sub a:last-child { border-bottom: 0; padding-bottom: 2px; } /* group hairline follows */
.menu-overlay .menu-sub a i {
  font-style: normal; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em; color: rgba(244, 239, 227, 0.45);
}
.menu-close {
  position: absolute; top: 30px; right: calc(var(--pad) + 2px);
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  appearance: none; background: transparent; cursor: pointer;
  border: 1px solid rgba(244, 239, 227, 0.3);
  border-radius: 8px;
  color: var(--fg);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.menu-close:hover, .menu-close:active {
  background: var(--fg); color: #14120e; border-color: var(--fg);
}
@media (max-width: 820px) {
  .nav-burger {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--nav-border-strong);
    border-radius: 8px;
    color: var(--nav-fg);
    position: relative;
  }
}
