/* ================================================================
   INSTITUTE OF MINDUSTRY — DESIGN SYSTEM
   Dark luxury editorial aesthetic
   Red · White · Black  +  Gold accent
================================================================ */

:root {
  --ink:         #0A0A0A;
  --surface:     #141414;
  --surface-2:   #1C1C1C;
  --red:         #C0001A;
  --red-dark:    #8C0013;
  --gold:        #C4A35A;
  --gold-muted:  rgba(196, 163, 90, 0.12);
  --gold-border: rgba(196, 163, 90, 0.22);
  --cream:       #F5F0EB;
  --muted:       rgba(245, 240, 235, 0.48);
  --border:      rgba(255, 255, 255, 0.07);

  --serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:     'Inter', system-ui, -apple-system, Arial, sans-serif;

  --max-w:    1200px;
  --px:       clamp(20px, 5vw, 64px);
  --section:  clamp(72px, 9vw, 120px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ol, ul   { list-style: none; }

/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
}

/* TYPOGRAPHY */
.gold-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-header {
  max-width: 660px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-top: 14px;
}

.section-verse {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(192, 0, 26, 0.30);
  transition: background 0.22s, transform 0.22s var(--ease-out), box-shadow 0.22s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(192, 0, 26, 0.38);
}

.btn-primary.full-width { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-muted);
  transform: translateY(-2px);
}

/* LOGO IMAGE SIZING */
.topbar-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.hero-logomark img {
  width: clamp(80px, 13vw, 130px);
  height: auto;
  filter: drop-shadow(0 14px 52px rgba(192, 0, 26, 0.46));
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* SIDE NAV DOTS */
.sidenav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 13px;
  z-index: 300;
}

.sidenav-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.18);
  border: 1px solid rgba(245, 240, 235, 0.22);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.sidenav-dot:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
  transform: scale(1.6);
}

.sidenav-dot.active {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.35);
}

/* TOP BAR */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  z-index: 400;
  transition: background 0.35s, border-color 0.35s;
}

.topbar.scrolled {
  background: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.topbar-wordmark {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}

.topbar-cta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(192, 0, 26, 0.38);
  padding: 8px 18px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.topbar-cta:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: none;
  padding-top: 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  translate: -50% 0;
  width: clamp(320px, 56vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 0, 26, 0.13) 0%, transparent 68%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.hero-logomark {
  width: clamp(72px, 11vw, 112px);
  filter: drop-shadow(0 14px 52px rgba(192, 0, 26, 0.46));
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9.5vw, 8rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-top: 4px;
}

.hero-sub {
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

.br-lg { display: block; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.38;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* META STRIP */
.meta-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin-inline: auto;
}

.meta-item {
  padding: 30px var(--px);
  border-right: 1px solid var(--border);
}

.meta-item:last-child { border-right: none; }

.meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.meta-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}

/* FOUNDATION / PILLARS */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar-card {
  background: var(--surface);
  padding: clamp(24px, 3vw, 40px);
  border-top: 2px solid transparent;
  transition: border-top-color 0.3s, background 0.3s;
}

.pillar-card:hover {
  border-top-color: var(--gold);
  background: var(--surface-2);
}

.pillar-num {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 18px;
}

.pillar-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 12px;
}

.pillar-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 14px;
}

.pillar-scripture {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.75;
}

/* FORMAT SECTION */
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.format-card {
  background: var(--surface);
  padding: clamp(28px, 4vw, 52px);
}

.format-card-accent {
  background: var(--surface-2);
  border-left: 2px solid var(--gold);
}

.format-track {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.format-card-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 14px;
}

.format-card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 24px;
}

.format-list { display: grid; gap: 10px; }

.format-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.format-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

/* SCHEDULE */
.schedule-list { border: 1px solid var(--border); }

.schedule-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover      { background: var(--surface); }
.schedule-row-break      { opacity: 0.48; }

.schedule-time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.schedule-session {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}

.schedule-speaker {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}

/* COHORT ACCORDION */
.cohort-list { border: 1px solid var(--border); }

.cohort-week { border-bottom: 1px solid var(--border); }
.cohort-week:last-child { border-bottom: none; }

.cohort-summary {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
  user-select: none;
}

.cohort-summary::-webkit-details-marker,
.cohort-summary::marker { display: none; }

.cohort-week[open] .cohort-summary,
.cohort-summary:hover { background: var(--surface); }

.week-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.week-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}

.week-arrow {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.cohort-week[open] .week-arrow { transform: rotate(45deg); }

.cohort-body {
  padding: 0 28px 28px;
  display: grid;
  gap: 12px;
}

.cohort-body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
}

.cohort-scripture {
  font-family: var(--serif) !important;
  font-size: 1rem !important;
  font-style: italic;
  color: var(--gold) !important;
  opacity: 0.9;
}

/* REGISTRATION */
.reg-card {
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  padding: clamp(28px, 4.5vw, 56px);
  max-width: 800px;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-label {
  display: grid;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select {
  font-family: var(--sans);
  font-size: 0.95rem;
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder { color: rgba(245, 240, 235, 0.24); }

input:focus, select:focus {
  border-color: rgba(196, 163, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.08);
}

select { cursor: pointer; }
select option { background: var(--surface-2); color: var(--cream); }

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* WAITLIST */
.waitlist-section { background: var(--surface); }

.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.waitlist-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.08;
  margin: 12px 0 10px;
}

.waitlist-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.72;
}

.waitlist-form { display: grid; gap: 12px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(52px, 8vw, 88px);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--muted);
}

.footer-divider {
  color: var(--border);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 235, 0.22);
}

.footer-flw {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-flw:hover { opacity: 1; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

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

.pillar-grid .pillar-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.pillar-grid .pillar-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.pillar-grid .pillar-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.pillar-grid .pillar-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.pillar-grid .pillar-card.reveal:nth-child(6) { transition-delay: 0.40s; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  translate: -50% 14px;
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  color: var(--cream);
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s var(--ease-out);
  z-index: 500;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* RESPONSIVE — TABLET <= 900px */
@media (max-width: 900px) {
  .sidenav         { display: none; }
  .topbar-wordmark { display: none; }

  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-item:nth-child(2) { border-right: none; }
  .meta-item:nth-child(3),
  .meta-item:nth-child(4) { border-top: 1px solid var(--border); }

  .pillar-grid { grid-template-columns: repeat(2, 1fr); }

  .format-grid { grid-template-columns: 1fr; }
  .format-card-accent { border-left: none; border-top: 2px solid var(--gold); }

  .schedule-row   { padding: 16px 20px; }
  .cohort-summary { padding: 20px; gap: 14px; }

  .waitlist-inner { grid-template-columns: 1fr; }
}

/* RESPONSIVE — MOBILE <= 580px */
@media (max-width: 580px) {
  .br-lg { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

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

  .schedule-row {
    grid-template-columns: 72px 1fr;
    padding: 14px 16px;
    gap: 14px;
  }

  .cohort-summary {
    grid-template-columns: 1fr auto;
    padding: 16px;
    gap: 10px;
  }
  .week-num { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-tagline { font-size: 1rem; }
}
