/* ==========================================================================
   BIERlab — prototype stylesheet
   Palette: Zurich blue #2587C6, black, white — a "brewing laboratory" theme
   ========================================================================== */

:root {
  --blue: #2587c6;
  --blue-light: #5aa8db;
  --blue-pale: #eaf4fc;
  --blue-dark: #103652;
  --ink: #0c0e10;
  --ink-soft: #1c2126;
  --paper: #ffffff;
  --paper-soft: #f4f7f9;
  --line: #dde4e9;
  --amber: #d98b2c;
  --amber-soft: #f2d9b3;
  --ok: #3f9142;

  --font-display: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Space Mono", "Consolas", monospace;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --shadow-s: 0 2px 10px rgba(12, 14, 16, 0.08);
  --shadow-m: 0 12px 36px rgba(12, 14, 16, 0.14);
  --shadow-blue: 0 14px 34px rgba(37, 135, 198, 0.28);

  --container: 1220px;
  --board-container: 1560px;
  --nav-h: 84px;
  --topbar-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
[data-i18n], [data-i18n-html] { }
[hidden] { display: none !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 25px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--amber);
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .lead { margin-top: 14px; font-size: 17px; color: #45505a; line-height: 1.6; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border: 1px solid rgba(37,135,198,0.25);
  padding: 3px 9px;
  border-radius: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: #1f74ab; box-shadow: 0 16px 40px rgba(37,135,198,.36); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- molecular background canvas ---------- */
#labBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
}
.page-shell { position: relative; z-index: 1; }

/* ---------- top utility bar ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--ink);
  color: #cfd8de;
  font-size: 12.5px;
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar-msg { font-family: var(--font-mono); letter-spacing: .02em; opacity: .85; font-size: 16.5px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 28px; }
.social-row { display: flex; align-items: center; gap: 12px; }
.social-row a {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background .18s ease, transform .18s ease;
}
.social-row a:hover { background: var(--blue); transform: translateY(-2px); }
.social-row svg { width: 14px; height: 14px; fill: #fff; }
.topbar .social-row a { width: 39px; height: 39px; }
.topbar .social-row svg { width: 21px; height: 21px; }
.lang-toggle { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  border: none; background: transparent; color: #cfd8de;
  padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  transition: all .18s ease;
}
.lang-toggle button.active { background: var(--blue); color: #fff; }
.topbar .lang-toggle { padding: 4.5px; gap: 3px; }
.topbar .lang-toggle button { font-size: 18px; padding: 4.5px 15px; }

/* ---------- main nav ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: visible; }
.brand { display: flex; align-items: center; gap: 12px; align-self: center; }
.brand img { height: 60px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand-word b { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  padding: 8px 10px; font-size: 16.5px; font-weight: 600; color: var(--ink-soft);
  border-radius: 999px; transition: background .18s ease, color .18s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-pale); color: var(--blue-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--amber); color: #fff; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid #fff;
}
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: all .2s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--topbar-h) - var(--nav-h)); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55; filter: saturate(1.05) contrast(1.02);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,28,.55) 0%, rgba(10,20,28,.25) 32%, rgba(10,20,28,.55) 68%, rgba(8,12,16,.94) 100%),
    linear-gradient(100deg, rgba(16,54,82,.65), rgba(37,135,198,.28));
}
.hero-molecules { position: absolute; inset: 0; opacity: .5; mix-blend-mode: screen; }
.hero-logo {
  display: block; width: 570px; max-width: 80vw; height: auto;
  margin: 0 0 8px -73px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.4));
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 40px 0 28px; color: #fff; }

/* ---------- headline row: h1 + rotating ethanol molecule ---------- */
.hero-headline-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hero-headline-row h1 { flex: 1; min-width: 0; }
.hero-molecule {
  position: relative; flex: none; z-index: 3;
  width: 230px; max-width: 30vw; cursor: help;
  perspective: 1000px;
}
.hero-molecule-img {
  position: relative; width: 100%; aspect-ratio: 800 / 548;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Two copies of the same photo, layered front/back, so the "C" (and any
   other asymmetric detail) never reads as a mirrored backwards letter once
   the spin passes 90deg — the back copy is pre-flipped in its own local
   space, the classic CSS flip-card trick, so it lands right-reading when
   it becomes the visible face. */
.molecule-face {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.molecule-face-back { transform: rotateY(180deg); }
.molecule-tooltip {
  position: absolute; top: calc(100% + 6px); right: 0; transform: translateY(6px);
  background: rgba(6,10,13,.92); color: #fff; padding: 9px 16px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  border: 1px solid rgba(255,255,255,.15); box-shadow: var(--shadow-m); z-index: 4;
}
.molecule-tooltip sub { font-size: 75%; }
.hero-molecule:hover .molecule-tooltip { opacity: 1; transform: translateY(0); }
@media (max-width: 860px) {
  .hero-molecule { width: 150px; }
}
@media (max-width: 640px) {
  .hero-headline-row { flex-direction: column; }
  .hero-molecule { width: 120px; align-self: flex-end; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-light); border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 999px;
  margin-bottom: 14px; background: rgba(8,20,30,.35);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(217,139,44,.25); }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  max-width: 15ch;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--blue-light); }
.hero .lead { margin-top: 12px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: #dfe8ee; line-height: 1.55; }
.hero-actions { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: 32px; bottom: 28px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
}
.hero-scroll .line { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ---------- menu board banner ---------- */
.board-wrap {
  background: linear-gradient(180deg, #0c0e10, #14181b 60%, #0c0e10);
  padding: 64px 0 70px;
  position: relative;
  border-bottom: 3px solid var(--blue);
}
.board-container { max-width: var(--board-container); margin: 0 auto; padding: 0 28px; }
.board {
  background: #1b1f22;
  border: 10px solid #2a2f33;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #0c0e10, var(--shadow-m), 0 0 60px rgba(37,135,198,.08);
  padding: 30px 30px 20px;
  position: relative;
}
.board::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 4px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.board-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  border-bottom: 2px dashed rgba(255,255,255,.18); padding-bottom: 18px; margin-bottom: 22px; flex-wrap: wrap;
}
.board-title { font-family: "Caveat", var(--font-display); color: #fff; font-size: 34px; }
.board-title small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; color: var(--blue-light); text-transform: uppercase; margin-bottom: 6px; }
.board-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 22px; }
.board-row {
  display: grid; grid-template-rows: auto auto; gap: 0 8px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #f1f3f4; font-family: "Caveat", cursive; font-size: 19px;
}
.board-row .top { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.board-row .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .top .vol { flex: none; margin-left: auto; padding-left: 10px; }
.board-row .bottom { padding-left: 30px; }
.board-row.extra .style, .board-row.extra .vol { color: #56636b; }
.board-row .n { font-family: var(--font-mono); color: var(--amber); font-size: 13px; flex: none; min-width: 22px; display: inline-block; }
.board-row .style { font-family: var(--font-mono); font-size: 10px; color: #9fb0ba; text-transform: uppercase; letter-spacing: .03em; }
.board-row .vol { font-family: var(--font-mono); font-size: 12px; color: var(--blue-light); }
.board-chalk-dust { position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.05), transparent 40%); pointer-events: none; }
.board-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.board-badge { font-family: var(--font-mono); font-size: 11px; color: #9fb0ba; }

.botm {
  margin-top: -1px;
  background: linear-gradient(100deg, var(--blue-dark), var(--blue));
  padding: 26px 0;
}
.botm .container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.botm-icon {
  width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.14);
  display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.35);
}
.botm-icon svg { width: 30px; height: 30px; fill: #fff; }
.botm-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-pale); }
.botm h3 { color: #fff; font-size: clamp(20px, 2.6vw, 27px); margin-top: 4px; }
.botm p { color: #eaf4fc; margin-top: 6px; max-width: 60ch; font-size: 14.5px; }
.botm-stats { margin-left: auto; display: flex; gap: 28px; }
.botm-stat { text-align: center; }
.botm-stat b { display: block; font-family: var(--font-mono); font-size: 22px; color: #fff; }
.botm-stat span { font-size: 11px; color: var(--blue-pale); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- decorative DNA strand (subtle, scroll-animated) ---------- */
.dna-strand { position: absolute; top: 0; right: 4%; width: 90px; height: 100%; opacity: .16; pointer-events: none; z-index: 0; }
.dna-strand .rung { animation: dnaTwist 7s ease-in-out infinite; transform-origin: center; }
.dna-strand .rung:nth-child(odd) { animation-delay: -3.5s; }
@keyframes dnaTwist { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }

/* ---------- story section ---------- */
.story { padding: 110px 0; background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.story-copy p { color: #46525c; line-height: 1.75; font-size: 16px; margin-bottom: 16px; }
.paracelsus-quote {
  margin: 26px 0 30px; padding: 32px 32px; border-left: 3px solid var(--blue);
  background: var(--blue-pale); border-radius: 0 var(--radius-m) var(--radius-m) 0;
  min-height: 230px;
  display: flex; align-items: center; gap: 28px;
}
.paracelsus-quote .qtext { flex: 1; }
.paracelsus-quote span:first-child { display: block; font-family: var(--font-display); font-size: 17.5px; line-height: 1.55; color: var(--blue-dark); }
.paracelsus-quote span:last-child { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--blue); text-transform: uppercase; }
.paracelsus-quote img { flex: none; width: 150px; height: auto; filter: drop-shadow(0 8px 16px rgba(16,54,82,.25)); }
@media (max-width: 640px) {
  .paracelsus-quote { flex-direction: column; text-align: center; min-height: 0; }
  .paracelsus-quote img { width: 120px; }
}
.story-media { position: relative; margin-top: 52px; }
.story-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.flask-badge {
  position: absolute; bottom: -26px; left: -26px; width: 128px; height: 128px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-m);
  display: grid; place-items: center; border: 6px solid var(--paper);
}
.flask-badge svg { width: 58px; height: 58px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.spec-card { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; }
.spec-card .k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.spec-card .v { font-weight: 700; margin-top: 6px; font-size: 15px; }

.team { padding: 0 0 110px; background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-s); }
.avatar { width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 700; overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.avatar:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(12,14,16,.25); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* team photo popup */
.team-modal { max-width: 550px; padding: 0; overflow: hidden; background: #14181b; }
.team-modal img { width: 550px; max-width: 100%; height: 720px; max-height: 80vh; object-fit: cover; display: block; }
.team-modal .close { top: 14px; right: 14px; background: rgba(0,0,0,.55); }
.team-modal .team-modal-name {
  position: absolute; left: 20px; bottom: 16px; color: #fff; font-family: var(--font-display);
  font-size: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.team-card h4 { font-size: 17px; }
.team-card .role { color: var(--blue); font-size: 12.5px; font-family: var(--font-mono); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.team-card.fun { background: linear-gradient(160deg, var(--blue-dark), var(--ink)); border-color: var(--blue-dark); }
.team-card.fun .avatar { background: none; }
.team-card.fun h4, .team-card.fun .role { color: #fff; }
.team-card.fun .role { color: var(--blue-light); }
.team-card.fun .fun-note { color: #b9c4cc; font-size: 12.5px; margin-top: 10px; line-height: 1.5; }
.crew-note { grid-column: 1 / -1; text-align: center; color: #5b6771; font-size: 14.5px; margin-top: 4px; }
.crew-note b { color: var(--ink); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- on tap / periodic table ---------- */
.tap { padding: 110px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.tap .section-head .lead { color: #b9c4cc; }
.tap .eyebrow { color: var(--blue-light); }
.tap .section-tag { background: rgba(37,135,198,.16); border-color: rgba(37,135,198,.4); color: var(--blue-light); }

.formula-selector {
  background: #14181b; border: 1px solid #262c30; border-radius: var(--radius-l);
  padding: 26px 28px; margin-bottom: 46px;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 26px; align-items: end;
}
.fs-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; flex-wrap: wrap; gap: 10px; }
.fs-head h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.fs-head .lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.fs-head small { font-family: var(--font-mono); font-size: 11px; color: #7d8a92; letter-spacing: .08em; }
.dial { }
.dial-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: #9fb0ba; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.dial-label b { color: var(--blue-light); font-size: 12.5px; }
.dial input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) var(--fill, 50%), #2c3338 var(--fill, 50%), #2c3338 100%);
}
.dial input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: pointer; margin-top: -1px;
}
.dial input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); cursor: pointer; }
.dial-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 9.5px; color: #56636b; }
.fs-reset { justify-self: end; }

.tap-tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.tap-tabs button {
  background: #14181b; border: 1px solid #262c30; color: #9fb0ba; padding: 10px 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; font-family: var(--font-mono); letter-spacing: .03em;
  transition: all .18s ease;
}
.tap-tabs button.active, .tap-tabs button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tap-tabs .count { opacity: .7; margin-left: 4px; }

.periodic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}
.elem {
  aspect-ratio: 1 / 1.06;
  background: #14181b;
  border: 1px solid #262c30;
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
}
.elem:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: var(--shadow-blue); z-index: 2; }
.elem.dim { opacity: .22; filter: grayscale(.4); pointer-events: none; }
.elem .num { font-family: var(--font-mono); font-size: 10.5px; color: var(--amber); }
.elem .num::after { content: " ibu"; color: #5b6771; font-size: 8.5px; }
.elem .sym { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #fff; margin-top: auto; line-height: 1; }
.elem .name { font-size: 11px; color: #cfd8de; margin-top: 6px; line-height: 1.25; font-weight: 600; }
.elem .weight { font-family: var(--font-mono); font-size: 10px; color: var(--blue-light); margin-top: 4px; }
.elem .weight::after { content: "% abv"; color: #5b6771; }
.elem.new::before {
  content: "NEW"; position: absolute; top: 10px; right: 10px; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .06em; color: var(--amber); border: 1px solid var(--amber); border-radius: 4px; padding: 1px 5px;
}
.elem-empty { border-style: dashed; align-items: center; justify-content: center; color: #45505a; text-align: center; }
.elem-empty .sym { color: #3a4247; font-size: 22px; }
.elem-empty .name { color: #56636b; }

.elem-detail-note { margin-top: 26px; font-family: var(--font-mono); font-size: 12px; color: #6c7981; text-align: center; }

/* element modal */
.elem-modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,10,13,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.elem-modal {
  background: #14181b; border: 1px solid #262c30; border-radius: var(--radius-l);
  max-width: 480px; width: 100%; padding: 34px; color: #fff; position: relative;
}
.elem-modal .close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: #1e2327; display: grid; place-items: center; color: #cfd8de; }
.elem-modal .badge-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.elem-modal .sym-lg { width: 70px; height: 70px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; font-weight: 700; flex: none; }
.elem-modal h3 { font-size: 22px; }
.elem-modal .style { font-family: var(--font-mono); font-size: 12px; color: var(--blue-light); margin-top: 4px; text-transform: uppercase; }
.elem-modal p.desc { color: #cfd8de; line-height: 1.65; font-size: 14.5px; margin-bottom: 22px; }
.elem-modal .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.elem-modal .stat { background: #1b2024; border-radius: 10px; padding: 12px; text-align: center; }
.elem-modal .stat b { display: block; font-family: var(--font-mono); font-size: 18px; color: var(--blue-light); }
.elem-modal .stat span { font-size: 10px; color: #7d8a92; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- offers ---------- */
.offers { padding: 110px 0; background: var(--paper-soft); }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.offer-card.hi { border-color: var(--blue); box-shadow: var(--shadow-blue); position: relative; }
.offer-card.hi::before { content: "POPULAR"; position: absolute; top: -11px; left: 24px; background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.offer-level { font-family: var(--font-mono); font-size: 11px; color: var(--blue); letter-spacing: .1em; }
.offer-card h4 { margin-top: 8px; font-size: 19px; }
.offer-card .price { font-family: var(--font-mono); margin-top: 12px; color: var(--ink); }
.offer-card .price .value { font-size: 26px; font-weight: 700; }
.offer-card .price .note { font-size: 12px; font-weight: 400; color: #7d8a92; }
.offer-card p.desc { margin-top: 12px; color: #566068; font-size: 14px; line-height: 1.6; flex: 1; }
.offer-card .btn { margin-top: 20px; }

/* ---------- testimonials ---------- */
.testimonials { padding: 110px 0 120px; background: var(--ink); overflow: hidden; position: relative; }
.testimonials .section-head { color: #fff; }
.testimonials .section-head .lead { color: #b9c4cc; }
.coaster-track-wrap { position: relative; max-width: 1190px; margin: 0 auto; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.coaster-track { display: flex; gap: 32px; width: max-content; animation: scrollCoasters 34s linear infinite; }
.coaster-track:hover { animation-play-state: paused; }
@keyframes scrollCoasters { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.coaster {
  width: 375px; flex: none; aspect-ratio: 1/1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(37,135,198,.1), transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, #f6efe1 0 2px, #efe6d2 2px 4px);
  border: 12px solid #e9e0cb;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.5), inset 0 2px 10px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 46px 44px; position: relative; overflow: hidden;
}
.coaster::before {
  content: ""; position: absolute; inset: 28px; border-radius: 50%; border: 1px dashed rgba(16,54,82,.18);
}
.coaster-mark { position: absolute; width: 230px; height: 230px; opacity: .24; filter: grayscale(1) brightness(0.45); top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 0; }
.coaster > div { position: relative; z-index: 1; }
.coaster q { font-family: var(--font-display); font-size: 15px; color: var(--ink-soft); line-height: 1.5; display: block; }
.coaster .who { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .06em; }
.coaster .stars { color: var(--amber); font-size: 13px; margin-bottom: 10px; letter-spacing: 2px; }
@media (max-width: 1280px) { .coaster-track-wrap { max-width: 100%; } }

/* ---------- events ---------- */
.events { padding: 110px 0; background: var(--paper); }
.events-tabs { display: flex; gap: 10px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.events-tabs button {
  background: none; border: none; padding: 12px 4px; margin-right: 26px; font-weight: 700; color: #879198;
  border-bottom: 2px solid transparent; font-size: 15px;
}
.events-tabs button.active { color: var(--ink); border-color: var(--blue); }

.events-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-row {
  display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius-m); background: var(--paper-soft); transition: border-color .18s ease, transform .18s ease, background .18s ease;
  cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit;
}
.event-row:hover { border-color: var(--blue); transform: translateX(4px); }
.event-row.selected { border-color: var(--blue); background: var(--blue-pale); box-shadow: var(--shadow-blue); }
.event-date { background: var(--ink); color: #fff; border-radius: 10px; text-align: center; padding: 10px 0; height: fit-content; }
.event-date .d { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.event-date .m { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-light); }
.event-row h4 { font-size: 16px; }
.event-row .meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--blue); margin-top: 4px; }
.event-row p { margin-top: 8px; font-size: 14px; color: #566068; line-height: 1.55; }

.event-detail {
  border-radius: var(--radius-l); position: sticky; top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--line); box-shadow: var(--shadow-m); overflow: hidden; background: var(--ink);
}
.event-detail-media { position: relative; aspect-ratio: 4/5; background: #0c0e10; cursor: pointer; }
.event-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-detail-media .swap-hint {
  position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; padding: 6px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.event-detail-body { padding: 28px; color: #fff; }
.event-detail-body h3 { font-size: 20px; }
.event-detail-body .meta { font-family: var(--font-mono); font-size: 12px; color: var(--blue-light); margin-top: 6px; }
.event-detail-body p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #cfd8de; white-space: pre-line; }
.event-detail-body .btn { margin-top: 20px; }

.newsletter-box {
  margin-top: 60px; background: var(--blue); border-radius: var(--radius-l); padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; color: #fff;
}
.newsletter-box h3 { font-size: 22px; }
.newsletter-box p { margin-top: 6px; color: var(--blue-pale); font-size: 14.5px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px; border-radius: 999px; border: none; min-width: 260px; font-size: 14px;
}
.newsletter-note { font-family: var(--font-mono); font-size: 11px; margin-top: 10px; color: rgba(255,255,255,.75); width: 100%; }

/* ---------- reservations ---------- */
.reservations { padding: 32px 0 48px; background: var(--paper-soft); }
.reservations .section-head { margin-bottom: 14px; }
.reservation-form {
  max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 22px 30px; box-shadow: var(--shadow-s);
}
.reservation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #566068; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-soft);
  font-size: 14.5px; color: var(--ink); font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.field textarea { resize: vertical; min-height: 48px; }
.reservation-note { font-family: var(--font-mono); font-size: 11px; color: #879198; margin-bottom: 12px; line-height: 1.5; }
.reservation-success {
  display: none; align-items: center; gap: 14px; background: var(--blue-pale); border: 1px solid rgba(37,135,198,.3);
  border-radius: var(--radius-m); padding: 14px 18px; margin-top: 14px; color: var(--blue-dark); font-size: 14.5px;
}
.reservation-success.show { display: flex; }
@media (max-width: 640px) {
  .reservation-grid { grid-template-columns: 1fr; }
  .reservation-form { padding: 24px 20px; }
}

/* ---------- collabs ---------- */
.collabs { padding: 90px 0 0; background: var(--ink); }
.collabs .section-head { color: #fff; }
.collabs .section-head .lead { color: #b9c4cc; }
.collabs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
}
.collab-chip {
  display: block; padding: 13px 16px; border-radius: 10px; background: #14181b; border: 1px solid #262c30;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
a.collab-chip:hover { border-color: var(--blue); background: #171c20; transform: translateY(-2px); }
.collab-chip .brewery { display: block; font-size: 13px; font-weight: 700; color: #fff; }
.collab-chip .beer { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--blue-light); margin-top: 2px; }
.collab-chip .beer::after { content: " ↗"; opacity: .6; }
span.collab-chip .beer::after { content: ""; }
span.collab-chip { cursor: default; }
span.collab-chip .beer { color: #7d8a92; }

/* ---------- gallery ---------- */
.gallery { padding: 60px 0 110px; background: var(--ink); }
.gallery .section-head { color: #fff; }
.gallery .section-head .lead { color: #b9c4cc; }
.gallery-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.gallery-tabs button {
  background: #14181b; border: 1px solid #262c30; color: #9fb0ba; padding: 10px 20px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; font-family: var(--font-mono); letter-spacing: .03em;
}
.gallery-tabs button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-grid .v-card { border-radius: 12px; overflow: hidden; border: 1px solid #262c30; background: #0c0e10; }
.video-grid video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-grid .v-card figcaption { padding: 12px 16px; color: #cfd8de; font-family: var(--font-mono); font-size: 12px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 12px; position: relative; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s ease; }
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figcaption {
  position: absolute; left: 14px; bottom: 10px; color: #fff; font-family: var(--font-mono); font-size: 11px;
  opacity: 0; transform: translateY(6px); transition: all .25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-grid .g-big { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }

.lightbox { position: fixed; inset: 0; background: rgba(6,10,13,.92); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox img { max-height: 88vh; max-width: 88vw; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 26px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 20px; }

/* ---------- contact ---------- */
.contact { padding: 110px 0 60px; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.info-card { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-pale); display: grid; place-items: center; flex: none; }
.info-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); }
.info-row h4 { font-size: 14.5px; }
.info-row p, .info-row a { color: #566068; font-size: 14px; margin-top: 4px; line-height: 1.6; }
.info-row a.btn { color: #fff; font-size: 15px; }
.hours-table { width: 100%; margin-top: 4px; font-size: 14px; }
.hours-table tr td { padding: 2px 0; color: #566068; }
.hours-table tr td:last-child { text-align: right; font-family: var(--font-mono); color: var(--ink); font-weight: 600; }

.map-frame {
  width: 378px; height: 378px; max-width: 100%; margin: 6px auto 0; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
}
.map-frame img { width: 100%; height: 100%; object-fit: contain; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper-soft); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; font-weight: 600; font-size: 15px; }
.faq-q .plus { font-family: var(--font-mono); color: var(--blue); font-size: 18px; transition: transform .2s ease; flex: none; margin-left: 14px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 20px 18px; color: #566068; font-size: 14px; line-height: 1.6; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #cfd8de; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #23282c; }
.footer-brand img { height: 138px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: #8f9aa1; line-height: 1.65; max-width: 32ch; }
.footer-social { margin-top: 20px; }
footer h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #6c7981; margin-bottom: 16px; }
footer .flinks { display: flex; flex-direction: column; gap: 10px; }
footer .flinks a { font-size: 14.5px; color: #cfd8de; transition: color .18s ease; }
footer .flinks a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; color: #6c7981; flex-wrap: wrap; gap: 10px; }
.footer-bottom .credit { color: #8f9aa1; }
.footer-lang { display: flex; align-items: center; gap: 14px; }

/* ---------- toast / stub modal ---------- */
.stub-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: #fff; padding: 15px 22px; border-radius: 999px; z-index: 500;
  font-size: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-m);
  transition: transform .3s ease; border: 1px solid #2a3137;
}
.stub-toast.show { transform: translateX(-50%) translateY(0); }
.stub-toast .ico { color: var(--amber); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .story-grid, .contact-grid, .events-panel { grid-template-columns: 1fr; }
  .team-grid, .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .formula-selector { grid-template-columns: 1fr 1fr; }
  .fs-reset { grid-column: 1 / -1; justify-self: start; }
  .event-detail { position: static; }
  .board-cols { grid-template-columns: repeat(3, 1fr); }
  :root { --nav-h: 70px; }
  .brand img { height: 52px; }
}
@media (max-width: 720px) {
  .nav-links, .topbar-msg { display: none; }
  .burger { display: flex; }
  .team-grid, .offers-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .board-cols { grid-template-columns: repeat(2, 1fr); }
  .formula-selector { grid-template-columns: 1fr; }
  .hero-content { padding: 32px 0 24px; }
  .botm-stats { margin-left: 0; width: 100%; justify-content: space-between; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 260px; margin-left: -33px; }
  :root { --nav-h: 54px; --topbar-h: 96px; }
  .brand img { height: 42px; }
  .topbar-msg { font-size: 18px; }
  .topbar .container { flex-wrap: wrap; height: auto; padding: 10px 18px; gap: 8px; }
  .topbar .social-row a { width: 40px; height: 40px; }
  .topbar .social-row svg { width: 20px; height: 20px; }
  .topbar .lang-toggle button { font-size: 16px; padding: 5px 14px; }
}
@media (max-width: 520px) {
  .team-grid, .offers-grid, .gallery-grid, .periodic-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .coaster { width: 240px; padding: 30px 24px; }
  .board-cols { grid-template-columns: 1fr; }
  .eyebrow { font-size: 19px; }
}

/* ==========================================================================
   Shop page
   ========================================================================== */
.shop-hero {
  background: linear-gradient(120deg, var(--blue-dark), var(--ink) 70%);
  color: #fff; padding: 150px 0 70px; position: relative; overflow: hidden;
}
.shop-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(37,135,198,.35), transparent 55%);
}
.shop-hero .container { position: relative; }
.shop-hero .back-link { font-family: var(--font-mono); font-size: 13px; color: var(--blue-light); display: inline-block; margin-bottom: 22px; }
.shop-hero h1 { font-size: clamp(32px, 5vw, 50px); max-width: 18ch; }
.shop-hero .lead { margin-top: 16px; max-width: 62ch; color: #cfd8de; font-size: 15px; line-height: 1.65; }
.shop-demo-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: rgba(217,139,44,.15); border: 1px solid rgba(217,139,44,.5); color: var(--amber-soft);
  padding: 8px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px;
}

.shop-body { padding: 70px 0 120px; background: var(--paper-soft); }
.shop-cat { margin-bottom: 56px; }
.shop-cat h2 { font-size: 22px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.shop-cat h2::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.shop-card:hover { box-shadow: var(--shadow-s); transform: translateY(-4px); }
.shop-card .tag { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.shop-card h3 { font-size: 17px; margin-top: 8px; }
.shop-card p { font-size: 13.5px; color: #566068; margin-top: 8px; line-height: 1.55; flex: 1; }
.shop-card .price { font-family: var(--font-mono); font-weight: 700; font-size: 22px; margin-top: 14px; }
.shop-card .price span { font-size: 11px; color: #879198; font-weight: 400; }
.shop-card button { margin-top: 16px; width: 100%; justify-content: center; }

.cart-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 15px 22px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-m); font-weight: 700; font-size: 14px;
}
.cart-fab svg { width: 18px; height: 18px; fill: #fff; }
.cart-fab .cart-badge { position: static; border: none; }

.cart-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 92vw); background: #fff; z-index: 150;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-panel-head { padding: 26px 24px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cart-panel-head h3 { font-size: 18px; }
.cart-panel-head button { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-soft); display: grid; place-items: center; }
#cartList { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty-msg { color: #879198; font-size: 14px; text-align: center; margin-top: 40px; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-row-name { font-size: 14px; font-weight: 600; }
.cart-row-price { font-family: var(--font-mono); font-size: 13.5px; }
.cart-row-remove { grid-column: 1 / -1; justify-self: start; font-size: 12px; color: var(--blue); font-family: var(--font-mono); background: none; border: none; padding: 0; }
.cart-panel-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.cart-panel-foot .row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 16px; }
#cartSubtotal { font-family: var(--font-mono); }
.cart-panel-foot .btn { width: 100%; justify-content: center; }

.checkout-modal { max-width: 420px; }
.checkout-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.checkout-fields label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7d8a92; display: flex; flex-direction: column; gap: 6px; }
.checkout-fields input { background: #1b2024; border: 1px solid #2a3137; border-radius: 8px; padding: 11px 12px; color: #fff; font-family: var(--font-body); font-size: 14px; }
.checkout-fields input::placeholder { color: #56636b; }

@media (max-width: 860px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,10,13,.5); display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 86vw); background: #fff;
  padding: 90px 28px 28px; display: flex; flex-direction: column; gap: 6px; box-shadow: -20px 0 50px rgba(0,0,0,.2);
}
.mobile-drawer a { padding: 14px 6px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-drawer .close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-soft); display: grid; place-items: center; }
