/* ============================================
   86th Aspect® — Exact Match Styles
   ============================================ */

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

:root {
  --bg: #0c0c0c;
  --card: #141414;
  --text: #f2f2f2;
  --dim: #999;
  --muted: #555;
  --border: #1a1a1a;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --serif: 'Switzer', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --g: clamp(3px, 0.1875rem + 0.1vw, 5px);
  --px: clamp(14px, 0.875rem + 0.5vw, 24px);

  /* Fluid spacing scale */
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);

  /* Aliases for sub-pages (pages.css) */
  --font-serif: 'Switzer', -apple-system, sans-serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --text-primary: #f2f2f2;
  --text-secondary: #999;
  --text-muted: #555;
  --bg-primary: #0c0c0c;
  --bg-secondary: #111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border-light: #333;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fluid typography scale */
  --text-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.5rem + 3.75vw, 3.5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid rgb(230, 228, 222);
  outline-offset: 2px;
  border-radius: 4px;
}
ul { list-style: none; }
img { max-width: 100%; display: block; }
.reg { font-size: 0.5em; vertical-align: super; font-style: normal; }
.registered { font-size: 0.5em; vertical-align: super; font-style: normal; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--px);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: #ddd;
  transform: translateY(-1px);
}

/* --- Section headings (sub-pages) --- */
.section-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

/* ============================================
   Nav — thin bar, edge to edge
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgb(20, 20, 20);
}

.header.scrolled { background: rgb(20, 20, 20); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 var(--px);
  position: relative;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 32px; width: auto; }

.nav__links {
  display: flex;
  gap: 24px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav__links a {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 0.7; }

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -12px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

/* ============================================
   Hero — full bleed, edge to edge
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: clamp(400px, 85dvh, 95dvh);
  min-height: 400px;
  margin-top: 48px;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(12,12,12,0.5) 70%, var(--bg) 100%);
  z-index: 1;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 var(--px);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 107px);
  font-weight: 500;
  font-style: normal;
  line-height: 0.9;
  width: 100%;
  letter-spacing: -0.05em;
  text-align: center;
  color: rgb(237, 237, 237);
}

/* ============================================
   Bento — 5-item grid matching Framer
   ============================================ */
.bento {
  padding: 40px var(--px) 0;
}

.bento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 400px auto 400px;
  gap: 10px;
}

/* --- Card base --- */
.bento__card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  min-height: 0;
  min-width: 0;
  transition: transform 0.4s var(--ease);
  container-type: inline-size;
}

.bento__card:hover { transform: scale(1.003); }

.bento__card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.bento__card-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento__card-overlay {
  position: absolute;
  inset: 0;
  background: rgb(20, 20, 20);
  opacity: 0.3;
  z-index: 2;
}

.bento__card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(230, 228, 222);
  letter-spacing: -0.03em;
  z-index: 3;
}

.bento__card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 3;
}

.bento__card-label span {
  font-size: 1rem;
  font-weight: 500;
  color: rgb(230, 228, 222);
  letter-spacing: -0.03em;
}

/* Container query: adapt card content to card size */
@container (max-width: 280px) {
  .bento__card-tag { font-size: 0.75rem; top: 10px; left: 10px; }
  .bento__card-label { padding: 10px; }
  .bento__card-label span { font-size: 0.8125rem; }
}

/* --- Grid placement --- */
.bento__card--chicha {
  grid-column: 1;
  grid-row: 1 / 4;
}

.bento__card--recess {
  grid-column: 2;
  grid-row: 1;
}

.bento__stats {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 8px;
  background: var(--card);
}

.bento__stats-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(230, 228, 222, 0.4);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.bento__stats-list p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.03em;
}

.bento__about {
  grid-column: 2 / 4;
  grid-row: 2;
  padding: 24px;
  display: block;
  background: var(--card);
  border-radius: 8px;
}

.bento__about-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(230, 228, 222, 0.4);
  margin-bottom: 12px;
}

.bento__about p {
  font-size: 1rem;
  color: rgb(230, 228, 222);
  line-height: 1.5;
  max-width: 600px;
  letter-spacing: -0.03em;
}

.bento__card--cyclone {
  grid-column: 2 / 4;
  grid-row: 3;
}

/* ============================================
   Journal — text left, cards right
   ============================================ */
.journal {
  padding: 100px var(--px) 48px;
}

.journal__layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  align-items: start;
}

.journal__left {
  position: sticky;
  top: 80px;
}

.journal__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.9;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}

.journal__intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.journal__btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 2px solid rgb(230, 228, 222);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.journal__btn:hover {
  background: rgb(230, 228, 222);
  color: rgb(20, 20, 20);
}

.journal__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.journal-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(230, 228, 222);
  transition: transform 0.3s var(--ease);
}

.journal-card:hover { transform: translateY(-2px); }

.journal-card__img {
  aspect-ratio: 1 / 0.75;
  overflow: hidden;
}

.journal-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.journal-card:hover .journal-card__img img {
  transform: scale(1.03);
}

.journal-card__body {
  padding: 12px 16px 16px;
}

.journal-card__body h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: rgb(28, 28, 28);
  margin-bottom: 4px;
}

.journal-card__date {
  font-size: 0.875rem;
  color: rgba(28, 28, 28, 0.75);
  letter-spacing: -0.03em;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 40px var(--px) 48px;
}

.faq__inner {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 40px 48px;
}

.faq__heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 32px;
}

.faq__item { border-top: 1px solid rgba(230, 228, 222, 0.75); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: rgba(230, 228, 222, 0.75);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.faq__question:hover { color: var(--text); }

.faq__icon {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s var(--ease);
  opacity: 0.75;
  width: 24px;
  height: 24px;
}

.faq__item.active .faq__icon { transform: rotate(45deg); opacity: 1; }

.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__item.active .faq__answer { max-height: 300px; }

.faq__answer p {
  padding-bottom: 20px;
  color: rgba(230, 228, 222, 0.75);
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================================
   Footer — nav row + massive branding
   ============================================ */
.footer {
  margin-top: 80px;
  background: rgb(230, 228, 222);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.footer__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--px);
}

.footer__nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-sm { display: flex; align-items: center; }
.footer__logo-sm img { height: 16px; width: auto; opacity: 0.5; }

.footer__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(20, 20, 20);
  letter-spacing: -0.03em;
}

.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(20, 20, 20);
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}
.footer__links a:hover { opacity: 0.7; }

.footer__brand {
  padding: 48px var(--px) 56px;
}

.footer__logo-big {
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 500;
  font-style: normal;
  line-height: 0.9;
  color: rgb(20, 20, 20);
  letter-spacing: -0.05em;
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__content[data-animate] {
  transform: translateY(40px);
  transition-duration: 0.9s;
  transition-delay: 0.1s;
}

.form-success {
  text-align: center;
  padding: 40px 0;
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 6px;
}
.form-success p { color: var(--dim); font-size: 0.75rem; }

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 48px);
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: none;
    z-index: 99;
  }

  .nav__links.open { display: flex; }
  .nav__links a {
    font-size: 1rem;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero { min-height: 350px; }

  .bento__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bento__card--chicha { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .bento__card--recess { min-height: 200px; }
  .bento__stats { min-height: 150px; }
  .bento__about { grid-column: 1 / -1; }
  .bento__card--cyclone { grid-column: 1 / -1; min-height: 200px; }

  .journal__layout { grid-template-columns: 1fr; }
  .journal__left { position: static; margin-bottom: 24px; }
  .journal__cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Responsive — Phone
   ============================================ */
@media (max-width: 480px) {
  .nav { height: 44px; }
  .nav__links { top: 44px; height: calc(100dvh - 44px); }
  .hero { margin-top: 44px; }
  .hero__title { font-size: var(--text-4xl); }

  .bento__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento__card { min-height: 200px; }
  .bento__card--recess { grid-column: 1 / -1; min-height: 220px; }
  .bento__stats { grid-column: 1 / -1; }
  .bento__about { grid-column: 1 / -1; }
  .bento__card--cyclone { min-height: 220px; }

  .journal { padding-top: 64px; }
  .journal__title { font-size: var(--text-4xl); }
  .journal__cards { grid-template-columns: 1fr; }

  .faq__inner { padding: 24px 20px; }
  .faq__item.active .faq__answer { max-height: 500px; }

  .footer { margin-top: 48px; }
  .footer__nav-row { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 10px 16px; }
  .footer__links a { font-size: 0.875rem; }
  .footer__logo-big { font-size: clamp(3rem, 2rem + 5vw, 8rem); }
}

/* ============================================
   Responsive — Small iPhone (SE / Mini)
   ============================================ */
@media (max-width: 390px) {
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .journal__title { font-size: clamp(2rem, 6vw, 2.5rem); }
  .faq__heading { font-size: clamp(2rem, 5vw, 2.5rem); }
  .faq__inner { padding: 20px 16px; }
  .bento__about { padding: 20px 16px; }
  .footer__logo-big { font-size: clamp(2.5rem, 15vw, 5rem); }
}
