/* =========================================================
   Keith Kakumanu — personal branding site
   Minimal, modern, responsive. Light + dark (auto).
   ========================================================= */

:root {
  --ink:        #0f1115;
  --ink-soft:   #3a3f4a;
  --muted:      #6b7280;
  --line:       #e7e8ec;
  --bg:         #ffffff;
  --bg-soft:    #f6f7f9;
  --bg-alt:     #f2f3f7;
  --card:       #ffffff;

  --accent:     #6366f1;   /* indigo */
  --accent-2:   #8b5cf6;   /* violet */
  --accent-ink: #ffffff;
  --accent-soft:#eef0ff;

  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 1px 2px rgba(16,18,27,.04), 0 12px 32px -12px rgba(16,18,27,.14);
  --shadow-lg:0 24px 60px -24px rgba(79,70,229,.35);

  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Sora", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #f4f5f7;
    --ink-soft: #c7cad2;
    --muted:    #9aa0ac;
    --line:     #23262e;
    --bg:       #0b0c10;
    --bg-soft:  #101218;
    --bg-alt:   #0e1015;
    --card:     #14161d;
    --accent-soft:#191a2e;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
    --shadow-lg:0 24px 60px -24px rgba(99,102,241,.5);
  }
}

/* ---------- Reset-ish ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { line-height: 1.15; margin: 0; font-family: var(--display); letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.pt-0 { padding-top: 40px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; gap: 9px;
  height: var(--bh); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: #4f46e5; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: .9rem; background: var(--accent); color: var(--accent-ink); }
.btn-sm:hover { background: #4f46e5; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: .95rem;
  box-shadow: var(--shadow-lg);
}
.brand-name { font-family: var(--display); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li > a:not(.btn) {
  display: inline-block; padding: 9px 14px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 500; font-size: .96rem;
  transition: color .15s, background .15s;
}
.nav-menu > li > a:not(.btn):hover,
.nav-menu > li > a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-title { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.stats { display: flex; gap: 40px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stat dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.stat dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.6rem; }

/* Hero art */
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; z-index: 0; }
.orb-a { width: 300px; height: 300px; background: var(--accent); top: -20px; right: 10px; }
.orb-b { width: 240px; height: 240px; background: var(--accent-2); bottom: -10px; left: 0; opacity: .5; }
.hero-photo {
  position: relative; z-index: 1; margin: 0; width: min(380px, 100%);
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow-lg);
  /* subtle fade-in + rise on load */
  opacity: 0; transform: translateY(18px) scale(.985);
  animation: photoReveal 1s cubic-bezier(.22,.61,.36,1) .15s forwards;
}
.hero-photo img { width: 100%; height: auto; display: block; aspect-ratio: 644 / 900; object-fit: cover; }
.hero-photo::after {
  /* soft gradient sheen at the bottom for depth */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(99,102,241,.10) 100%);
}
@keyframes photoReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Platforms strip ---------- */
.platforms { border-block: 1px solid var(--line); background: var(--bg-soft); }
.platforms-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 22px 24px; }
.platforms-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.platforms a { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink-soft); transition: color .15s; }
.platforms a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-media { display: grid; place-items: center; }
.avatar {
  width: 260px; height: 260px; border-radius: 28px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--display); font-weight: 800; font-size: 5rem;
  box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.about-copy p { color: var(--ink-soft); margin-top: 16px; }
.about-copy em { color: var(--ink); font-style: normal; font-weight: 600; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.link-arrow svg { transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-thumb {
  aspect-ratio: 16/10; display: grid; place-items: center; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: rgba(255,255,255,.9);
}
.card-thumb span { text-shadow: 0 2px 14px rgba(0,0,0,.22); }
.thumb-1 { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.thumb-2 { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.thumb-3 { background: linear-gradient(135deg,#8b5cf6,#ec4899); }
.thumb-4 { background: linear-gradient(135deg,#10b981,#0ea5e9); }
.thumb-5 { background: linear-gradient(135deg,#f59e0b,#ec4899); }
.thumb-6 { background: linear-gradient(135deg,#ec4899,#6366f1); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.2rem; }
.card-body p { color: var(--ink-soft); font-size: .98rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .86rem; margin-top: auto; }
.card-link { position: absolute; inset: 0; }

/* badges */
.badge { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; }
.badge-beginner { background: #dcfce7; color: #15803d; }
.badge-intermediate { background: #dbeafe; color: #1d4ed8; }
.badge-advanced { background: #fce7f3; color: #be185d; }
@media (prefers-color-scheme: dark) {
  .badge-beginner { background: rgba(34,197,94,.15); color: #4ade80; }
  .badge-intermediate { background: rgba(59,130,246,.15); color: #60a5fa; }
  .badge-advanced { background: rgba(236,72,153,.15); color: #f472b6; }
}

/* ---------- Content / YouTube ---------- */
.content-cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.content-copy p { color: var(--ink-soft); margin: 16px 0 26px; max-width: 460px; }
.content-visual { display: grid; place-items: center; min-height: 240px;
  background: var(--grad); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.play-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px);
  box-shadow: 0 0 0 12px rgba(255,255,255,.08); }

/* ---------- CTA band ---------- */
.cta-band { background: #0f1115; text-align: center; }
@media (prefers-color-scheme: dark){ .cta-band { background: #14161d; border-block: 1px solid var(--line);} }
.cta-inner { max-width: 620px; margin-inline: auto; }
.cta-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-sub { color: rgba(255,255,255,.72); margin: 14px 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (courses) ---------- */
.page-hero { padding: 76px 0 20px; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; max-width: 780px; }
.page-lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 560px; margin-top: 20px; }

/* ---------- Filters ---------- */
.filters-wrap { padding: 30px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-soft); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .15s ease; font-family: var(--font);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.courses-grid .card { animation: fade .35s ease both; }
.courses-empty { text-align: center; color: var(--muted); padding: 40px 0; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink-soft); font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { width: 100%; color: var(--muted); font-size: .86rem; padding-top: 8px; border-top: 1px solid var(--line); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
  .avatar { width: 180px; height: 180px; font-size: 3.4rem; }
  .content-cta { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px;
    background: var(--bg); cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow);
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-menu > li > a:not(.btn) { padding: 12px 14px; }
  .nav-menu .btn { justify-content: center; margin-top: 8px; }

  .cards { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .stat dd { font-size: 1.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  /* keep the hero photo visible when its reveal animation is disabled */
  .hero-photo { opacity: 1 !important; transform: none !important; }
}
