/* ==========================================================================
   GemNexus — image-led store
   Palette taken from the logo: cyan → deep blue on lap-plate paper and steel ink
   Type:  Syne (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --ink: #0E1317;
  --ink-soft: #1B242A;
  --paper: #F1F3F0;
  --paper-2: #E4E8E3;
  --steel: #6F7A81;
  --line: #D6DBD5;
  --brand: #1B9BD8;
  --brand-2: #29C7F0;
  --brand-deep: #1B6FA8;

  --pad: clamp(18px, 4.5vw, 68px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-morph: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: Syne, "IBM Plex Sans", sans-serif;
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.03; margin: 0;
}

.mono, .eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--steel); margin: 0 0 10px; }
.lede { color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
::selection { background: var(--brand); color: #fff; }

/* -------------------------------------------------- cursor -------------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; display: none; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate3d(-50%,-50%,0); }
.cursor__dot { width: 5px; height: 5px; background: var(--ink); }
.cursor__ring { width: 32px; height: 32px; border: 1px solid rgba(14,19,23,.32);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
body.cursor-on .cursor { display: block; }
body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
body.cursor-hot .cursor__ring { width: 60px; height: 60px; border-color: var(--brand); background: rgba(27,155,216,.08); }

/* -------------------------------------------------- page veil ----------- */
.page-veil { position: fixed; inset: 0; background: var(--ink); z-index: 9998; transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.page-veil.is-in { transform: scaleY(1); transform-origin: bottom; transition: transform .45s var(--ease-morph); }
.page-veil.is-out { transform: scaleY(0); transform-origin: top; transition: transform .55s var(--ease-morph); }

/* -------------------------------------------------- header -------------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 24px; padding: 14px var(--pad);
  transition: background .35s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck { background: rgba(241,243,240,.9); backdrop-filter: blur(14px); border-color: var(--line); padding-top: 9px; padding-bottom: 9px; }
body:not(.home) .site-head { background: rgba(241,243,240,.9); backdrop-filter: blur(14px); }
body:not(.home) main { padding-top: 68px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 46px; height: auto; transition: transform .5s var(--ease-morph); }
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.05); }
.brand__text { font-family: Syne, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .005em; }

.site-nav { display: flex; gap: 26px; }
.site-nav a { position: relative; font-size: 14px; font-weight: 500; padding: 4px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.head-actions { display: flex; align-items: center; gap: 10px; }
.wa-link { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); }
.wa-link svg { width: 17px; fill: currentColor; }
.wa-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.req-btn {
  display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--paper); border: 0;
  padding: 10px 16px; font-size: 13px; font-weight: 500; transition: background .3s var(--ease);
}
.req-btn:hover { background: var(--brand); }
.req-count { font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: 11px; background: var(--paper); color: var(--ink); min-width: 19px; height: 19px; display: grid; place-items: center; }
.req-count.pop { animation: pop .45s var(--ease-morph); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.burger { display: none; background: none; border: 0; width: 34px; height: 34px; position: relative; }
.burger span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 20px; }
body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* -------------------------------------------------- buttons ------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-size: 14px; font-weight: 500; border: 1px solid currentColor;
  background: transparent; color: var(--ink); position: relative; overflow: hidden; transition: color .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .4s var(--ease-morph); }
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid::before { background: var(--brand); }
.btn--solid:hover { color: #fff; }
.btn--glass { color: #fff; border-color: rgba(255,255,255,.65); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn--glass::before { background: #fff; }
.btn--glass:hover { color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* -------------------------------------------------- media hero ---------- */
.hero-media { position: relative; min-height: min(100svh, 900px); display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero-media__bg { position: absolute; inset: 0; }
.hero-media__bg img, .hero-media__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-media__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,18,.55), rgba(6,12,18,.35) 45%, rgba(6,12,18,.78)); }
.hero-media__fallback { width: 100%; height: 100%; background: radial-gradient(120% 90% at 50% 15%, #1B6FA8 0%, #10202C 55%, #0B1116 100%); }
.hero-media__inner { position: relative; z-index: 2; padding: 100px var(--pad) 90px; display: grid; justify-items: center; gap: 6px; }
.hero-logo { width: clamp(96px, 13vw, 170px); height: auto; animation: floatIn 1.1s var(--ease-morph) both; filter: drop-shadow(0 12px 34px rgba(0,0,0,.35)); }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-media__title { font-size: clamp(40px, 8vw, 104px); margin: 20px 0 8px; animation: floatIn 1s var(--ease-morph) .12s both; }
.hero-media__sub { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: clamp(11px, 1.4vw, 13px); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.82); animation: floatIn 1s var(--ease-morph) .22s both; }
.hero-media__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; animation: floatIn 1s var(--ease-morph) .32s both; }
.hero-media__cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 22px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; z-index: 3; }
.hero-media__cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* -------------------------------------------------- feature tiles ------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.feature { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); display: block; }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-morph); }
.feature:hover img { transform: scale(1.06); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,20,0) 35%, rgba(8,14,20,.72)); }
.feature__text { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; color: #fff; }
.feature__text .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 6px; }
.feature__text h2 { font-size: clamp(20px, 2.2vw, 30px); }
.feature__go { display: inline-block; margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; }

/* -------------------------------------------------- sections ------------ */
.section { padding: clamp(48px, 7vw, 104px) var(--pad); }
.section--tight { padding-top: clamp(36px, 5vw, 66px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 52px); }
.section-link { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

.page-head { padding: clamp(26px, 4vw, 56px) var(--pad) 0; }
.page-head h1 { font-size: clamp(38px, 6.5vw, 84px); }

/* -------------------------------------------------- product grid -------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 20px; }
.prod-card { display: flex; flex-direction: column; }
.prod-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.prod-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-morph), opacity .55s var(--ease); }
.prod-card__img--alt { opacity: 0; }
.prod-card:hover .prod-card__img { transform: scale(1.05); }
.prod-card:hover .prod-card__img--alt { opacity: 1; }
.prod-card__tag { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--ink); color: var(--paper);
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; }
.prod-card__tag--sale { background: var(--brand); }
.prod-card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(255,255,255,.94); border: 0; color: var(--ink); padding: 12px; font-size: 13px; font-weight: 500;
  transform: translateY(calc(100% + 16px)); opacity: 0;
  transition: transform .45s var(--ease-morph), opacity .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.prod-card:hover .prod-card__add, .prod-card:focus-within .prod-card__add { transform: translateY(0); opacity: 1; }
.prod-card__add:hover { background: var(--ink); color: #fff; }
.prod-card__add.is-added { background: var(--brand); color: #fff; }
.prod-card__body { padding-top: 13px; display: flex; flex-direction: column; gap: 3px; }
.prod-card__name { font-family: Syne, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.price { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; }
.price del { color: var(--steel); margin-right: 8px; }
.price--big { font-size: 28px; font-family: Syne, sans-serif; font-weight: 700; margin: 16px 0 0; }

/* -------------------------------------------------- category tiles ------ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-morph); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,20,0) 40%, rgba(8,14,20,.75)); }
.cat-tile__text { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; }
.cat-tile__text h3 { font-size: 21px; }
.cat-tile__text .mono { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* -------------------------------------------------- media strip --------- */
.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); }
.strip .tile { flex: 0 0 min(70vw, 320px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
.strip--edge { padding: 0 var(--pad); }

/* -------------------------------------------------- masonry ------------- */
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry .tile { break-inside: avoid; margin-bottom: 14px; aspect-ratio: auto; }

.tile { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-morph), filter .4s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile--tall { aspect-ratio: 3 / 4; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 13px;
  background: linear-gradient(180deg, rgba(8,14,20,0), rgba(8,14,20,.72)); opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover figcaption { opacity: 1; }
.tile__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(10,16,22,.35); backdrop-filter: blur(3px); transition: transform .35s var(--ease-morph); }
.tile__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; transform: translateX(2px); }
.tile:hover .tile__play { transform: scale(1.1); }

/* -------------------------------------------------- film band ----------- */
.film { padding: 0 0 clamp(30px, 5vw, 60px); }
.film video, .film__embed { width: 100%; display: block; background: #000; }
.film video { max-height: 78vh; object-fit: cover; }
.film__embed { position: relative; aspect-ratio: 16 / 9; }
.film__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__cap { padding: 12px var(--pad) 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }

/* -------------------------------------------------- cuts band ----------- */
.cuts { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 60px); align-items: center;
  padding: clamp(34px, 5vw, 70px) var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gem-stage { width: min(38vw, 320px); aspect-ratio: 1; }
.gem-stage svg { width: 100%; height: 100%; overflow: visible; }
.gem-body { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.gem-facets { fill: none; stroke: var(--ink); stroke-width: .8; opacity: .5; }
.gem-fire { fill: none; stroke: url(#fireGrad); stroke-width: 2.6; opacity: 0; transition: opacity .5s var(--ease); }
.gem-stage:hover .gem-fire { opacity: 1; }
.cuts__name { font-family: Syne, sans-serif; font-size: clamp(26px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.cuts__spec { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 8px 0 0; }
.gem-dots { display: flex; gap: 7px; margin-top: 20px; }
.gem-dots button { width: 30px; height: 3px; border: 0; padding: 0; background: var(--line); transition: background .3s var(--ease); }
.gem-dots button.is-on { background: var(--brand); }

/* -------------------------------------------------- cta band ------------ */
.cta-band { background: var(--ink); color: #fff; padding: clamp(46px, 7vw, 90px) var(--pad); text-align: center;
  display: grid; justify-items: center; gap: 6px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 48px); max-width: 20ch; }

/* -------------------------------------------------- shop filters -------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 22px var(--pad); border-bottom: 1px solid var(--line);
  position: sticky; top: 60px; background: rgba(241,243,240,.92); backdrop-filter: blur(10px); z-index: 40; }
.chip { border: 1px solid var(--line); padding: 8px 15px; font-size: 13px; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__right { margin-left: auto; display: flex; gap: 9px; }
.search-box { display: flex; border: 1px solid var(--line); background: #fff; }
.search-box input { border: 0; background: transparent; padding: 8px 12px; width: 150px; font: inherit; font-size: 13px; outline: none; }
.search-box button { border: 0; background: var(--ink); color: var(--paper); padding: 0 13px; display: grid; place-items: center; }
select.sort { border: 1px solid var(--line); background: #fff; padding: 8px 12px; font: inherit; font-size: 13px; }

.pager { display: flex; gap: 8px; justify-content: center; padding: 46px 0 0; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.pager .is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.empty-state { text-align: center; padding: 80px 0; color: var(--steel); }

/* -------------------------------------------------- product page -------- */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 64px); padding: clamp(20px, 3vw, 44px) var(--pad) clamp(46px, 6vw, 84px); }
.gallery__main { position: relative; background: var(--paper-2); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; animation: fadeUp .5s var(--ease) both; }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255,255,255,.9); font-size: 18px; line-height: 1; }
.gallery__thumbs { display: flex; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { position: relative; width: 74px; height: 74px; padding: 0; border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.gallery__thumbs button.is-on { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb--video .tile__play { width: 30px; height: 30px; border-width: 1px; }
.thumb--video .tile__play::after { border-left-width: 9px; border-top-width: 5px; border-bottom-width: 5px; }

.pdp__crumbs { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 0 0 14px; }
.pdp h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.pdp__lede { color: var(--ink-soft); }
.pdp__buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 28px; }
.qty { display: flex; border: 1px solid var(--ink); }
.qty button { width: 40px; background: transparent; border: 0; font-size: 17px; }
.qty input { width: 46px; border: 0; text-align: center; font: inherit; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec-table th { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); width: 44%; }
.pdp__desc { margin-top: 26px; white-space: pre-line; color: var(--ink-soft); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.stock i { width: 7px; height: 7px; background: #2E7D52; border-radius: 50%; display: block; }
.stock--made i { background: #B98A20; }
.stock--out i { background: #A93B2B; }

/* -------------------------------------------------- about --------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.about-copy { white-space: pre-line; font-size: 17px; color: var(--ink-soft); margin: 0; }
.values { display: grid; gap: 22px; }
.value { display: flex; align-items: center; gap: 14px; }
.value h3 { font-size: 17px; margin: 0; }
.value svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 1.2; flex: none; }

/* -------------------------------------------------- drawer -------------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(14,19,23,.45); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease-morph); z-index: 2; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__top h3 { font-size: 18px; }
.drawer__top button { background: none; border: 0; font-size: 26px; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer__empty { color: var(--steel); font-size: 14px; padding: 28px 0; }
.d-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.d-item img { width: 62px; height: 62px; object-fit: cover; background: var(--paper-2); }
.d-item__name { font-size: 14px; font-weight: 500; }
.d-item__meta { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--steel); margin-top: 3px; }
.d-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.d-item__qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: none; line-height: 1; }
.d-item__rm { background: none; border: 0; color: var(--steel); font-size: 12px; text-decoration: underline; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.drawer__total strong { font-size: 19px; }
.drawer__note { font-size: 11px; color: var(--steel); margin: 12px 0 0; line-height: 1.5; }

/* -------------------------------------------------- lightbox ------------ */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8,12,16,.94); display: none; place-items: center; }
.lightbox.is-open { display: grid; }
.lightbox__stage { max-width: min(1200px, 92vw); max-height: 86vh; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video { max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto; }
.lightbox__stage iframe { width: min(1100px, 92vw); aspect-ratio: 16/9; height: auto; border: 0; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 44px; padding: 10px 18px; opacity: .7; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }

/* -------------------------------------------------- forms --------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea, .field select { border: 1px solid var(--line); background: #fff; padding: 13px 14px; font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,155,216,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.field small { color: var(--steel); font-size: 12px; }

.notice { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brand); background: #fff; font-size: 14px; margin-bottom: 20px; }
.notice--ok { border-left-color: #2E7D52; }
.notice--bad { border-left-color: #A93B2B; }

.request-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(26px, 5vw, 60px); padding: clamp(26px, 4vw, 50px) var(--pad) 84px; align-items: start; }
.summary { border: 1px solid var(--line); background: #fff; padding: 22px; position: sticky; top: 90px; }
.summary h3 { font-size: 18px; margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary__total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); font-family: "IBM Plex Mono", monospace; }
.summary__total strong { font-size: 19px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 60px); }
.contact-card { border: 1px solid var(--line); padding: 24px; background: #fff; display: block; transition: transform .4s var(--ease-morph), border-color .3s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--steel); font-size: 14px; }
.contact-list { display: grid; gap: 12px; align-content: start; }

/* -------------------------------------------------- footer -------------- */
.site-foot { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 72px) var(--pad) 24px; background: var(--paper-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.foot-brand img { width: 96px; height: auto; }
.foot-tag { font-family: Syne, sans-serif; font-size: 18px; font-weight: 600; max-width: 22ch; margin: 14px 0 0; letter-spacing: -.01em; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); font-weight: 400; margin: 0 0 4px; }
.foot-col a { font-size: 14px; width: fit-content; border-bottom: 1px solid transparent; }
.foot-col a:hover { border-color: var(--ink); }
.foot-address { font-size: 13px; color: var(--steel); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--steel); flex-wrap: wrap; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; background: #1FA855; z-index: 80;
  display: grid; place-items: center; border-radius: 50%; box-shadow: 0 10px 26px rgba(14,19,23,.25); transition: transform .4s var(--ease-morph); }
.wa-float:hover { transform: scale(1.09) rotate(6deg); }
.wa-float svg { width: 26px; fill: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 130%); background: var(--ink); color: var(--paper);
  padding: 13px 22px; font-size: 14px; z-index: 300; transition: transform .5s var(--ease-morph); }
.toast.is-on { transform: translate(-50%, 0); }

/* -------------------------------------------------- reveal -------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease-morph); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease-morph); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------- responsive ---------- */
@media (max-width: 1000px) {
  .pdp, .request-wrap, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row .feature:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 3 200px; }
  .cuts { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cuts .gem-dots { justify-content: center; }
  .gem-stage { width: min(64vw, 300px); }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .site-nav { position: fixed; inset: 60px 0 auto 0; background: var(--paper); color: var(--ink); flex-direction: column; gap: 0;
    padding: 8px var(--pad) 22px; border-bottom: 1px solid var(--line); transform: translateY(-130%);
    transition: transform .45s var(--ease-morph); z-index: 60; }
  body.menu-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .req-btn span { display: none; }
  .req-btn { padding: 10px 12px; }
  .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .feature:first-child { aspect-ratio: 4 / 3; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .prod-card__add { position: static; transform: none; opacity: 1; margin-top: 8px; background: transparent; border: 1px solid var(--ink); }
  .filters { top: 56px; }
  .lightbox__nav { font-size: 32px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .cursor { display: none !important; }
}

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

/* -------------------------------------------------- transparent header on the homepage */
body.home .site-head { color: #fff; }
body.home .site-head .wa-link { border-color: rgba(255,255,255,.45); }
body.home .site-head .req-btn { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff; }
body.home .site-head .req-btn:hover { background: var(--brand); }
body.home .site-head .req-count { background: #fff; color: var(--ink); }
body.home .site-head.is-stuck { color: var(--ink); }
body.home .site-head.is-stuck .wa-link { border-color: var(--line); }
body.home .site-head.is-stuck .req-btn { background: var(--ink); color: var(--paper); }
body.home .site-head.is-stuck .req-count { background: var(--paper); color: var(--ink); }
@media (max-width: 720px) {
  body.home .site-nav { color: var(--ink); }
}

/* -------------------------------------------------- logo variants ------- */
.brand__mark--light { display: none; }
body.home .site-head:not(.is-stuck) .brand__mark--dark { display: none; }
body.home .site-head:not(.is-stuck) .brand__mark--light { display: block; }
