/* base.css — shared tokens, reset, layout primitives, header/nav/footer, icons */

:root {
  --brand: #c8ea00;
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #262626;

  --ink: #262626;
  --ink-soft: #4a4a4a;

  --font-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --space-7: 96px;

  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.5rem;
  --text-2xl: 2.125rem;
  --text-3xl: 3.25rem;

  --radius: 8px;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.5;
  font-size: var(--text-base);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0 0 var(--space-3); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.hero h1, .hero h2, .hero h3, .hero h4,
.cta h1, .cta h2, .cta h3, .cta h4,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.modo-card--featured h1, .modo-card--featured h2, .modo-card--featured h3, .modo-card--featured h4 { color: inherit; }
h1 { font-size: var(--text-3xl); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--text-2xl); line-height: 1.12; }
h3 { font-size: var(--text-xl); line-height: 1.2; }
h4 { line-height: 1.25; }
p { line-height: 1.65; font-weight: 300; }
strong, b { font-weight: 600; }

html.has-diamond-cursor, html.has-diamond-cursor * { cursor: none !important; }
.diamond-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 20px;
  background: var(--brand);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.18s ease, height 0.18s ease, background-color 0.18s ease;
  will-change: transform;
}
.diamond-cursor.is-visible { opacity: 1; }
.diamond-cursor.is-hover { width: 30px; height: 46px; }
.diamond-cursor.is-down { width: 9px; height: 15px; }
.diamond-cursor.on-dark { background: var(--brand); }
.diamond-cursor.on-light { background: var(--black); }
.diamond-cursor.is-hover.on-dark { background: var(--white); }
.diamond-cursor.is-hover.on-light { background: var(--brand); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--black);
  font-weight: 800;
  font-family: var(--font-base);
  letter-spacing: -0.01em;
  border: 2px solid var(--brand);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,234,0,0.35); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 16px; height: 16px; }

.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.btn-outline--dark {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline--dark:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 8px; }

a, .site-nav a, .problem-card, .solution-card, .modo-card {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.problem-card:hover, .solution-card:hover, .modo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* page transition — a subtle fade between pages, avoids any jarring full-screen effect */
.page-transition {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: var(--black);
  opacity: 1;
  transition: opacity 0.28s ease;
}
.page-transition.is-open { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .page-transition { transition: none; }
}

/* media placeholder — marks a spot for a real photo/video, swap the <img>/<video> in when client assets arrive */
.media-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--gray-100); border: 2px dashed var(--gray-200); border-radius: var(--radius);
  color: var(--gray-400); font-size: var(--text-sm); font-weight: 700; text-align: center;
  padding: var(--space-5); min-height: 220px; width: 100%;
}
.media-slot .icon { width: 28px; height: 28px; }
.section--dark .media-slot, .section--muted .media-slot {
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.15);
}
.section--light .media-slot { background: var(--gray-100); border-color: var(--gray-200); }
.media-slot--wide { aspect-ratio: 21/9; }
.media-slot--square { aspect-ratio: 1/1; min-height: 0; }

.media-photo, .media-video {
  display: block; width: 100%; aspect-ratio: 21/9; object-fit: cover;
  border-radius: var(--radius); background: var(--black);
}
.media-photo--spaced { margin-block: var(--space-5); }

.section__cta { margin-top: var(--space-5); }
.btn--mt-sm { margin-top: var(--space-3); }

.media-video--full {
  aspect-ratio: 21/9; border-radius: 0; max-height: 640px;
}
@media (max-width: 768px) { .media-video--full { aspect-ratio: 4/5; } }

/* scroll-reveal animations (progressively enhanced, see main.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* icon sizing */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }

/* header/nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(3,3,3,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgb(31,31,31);
  z-index: 300;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.3s ease;
}
.site-header.is-scrolled { background: rgb(3,3,3); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 66px;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; height: 36px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav__link {
  font-size: 12.5px; font-weight: 500; color: rgb(207,207,207);
  padding: 9px 13px; border-radius: 8px; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.site-nav__link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.site-nav__link[aria-current="page"] { color: var(--brand); }

.nav-dd { position: relative; }
.nav-dd__toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-base); font-size: 12.5px; font-weight: 500;
  color: rgb(207,207,207); letter-spacing: 0.4px;
  padding: 9px 13px; border-radius: 8px; background: none; border: none;
  cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.nav-dd__toggle:hover, .nav-dd.open .nav-dd__toggle { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-dd__caret {
  width: 6px; height: 6px; border: solid var(--brand); border-width: 0 2px 2px 0;
  display: inline-block; transform: rotate(45deg); margin-top: -4px; transition: transform 0.15s;
}
.nav-dd.open .nav-dd__caret { transform: rotate(-135deg); margin-top: 2px; }
.nav-dd__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: rgb(21,21,21); border: 1px solid rgb(38,38,38); border-radius: 14px;
  padding: 8px; min-width: 280px; box-shadow: 0 26px 60px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dd.open .nav-dd__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd__item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px;
  color: rgb(200,200,200); font-size: 13px; font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}
.nav-dd__item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-dd__num {
  font-size: 11px; font-weight: 600; color: var(--brand); width: 22px; flex-shrink: 0;
}
.nav-dd__item--featured {
  color: var(--brand); font-weight: 700; border-bottom: 1px solid rgb(36,36,36); margin-bottom: 6px; padding-bottom: 12px;
}

.site-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-cta {
  background: var(--brand); color: var(--black); font-size: 12.5px; font-weight: 800;
  padding: 10px 18px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,234,0,0.35); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 9px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: rgb(204,204,204); display: block; border-radius: 2px; }

/* footer */
.site-footer {
  background: rgb(14,14,14);
  color: var(--white);
  border-top: 1px solid rgb(25,25,25);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgb(25,25,25);
}
@media (min-width: 680px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand__logo { display: inline-block; margin-bottom: 14px; }
.footer-brand__logo img { height: 32px; width: auto; }
.footer-brand__desc { font-size: 13px; color: rgb(136,136,136); line-height: 1.75; margin-bottom: 18px; max-width: 300px; }
.footer-brand__locations { display: flex; flex-direction: column; gap: 6px; }
.footer-brand__locations span { font-size: 12px; color: rgb(102,102,102); }

.footer-col__title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgb(187,187,187); margin-bottom: 16px;
}
.footer-col__links { display: flex; flex-direction: column; gap: 10px; }
.footer-col__links a { font-size: 13px; color: rgb(119,119,119); transition: color 0.15s ease; }
.footer-col__links a:hover { color: var(--white); }
.footer-col__link--brand { color: var(--brand) !important; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom__copy { font-size: 11px; color: rgb(68,68,68); }
.footer-bottom__social { display: flex; gap: 18px; }
.footer-bottom__social a { font-size: 12px; color: rgb(85,85,85); transition: color 0.15s ease; }
.footer-bottom__social a:hover { color: var(--white); }

/* ===== Mobile-first breakpoints ===== */
/* base styles above target ≤480px */

@media (min-width: 481px) and (max-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgb(14,14,14); padding: var(--space-3) var(--space-4) var(--space-4);
    flex-direction: column; align-items: stretch; gap: 2px;
    border-top: 1px solid rgb(31,31,31);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav__link { font-size: var(--text-base); padding: var(--space-2) var(--space-2); }
  .nav-dd__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; margin-top: 4px; width: 100%; min-width: 0;
  }
  .nav-dd.open .nav-dd__menu { display: block; }
  .nav-dd__toggle { width: 100%; justify-content: space-between; }
  .btn-cta { display: none; }
}
