/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #10151b;
  --bg-2:      #161d26;
  --bg-3:      #1e2733;
  --cream:     #f1f4f7;
  --cream-2:   #c7d0da;
  --cream-3:   #7c8a99;
  --accent:    #e8622c;
  --accent-2:  #c94f1d;
  --steel:     #8b939b;
  --line:      rgba(241,244,247,.12);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --disp:  "Space Grotesk", var(--sans);
  --mono:  "JetBrains Mono", "Consolas", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--disp); font-weight: 700; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.eyebrow-num {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--cream-3);
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.section-lede {
  color: var(--cream-2);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out), opacity .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1a0d06;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cream-3); }
.btn-disabled {
  border: 1px solid var(--line);
  color: var(--cream-3);
  cursor: default;
  opacity: .7;
}
.btn-disabled:hover { transform: none; }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

/* Nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.nav.is-solid {
  background: rgba(16, 21, 27, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(16, 21, 27, 0.97); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-logo { width: 34px; height: 34px; }
.nav-brand-name { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--cream-2);
  position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .4rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { font-size: 1.3rem; font-family: var(--disp); font-weight: 700; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 3.2s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }
.splash-logo { width: 64px; height: 64px; animation: splashPulse 1.6s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }

/* =============================================================
   6. Sections
   ============================================================= */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.05);
}
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,21,27,.55) 0%, rgba(16,21,27,.4) 45%, rgba(16,21,27,.92) 100%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; opacity: .55; mix-blend-mode: screen;
  background:
    radial-gradient(45% 40% at 15% 15%, rgba(232,98,44,.35), transparent 70%),
    radial-gradient(50% 45% at 90% 10%, rgba(139,147,155,.25), transparent 70%);
  filter: blur(60px);
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: 3rem 4.5rem;
  max-width: 760px;
}
.hero-title {
  margin-block: 1rem 1rem;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  max-width: 16ch;
}
.hero-sub {
  color: var(--cream-2);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* About / concept */
.about {
  padding-block: 6rem;
  background: var(--bg-2);
}
.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
.about-figure { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-text { max-width: 62ch; }
.about-text .section-title { margin-block: .8rem 1rem; }
.pillars {
  margin-top: 3rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.pillar-title { font-family: var(--disp); font-size: 1.15rem; margin-block: .6rem .4rem; }
.pillar-text { color: var(--cream-2); font-size: .95rem; max-width: 40ch; }

/* Showcase */
.showcase { padding-block: 6rem; }
.showcase-head { margin-bottom: 2.5rem; max-width: 60ch; }
.showcase-head .section-title { margin-block: .8rem 0; }
.showcase-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding-block: .5rem 1.5rem;
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.product-card {
  flex: 0 0 auto;
  width: min(78vw, 320px);
  scroll-snap-align: start;
  position: relative;
  transition: transform .45s var(--ease-out);
  will-change: transform;
}
.product-figure {
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.product-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.product-card:hover .product-figure img { transform: scale(1.08); }
.product-figure-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
}
.product-figure-empty svg { width: 84px; height: 84px; opacity: .8; }
.product-halo {
  position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease-out);
  background: radial-gradient(220px circle at var(--hx,50%) var(--hy,50%), rgba(232,98,44,.35), transparent 70%);
}
.product-card:hover .product-halo { opacity: 1; }
.product-name { font-family: var(--disp); font-size: 1.05rem; margin-block: 1rem .4rem; }
.product-text { color: var(--cream-2); font-size: .9rem; max-width: 32ch; }

/* Why / strip */
.why {
  padding-block: 5rem;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.why-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-num { font-family: var(--mono); color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* Contact */
.contact { padding-block: 6rem; }
.contact-box {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.contact-title { margin-block: .8rem 1rem; }
.contact-coverage {
  display: flex; align-items: center; gap: .6rem;
  color: var(--cream-2); font-size: .95rem;
  margin-bottom: 1.75rem;
}
.contact-coverage svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-note { margin-top: 1rem; font-size: .82rem; color: var(--cream-3); }

/* Footer */
.footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; flex-direction: column; gap: 1.25rem;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-logo { width: 28px; height: 28px; }
.footer-name { font-family: var(--disp); font-weight: 700; }
.footer-meta { color: var(--cream-3); font-size: .85rem; }

/* =============================================================
   7. Effects
   ============================================================= */
.fade-in { animation: fadeIn 1s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .contact-box { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
}
@media (min-width: 1280px) {
  .hero-inner { padding-block: 3rem 6rem; }
}

/* =============================================================
   9. Reduced motion — only genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .splash-logo { animation: none; }
}
