/* ═══════════════════════════════════════════════════════
   SECTION 05 — DIGITAL & AI
   Youthwork Playground Toolkit
═══════════════════════════════════════════════════════ */

/* ═══ DESIGN TOKENS ═══ */
:root {
  --ivory:      #FAF8F3;
  --ivory-2:    #F2EFE7;
  --ivory-3:    #E8E4DA;
  --white:      #FFFFFF;
  --charcoal:   #1A1917;
  --charcoal-2: #2E2C29;
  --charcoal-3: #5C5950;
  --charcoal-4: #908C84;
  --charcoal-5: #C4C0B8;
  --forest:     #1B4332;
  --forest-2:   #2D6A4F;
  --forest-3:   #40916C;
  --forest-bg:  #EAF2EC;
  --amber:      #D4820A;
  --amber-bg:   #FDF3E3;
  --blue:       #6B9FD4;
  --blue-bg:    #EBF3FB;
  --bright-green: #2D9E6B;
  --purple:     #9B59B6;

  --disp: 'Cormorant Garamond', Georgia, serif;
  --body: 'Nunito Sans', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;

  --nav-h: 56px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ═══ CURSOR ═══ */
* { cursor: none !important; }
#cur {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--forest);
  transform: translate(-50%, -50%);
  transition: width .22s cubic-bezier(.23,1,.32,1),
              height .22s cubic-bezier(.23,1,.32,1),
              opacity .22s;
  mix-blend-mode: multiply;
}
#cur.expand { width: 32px; height: 32px; opacity: .2; }

/* ═══ PROGRESS BAR ═══ */
#bar {
  position: fixed; top: var(--nav-h); left: 0;
  height: 2px; width: 0%;
  background: var(--forest-3);
  z-index: 96; transition: width .08s linear;
}

/* ═══ NAVIGATION ═══ */
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; }

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

/* ═══════════════════════════════════
   SHARED SECTION LAYOUT
═══════════════════════════════════ */
.s5-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 40px;
  padding: 96px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.s5-aside {
  display: flex; flex-direction: column;
  align-items: flex-start; padding-top: 8px;
  position: relative;
}
.s5-num {
  font-family: var(--disp); font-weight: 700;
  font-size: 80px; line-height: 1; letter-spacing: -.04em;
  color: rgba(27,67,50,0.10); user-select: none;
  display: block; margin-bottom: 16px;
}
.s5-num--light { color: rgba(255,255,255,0.08); }
.s5-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest-2); writing-mode: vertical-lr;
  transform: rotate(180deg); display: block;
  margin-top: 12px;
}
.s5-tag--light { color: var(--forest-3); }
.s5-body { min-width: 0; }

/* ═══ TYPOGRAPHY ═══ */
.s5-headline {
  font-family: var(--disp); font-weight: 300;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--charcoal); margin-bottom: 28px;
}
.s5-headline strong { font-weight: 700; }
.s5-headline em { font-style: italic; font-weight: 300; color: var(--forest-2); }
.s5-headline--light { color: var(--white); }
.s5-headline--light em { color: var(--forest-3); }

.s5-lead {
  font-family: var(--disp); font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 300;
  line-height: 1.6; color: var(--charcoal-2);
  margin-bottom: 40px; max-width: 640px;
}
.s5-lead--light { color: rgba(255,255,255,0.75); }
.s5-lead--center { text-align: center; margin-left: auto; margin-right: auto; }

.s5-body-p {
  font-family: var(--body); font-size: 15px; line-height: 1.82;
  font-weight: 300; color: var(--charcoal-3);
  margin-bottom: 20px;
}
.s5-body-p:last-child { margin-bottom: 0; }
.s5-body-p--light { color: rgba(255,255,255,0.65); }

.s5-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin-top: 32px;
}

/* ═══ PART 1 — THEORY SPECIFIC ═══ */
.p1-wrap { background: var(--ivory); }

.p1-headline-block { margin-bottom: 32px; }
.p1-headline-line1 {
  font-family: var(--disp); font-weight: 300;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--charcoal); display: block;
}
.p1-headline-line2 {
  font-family: var(--disp); font-style: italic; font-weight: 300;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--forest-2); display: block;
}

/* Currency callout */
.callout-info {
  background: var(--forest-bg);
  border-left: 4px solid var(--forest);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  margin-top: 40px;
  display: flex; gap: 16px; align-items: flex-start;
}
.callout-info i { font-size: 20px; color: var(--forest); flex-shrink: 0; margin-top: 2px; }
.callout-info-content {}
.callout-info-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 8px; display: block;
}
.callout-info-body {
  font-family: var(--body); font-size: 14px; font-weight: 300;
  line-height: 1.75; color: var(--charcoal-3);
}

/* ═══ PART 2 — TEXT TOOLS ═══ */
.p2-wrap { background: var(--ivory); border-top: 1px solid var(--ivory-3); }

.p2-intro-body {
  font-family: var(--body); font-size: 15px; font-weight: 300;
  line-height: 1.82; color: var(--charcoal-3); margin-bottom: 48px;
  max-width: 720px;
}

/* Tool card — light version */
.tool-cards-row {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.tool-cards-row--3 { grid-template-columns: repeat(3, 1fr); }
.tool-cards-row--2 { grid-template-columns: repeat(2, 1fr); }

.tool-card {
  background: var(--white);
  border: 1px solid var(--ivory-3);
  border-radius: 8px;
  padding: 28px;
  border-left-width: 4px;
  border-left-style: solid;
  display: flex; flex-direction: column; gap: 0;
  transition: box-shadow .2s, border-color .2s;
}
.tool-card:hover {
  box-shadow: 0 6px 24px rgba(27,67,50,.09);
}

.tool-card-name {
  font-family: var(--disp); font-weight: 700;
  font-size: 22px; letter-spacing: -.01em;
  color: var(--charcoal); line-height: 1.15;
  margin-bottom: 4px;
}
.tool-card-maker {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--charcoal-5); margin-bottom: 10px;
}
.tool-card-position {
  font-family: var(--body); font-style: italic;
  font-size: 13px; font-weight: 400;
  color: var(--forest-3); margin-bottom: 20px;
  line-height: 1.5;
}
.tool-card-section-label {
  font-family: var(--body); font-size: 12px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 4px; margin-top: 14px;
}
.tool-card-body {
  font-family: var(--body); font-size: 13px; font-weight: 300;
  line-height: 1.75; color: var(--charcoal-3); flex: 1;
}
.tool-card-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--ivory-3);
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card-free {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--forest-bg); color: var(--forest);
  padding: 3px 8px; border-radius: 2px; display: inline-block;
  align-self: flex-start;
}
.tool-card-bestfor {
  font-family: var(--disp); font-style: italic;
  font-size: 13px; color: var(--charcoal-4); line-height: 1.45;
}

/* Tag chip inside dark cards */
.tool-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  display: inline-block; margin-bottom: 14px;
  align-self: flex-start;
}
.tool-tag--amber { background: rgba(212,130,10,.15); color: var(--amber); }
.tool-tag--blue  { background: rgba(107,159,212,.15); color: var(--blue); }
.tool-tag--green { background: rgba(40,158,107,.15); color: var(--bright-green); }
.tool-tag--forest{ background: var(--forest-bg); color: var(--forest-3); }
.tool-tag--muted { background: rgba(255,255,255,.08); color: var(--charcoal-4); }
.tool-tag--dark-muted { background: rgba(144,140,132,.15); color: var(--charcoal-4); }

/* ═══ PART 3 — IMAGE GENERATION ═══ */
.p3-wrap { background: var(--charcoal); }

.p3-inner {
  padding: 96px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.p3-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 40px;
  margin-bottom: 56px;
}
.p3-intro-text {
  font-family: var(--disp); font-style: italic;
  font-size: clamp(18px, 1.9vw, 22px); font-weight: 300;
  line-height: 1.65; color: rgba(255,255,255,0.65);
  max-width: 640px; text-align: center;
  margin: 0 auto 48px;
}
.p3-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin-bottom: 64px;
}

/* Dark tool card */
.tool-card--dark {
  background: #2A2825;
  border: 1px solid rgba(255,255,255,.07);
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 8px;
  padding: 28px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.tool-card--dark:hover { box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.tool-card--dark .tool-card-name { color: var(--ivory); }
.tool-card--dark .tool-card-maker { color: rgba(255,255,255,.3); }
.tool-card--dark .tool-card-position { color: var(--forest-3); }
.tool-card--dark .tool-card-section-label { color: rgba(255,255,255,.7); }
.tool-card--dark .tool-card-body { color: rgba(255,255,255,.55); }
.tool-card--dark .tool-card-footer { border-color: rgba(255,255,255,.08); }
.tool-card--dark .tool-card-bestfor { color: rgba(255,255,255,.4); }

.tool-card-icon {
  font-size: 22px; color: var(--forest-3);
  margin-bottom: 12px; display: block;
}

.sub-section-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 20px; margin-top: 48px;
  display: block;
}
.sub-section-label--first { margin-top: 0; }

.tool-cards-row--4 { grid-template-columns: repeat(4, 1fr); }

/* Integrated vs standalone tint distinction */
.tool-card--dark.integrated { background: #252321; }

/* ═══ PART 4 — VIDEO ═══ */
.p4-wrap { background: var(--ivory); border-top: 1px solid var(--ivory-3); }

/* Video disclaimer callout */
.callout-warn {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  margin-bottom: 40px;
  display: flex; gap: 16px; align-items: flex-start;
}
.callout-warn i { font-size: 20px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.callout-warn-content {}
.callout-warn-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 8px; display: block;
}
.callout-warn-body {
  font-family: var(--body); font-size: 14px; font-weight: 300;
  line-height: 1.75; color: var(--charcoal-3);
}

.tool-cards-row--2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ═══ PART 5 — VOICE ═══ */
.p5-wrap { background: var(--forest-bg); border-top: 1px solid rgba(27,67,50,.12); }

.p5-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 96px 80px;
}
.p5-header {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 0 40px; margin-bottom: 64px;
}

.p5-num { color: rgba(27,67,50,0.12); }
.p5-tag { color: var(--forest-2); }

.voice-headline {
  font-family: var(--disp); font-weight: 300;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--forest); margin-bottom: 28px;
}
.voice-headline em { font-style: italic; color: var(--forest-2); }

.voice-lead {
  font-family: var(--disp); font-style: italic;
  font-size: clamp(18px, 2vw, 22px); font-weight: 300;
  line-height: 1.6; color: var(--forest-2);
  margin-bottom: 48px; max-width: 640px;
}

.voice-sub-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest-3); opacity: 0.6; margin-bottom: 12px; display: block;
}
.voice-sub-intro {
  font-family: var(--body); font-size: 15px; font-weight: 300;
  line-height: 1.82; color: var(--charcoal-3);
  margin-bottom: 32px; max-width: 720px;
}

/* voice cards use light style but on forest-bg */
.tool-card--voice {
  background: var(--white);
  border: 1px solid rgba(27,67,50,.12);
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 8px;
  padding: 28px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.tool-card--voice:hover { box-shadow: 0 6px 24px rgba(27,67,50,.1); }
.tool-card--voice .tool-card-footer { border-color: rgba(27,67,50,.1); }

.voice-divider {
  border: none;
  border-top: 1px solid rgba(27,67,50,.12);
  margin: 56px 0;
}

/* ═══ PART 6 — INCLUSION ═══ */
.p6-wrap { background: var(--charcoal); }
.p6-inner {
  padding: 96px 80px;
  max-width: 1280px; margin: 0 auto;
}
.p6-header {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 0 40px; margin-bottom: 56px;
}

.p6-section-intro {
  font-family: var(--disp); font-style: italic;
  font-size: clamp(18px, 1.9vw, 22px); font-weight: 300;
  line-height: 1.65; color: rgba(255,255,255,0.65);
  max-width: 640px; text-align: center;
  margin: 0 auto 56px;
}

.p6-headline {
  font-family: var(--disp); font-weight: 300;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 32px;
}
.p6-headline em { font-style: italic; color: var(--forest-3); }

.p6-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin-bottom: 64px;
}
.p6-body-p {
  font-family: var(--body); font-size: 15px; font-weight: 300;
  line-height: 1.82; color: rgba(255,255,255,.65);
}

/* Inclusion use case list */
.inclusion-list {
  display: flex; flex-direction: column;
}
.inclusion-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.inclusion-item:last-child { border-bottom: none; }
.inclusion-item-icon {
  font-size: 22px; color: var(--forest-3);
  flex-shrink: 0; margin-top: 4px;
}
.inclusion-item-content { flex: 1; min-width: 0; }
.inclusion-item-title {
  font-family: var(--disp); font-weight: 700;
  font-size: 20px; color: var(--white);
  margin-bottom: 12px; line-height: 1.2;
}
.inclusion-item-body {
  font-family: var(--body); font-size: 14px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.inclusion-tools-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px; display: block;
}
.inclusion-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.inclusion-chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(212,130,10,.12); color: var(--amber);
  padding: 4px 10px; border-radius: 4px;
}

/* ═══ COMPLETION BLOCK ═══ */
.completion-wrap {
  background: var(--ivory-2);
  border-top: 1px solid var(--ivory-3);
  padding: 56px 80px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
}
.completion-icon { font-size: 32px; color: var(--forest-3); }
.completion-mono {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--charcoal-5);
}
.completion-text {
  font-family: var(--disp); font-style: italic;
  font-size: 20px; font-weight: 300;
  color: var(--charcoal-3); line-height: 1.5;
}

/* ═══ 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: 1100px) {
  .tool-cards-row--3 { grid-template-columns: repeat(2, 1fr); }
  .tool-cards-row--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .s5-section,
  .p3-header,
  .p5-header,
  .p6-header {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    gap: 0;
  }
  .s5-aside { flex-direction: row; align-items: center; gap: 16px; margin-bottom: 20px; }
  .s5-num { font-size: 48px; margin-bottom: 0; }
  .s5-tag { writing-mode: horizontal-tb; transform: none; margin-top: 0; }

  .p3-inner,
  .p5-inner,
  .p6-inner { padding: 64px 24px; }

  .s5-two-col,
  .p3-two-col,
  .p5-two-col,
  .p6-two-col { grid-template-columns: 1fr; }

  .tool-cards-row--3,
  .tool-cards-row--2,
  .tool-cards-row--4,
  .tool-cards-row--2x2 { grid-template-columns: 1fr; }

  .p5-header { padding: 64px 24px 0; }
  .p6-header { padding: 0; }

  footer { grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; }
  .f-logos { align-items: flex-start; }

  .completion-wrap { padding: 48px 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%;
  }
}
