/* === DESIGN TOKENS === */
:root {
  --ivory: #FAF8F3;
  --ivory-2: #F2EDE3;
  --charcoal: #1A1917;
  --charcoal-2: #2C2A27;
  --forest: #1B4332;
  --forest-2: #2D6A4F;
  --forest-3: #40916C;
  --forest-bg: #EAF2EC;
  --amber: #D4820A;
  --amber-tint: #FDF3E3;
  --blue: #6B9FD4;
  --blue-tint: #EBF3FB;
  --bright-green: #2D9E6B;
  --bright-green-tint: #E8F7F1;
  --purple: #9B59B6;
  --purple-tint: #F5EEF8;
  --red-tint: #FDEDEC;
  --ivory-3: #E8E4DA;
  --charcoal-4: #908C84;
  --charcoal-5: #C4C0B8;
  --disp: 'Cormorant Garamond', Georgia, serif;
  --mono: 'Space Mono', monospace;
  --nav-h: 56px;
  --panel-h: 58vh;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  cursor: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* === CURSOR === */
#cur {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--forest);
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
}

/* === SCROLL PROGRESS === */
#bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--forest-3);
  z-index: 1000;
  transition: width 0.1s;
}

/* === NAV === */
nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h); z-index: 100;
  background: rgba(250,248,243,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ivory-3);
  display: flex; align-items: stretch;
}
.nav-brand {
  display: flex; align-items: center;
  padding: 0 28px;
  border-right: 1px solid var(--ivory-3);
  text-decoration: none; flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--disp); font-weight: 700;
  font-size: 17px; letter-spacing: .01em;
  color: var(--charcoal); line-height: 1;
}
.nav-wordmark span { color: var(--forest-2); font-style: italic; font-weight: 400; }
.nav-items {
  display: flex; align-items: stretch;
  list-style: none; flex: 1; overflow: hidden;
}
.nav-items li { display: flex; }
.nav-items a {
  display: flex; align-items: center; gap: 7px;
  padding: 0 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal-4);
  border-right: 1px solid var(--ivory-3);
  white-space: nowrap; transition: all .15s;
}
.nav-items a:hover { color: var(--charcoal); background: var(--ivory-2); }
.nav-items a.active { color: var(--forest); background: var(--forest-bg); }
.nav-n { font-size: 9px; color: var(--charcoal-5); }
.nav-items a.active .nav-n { color: var(--forest-3); }
.nav-flag {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 20px; border-left: 1px solid var(--ivory-3);
  font-family: var(--mono); font-size: 10px;
  color: var(--charcoal-4); white-space: nowrap;
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 56px; background: none; border: none;
  border-left: 1px solid var(--ivory-3);
  flex-shrink: 0; margin-left: auto;
}
.nav-burger span { width: 20px; height: 1.5px; background: var(--charcoal); display: block; transition: all .25s; }

/* === SCROLL REVEAL === */
.r { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.r.v { opacity: 1; transform: none; }

/* === PAGE WRAPPER === */
main { padding-top: var(--nav-h); }

/* === SECTION BASE === */
.section {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 96px 80px;
  gap: 0 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest-3);
  padding-top: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: fit-content;
}

/* === TYPOGRAPHY === */
.headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-bottom: 24px;
}
.lead {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6; opacity: 0.8;
  max-width: 680px; margin-bottom: 48px;
}
.body-p { font-size: 15px; line-height: 1.7; opacity: 0.75; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }

/* === METHOD GRID === */
.method-grid { border-top: 1px solid rgba(27,67,50,0.12); margin-top: 48px; }
.method-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(27,67,50,0.08);
}
.method-row .method-name { font-size: 14px; font-weight: 600; }
.method-row .method-obj { font-size: 14px; opacity: 0.7; }
.method-row i { color: var(--forest-3); font-size: 18px; }

/* === DARK SECTION === */
.dark-section {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 96px 80px;
}
.dark-section .section-label { color: rgba(255,255,255,0.3); }
.dark-section .headline { color: var(--ivory); }
.dark-section .lead { color: var(--ivory); }

/* === TIMELINE === */
.timeline-outer { position: relative; padding: 80px 0 120px; }
.timeline-zones { display: flex; justify-content: space-between; margin-bottom: 16px; }
.zone-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 600;
  opacity: 0.25; letter-spacing: -0.01em;
}
.zone-label.before { color: var(--forest-3); flex: 0 0 33%; }
.zone-label.during { color: var(--amber); flex: 0 0 33%; text-align: center; }
.zone-label.after  { color: var(--blue);  flex: 0 0 33%; text-align: right; }

.timeline-track { position: relative; height: 100px; }
.timeline-line {
  position: absolute; top: 40px; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,0.15);
}
.zone-divider {
  position: absolute; top: 20%; height: 40%;
  width: 1px; background: rgba(255,255,255,0.2);
}
.timeline-node {
  position: absolute; top: 40px;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid; background: var(--charcoal);
  cursor: none;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.timeline-node:hover { transform: translate(-50%, -50%) scale(1.2); }
.timeline-node.active { transform: translate(-50%, -50%) scale(1.15); }
.timeline-node.before { border-color: var(--forest-3); }
.timeline-node.before.active { background: var(--forest-3); box-shadow: 0 0 0 6px rgba(64,145,108,0.2); }
.timeline-node.during { border-color: var(--amber); }
.timeline-node.during.active { background: var(--amber); box-shadow: 0 0 0 6px rgba(212,130,10,0.2); }
.timeline-node.after { border-color: var(--blue); }
.timeline-node.after.active { background: var(--blue); box-shadow: 0 0 0 6px rgba(107,159,212,0.2); }
.node-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.timeline-node.before .node-dot { color: var(--forest-3); }
.timeline-node.during .node-dot { color: var(--amber); }
.timeline-node.after  .node-dot { color: var(--blue); }
.node-label {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap; text-align: center;
  line-height: 1.4;
}
.timeline-node.active .node-label { color: rgba(255,255,255,0.9); }
.timeline-hint {
  text-align: center; margin-top: 56px;
  font-size: 12px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* === SLIDING PANEL === */
.tl-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--panel-h);
  background: var(--charcoal-2);
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.23,1,.32,1);
  z-index: 600; overflow-y: auto;
}
.tl-panel.open { transform: translateY(0); }
.tl-panel-inner { max-width: 900px; margin: 0 auto; padding: 48px 40px; }
.tl-panel-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 32px;
}
.tl-panel-zone {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-panel-zone.before { color: var(--forest-3); }
.tl-panel-zone.during { color: var(--amber); }
.tl-panel-zone.after  { color: var(--blue); }
.tl-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 600; color: var(--ivory);
}
.tl-close {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; width: 36px; height: 36px;
  color: var(--ivory); cursor: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.tl-close:hover { background: rgba(255,255,255,0.1); }
.tl-panel-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tl-panel-section h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 12px;
}
.tl-panel-section p,
.tl-panel-section li { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.75); }
.tl-panel-section ul { list-style: none; padding: 0; }
.tl-panel-section ul li { padding: 4px 0 4px 16px; position: relative; }
.tl-panel-section ul li::before {
  content: '→'; position: absolute; left: 0;
  color: rgba(255,255,255,0.3); font-size: 12px;
}

/* === DOS & DON'TS === */
.warm-section { background: var(--ivory-2); padding: 96px 80px; }
.warm-inner { max-width: 1280px; margin: 0 auto; }
.warm-grid { display: grid; grid-template-columns: 120px 1fr; gap: 0 40px; }
.dos-donts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.dos-col h3, .donts-col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600; margin-bottom: 24px;
}
.dos-col h3 { color: var(--bright-green); }
.donts-col h3 { color: #C0392B; }
.dd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid rgba(27,67,50,0.08);
}
.dd-item:last-child { border-bottom: none; }
.dd-item i { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.dos-col  .dd-item i { color: var(--bright-green); }
.donts-col .dd-item i { color: #C0392B; }
.dd-item p { font-size: 15px; line-height: 1.6; opacity: 0.8; }

/* === INCLUSIVE PRACTICE === */
.inclusive-section { background: var(--forest-bg); padding: 96px 80px; }
.inclusive-inner { max-width: 1280px; margin: 0 auto; }
.inclusive-grid-outer { display: grid; grid-template-columns: 120px 1fr; gap: 0 40px; }
.inclusive-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 48px;
}
.inclusive-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: white; border-radius: 12px; padding: 24px;
}
.inclusive-item i { font-size: 20px; color: var(--forest-3); flex-shrink: 0; margin-top: 2px; }
.inclusive-item h4 { font-size: 15px; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
.inclusive-item p { font-size: 14px; line-height: 1.6; opacity: 0.75; }

/* === ACTIVITY REPOSITORY === */
.repo-section { background: var(--ivory-2); }
.filter-bar {
  position: sticky; top: var(--nav-h);
  background: var(--ivory-2);
  border-bottom: 1px solid rgba(27,67,50,0.1);
  z-index: 400; padding: 0 80px;
}
.filter-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-group {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 24px 14px 0;
  border-right: 1px solid rgba(27,67,50,0.1);
  margin-right: 24px; flex-shrink: 0;
}
.filter-group:last-child { border-right: none; margin-right: 0; }
.filter-group-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.4; white-space: nowrap; margin-right: 4px;
}
.filter-btn {
  font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: 20px;
  border: 1px solid rgba(27,67,50,0.15);
  background: transparent; cursor: none;
  transition: all 0.2s; white-space: nowrap;
}
.filter-btn:hover { background: rgba(27,67,50,0.06); }
.filter-btn.active { background: var(--forest); color: white; border-color: var(--forest); }

.repo-inner { padding: 64px 80px 96px; max-width: 1280px; margin: 0 auto; }
.repo-header { margin-bottom: 48px; }
.activity-count { font-size: 13px; opacity: 0.5; margin-top: 8px; }
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.activity-card {
  background: #fff; border-radius: 4px; padding: 24px;
  cursor: none; border: 1px solid var(--ivory-3);
  transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.activity-card:hover { border-color: var(--forest-3); box-shadow: 0 4px 20px rgba(27,67,50,.1); }
.activity-card.hidden { display: none; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.badge-discussion    { background: var(--blue-tint); color: #2C6FAA; }
.badge-experiential  { background: var(--forest-bg); color: var(--forest); }
.badge-creative      { background: var(--purple-tint); color: #7D3C98; }
.badge-competitive   { background: var(--amber-tint); color: #A6620B; }
.badge-reflective    { background: var(--bright-green-tint); color: #1A7049; }
.badge-simple        { background: var(--bright-green-tint); color: #1A7049; }
.badge-intermediate  { background: var(--amber-tint); color: #A6620B; }
.badge-advanced      { background: var(--red-tint); color: #C0392B; }
.card-name { font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--charcoal); line-height: 1.15; }
.card-meta { display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--charcoal-4); }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-purpose { font-size: 13px; font-weight: 300; color: var(--charcoal-3); line-height: 1.65; flex: 1; }
.card-btn { margin-top: 4px; width: 100%; padding: 10px; border: 1px solid var(--forest-3); background: var(--forest-bg); color: var(--forest); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; cursor: none; transition: all .18s; }
.card-btn:hover { background: var(--forest); color: #fff; }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,25,23,0.6);
  backdrop-filter: blur(4px);
  z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--ivory); border-radius: 16px;
  max-width: 720px; width: 100%; max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(.23,1,.32,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(27,67,50,0.1);
  display: flex; justify-content: space-between; align-items: flex-start;
  position: sticky; top: 0; z-index: 2;
  background: var(--ivory); border-radius: 16px 16px 0 0;
}
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--forest); }
.modal-close {
  background: none; border: 1px solid rgba(27,67,50,0.15);
  border-radius: 50%; width: 36px; height: 36px;
  cursor: none; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s; color: var(--charcoal);
}
.modal-close:hover { background: var(--forest-bg); }
.modal-body { padding: 32px; }
.modal-section { margin-bottom: 28px; }
.modal-section h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest-3); margin-bottom: 12px;
}
.modal-section p, .modal-section li { font-size: 14px; line-height: 1.7; opacity: 0.8; }
.modal-section ul { list-style: none; padding: 0; }
.modal-section ul li { padding: 4px 0 4px 20px; position: relative; }
.modal-section ul li::before { content: '→'; position: absolute; left: 0; color: var(--forest-3); font-size: 12px; }
.modal-meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; background: var(--forest-bg);
  border-radius: 10px; padding: 20px; margin-bottom: 28px;
}
.modal-meta-item { text-align: center; }
.meta-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); opacity: 0.6; margin-bottom: 4px; }
.meta-value { font-size: 14px; font-weight: 600; color: var(--forest); }

/* === NEXT SECTION === */
.next-section { padding: 32px 80px; background: var(--ivory-2); border-top: 1px solid var(--ivory-3); display: flex; justify-content: flex-end; }
.next-link { text-decoration: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.next-label { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal-5); }
.next-title { font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--charcoal); display: flex; align-items: center; gap: 8px; transition: color .15s; }
.next-link:hover .next-title { color: var(--forest); }

/* === FOOTER === */
footer {
  background: var(--charcoal-2);
  padding: 52px 80px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
.f-text { font-family: var(--mono); font-size: 10px; line-height: 1.9; color: rgba(255,255,255,.45); max-width: 540px; }
.f-logos { display: flex; flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.f-logo {
  height: 34px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .section { grid-template-columns: 1fr; padding: 64px 24px; }
  .section-label { writing-mode: horizontal-tb; transform: none; margin-bottom: 16px; }
  .two-col, .dos-donts-grid, .inclusive-grid, .tl-panel-content { grid-template-columns: 1fr; }
  .dark-section, .warm-section, .inclusive-section { padding: 64px 24px; }
  .warm-grid, .inclusive-grid-outer { grid-template-columns: 1fr; }
  .warm-grid .section-label, .inclusive-grid-outer .section-label { writing-mode: horizontal-tb; transform: none; margin-bottom: 16px; }
  .filter-bar { padding: 0 24px; }
  .repo-inner { padding: 40px 24px 64px; }
  footer { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; }
  .f-logos { align-items: flex-start; }
  .next-section { padding: 28px 24px; }
  .nav-items { display: none; }
  .nav-flag { display: none; }
  .nav-burger { display: flex; }
  .nav-items.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h);
    left: 0; right: 0; background: var(--ivory);
    border-bottom: 1px solid var(--ivory-3);
    padding: 6px 0; z-index: 99;
  }
  .nav-items.open li { width: 100%; }
  .nav-items.open a { border-right: none; border-bottom: 1px solid var(--ivory-3); padding: 14px 24px; width: 100%; }
  /* Mobile timeline: vertical */
  .timeline-track { height: 720px; }
  .timeline-line { width: 2px; height: 100%; left: 30px; top: 0; right: auto; transform: none; }
  .zone-divider { display: none; }
  .timeline-node {
    left: 30px !important;
    transform: translate(-50%, -50%);
  }
  /* Vertical positions for each node */
  [data-node="define-design"]   { top: 40px !important; }
  [data-node="plan-arc"]        { top: 110px !important; }
  [data-node="prepare-space"]   { top: 180px !important; }
  [data-node="brief-launch"]    { top: 280px !important; }
  [data-node="observe-manage"]  { top: 350px !important; }
  [data-node="intervene-pivot"] { top: 420px !important; }
  [data-node="debrief"]         { top: 520px !important; }
  [data-node="close"]           { top: 590px !important; }
  [data-node="document-reflect"]{ top: 660px !important; }
  .node-label {
    top: 50%; left: calc(100% + 14px);
    transform: translateY(-50%);
    text-align: left; white-space: nowrap;
  }
  .timeline-zones { flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .zone-label.before, .zone-label.during, .zone-label.after { text-align: left; flex: none; }
  .tl-panel { height: 100vh; }
  .tl-panel-content { grid-template-columns: 1fr; }
}
