/* ============================================================
   BIOCODE — Decode. Optimize. Perform.
   Neutral palette + precision-instrument feel.
   ============================================================ */

:root {
  /* Neutrals */
  --ink:        #0b0b0e;   /* deep onyx — primary bg */
  --ink-2:      #111116;   /* surface */
  --ink-3:      #17171d;   /* card */
  --line:       #26262e;   /* hairline */
  --line-soft:  #1c1c23;
  --bone:       #ece6d8;   /* warm cream — primary text on dark */
  --bone-soft:  #c8c2b4;
  --muted:      #7a7a83;

  /* Accents — restrained, biotech */
  --bronze:     #c9a36a;   /* warm metallic */
  --mint:       #9ae6cf;   /* scan / decoded */
  --signal:     #e8e0cf;   /* highlight on dark */

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad:  clamp(20px, 4vw, 56px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,163,106,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(154,230,207,0.05), transparent 60%),
    var(--ink);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.dim  { color: var(--muted); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(11,11,14,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
}
.nav__logoimg {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(201,163,106,0.18));
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--bone-soft);
}
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--bone); }
.nav__cta {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  background: linear-gradient(180deg, rgba(201,163,106,0.10), rgba(201,163,106,0.02));
  transition: border-color .2s ease, background .2s ease;
}
.nav__cta:hover { border-color: var(--bronze); }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) var(--pad) clamp(60px, 8vw, 110px);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
}

/* The animated particle network canvas sits behind everything */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
/* A soft vignette to keep text legible against the animated bg */
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 50% 50%, transparent 0%, rgba(11,11,14,0.35) 60%, rgba(11,11,14,0.85) 100%),
    linear-gradient(180deg, rgba(11,11,14,0.0) 60%, rgba(11,11,14,0.85) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 520px;
  justify-self: center;
}
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero__left { justify-content: center; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17,17,22,0.6);
  margin: 0;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ---- BRANDMARK (anatomical silhouette backdrop + cut-out logo + scan) ---- */
.brandmark {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  /* Reserve extra vertical room so the silhouette can extend above & below the logo */
  padding: 18% 0;
  isolation: isolate;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  animation: brandIn 1.4s cubic-bezier(.2,.7,.2,1) .15s forwards;
}
@keyframes brandIn {
  0%   { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Focal backing: dims the helix directly behind the wordmark so the logo reads cleanly */
.brandmark::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 52%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center,
      rgba(11,11,14,0.92) 0%,
      rgba(11,11,14,0.62) 42%,
      rgba(11,11,14,0.0) 74%);
  z-index: 2;
  pointer-events: none;
}

/* DNA stem backdrop: a live 3D double-helix rendered on canvas, behind the logo */
.brandmark__figure {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 172%;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
  filter: drop-shadow(0 0 30px rgba(201,163,106,0.16));
}
.brandmark__helix {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero-wide scan band — sweeps vertically over the entire first section */
.hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  z-index: 3; /* above the hero content, below the sticky nav */
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(154,230,207,0.0)  40%,
    rgba(154,230,207,0.16) 48%,
    rgba(206,247,234,0.55) 50%,
    rgba(154,230,207,0.16) 52%,
    rgba(154,230,207,0.0)  60%,
    transparent 100%
  );
  /* Soft horizontal falloff so the band reads as light, not a hard bar */
  -webkit-mask-image: radial-gradient(ellipse 82% 100% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 82% 100% at 50% 50%, #000 58%, transparent 100%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 14px rgba(154,230,207,0.4));
  animation: heroScan 7s cubic-bezier(.5,.0,.5,1) infinite;
}
@keyframes heroScan {
  0%   { transform: translateY(-160px); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* The logo sits on top of the silhouette */
.brandmark__img {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 24px rgba(201,163,106,0.40))
    drop-shadow(0 0 6px rgba(0,0,0,0.6))
    drop-shadow(0 22px 70px rgba(0,0,0,0.7));
}

/* ---- WORDMARK (legacy, retained for fallback only) ----------- */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 13.5vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 8px);
  text-transform: uppercase;
}
.wordmark__char {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: charIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.wordmark__char:nth-child(1) { animation-delay: .05s; }
.wordmark__char:nth-child(2) { animation-delay: .12s; }
.wordmark__char:nth-child(4) { animation-delay: .28s; }
.wordmark__char:nth-child(6) { animation-delay: .42s; }
.wordmark__char:nth-child(7) { animation-delay: .50s; }

/* Scramble pseudo-effect on hover */
.wordmark__char::before {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  color: var(--bronze);
  opacity: 0;
  transform: translate(2px, -1px);
  mix-blend-mode: screen;
  transition: opacity .25s ease;
}
.wordmark:hover .wordmark__char::before { opacity: 0.5; }

@keyframes charIn {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* The fingerprint Os inside the wordmark */
.wordmark__o {
  display: inline-block;
  position: relative;
  width: clamp(60px, 12.4vw, 188px);
  height: clamp(60px, 12.4vw, 188px);
  margin: 0 clamp(1px, 0.3vw, 4px);
  color: var(--bone);
  opacity: 0;
  transform: scale(.75) rotate(-6deg);
  animation: oIn 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.wordmark__o--first  { animation-delay: .22s; }
.wordmark__o--second { animation-delay: .36s; color: var(--bronze); }

@keyframes oIn {
  0%   { opacity: 0; transform: scale(.6) rotate(-10deg); filter: blur(8px); }
  70%  { opacity: 1; transform: scale(1.03) rotate(0); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.o-svg { width: 100%; height: 100%; overflow: visible; }
.o-svg--echo { filter: drop-shadow(0 0 18px rgba(201,163,106,0.35)); }

/* Scanning line + ridge breathing inside the fingerprint O */
.scan-line {
  transform-origin: center;
  animation: scan 4.4s linear infinite;
}
@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(200px); opacity: 0; }
}

.fp-ridges {
  animation: ridgeBreathe 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ridgeBreathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

.decode-bits text {
  animation: decodeBlink 3s steps(2, end) infinite;
}
.decode-bits text:nth-child(2) { animation-delay: .4s; }
.decode-bits text:nth-child(3) { animation-delay: .8s; }
.decode-bits text:nth-child(4) { animation-delay: 1.2s; }
.decode-bits text:nth-child(5) { animation-delay: 1.6s; }
.decode-bits text:nth-child(6) { animation-delay: 2.0s; }

@keyframes decodeBlink {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.9; }
}

/* ---- SLOGAN ------------------------------------------------- */
.slogan {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.8vw, 22px);
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 6px 0 32px;
  color: var(--bone);
}
.slogan__word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}
.slogan__word em {
  font-style: normal;
  color: var(--bronze);
  margin-left: 2px;
}
.slogan__word::after {
  content: '';
  position: absolute;
  left: 0; right: 18px; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
  transform-origin: left;
  transform: scaleX(0);
  animation: underline 4s ease-in-out infinite;
}
.slogan__word:nth-child(2)::after { animation-delay: .4s; }
.slogan__word:nth-child(3)::after { animation-delay: .8s; }
@keyframes underline {
  0%, 100% { transform: scaleX(0); }
  20%, 70% { transform: scaleX(1); }
}

.lede {
  max-width: 460px;
  color: var(--bone-soft);
  font-size: clamp(15px, 1.15vw, 17px);
  margin: 0;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn--primary:hover { background: var(--bronze); border-color: var(--bronze); color: var(--ink); }
.btn--ghost:hover { border-color: var(--bone-soft); }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 480px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.metric { align-items: center; }
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric__num {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  color: var(--bone);
}
.metric__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) {
  .hero__metrics { grid-template-columns: 1fr; }
}

/* Ticker at hero bottom */
.hero__ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(17,17,22,0.55);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 48px;
  padding: 14px 0;
  white-space: nowrap;
  animation: tick 40s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bone-soft);
}
.ticker__track span { opacity: 0.7; }
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section__head { margin-bottom: 56px; }
.section__title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin: 16px 0 0;
  color: var(--bone);
  max-width: 18ch;
}
.section__sub {
  margin-top: 14px;
  color: var(--bone-soft);
  font-size: 17px;
  max-width: 56ch;
}

/* ============================================================
   VISION
   ============================================================ */
.vision {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.vision__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.vision__copy p {
  font-size: 17px;
  color: var(--bone-soft);
  margin: 0 0 18px;
  max-width: 56ch;
}
.vision__pull {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--bone) !important;
  padding: 22px 24px;
  border-left: 2px solid var(--bronze);
  background: linear-gradient(180deg, rgba(201,163,106,0.06), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Consultations highlight block */
.vision__consult {
  margin-top: 6px;
  padding: 24px 26px;
  border-left: 2px solid var(--bronze);
  background: linear-gradient(180deg, rgba(201,163,106,0.06), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  scroll-margin-top: 110px;
}
.vision__consult p {
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.42;
  color: var(--bone) !important;
  margin: 0 0 22px;
  max-width: none;
}
.vision__consult-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.vision__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, rgba(23,23,29,0.6), rgba(17,17,22,0.4));
  transition: border-color .25s ease, transform .25s ease;
}
.pillar:hover { border-color: var(--bronze); transform: translateY(-2px); }
.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bronze);
  letter-spacing: 0.16em;
}
.pillar h3 { margin: 8px 0 6px; font-size: 18px; color: var(--bone); }
.pillar p  { margin: 0; color: var(--bone-soft); font-size: 14px; line-height: 1.55; }

@media (max-width: 880px) {
  .vision__grid { grid-template-columns: 1fr; }
  .vision__pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .vision__pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products__grid { grid-template-columns: 1fr; } }

.product {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23,23,29,0.7), rgba(17,17,22,0.4));
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s ease, transform .3s ease;
}
.product::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(140deg, rgba(201,163,106,0.0), rgba(201,163,106,0.45) 50%, rgba(201,163,106,0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}
.product:hover { transform: translateY(-3px); border-color: transparent; }
.product:hover::before { opacity: 1; }
.product__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.product__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bronze);
  letter-spacing: 0.14em;
}
.product__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone-soft);
}
.product h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--bone);
}
.product p {
  color: var(--bone-soft);
  font-size: 14.5px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.product__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product__chips li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone-soft);
  background: rgba(17,17,22,0.6);
}

/* ============================================================
   DECODING STRIP
   ============================================================ */
.decoder {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(800px 200px at 50% 0%, rgba(154,230,207,0.06), transparent 70%),
    rgba(13,13,16,0.6);
  overflow: hidden;
}
.decoder__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.decoder__stream {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bone-soft);
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 4.5em;
  max-height: 4.5em;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.decoder__stream::after {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 6px; height: 1.1em;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.decoder__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.founder__portrait {
  position: sticky;
  top: 100px;
}
.founder__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
  color: var(--bone);
  isolation: isolate;
}
.founder__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: contrast(1.02) saturate(0.95);
}
.founder__scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(154,230,207,0.08) 30%,
    rgba(154,230,207,0.35) 50%,
    rgba(154,230,207,0.08) 70%,
    transparent 100%);
  box-shadow: 0 0 40px rgba(154,230,207,0.3);
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: founderScan 5s cubic-bezier(.55,.0,.45,1) infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes founderScan {
  0%   { transform: translateY(-120%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(680%); opacity: 0; }
}
.founder__grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154,230,207,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,230,207,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: screen;
  opacity: 0.55;
  z-index: 3;
}
.founder__corners {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 4;
}
.founder__corners span {
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--bronze);
}
.founder__corners span:nth-child(1) { top: 0;   left: 0;   border-right: 0; border-bottom: 0; }
.founder__corners span:nth-child(2) { top: 0;   right: 0;  border-left: 0;  border-bottom: 0; }
.founder__corners span:nth-child(3) { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.founder__corners span:nth-child(4) { bottom: 0; right: 0; border-left: 0;  border-top: 0; }
.founder__meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder__copy p {
  font-size: 17px;
  color: var(--bone-soft);
  margin: 0 0 18px;
  max-width: 56ch;
}
.founder__copy blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--bone);
  border-left: 2px solid var(--mint);
  background: linear-gradient(180deg, rgba(154,230,207,0.05), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.founder__signoff { color: var(--bronze) !important; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }

@media (max-width: 880px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__portrait { position: static; max-width: 320px; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  background:
    radial-gradient(700px 360px at 50% 110%, rgba(201,163,106,0.18), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  text-align: center;
}
.cta__inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.cta__title {
  font-size: clamp(34px, 5.4vw, 64px);
  margin: 0 0 18px;
  line-height: 1.05;
  color: var(--bone);
}
.cta__strike {
  position: relative;
  color: var(--muted);
}
.cta__strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; top: 55%;
  height: 2px;
  background: var(--bronze);
  transform: rotate(-3deg);
}
.cta__highlight {
  color: var(--bronze);
  font-style: italic;
}
.cta__sub {
  color: var(--bone-soft);
  font-size: 17px;
  margin: 0 0 36px;
}
.cta__form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 16px;
  background: rgba(11,11,14,0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}
.cta__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--bone);
  padding: 12px 18px;
  font-family: var(--body);
  font-size: 15px;
}
.cta__form input::placeholder { color: var(--muted); }
.cta__form button { padding: 12px 20px; }
.cta__fine { display: block; }

@media (max-width: 520px) {
  .cta__form { flex-direction: column; border-radius: var(--radius); }
  .cta__form input { padding: 14px 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink);
  padding: 48px var(--pad);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logoimg {
  height: 68px;
  width: auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(201,163,106,0.12));
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--bone-soft); }
.footer__cols a { transition: color .2s ease; }
.footer__cols a:hover { color: var(--bone); }
.footer__fine {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   STORE (products.html)
   ============================================================ */
.store-hero {
  position: relative;
  padding: clamp(110px, 14vw, 170px) var(--pad) clamp(40px, 6vw, 70px);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.store-hero__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  margin: 14px auto 0;
  color: var(--bone);
  max-width: 14ch;
}
.store-hero__sub {
  margin: 18px auto 0;
  color: var(--bone-soft);
  font-size: 17px;
  max-width: 52ch;
}

/* Sticky category pill nav */
.store__cats {
  position: sticky;
  top: 78px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px var(--pad);
  background: rgba(11,11,14,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.store__cats a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.store__cats a:hover { border-color: var(--bronze); color: var(--bone); }

.catsec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) var(--pad) 0;
  scroll-margin-top: 150px;
}
.catsec:last-of-type { padding-bottom: clamp(60px, 9vw, 120px); }
.catsec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.catsec__head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 6px 0 0;
  color: var(--bone);
}
.catsec__head p { margin: 6px 0 0; color: var(--bone-soft); font-size: 14.5px; max-width: 46ch; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .shop-grid { grid-template-columns: 1fr; } }

.shopcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,23,29,0.7), rgba(17,17,22,0.4));
  transition: border-color .25s ease, transform .25s ease;
}
.shopcard:hover { border-color: var(--bronze); transform: translateY(-3px); }
.shopcard__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bronze);
}
.shopcard h3 { font-size: 20px; margin: 12px 0 8px; color: var(--bone); }
.shopcard p { margin: 0 0 20px; color: var(--bone-soft); font-size: 14px; line-height: 1.55; flex: 1; }
.shopcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.shopcard__price { display: flex; flex-direction: column; gap: 1px; }
.shopcard__price .from { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.shopcard__price .amt  { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--bone); }
.shopcard__add {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 999px;
}

/* Cart badge in the nav */
.nav__cart { position: relative; }
.nav__cart .count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bronze);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  transform: scale(0);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.nav__cart.has-items .count { transform: scale(1); }

/* "Reviewed against your panel" reassurance strip */
.store-note {
  max-width: var(--maxw);
  margin: clamp(48px, 7vw, 90px) auto 0;
  padding: 0 var(--pad);
}
.store-note__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--mint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(154,230,207,0.05), transparent);
  color: var(--bone-soft);
  font-size: 15px;
}
.store-note__inner .mono { color: var(--mint); white-space: nowrap; }

/* ---- Cart drawer ---- */
.cart-drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,9,0.62);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}
.cart-drawer.open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.cart-drawer.open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-drawer__close {
  background: none;
  border: 0;
  color: var(--bone-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color .2s ease;
}
.cart-drawer__close:hover { color: var(--bone); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 4px 24px; }
.cart-drawer__empty {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
}
.cart-drawer__empty p { margin: 0; color: var(--bone-soft); }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item__name { font-family: var(--display); font-weight: 500; font-size: 14.5px; color: var(--bone); }
.cart-item__unit { font-size: 10px; letter-spacing: 0.06em; }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.cart-item__qty button {
  width: 26px; height: 26px;
  background: none;
  border: 0;
  color: var(--bone-soft);
  font-size: 15px;
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.cart-item__qty button:hover { color: var(--bone); background: rgba(255,255,255,0.05); }
.cart-item__qty span { min-width: 20px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--bone); }
.cart-item__line { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--bone); white-space: nowrap; }
.cart-item__remove {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color .2s ease;
}
.cart-item__remove:hover { color: var(--bronze); }

.cart-drawer__foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line-soft);
  background: rgba(11,11,14,0.4);
}
.cart-drawer__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cart-drawer__subtotal .amt { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--bone); }
.cart-drawer__note { display: block; margin: 0 0 16px; line-height: 1.5; }
.cart-drawer__checkout { width: 100%; justify-content: center; }
.cart-drawer__checkout[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ============================================================
   MOTION RESPECT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
