/* ==========================================================================
   AI for the Modern Office — design system
   Vibe: Editorial Luxury (warm paper, variable serif display, film grain)
   Layout: Editorial Split hero + Asymmetrical Bento curriculum
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper:      #FBF8F3;
  --paper-2:    #F4EEE4;
  --paper-3:    #EBE3D5;
  --ink:        #17140F;
  --ink-2:      #5C564B;
  --ink-3:      #706A5C;  /* 5.08:1 on paper, 4.66:1 on paper-2 — clears AA for small text */
  --clay:       #8F4F22;
  --clay-deep:  #6E3B18;
  --clay-tint:  #F0E2D6;
  --seal:       #1E3A30;
  --line:       rgba(23, 20, 15, 0.10);
  --line-soft:  rgba(23, 20, 15, 0.06);

  --r-lg: 2rem;
  --r-md: 1.25rem;
  --r-sm: 0.75rem;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  --shadow-soft: 0 1px 2px rgba(23,20,15,0.03), 0 8px 24px -12px rgba(23,20,15,0.10);
  --shadow-lift: 0 2px 4px rgba(23,20,15,0.04), 0 24px 60px -24px rgba(23,20,15,0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Film grain — fixed, pointer-events none, never on scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

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

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 24px;
  font-variation-settings: 'opsz' 120, 'SOFT' 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 20px;
}
h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 10px; }

.lede {
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 36px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clay-deep);
  background: var(--clay-tint);
  margin-bottom: 24px;
}

/* ---------- Fluid island nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 20px 0 0;
  pointer-events: none;
}
.nav-island {
  pointer-events: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 2px rgba(23,20,15,0.04), 0 12px 32px -16px rgba(23,20,15,0.24);
  border: 1px solid rgba(255,255,255,0.6);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 400ms var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
/* Compact enrol pill inside the island, shown only on small screens where the link row hides */
.nav-cta { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-island { padding: 8px 8px 8px 18px; gap: 14px; }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 500ms var(--ease);
  }
  .nav-cta:active { transform: scale(0.97); }
  .nav-cta .pip {
    width: 22px; height: 22px;
    border-radius: 999px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.16);
    font-size: 0.72rem; line-height: 1;
  }
}

/* ---------- Buttons: island + button-in-button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 500ms var(--ease), background-color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #241f18; box-shadow: var(--shadow-lift); }

.btn-clay { background: var(--clay-deep); color: #fff; box-shadow: var(--shadow-soft); }
.btn-clay:hover { background: #5c3013; box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  padding: 12px 24px;
}
.btn-ghost:hover { background: var(--paper-2); }

.btn .pip {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14);
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 500ms var(--ease), background-color 500ms var(--ease);
}
.btn-ghost .pip { background: rgba(23,20,15,0.06); }
.btn:hover .pip { transform: translate(3px, -1px) scale(1.06); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Sections ---------- */

section { position: relative; }
.sec { padding: clamp(72px, 11vw, 140px) 0; }
.sec-tight { padding: clamp(56px, 8vw, 100px) 0; }
.sec-alt { background: var(--paper-2); }

.sec-head { max-width: 62ch; margin-bottom: 56px; }
.sec-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* ---------- Hero: editorial split + 3D layered planes ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 11vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.hero-stat .n {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.hero-stat .l {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
  display: block;
}

/* Double bezel portrait */
.portrait-shell {
  position: relative;
  padding: 10px;
  border-radius: var(--r-lg);
  background: rgba(23,20,15,0.04);
  border: 1px solid var(--line-soft);
  transform: rotate(1.4deg);
  transition: transform 900ms var(--ease);
}
.portrait-shell:hover { transform: rotate(0deg); }
.portrait-core {
  border-radius: calc(var(--r-lg) - 0.55rem);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), var(--shadow-lift);
  aspect-ratio: 4 / 5;
}
.portrait-core img { width: 100%; height: 100%; object-fit: cover; display: block; }

.portrait-caption {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.portrait-caption strong { color: var(--ink); font-weight: 600; display: block; font-size: 0.95rem; }

/* Floating 3D planes behind hero */
.planes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1200px;
  z-index: 0;
  overflow: hidden;
}
.plane {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.9), rgba(244,238,228,0.55));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 30px 70px -40px rgba(23,20,15,0.35);
  opacity: 0.55;
  will-change: transform;
}
.plane-1 { width: 260px; height: 330px; top: 8%;  right: -60px; transform: rotateX(14deg) rotateY(-22deg) rotateZ(6deg); }
.plane-2 { width: 200px; height: 260px; bottom: 6%; left: -70px; transform: rotateX(-10deg) rotateY(18deg) rotateZ(-8deg); }
.plane-3 { width: 150px; height: 190px; top: 46%; right: 32%; transform: rotateX(20deg) rotateY(14deg) rotateZ(-4deg); opacity: 0.35; }
@media (max-width: 900px) { .plane-3 { display: none; } }

/* ---------- Bento: what you learn ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento .cell { grid-column: span 2; }
.bento .cell.wide { grid-column: span 3; }
.bento .cell.full { grid-column: span 6; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento .cell, .bento .cell.wide, .bento .cell.full { grid-column: span 1; }
}

/* Double bezel card */
.card {
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(23,20,15,0.035);
  border: 1px solid var(--line-soft);
  height: 100%;
  transition: transform 700ms var(--ease), background-color 700ms var(--ease);
}
.card:hover { background: rgba(143,79,34,0.08); transform: translateY(-4px); }
.card-core {
  height: 100%;
  border-radius: calc(var(--r-lg) - 0.5rem);
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), var(--shadow-soft);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
}
.sec-alt .card { background: rgba(23,20,15,0.05); }
.sec-alt .card-core { background: var(--paper); }

.card .idx {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--clay);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}
.card p { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 16px; }

.skill-list { list-style: none; padding: 0; margin: 0; }
.skill-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-bottom: 9px;
  line-height: 1.5;
}
.skill-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--clay);
  opacity: 0.55;
  transform: rotate(45deg);
}
.card-tag {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* ---------- Outcome strip ---------- */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.outcome {
  padding: 26px 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}
.outcome .big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--clay-deep);
  display: block;
  margin-bottom: 12px;
}
.outcome p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

.price-card .card-core { padding: 34px 32px 36px; }
.price-card.featured { background: rgba(143,79,34,0.10); }
.price-card .tier {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: block;
}
.price-card .amt {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.price-card .amt small { font-size: 0.95rem; color: var(--ink-3); font-family: var(--font-body); }
.price-card .who { color: var(--ink-2); font-size: 0.94rem; margin: 0 0 22px; }
.price-card .skill-list { margin-bottom: 26px; }

.enterprise-note {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: 0.93rem;
  color: var(--ink-2);
}
.enterprise-note strong { color: var(--ink); }

/* ---------- Checkout ---------- */

.checkout-panel { padding: 8px; border-radius: var(--r-lg); background: rgba(23,20,15,0.05); border: 1px solid var(--line-soft); }
.checkout-core {
  border-radius: calc(var(--r-lg) - 0.5rem);
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), var(--shadow-soft);
  padding: 34px 32px 36px;
}
.checkout-form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.checkout-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 0.8rem; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.checkout-form input, .checkout-form select {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 400ms var(--ease), background-color 400ms var(--ease);
}
.checkout-form input:focus, .checkout-form select:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--paper);
}
.checkout-form button { margin-top: 8px; justify-content: center; }
.checkout-status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.checkout-status p { margin: 0; }
.pay-note { font-size: 0.84rem; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- Capture ---------- */

.capture-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; max-width: 520px; }
.capture-form input[type="email"] {
  flex: 1; min-width: 230px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.capture-form input[type="email"]:focus { outline: none; border-color: var(--clay); }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  position: relative;
  transition: color 400ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--clay-deep); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--ink-3);
  transition: transform 500ms var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .a { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 0.97rem; margin: 0; max-width: 68ch; }

/* ---------- Quote ---------- */

.quote-block {
  padding: 10px;
  border-radius: var(--r-lg);
  background: rgba(30,58,48,0.06);
  border: 1px solid var(--line-soft);
}
.quote-core {
  border-radius: calc(var(--r-lg) - 0.55rem);
  background: var(--seal);
  color: #EDE8DE;
  padding: clamp(36px, 5vw, 60px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.10);
}
.quote-core p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.32;
  margin: 0 0 26px;
  color: #F6F2EA;
}
.quote-attrib { font-size: 0.88rem; color: rgba(237,232,222,0.72); margin: 0; }
.quote-attrib strong { color: #fff; display: block; font-weight: 600; margin-bottom: 3px; }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(56px, 7vw, 90px) 0 56px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-pitch {
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(143,79,34,0.09);
  border: 1px solid var(--line-soft);
}
.footer-pitch-core {
  border-radius: calc(var(--r-lg) - 0.5rem);
  background: var(--paper);
  padding: 26px 26px 28px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.footer-pitch p { margin: 0 0 16px; font-size: 0.97rem; color: var(--ink-2); }
.footer-pitch strong { color: var(--ink); }

.footer-meta { font-size: 0.86rem; color: var(--ink-3); margin-top: 44px; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-meta a { color: var(--ink-3); text-decoration: none; }
.footer-meta a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal-body { padding: 8px 0 clamp(64px, 8vw, 100px); }
.legal-body h2 { font-size: 1.35rem; margin-top: 48px; margin-bottom: 14px; }
.legal-body p { max-width: 68ch; color: var(--ink-2); font-size: 0.99rem; }
.legal-links { margin-top: 48px; font-size: 0.93rem; }

/* ---------- Scroll reveal ---------- */

/* Hidden state only applies once JS has confirmed it will reveal them. If JS is blocked or
   fails, nothing is ever hidden, so the page is always readable. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease-soft),
    transform 900ms var(--ease-soft),
    filter 900ms var(--ease-soft);
  will-change: transform, opacity;
}
.js-reveal [data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
.js-reveal [data-reveal][data-d="1"] { transition-delay: 90ms; }
.js-reveal [data-reveal][data-d="2"] { transition-delay: 180ms; }
.js-reveal [data-reveal][data-d="3"] { transition-delay: 270ms; }
.js-reveal [data-reveal][data-d="4"] { transition-delay: 360ms; }
.js-reveal [data-reveal][data-d="5"] { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .plane { display: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Visual system â€” 3D art, hubs, lanes, mobile menu
   Added when the site became an umbrella brand rather than one course page.
   ========================================================================== */

/* ---------- Art frames ----------
   Every illustration sits in a soft, rounded well so the SVGs read as objects
   in a scene rather than clip art dropped onto the page. */

.art {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255,255,255,0.95), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
}
.art img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; }
.art.art-wide { aspect-ratio: 16 / 10; }
.art.art-tall { aspect-ratio: 4 / 5; }
.sec-alt .art {
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255,255,255,0.95), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--paper), var(--paper-3));
}

/* Decorative gradient orbs, used sparingly behind sections */
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.orb-clay { background: rgba(143,79,34,0.20); }
.orb-seal { background: rgba(30,58,48,0.16); }
/* Orbs deliberately sit outside the content column. Without this they widen the document and
   the whole page scrolls sideways, which is worst on the phones most of this traffic uses. */
.sec, .sec-tight { overflow: hidden; }
.sec > .wrap, .sec > .wrap-narrow, .hero > .wrap, .hero > .wrap-narrow { position: relative; z-index: 1; }

/* ---------- Hub cards: one per course, one per project ---------- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(23,20,15,0.035);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 700ms var(--ease), background-color 700ms var(--ease);
}
.hub-card:hover { background: rgba(143,79,34,0.09); transform: translateY(-5px); }
.hub-card-core {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--r-lg) - 0.5rem);
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), var(--shadow-soft);
  overflow: hidden;
}
.hub-card .art { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.hub-card .art img { padding: 3% 8%; }
.hub-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.hub-body h3 { margin-bottom: 8px; }
.hub-body p { color: var(--ink-2); font-size: 0.94rem; margin: 0 0 18px; }
.hub-meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.hub-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.hub-price small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-3);
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hub-go { font-size: 0.88rem; font-weight: 600; color: var(--clay-deep); white-space: nowrap; }
.hub-card:hover .hub-go { text-decoration: underline; text-underline-offset: 4px; }

/* Status pill on a hub card, e.g. Open now / In production */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pill-open { background: rgba(30,58,48,0.10); color: #163026; }
.pill-soon { background: var(--paper-3); color: #5C564B; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---------- Alternating art and text split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split.flip .split-art { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-art { order: 0; }
}
.split-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.split-text p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- Lanes: the three things this site does ---------- */

.lane-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.lane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}
.lane:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.lane-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--clay-tint);
}
.lane-icon svg { width: 26px; height: 26px; }
.lane h3 { margin: 0; font-size: 1.18rem; }
.lane p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.lane .hub-go { margin-top: auto; padding-top: 6px; }

/* ---------- Compact about block ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--ink-2); margin: 0 0 16px; }
.about-grid p:last-of-type { margin-bottom: 0; }

/* ---------- Credential and venture chips ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--ink-2);
  text-decoration: none;
}
a.chip:hover { background: var(--clay-tint); color: var(--clay-deep); }

/* ---------- Fact strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.sec-alt .facts { background: var(--paper); }
.fact .n { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; display: block; color: var(--clay-deep); }
.fact .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 8px; display: block; }

/* ---------- Breadcrumb on a landing page ---------- */

.crumb { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 18px; letter-spacing: 0.04em; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--clay-deep); }

/* ---------- Mobile menu ----------
   The nav outgrew a single row once courses and projects each got a hub, so small
   screens get a real menu instead of hiding every link. */

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-links { display: none; }
  .nav-island {
    position: relative;
    width: calc(100% - 32px);
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    gap: 14px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span { position: relative; display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px; height: 1.6px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 400ms var(--ease);
  }
  .nav-toggle span::before { top: -5px; }
  .nav-toggle span::after { top: 5px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    padding: 12px;
    border-radius: var(--r-md);
    background: rgba(251, 248, 243, 0.97);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 24px 60px -24px rgba(23,20,15,0.28);
  }
  .nav-open .nav-links a {
    padding: 13px 12px;
    font-size: 0.98rem;
    color: var(--ink);
    border-radius: var(--r-sm);
  }
  .nav-open .nav-links a:hover { background: var(--paper-2); }
}


/* ---------- Photography ----------
   Real photographs, used sparingly and only where the image is genuinely Ugandan. The 3D and
   vector art carries everywhere else, because generic stock of somebody at a laptop in a
   Western office actively undercuts a Uganda only brand.
   `.art` frames illustrations, which need padding and breathing room. `.photo` frames
   photographs, which need to fill their frame and sit under a warm wash so a dozen images from
   different photographers still read as one set. */

.photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lift);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Pulls every photograph toward the paper and clay palette */
  filter: saturate(0.88) contrast(1.02);
}
/* Warm wash, plus a soft darkening at the foot so a caption stays legible over any image */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(23, 20, 15, 0.42), rgba(23, 20, 15, 0) 55%),
    linear-gradient(150deg, rgba(143, 79, 34, 0.16), rgba(30, 58, 48, 0.10));
  mix-blend-mode: multiply;
}
.photo.photo-wide { aspect-ratio: 16 / 10; }
.photo.photo-band { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
@media (max-width: 700px) {
  .photo.photo-band { aspect-ratio: 4 / 3; }
}

/* Caption sitting inside the image, on the darkened foot */
.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 22px 24px;
  color: #F6F2EA;
  font-size: 0.86rem;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(23, 20, 15, 0.5);
}
.photo-caption strong { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }

