/* ===== Tokens (shared look with the portfolio) ===== */
:root {
  --bg: #ffffff;
  --text: #09090b;
  --text-2: #374151;
  --muted: #71717a;
  --border: #e4e4e7;
  --glass: rgba(255, 255, 255, 0.45);
  --glass-strong: rgba(255, 255, 255, 0.7);
  --blue: #3b82f6;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

/* One accent per semester */
.c1 { --accent: #0f766e; --tint: rgba(20, 184, 166, .10); }
.c2 { --accent: #16a34a; --tint: rgba(34, 197, 94, .10); }
.c3 { --accent: #7c3aed; --tint: rgba(139, 92, 246, .10); }
.c4 { --accent: #c026d3; --tint: rgba(217, 70, 239, .10); }
.c5 { --accent: #d97706; --tint: rgba(245, 158, 11, .12); }
.c6 { --accent: #2563eb; --tint: rgba(59, 130, 246, .10); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
b { font-weight: 600; color: var(--text); }

#fluid { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, footer, .dock { position: relative; z-index: 1; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}
.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.note-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent, var(--muted));
  margin-bottom: 6px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 72px 16px 56px;
  max-width: 980px; margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.hero-kicker { margin-top: 28px; font-size: 20px; font-weight: 600; color: var(--muted); }
h1 {
  margin-top: 6px;
  font-size: clamp(40px, 7.4vw, 76px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
}
.grad {
  background: linear-gradient(90deg, #0f766e, #7c3aed 50%, #c026d3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 36px; width: 100%; text-align: left;
}
.hero-card { padding: 18px 20px; border-radius: 20px; }
.hero-card .note-label { --accent: var(--text); }
.hero-card p { color: var(--text-2); }
.hero-note { margin-top: 22px; max-width: 760px; color: var(--text-2); font-size: 15px; }
.disclaimer {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 14px; color: #b45309;
}
.scroll-cue {
  margin-top: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translateY(5px); } }

.reveal-hero {
  opacity: 0; transform: translateY(16px); filter: blur(6px);
  animation: in .8s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes in { to { opacity: 1; transform: none; filter: none; } }

/* ===== Dock ===== */
.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 40;
  display: flex; gap: 4px; padding: 6px; border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.dock.show { transform: translate(-50%, 0); opacity: 1; }
.dock a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 14px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background .2s, color .2s;
}
.dock a .ic { width: 16px; height: 16px; }
.dock a:hover, .dock a.active { background: rgba(244, 244, 245, .95); color: var(--text); }

/* ===== Sections ===== */
.section { width: min(1080px, 100%); margin: 0 auto; padding: 72px 16px; }
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15;
}
.sec-num {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0f766e, #7c3aed);
}
.sec-num .ic { width: 20px; height: 20px; }
.section-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.section-sub.center { text-align: center; margin-top: 18px; }

/* ===== 1. Timeline ===== */
.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-top: 30px;
}
.timeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 36px; height: 2px; z-index: -1;
  background: linear-gradient(90deg, #0f766e, #16a34a, #7c3aed, #c026d3, #d97706, #2563eb);
  opacity: .35;
}
.step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; border-radius: 20px;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); background: var(--glass-strong); box-shadow: 0 14px 30px rgba(0, 0, 0, .07); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff; background: var(--accent);
}
.step-title { font-weight: 650; font-size: 15px; line-height: 1.3; margin-top: 6px; }
.step-theme { font-size: 13px; color: var(--muted); }

/* ===== 2. Semesters ===== */
.semesters { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.semester {
  border-radius: 28px; padding: 30px;
  border-top: 3px solid var(--accent);
  scroll-margin-top: 20px;
}
.sem-head { display: flex; align-items: center; gap: 18px; }
.sem-num {
  font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--accent); opacity: .9;
}
.sem-kicker { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.sem-head h3 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sem-intro { margin-top: 16px; color: var(--text-2); padding: 12px 16px; border-radius: 14px; background: var(--tint); }
.sem-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-top: 22px; }
.sem-col { display: flex; flex-direction: column; gap: 14px; }
.col-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.courses { list-style: none; counter-reset: c; display: flex; flex-direction: column; gap: 10px; }
.courses li {
  counter-increment: c; position: relative;
  padding-left: 38px; color: var(--text-2); font-size: 15px;
}
.courses li::before {
  content: counter(c); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--accent); background: var(--tint);
}
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--border);
}
.note > .ic { margin-top: 1px; color: var(--accent); }
.note p { color: var(--text-2); font-size: 14.5px; }
.note .note-label { margin-bottom: 3px; }
.note.ai { background: linear-gradient(135deg, rgba(139, 92, 246, .08), rgba(217, 70, 239, .06)); }
.note.ai > .ic, .note.ai .note-label { color: #7c3aed; }
.note.milestone { background: rgba(254, 243, 199, .55); border-color: rgba(245, 158, 11, .3); }
.note.milestone > .ic, .note.milestone .note-label { color: #b45309; }
.project {
  padding: 18px 20px; border-radius: 18px;
  background: var(--tint); border: 1px solid transparent;
}
.project .note-label .ic { width: 16px; height: 16px; }
.project h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.project p { color: var(--text-2); font-size: 14.5px; }

.guides { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.guide {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.guide:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .07); border-color: #ff0033; }
.guide b { display: block; font-size: 14px; font-weight: 650; color: var(--text); line-height: 1.3; }
.guide small { display: block; font-size: 12.5px; color: var(--muted); }
.yt { width: 30px; height: 30px; flex: none; }
.g-arrow { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }
.guide:hover .g-arrow { color: #ff0033; }
.note.why > .ic, .note.why .note-label { color: var(--accent); }
.res-guide { border-color: rgba(255, 0, 51, .25); background: linear-gradient(135deg, rgba(255, 241, 242, .8), rgba(255, 255, 255, .6)); }
.res-guide .res-topic { color: #e11d48; }

.side {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .55); border: 1px dashed #d4d4d8;
}
.side .note-label { color: var(--muted); }
.side .note-label .ic { width: 16px; height: 16px; }
.side h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.side p { color: var(--text-2); font-size: 14px; }

.build-label {
  display: flex; align-items: center; gap: 7px;
  margin: 16px 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent);
}
.build-label .ic { width: 15px; height: 15px; }
.build { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.build li {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(228, 228, 231, .9);
  font-size: 14px; line-height: 1.5; color: var(--text-2);
}
.tag {
  display: inline-block; margin: 0 8px 2px 0; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px;
  color: var(--accent); background: var(--tint);
}

/* ===== 3. Resources ===== */
.callout {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 14px 18px; border-radius: 16px; color: var(--text-2);
}
.callout .ic { color: var(--blue); }
.res-group { margin-top: 30px; }
.res-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.res-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.res {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 40px 16px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.res:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .85); box-shadow: 0 12px 26px rgba(0, 0, 0, .06); border-color: var(--accent); }
.res-topic { font-size: 12px; font-weight: 600; color: var(--accent); }
.res-name { font-size: 15px; font-weight: 650; color: var(--text); line-height: 1.3; }
.res-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cost { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cost.free { background: rgba(220, 252, 231, .95); color: #15803d; }
.cost.paid { background: rgba(254, 243, 199, .95); color: #b45309; }
.res-arrow { position: absolute; top: 16px; right: 14px; width: 16px; height: 16px; color: var(--muted); transition: transform .2s, color .2s; }
.res:hover .res-arrow { transform: translate(2px, -2px); color: var(--accent); }

/* ===== 4. Weekly ===== */
.weekly { margin-top: 24px; padding: 28px; border-radius: 28px; }
.weekly-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.weekly-total span { color: var(--muted); font-weight: 500; }
.weekly-total b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.stack { display: flex; gap: 6px; height: 18px; margin: 18px 0 20px; }
.stack span { flex: var(--h); border-radius: 999px; transform-origin: left; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.weekly:not(.visible) .stack span { transform: scaleX(0); }
.w1 { background: #0f766e; } .w2 { background: #16a34a; } .w3 { background: #7c3aed; } .w4 { background: #d97706; }
.weekly-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.weekly-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 8px 0; border-bottom: 1px dashed var(--border); }
.weekly-list li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* ===== 5. Checklist ===== */
.checklist { margin-top: 24px; padding: 28px; border-radius: 28px; }
.check-head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.ring {
  --p: 0;
  width: 92px; height: 92px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .95) 78%, transparent 80% 100%),
    conic-gradient(#16a34a calc(var(--p) * 1%), #e4e4e7 0);
  transition: --p .6s;
}
.ring span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.check-title { font-size: 20px; font-weight: 700; }
.check-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.reset {
  margin-top: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: none; border: 0; cursor: pointer; padding: 0;
}
.reset:hover { color: var(--text); text-decoration: underline; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--border);
  transition: background .2s, border-color .2s;
}
.check:hover { background: rgba(255, 255, 255, .9); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box {
  width: 22px; height: 22px; flex: none; border-radius: 7px; margin-top: 1px;
  border: 2px solid #d4d4d8; background: #fff;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.box::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform .2s cubic-bezier(.2, .8, .2, 1.4);
}
.check input:checked + .box { background: #16a34a; border-color: #16a34a; }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-text { color: var(--text-2); font-size: 15px; }
.check input:checked ~ .check-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(22, 163, 74, .5); }
.check:has(input:checked) { border-color: rgba(22, 163, 74, .35); background: rgba(240, 253, 244, .7); }

/* ===== 6. Tamara ===== */
.warning {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px; padding: 24px 26px; border-radius: 24px;
  background: rgba(255, 251, 235, .65); border-color: rgba(245, 158, 11, .35);
}
.warn-ic { width: 26px; height: 26px; color: #d97706; margin-top: 2px; }
.warning p { color: var(--text-2); }
.warning p + p { margin-top: 10px; }

/* ===== Strategy ===== */
.split { display: flex; gap: 6px; height: 14px; margin-top: 28px; }
.split span { flex: var(--w); border-radius: 999px; transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.split:not(.visible) span { transform: scaleX(0); }
.split .s1 { background: #0f766e; } .strat.s1 b { color: #0f766e; }
.split .s2 { background: #7c3aed; } .strat.s2 b { color: #7c3aed; }
.split .s3 { background: #d97706; } .strat.s3 b { color: #d97706; }
.strategy { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-top: 16px; }
.strat { padding: 22px; border-radius: 24px; transition: transform .25s, background .25s; }
.strat:hover { transform: translateY(-3px); background: var(--glass-strong); }
.strat b {
  display: block; width: fit-content;
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.strat h3 { font-size: 18px; font-weight: 700; margin: 6px 0; }
.strat p { color: var(--text-2); font-size: 14.5px; }
.principle {
  position: relative;
  margin-top: 28px; padding: 30px 32px 30px 76px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(240, 253, 250, .7), rgba(245, 243, 255, .7));
}
.q-ic { position: absolute; left: 28px; top: 30px; width: 30px; height: 30px; color: #7c3aed; }
.principle .note-label { color: #7c3aed; }
.principle p { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--text); font-weight: 500; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 16px 120px; }
footer a { color: var(--text); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { display: none; }
  .sem-body { grid-template-columns: 1fr; }
  .strategy { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .hero-cards, .checks, .weekly-list { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .semester, .weekly, .checklist { padding: 20px; border-radius: 22px; }
  .sem-num { font-size: 40px; }
  .principle { padding: 70px 22px 24px; }
  .q-ic { left: 22px; top: 24px; }
  .dock { width: calc(100% - 24px); justify-content: space-between; bottom: 12px; }
  .dock a { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 10.5px; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .scroll-cue { animation: none; }
  .stack span, .split span { transition: none; transform: none !important; }
}
