/* =========================================================
   JOE BLAST — joeblast.com
   Brand system: Obsidian · Chrome · Diamond
   Pulled from the JB diamond-chrome monogram.
   ========================================================= */

:root {
  /* Obsidian — the black enamel of the monogram */
  --obsidian:   #060607;
  --onyx:       #0c0c0e;
  --graphite:   #16161a;
  --gunmetal:   #24242a;

  /* Chrome & platinum — the polished bezel */
  --steel:      #5d5f66;
  --chrome:     #a7a9b0;
  --platinum:   #d9dbe0;
  --diamond:    #f7f8fb;

  /* Ice — the sparkle glint (use sparingly) */
  --ice:        #cfe6ff;
  --ice-glow:   rgba(207,230,255,.55);

  /* Text */
  --text:       #eceef2;
  --text-dim:   rgba(236,238,242,.68);
  --text-faint: rgba(236,238,242,.42);
  --line:       rgba(217,219,224,.12);
  --line-hi:    rgba(217,219,224,.28);

  /* Chrome gradients */
  --chrome-grad: linear-gradient(180deg,
      #ffffff 0%, #e6e8ec 18%, #9a9ca3 42%, #f4f5f7 52%,
      #7d7f86 70%, #cfd1d6 88%, #ffffff 100%);
  --chrome-flat: linear-gradient(135deg, #f4f5f7 0%, #b9bbc1 35%, #eef0f3 55%, #8e9097 100%);
  --bezel: linear-gradient(145deg, #3a3b41, #0d0d10 45%, #2c2d33 70%, #0a0a0c);

  /* Type */
  --f-display: 'Anton', 'Impact', sans-serif;
  --f-serif:   'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'Space Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* body stays transparent so fixed background layers (z-index:-1) show through */
body { background: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--platinum); color: var(--obsidian); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--diamond); color: var(--obsidian); padding: 10px 16px;
  font-family: var(--f-mono); font-size: 12px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(217,219,224,.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(207,230,255,.05), transparent 60%),
    var(--obsidian);
}

/* ---------- Type utilities ---------- */
.chrome-text {
  background: var(--chrome-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 10px 24px rgba(0,0,0,.55));
}
.serif-accent {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -.01em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--platinum);
}
.eyebrow::before {
  content: ''; width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--platinum));
}
.sparkle {
  display: inline-block; width: 14px; height: 14px; position: relative; vertical-align: middle;
}
.sparkle::before, .sparkle::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--diamond); border-radius: 2px;
  box-shadow: 0 0 10px var(--ice-glow);
}
.sparkle::before { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.sparkle::after  { width: 14px; height: 2px; transform: translate(-50%,-50%); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: .9; text-transform: uppercase; letter-spacing: -.005em;
  margin-top: 14px;
}
.section-head h2 .serif-accent { font-size: 1.08em; color: var(--platinum); }
.section-head .meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--text-faint);
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open {
  background: rgba(6,6,7,.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.brand img {
  width: 46px; height: 46px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.7));
  transition: transform .6s var(--ease);
}
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand .wordmark {
  font-family: var(--f-serif); font-weight: 700; font-size: 21px; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .24em;
  text-transform: uppercase; text-decoration: none; color: var(--text-dim);
  position: relative; padding: 8px 0; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--chrome-flat); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--diamond); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .nav-cta {
  padding: 10px 18px; border: 1px solid var(--line-hi); color: var(--diamond);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--diamond); color: var(--obsidian); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-hi);
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--diamond);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 32px; min-height: 52px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-chrome {
  background: var(--chrome-flat); color: var(--obsidian);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(0,0,0,.25),
              0 10px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.25);
}
.btn-chrome::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.btn-chrome:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 16px 40px rgba(0,0,0,.7), 0 0 30px rgba(207,230,255,.25); }
.btn-chrome:hover::after { left: 130%; }

.btn-ghost {
  background: rgba(6,6,7,.45); color: var(--diamond);
  border: 1px solid var(--line-hi);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--diamond); color: var(--obsidian); transform: translateY(-2px); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 5; overflow: hidden;
  background: var(--chrome-flat); color: var(--obsidian);
  padding: 16px 0;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.4), 0 20px 50px rgba(0,0,0,.6);
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--f-display); font-size: 22px; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: '✦'; font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (shared surface) ---------- */
.panel {
  background: linear-gradient(180deg, rgba(22,22,26,.85), rgba(12,12,14,.85));
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 5;
  border-top: 1px solid var(--line);
  background: var(--onyx);
  padding: 64px var(--gutter) 36px;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer-brand img { width: 88px; margin-bottom: 18px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.8)); }
.footer-brand p { color: var(--text-dim); max-width: 340px; font-size: 14px; }
.footer h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 400;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { text-decoration: none; color: var(--text-dim); transition: color .2s; }
.footer li a:hover { color: var(--diamond); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.socials a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-hi); color: var(--platinum); text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; transition: all .25s;
}
.socials a:hover { background: var(--diamond); color: var(--obsidian); border-color: var(--diamond); }
.footer-base {
  max-width: var(--max); margin: 28px auto 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-faint);
}
.field input, .field select, .field textarea {
  background: rgba(6,6,7,.7); border: 1px solid var(--line-hi); color: var(--text);
  font-family: var(--f-body); font-size: 16px; padding: 14px 16px; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--platinum); box-shadow: 0 0 0 3px rgba(207,230,255,.12);
}
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.fade-up { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.d1 { animation-delay: .15s } .d2 { animation-delay: .3s } .d3 { animation-delay: .45s }
.d4 { animation-delay: .6s } .d5 { animation-delay: .75s }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 28px var(--gutter);
    background: rgba(6,6,7,.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 15px; padding: 14px 0; display: block; }
  .nav-links .nav-cta { margin-top: 12px; padding: 14px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .brand .wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
