/* ─── Variables ────────────────────────────────────── */
:root {
  --bg:    #faf5ec;
  --text:  #1c1810;
  --dim:   rgba(28,24,16,0.60);
  --gold:  #b87010;
  --teal:  #1a8870;
  --warm:  #b84820;
  --line:  rgba(28,24,16,0.10);
  --card:  rgba(28,24,16,0.04);
  --f-display: 'Bebas Neue', sans-serif;
  --f-body:    'Space Grotesk', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* Per-session accent colours — darkened for light bg */
  --s1: #b87010;
  --s2: #1a8870;
  --s3: #b84820;
  --s4: #4060b8;
  --s5: #528030;
}

/* ─── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a6ea8; }

/* ─── Sections ─────────────────────────────────────── */
section {
  position: relative;
  min-height: 100svh;
  padding: clamp(64px,10vh,120px) clamp(24px,8vw,110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Subtle dot-grid on alternating sections */
#curriculum::before,
#preparedness::before,
#join::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28,24,16,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

section > * { position: relative; z-index: 1; }

/* ─── Hero ─────────────────────────────────────────── */
#hero {
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse 75% 55% at 50% 52%, rgba(220,150,20,0.14) 0%, transparent 65%), var(--bg);
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

#heroOrb {
  position: absolute;
  width: min(88vw, 680px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(64px, 14vw, 160px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(14px, 1.9vw, 17px);
  color: var(--dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 22px;
}

.hero-tools {
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.3vw, 14px);
  color: rgba(184,112,16,0.65);
  letter-spacing: 0.12em;
  margin-top: 12px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}

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

@keyframes lineDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── Shared section components ────────────────────── */
.label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-heading {
  font-family: var(--f-display);
  font-size: clamp(48px, 9.5vw, 112px);
  line-height: 1.0;
  margin-bottom: 40px;
}

/* ─── Curriculum ───────────────────────────────────── */
#curriculum { background: #f4ece0; }

.curriculum-intro {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--dim);
  max-width: 560px;
  line-height: 1.68;
  margin-bottom: 36px;
}

/* Session accordion */
.sess-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

details.sess-card {
  background: rgba(255,251,244,0.8);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

details.sess-card[open] {
  border-color: rgba(28,24,16,0.18);
  box-shadow: 0 2px 12px rgba(28,24,16,0.07);
}

/* Coloured left stripe per session */
details.sess-card:nth-child(1) { border-left: 3px solid var(--s1); }
details.sess-card:nth-child(2) { border-left: 3px solid var(--s2); }
details.sess-card:nth-child(3) { border-left: 3px solid var(--s3); }
details.sess-card:nth-child(4) { border-left: 3px solid var(--s4); }
details.sess-card:nth-child(5) { border-left: 3px solid var(--s5); }

details.sess-card summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  user-select: none;
  transition: background 0.18s;
}

details.sess-card summary:hover { background: rgba(28,24,16,0.03); }
details.sess-card summary::-webkit-details-marker { display: none; }

.sess-summary-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sess-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

details.sess-card:nth-child(1) .sess-num { color: var(--s1); }
details.sess-card:nth-child(2) .sess-num { color: var(--s2); }
details.sess-card:nth-child(3) .sess-num { color: var(--s3); }
details.sess-card:nth-child(4) .sess-num { color: var(--s4); }
details.sess-card:nth-child(5) .sess-num { color: var(--s5); }

.sess-title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.sess-brief {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--dim);
  margin-top: 2px;
}

/* [+ expand] / [– collapse] toggle */
.acc-toggle {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(184,112,16,0.35);
  border-radius: 3px;
  padding: 5px 10px;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
  transition: background 0.18s, border-color 0.18s;
}

details.sess-card summary:hover .acc-toggle {
  background: rgba(184,112,16,0.08);
  border-color: rgba(184,112,16,0.55);
}

details.sess-card .acc-toggle::before       { content: '+ expand'; }
details.sess-card[open] .acc-toggle::before { content: '– collapse'; }

.sess-body { padding: 4px 20px 24px 20px; }

.sess-covers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.sess-covers li {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.sess-covers li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.sess-divider { height: 1px; background: var(--line); margin: 14px 0; }

.sess-outcome-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.sess-outcome {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--dim);
  line-height: 1.6;
}

.sess-tools {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(28,24,16,0.28);
  letter-spacing: 0.03em;
}

/* ─── Own vs Rent ───────────────────────────────────── */
#own-rent { background: var(--bg); }

.data-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
}

details.data-item { border-bottom: 1px solid var(--line); }
details.data-item:first-child { border-top: 1px solid var(--line); }

details.data-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  color: var(--text);
  user-select: none;
  transition: color 0.18s;
}

details.data-item summary:hover { color: var(--gold); }
details.data-item summary::-webkit-details-marker { display: none; }

details.data-item .acc-toggle::before       { content: '+'; }
details.data-item[open] .acc-toggle::before { content: '–'; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.data-title { flex: 1; }

.data-sub {
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--dim);
  padding: 0 0 20px 21px;
  line-height: 1.65;
}

/* ─── Preparedness ──────────────────────────────────── */
#preparedness { background: #ede8e0; }

.incidents {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 680px;
  margin-bottom: 44px;
}

.incident {
  border-left: 2px solid rgba(184,72,32,0.45);
  padding-left: 20px;
}

.incident-when {
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(184,72,32,0.90);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.incident-what {
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}

.incident-detail {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--dim);
  line-height: 1.6;
}

.shutdown-alert {
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--teal);
  border: 1px solid rgba(26,136,112,0.35);
  border-radius: 4px;
  padding: 18px 24px;
  display: inline-block;
  line-height: 1.7;
  max-width: 680px;
  background: rgba(26,136,112,0.05);
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
  max-width: 680px;
}

.photo-slot {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,252,245,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  width: 100%;
}

.photo-slot-desc {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(28,24,16,0.40);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.65;
}

.photo { width: 100%; display: block; border-radius: 2px; }

/* ─── About Me ─────────────────────────────────────── */
#about { background: #f4ece0; }

.about-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 44px;
  max-width: 780px;
  align-items: start;
}

.about-photo-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-photo {
    display: block;
    max-width: 100px;
    margin: auto;
    border-radius: 50%;
}

.about-body { display: flex; flex-direction: column; gap: 18px; }

.about-text {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--dim);
  line-height: 1.78;
}

.about-text em { color: var(--text); font-style: normal; }

.about-photo-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(28,24,16,0.38);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ─── Join / CTA ───────────────────────────────────── */
#join { background: var(--bg); min-height: 60svh; }

.join-heading {
  font-family: var(--f-display);
  font-size: clamp(66px, 13vw, 140px);
  line-height: 0.93;
  margin-bottom: 28px;
}

.join-cta {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.contacts { display: flex; flex-direction: column; gap: 14px; }

.contact {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(17px, 2vw, 21px);
  transition: color 0.18s;
}

.contact:hover { color: var(--gold); }

.contact-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  width: 88px;
  flex-shrink: 0;
}

.join-foot {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.farsi-tag {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--dim);
}

.terminal-link {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}

.terminal-link:hover { color: var(--gold); }

/* ─── Mobile ───────────────────────────────────────── */
@media (max-width: 700px) {
  section { padding: 60px 20px; }
  #heroOrb { width: 96vw; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .photo-row { grid-template-columns: 1fr; }
  .acc-toggle { display: none; }
}
