/* ============================================================
   nooiiir — shared design system CSS
   The Blueprint Studio: one continuous dark canvas, one accent,
   a blueprint grid, no shadows. Shared by index.html and every
   /products/*.html page so new drops inherit it automatically.
   ============================================================ */

:root{
  --accent:#E8702A;
  --bg:#161616;
  --surface:#333333;
  --text:#F2F0EC;
  --text-muted:#8C8C8C;
  --line: rgba(242,240,236,0.08);
  --tag-ink:#1a1006;
  --bottom-bar-height: 68px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Space Grotesk', sans-serif;
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
  padding-bottom: calc(var(--bottom-bar-height) + 8px);
}

/* ---------- continuous blueprint grid: one layer, whole document ---------- */
.page{
  position:relative;
  z-index:1;
}
.page-grid{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 420px, black calc(100% - 320px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, black 420px, black calc(100% - 320px), transparent 100%);
}
/* subtle depth vignette, independent of document length */
.page-vignette{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background: radial-gradient(ellipse at center, transparent 45%, var(--bg) 94%);
}

/* ---------- registration marks (blueprint crosshairs) ---------- */
.reg-mark{
  position:relative;
  width:22px;
  height:22px;
  opacity:0.5;
  flex-shrink:0;
}
.reg-mark::before, .reg-mark::after{
  content:'';
  position:absolute;
  background:var(--text-muted);
}
.reg-mark::before{ width:100%; height:1px; top:50%; left:0; }
.reg-mark::after{ width:1px; height:100%; left:50%; top:0; }

/* ---------- the mark: bar + dot, the brand's recurring signature ---------- */
.mark{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  position:relative;
  z-index:2;
}
.mark .bar{
  width: 84px;
  height: 15px;
  border-radius: 999px;
  background:var(--accent);
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.mark .dot{
  width: 19px;
  height: 19px;
  border-radius:50%;
  background:var(--accent);
  animation: pulse 3.2s ease-in-out infinite;
  transition: transform 0.4s ease;
}
.mark.small{ gap:6px; }
.mark.small .bar{ width:22px; height:5px; }
.mark.small .dot{ width:6.5px; height:6.5px; animation-duration: 3.2s; }
.mark.muted{ opacity:0.5; }

@keyframes pulse{
  0%, 100%{ opacity:1; }
  50%{ opacity:0.45; }
}
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ---------- eyebrow / label typography ---------- */
.eyebrow{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:3px;
  color:var(--text-muted);
  text-transform:uppercase;
  text-align:center;
}
.coords{
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--text-muted);
  opacity:0.6;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 100px 24px 80px;
  gap: 44px;
}
.hero .eyebrow{
  opacity:0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.mark-btn{
  background:none;
  border:none;
  padding:16px 40px;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  opacity:0;
  animation: fadeUp 0.8s ease forwards 0.3s;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.mark-btn:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:6px;
  border-radius:8px;
}
.mark-btn .mark .bar{ transition: transform 0.4s ease, opacity 0.3s ease; }
.mark-btn:hover .bar{ transform: scaleX(1.08); }
.mark-btn:hover .dot{ transform: scale(1.15); }
.mark-hint{
  display:block;
  margin-top:16px;
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  letter-spacing:2px;
  color:var(--text-muted);
  text-transform:uppercase;
  transition: color 0.2s ease;
}
.mark-btn:hover .mark-hint,
.mark-btn:focus-visible .mark-hint{
  color:var(--accent);
}

.stay-in-touch{
  opacity:0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}
.stay-in-touch p{
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--text-muted);
  text-transform:uppercase;
  margin-bottom:10px;
  opacity:0.7;
}
.stay-in-touch form{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
/* the input's own hairline is functional; a second line draws itself in
   Signal Orange once, after the fadeUp sequence settles — a quiet nod to
   a drafting pen tracing a line, and to the founder signing this by hand */
.email-field{
  position:relative;
}
.email-field::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:1px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  animation: drawLine 0.9s cubic-bezier(.61,0,.4,1) forwards 1.3s;
  pointer-events:none;
}
@keyframes drawLine{ to{ transform:scaleX(1); } }
.stay-in-touch input[type="email"]{
  background:transparent;
  border:none;
  border-bottom:1px solid var(--line);
  padding:6px 2px;
  color:var(--text-muted);
  font-family:'Space Grotesk', sans-serif;
  font-size:12.5px;
  outline:none;
  width:180px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.stay-in-touch input[type="email"]::placeholder{ color:var(--text-muted); opacity:0.6; }
.stay-in-touch input[type="email"]:focus{ border-color:var(--accent); color:var(--text); }
.stay-in-touch button{
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  letter-spacing:1px;
  text-transform:uppercase;
  background:none;
  border:none;
  color:var(--text-muted);
  cursor:pointer;
  padding:6px 4px;
  border-bottom:1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.stay-in-touch button:hover{ color:var(--accent); border-color:var(--accent); }
.stay-in-touch .form-note{
  margin-top:8px;
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  color:var(--text-muted);
  min-height:14px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   SHOP
   ============================================================ */
.shop{
  position:relative;
  z-index:1;
  padding-top: 20px;
}

.video-banner{
  position:relative;
  width:100%;
  aspect-ratio: 21/9;
  max-height: 42vh; /* full-bleed width otherwise stretches this well past 600px tall
                        on wide desktop screens — capping height keeps the cinematic
                        21:9 strip actually reading as thin; the future video crops in
                        via object-fit: cover, same as it already does */
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.video-banner video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.video-banner .placeholder-mark{ opacity:0.5; }
.video-banner .placeholder-note{
  position:absolute;
  bottom:14px;
  left:16px;
  font-family:'Chivo Mono', monospace;
  font-size:9.5px;
  letter-spacing:1px;
  color:rgba(242,240,236,0.35);
  text-transform:uppercase;
}

/* ---- category switcher: instant client-side filter, no navigation ---- */
.category-tabs{
  display:flex;
  gap:32px;
  justify-content:center;
  flex-wrap:wrap;
  padding: 56px 24px 0;
}
.category-tab{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text-muted);
  background:none;
  border:none;
  cursor:pointer;
  padding-bottom:8px;
  border-bottom:1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.category-tab:hover{ color:var(--text); }
.category-tab.active{ color:var(--accent); border-bottom-color:var(--accent); }

.category-panel{ padding-top: 24px; }

.empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  padding:110px 24px 130px;
  text-align:center;
}
.empty-state p{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text-muted);
}

/* product grid */
.products{
  max-width:none;
  margin: 0;
  padding: 40px 28px 100px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 260px));
  justify-content:center;
  gap: 28px;
}
.card{
  background: none;
  border:none;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
}
.card-visual{
  aspect-ratio: 4/5;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background: rgba(255,255,255,0.015);
}
.card-visual svg{ width:52%; opacity:0.85; transition: opacity 0.2s ease; }
.card-visual svg path{ stroke: var(--text-muted); }
.card:hover .card-visual svg{ opacity:1; }
.card:hover .card-visual svg path{ stroke: var(--text); }
.card-tag{
  position:absolute;
  top:14px;
  left:14px;
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  background:var(--accent);
  color:var(--tag-ink);
  padding:5px 10px;
  border-radius:2px;
}
.card-info{ padding:16px 4px 0; }
.card-info h3{
  font-family:'Rajdhani', sans-serif;
  font-weight:500;
  font-size:20px;
  letter-spacing:1px;
  color:var(--text);
  margin-bottom:4px;
}
.card-serial{
  font-family:'Chivo Mono', monospace;
  font-size:12px;
  letter-spacing:2px;
  color:var(--accent);
  margin-bottom:12px;
}
.card-info p{
  font-size:12.5px;
  color:var(--text-muted);
  line-height:1.6;
  margin-bottom:12px;
}
.card-status{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1px;
  color:var(--text-muted);
}

/* page-end footer: coordinates bookended by registration marks */
.site-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding: 56px 24px 64px;
}

@media (max-width:640px){
  .category-tabs{ gap:20px; padding-top:40px; }
}
@media (max-width:480px){
  .mark-btn{ padding:12px 28px; }
}

/* ============================================================
   BOTTOM NAV BAR — fixed, always visible while scrolling
   ============================================================ */
.bottom-bar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:20;
  height: var(--bottom-bar-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 24px;
  background:rgba(22,22,22,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top:1px solid var(--line);
}
.bottom-group{
  display:flex;
  align-items:center;
  gap:20px;
  flex:1;
}
.bottom-group.right{ justify-content:flex-end; }
.bottom-link{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text);
  text-decoration:none;
  background:none;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  border-bottom:1px solid transparent;
  padding-bottom:2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bottom-link:hover{ border-bottom-color:var(--accent); color:var(--accent); }
.bottom-mark-btn{
  background:none;
  border:none;
  cursor:pointer;
  padding:10px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-mark-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; border-radius:8px; }

@media (max-width:640px){
  .bottom-bar{ padding:0 14px; gap:8px; }
  .bottom-group{ gap:12px; }
  /* only hide a text label when the link also carries an icon fallback —
     an icon-less link (Archive) must keep its text or it vanishes entirely */
  .bottom-link.has-icon .label{ display:none; }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-page{
  max-width:1100px;
  margin:0 auto;
  padding:56px 28px 100px;
  position:relative;
  z-index:1;
}
.product-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text-muted);
  text-decoration:none;
  margin-bottom:56px;
  border-bottom:1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.product-back:hover{ color:var(--accent); border-bottom-color:var(--accent); }
.product-layout{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:56px;
  align-items:start;
}
.product-visual{
  aspect-ratio:4/5;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background: rgba(255,255,255,0.02);
}
.product-visual svg{ width:56%; opacity:0.85; }
.product-visual svg path{ stroke:var(--text-muted); }
.product-tag{
  position:absolute;
  top:16px;
  left:16px;
  font-family:'Chivo Mono', monospace;
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  background:var(--accent);
  color:var(--tag-ink);
  padding:5px 10px;
  border-radius:2px;
}
.product-eyebrow{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:2px;
  color:var(--accent);
  text-transform:uppercase;
  margin-bottom:16px;
}
.product-info h1{
  font-family:'Rajdhani', sans-serif;
  font-weight:500;
  font-size:clamp(32px, 4vw, 48px);
  letter-spacing:1px;
  margin-bottom:6px;
}
.product-serial{
  font-family:'Chivo Mono', monospace;
  font-size:13px;
  letter-spacing:2px;
  color:var(--text-muted);
  margin-bottom:28px;
}
.product-price{
  font-family:'Space Grotesk', sans-serif;
  font-size:17px;
  color:var(--text);
  margin-bottom:24px;
}
.product-description{
  font-size:14px;
  line-height:1.8;
  color:var(--text-muted);
  max-width:46ch;
  margin-bottom:32px;
}
/* ---- primary CTA: the one filled, chromatic button in the system ---- */
.button-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  background:var(--accent);
  color:var(--tag-ink);
  border:none;
  border-radius:0;
  padding:16px 32px;
  cursor:pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom:28px;
}
.button-primary:hover{ transform:translateY(-2px); }
.button-primary:active{ transform:translateY(0); }
.button-primary.is-added{ opacity:0.7; }

.product-status{
  display:block;
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--text-muted);
  border-top:1px solid var(--line);
  padding-top:20px;
}
@media (max-width:800px){
  .product-layout{ grid-template-columns:1fr; }
  .product-back{ margin-bottom:36px; }
}

/* ============================================================
   CART DRAWER — a real, functional cart (no checkout yet, and it says so)
   ============================================================ */
.cart-backdrop{
  position:fixed;
  inset:0;
  z-index:30;
  background:rgba(10,10,10,0.5);
  opacity:0;
  pointer-events:none;
  transition: opacity 0.3s ease;
}
.cart-backdrop.open{
  opacity:1;
  pointer-events:auto;
}
.cart-drawer{
  position:fixed;
  top:0; right:0; bottom:0;
  z-index:31;
  width:min(380px, 100vw);
  background:var(--bg);
  border-left:1px solid var(--line);
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition: transform 0.4s cubic-bezier(.61,0,.4,1);
}
.cart-drawer.open{ transform:translateX(0); }
.cart-drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 24px 20px;
  border-bottom:1px solid var(--line);
}
.cart-drawer-header .eyebrow{ text-align:left; margin:0; }
.cart-close{
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  padding:4px;
  transition: color 0.2s ease;
}
.cart-close:hover{ color:var(--accent); }
.cart-drawer-body{
  flex:1;
  overflow-y:auto;
  padding:8px 24px;
}
.cart-empty{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:60px 0;
  text-align:center;
}
.cart-empty p{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text-muted);
}
.cart-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.cart-item-info h4{
  font-family:'Rajdhani', sans-serif;
  font-weight:500;
  font-size:18px;
  letter-spacing:0.5px;
  color:var(--text);
  margin-bottom:4px;
}
.cart-item-serial{
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  color:var(--accent);
  margin-bottom:6px;
}
.cart-item-price{
  font-size:12.5px;
  color:var(--text-muted);
}
.cart-item-remove{
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:16px;
  line-height:1;
  cursor:pointer;
  padding:4px;
  transition: color 0.2s ease;
}
.cart-item-remove:hover{ color:var(--accent); }
.cart-drawer-footer{
  padding:20px 24px 28px;
  border-top:1px solid var(--line);
}
.cart-checkout{
  width:100%;
  font-family:'Chivo Mono', monospace;
  font-size:11px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  background:none;
  border:1px solid var(--line);
  color:var(--text-muted);
  padding:16px;
  cursor:not-allowed;
}

body.cart-open{ overflow:hidden; }

@media (max-width:480px){
  .cart-drawer{ width:100vw; }
}
