/* =========================================================
   HITTERZ LAB — core stylesheet
   Editorial elegance on charcoal. Cepheus blue + warm taupe.
   Carries Café Bombón's type/motion language, inverted dark.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Nunito:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Dark base (charcoal, brushed-metal like the business card) ---- */
  --ink:        #121417;   /* page background */
  --ink-2:      #181B20;   /* panel / inset */
  --ink-3:      #20242B;   /* raised card */
  --char-hi:    #2C313A;   /* brushed highlight (spotlight center) */
  --char-lo:    #0C0E11;   /* brushed edge */

  /* ---- Light sections (kept for contrast) ---- */
  --cream:      #F1ECE3;
  --cream-soft: #F8F4EC;
  --paper:      #FFFFFF;

  /* ---- Accents ---- */
  --blue:        #1E8FE0;  /* PRIMARY — Cepheus blue */
  --blue-bright: #5BC4F1;  /* cyan highlight */
  --blue-deep:   #1A55C8;  /* royal */
  --blue-royal:  #0E5FC0;
  --taupe:       #B49C86;  /* SECONDARY — warm taupe (from reference) */
  --taupe-soft:  #CBBBA8;

  /* ---- Text ---- */
  --text:        #ECE9E3;  /* body on dark */
  --text-soft:   #A6AAB2;  /* muted on dark */
  --ink-cream:   #16181C;  /* text on cream */
  --soft-cream:  #51545B;  /* muted on cream */

  --line:        rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.22);
  --line-cream:  rgba(20,22,26,.16);

  --shadow-card: 0 22px 48px -20px rgba(0,0,0,.7), 0 4px 14px rgba(0,0,0,.4);
  --shadow-blue: 0 14px 40px -16px rgba(30,143,224,.55);

  --w-content: 1280px;
  --pad-x: clamp(22px, 5vw, 84px);

  --f-script:  'Allura', cursive;
  --f-display: 'Cormorant Garamond', Cormorant, serif;
  --f-body:    'Nunito', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }

/* Brushed-metal texture used on dark heroes/panels */
.brushed {
  background:
    radial-gradient(120% 130% at 50% 18%, var(--char-hi) 0%, #1a1d22 42%, var(--char-lo) 100%);
  position: relative;
}
.brushed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.020) 0 2px, transparent 2px 4px);
  opacity: .6;
}

/* ============ MOTION PRIMITIVES ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14,16,19,.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  padding: 14px var(--pad-x);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img.mark { width: 50px; height: auto; flex: none; filter: drop-shadow(0 2px 8px rgba(30,143,224,.35)); }
.brand img.word { height: 26px; width: auto; }
.nav-links {
  display: flex; gap: clamp(14px, 2.2vw, 34px);
  justify-self: start; margin-left: clamp(10px, 3vw, 44px);
}
.nav-links a {
  font-family: var(--f-mono);
  font-weight: 500; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--text-soft);
  padding: 6px 2px; position: relative;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue-bright); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--blue); transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  line-height: 1.5; color: var(--text-soft); justify-self: end; text-align: right;
}
.nav-meta b { color: var(--text); font-weight: 600; letter-spacing: .14em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--blue); color: #fff !important; text-decoration: none;
  font-family: var(--f-mono); font-weight: 600; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 14px 12px 24px; border-radius: 999px;
  border: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-blue);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(30,143,224,.7); }
.btn .chev {
  width: 28px; height: 28px; background: #fff; color: var(--blue);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; flex: none;
}
.btn-outline {
  background: transparent; color: var(--text) !important;
  border: 1.5px solid var(--line-strong); box-shadow: none;
  padding: 11px 22px;
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--blue); color: #fff !important; transform: translateY(-2px); box-shadow: none; }
.btn-taupe { background: var(--taupe); box-shadow: none; color: #1c1813 !important; }
.btn-taupe:hover { background: var(--taupe-soft); box-shadow: none; }
.btn-taupe .chev { color: var(--taupe); }
.btn.on-cream { color: #fff !important; }
.btn-ghost-cream {
  background: transparent; color: var(--ink-cream) !important;
  border: 1.5px solid var(--line-cream); box-shadow: none; padding: 11px 22px;
}
.btn-ghost-cream:hover { background: rgba(20,22,26,.05); border-color: var(--blue); transform: translateY(-2px); }

/* ============ SECTION SCAFFOLD ============ */
.section { padding: clamp(64px, 9vw, 130px) var(--pad-x); position: relative; }
.section-inner { max-width: var(--w-content); margin: 0 auto; }
.section.on-cream { background: var(--cream); color: var(--ink-cream); }
.section.on-cream .lede, .section.on-cream p { color: var(--soft-cream); }

.eyebrow {
  font-family: var(--f-script);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: .9; color: var(--blue-bright);
  display: inline-block;
}
.on-cream .eyebrow { color: var(--blue); }
.kicker {
  font-family: var(--f-mono); font-weight: 500;
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--taupe);
}
.section-head { margin-bottom: clamp(40px, 5vw, 70px); }
@media (min-width: 820px) {
  .section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
}
h1.display, h2.display, h3.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .015em;
  text-transform: uppercase;
  line-height: .98;
  margin: 8px 0 0;
  color: var(--text);
}
.on-cream h1.display, .on-cream h2.display, .on-cream h3.display { color: var(--ink-cream); }
h2.display { font-size: clamp(44px, 6.4vw, 92px); }
h3.display { font-size: clamp(32px, 4vw, 52px); }
.display .ital { font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--blue-bright); }
.on-cream .display .ital { color: var(--blue); }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: var(--text-soft); max-width: 56ch; }

/* ============ HERO (shared) ============ */
.hero { position: relative; overflow: hidden; min-height: clamp(620px, 92vh, 940px); display: grid; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media image-slot, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(10,12,15,.18), rgba(10,12,15,.72) 78%),
    linear-gradient(180deg, rgba(12,14,17,.55) 0%, rgba(12,14,17,.35) 40%, rgba(12,14,17,.92) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--w-content); width: 100%;
  margin: 0 auto; padding: clamp(80px,10vw,140px) var(--pad-x) clamp(70px,9vw,120px);
  align-self: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero-media image-slot, .hero-media img { animation: none; transform: none; }
}

/* ============ FRAME GALLERY (polaroid → dark scouting frames) ============ */
.frame-strip { background: var(--ink); padding: 0 var(--pad-x) clamp(56px,8vw,96px); }
.frame-strip.pull { margin-top: clamp(-120px, -10vw, -70px); position: relative; z-index: 5; }
.frame-row {
  max-width: var(--w-content); margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.5vw, 20px); align-items: end;
}
.frame {
  background: linear-gradient(180deg, var(--ink-3), #15181d);
  border: 1px solid var(--line);
  padding: 11px 11px 14px; border-radius: 4px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 11px;
  transition: transform .3s cubic-bezier(.16,.8,.3,1), border-color .3s ease;
}
.frame:nth-child(odd)  { transform: rotate(-2.4deg); }
.frame:nth-child(even) { transform: rotate(1.8deg); }
.frame:nth-child(3n)   { transform: rotate(-1deg); margin-bottom: 16px; }
.frame:hover { transform: rotate(0) translateY(-8px); border-color: rgba(91,196,241,.5); }
.frame .pic { aspect-ratio: 1/1; background: #0c0e11; overflow: hidden; position: relative; border-radius: 2px; }
.frame .pic image-slot, .frame .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .cap {
  font-family: var(--f-script); font-size: 27px; line-height: 1;
  text-align: center; color: var(--blue-bright);
  min-height: 40px; padding: 4px 4px 6px;
}

/* ============ STAT BAND ============ */
.stat-band {
  background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-row {
  max-width: var(--w-content); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(44px,5vw,64px) var(--pad-x);
}
.stat { text-align: center; padding: 8px 16px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.stat .num {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(52px, 6vw, 84px); line-height: .9; color: var(--blue-bright);
  letter-spacing: .01em;
}
.stat .num .u { font-family: var(--f-mono); font-size: .28em; color: var(--taupe); vertical-align: super; letter-spacing: 0; }
.stat .lbl {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-soft); margin-top: 12px;
}

/* ============ FEATURE / TECH CARDS ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.feature-card {
  background: linear-gradient(180deg, var(--ink-3), #15181d);
  border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(91,196,241,.45); box-shadow: var(--shadow-card); }
.feature-card .tag {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--blue-bright);
}
.feature-card h4 {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1; margin: 0; color: var(--text);
}
.feature-card p { margin: 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.6; }

/* ============ CTA STRIP ============ */
.cta-strip { position: relative; overflow: hidden; }
.cta-inner {
  max-width: var(--w-content); margin: 0 auto; padding: clamp(64px,8vw,110px) var(--pad-x);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  position: relative; z-index: 2;
}
.cta-inner h2 { color: #fff; }

/* ============ FOOTER ============ */
.foot { background: var(--char-lo); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; margin-top: 0; }
.foot-inner {
  max-width: var(--w-content); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px,4vw,56px);
  padding: clamp(48px,6vw,80px) var(--pad-x) clamp(36px,4vw,56px); align-items: start;
}
.foot-brand img.word { height: 38px; margin-bottom: 16px; }
.foot-brand p { color: var(--text-soft); font-size: 14.5px; max-width: 34ch; margin: 0; }
.foot-brand .tag-script { font-family: var(--f-script); font-size: 32px; color: var(--blue-bright); line-height: 1; margin-top: 14px; }
.foot h5 {
  font-family: var(--f-mono); font-weight: 600; font-size: 11.5px; letter-spacing: .26em;
  text-transform: uppercase; margin: 0 0 16px; color: var(--taupe);
}
.foot p, .foot a { font-size: 14.5px; line-height: 1.8; color: var(--text-soft); margin: 0; text-decoration: none; }
.foot a:hover { color: var(--blue-bright); }
.foot-bottom {
  border-top: 1px solid var(--line); max-width: var(--w-content); margin: 0 auto;
  padding: 22px var(--pad-x); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-soft); text-transform: uppercase;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1140px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-meta { display: none; }
}
@media (max-width: 940px) {
  .nav-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; }
  .nav-links { order: 4; grid-column: 1 / -1; margin: 0; justify-content: center; flex-wrap: wrap; gap: 16px; }
  .frame-row { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat:nth-child(3)::before, .stat + .stat::before { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .frame-row { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
