/* ============================================================
   Roy Mkhabela — Teach-Now e-Portfolio
   1:1 visual system modeled on mindmarket.com:
   vivid grass-green, warm cream, giant winding ribbon,
   playful flat-illustration characters, chunky soft serif.
   ============================================================ */

:root {
  --cream: #f7f3e8;
  --cream-deep: #efe9d9;
  --ink: #1c2a1f;
  --ink-soft: #4d584e;
  --green: #8cd965;
  --green-deep: #2c7a45;
  --green-dark: #1d4f2e;
  --green-soft: #d9ecdc;
  --yellow: #ffd23f;
  --coral: #ff6b57;
  --blue: #4e7fff;
  --skin-1: #c68642;
  --skin-2: #8a5a3b;
  --skin-3: #5c3a21;
  --card: #fffdf8;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(28, 42, 31, 0.10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; }

a { color: var(--green-deep); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 9.5vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }

.kicker {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 24px rgba(28, 42, 31, 0.2); }

.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-light { background: var(--cream); color: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px auto;
  background: transparent;
  height: 0;
  overflow: visible;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
  padding: 18px 44px 18px 44px;
  max-width: 1440px;
  margin-top: 20px;
  margin-left: auto;
  margin-bottom: 0;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(28, 42, 31, 0.12), 0 1px 4px rgba(28, 42, 31, 0.06);
  pointer-events: all;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-right: 60px;
}

.brand-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--yellow);
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { background: rgba(70, 162, 92, 0.16); color: var(--green-dark); }

.nav-cta { margin-left: 10px; }
.nav-cta a {
  background: var(--green-dark);
  color: #fff !important;
  padding: 11px 22px;
}
.nav-cta a:hover { background: var(--ink) !important; }

.dropdown > a::after { content: " ▾"; font-size: 0.7em; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 10px;
  padding-top: 18px;
  list-style: none;
  display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a { border-radius: var(--radius-sm); font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(28, 42, 31, 0.14);
    padding: 14px 22px 24px;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; display: block; box-shadow: none; background: transparent; padding-left: 14px; }
  .nav-cta { margin: 10px 0 0; }
}

/* ============================================================
   HERO — full-bleed green, giant headline, characters draped
   ============================================================ */

.hero {
  position: relative;
  background: var(--green);
  color: var(--ink);
  padding: 410px 28px 0;
  overflow: hidden;
  z-index: 1;
}

#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero .kicker { color: rgba(28, 42, 31, 0.72); position: relative; z-index: 3; margin-top: 20px; }

.hero h1 {
  color: var(--ink);
  position: relative;
  z-index: 3;
  margin: 6px 0 0;
}

.hero-characters {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -390px;
  width: min(860px, 97vw);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero { padding-top: 210px; }
  .hero-characters { top: -200px; }
}

.hero-card {
  position: relative;
  z-index: 3;
  max-width: 380px;
  margin: 48px auto 0;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.hero-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 16px; }
.hero-card .card-eyebrow {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .hero-card { margin: 64px 0 0 2%; }
}

/* hero flows straight into the ribbon section: same green, then curve */
.hero-bottom {
  display: block;
  width: 100%;
  margin-top: -2px;
}

/* ============================================================
   RIBBON — the giant winding green path with stops
   ============================================================ */

.ribbon-zone {
  position: relative;
  background: var(--cream);
  padding-bottom: 40px;
}

.ribbon-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ribbon-svg .ribbon-stroke {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
}

.ribbon-svg .ribbon-dash {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 4;
  stroke-dasharray: 4 26;
  stroke-linecap: round;
}

.ribbon-content {
  position: relative;
  z-index: 4;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 0 0;
  overflow: visible;
}

/* ---- Stop: flex row containing art + body ---- */
.stop {
  display: flex;
  align-items: center;
  overflow: visible;
  margin: 0 0 120px;
  position: relative;
}

/* right-row: art LEFT  |  body RIGHT */
.stop[data-row="right"] {
  flex-direction: row;
  justify-content: flex-end;
  padding-right: 3%;
}

/* left-row: body LEFT  |  art RIGHT */
.stop[data-row="left"] {
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding-left: 3%;
}

/* ---- White card panel ---- */
.stop-body {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 52px 44px;
  width: min(420px, 58vw);
  min-height: 420px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stop-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.stop:nth-of-type(3n) .stop-body .tag { background: #ffe3de; color: #b13a2a; }

.stop-body h3 { margin-bottom: 8px; }
.stop-body p  { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 14px; }
.stop-body a  { font-weight: 800; text-decoration: none; }
.stop-body a:hover { text-decoration: underline; }

/* ---- Illustration: unframed, bleeds toward road ---- */
.stop-art {
  width: clamp(420px, 50vw, 580px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 0;
}

/* Art overlaps deep INTO the card */
.stop[data-row="right"] .stop-art { margin-right: -160px; }
.stop[data-row="left"]  .stop-art { margin-left:  -160px; }

.stop-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Mirror the image horizontally for variety */
.stop-art.flip img { transform: scaleX(-1); }

@media (max-width: 880px) {
  .ribbon-svg { opacity: 0.65; }

  .stop {
    flex-direction: column !important;
    align-items: center;
    padding: 0 20px !important;
    margin: 0 auto 60px;
  }

  .stop-art {
    width: min(300px, 80vw);
    margin: 0 0 -50px !important;
    z-index: 3;
  }

  .stop-body {
    width: min(340px, 90vw);
    padding-top: 60px;
  }
}

@media (max-width: 540px) {
  .ribbon-svg { opacity: 0.35; }
}

/* ============================================================
   MEADOW → BIG GREEN CTA ("Ready when you are!")
   ============================================================ */

.meadow {
  display: block;
  width: 100%;
  margin-bottom: -2px;
}

.big-cta {
  position: relative;
  background: var(--green);
  color: var(--ink);
  text-align: center;
  padding: 40px 28px 110px;
  overflow: hidden;
}

.big-cta h2 {
  color: var(--ink);
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 18px;
}

.big-cta p { color: rgba(28, 42, 31, 0.8); max-width: 54ch; margin: 0 auto 32px; }

.big-cta .cta-char { width: 130px; margin: 0 auto 10px; }

/* ============================================================
   PHOTO + RIBBON TEXT ("Connecting me → to my classroom")
   ============================================================ */

.photo-ribbon {
  position: relative;
  padding: 110px 28px;
  text-align: center;
  overflow: hidden;
}

.photo-frame {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.photo-frame .photo-art {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.ribbon-text {
  position: absolute;
  inset: -60px -120px;
  width: calc(100% + 240px);
  height: calc(100% + 120px);
  pointer-events: none;
}

@media (max-width: 880px) {
  .ribbon-text { inset: -40px -20px; width: calc(100% + 40px); height: calc(100% + 80px); }
}

/* ============================================================
   STATS — "A few numbers behind the journey"
   ============================================================ */

.stats-zone { padding: 40px 0 90px; }

.stats-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.stats-head .lede { justify-self: end; }

@media (max-width: 880px) {
  .stats-head { grid-template-columns: 1fr; }
  .stats-head .lede { justify-self: start; }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.stat-card {
  border-radius: var(--radius-lg);
  padding: 40px 32px 34px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: 0 32px 64px rgba(28, 42, 31, 0.22);
}

.stat-card:nth-child(2):hover { transform: translateY(-10px) rotate(1deg); }

.stat-card:nth-child(1) { background: var(--blue); }
.stat-card:nth-child(2) { background: var(--green); color: var(--ink); }
.stat-card:nth-child(3) { background: var(--coral); }

.stat-card .big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.stat-card p { font-weight: 700; opacity: 0.94; margin-top: 16px; }

.stat-card .squiggle {
  position: absolute;
  right: 18px;
  top: 18px;
  opacity: 0.55;
  animation: squig-bob 4.5s ease-in-out infinite;
}
.stat-card:nth-child(2) .squiggle { animation-delay: -1.8s; }
.stat-card:nth-child(3) .squiggle { animation-delay: -3.2s; }

@keyframes squig-bob {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.55; }
  50% { transform: translateY(-7px) scale(1.15) rotate(12deg); opacity: 0.85; }
}

/* Card deco shapes */
.card-deco {
  position: absolute;
  pointer-events: none;
  animation: card-deco-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes card-deco-float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-9px) rotate(14deg) scale(1.1); }
}

@media (max-width: 880px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   ARTIFACT / ARTICLE CARDS
   ============================================================ */

.articles { padding: 0 0 90px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.article-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.article-card:hover { transform: translateY(-6px) rotate(-0.5deg); }

.article-cover { aspect-ratio: 16 / 10; display: block; width: 100%; object-fit: cover; }

.article-body { padding: 22px 24px 26px; }

.article-body .chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.article-body h3 { font-size: 1.15rem; }
.article-body p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }

@media (max-width: 880px) { .article-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MARQUEE — InTASC standards pills (logo wall equivalent)
   ============================================================ */

.marquee-zone { padding: 0 0 90px; text-align: center; }

.marquee-zone h2 { margin-bottom: 40px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 18px;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee.reverse .marquee-track { animation-direction: reverse; }

.marquee .pill {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(28, 42, 31, 0.07);
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 0.95rem;
}

.marquee .pill .dot { width: 10px; height: 10px; border-radius: 50%; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

.page-hero {
  position: relative;
  background: var(--green);
  color: var(--ink);
  padding: 80px 28px 90px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before, .page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.6);
}
.page-hero::before { width: 220px; height: 220px; left: -70px; top: 30px; }
.page-hero::after { width: 300px; height: 300px; right: -110px; bottom: -90px; }

.page-hero h1 { color: var(--ink); font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero .lede { color: rgba(28, 42, 31, 0.78); margin: 18px auto 0; }
.page-hero .kicker { color: rgba(28, 42, 31, 0.72); }

.page-hero.amber { background: var(--yellow); color: var(--ink); }
.page-hero.amber h1 { color: var(--ink); }
.page-hero.amber .lede { color: rgba(28, 42, 31, 0.75); }
.page-hero.amber .kicker { color: rgba(28, 42, 31, 0.7); }
.page-hero.amber::before, .page-hero.amber::after { border-color: rgba(28, 42, 31, 0.25); }

.page-hero.coral { background: var(--coral); }
.page-hero.sky { background: var(--blue); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
  margin-top: 50px;
}

.page-hero .eyebrow { background: rgba(28, 42, 31, 0.12); color: var(--ink); }
.page-hero.amber .eyebrow { background: rgba(28, 42, 31, 0.12); color: var(--ink); }

.crumb-path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.crumb-path span {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(28, 42, 31, 0.1);
  color: var(--ink);
}

.page-hero.amber .crumb-path span { background: rgba(28, 42, 31, 0.12); color: var(--ink); }
.crumb-path span.here { background: var(--cream); color: var(--green-dark) !important; }

section { padding: 84px 0; }

.section-head { max-width: 680px; margin-bottom: 44px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* milestones (InTASC) */
.milestones { list-style: none; counter-reset: ms; }

.milestone {
  counter-increment: ms;
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 30px 28px 96px;
  margin-bottom: 22px;
}

.milestone::before {
  content: counter(ms);
  position: absolute;
  left: 26px;
  top: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: var(--green);
}

.milestone:nth-child(3n)::before { background: var(--coral); }
.milestone:nth-child(3n+2)::before { background: var(--blue); }

.milestone h3 { margin-bottom: 4px; }
.milestone .ms-cat {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.milestone p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; }

/* reflections */
.reflection {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 42px;
  margin-bottom: 28px;
  border-top: 8px solid var(--green);
}

.reflection:nth-of-type(2) { border-top-color: var(--blue); }
.reflection:nth-of-type(3) { border-top-color: var(--coral); }

.reflection h3 { margin-bottom: 14px; }

/* ---- Accordion (ED 501 reflection questions) ---- */
.accordion {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

.accordion-item {
  border-bottom: 1px solid rgba(28, 42, 31, 0.09);
}

.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 4px 16px;
  width: 100%;
  padding: 28px 36px;
  cursor: pointer;
  list-style: none;
  background: none;
  border: none;
  text-align: left;
}

.accordion-trigger::-webkit-details-marker { display: none; }
.accordion-trigger::marker { display: none; }

.accordion-trigger .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.accordion-q {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.accordion-chevron {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.accordion-chevron::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.accordion-item[open] .accordion-chevron {
  background: var(--green);
}

.accordion-item[open] .accordion-chevron::after {
  content: "−";
}

.accordion-item[open] > .accordion-trigger {
  border-bottom: 2px solid rgba(28, 42, 31, 0.08);
}

.accordion-panel {
  padding: 24px 36px 32px;
}

.accordion-panel p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.accordion-panel p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .accordion-trigger { padding: 22px 24px; }
  .accordion-panel { padding: 20px 24px 28px; }
}

.placeholder {
  background: var(--cream);
  border: 2px dashed rgba(28, 42, 31, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-style: italic;
  color: var(--ink-soft);
}

.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.profile-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--green-soft);
  border: 3px dashed var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--green-dark);
  font-weight: 800;
  padding: 24px;
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border-radius: var(--radius-xl);
  border: 3px solid var(--yellow);
  z-index: -1;
}

@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; gap: 32px; } }

/* generic CTA band on inner pages */
.cta-band {
  background: var(--green);
  color: var(--ink);
  text-align: center;
  padding: 100px 28px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.3);
  left: -140px; bottom: -190px;
}

.cta-band h2 { color: var(--ink); margin-bottom: 14px; }
.cta-band p { color: rgba(28, 42, 31, 0.8); max-width: 52ch; margin: 0 auto 30px; }

/* ============================================================
   FOOTER — yellow ticker bar + dark green footer
   ============================================================ */

.foot-ticker {
  background: var(--yellow);
  overflow: hidden;
  padding: 16px 0;
}

.foot-ticker .marquee-track {
  animation-duration: 28s;
  gap: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  align-items: center;
}

.foot-ticker .sep { font-size: 0.9rem; }

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 28px 44px;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin-bottom: 26px;
}

.site-footer a { color: #fff; font-weight: 800; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.citations {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   MOTION
   ============================================================ */

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js .reveal.visible { opacity: 1; transform: none; }

.float { animation: bob 5s ease-in-out infinite; }
.float.slow { animation-duration: 7s; }
.float.delay { animation-delay: 1.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   COURSE VIDEO HERO — mouse-scrub cinematic with typewriter
   ============================================================ */

.course-hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 52px;
}

@media (min-width: 768px) {
  .course-hero {
    justify-content: center;
    padding-bottom: 0;
  }
}

.course-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 0;
}

.course-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 42, 31, 0.82) 0%,
    rgba(28, 42, 31, 0.48) 60%,
    rgba(28, 42, 31, 0.28) 100%
  );
  z-index: 1;
}

.course-hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 0 28px;
}

@media (min-width: 640px) {
  .course-hero__content {
    padding: 0 48px;
  }
}

.course-hero__intro {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  filter: blur(0);
  pointer-events: none;
  user-select: none;
  margin-bottom: 20px;
  font-weight: 700;
}

.course-hero__typewriter {
  font-size: clamp(0.92rem, 2vw, 1.18rem);
  line-height: 1.45;
  color: #fff;
  margin-bottom: 24px;
  min-height: 50px;
  font-weight: 400;
}

.course-hero__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #fff;
  vertical-align: middle;
  margin-left: 2px;
  animation: ch-blink 1s step-end infinite;
}

.course-hero__cursor.done {
  display: none;
}

@keyframes ch-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.course-hero__pills {
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.course-hero__pills.visible {
  opacity: 1;
  transform: none;
}

.ch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(28, 42, 31, 0.1);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.1vw, 0.84rem);
  padding: 0.38em 1.15em;
  margin: 0.22em 0.2em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
  appearance: none;
}

.ch-pill:hover {
  background: var(--ink);
  color: #fff;
}

.ch-pill--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  gap: 7px;
}

.ch-pill--outline:hover {
  background: #fff;
  color: var(--ink);
}

.ch-pill__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.course-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 22px;
}

.course-hero__crumb span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.course-hero__crumb span.here {
  background: var(--green);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .course-hero__cursor { animation: none; opacity: 1; }
  .course-hero__pills  { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   COURSE-HERO STATIC IMAGE VARIANT
   .course-hero__bg — same as __video but centers portrait images
   ============================================================ */
.course-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* Vivid modifier — for bright illustrated backgrounds.
   ::before acts as the scrim so no overlay div is needed in HTML.
   Dual gradient: left-to-right anchors the text block on the left;
   top-to-bottom backs up the pill row and breadcrumb at the bottom. */
.course-hero--vivid {
  height: 100vh;
  overflow: hidden;
}

.course-hero--vivid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(10, 18, 10, 0.62) 0%,
      rgba(10, 18, 10, 0.38) 38%,
      rgba(10, 18, 10, 0.08) 65%,
      transparent 85%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 30%,
      rgba(10, 18, 10, 0.22) 62%,
      rgba(10, 18, 10, 0.65) 100%
    );
}

.course-hero--vivid .course-hero__bg {
  transform: scale(1.12);
  transform-origin: center center;
  width: 100%;
  height: 100%;
}

.course-hero--vivid .course-hero__intro {
  filter: none;
  opacity: 0.9;
}

/* ============================================================
   BENTO GRID — varied-size content cells
   ============================================================ */
.bento-wrap {
  padding: 56px 24px 72px;
  max-width: 960px;
  margin: 0 auto;
}

.bento-wrap .section-head { margin-bottom: 36px; }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-cell--tall { grid-row: auto; }
  .bento-cell--wide { grid-column: auto; }
}

.bento-cell {
  background: #fff;
  border-radius: 20px;
  padding: 36px 30px;
  border: 1px solid rgba(28, 42, 31, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.bento-cell--tall  { grid-row: span 2; }
.bento-cell--wide  { grid-column: span 2; }
.bento-cell--muted { background: var(--cream-deep); }

.bento-cell .eyebrow { margin-bottom: 2px; }

.bento-cell h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.bento-cell p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.bento-cell__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  background: var(--cream-deep);
  padding: 5px 11px;
  border-radius: 999px;
  width: fit-content;
  margin-top: auto;
}

.bento-cell__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  flex-shrink: 0;
}

.bento-cell__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   CANVA IFRAME BACKGROUND HERO
   ============================================================ */
.course-hero__iframe-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -70px; /* push past the section edge so Canva's control bar is clipped */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.course-hero__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 100vmax = max(100vw, 100vh) — covers the viewport regardless of orientation */
  width: 100vmax;
  height: 100vmax;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  display: block;
}

/* Strong text-shadow so every word pops regardless of background frame */
.course-hero--canva .course-hero__intro,
.course-hero--canva .course-hero__typewriter {
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.90),
    0 1px 6px  rgba(0, 0, 0, 0.70);
}
