/* ==========================================================================
   jaisermart.nez — design tokens
   ========================================================================== */
:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --card: #EBEBED;
  --text: #1D1D1F;
  --text-2: #86868B;
  --line: #D2D2D7;
  --btn: #1D1D1F;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 18px;
  --r-s: 12px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --nav-h: 52px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glass: rgba(255, 255, 255, .72);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--text-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 18px; }
.headline { font-size: clamp(40px, 6.2vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; }
.lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; letter-spacing: -0.02em; color: var(--text-2); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px;
  border-radius: 980px;
  background: var(--btn); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease);
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; pointer-events: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.btn-ghost:hover { border-color: var(--text); }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease), opacity .3s;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Navigation — frosted glass
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(210, 210, 215, .7);
  transition: background-color .4s var(--ease);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
.app-page .nav-inner { max-width: none; }

.logo { font-size: 19px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 13px; letter-spacing: -0.005em; color: rgba(29, 29, 31, .72); transition: color .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-edit { padding-left: 28px; border-left: 1px solid var(--line); }
.nav-cta {
  height: 28px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border-radius: 980px;
  background: var(--btn); color: #fff;
  font-size: 12px; font-weight: 500;
}
.nav-cta:hover { background: #000; }

.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; margin-right: -10px; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-sheet { display: none; }

/* ==========================================================================
   Shelf (homepage) — full-screen app
   ========================================================================== */
.app-page { height: 100%; overflow: hidden; overscroll-behavior: none; }

.stage {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}

#shelf-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out);
  cursor: grab;
}
.stage.is-ready #shelf-canvas { opacity: 1; transform: none; }
.stage.is-hovering #shelf-canvas { cursor: pointer; }
.stage.is-dragging #shelf-canvas { cursor: grabbing; }

/* The shelf's name, huge, behind the 3D unit (the canvas is transparent) */
#shelf-canvas { z-index: 1; }
.stage-head { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; transition: opacity .6s var(--ease); }
.stage-title {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(52px + 2.5vh);
  margin-left: -0.04em;
  font-size: clamp(84px, 13.4vw, 236px); line-height: .84; letter-spacing: -0.068em; font-weight: 700;
  color: #E1E1E6;
  text-wrap: balance;
}
.stage-head.swap .stage-title { animation: titleSwap 1.1s var(--ease-out) both; }
@keyframes titleSwap { from { opacity: 0; transform: translateY(.16em); } to { opacity: 1; transform: none; } }
.stage.is-open .stage-head { opacity: 0; }

/* Index line across the top: where you are, the hint, the shelves */
.stage-top {
  position: absolute; z-index: 3; top: 0; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; gap: 24px; min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  transition: opacity .5s var(--ease);
}
.stage-kicker { white-space: nowrap; }
.stage-kicker #shelf-meta { color: var(--text-2); margin-left: 10px; }
.stage-top .hint { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 11px; color: var(--text-2); opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-index { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.shelf-index::-webkit-scrollbar { display: none; }
.si-item {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 11px; border-radius: 980px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-2);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.si-item:hover { color: var(--text); }
.si-item.is-active { color: #fff; background: var(--text); }
.si-count { opacity: .6; }
.stage.is-open .stage-top { opacity: 0; pointer-events: none; }

.draft-badge {
  position: absolute; z-index: 3;
  top: 68px; left: var(--gutter);
  background: var(--text); color: #fff;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  padding: 7px 12px; border-radius: 980px;
}

/* Loader: the wordmark fills in */
.stage-loading {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  pointer-events: none;
  transition: opacity .8s var(--ease) .1s, visibility 0s linear .9s;
}
.loader-logo { position: relative; font-family: var(--font); font-size: clamp(44px, 8vw, 128px); font-weight: 700; letter-spacing: -0.065em; line-height: 1; color: #DCDCE1; }
.loader-logo::after { content: attr(data-text); position: absolute; inset: 0; color: var(--text); clip-path: inset(0 100% 0 0); animation: loaderFill 1.8s var(--ease) infinite; }
@keyframes loaderFill { 0% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0 0 0 0); } }
.stage.is-ready .stage-loading { opacity: 0; visibility: hidden; }

/* Bottom strip: number, the coffee in focus, arrows, Open */
.shelf-bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(245, 245, 247, .84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.counter { display: flex; align-items: baseline; gap: 8px; min-width: 92px; font-size: 12px; color: var(--text-2); letter-spacing: .06em; white-space: nowrap; }
.counter b { font-family: var(--font); font-size: 40px; font-weight: 700; color: var(--text); letter-spacing: -0.06em; line-height: .9; }
.shelf-current { min-width: 0; display: grid; gap: 3px; }
.current-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.current-name { font-size: clamp(20px, 1.9vw, 28px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.current-roaster { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.fav-tag {
  flex: none;
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 7px; border-radius: 980px;
  background: var(--text); color: #fff;
}
.bar-nav { display: flex; gap: 6px; }
.shelf-bar .icon-btn { background: none; border-color: var(--line); }
.shelf-bar .icon-btn:hover { border-color: var(--text); }
.shelf-bar .go { min-width: 118px; justify-content: space-between; }

.hint { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
@media (hover: none) { .hint { display: none; } }

/* Detail panel (an open bag) */
.detail {
  position: absolute; z-index: 2;
  top: 50%; right: clamp(24px, 5vw, 80px);
  width: min(420px, 38%);
  max-height: calc(100% - 200px);
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  transform: translate(28px, -54%);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility 0s linear .8s;
}
.detail::-webkit-scrollbar { display: none; }
.stage.is-open .detail { opacity: 1; visibility: visible; transform: translate(0, -54%); transition-delay: .18s, .18s, 0s; }

.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-bottom: 30px; border-top: 1px solid var(--text); }
.detail-index { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.detail-close { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.detail-close:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fav-pill {
  display: inline-block; margin-bottom: 16px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 980px;
  background: var(--text); color: #fff;
}
.detail-roaster { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 12px; }
.detail-title { font-size: clamp(36px, 3.9vw, 58px); line-height: .95; font-weight: 700; letter-spacing: -0.058em; }
.detail-origin { margin-top: 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.detail-notes { margin-top: 2px; font-size: 18px; color: var(--text-2); letter-spacing: -0.02em; }

.specs { margin-top: 28px; font-size: 12.5px; line-height: 1.4; }
.specs > div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }

.recipe { margin-top: 28px; }
.recipe-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recipe-grid > div { padding: 14px 0 12px 14px; border-left: 1px solid var(--line); }
.recipe-grid > div:first-child { padding-left: 0; border-left: 0; }
.recipe-grid .num { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.recipe-grid .num small { font-size: 14px; font-weight: 600; margin-left: 1px; letter-spacing: 0; color: var(--text-2); }
.recipe-grid .lbl { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.recipe-grind { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }

.detail .detail-shop { display: flex; justify-content: space-between; width: 100%; height: 50px; margin-top: 28px; font-size: 15px; padding-left: 22px; }
.detail .detail-shop i { width: 36px; height: 36px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.detail-actions button, .detail-actions a { color: var(--text-2); }
.detail-actions button:hover, .detail-actions a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.catalog a { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.detail-hint { margin-top: 14px; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
@media (hover: none) { .detail-hint { display: none; } }

/* Zoom: the open bag fills the stage */
.stage.is-open.is-hovering #shelf-canvas { cursor: zoom-in; }
.stage.is-zoom.is-hovering #shelf-canvas { cursor: zoom-out; }
.stage.is-zoom .detail { opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .6s; }
.stage.is-zoom .shelf-bar { opacity: 0; pointer-events: none; transform: translateY(16px); }
.stage .zoom-exit { position: absolute; z-index: 3; top: 16px; right: var(--gutter); animation: fadeIn .4s var(--ease) both; }
.stage .zoom-exit i::after { content: '\00d7'; font-size: 16px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Catalog — visually hidden unless 3D is unavailable */
.catalog-wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.no-webgl .app-page { overflow: auto; height: auto; }
.no-webgl .stage { position: relative; inset: auto; height: auto; padding-top: var(--nav-h); background: none; }
.no-webgl #shelf-canvas, .no-webgl .shelf-bar, .no-webgl .hint, .no-webgl .stage-loading, .no-webgl .detail { display: none; }
.no-webgl .stage-head { position: static; padding: 48px var(--gutter) 32px; }
.no-webgl .catalog-wrap { position: static; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; padding: 0 var(--gutter) 80px; }
.no-webgl .shelf-index { display: none; }
.catalog-shelves { list-style: none; display: grid; gap: 48px; }
.cat-shelf h2 { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 16px; }
.cat-shelf h2 .mono { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin-right: 10px; vertical-align: middle; }
.catalog { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.catalog li { background: var(--bg-2); border-radius: var(--r-l); padding: 24px; }
.catalog .swatch { width: 28px; height: 40px; border-radius: 6px; margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.catalog strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.catalog span { display: block; color: var(--text-2); font-size: 14px; }

/* ==========================================================================
   Content pages (Equipment, Blog, posts): editorial system
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Hero: an index line, then display type */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 112px)); padding-bottom: clamp(36px, 5vw, 64px); }
.hero-index {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 14px; margin-bottom: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--text);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.hero-index span:last-child { color: var(--text-2); }
.display { font-size: clamp(62px, 13.2vw, 208px); line-height: .86; letter-spacing: -0.066em; font-weight: 700; margin-left: -0.04em; }
.display .muted { color: #C7C7CC; }
.hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: clamp(36px, 5vw, 72px); }
.hero-copy { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.38; letter-spacing: -0.02em; font-weight: 500; max-width: 34ch; }
.hero-copy em { font-style: normal; color: var(--text-2); }
.hero-stat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); text-align: right; line-height: 1.7; }

/* Split-word reveal for big type (js/fx.js wraps the words) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.split.in .w > span { transform: none; }

/* Brand marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(14px, 2vw, 22px) 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(28px, 4.2vw, 60px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; color: #C7C7CC; }
.marquee-track span::after { content: '/'; margin: 0 .5em; color: var(--line); font-weight: 300; }
.marquee-track span:nth-child(3n+1) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Index lists: numbered rows on hairlines */
.index { padding-top: clamp(88px, 13vh, 160px); }
.index-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--text); }
.index-head .mono { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; padding-bottom: .55em; }
.index-head h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: .92; letter-spacing: -0.055em; font-weight: 700; }
.index-note { margin-top: 18px; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--text-2); }

.rows { list-style: none; }
.row > a {
  display: grid; grid-template-columns: 52px minmax(0, 1.4fr) 140px minmax(0, 1fr) 176px;
  gap: clamp(16px, 2vw, 28px); align-items: center;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: opacity .45s var(--ease);
}
.row-no { font-size: 12px; color: var(--text-2); letter-spacing: .04em; }
.row-thumb { display: none; }
.row-name { font-size: clamp(24px, 2.7vw, 40px); line-height: 1.04; font-weight: 650; letter-spacing: -0.045em; transition: transform .7s var(--ease-out); }
.row-name small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.row-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.row-spec { font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; color: var(--text-2); }
.row .go { justify-self: end; }
@media (hover: hover) {
  .rows:hover .row > a { opacity: .3; }
  .rows .row > a:hover, .rows .row > a:focus-visible { opacity: 1; }
  .row > a:hover .row-name { transform: translateX(14px); }
}

/* Arrow button: the dot grows to fill the pill */
.go {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 6px 0 18px;
  border: 1px solid var(--line); border-radius: 980px;
  font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text);
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.go::before {
  content: ''; position: absolute; z-index: -1; top: 6px; right: 6px; bottom: 6px; width: 28px;
  border-radius: 980px; background: var(--text);
  transition: width .6s var(--ease-out), top .6s var(--ease-out), right .6s var(--ease-out), bottom .6s var(--ease-out);
}
.go i { width: 28px; height: 28px; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 13px; transition: transform .6s var(--ease-out); }
.go i::after { content: '\2197'; }
.go:hover, .row > a:hover .go, a:focus-visible .go, .go:focus-visible { color: #fff; border-color: var(--text); }
.go:hover::before, .row > a:hover .go::before, a:focus-visible .go::before, .go:focus-visible::before { top: 0; right: 0; bottom: 0; width: 100%; }
.go:hover i, .row > a:hover .go i { transform: rotate(45deg); }
.go--dark { background: var(--text); color: #fff; border-color: var(--text); }
.go--dark::before { background: #000; }
.go--dark i { color: #fff; }

/* WebGL hover picture (js/hover-reveal.js) */
/* multiply: the photo's white melts into the page, so only the product floats over the text */
.hover-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; mix-blend-mode: multiply; }

.disclosure { margin-top: 28px; font-size: 12px; color: var(--text-2); letter-spacing: .02em; }

/* Blog */
.preview-note { display: inline-block; margin-top: 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--text); color: #fff; padding: 7px 12px; border-radius: 980px; }
.post-meta { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.post-draft { color: var(--text); }
.blog-empty { padding: clamp(48px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.blog-empty h3 { font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -0.055em; font-weight: 700; }
.blog-empty p { margin-top: 18px; font-size: 18px; color: var(--text-2); letter-spacing: -0.015em; }
.blog-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Post page */
.read-progress { position: fixed; z-index: 99; top: var(--nav-h); left: 0; right: 0; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--text); pointer-events: none; }
.post-page { padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 96px)); }
.post-wrap { max-width: 900px; }
.post-back { display: inline-block; margin-bottom: 40px; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.post-back::before { content: '\2190\00a0'; }
.post-back:hover { color: var(--text); }
.post-head { margin-bottom: 40px; }
.post-title { margin-top: 16px; font-size: clamp(42px, 6.4vw, 92px); line-height: .94; font-weight: 700; letter-spacing: -0.058em; }
.post-lede { margin-top: 22px; max-width: 36ch; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; color: var(--text-2); letter-spacing: -0.02em; font-weight: 500; }
.post-cover { margin: 0 0 48px; border-radius: var(--r-l); overflow: hidden; background: var(--bg-2); }
.post-cover img { display: block; width: 100%; max-height: 680px; object-fit: cover; }
.post-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 48px; border-radius: var(--r-l); overflow: hidden; background: #000; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post > .btn { margin-top: 8px; }

.prose { font-size: 19px; line-height: 1.64; letter-spacing: -0.012em; max-width: 680px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; padding-top: .9em; border-top: 1px solid var(--line); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -0.04em; }
.prose h3 { margin-top: 1.6em; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -0.025em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text-2); }
.prose blockquote { border-left: 2px solid var(--text); padding-left: 20px; font-size: 22px; line-height: 1.45; letter-spacing: -0.02em; font-weight: 500; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.prose figure, .prose > p > img { margin-top: 1.6em; }
.prose img { display: block; width: 100%; border-radius: var(--r-l); }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.prose .post-video { margin: 1.6em 0; }
.more-posts { padding-bottom: clamp(40px, 8vh, 80px); }

/* Collaborations */
.collab { padding-top: clamp(120px, 18vh, 220px); padding-bottom: clamp(72px, 10vh, 120px); }
.collab .hero-index { margin-bottom: clamp(24px, 3vw, 40px); }
.collab-mail {
  display: inline-block;
  font-size: clamp(30px, 7.4vw, 118px);
  font-weight: 700; letter-spacing: -0.06em; line-height: .95;
  background-image: linear-gradient(var(--text), var(--text));
  background-size: 0% 3px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 8px;
  transition: background-size .7s var(--ease-out);
}
.collab-mail:hover { background-size: 100% 3px; }
.collab .lede { margin-top: 24px; max-width: 520px; }

/* Next page: a big link that closes a page */
.next-page { display: block; margin-top: clamp(96px, 14vh, 170px); padding-bottom: clamp(24px, 4vw, 48px); color: var(--text); }
.next-label { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.next-title { display: block; margin-top: clamp(18px, 2.4vw, 32px); margin-left: -0.04em; font-size: clamp(48px, 9.4vw, 156px); font-weight: 700; letter-spacing: -0.066em; line-height: .9; color: #C7C7CC; transition: color .7s var(--ease-out), transform .9s var(--ease-out); }
.next-title::after { content: '\2192'; display: inline-block; margin-left: .18em; font-weight: 300; opacity: 0; transform: translateX(-.2em); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.next-page:hover .next-title, .next-page:focus-visible .next-title { color: var(--text); transform: translateX(.06em); }
.next-page:hover .next-title::after, .next-page:focus-visible .next-title::after { opacity: 1; transform: none; }

/* Contact rows: the value is the headline */
.rows--contact .row-name { font-size: clamp(22px, 2.5vw, 36px); overflow-wrap: anywhere; }
.hero-foot > .go { justify-self: end; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Footer: columns, then the wordmark across the full width */
.site-foot { border-top: 1px solid var(--text); margin-top: clamp(40px, 6vh, 80px); padding-top: 28px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px; font-size: 14px; }
.foot-label { display: block; margin-bottom: 10px; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.foot-grid a { display: block; padding: 3px 0; width: fit-content; letter-spacing: -0.01em; }
.foot-grid a:hover { color: var(--text-2); }
.foot-legal { text-align: right; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; line-height: 1.8; }
.foot-legal a { margin-left: auto; color: var(--text-2); }
.foot-mark {
  display: block; margin-top: clamp(48px, 8vw, 110px);
  font-size: 14.2vw; font-weight: 700; letter-spacing: -0.07em; line-height: .9;
  white-space: nowrap; text-align: center; color: var(--text);
  padding-bottom: .16em;    /* room for the j's descender: the name must read as jaisermart.nez */
}

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-sheet {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px var(--gutter) 0;
    max-height: 0; overflow: hidden;
    transition: max-height .6s var(--ease-out), padding .6s var(--ease-out);
  }
  .nav-sheet a {
    font-size: 28px; font-weight: 650; letter-spacing: -0.035em; padding: 6px 0;
    opacity: 0; transform: translateY(-8px);
    transition: opacity .4s, transform .5s var(--ease-out);
  }
  .nav-sheet .nav-sheet-mail { font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--text-2); margin-top: 12px; }
  .nav.is-open { background: rgba(255, 255, 255, .96); }
  .nav.is-open .nav-sheet { max-height: 460px; padding-bottom: 28px; }
  .nav.is-open .nav-sheet a { opacity: 1; transform: none; }

  .stage-title { top: 70px; font-size: 19vw; line-height: .86; }
  .stage-top { gap: 12px; min-height: 48px; }
  .stage-kicker #shelf-meta { display: none; }
  .si-item { padding: 5px 9px; font-size: 11px; }
  .si-count { display: none; }

  .detail {
    top: auto; right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 56%;
    padding: 8px 20px 22px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-radius: 24px;
    transform: translateY(32px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 20px 50px -24px rgba(0, 0, 0, .3);
  }
  .stage.is-open .detail { transform: none; }
  .stage.is-open .shelf-bar { opacity: 0; pointer-events: none; transform: translateY(16px); }
  .detail-top { margin-bottom: 18px; border-top: 0; }
  .detail-title { font-size: 34px; }
  .recipe-grid .num { font-size: 22px; }
  .specs > div { grid-template-columns: 96px 1fr; }

  .shelf-bar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding-top: 12px; }
  .counter { display: none; }
  .current-name { font-size: 19px; }
  .bar-nav .icon-btn { width: 38px; height: 38px; }
  .shelf-bar .go { min-width: 0; }

  .hero-foot { grid-template-columns: 1fr; gap: 20px; }
  .hero-stat { text-align: left; }
  .hero-foot > .go { justify-self: start; }
  .index-head { grid-template-columns: 1fr auto; }
  .index-head > .mono:first-child { display: none; }
  .prose { font-size: 18px; }
  .blog-empty { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-column: 1 / -1; text-align: left; }
  .foot-legal a { margin-left: 0; }
}

/* Narrow phones: swiping moves between bags, so the name gets the arrows' room */
@media (max-width: 420px) {
  .bar-nav { display: none; }
  .shelf-bar { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Lists on touch screens and narrow windows: a thumbnail in each row, no floating picture */
@media (max-width: 900px), (hover: none) {
  .row > a { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 'thumb name go' 'thumb spec go'; row-gap: 6px; }
  .row-no, .row-cat { display: none; }
  .row-thumb { grid-area: thumb; display: block; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
  .row-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .row-thumb.is-cover img { object-fit: cover; mix-blend-mode: normal; }
  .row-name { grid-area: name; font-size: clamp(20px, 5.2vw, 28px); }
  .row-spec { grid-area: spec; font-size: 14px; }
  .row .go { grid-area: go; padding: 0 6px; gap: 0; }
  .row .go > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 901px) and (hover: hover) {
  .has-hover-gl .row-thumb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #shelf-canvas { transition: opacity .3s; transform: none; }
  .split .w > span { transform: none; transition: none; }
  .marquee-track { animation: none; }
}
