/* =========================================================
   Tanganyika School of Art and Design (TASAD)
   tasad.gisellebrands.co.tz
   ========================================================= */

:root {
  --mint: #CFE8DD;
  --mint-2: #B9DDCD;
  --mint-3: #9FD0BA;
  --mint-ink: #1E4A40;
  --peach: #FFD9C8;
  --peach-2: #FFC6AC;
  --coral: #E5603E;
  --ink: #111C1A;
  --ink-2: #26302E;
  --muted: #5E6966;
  --muted-2: #8A9491;
  --surface: #F4F2EE;
  --surface-2: #ECE9E3;
  --card: #FFFFFF;
  --line: #E4E0D8;
  --amber: #E3A23A;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--peach-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* image fallback */
img.img-fb { background: linear-gradient(135deg, var(--mint) 0%, var(--peach) 100%); object-fit: cover; }

/* ---------- Text roll (hover) ---------- */
.roll { display: inline-flex; flex-direction: column; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .45s var(--ease); }
a:hover .roll > span, button:hover .roll > span, .roll-host:hover .roll > span { transform: translateY(-100%); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  pointer-events: none;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 28px; }
.site-header a, .site-header button { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; perspective: 400px; }
.brand-mark svg { width: 100%; height: 100%; animation: markFlip 6s var(--ease-in-out) infinite; transform-style: preserve-3d; }
@keyframes markFlip {
  0%, 38% { transform: rotateY(0deg) rotateZ(0deg); }
  50%, 88% { transform: rotateY(180deg) rotateZ(-8deg); }
  100% { transform: rotateY(360deg) rotateZ(0deg); }
}
.brand-word { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; transition: opacity .3s; }
.site-header.scrolled .brand-word { opacity: 0; }

.nav { display: flex; gap: 6px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--peach); color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 8px 15px; border-radius: 999px;
  transition: background .3s, transform .3s var(--ease);
}
.pill:hover { background: var(--peach-2); }
.pill.is-active { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--peach); position: relative;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 96px 28px 40px;
  clip-path: circle(0% at calc(100% - 50px) 36px);
  transition: clip-path .7s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 36px); visibility: visible; }
.mobile-menu a.big { display: block; font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; padding: 4px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.menu-open .mobile-menu a.big { opacity: 1; transform: none; }
.menu-open .mobile-menu a.big:nth-child(2) { transition-delay: .06s; }
.menu-open .mobile-menu a.big:nth-child(3) { transition-delay: .12s; }
.menu-open .mobile-menu a.big:nth-child(4) { transition-delay: .18s; }
.menu-open .mobile-menu a.big:nth-child(5) { transition-delay: .24s; }
.menu-open .mobile-menu a.big:nth-child(6) { transition-delay: .30s; }
.mobile-menu .mm-contact { margin-top: 40px; color: var(--mint); font-size: 16px; display: grid; gap: 6px; }
.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border: 0; border-radius: 999px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  padding: 7px 7px 7px 22px; line-height: 1;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-mint { background: var(--mint-2); color: var(--ink); }
.btn .arrow {
  width: 38px; height: 38px; border-radius: 999px; background: #fff; color: var(--ink);
  display: inline-grid; place-items: center; overflow: hidden; position: relative; flex: none;
}
.btn-light .arrow, .btn-mint .arrow { background: var(--ink); color: #fff; }
.btn .arrow svg { width: 18px; height: 18px; position: absolute; transition: transform .5s var(--ease); }
.btn .arrow svg + svg { transform: translateX(-160%); }
.btn:hover .arrow svg:first-child { transform: translateX(160%); }
.btn:hover .arrow svg + svg { transform: translateX(0); }
.btn-block { width: 100%; justify-content: center; padding: 14px 22px; }
.btn-plain { padding: 14px 24px; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { background: var(--mint); padding: calc(var(--header-h) + 72px) 0 0; position: relative; overflow: hidden; }
.hero-inner { text-align: center; }
.hero-title-wrap { position: relative; display: inline-block; max-width: 940px; }
.hero h1 {
  font-size: clamp(46px, 8.4vw, 104px); letter-spacing: -0.048em; line-height: .98;
}
.hero h1 .line-wrap { display: block; position: relative; width: fit-content; margin: 0 auto; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.loaded .hero h1 .line-wrap:nth-child(2) .line > span { transition-delay: .1s; }

.hero-avatar {
  position: absolute; width: clamp(58px, 7.4vw, 100px); aspect-ratio: 1; border-radius: 14px; z-index: 2; display: block;
  letter-spacing: normal; line-height: 1.2;
  opacity: 0; transform: scale(.6) rotate(-8deg); transition: opacity .6s, transform .9s var(--ease);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(17,28,26,.14); }
.hero-avatar .tag {
  position: absolute; white-space: nowrap; font-size: 12px; font-weight: 500;
  padding: 4px 9px; border-radius: 6px 6px 6px 0; color: var(--ink);
}
.hero-avatar.a1 { right: 100%; margin-right: -0.06em; top: 0; }
.hero-avatar.a1 .tag { background: var(--peach-2); left: 22%; bottom: -10px; }
.hero-avatar.a2 { left: 100%; margin-left: 0.08em; top: 8%; }
.hero-avatar.a2 .tag { background: #fff; left: -18px; top: 52%; border-radius: 6px 6px 6px 0; }
.loaded .hero-avatar { opacity: 1; transform: none; transition-delay: .5s; }
.loaded .hero-avatar.a2 { transition-delay: .65s; }
.hero-avatar:hover { transform: rotate(4deg) scale(1.04); transition-delay: 0s; }

.hero-sub {
  max-width: 560px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink-2);
}
.hero-cta { margin-top: 34px; }
.hero-sub, .hero-cta { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .9s var(--ease); }
.loaded .hero-sub { opacity: 1; transform: none; transition-delay: .35s; }
.loaded .hero-cta { opacity: 1; transform: none; transition-delay: .45s; }

.hero-media {
  position: relative; margin: 56px auto 0; max-width: 1100px; aspect-ratio: 2 / 1; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--mint-2);
  opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 1s, transform 1.2s var(--ease);
}
.loaded .hero-media { opacity: 1; transform: none; transition-delay: .55s; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-media .slide.active { opacity: 1; }
.hero-media .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.hero-media .slide.active img { transform: scale(1); }
.hero-media .caption {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center;
}
.hero-media .caption i { width: 8px; height: 8px; border-radius: 99px; background: var(--coral); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero-media .dots { position: absolute; right: 18px; bottom: 22px; display: flex; gap: 6px; z-index: 3; }
.hero-media .dots span { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.5); overflow: hidden; position: relative; }
.hero-media .dots span.active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fillbar 4s linear forwards; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Marquee ---------- */
.partners { padding: 48px 0 56px; }
.partners .label { font-size: 15px; font-weight: 500; margin-bottom: 22px; padding: 0 28px; color: var(--ink-2); }
.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); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tool-logo { display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); }
.tool-logo .tl-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* ---------- Statement ---------- */
.statement { padding: 150px 0 40px; background: var(--surface); }
.statement p {
  font-size: clamp(28px, 3.7vw, 48px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.14; max-width: 1000px;
}
.statement .w { opacity: .14; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
.statement .hl { color: var(--mint-ink); }
.no-js .statement .w { opacity: 1; }

/* ---------- Section heads ---------- */
.section { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2, .h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.035em; }
.section-head p { color: var(--muted); max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--mint-ink); background: rgba(255,255,255,.6); padding: 6px 12px; border-radius: 999px; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--card); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(17,28,26,.04), 0 10px 30px -18px rgba(17,28,26,.18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(17,28,26,.04), 0 24px 44px -20px rgba(17,28,26,.28); }
.course-card .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 11px; overflow: hidden; background: var(--mint); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.course-card:hover .thumb img { transform: scale(1.06); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--peach); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.badge.cat { left: auto; right: 10px; background: rgba(255,255,255,.92); font-weight: 500; }
.course-card .meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); padding: 12px 6px 0; }
.course-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card .meta svg { width: 15px; height: 15px; }
.course-card .meta .level { margin-left: auto; background: var(--surface); color: var(--ink-2); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.course-card h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; padding: 10px 6px 0; min-height: 3.6em; }
.course-card .price { display: flex; align-items: baseline; gap: 10px; padding: 14px 6px; margin-top: auto; border-top: 1px solid var(--line); margin-top: 14px; }
.course-card .price strong { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.course-card .price s { font-size: 14px; color: var(--muted-2); }
.course-card .price em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--mint-ink); background: var(--mint); padding: 3px 8px; border-radius: 999px; }
.course-card .btn-course {
  display: block; text-align: center; background: var(--mint-2); border-radius: 999px; padding: 12px; font-weight: 500; font-size: 15px;
  transition: background .3s, color .3s;
}
.course-card:hover .btn-course { background: var(--ink); color: #fff; }
.course-card.soon .btn-course { background: var(--surface-2); }

.center-cta { text-align: center; margin-top: 48px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn .count { opacity: .55; margin-left: 4px; }
.course-card.hide { display: none; }

/* ---------- Story slider ---------- */
.stories { background: var(--surface-2); padding: 100px 0; }
.slider { position: relative; }
.slides { position: relative; display: grid; }
.story {
  grid-area: 1 / 1; display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s;
}
.story.active { opacity: 1; visibility: visible; }
.story .ph { aspect-ratio: 1 / 1.08; border-radius: 18px; overflow: hidden; }
.story .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.story.active .ph img { transform: scale(1); }
.story .txt { transform: translateY(24px); transition: transform .9s var(--ease); }
.story.active .txt { transform: none; }
.story .kicker { font-size: 14px; color: var(--mint-ink); font-weight: 600; margin-bottom: 14px; display: inline-block; background: var(--mint); padding: 5px 12px; border-radius: 999px; }
.story blockquote { margin: 0; font-size: clamp(21px, 2.1vw, 27px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.story .who { margin-top: 26px; }
.story .who b { display: block; font-weight: 600; font-size: 17px; }
.story .who span { color: var(--muted); font-size: 15px; }
.slider-ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.slider-dots { display: flex; gap: 6px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--muted-2); border: 0; padding: 0; transition: width .4s var(--ease), background .3s; }
.slider-dots button.active { width: 22px; background: var(--ink); }
.slider-arrows { display: flex; gap: 10px; }
.slider-arrows button { width: 44px; height: 44px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.slider-arrows button:hover { transform: scale(1.08); background: #000; }
.slider-arrows svg { width: 18px; height: 18px; }

/* ---------- Showreel (Learn / Create / Grow) ---------- */
.showreel { position: relative; height: 340vh; background: var(--surface); }
.showreel .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.showreel .word { position: absolute; top: 50%; left: 50%; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; z-index: 3; will-change: transform; transform: translate(-50%, -50%); }
.showreel .media {
  position: absolute; top: 50%; left: 50%; width: 150px; height: 66px; border-radius: 40px; overflow: hidden; z-index: 2;
  transform: translate(-50%, -50%); will-change: width, height; background: var(--ink);
}
.showreel .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.showreel .media img.on { opacity: 1; }
.showreel .media::after { content: ""; position: absolute; inset: 0; background: rgba(17,28,26,.22); }
.showreel .word.center { color: #fff; z-index: 4; }
.showreel .tagline { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); z-index: 4; color: #fff; font-size: 15px; font-weight: 500; opacity: 0; transition: opacity .4s; text-align: center; white-space: nowrap; }
.showreel .tagline.on { opacity: .9; }

/* ---------- Certificate ---------- */
.cert { background: var(--ink); color: #fff; padding: 110px 0; }
.cert .grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.cert h2 { font-size: clamp(30px, 3vw, 40px); }
.cert p { color: rgba(255,255,255,.78); margin-top: 22px; max-width: 420px; font-size: 17px; }
.cert ul { margin-top: 26px; display: grid; gap: 10px; }
.cert li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.88); font-size: 16px; }
.cert li svg { width: 20px; height: 20px; color: var(--mint-3); flex: none; }
.cert-stage { perspective: 1200px; }
.cert-card {
  background: #FBFAF7; color: var(--ink); border-radius: 14px; padding: 30px 72px 26px 32px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.cert-card::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 46px; background: var(--surface-2); }
.cert-card .ribbon { position: absolute; right: 12px; top: 0; width: 22px; height: 70px; background: var(--coral); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.cert-card .c-brand { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.cert-card .c-brand svg { width: 30px; height: 30px; }
.cert-card .c-title { margin-top: 24px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1; font-weight: 500; text-transform: uppercase; }
.cert-card .c-small { font-size: 12px; color: var(--muted); margin-top: 14px; }
.cert-card .c-name { font-family: "Courier New", monospace; font-size: clamp(20px, 2.2vw, 26px); margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.cert-card .c-course { font-size: 15px; font-weight: 600; margin-top: 4px; }
.cert-card .c-foot { display: flex; justify-content: space-between; align-items: end; margin-top: 26px; font-size: 11px; color: var(--muted); }
.cert-card .c-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 26px; color: var(--ink-2); line-height: 1; }
.cert-card .sample { position: absolute; left: 32px; top: 30px; transform: translate(0, 0); display: none; }

/* ---------- Mentors ---------- */
.mentors { padding: 110px 0 120px; background: var(--surface); overflow: hidden; }
.mentor-track .mentor { width: 270px; margin-right: 22px; flex: none; }
.mentor .ph { aspect-ratio: 4 / 4.6; border-radius: 14px; overflow: hidden; background: var(--ink); position: relative; }
.mentor .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1s var(--ease), filter .5s; }
.mentor:hover .ph img { transform: scale(1.05); filter: saturate(1.05); }
.mentor .ph .mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 600; letter-spacing: -0.06em; color: var(--mint-2); background: radial-gradient(circle at 30% 20%, #23413B, var(--ink) 70%); }
.mentor .ph img + .mono { display: none; }
.mentor .ph img.img-fb + .mono { display: grid; }
.mentor .ph img.has-mono.img-fb { position: absolute; }
.mentor .ph img.has-mono.img-fb { opacity: 0; }
.mentor h3 { font-size: 20px; margin-top: 14px; letter-spacing: -0.02em; }
.mentor p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.mentors .marquee { -webkit-mask-image: none; mask-image: none; }

/* ---------- Projects ---------- */
.projects { background: var(--ink); color: #fff; padding: 100px 0 110px; overflow: hidden; }
.projects h2 { margin-bottom: 14px; }
.projects .sub { color: rgba(255,255,255,.7); margin-bottom: 36px; }
.proj-row { margin-bottom: 14px; }
.proj { height: 210px; margin-right: 14px; border-radius: 10px; overflow: hidden; flex: none; position: relative; background: var(--ink-2); }
.proj img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover img { transform: scale(1.05); }
.proj figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(17,28,26,.75); backdrop-filter: blur(6px); font-size: 13px; padding: 5px 10px; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.proj:hover figcaption { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0; background: var(--surface); }
.faq h2 { margin-bottom: 36px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border-radius: 12px; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq-q .ic { width: 26px; height: 26px; border-radius: 99px; background: var(--surface); display: grid; place-items: center; flex: none; transition: background .3s, color .3s, transform .5s var(--ease); }
.faq-q .ic svg { width: 12px; height: 12px; }
.faq-item.open .faq-q .ic { background: var(--ink); color: #fff; transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 20px 60px; color: var(--ink-2); font-size: 15.5px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta { background: var(--mint); padding: 90px 0 0; overflow: hidden; }
.cta .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.045em; line-height: 1.02; }
.cta .btn { margin-top: 30px; }
.cta .copy { padding-bottom: 110px; }
.cta .copy p { margin-top: 18px; color: var(--ink-2); max-width: 440px; }
.collage { position: relative; height: 430px; }
.collage .blk { position: absolute; border-radius: 4px; }
.collage .pic { position: absolute; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(17,28,26,.4); animation: bob 7s ease-in-out infinite; }
.collage .pic img { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { left: 28%; top: 70px; width: 36%; height: 300px; animation-delay: -1s; }
.collage .p2 { right: 2%; top: 20px; width: 30%; height: 180px; animation-delay: -3s; }
.collage .p3 { left: 4%; bottom: 0; width: 28%; height: 210px; animation-delay: -5s; }
.collage .b1 { left: 22%; top: 50px; width: 42%; height: 60px; background: var(--coral); }
.collage .b2 { right: 10%; top: 120px; width: 34%; height: 250px; background: var(--peach); }
.collage .b3 { left: 50%; bottom: 0; width: 30%; height: 110px; background: var(--ink); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.chip {
  position: absolute; z-index: 3; background: #fff; border-radius: 10px; padding: 9px 14px 9px 10px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 16px 30px -14px rgba(17,28,26,.35); font-size: 12px; line-height: 1.25; color: var(--muted);
  animation: bob 6s ease-in-out infinite;
}
.chip b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.chip .ci { width: 34px; height: 34px; border-radius: 8px; background: var(--mint); display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 13px; overflow: hidden; position: relative; }
.chip .ci svg { width: 18px; height: 18px; }
.chip.c1 { right: 0; top: 150px; }
.chip.c2 { left: 0; top: 160px; animation-delay: -2s; }
.lang-cycle span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s var(--ease), opacity .4s; }
.lang-cycle span:not(.on) { transform: translateY(100%); opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 90px 0 36px; }
.f-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 80px; }
.f-top h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.15; }
.newsletter label { display: block; font-weight: 500; margin-bottom: 14px; }
.newsletter input {
  width: 100%; background: #1E2A27; border: 1px solid #2B3835; color: #fff; padding: 14px 18px; border-radius: 999px; font: inherit; font-size: 15px;
}
.newsletter input::placeholder { color: #8C9895; }
.newsletter input:focus { outline: none; border-color: var(--mint-3); }
.newsletter button { margin-top: 12px; width: 100%; background: var(--mint-2); color: var(--ink); border: 0; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .3s; }
.newsletter button:hover { background: var(--mint); }
.form-msg { font-size: 14px; margin-top: 10px; min-height: 1.4em; }
.form-msg.ok { color: var(--mint-3); }
.form-msg.err { color: #FFB4A0; }
.f-mid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; align-items: start; }
.f-brand .brand-word { font-size: 20px; color: #fff; }
.f-brand p { color: rgba(255,255,255,.72); margin-top: 18px; max-width: 360px; font-size: 15px; }
.f-contact { margin-top: 18px; display: grid; gap: 6px; font-size: 15px; }
.f-contact a { color: var(--mint-2); }
.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f-cols h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; letter-spacing: -0.01em; }
.f-cols li { margin-bottom: 10px; font-size: 15px; color: rgba(255,255,255,.75); }
.f-cols a:hover { color: #fff; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 64px; padding-top: 26px; border-top: 1px solid #26322F; font-size: 14px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 34px; height: 34px; border-radius: 99px; background: var(--mint-2); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.f-social a:hover { transform: translateY(-3px); background: #fff; }
.f-social svg { width: 16px; height: 16px; }

/* floating whatsapp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 54px; height: 54px; border-radius: 99px; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--mint); padding: calc(var(--header-h) + 70px) 0 80px; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.048em; line-height: 1; max-width: 900px; }
.page-hero p.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; max-width: 620px; color: var(--ink-2); line-height: 1.4; }
.crumbs { font-size: 14px; color: var(--mint-ink); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { text-decoration: underline; }

/* course detail */
.cd-hero { padding-bottom: 60px; }
.cd-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.cd-hero .chips span { background: rgba(255,255,255,.65); padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.cd-hero .chips svg { width: 15px; height: 15px; }
.cd-layout { display: grid; grid-template-columns: 1fr 370px; gap: 56px; align-items: start; padding-top: 64px; padding-bottom: 100px; }
.cd-body section + section { margin-top: 56px; }
.cd-body h2 { font-size: 30px; margin-bottom: 18px; }
.cd-body p { color: var(--ink-2); margin-bottom: 14px; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-grid li { background: #fff; border-radius: 12px; padding: 14px 16px; display: flex; gap: 10px; font-size: 15.5px; }
.learn-grid svg { width: 20px; height: 20px; color: var(--mint-ink); flex: none; margin-top: 2px; }
.modules .faq-q { font-size: 16px; }
.modules .faq-q small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; white-space: nowrap; }
.modules .faq-a ul { padding: 0 20px 18px 60px; display: grid; gap: 6px; }
.modules .faq-a li { font-size: 15px; color: var(--ink-2); position: relative; padding-left: 14px; }
.modules .faq-a li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 9px; background: var(--mint-3); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.sched { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 12px; overflow: hidden; font-size: 15px; }
.sched th, .sched td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.sched th { background: var(--surface-2); font-weight: 600; font-size: 14px; }
.sched tr:last-child td { border-bottom: 0; }
.buy-card { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 30px 60px -36px rgba(17,28,26,.35); margin-top: -180px; }
.buy-card .thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--mint); }
.buy-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-card .in { padding: 18px 10px 10px; }
.buy-card .pr { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-card .pr strong { font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.buy-card .pr s { color: var(--muted-2); }
.buy-card .pr em { font-style: normal; font-size: 12px; font-weight: 600; background: var(--peach); padding: 4px 9px; border-radius: 99px; }
.buy-card .note { font-size: 13.5px; color: var(--muted); margin: 8px 0 16px; }
.buy-card .btn-block + .btn-block { margin-top: 10px; }
.buy-card ul { margin-top: 18px; display: grid; gap: 9px; font-size: 14.5px; }
.buy-card li { display: flex; gap: 9px; align-items: center; }
.buy-card li svg { width: 17px; height: 17px; color: var(--mint-ink); flex: none; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* about */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro .ph { aspect-ratio: 4 / 4.4; border-radius: 20px; overflow: hidden; }
.about-intro .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-intro p { color: var(--ink-2); margin-top: 16px; font-size: 17.5px; }
.family { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fam { background: #fff; border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: transform .5s var(--ease); }
.fam:hover { transform: translateY(-6px); }
.fam .dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; }
.fam h3 { font-size: 21px; margin-top: 10px; }
.fam p { color: var(--muted); font-size: 15px; }
.fam.us { background: var(--ink); color: #fff; }
.fam.us p { color: rgba(255,255,255,.75); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 14px; font-weight: 600; color: var(--mint-ink); }
.step h3 { font-size: 21px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--surface-2); border-radius: 16px; padding: 28px; }
.value h3 { font-size: 22px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 15.5px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: rgba(255,255,255,.55); border-radius: 16px; padding: 22px; }
.stat b { display: block; font-size: 40px; letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-2); display: block; margin-top: 8px; }

/* forms */
.form-wrap > * { min-width: 0; }
.form-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; padding: 70px 0 110px; }
.side-info h2 { font-size: 30px; margin-bottom: 16px; }
.side-info p { color: var(--ink-2); }
.info-cards { display: grid; gap: 12px; margin-top: 26px; }
.info-card { background: #fff; border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; transition: transform .4s var(--ease); }
a.info-card:hover { transform: translateX(6px); }
.info-card .ii { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.info-card .ii svg { width: 20px; height: 20px; }
.info-card small { display: block; color: var(--muted); font-size: 13px; }
.info-card b { font-weight: 600; font-size: 16px; }
.form-card { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -40px rgba(17,28,26,.3); }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label i { color: var(--coral); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s, background .2s; width: 100%; max-width: 100%; min-width: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { cursor: pointer; position: relative; }
.field .radio-row input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; margin: 0; }
.radio-row span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; background: var(--surface); transition: all .25s; }
.radio-row input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radio-row input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { margin-top: 22px; }
.form-card .form-msg { margin-top: 14px; font-size: 15px; }
.form-card .form-msg.ok { color: var(--mint-ink); }
.form-card .form-msg.err { color: #B23A1E; }
.summary-box { background: var(--mint); border-radius: 14px; padding: 16px 18px; margin-top: 18px; display: none; font-size: 15px; }
.summary-box.on { display: block; }
.summary-box b { font-size: 18px; }

/* legal */
.legal { padding: 64px 0 100px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* thank you / 404 */
.center-page { min-height: 86vh; display: grid; place-items: center; text-align: center; background: var(--mint); padding: 120px 24px 60px; }
.center-page h1 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.05em; }
.center-page p { margin: 18px auto 30px; max-width: 520px; font-size: 18px; color: var(--ink-2); }
.center-page .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.big-check { width: 84px; height: 84px; border-radius: 99px; background: var(--ink); color: var(--mint); display: grid; place-items: center; margin: 0 auto 26px; animation: popIn .8s var(--ease) both; }
.big-check svg { width: 40px; height: 40px; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .family { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cd-layout { grid-template-columns: 1fr 330px; gap: 36px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header .bar { padding: 0 18px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero-avatar.a1 { right: auto; left: -4px; top: auto; bottom: 100%; margin: 0 0 6px; transform-origin: bottom left; }
  .hero-avatar.a2 { left: auto; right: -4px; top: 100%; margin: 8px 0 0; }
  .hero-avatar.a2 .tag { left: auto; right: 70%; border-radius: 6px 6px 0 6px; }
  .hero { padding-top: calc(var(--header-h) + 110px); }
  .hero-sub { margin-top: 96px; }
  .hero-media { aspect-ratio: 4 / 3.2; margin-top: 44px; border-radius: 18px; }
  .story { grid-template-columns: 1fr; gap: 26px; }
  .story .ph { aspect-ratio: 4 / 3; }
  .cert .grid, .cta .grid, .f-top, .f-mid, .about-intro, .form-wrap, .cd-layout { grid-template-columns: 1fr; }
  .cta .copy { padding-bottom: 20px; }
  .collage { height: 380px; }
  .buy-card { position: static; margin-top: 0; order: -1; }
  .cd-layout { padding-top: 32px; }
  .form-wrap { padding-top: 40px; }
  .form-wrap .form-card { order: -1; }
  .values { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .section, .stories, .faq, .mentors, .projects, .cert { padding-top: 76px; padding-bottom: 76px; }
  .statement { padding-top: 100px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container, .container-wide { padding: 0 18px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card h3 { min-height: 0; }
  .family, .steps, .learn-grid, .fgrid { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .tool-logo { font-size: 21px; padding: 0 20px; }
  .tool-logo .tl-ic { width: 28px; height: 28px; font-size: 11px; }
  .mentor-track .mentor { width: 220px; }
  .proj { height: 150px; }
  .cert-card { padding: 22px 56px 20px 22px; }
  .faq-a p { padding-left: 20px; }
  .modules .faq-a ul { padding-left: 24px; }
  .collage .p1 { width: 44%; height: 250px; left: 24%; }
  .collage .p2 { width: 36%; height: 150px; }
  .collage .p3 { width: 34%; height: 170px; }
  .chip.c1 { top: 118px; }
  .chip.c2 { top: 260px; }
  .form-card { padding: 24px 18px; }
  .sched { font-size: 13.5px; }
  .sched th, .sched td { padding: 11px 10px; }
  .hero-avatar .tag { font-size: 11px; }
  .page-hero { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
  .statement .w { opacity: 1; }
}
