/* ==========================================================================
   BAUCE HAUS 2026 — Stylesheet v2
   Type: Inter (display/UI) / Newsreader (paragraph)
   Palette: sage #b4c97c, black, white
   ========================================================================== */

:root {
  --sage: #b4c97c;
  --sage-deep: #869c53;
  --sage-pale: #eef3df;
  --black: #0d0d0c;
  --charcoal: #1a1a18;
  --white: #ffffff;
  --paper: #faf9f6;
  --line: rgba(13, 13, 12, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Tight", ui-sans-serif, system-ui, sans-serif;

  --max-width: 1200px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;h
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--edge);
}

.tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}
.tag-light { color: var(--sage); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--sage-deep); }

.btn-ghost { background: transparent; border-color: currentColor; }

.btn-header {
  background: var(--sage);
  color: var(--black);
  padding: 0.6rem 1.35rem;
  font-size: 0.88rem;
}
.btn-header:hover { background: var(--sage-deep); color: var(--white); }

.btn-full { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--sage-deep); }

.main-nav { display: flex; gap: 1.8rem; margin-left: auto; margin-right: 1.8rem; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--black); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Announcement bar ============ */
.announce {
  background: var(--black);
  color: var(--sage);
  overflow: hidden;
  padding: 0.7rem 0;
}
.announce-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: scroll-left 26s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.announce-track .sep { color: rgba(180, 201, 124, 0.5); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Background video: covers the hero section on both desktop and mobile
   via object-fit: cover, regardless of the source clip's dimensions. */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg iframe,
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none; /* decorative — clicks pass through to page */
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(180, 201, 124, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(13, 13, 12, 0.78), rgba(13, 13, 12, 0.88));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 8.5rem) var(--edge) clamp(4rem, 10vw, 7rem);
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 1.6rem;
}
.hero-headline {
  font-size: clamp(2.6rem, 5.0vw, 4.5rem);
  max-width: 25ch;
  margin: 0 auto;
  line-height: 1.2em;
}
.hero-headline em {
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--sage);
}
.hero-sub {
  max-width: 55ch;
  margin: 1.75rem auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-actions .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.hero-actions .btn-ghost:hover { border-color: var(--sage); color: var(--sage); }

.hero-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sage), transparent);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.2rem); margin-bottom: 1.3rem; line-height: 1.2em; }
.lead { font-size: 1.15rem; line-height: 1.65; color: rgba(13, 13, 12, 0.78); }
.mission-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.mission { font-size: 1.05rem; line-height: 1.65; color: rgba(13, 13, 12, 0.78); }

/* ============ Stats dark ============ */
.stats-dark { position: relative; background: var(--black); color: var(--white); overflow: hidden; }

/* Same black/green overlay treatment as the hero, for visual consistency */
.stats-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(180, 201, 124, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(13, 13, 12, 0.78), rgba(13, 13, 12, 0.88));
}

.stats-inner { position: relative; z-index: 1; text-align: center; }
.stats-heading { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 22ch; margin: 0 auto 3rem; }

.stat-circle-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.stat-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--sage); margin-bottom: 0.6rem; }
.stat-body { font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.68); }

.stats-mission {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  max-width: 46ch;
  margin: 0 auto 3rem;
  color: var(--white);
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.stats-actions .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.stats-actions .btn-ghost:hover { border-color: var(--sage); color: var(--sage); }

/* ============ The Room ============ */
.room-heading { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 26ch; margin-bottom: 3rem; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.profile-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--black); }
.profile-label { font-size: 0.88rem; color: rgba(13, 13, 12, 0.6); margin-top: 0.4rem; }

.profile-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.profile-col h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--sage-deep); }
.plain-list li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: rgba(13, 13, 12, 0.78);
}
.plain-list li:first-child { border-top: none; }

/* ============ Format (numbered) ============ */
.format { background: var(--paper); }
.format-heading { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 26ch; }
.format-sub { margin-top: 1rem; color: rgba(13, 13, 12, 0.6); font-size: 1.05rem; }
.format-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.format-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.format-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--sage); }
.format-content h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.format-content p { color: rgba(13, 13, 12, 0.72); max-width: 60ch; line-height: 1.6; }
.format-chain {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sage-deep);
  margin-top: 0.9rem !important;
}

/* ============ Image placeholders ============ */
.img-placeholder {
  aspect-ratio: 4/5;
  border: 2px dashed var(--line);
  border-radius: 4px;
  background: var(--sage-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.img-placeholder-icon {
  font-size: 1.6rem;
  color: var(--sage-deep);
  line-height: 1;
}
.img-placeholder-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-deep);
  max-width: 20ch;
}
.img-placeholder-tall { aspect-ratio: 3/4; }

/* ============ Gallery ============ */
.gallery-heading { font-size: clamp(1.9rem, 3.5vw, 2.4rem); max-width: 26ch; margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ============ Agenda ============ */
.agenda { background: var(--black); color: var(--white); }
.agenda-heading { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 3rem; }
.agenda-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.agenda-block { background: var(--black); padding: 2.25rem; }
.agenda-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.agenda-block-head h3 { font-size: 1.3rem; }
.agenda-block-head span { font-family: var(--font-display); font-size: 0.85rem; color: var(--sage); font-weight: 600; }
.agenda-block p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.agenda-outcome { margin-top: 1rem !important; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--sage); }

/* ============ Apply ============ */
.apply { background: var(--black); color: var(--white); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.apply-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.4rem); margin-top: 0.3rem; }
.apply-sub { margin-top: 1.2rem; color: rgba(255, 255, 255, 0.72); line-height: 1.6; max-width: 42ch; font-size: 1.05rem; }

.countdown { display: flex; gap: 1.75rem; margin-top: 2.75rem; }
.countdown-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.countdown-num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--sage); min-width: 2ch; text-align: center; }
.countdown-label { font-family: var(--font-display); font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); font-weight: 500; }

.apply-form { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light); border-radius: 8px; padding: clamp(1.75rem, 3vw, 2.5rem); }
.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-family: var(--font-display); font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.97rem;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--sage); }
.form-row select option { color: var(--black); }

.form-note { margin-top: 1rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); text-align: center; }
.form-success { margin-top: 1.5rem; padding: 1.5rem; background: rgba(180, 201, 124, 0.1); border: 1px solid rgba(180, 201, 124, 0.4); border-radius: 6px; }
.form-success h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--sage); }
.form-success p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }

/* ============ FAQ ============ */
.faq-heading { font-size: clamp(1.9rem, 3.5vw, 2.4rem); }
.faq-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}
.faq-icon { font-size: 1.4rem; color: var(--sage-deep); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-answer p { padding-bottom: 1.5rem; color: rgba(13, 13, 12, 0.68); line-height: 1.6; max-width: 60ch; }
.faq-answer a { color: var(--sage-deep); font-weight: 600; }

/* ============ Footer ============ */
.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.65); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; padding-bottom: 2.5rem; }
.footer-wordmark { font-size: 1.25rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-tag { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-links { display: flex; gap: 2rem; font-family: var(--font-display); font-size: 0.9rem; }
.footer-links a:hover { color: var(--sage); }
.footer-bottom { border-top: 1px solid var(--line-light); text-align: center; padding: 1.5rem var(--edge); font-size: 0.8rem; font-family: var(--font-display); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }

  .stat-circle { width: 220px; height: 220px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-columns { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .format-row { grid-template-columns: 1fr; gap: 0.5rem; }

  .agenda-blocks { grid-template-columns: 1fr; }

  .apply-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stat-circle { width: 190px; height: 190px; padding: 1.5rem; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .countdown { gap: 1.1rem; }
}

@media (max-width: 900px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
  }
}
