*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1c1c1c;
  --fg: #eeece8;
  --border: rgba(255,255,255,0.1);
  --muted: rgba(255,255,255,0.38);
  --orange: #e8621a;
  --orange-hover: #f0712a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

/* ── ENTRANCE ANIMATIONS ── */
.hero-enter {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--i, 0) * 0.12s);
}

body.loaded .hero-enter {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL CUE ── */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 48px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-cue.hidden { opacity: 0; pointer-events: none; }

.scroll-cue-line {
  display: block;
  width: 0.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
  animation: scroll-line 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
  background: rgba(28, 28, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.07);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-o {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.logo-o::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--fg);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.nav-right {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 80px 48px 72px;
  position: relative;
  z-index: 2;
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

/* ── HERO IMAGE COLUMNS ── */
.hero-images {
  position: absolute;
  top: -10%;
  right: 0;
  width: 52%;
  height: 120%;
  display: flex;
  gap: 12px;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to left, black 40%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}

.hero-col--a { animation: scrollUp 28s linear infinite; }
.hero-col--b { animation: scrollUp 36s linear infinite; margin-top: -120px; }

@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.hero-img-wrap {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
  mix-blend-mode: multiply;
}

.hero-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(18%) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 520px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px 2px rgba(232,98,26,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   box-shadow: 0 0 6px 2px rgba(232,98,26,0.6); }
  50%       { opacity: 0.5; box-shadow: 0 0 14px 6px rgba(232,98,26,0.2); }
}

.pre {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pre::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 0.5px;
  background: var(--muted);
}

h1 {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.95;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange);
  font-size: 80px;
}

.sub {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 48px;
  border-left: 1px solid var(--orange);
  padding-left: 20px;
}

/* ── FORM ── */
.form-row {
  display: flex;
  max-width: 440px;
  border: 0.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.form-row input[type="email"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg);
  background: transparent;
  letter-spacing: 0.03em;
}

.form-row input[type="email"]::placeholder { color: rgba(255,255,255,0.22); }

.form-row button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  font-weight: 500;
}

.form-row button:hover { background: var(--orange-hover); }
.form-row button:disabled {
  background: rgba(232,98,26,0.4);
  cursor: default;
}

.form-note {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.form-success {
  display: none;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  padding: 12px 0;
  border-top: 0.5px solid rgba(232,98,26,0.3);
  max-width: 440px;
  letter-spacing: 0.03em;
}

.form-success::before {
  content: '● ';
  color: var(--orange);
  font-size: 8px;
  vertical-align: middle;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #e85c1a;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* ── FEATURE GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--border);
  border-left: 0.5px solid var(--border);
  position: relative;
  z-index: 20;
}

.cell {
  padding: 44px 36px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  transition: background 0.2s;
}

.cell:hover { background: rgba(255,255,255,0.02); }

.cell-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(232,98,26,0.55);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.cell-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.cell-body {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  font-weight: 300;
}

/* ── STATS ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--border);
  border-left: 0.5px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.stat {
  padding: 36px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── CATEGORIES ── */
.categories {
  padding: 48px;
  border-top: 0.5px solid var(--border);
}

.cat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cat-list { display: flex; flex-wrap: wrap; gap: 8px; }

.cat-pill {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.42);
  border: 0.5px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  text-transform: uppercase;
  transition: all 0.15s;
  cursor: default;
}

.cat-pill:hover {
  color: var(--orange);
  border-color: rgba(232,98,26,0.35);
}

/* ── FOOTER ── */
footer {
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--border);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.2);
}

.footer-text {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */

/* Large screens (> 1600px) */
@media (min-width: 1600px) {
  .grid, .stat-row, .categories, footer { max-width: 1600px; margin-left: auto; margin-right: auto; }
  nav { max-width: 1600px; margin: 0 auto; border-bottom: none; }
  nav + * { border-top: 0.5px solid var(--border); }
}

/* Tablet landscape / small desktop (≤ 1024px) */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  .hero { padding: 64px 32px 56px; }
  h1 { font-size: 72px; }
  h1 em { font-size: 66px; }
  #camera-3d { flex: 0 0 360px; height: 400px; }
  .categories { padding: 40px 32px; }
  footer { padding: 28px 32px; }
}

/* Tablet portrait (≤ 768px) */
@media (max-width: 768px) {
  nav { padding: 18px 24px; }

  .hero { padding: 52px 24px 44px; min-height: 520px; }
  h1 { font-size: 60px; }
  h1 em { font-size: 56px; }
  .sub { font-size: 14px; max-width: 100%; margin-bottom: 36px; }
  .form-row { max-width: 100%; }
  .hero-images { width: 60%; }

  .grid { grid-template-columns: 1fr 1fr; }
  .grid .cell:last-child { grid-column: 1 / -1; }

  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }

  .categories { padding: 32px 24px; }
  footer { padding: 24px; flex-direction: column; gap: 10px; text-align: center; }
}

/* Phone (≤ 480px) */
@media (max-width: 480px) {
  nav { padding: 16px 20px; }
  .logo { font-size: 18px; letter-spacing: 0.2em; }
  .nav-right { display: none; }

  .hero { padding: 44px 20px 36px; }
  h1 { font-size: 52px; }
  h1 em { font-size: 48px; }
  .pre { font-size: 9px; margin-bottom: 24px; }
  .sub { font-size: 13px; margin-bottom: 32px; }

  .form-row { flex-direction: column; max-width: 100%; }
  .form-row input[type="email"] { padding: 14px 16px; font-size: 14px; }
  .form-row button { padding: 13px 16px; font-size: 11px; width: 100%; }

  .hero { min-height: 480px; }
  .hero-content { max-width: 100%; }
  .hero-images { display: none; }

  .grid { grid-template-columns: 1fr; }
  .grid .cell:last-child { grid-column: auto; }
  .cell { padding: 32px 20px; }
  .cell-num { font-size: 40px; }

  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 24px 20px; }
  .stat-num { font-size: 40px; }

  .categories { padding: 28px 20px; }
  .cat-pill { font-size: 10px; padding: 5px 11px; }

  footer { padding: 20px; gap: 8px; }
  .footer-logo { font-size: 12px; }
}
