/* ========================================
   NOTRA — STYLE SYSTEM
   ======================================== */

:root {
  --bg: #080808;
  --bg2: #0E0E0E;
  --bg3: #141414;
  --border: #1C1C1C;
  --border2: #282828;
  --text: #E8E6E1;
  --muted: #807E78;
  --dim: #4A4945;
  --accent: #C9A24B;
  --accent-dim: rgba(201,162,75,0.12);
  --copper: #B5651D;
  --steel: #2C4A5E;
  --green: #4A7C59;
  --indigo: #3B3A6E;
  --heading: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --body: 'Inter', system-ui, sans-serif;
  --max-w: 1200px;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { cursor: pointer; }


/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo — configurable via images/logo-white.png */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo-img {
  height: 28px;
  width: auto;
}
.nav-logo-fallback {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

/* Nav links */
.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--text);
  padding: 8px 20px !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; color: var(--bg) !important; }

/* Mobile menu button */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 900px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav overlay */
.mob-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mob-nav.open { opacity: 1; pointer-events: all; }
.mob-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mob-nav a:hover { color: var(--accent); }


/* ========================================
   PAGE SYSTEM
   ======================================== */

.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageIn 0.5s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sec { padding: 100px var(--gutter); }
.sec-inner { max-width: var(--max-w); margin: 0 auto; }


/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 60px;
  position: relative;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* The N mark — configurable via images/n-mark-white.png */
.hero-n-wrap {
  margin-bottom: 16px;
  opacity: 0;
  animation: heroIn 0.8s 0.1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-n-img {
  height: clamp(100px, 22vw, 240px);
  width: auto;
}
.hero-n-text {
  font-family: var(--heading);
  font-size: clamp(120px, 25vw, 280px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--text);
}

/* Hero brand block — animates to nav on scroll */
.hero-brand-wrap {
  opacity: 0;
  animation: heroIn 0.8s 0.25s cubic-bezier(0.16,1,0.3,1) forwards;
  transform-origin: top left;
  transition: transform 0.01s, opacity 0.01s; /* JS drives this via will-change */
  will-change: transform, opacity;
}
.hero-brand {
  font-family: var(--heading);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.hero-tagline {
  font-family: var(--heading);
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 480px;
  margin-top: 28px;
  opacity: 0;
  animation: heroIn 0.7s 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  animation: heroIn 0.7s 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroIn 0.7s 0.8s ease forwards;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: var(--dim);
  animation: pulse 2s infinite;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}


/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.btn-w { background: var(--text); color: var(--bg); }
.btn-w:hover { transform: translateY(-2px); }
.btn-o { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-o:hover { background: var(--bg3); transform: translateY(-2px); }


/* ========================================
   SCROLL REVEAL
   ======================================== */

.rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.rv.v { opacity: 1; transform: translateY(0); }
.stg .rv:nth-child(2) { transition-delay: 0.06s; }
.stg .rv:nth-child(3) { transition-delay: 0.12s; }
.stg .rv:nth-child(4) { transition-delay: 0.18s; }
.stg .rv:nth-child(5) { transition-delay: 0.24s; }


/* ========================================
   SECTION HEADERS
   ======================================== */

.s-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.s-title {
  font-family: var(--heading);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.s-desc {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.accent { color: var(--accent); }


/* ========================================
   PILLAR CARDS (Home)
   ======================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 700px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }

.pillar-card {
  background: var(--bg);
  padding: 40px 32px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover { background: var(--bg2); }
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.pillar-card:hover::after { width: 100%; }
.pillar-card[data-pillar="experiences"]::after { background: var(--copper); }
.pillar-card[data-pillar="activations"]::after { background: var(--steel); }
.pillar-card[data-pillar="learn"]::after { background: var(--green); }
.pillar-card[data-pillar="labs"]::after { background: var(--indigo); }

.pillar-num { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: auto; }
.pillar-name { font-family: var(--heading); font-size: clamp(22px,3vw,30px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.pillar-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pillar-arrow { position: absolute; top: 32px; right: 32px; opacity: 0; transform: translate(-6px,6px); transition: all 0.3s; }
.pillar-card:hover .pillar-arrow { opacity: 1; transform: translate(0,0); }


/* ========================================
   MARQUEE
   ======================================== */

.marquee {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 28px;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item.dot { color: var(--accent); }


/* ========================================
   PROCESS
   ======================================== */

.process {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 768px) { .process { grid-template-columns: repeat(5, 1fr); } }

.process-step { padding: 28px 20px; border-left: 1px solid var(--border); }
@media (min-width: 768px) { .process-step { border-left: none; border-top: 1px solid var(--border); } }

.process-num { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.process-label { font-family: var(--heading); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.process-text { font-size: 12px; color: var(--muted); line-height: 1.5; }


/* ========================================
   MISSION
   ======================================== */

.mission { padding: 120px var(--gutter); text-align: center; }
.mission-text {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--heading);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
}


/* ========================================
   BRIEF CTA
   ======================================== */

.brief-cta { padding: 100px var(--gutter); text-align: center; border-top: 1px solid var(--border); }
.brief-cta-inner { max-width: var(--max-w); margin: 0 auto; }
.brief-cta h2 { font-family: var(--heading); font-size: clamp(24px,4vw,44px); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.brief-cta p { font-size: 14px; color: var(--muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }


/* ========================================
   PILLAR PAGE HERO
   ======================================== */

.pg-hero { padding: 140px var(--gutter) 80px; }
.pg-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.back-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.back-btn:hover { color: var(--text); }


/* ========================================
   CAPABILITY SECTION
   ======================================== */

.cap-section { padding: 80px var(--gutter); border-top: 1px solid var(--border); }
.cap-section:nth-child(even) { background: var(--bg2); }
.cap-inner { max-width: var(--max-w); margin: 0 auto; }
.cap-title {
  font-family: var(--heading);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.cap-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 36px;
}


/* ========================================
   PRODUCT CARDS — BIG, RECTANGULAR, IMAGE-READY

   To add an image: put your image in images/products/
   and set data-img="images/products/your-image.jpg"
   on the .product-card element in data.js
   ======================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
@media (min-width: 600px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  aspect-ratio: 3 / 2;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  cursor: default;
}

/* Background image layer */
.product-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}
.product-card:hover .product-card-bg { transform: scale(1.06); }

/* Dark gradient overlay — tighter by default, expands on hover */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.4) 35%, rgba(8,8,8,0.05) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}
.product-card:hover .product-card-overlay {
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.7) 50%, rgba(8,8,8,0.35) 100%);
}

/* Card content */
.product-card-content {
  position: relative;
  z-index: 2;
}
.product-card-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
}
.product-card-name {
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.product-card-line {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.product-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}
.product-card:hover .product-card-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
}
/* Hide single-line on hover, show full desc */
.product-card:hover .product-card-line { display: none; }

/* No-image state: subtle pattern */
.product-card--empty .product-card-bg {
  background: linear-gradient(145deg, var(--bg3), var(--bg2));
}


/* ========================================
   FLAGSHIP CARD
   ======================================== */

.flagship {
  background: var(--bg3);
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 4px;
}
.flagship-name { font-family: var(--heading); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.flagship-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }


/* ========================================
   VALUES
   ======================================== */

.values { margin-top: 48px; }
.value-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .value-item { grid-template-columns: 240px 1fr; gap: 40px; } }
.value-name { font-family: var(--heading); font-size: 17px; font-weight: 600; color: var(--accent); }
.value-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }


/* ========================================
   CONTACT
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 48px;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-item { margin-bottom: 24px; }
.contact-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.contact-value { font-size: 15px; }
.contact-value a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: var(--accent); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  margin-top: 12px;
  transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: translateY(-2px); }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-bottom-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select option { background: var(--bg); color: var(--text); }


/* ========================================
   WORK GRID
   ======================================== */

.work-card {
  aspect-ratio: 4 / 3;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  cursor: pointer;
}
.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.work-card:hover .work-card-bg { transform: scale(1.03); }
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.9), transparent 60%);
  z-index: 1;
}
.work-card-content { position: relative; z-index: 2; }
.work-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.work-card-title { font-family: var(--heading); font-size: 18px; font-weight: 600; }


/* ========================================
   FOOTER
   ======================================== */

.footer { padding: 64px var(--gutter) 32px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--heading); font-size: 16px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.footer-tagline { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 260px; }
.footer-heading { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.06em; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--dim); text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--text); }


/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero-n-wrap, .hero-brand-wrap, .hero-brand, .hero-sub, .hero-ctas, .hero-scroll { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
