  :root {
    --green-900: #052e16;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #15803d;
    --green-500: #16a34a;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;
    --cream:     #fafaf5;
    --ink:       #0a0a0a;
    --ink-2:     #1f1f1f;
    --muted:     #525252;
    --line:      #e6e6e0;

    --serif: "Fraunces", Georgia, serif;
    --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius-sm: 8px;
    --radius:    16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 1px 3px rgba(10,10,10,.06);
    --shadow:    0 8px 30px rgba(5,46,22,.08);
    --shadow-lg: 0 20px 60px rgba(5,46,22,.12);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }

  /* Layout */
  .container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
  @media (max-width: 640px) { .container { padding: 0 20px; } }

  /* ---------- NAVIGATION ---------- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--serif); font-weight: 600; font-size: 20px;
    letter-spacing: -0.02em;
  }
  .logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--green-600);
    display: grid; place-items: center;
    color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px;
    font-style: italic;
  }
  .logo span { color: var(--green-700); }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a {
    font-size: 15px; font-weight: 500; color: var(--ink-2);
    position: relative; transition: color .2s ease;
  }
  .nav-links a:hover { color: var(--green-700); }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--green-500);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
  }
  .btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
  .btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow); }
  .btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--cream); }
  .btn-ghost { color: var(--ink); }
  .btn-ghost:hover { color: var(--green-700); }

  .burger {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff;
    align-items: center; justify-content: center;
  }
  .burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .25s; }
  .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: .25s;
  }
  .burger span::before { top: -6px; }
  .burger span::after  { top:  6px; }
  .burger.open span { background: transparent; }
  .burger.open span::before { top: 0; transform: rotate(45deg); }
  .burger.open span::after  { top: 0; transform: rotate(-45deg); }

  .mobile-menu {
    display: none; border-top: 1px solid var(--line); background: var(--cream);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu .inner { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a { padding: 14px 8px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-of-type { border-bottom: none; }
  .mobile-menu .btn { margin-top: 12px; justify-content: center; }

  @media (max-width: 900px) {
    .nav-links, .nav .btn { display: none; }
    .burger { display: inline-flex; }
  }

  /* ---------- HERO ---------- */
  .hero {
    position: relative; isolation: isolate;
    padding: 80px 0 40px; overflow: hidden;
    background-color: var(--cream); /* fallback if image fails */
  }
  .hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -2;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80') center / cover no-repeat;
  }
  .hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(180deg, rgba(250,250,245,0.72) 0%, rgba(240,253,244,0.82) 100%),
      radial-gradient(circle at 85% 50%, rgba(22,163,74,0.14) 0%, transparent 55%);
    pointer-events: none;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border: 1px solid var(--green-100); background: var(--green-50);
    border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--green-800);
    letter-spacing: 0.02em;
  }
  .dot-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
    box-shadow: 0 0 0 0 rgba(22,163,74,.45);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); }
    70% { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
  }

  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(42px, 6.4vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-top: 24px;
    color: var(--ink);
  }
  .hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--green-700);
    position: relative;
    white-space: nowrap;
  }
  .hero h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
    height: 14px; background: var(--green-100); z-index: -1;
    border-radius: 4px;
  }

  .hero-grid {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px;
    align-items: center; margin-top: 40px;
  }
  .hero-main { position: relative; }

  /* Carousel — CSS grid stacking trick: all slides share one cell */
  .slides {
    display: grid;
    position: relative;
  }
  .slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 800ms cubic-bezier(.2,.7,.2,1),
                transform 800ms cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
    visibility: hidden;
  }
  .slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  @media (prefers-reduced-motion: reduce) {
    .slide { transition: opacity 250ms ease; transform: none; }
  }

  .hero-lede {
    font-size: 19px; line-height: 1.6; color: var(--muted);
    max-width: 540px;
    margin-top: 24px;
  }
  .hero-ctas {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px;
  }
  .hero-ctas .btn { padding: 16px 26px; font-size: 16px; }

  /* ---------- HERO SIDE: Stacked Computer Screens ---------- */
  .hero-side {
    display: flex; align-items: center; justify-content: center;
    min-height: 480px;
  }
  .screens-stack {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 0.95;
  }
  .screen {
    position: absolute;
    top: 22%; left: 12%;
    width: 76%; height: 58%;
    background: #fff;
    border-radius: 10px;
    box-shadow:
      0 20px 40px rgba(0,0,0,0.12),
      0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    transition:
      transform 0.9s cubic-bezier(.2,.7,.15,1),
      box-shadow 0.9s ease;
    transform-origin: center center;
    z-index: 1;
    display: flex; flex-direction: column;
  }
  /* Resting positions (fanned stack) */
  .screen[data-home="0"]  { transform: translate(-30%, -34%) rotate(-7deg); }
  .screen[data-home="1"]  { transform: translate( 18%, -30%) rotate(5deg); }
  .screen[data-home="2"]  { transform: translate(-22%,  -8%) rotate(-3deg); }
  .screen[data-home="3"]  { transform: translate( 26%,   4%) rotate(7deg); }
  .screen[data-home="4"]  { transform: translate(-30%,  20%) rotate(4deg); }
  .screen[data-home="5"]  { transform: translate( 18%,  28%) rotate(-5deg); }
  .screen[data-home="6"]  { transform: translate(-10%, -20%) rotate(2deg); }
  .screen[data-home="7"]  { transform: translate( 22%,  16%) rotate(-4deg); }
  .screen[data-home="8"]  { transform: translate(-26%,  34%) rotate(6deg); }
  .screen[data-home="9"]  { transform: translate(  6%, -12%) rotate(-2deg); }
  .screen[data-home="10"] { transform: translate(  2%,  16%) rotate(1deg); }
  /* Top position (centered, slightly enlarged) */
  .screen.is-top {
    transform: translate(0, 0) rotate(0) scale(1.05);
    z-index: 10;
    box-shadow:
      0 30px 70px rgba(20, 83, 45, 0.22),
      0 8px 20px rgba(0,0,0,0.1);
  }

  /* Window chrome */
  .win-bar {
    height: 26px; flex-shrink: 0;
    background: #F5F5F2;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex; align-items: center;
    padding: 0 12px; gap: 10px;
  }
  .win-bar.dark { background: #1E1E1E; border-color: rgba(255,255,255,0.08); }
  .win-bar.cream { background: #F5EFE5; border-color: rgba(0,0,0,0.06); }
  .win-dots { display: flex; gap: 5px; }
  .win-dots span { width: 9px; height: 9px; border-radius: 50%; }
  .win-dots span:nth-child(1) { background: #ED6A5E; }
  .win-dots span:nth-child(2) { background: #F4BF4F; }
  .win-dots span:nth-child(3) { background: #61C554; }
  .win-title {
    font-size: 10.5px; color: #8A8A8A; font-weight: 500;
    letter-spacing: 0.02em;
  }
  .win-bar.dark .win-title { color: #999; }

  .win-body { flex: 1; overflow: hidden; position: relative; }

  /* ——— Screen 1 · Code Editor ——— */
  .screen-code .win-body {
    background: #1E1E1E;
    color: #D4D4D4;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10.5px; line-height: 1.65;
    padding: 8px 10px;
  }
  .code-line { display: flex; gap: 10px; }
  .code-line .ln { color: #555; min-width: 14px; text-align: right; }
  .code-line .kw { color: #C586C0; }
  .code-line .fn { color: #DCDCAA; }
  .code-line .str { color: #CE9178; }
  .code-line .var { color: #9CDCFE; }
  .code-line .cm  { color: #6A9955; }
  .code-caret {
    display: inline-block; width: 6px; height: 11px;
    background: #D4D4D4; vertical-align: middle; margin-left: 1px;
    animation: blinkCaret 1s steps(2) infinite;
  }
  @keyframes blinkCaret { 50% { opacity: 0; } }

  /* ——— Screen 2 · Embroidery Flower ——— */
  .screen-flower .win-body {
    background: linear-gradient(180deg, #FFF7F0 0%, #FFEDE0 100%);
    display: grid; place-items: center;
    padding: 10px;
  }
  .flower-svg { width: 80%; height: 80%; }
  .petal {
    transform-box: fill-box;
    transform-origin: center;
    animation: petalPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.32s);
  }
  @keyframes petalPulse {
    0%, 100% { transform: scale(0.2); opacity: 0.15; }
    40%, 60% { transform: scale(1); opacity: 1; }
  }
  .flower-center {
    transform-box: fill-box;
    transform-origin: center;
    animation: centerPop 4s ease-in-out infinite;
    animation-delay: 0.6s;
  }
  @keyframes centerPop {
    0%, 100% { transform: scale(0.4); }
    40%, 60% { transform: scale(1); }
  }
  .stitch {
    stroke-dasharray: 3 3;
    animation: stitchDraw 4s ease-in-out infinite;
  }
  @keyframes stitchDraw {
    0%, 100% { stroke-dashoffset: 40; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 1; }
  }

  /* ——— Screen 3 · Sewing Pattern Grid ——— */
  .screen-pattern .win-body {
    background: #fff;
    padding: 10px;
  }
  .pattern-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 1.5px;
    width: 100%; height: 100%;
  }
  .cell {
    background: #F0FDF4;
    border-radius: 1px;
    animation: cellWave 4.5s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }
  @keyframes cellWave {
    0%, 100% { background: #F0FDF4; }
    50% { background: var(--green-500); }
  }

  /* ——— Screen 4 · Stenography Typewriter ——— */
  .screen-typewriter .win-body {
    background: #FAF7F0;
    padding: 14px 14px 0;
    font-family: ui-monospace, "Courier New", monospace;
    font-size: 10.5px; line-height: 1.7;
    color: #3A3A3A;
  }
  .screen-typewriter .win-body::before {
    content: "";
    position: absolute; top: 0; right: 6px; bottom: 0;
    width: 3px; background: repeating-linear-gradient(
      to bottom, #E8DDC8 0 6px, transparent 6px 14px
    );
  }
  .typed-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    min-height: 100%;
  }
  .steno-caret {
    display: inline-block;
    width: 7px; height: 11px;
    background: var(--green-700);
    vertical-align: middle; margin-left: 1px;
    animation: blinkCaret 1s steps(2) infinite;
  }

  /* ——— Screen 5 · Freelancing (Earnings Dashboard) ——— */
  .screen-earnings .win-body {
    background: linear-gradient(180deg, #FAFDF7 0%, #EAF7DE 100%);
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 5px;
  }
  .earn-total {
    font-family: var(--serif);
    font-size: 26px; font-weight: 600;
    color: var(--green-700); line-height: 1;
    letter-spacing: -0.02em;
  }
  .earn-total::before { content: "$"; font-size: 18px; vertical-align: top; margin-right: 1px; opacity: 0.7; }
  .earn-label {
    font-size: 9px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600;
  }
  .earn-chart {
    display: flex; align-items: flex-end; gap: 3px;
    height: 40px; margin-top: 4px;
    flex: 1;
  }
  .earn-chart .bar {
    flex: 1; background: var(--green-100); border-radius: 2px 2px 0 0;
  }
  .earn-chart .bar.active {
    background: var(--green-500);
    animation: barGrow 2.5s ease-in-out infinite;
  }
  @keyframes barGrow {
    0%, 100% { opacity: 0.7; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1.05); }
    transform-origin: bottom;
  }
  .earn-status {
    font-size: 10px; font-weight: 600; color: var(--green-700);
    padding: 3px 8px; background: var(--green-50);
    border-radius: 999px; width: fit-content;
    display: flex; align-items: center; gap: 4px;
  }
  .earn-status::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: #16A34A;
    animation: blinkDot 1.5s ease-in-out infinite;
  }
  @keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* ——— Screen 6 · Basic IT (System Monitor) ——— */
  .screen-system .win-body {
    background: #0F172A; color: #CBD5E1;
    font-family: ui-monospace, Menlo, monospace;
    padding: 10px 12px; font-size: 10px;
    display: flex; flex-direction: column; gap: 7px;
  }
  .sys-row {
    display: grid; grid-template-columns: 30px 1fr 34px;
    align-items: center; gap: 8px;
  }
  .sys-label { color: #94A3B8; font-weight: 700; letter-spacing: 0.05em; }
  .sys-bar { height: 5px; background: #1E293B; border-radius: 2px; overflow: hidden; }
  .sys-fill { height: 100%; border-radius: 2px; width: 50%; }
  .sys-fill.cpu  { background: #4ADE80; animation: sysCpu 4s ease-in-out infinite; }
  .sys-fill.ram  { background: #60A5FA; animation: sysRam 5s ease-in-out infinite; }
  .sys-fill.disk { background: #FBBF24; width: 78%; }
  .sys-fill.net  { background: #F472B6; animation: sysNet 2.5s ease-in-out infinite; }
  @keyframes sysCpu { 0%,100%{width:35%} 40%{width:68%} 70%{width:50%} }
  @keyframes sysRam { 0%,100%{width:55%} 50%{width:72%} }
  @keyframes sysNet { 0%,100%{width:20%} 50%{width:90%} }
  .sys-pct { color: #E2E8F0; text-align: right; font-weight: 600; font-size: 9.5px; }
  .sys-info {
    margin-top: auto; font-size: 9px; color: #64748B;
    padding-top: 5px; border-top: 1px solid #1E293B;
  }

  /* ——— Screen 7 · Graphic Design (Logo Canvas) ——— */
  .screen-design .win-body {
    background: #F8FAFC;
    padding: 10px;
    display: flex; flex-direction: column; gap: 8px;
    align-items: center; justify-content: center;
  }
  .logo-svg { width: 62%; height: auto; }
  .logo-bg {
    animation: logoHue 6s ease-in-out infinite;
    transform-origin: center; transform-box: fill-box;
  }
  @keyframes logoHue {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(70deg); }
  }
  .logo-a {
    stroke-dasharray: 320; stroke-dashoffset: 320;
    animation: logoDraw 5s ease-in-out infinite;
  }
  @keyframes logoDraw {
    0%, 15% { stroke-dashoffset: 320; }
    45%, 60% { stroke-dashoffset: 0; }
    90%, 100% { stroke-dashoffset: -320; }
  }
  .swatches { display: flex; gap: 7px; }
  .swatch {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    animation: swatchPop 4s ease-in-out infinite;
  }
  .swatch:nth-child(1) { animation-delay: 0s; }
  .swatch:nth-child(2) { animation-delay: 0.4s; }
  .swatch:nth-child(3) { animation-delay: 0.8s; }
  .swatch:nth-child(4) { animation-delay: 1.2s; }
  @keyframes swatchPop {
    0%, 75%, 100% { transform: scale(1); }
    15% { transform: scale(1.4); }
  }

  /* ——— Screen 8 · Computer Hardware (PCB) ——— */
  .screen-pcb .win-body {
    background: #0B1D12;
    display: grid; place-items: center;
    padding: 6px;
  }
  .pcb-svg { width: 100%; height: 100%; }
  .pcb-trace {
    stroke: #4ADE80; fill: none; stroke-width: 1.2;
    opacity: 0.35;
    animation: traceGlow 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.35s);
  }
  @keyframes traceGlow {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; filter: drop-shadow(0 0 2px #4ADE80); }
  }
  .pcb-pulse {
    fill: #FFF;
    animation: pulseDot 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
  }
  @keyframes pulseDot {
    0%, 100% { opacity: 0; r: 1.5; }
    50% { opacity: 1; r: 2.5; }
  }

  /* ——— Screen 9 · Social Media Marketing (Campaign) ——— */
  .screen-social .win-body {
    background: linear-gradient(180deg, #FDF2F8 0%, #FCE7F3 100%);
    padding: 10px; display: flex; flex-direction: column; gap: 7px;
  }
  .post-card {
    background: #fff; border-radius: 6px;
    padding: 7px 9px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .post-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
  .avatar-sm {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--green-500); color: #fff;
    font-weight: 700; font-size: 10px;
    display: grid; place-items: center;
  }
  .post-handle { font-size: 9.5px; font-weight: 700; color: var(--ink-2); }
  .post-body { font-size: 9.5px; color: var(--ink-2); line-height: 1.4; }
  .post-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-row {
    display: flex; align-items: center; gap: 5px;
    background: #fff; border-radius: 4px;
    padding: 4px 7px; font-size: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .stat-icon { color: #EC4899; font-weight: 700; font-size: 11px; }
  .stat-val {
    font-weight: 700; color: var(--ink);
    font-family: ui-monospace, monospace;
  }
  .engagement-bar {
    height: 4px; background: rgba(236,72,153,0.15);
    border-radius: 2px; overflow: hidden;
    margin-top: auto;
  }
  .engagement-fill {
    height: 100%;
    background: linear-gradient(90deg, #EC4899, #F97316);
    animation: engFill 3s ease-out infinite;
  }
  @keyframes engFill {
    0% { width: 0; }
    100% { width: 100%; }
  }

  /* ——— Screen 10 · Programming Basics (Python) ——— */
  .screen-python .win-body {
    background: #1E1E1E; color: #D4D4D4;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10px; line-height: 1.55;
    padding: 8px 10px;
    display: flex; flex-direction: column;
  }
  .screen-python .code-line .kw { color: #569CD6; }
  .screen-python .code-line .fn { color: #DCDCAA; }
  .screen-python .code-line .str { color: #CE9178; }
  .screen-python .code-line .cm  { color: #6A9955; }
  .py-output {
    background: #0D1117; color: #4ADE80;
    border-top: 1px solid #333;
    margin: 6px -10px -8px;
    padding: 5px 10px;
    font-size: 9.5px;
    flex: 1; min-height: 50px;
  }
  .py-line {
    opacity: 0;
    animation: pyLineIn 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
  }
  @keyframes pyLineIn {
    0%, 75%, 100% { opacity: 0; }
    12%, 60% { opacity: 1; }
  }

  /* ——— Screen 11 · Computer Networking (Topology) ——— */
  .screen-network .win-body {
    background: #F0FDF4;
    display: grid; place-items: center;
    padding: 8px;
  }
  .net-svg { width: 100%; height: 100%; }
  .net-line {
    stroke: #86EFAC; stroke-width: 1; fill: none;
    animation: lineGlow 2.4s ease-in-out infinite;
  }
  .net-line[style*="--i:1"] { animation-delay: 0.3s; }
  .net-line[style*="--i:2"] { animation-delay: 0.6s; }
  .net-line[style*="--i:3"] { animation-delay: 0.9s; }
  @keyframes lineGlow {
    0%, 100% { opacity: 0.3; stroke-width: 0.8; }
    50% { opacity: 1; stroke-width: 1.6; }
  }
  .net-router {
    fill: #15803D;
    animation: routerPulse 2s ease-in-out infinite;
    transform-origin: center; transform-box: fill-box;
  }
  @keyframes routerPulse {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 5px rgba(22,163,74,0.7)); }
  }
  .net-device {
    fill: #22C55E;
    animation: devicePulse 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
    transform-origin: center; transform-box: fill-box;
  }
  @keyframes devicePulse {
    0%, 100% { fill: #22C55E; transform: scale(1); }
    50% { fill: #16A34A; transform: scale(1.1); }
  }
  .net-packet {
    fill: #EAB308;
    animation: packetMove 2.4s ease-in-out infinite;
  }
  .net-packet.p1 { offset-path: path('M50,40 L100,80'); animation-delay: 0s; }
  .net-packet.p2 { offset-path: path('M150,40 L100,80'); animation-delay: 0.6s; }
  .net-packet.p3 { offset-path: path('M50,120 L100,80'); animation-delay: 1.2s; }
  .net-packet.p4 { offset-path: path('M150,120 L100,80'); animation-delay: 1.8s; }
  @keyframes packetMove {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
  }

  @media (max-width: 860px) {
    .hero { padding: 48px 0 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
    .hero-side { min-height: 400px; }
    .screens-stack { max-width: 360px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .screen { transition: none; }
    .petal, .flower-center, .cell, .code-caret, .steno-caret, .stitch,
    .earn-chart .bar.active, .sys-fill, .logo-bg, .logo-a, .swatch,
    .pcb-trace, .pcb-pulse, .engagement-fill, .py-line,
    .net-line, .net-router, .net-device, .net-packet { animation: none; }
  }

  /* ---------- MARQUEE ---------- */
  .marquee {
    margin-top: 60px;
    padding: 22px 0; background: var(--ink);
    color: var(--cream); overflow: hidden;
    border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  }
  .marquee-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: scroll 40s linear infinite;
    font-family: var(--serif); font-size: 28px; font-weight: 400;
    font-style: italic;
  }
  .marquee-track span { color: var(--green-500); margin-right: 48px; font-style: normal; font-family: var(--sans); font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; }
  .marquee-track span::before { content: "✦"; margin-right: 14px; }
  @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ---------- SECTION STYLES ---------- */
  section { padding: 110px 0; }
  @media (max-width: 768px) { section { padding: 72px 0; } }

  .section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green-700);
  }
  .section-label::before {
    content: ""; width: 24px; height: 1px; background: var(--green-600);
  }
  .section-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.05; letter-spacing: -0.03em;
    margin-top: 18px; max-width: 820px;
  }
  .section-title em { font-style: italic; color: var(--green-700); }
  .section-lede {
    font-size: 18px; color: var(--muted); max-width: 620px; margin-top: 20px;
  }

  /* ---------- WHY CHOOSE US ---------- */
  .why { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pillars {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid var(--line);
  }
  .pillar {
    padding: 40px 28px 40px 0;
    border-right: 1px solid var(--line);
  }
  .pillar:last-child { border-right: none; padding-right: 0; }
  .pillar:nth-child(n+2) { padding-left: 28px; }
  .pillar-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--green-50); color: var(--green-700);
    display: grid; place-items: center; margin-bottom: 22px;
  }
  .pillar h3 {
    font-family: var(--serif); font-size: 24px; font-weight: 500;
    letter-spacing: -0.02em; line-height: 1.2;
  }
  .pillar p { color: var(--muted); margin-top: 10px; font-size: 15px; }

  @media (max-width: 960px) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 24px !important; }
    .pillar:nth-child(2n) { border-right: none; }
    .pillar:nth-last-child(-n+2) { border-bottom: none; }
  }
  @media (max-width: 560px) {
    .pillars { grid-template-columns: 1fr; }
    .pillar { border-right: none !important; border-bottom: 1px solid var(--line); padding: 28px 0 !important; }
    .pillar:last-child { border-bottom: none; }
  }

  /* ---------- COURSES ---------- */
  .courses-head {
    display: flex; align-items: end; justify-content: space-between;
    flex-wrap: wrap; gap: 30px;
  }

  /* Horizontal scroll carousel */
  .courses-scroll-wrap {
    position: relative;
    margin-top: 56px;
  }
  .courses-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 36px;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .courses-scroll::-webkit-scrollbar { height: 6px; }
  .courses-scroll::-webkit-scrollbar-track { background: transparent; }
  .courses-scroll::-webkit-scrollbar-thumb {
    background: var(--line); border-radius: 3px;
  }
  .courses-scroll::-webkit-scrollbar-thumb:hover { background: var(--green-200, #BBF7D0); }

  /* Edge fade hints */
  .courses-scroll-wrap::before,
  .courses-scroll-wrap::after {
    content: "";
    position: absolute; top: 0; bottom: 36px;
    width: 50px; pointer-events: none; z-index: 2;
    transition: opacity .3s ease;
  }
  .courses-scroll-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--cream) 0%, transparent 100%);
  }
  .courses-scroll-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, var(--cream) 0%, transparent 100%);
  }
  .courses-scroll-wrap[data-at-start="true"]::before { opacity: 0; }
  .courses-scroll-wrap[data-at-end="true"]::after { opacity: 0; }

  /* Card */
  .course {
    flex: 0 0 360px;
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .4s cubic-bezier(.2,.7,.2,1),
                border-color .35s ease,
                box-shadow .35s ease;
  }
  .course:hover {
    transform: translateY(-4px);
    border-color: var(--green-700);
    box-shadow: 0 22px 44px rgba(20,83,45,0.10), 0 4px 12px rgba(0,0,0,0.04);
  }

  /* Image / visual area at top */
  .course-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-bg, var(--green-50));
  }
  .course-image img {
    display: block;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .course:hover .course-image img { transform: scale(1.04); }

  /* Placeholder gradient + giant icon (shown when no <img> present) */
  .course-image-art {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background:
      radial-gradient(circle at 70% 30%, rgba(255,255,255,0.5) 0%, transparent 60%),
      linear-gradient(140deg, var(--c-bg, var(--green-50)) 0%, var(--c-bg-2, #fff) 100%);
  }
  .course-image-art svg {
    width: 38%; height: auto;
    color: var(--c-fg, var(--green-700));
    opacity: 0.38;
    stroke-width: 1.4;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .course:hover .course-image-art svg { transform: rotate(-6deg) scale(1.08); }

  /* Number pill overlay on image */
  .course-num {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 3;
  }

  /* Content area below image */
  .course-content {
    padding: 22px 24px 22px;
    display: flex; flex-direction: column;
    flex: 1;
  }
  .course h3 {
    font-family: var(--serif); font-weight: 500;
    font-size: 24px; letter-spacing: -0.02em; line-height: 1.2;
    color: var(--ink);
    margin: 0 0 8px;
  }
  .course-meta {
    font-size: 10.5px; color: var(--muted);
    font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
    margin-bottom: 14px;
  }
  .course-desc {
    font-size: 14px; line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 22px;
    flex: 1;
  }
  .course-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px; font-weight: 600;
    color: var(--green-700);
  }
  .course-arrow {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--green-50); color: var(--green-700);
    display: grid; place-items: center;
    transition: background .3s ease, color .3s ease, transform .3s ease;
  }
  .course-arrow svg { width: 14px; height: 14px; }
  .course:hover .course-arrow {
    background: var(--green-700); color: #fff;
    transform: translateX(4px);
  }

  /* Per-course color tokens */
  .course[data-color="amber"]   { --c-bg:#FEF3C7; --c-fg:#B45309; --c-bg-2:#FFF7E0; }
  .course[data-color="blue"]    { --c-bg:#DBEAFE; --c-fg:#1D4ED8; --c-bg-2:#EFF4FF; }
  .course[data-color="emerald"] { --c-bg:#D1FAE5; --c-fg:#047857; --c-bg-2:#E8FBF1; }
  .course[data-color="slate"]   { --c-bg:#E2E8F0; --c-fg:#334155; --c-bg-2:#F1F5F9; }
  .course[data-color="rose"]    { --c-bg:#FFE4E6; --c-fg:#BE123C; --c-bg-2:#FFF1F2; }
  .course[data-color="violet"]  { --c-bg:#EDE9FE; --c-fg:#6D28D9; --c-bg-2:#F5F3FF; }
  .course[data-color="pink"]    { --c-bg:#FCE7F3; --c-fg:#BE185D; --c-bg-2:#FFF0F7; }
  .course[data-color="red"]     { --c-bg:#FEE2E2; --c-fg:#B91C1C; --c-bg-2:#FFF1F1; }
  .course[data-color="orange"]  { --c-bg:#FFEDD5; --c-fg:#C2410C; --c-bg-2:#FFF7EB; }
  .course[data-color="indigo"]  { --c-bg:#E0E7FF; --c-fg:#3730A3; --c-bg-2:#EEF1FF; }
  .course[data-color="cyan"]    { --c-bg:#CFFAFE; --c-fg:#0E7490; --c-bg-2:#E5FBFD; }

  /* CTA tile: dark green card (last in carousel) */
  .course-cta { background: var(--green-700); border-color: var(--green-700); color: #fff; }
  .course-cta .course-image {
    background:
      radial-gradient(circle at 75% 35%, rgba(255,255,255,0.12) 0%, transparent 50%),
      linear-gradient(140deg, var(--green-700) 0%, #14532D 100%);
    display: grid; place-items: center;
  }
  .course-cta .cta-pulse {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: grid; place-items: center;
    animation: ctaPulse 2.4s ease-in-out infinite;
  }
  .course-cta .cta-pulse svg { width: 36px; height: 36px; color: #fff; }
  @keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    50%      { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
  }
  .course-cta h3 { color: #fff; }
  .course-cta .course-desc { color: rgba(255,255,255,0.75); }
  .course-cta-eyebrow {
    font-family: var(--sans);
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--green-100); margin-bottom: 10px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .course-cta-eyebrow::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: #86EFAC;
    animation: blinkDot 1.4s ease-in-out infinite;
  }
  .course-cta .course-foot {
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #fff;
  }
  .course-cta .course-arrow {
    background: rgba(255,255,255,0.15); color: #fff;
  }
  .course-cta:hover {
    transform: translateY(-4px);
    background: #14532D; border-color: #14532D;
    box-shadow: 0 22px 44px rgba(20,83,45,0.22);
  }
  .course-cta:hover .course-arrow { background: #fff; color: var(--green-700); }

  /* Scroll buttons */
  .scroll-nav {
    display: flex; gap: 10px;
    margin-top: 4px;
  }
  .scroll-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    display: grid; place-items: center;
    cursor: pointer;
    transition: all .25s ease;
  }
  .scroll-btn:hover {
    border-color: var(--green-700);
    background: var(--green-700); color: #fff;
    transform: translateY(-1px);
  }
  .scroll-btn:disabled {
    opacity: 0.35; cursor: default;
    transform: none; background: #fff; color: var(--ink); border-color: var(--line);
  }
  .scroll-btn svg { width: 18px; height: 18px; }

  /* Mobile adjustments */
  @media (max-width: 760px) {
    .course { flex: 0 0 82vw; max-width: 360px; }
    .course-content { padding: 20px 22px 20px; }
    .course h3 { font-size: 22px; }
    .courses-scroll-wrap::before,
    .courses-scroll-wrap::after { width: 24px; }
  }

  /* ---------- ADMISSION PROCESS ---------- */
  .process { background: var(--green-900); color: var(--cream); }
  .process .section-label { color: var(--green-100); }
  .process .section-label::before { background: var(--green-500); }
  .process .section-title { color: var(--cream); }
  .process .section-title em { color: var(--green-500); }
  .process .section-lede { color: rgba(220,252,231,.7); }

  .steps {
    margin-top: 64px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  }
  .step { position: relative; padding-top: 32px; }
  .step::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: rgba(220,252,231,.15);
  }
  .step .n {
    font-family: var(--serif); font-size: 56px; font-weight: 400; font-style: italic;
    color: var(--green-500); line-height: 1; letter-spacing: -0.03em;
  }
  .step h4 {
    font-family: var(--serif); font-weight: 500;
    font-size: 22px; margin-top: 18px; letter-spacing: -0.01em;
  }
  .step p { color: rgba(220,252,231,.65); margin-top: 10px; font-size: 15px; }

  @media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
  @media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

  /* ---------- DIRECTOR'S MESSAGE ---------- */
  .director {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .director-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 72px;
    align-items: start;
  }
  .director-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: var(--green-50);
    border: 1px solid var(--line);
  }
  .director-image-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .director-image-placeholder {
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 70% 25%, rgba(255,255,255,0.4) 0%, transparent 55%),
      linear-gradient(140deg, #DCFCE7 0%, #BBF7D0 100%);
    display: grid; place-items: center;
  }
  .director-image-placeholder svg {
    width: 45%; height: auto;
    color: var(--green-700);
    opacity: 0.3;
    stroke-width: 1.3;
  }
  .director-image-badge {
    position: absolute; bottom: 16px; left: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 6px 12px 6px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .director-image-badge::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--green-600);
  }
  .director-message { padding-top: 4px; }
  .director-body {
    margin-top: 28px;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-2);
  }
  .director-body p { margin: 0 0 18px; }
  .director-body p:first-child::first-letter {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 64px;
    line-height: 0.85;
    float: left;
    margin: 6px 10px 0 0;
    color: var(--green-700);
  }
  .director-sign {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
  }
  .sign-mark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 38px;
    color: var(--green-700);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .sign-text { line-height: 1.3; }
  .sign-name {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .sign-title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
  }

  @media (max-width: 860px) {
    .director-grid { grid-template-columns: 1fr; gap: 40px; }
    .director-image-wrap { max-width: 320px; }
    .director-body { font-size: 15.5px; }
  }

  /* ---------- FINAL CTA ---------- */
  .final-cta {
    background: var(--green-50);
    border-top: 1px solid var(--green-100);
  }
  .cta-card {
    background: var(--ink); color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
    position: relative; overflow: hidden;
  }
  .cta-card::before {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, var(--green-500) 0%, transparent 70%);
    opacity: 0.5;
  }
  .cta-card h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05;
    letter-spacing: -0.03em; position: relative;
  }
  .cta-card h2 em { font-style: italic; color: var(--green-500); }
  .cta-card p { color: rgba(220,252,231,.7); margin-top: 16px; max-width: 480px; position: relative; font-size: 17px; }
  .cta-actions {
    display: flex; flex-direction: column; gap: 14px; position: relative;
  }
  .cta-actions .btn { justify-content: center; padding: 18px 28px; font-size: 16px; }
  .cta-actions .btn-primary { background: var(--green-500); color: var(--ink); }
  .cta-actions .btn-primary:hover { background: #fff; }
  .cta-actions .btn-outline { border-color: rgba(220,252,231,.3); color: var(--cream); }
  .cta-actions .btn-outline:hover { background: var(--cream); color: var(--ink); }

  @media (max-width: 860px) {
    .cta-card { grid-template-columns: 1fr; padding: 48px 28px; gap: 28px; }
  }

  /* ---------- FOOTER ---------- */
  footer { background: var(--ink); color: rgba(250,250,245,.75); padding: 80px 0 32px; }
  .foot-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 56px; border-bottom: 1px solid rgba(250,250,245,.1);
  }
  .foot-brand .logo { color: var(--cream); font-size: 22px; }
  .foot-brand p { margin-top: 16px; font-size: 15px; max-width: 320px; }
  .foot-col h5 {
    color: var(--cream); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
  }
  .foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .foot-col a { font-size: 14px; transition: color .2s; }
  .foot-col a:hover { color: var(--green-500); }
  .foot-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
  .foot-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--green-500); }

  .socials { display: flex; gap: 10px; margin-top: 22px; }
  .socials a {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(250,250,245,.2);
    display: grid; place-items: center;
    transition: background .2s, border-color .2s, color .2s;
  }
  .socials a:hover { background: var(--green-500); border-color: var(--green-500); color: var(--ink); }

  .foot-bottom {
    padding-top: 32px; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; font-size: 13px;
  }
  .foot-bottom a:hover { color: var(--green-500); }

  @media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .foot-brand { grid-column: span 2; }
  }
  @media (max-width: 500px) {
    .foot-grid { grid-template-columns: 1fr; }
    .foot-brand { grid-column: auto; }
  }

  /* ---------- FLOATING WHATSAPP ---------- */
  .wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(37,211,102,.4);
    transition: transform .2s ease;
  }
  .wa-float:hover { transform: scale(1.08); }
  .wa-float::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid #25D366; opacity: 0.5;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
  @keyframes ping {
    0% { transform: scale(1); opacity: 0.5; }
    75%,100% { transform: scale(1.5); opacity: 0; }
  }

  /* Reveal on scroll */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ---------- LANGUAGE SWITCHER ---------- */
  .lang-switch {
    display: inline-flex; align-items: center;
    padding: 4px; gap: 2px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 999px;
    margin-left: 12px;
  }
  .lang-btn {
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--muted);
    transition: all .25s ease;
    line-height: 1;
    font-family: var(--sans);
  }
  .lang-btn[data-lang="ur"] { font-family: "Noto Nastaliq Urdu", "Manrope", sans-serif; font-size: 15px; padding-top: 4px; padding-bottom: 4px; }
  .lang-btn:hover { color: var(--green-700); }
  .lang-btn.is-active { background: var(--green-700); color: #fff; }
  @media (max-width: 900px) {
    .nav .lang-switch { display: none; }
    .mobile-menu .lang-switch { display: inline-flex; margin: 16px 0 0; align-self: flex-start; }
  }
  /* Show the nav switcher alongside the burger on mobile too */
  .nav .lang-switch-mobile {
    display: none;
  }
  @media (max-width: 900px) {
    .nav .lang-switch-mobile { display: inline-flex; margin-right: 8px; margin-left: 0; padding: 3px; }
    .nav .lang-switch-mobile .lang-btn { padding: 5px 10px; font-size: 12px; }
    .nav .lang-switch-mobile .lang-btn[data-lang="ur"] { font-size: 14px; }
  }

  /* ---------- URDU / RTL STYLES ---------- */
  html[lang="ur"] body {
    font-family: "Noto Nastaliq Urdu", "Manrope", sans-serif;
    line-height: 1.9;
  }
  html[lang="ur"] .logo,
  html[lang="ur"] .section-title,
  html[lang="ur"] .hero h1,
  html[lang="ur"] .pillar h3,
  html[lang="ur"] .course h3,
  html[lang="ur"] .step h4,
  html[lang="ur"] .tw-course,
  html[lang="ur"] .cta-card h2,
  html[lang="ur"] .marquee-track {
    font-family: "Noto Nastaliq Urdu", "Fraunces", serif;
    line-height: 1.6;
  }
  /* Serif italic doesn't exist in Urdu; use weight emphasis instead */
  html[lang="ur"] em { font-style: normal; color: var(--green-700); font-weight: 600; }
  html[lang="ur"] .hero h1 em::after { display: none; }
  html[lang="ur"] .hero h1 { font-size: clamp(36px, 5.5vw, 78px); }
  /* RTL layout */
  html[dir="rtl"] .nav-links a::after { transform-origin: right; }
  html[dir="rtl"] .pillar:last-child,
  html[dir="rtl"] .pillar { border-right: none; border-left: 1px solid var(--line); padding: 40px 0 40px 28px; }
  html[dir="rtl"] .pillar:first-child { border-left: 1px solid var(--line); padding-left: 28px; }
  html[dir="rtl"] .pillar:nth-child(n+2) { padding-left: 28px; padding-right: 28px; }
  html[dir="rtl"] .pillar:last-child { border-left: none; padding-left: 0; }
  html[dir="rtl"] .pillars { border-top: 1px solid var(--line); }
  html[dir="rtl"] .section-label::before { margin-left: 0; margin-right: 0; }
  html[dir="rtl"] .course-num,
  html[dir="rtl"] .step .n { direction: ltr; unicode-bidi: isolate; }
  html[dir="rtl"] .hero-side .screens-stack { direction: ltr; }  /* keep screens LTR */
  html[dir="rtl"] .marquee-track { direction: ltr; }  /* keep marquee LTR */
  html[dir="rtl"] .foot-contact svg { margin-left: 8px; margin-right: 0; }
  html[dir="rtl"] .course-arrow svg,
  html[dir="rtl"] .hero-ctas svg,
  html[dir="rtl"] .btn svg { transform: scaleX(-1); }
  html[dir="rtl"] .foot-bottom { flex-direction: row-reverse; }
  /* Nav links visual order flips naturally with RTL, but we want logo on the right in RTL */
  html[dir="rtl"] .nav-inner { direction: rtl; }
  html[dir="rtl"] .hero-eyebrow { direction: rtl; }
  html[dir="rtl"] .lang-btn { direction: ltr; }


  /* ============================================== */
  /* ===== COURSE DETAIL PAGE ===================== */
  /* ============================================== */

  .course-hero {
    padding: 70px 0 50px;
    background:
      radial-gradient(circle at 85% 30%, rgba(22,163,74,0.10) 0%, transparent 55%),
      linear-gradient(180deg, var(--green-50) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--line);
  }
  .crumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
    margin-bottom: 28px;
  }
  .crumbs a { color: var(--muted); transition: color .2s; }
  .crumbs a:hover { color: var(--green-700); }
  .crumbs .sep { opacity: 0.5; }
  .crumbs .current { color: var(--ink); font-weight: 600; }

  .course-hero-grid {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 56px; align-items: center;
  }
  .course-hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02; letter-spacing: -0.03em;
    margin-top: 18px;
    color: var(--ink);
  }
  .course-hero h1 em { font-style: italic; color: var(--green-700); }
  .course-hero .lede {
    font-size: 18px; color: var(--muted); margin-top: 22px;
    max-width: 540px; line-height: 1.6;
  }
  .course-tags {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
  }
  .course-tag {
    padding: 8px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .course-tag svg {
    width: 14px; height: 14px; color: var(--green-700);
  }
  .course-hero-actions {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  }
  .course-hero-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    aspect-ratio: 1 / 1;
    background: #fff;
  }
  .course-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
  }

  @media (max-width: 860px) {
    .course-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .course-hero { padding: 50px 0 36px; }
  }

  /* ===== Quick facts strip ===== */
  .course-facts {
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .facts-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .fact {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 6px;
  }
  .fact:last-child { border-right: none; }
  .fact-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
  }
  .fact-value {
    font-family: var(--serif); font-weight: 500;
    font-size: 24px; letter-spacing: -0.01em;
    color: var(--ink);
  }

  @media (max-width: 860px) {
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(2n) { border-right: none; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  }
  @media (max-width: 500px) {
    .facts-grid { grid-template-columns: 1fr; }
    .fact { border-right: none; border-bottom: 1px solid var(--line); }
    .fact:last-child { border-bottom: none; }
  }

  /* ===== Curriculum / Modules ===== */
  .course-body { padding: 100px 0; background: var(--cream); }
  .course-body-grid {
    display: grid; grid-template-columns: 1.6fr 1fr;
    gap: 72px; align-items: start;
  }

  .modules-list {
    display: grid; gap: 14px;
    margin-top: 40px;
  }
  .module {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 18px; align-items: start;
    padding: 22px 24px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  }
  .module:hover {
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .module-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--green-50); color: var(--green-700);
    display: grid; place-items: center;
    font-family: var(--serif); font-weight: 600; font-size: 16px;
  }
  .module h4 {
    font-family: var(--serif); font-weight: 500;
    font-size: 19px; letter-spacing: -0.01em;
    color: var(--ink); margin-bottom: 4px;
  }
  .module p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

  /* Side card (sticky) */
  .side-card {
    position: sticky; top: 92px;
    padding: 30px; border-radius: 18px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .side-card h3 {
    font-family: var(--serif); font-weight: 500;
    font-size: 22px; letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .side-card .price {
    font-family: var(--serif); font-size: 38px; font-weight: 500;
    color: var(--green-700); letter-spacing: -0.02em;
    margin: 18px 0 4px;
  }
  .side-card .price small {
    font-family: var(--sans);
    font-size: 13px; font-weight: 600;
    color: var(--muted); letter-spacing: 0.04em;
    margin-left: 6px;
  }
  .side-card .note {
    font-size: 13px; color: var(--muted); margin-bottom: 22px;
  }
  .side-card ul { list-style: none; margin: 22px 0; }
  .side-card li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--ink-2); padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .side-card li:first-child { border-top: none; }
  .side-card li svg {
    width: 16px; height: 16px; color: var(--green-600);
    flex-shrink: 0; margin-top: 3px;
  }
  .side-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
  .side-card .btn + .btn { margin-top: 10px; }

  @media (max-width: 960px) {
    .course-body-grid { grid-template-columns: 1fr; gap: 48px; }
    .side-card { position: static; }
  }

  /* ===== Tools / Outcomes pills ===== */
  .pill-grid {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
  }
  .pill {
    padding: 10px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 14px; font-weight: 500; color: var(--ink-2);
  }
  .pill strong { color: var(--green-700); font-weight: 700; }

  .outcomes {
    margin-top: 26px;
    display: grid; gap: 14px;
  }
  .outcome {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15.5px; color: var(--ink-2);
    line-height: 1.55;
  }
  .outcome:last-child { border-bottom: none; }
  .outcome svg {
    width: 22px; height: 22px; flex-shrink: 0; color: var(--green-600);
    margin-top: 1px;
  }

  /* ===== Other-courses strip ===== */
  .other-courses { background: #fff; border-top: 1px solid var(--line); padding: 80px 0; }
  .other-courses h3 {
    font-family: var(--serif); font-size: 32px; font-weight: 500;
    letter-spacing: -0.02em; margin-bottom: 30px;
  }
  .other-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  }
  .other-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: var(--cream);
    border: 1px solid var(--line); border-radius: 14px;
    transition: border-color .25s, transform .25s;
  }
  .other-card:hover {
    border-color: var(--green-700); transform: translateY(-2px);
  }
  .other-card img {
    width: 64px; height: 64px; border-radius: 10px;
    object-fit: cover; flex-shrink: 0;
  }
  .other-card .t {
    font-family: var(--serif); font-weight: 500; font-size: 17px;
    color: var(--ink); margin-bottom: 2px;
  }
  .other-card .m {
    font-size: 11.5px; color: var(--muted); font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  @media (max-width: 760px) {
    .other-list { grid-template-columns: 1fr; }
  }

  /* ===== Mini-nav for course page (cleaner header) ===== */
  .course-hero .section-label {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid var(--green-100);
    padding: 8px 14px; border-radius: 999px;
    font-size: 12px; letter-spacing: 0.1em;
  }
  .course-hero .section-label::before { display: none; }

  /* ============================================== */
  /* ===== INLINE LANGUAGE PAIRS (en/ur) ========== */
  /* ============================================== */
  .lang-ur { display: none; }
  html[lang="ur"] .lang-en { display: none; }
  html[lang="ur"] .lang-ur { display: revert; }
  html[lang="ur"] .lang-ur.block { display: block; }
  html[lang="ur"] .lang-ur.inline-block { display: inline-block; }

  /* ============================================== */
  /* ===== GALLERY PAGE =========================== */
  /* ============================================== */
  .gallery-hero {
    padding: 80px 0 30px;
    background:
      radial-gradient(circle at 85% 30%, rgba(22,163,74,0.12) 0%, transparent 55%),
      linear-gradient(180deg, var(--green-50) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .gallery-hero .section-label {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid var(--green-100);
    padding: 8px 14px; border-radius: 999px;
    font-size: 12px; letter-spacing: 0.1em;
    margin: 0 auto;
  }
  .gallery-hero .section-label::before { display: none; }
  .gallery-hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 1.04; letter-spacing: -0.03em;
    margin-top: 22px;
    color: var(--ink);
  }
  .gallery-hero h1 em { font-style: italic; color: var(--green-700); }
  .gallery-hero .lede {
    font-size: 18px; color: var(--muted); margin: 22px auto 0;
    max-width: 620px; line-height: 1.65;
  }

  .gallery-section { padding: 70px 0 110px; background: var(--cream); }
  .gallery-grid {
    column-count: 3;
    column-gap: 20px;
  }
  .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease, border-color .25s ease;
    display: block;
  }
  .gallery-item:hover {
    transform: translateY(-3px);
    border-color: var(--green-700);
    box-shadow: 0 18px 36px rgba(20,83,45,0.12);
  }
  .gallery-item img {
    width: 100%; height: auto;
    display: block;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .gallery-item:hover img { transform: scale(1.03); }

  @media (max-width: 900px) {
    .gallery-grid { column-count: 2; column-gap: 14px; }
    .gallery-item { margin-bottom: 14px; }
  }
  @media (max-width: 540px) {
    .gallery-grid { column-count: 1; }
  }

  /* Lightbox */
  .lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10,10,10,0.92);
    display: none;
    align-items: center; justify-content: center;
    padding: 30px;
    opacity: 0; transition: opacity .25s ease;
  }
  .lightbox.open { display: flex; opacity: 1; }
  .lightbox img {
    max-width: 100%; max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
  .lightbox .lb-close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer; transition: background .2s;
  }
  .lightbox .lb-close:hover { background: rgba(255,255,255,0.22); }
  .lightbox .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer; transition: background .2s;
  }
  .lightbox .lb-nav:hover { background: rgba(255,255,255,0.22); }
  .lightbox .lb-prev { left: 24px; }
  .lightbox .lb-next { right: 24px; }
  .lightbox .lb-caption {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  }
