/* ════════════════════════════════════════════════════════════
   NOBIUM LABS
   Editorial paper, hairlines, mono labels. Sky + cream as the art colour.
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #edeae3;
  --paper-2: #e4e0d7;
  --card: #f5f3ee;
  --ink: #141413;
  --ink-2: #4b4943;
  --ink-3: #8a867d;
  --line: rgba(20, 20, 19, 0.14);
  --line-2: rgba(20, 20, 19, 0.07);

  --grid: rgba(122, 94, 76, 0.16);
  --grid-2: rgba(122, 94, 76, 0.4);

  --sky: #3f86ea;
  --sky-2: #8fb7ef;
  --cream: #f5e1ad;
  --accent: #1f5bd1;      /* kleiner Akzent-Text / Status */

  --f-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(16px, 3.2vw, 48px);
  --hdr: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
section[id] { scroll-margin-top: var(--hdr); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--sky); color: #fff; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Grain (paper) ────────────────────────────────── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: inherit; }
.btn--solid[disabled]:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.is-added { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── Header ───────────────────────────────────────── */
.hdr {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: var(--hdr);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 500; letter-spacing: -0.01em; }
.hdr__logo svg { width: 28px; height: 24px; }
.hdr__nav { display: flex; gap: 32px; }
.hdr__nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color 0.2s; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--ink); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); }
.hdr__cart {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.hdr__cart:hover { background: var(--ink); color: var(--paper); }
.hdr__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; background: var(--ink); color: var(--paper); font-variant-numeric: tabular-nums; }
.hdr__cart:hover .hdr__count { background: var(--paper); color: var(--ink); }
.hdr__count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.3); } }

/* ─── Section heads ────────────────────────────────── */
.sec-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  margin-bottom: 28px;
}
.sec-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.sec-head__no { color: var(--accent); }
.sec-head__r { color: var(--ink-2); text-align: right; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: end;
  padding: calc(var(--hdr) + clamp(24px, 4vw, 48px)) var(--pad) clamp(48px, 7vw, 96px);
  min-height: 100svh;
  --gap: clamp(24px, 4vw, 64px);
}
.hero__text { padding-bottom: 8px; }
.hero__kicker { margin: 0 0 22px; color: var(--ink-2); }
.hero__title { margin: 0; font-weight: 500; font-size: clamp(64px, 9.4vw, 156px); line-height: 0.88; letter-spacing: -0.06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title.is-in .line > span { transform: none; }
.js .hero__title.is-in .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero__lead { margin: 28px 0 0; max-width: 34ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.55; }
.hero__cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }

/* ─── Art (airbrush sky): hero + placeholders ─────── */
.art { position: relative; margin: 0; overflow: hidden; isolation: isolate; background: var(--sky); }
.art--hero { height: min(calc(100svh - var(--hdr) - 96px), 820px); min-height: 420px; }
.art__sky {
  position: absolute; inset: -12%;
  background:
    radial-gradient(70% 55% at 62% 112%, var(--cream) 0%, rgba(245, 225, 173, 0.7) 32%, rgba(245, 225, 173, 0) 64%),
    radial-gradient(60% 50% at 18% 8%, rgba(42, 112, 226, 0.9) 0%, rgba(42, 112, 226, 0) 70%),
    linear-gradient(180deg, #3a80e8 0%, #4f8fec 42%, #8db6ee 72%, #e9dcb8 100%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, -4%, 0) scale(1.06); }
}
.art__glow, .art__mark { position: absolute; inset: 0 0 8% 0; margin: auto; color: #fff7de; pointer-events: none; will-change: transform; }
.art__glow { width: 70%; height: 60%; filter: blur(38px); opacity: 0.85; }
.art__mark { width: 44%; height: 38%; filter: blur(3px) drop-shadow(0 0 22px rgba(255, 247, 222, 0.9)); opacity: 0.96; }
.art__grain { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: overlay; opacity: 0.55; pointer-events: none; }
.art__cap { display: flex; justify-content: space-between; padding: 12px 2px 0; color: var(--ink-3); }

/* soft edge: the art dissolves into the paper instead of ending in corners */
.art--soft {
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 68% 64% at 50% 48%, #000 34%, rgba(0, 0, 0, 0.82) 46%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.14) 69%, transparent 76%);
  mask-image: radial-gradient(ellipse 68% 64% at 50% 48%, #000 34%, rgba(0, 0, 0, 0.82) 46%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.14) 69%, transparent 76%);
}
.art--soft .art__sky { inset: 0; }
.hero__fig { margin: 0; }

.art--cream .art__sky { background: radial-gradient(80% 60% at 40% 0%, rgba(63, 134, 234, 0.75) 0%, rgba(63, 134, 234, 0) 62%), linear-gradient(180deg, #a9c6ee 0%, #f1e3bd 62%, #f5e1ad 100%); }
.art--ink { background: #121318; }
.art--ink .art__sky { background: radial-gradient(60% 50% at 50% 60%, rgba(63, 134, 234, 0.55) 0%, rgba(63, 134, 234, 0) 70%), #121318; }
.art--mist { background: #e9e6df; }
.art--mist .art__sky { background: radial-gradient(70% 60% at 50% 40%, #f7f5f0 0%, #e2ded5 80%); animation: none; }

/* ─── SHOP ─────────────────────────────────────────── */
.shop, .rm { padding: clamp(48px, 7vw, 96px) var(--pad); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tabs button {
  background: none; border: 0; padding: 8px 10px; min-height: 36px;
  color: var(--ink-3);
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.prod { display: flex; flex-direction: column; transition: opacity 0.35s var(--ease); }
.prod[hidden] { display: none; }
.prod__img { aspect-ratio: 4 / 5; }
.prod__img .art__mark { width: 52%; height: 40%; }
.prod__img .art__glow { width: 80%; height: 64%; }
.prod__img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; transition: transform 0.8s var(--ease); z-index: 1; }
.prod:hover .prod__img img { transform: scale(1.04) translateY(-1%); }
.prod:hover .art__sky { animation-duration: 6s; }
.prod__badge { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--paper); color: var(--ink); padding: 4px 8px; }
.prod__ph { position: absolute; right: 10px; bottom: 10px; z-index: 2; color: rgba(255, 255, 255, 0.85); }
.art--mist .prod__ph, .art--cream .prod__ph { color: var(--ink-2); }
.prod__info { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; flex: 1; }
.prod__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prod__name { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.prod__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod__desc { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.prod__cat { color: var(--ink-3); }
.prod .btn { margin-top: auto; }

/* ─── Teaser (solange es keine Produkte gibt) ─────── */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.teaser[hidden] { display: none; }
.teaser__media { display: grid; gap: 10px; }
.teaser__img { aspect-ratio: 3 / 4; max-height: 82vh; margin: 0 auto; width: 100%; }
.teaser__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.teaser__q {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-size: clamp(140px, 22vw, 340px); font-weight: 300; line-height: 1;
  color: #fff7de;
  filter: blur(2px) drop-shadow(0 0 28px rgba(255, 247, 222, 0.9));
}
.teaser__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; width: 100%; }
.teaser__thumb { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; position: relative; }
.teaser__thumb::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -8px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.teaser__thumb.is-on::after { transform: scaleX(1); }
.teaser__thumb[disabled] { cursor: default; opacity: 0.7; }
.teaser__thumb .art { position: absolute; inset: 0; }
.teaser__thumb .teaser__q { font-size: clamp(36px, 5vw, 64px); filter: blur(1px); }
.teaser__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.teaser__info { display: grid; gap: 14px; padding-bottom: 6px; }
.teaser__no { color: var(--ink-3); }
.teaser__name { margin: 0; font-family: var(--f-mono); font-weight: 400; font-size: clamp(48px, 6vw, 88px); letter-spacing: 0.12em; line-height: 1; }
.teaser__line { margin: 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.2; max-width: 22ch; }
.teaser__st { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.teaser__st::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.teaser__info .btn { justify-self: start; margin-top: 8px; }

/* ─── ÜBER UNS ─────────────────────────────────────── */
.about {
  position: relative;
  overflow: hidden;
  background: #ece6df;
  border-top: 1px solid var(--ink);
}
.about__paper {
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='176' height='176'><path d='M10 1 V19 M1 10 H19' stroke='%2346362c' stroke-width='1.6' fill='none'/></svg>"),
    linear-gradient(to right, var(--grid-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-2) 1px, transparent 1px),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 176px 176px, 176px 176px, 176px 176px, 22px 22px, 22px 22px;
  background-position: -10px -10px, 0 0, 0 0, 0 0, 0 0;
}
.about__inner {
  position: relative;
  min-height: max(110vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) auto;
  grid-template-rows: auto 1fr auto auto;
  column-gap: clamp(20px, 3vw, 48px);
  padding: clamp(32px, 5vw, 64px) var(--pad) 0;
}
.about__no { grid-column: 1; grid-row: 1; color: var(--accent); }
.about__title {
  grid-column: 3; grid-row: 1 / 5;
  align-self: start;
  margin: 0;
  display: flex; flex-direction: row-reverse; gap: clamp(8px, 1vw, 18px);
  font-weight: 300;
}
.about__v, .about__v2 { writing-mode: vertical-rl; line-height: 1; white-space: nowrap; }
.about__v { font-family: var(--f-mono); font-size: clamp(54px, 6.6vw, 112px); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; }
.about__v2 { font-size: clamp(26px, 2.6vw, 42px); letter-spacing: 0.06em; font-weight: 300; padding-top: 0.2em; }
.about__crystal {
  grid-column: 1; grid-row: 1 / 5;
  align-self: end; justify-self: center;
  width: auto;
  height: min(96vh, 1000px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 30px 40px rgba(40, 30, 20, 0.18));
  margin-top: 40px;
}
.about__text { grid-column: 2; grid-row: 3; padding-bottom: 28px; max-width: 46ch; }
.about__text p { margin: 0 0 1em; font-family: var(--f-mono); font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; color: var(--ink); }
.about__marks {
  grid-column: 2; grid-row: 4;
  display: flex; gap: 28px;
  margin: 0; padding: 14px 0 clamp(40px, 6vw, 72px);
  color: rgba(70, 54, 44, 0.55);
  font-size: 10px;
}

/* ─── Wasserstoffbrücken (sparsam) ─────────────────── */
.hbond { display: block; overflow: visible; pointer-events: none; }
.hbond__line { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.hbond__atom { fill: var(--ink); }
.hbond__atom--open { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hbond__d { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-3); letter-spacing: 0.04em; }
.hbond__d--r { text-anchor: end; }
.hbond--hero { width: calc(100% + var(--gap) + 56px); height: 34px; margin-top: 40px; position: relative; z-index: 1; }
.hbond--about { width: 180px; height: 40px; margin: 0 0 18px -60px; }
.js .hbond__line { stroke-dashoffset: 0; }
.js [data-reveal] .hbond__line, .js .hbond--hero .hbond__line { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) 0.3s; }
.js [data-reveal].is-in .hbond__line, .js .hero.is-in .hbond--hero .hbond__line { clip-path: inset(0 0 0 0); }

/* ─── ROADMAP ──────────────────────────────────────── */
.rm__bar { margin-bottom: 36px; }
.rm__track { position: relative; height: 2px; background: var(--line); margin: 34px 0 10px; }
.rm__fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.rm__tick { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--paper); border: 1px solid var(--ink); }
.rm__tick.is-done { background: var(--ink); }
.rm__tick.is-active { background: var(--accent); border-color: var(--accent); }
.rm__today { position: absolute; top: -30px; bottom: -6px; width: 0; }
.rm__today::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 0; width: 1px; background: var(--accent); }
.rm__today span { position: absolute; left: 0; top: 0; transform: translateX(-50%); white-space: nowrap; color: var(--accent); }
.rm__arc { position: absolute; bottom: 4px; height: 22px; overflow: visible; }
.rm__arc path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rm__arc-l { position: absolute; bottom: 24px; transform: translateX(-50%); color: var(--accent); white-space: nowrap; font-size: 10px; }
.rm__months { position: relative; height: 14px; color: var(--ink-3); }
.rm__months span { position: absolute; transform: translateX(-50%); }
.rm__months span:first-child { transform: none; }

.rm__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rm__month { padding: 22px 0 8px; color: var(--ink-3); }
.rm__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 140px 130px 110px;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.rm__date { font-variant-numeric: tabular-nums; }
.rm__title { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.rm__tag, .rm__t { color: var(--ink-2); }
.rm__st { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); }
.rm__st::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; }
.rm__row.is-active::before { content: ""; position: absolute; left: calc(var(--pad) * -1); top: -1px; bottom: -1px; width: 3px; background: var(--accent); }
.rm__row.is-active .rm__title, .rm__row.is-active .rm__st, .rm__row.is-active .rm__date { color: var(--accent); }
.rm__row.is-active .rm__st::before { background: currentColor; }
.rm__row.is-done .rm__title { text-decoration: line-through; color: var(--ink-3); }
.rm__row.is-done .rm__st { color: var(--ink); }
.rm__row.is-done .rm__st::before { background: currentColor; }
.rm__row.is-classified .rm__title { font-family: var(--f-mono); letter-spacing: 0.12em; }
.rm__now { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--accent); border-bottom: 1px solid var(--line); }
.rm__now i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); opacity: 0.7; }

/* ─── FOOTER ───────────────────────────────────────── */
.ftr { padding: clamp(40px, 6vw, 80px) var(--pad) 20px; border-top: 1px solid var(--ink); overflow: hidden; }
.ftr__mark { display: block; width: 100%; height: auto; fill: var(--ink); overflow: visible; }
.ftr__mark .glyph { transform-box: fill-box; transform-origin: 50% 100%; }
.ftr__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ftr__row nav { display: flex; gap: 20px; }
.ftr__row a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ─── CART ─────────────────────────────────────────── */
.cart { position: fixed; inset: 0; z-index: 120; }
.cart[hidden] { display: none; }
.cart__scrim { position: absolute; inset: 0; background: rgba(20, 20, 19, 0.32); opacity: 0; transition: opacity 0.4s var(--ease); }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.cart.is-open .cart__scrim { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); height: var(--hdr); border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.cart__close { background: none; border: 0; padding: 8px 0; min-height: 36px; color: var(--ink-2); }
.cart__close:hover { color: var(--ink); }
.cart__items { list-style: none; margin: 0; padding: 0 var(--pad); flex: 1; overflow-y: auto; }
.cart__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart__thumb { width: 64px; aspect-ratio: 4 / 5; }
.cart__thumb .art__mark { width: 60%; height: 40%; filter: blur(1px); }
.cart__thumb .art__glow { display: none; }
.cart__thumb img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; z-index: 1; }
.cart__name { margin: 0 0 4px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.cart__meta { color: var(--ink-3); }
.cart__qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); }
.cart__qty button { width: 32px; height: 32px; background: none; border: 0; }
.cart__qty button:hover { background: var(--ink); color: var(--paper); }
.cart__qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cart__right { text-align: right; display: grid; gap: 10px; justify-items: end; font-variant-numeric: tabular-nums; }
.cart__rm { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.cart__rm:hover { color: var(--ink); }
.cart__empty { margin: 0; padding: 40px var(--pad); color: var(--ink-2); flex: 1; }
.cart__empty[hidden] { display: none; }
.cart__foot { padding: 18px var(--pad) 22px; border-top: 1px solid var(--ink); display: grid; gap: 12px; }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.cart__sum b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cart__note { margin: 0; color: var(--ink-3); text-transform: none; letter-spacing: 0.01em; font-size: 12px; }

.toast {
  position: fixed; left: 50%; top: calc(var(--hdr) + 12px); z-index: 130;
  transform: translate(-50%, -12px);
  background: var(--ink); color: var(--paper);
  padding: 10px 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ─── Reveal ───────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .art--hero { height: 70vw; min-height: 320px; }
  .hdr__nav { gap: 18px; }
  .sec-head { grid-template-columns: 40px 1fr; }
  .tabs, .sec-head__r { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  .about__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; min-height: 0; }
  .about__no { grid-column: 1; grid-row: 1; }
  .about__title { grid-column: 2; grid-row: 1 / 3; }
  .about__crystal { grid-column: 1; grid-row: 2; height: min(70vh, 640px); justify-self: start; }
  .about__text { grid-column: 1 / -1; grid-row: 3; padding-top: 32px; }
  .about__marks { grid-column: 1 / -1; grid-row: 4; }
  .hbond--hero { display: none; }
  .hbond--about { margin-left: 0; }
  .teaser { grid-template-columns: 1fr; }
  .rm__row { grid-template-columns: 70px minmax(0, 1fr) auto; row-gap: 4px; }
  .rm__tag { grid-column: 2; grid-row: 2; }
  .rm__t { display: none; }
  .rm__st { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .hdr { grid-template-columns: auto 1fr auto; }
  .hdr__logo span { display: none; }
  .hdr__nav { justify-content: center; gap: 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .prod__name { font-size: 15px; }
  .prod__desc { font-size: 13px; }
  .about__v { font-size: 44px; }
  .about__v2 { font-size: 22px; }
  .about__crystal { height: 56vh; }
  .ftr__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}

.hdr__cart[hidden], .grid[hidden], .tabs[hidden] { display: none; }
