/* STACK Coding Bootcamp — Bento Stack SIGNATURE
 * Dark Apple aesthetic + Bento grid + glass nav + scroll-driven cell zoom
 */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Background */
  --bg-base:        #0a0a0c;
  --bg-cell:        #16161a;
  --bg-cell-hover:  #1d1d22;
  --bg-elevated:    #222228;
  --bg-glass:       rgba(16, 16, 20, 0.72);

  /* Text */
  --fg-primary:     #f5f5f7;
  --fg-secondary:   #a1a1a6;
  --fg-tertiary:    #6e6e73;

  /* Accent */
  --accent:         #0a84ff;
  --accent-hover:   #409cff;
  --accent-soft:    rgba(10, 132, 255, 0.18);
  --accent-glow:    rgba(10, 132, 255, 0.35);

  /* Code */
  --code-keyword:   #ff7ab2;
  --code-string:    #acdc79;
  --code-comment:   #6e6e73;
  --code-fn:        #41a6ff;
  --code-num:       #ffd479;

  /* Border / Shadow */
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-card:    rgba(255, 255, 255, 0.12);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --shadow-cell:    0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.30);
  --shadow-lift:    0 12px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-glow:    0 0 0 1px rgba(10,132,255,0.35), 0 12px 32px rgba(10,132,255,0.22);

  /* Type */
  --display: 'Inter Tight', system-ui, -apple-system, 'SF Pro Display', sans-serif;
  --text:    'Inter', system-ui, -apple-system, 'SF Pro Text', sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Grid */
  --gap:        16px;
  --gap-lg:     24px;
  --radius:     20px;
  --radius-sm:  12px;
  --radius-lg:  28px;

  /* Z */
  --z-nav:      80;
  --z-cursor:   90;
  --z-drawer:   100;
  --z-banner:   120;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* perspective REMOVED — was breaking position:fixed (banner/nav-pill/drawer scrolled with body, drawer height stretched to entire body) */
}
/* 3D perspective scoped to <main> only — keeps tilt while leaving fixed elements bound to viewport */
main { perspective: 1200px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--fg-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;       /* iOS zoom 방지 */
  width: 100%;
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-cell);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Demo banner ───────────────────────────────────── */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-banner);
  background: linear-gradient(90deg, var(--accent) 0%, #5e5ce6 100%);
  color: white; font-family: var(--mono); font-size: 12px;
  padding: 8px 16px; text-align: center; letter-spacing: 0.04em;
}
.demo-banner a { text-decoration: underline; font-weight: 600; }
body.has-banner { padding-top: 32px; }

/* ── Glass Nav (Top Translucent Bar) ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  height: 56px;
}
body.has-banner .nav { top: 32px; }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px;
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px; color: var(--fg-secondary);
  padding: 6px 14px; border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--fg-primary); background: rgba(255,255,255,0.05); }
.nav-cta {
  background: var(--accent); color: white;
  font-weight: 600; font-size: 14px;
  padding: 8px 18px; border-radius: 999px;
  margin-left: 8px;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-user { display: inline-flex; gap: 4px; align-items: center; margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.15); }
.nav-user-link { font-family: var(--mono); color: var(--text-soft); font-size: 12px; padding: 6px 10px; transition: color .2s; }
.nav-user-link:hover { color: var(--text); }
.nav-user-cta { border: 1px solid var(--accent); color: var(--accent) !important; padding: 6px 12px; border-radius: 8px; font-weight: 600; }
.nav-user-cta:hover { background: var(--accent); color: var(--bg-deep) !important; }
.nav-burger { display: none; }
/* Drawer X close + divider + user-link (T3 bento dark) */
.drawer-close {
  position: absolute; top: 60px; right: 24px;
  width: 48px; height: 48px;
  background: var(--bg-elevated, #1a1a1c); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 24px; font-weight: 400;
  color: var(--accent); line-height: 1; cursor: pointer;
  border: 1px solid var(--accent);
  transition: transform .2s, background .2s; z-index: 2;
}
body.has-banner .drawer-close { top: 80px; }
.drawer-close:hover { background: var(--accent); color: var(--bg-deep); transform: rotate(90deg); }
.drawer-divider { width: 60%; height: 1px; background: var(--accent); opacity: 0.4; margin: 12px auto; }
.drawer-user-link { color: var(--accent) !important; padding: 12px 0 !important; font-size: 17px !important; font-family: var(--mono) !important; }

/* ── Bento Grid System ─────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);   /* row-2 span cells가 다음 row와 겹치지 않게 */
  gap: var(--gap);
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 24px;
}
.bento-section { padding: 80px 0; }
.bento-section + .bento-section { padding-top: 0; }

.cell {
  background: var(--bg-cell);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              background .25s, border-color .25s, box-shadow .35s;
  box-shadow: var(--shadow-cell);
  transform-style: preserve-3d;
  will-change: transform;
}
.cell:hover {
  background: var(--bg-cell-hover);
  border-color: var(--border-strong);
  transform: translateZ(20px) translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.cell.no-pad { padding: 0; }
.cell.is-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #5e5ce6 100%);
  color: white;
  border-color: transparent;
}
.cell.is-accent:hover { box-shadow: var(--shadow-glow); }
.cell.is-flippable { cursor: pointer; }

/* Span helpers */
.col-2  { grid-column: span 2;  } .col-3  { grid-column: span 3;  }
.col-4  { grid-column: span 4;  } .col-5  { grid-column: span 5;  }
.col-6  { grid-column: span 6;  } .col-7  { grid-column: span 7;  }
.col-8  { grid-column: span 8;  } .col-9  { grid-column: span 9;  }
.col-12 { grid-column: span 12; }
.row-2  { grid-row: span 2; }
.row-3  { grid-row: span 3; }

/* ── Section Header (small label + title) ──────────── */
.sec-header { grid-column: span 12; padding: 0 4px 24px; }
.sec-eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em; line-height: 1.05; color: var(--fg-primary);
  max-width: 920px;
}
.sec-sub {
  font-size: 18px; color: var(--fg-secondary);
  margin-top: 16px; max-width: 720px; line-height: 1.55;
}

/* ── Hero ──────────────────────────────────────────── */
#hero { padding: 120px 0 40px; }
body.has-banner #hero { padding-top: 152px; }
.hero-headline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95; letter-spacing: -0.04em;
  white-space: pre-line;
}
.hero-headline .accent {
  background: linear-gradient(180deg, var(--accent), #5e5ce6);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 24px); color: var(--fg-secondary);
  margin-top: 24px; max-width: 560px; line-height: 1.4; font-weight: 400;
}
.hero-meta {
  font-family: var(--mono); font-size: 13px; color: var(--fg-tertiary);
  margin-top: 32px; letter-spacing: 0.04em;
}
.hero-cta-cell {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.hero-cta-cell .label {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.02em;
}
.hero-cta-cell .arrow { font-size: 32px; align-self: flex-end; }

.stat-cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.stat-big {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(64px, 7vw, 96px);
  letter-spacing: -0.04em; line-height: 1; color: var(--fg-primary);
}
.stat-sub {
  font-family: var(--mono); font-size: 13px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Terminal cell ─────────────────────────────────── */
.term-cell { padding: 0; min-height: 200px; }
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title { margin-left: 8px; }
.term-body {
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  padding: 16px 18px; color: var(--code-string);
  min-height: 120px; white-space: pre-wrap;
}
.term-body .prompt { color: var(--accent); }
.term-body .comment { color: var(--code-comment); }
.term-cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--accent); margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; }
}

/* ── Logo cycle cell ───────────────────────────────── */
.logo-cycle-cell {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 180px;
}
.logo-cycle-label {
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.logo-cycle-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em; line-height: 1;
}
.logo-cycle-name .fade-in {
  display: inline-block;
  animation: fadeUp .55s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Photo cells ───────────────────────────────────── */
.photo-cell { padding: 0; min-height: 280px; position: relative; }
.photo-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.photo-cell:hover img { transform: scale(1.05); }
.photo-caption {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(10,10,12,0.78); backdrop-filter: blur(12px);
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
}

/* ── Stat-stack cell (3 stats) ─────────────────────── */
.stat-stack-cell { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.stat-stack-cell .row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}
.stat-stack-cell .row:last-child { border: 0; padding-bottom: 0; }
.stat-stack-cell .big {
  font-family: var(--display); font-weight: 800; font-size: 36px;
  letter-spacing: -0.02em;
}
.stat-stack-cell .sub {
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Code snippet flippable cell ───────────────────── */
.snip-cell { padding: 0; }
.snip-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-tertiary); text-transform: uppercase; letter-spacing: 0.08em;
}
.snip-tabs { display: flex; gap: 4px; }
.snip-tab {
  padding: 4px 10px; border-radius: 6px;
  cursor: pointer; transition: background .15s, color .15s;
}
.snip-tab.active { background: var(--accent-soft); color: var(--accent); }
.snip-body {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  padding: 16px 18px; color: var(--fg-primary);
  white-space: pre-wrap;
}

/* ── Module Card ───────────────────────────────────── */
.module-cell {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px; cursor: pointer;
}
.module-num {
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  letter-spacing: 0.1em;
}
.module-name {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
}
.module-week {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-tertiary); text-transform: uppercase; letter-spacing: 0.08em;
}
.module-keys {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.module-key {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-elevated); color: var(--fg-secondary);
  border: 1px solid var(--border-subtle);
}
.module-snip {
  margin-top: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  padding: 12px 14px; background: var(--bg-base);
  border-radius: var(--radius-sm); color: var(--code-string);
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
}

/* ── Live coding terminal full ─────────────────────── */
.live-terminal-cell { padding: 0; min-height: 360px; }
.live-terminal-body {
  font-family: var(--mono); font-size: 14px; line-height: 1.7;
  padding: 24px;
  white-space: pre-wrap;
  color: var(--fg-primary);
}
.live-terminal-body .kw { color: var(--code-keyword); }
.live-terminal-body .str { color: var(--code-string); }
.live-terminal-body .com { color: var(--code-comment); }
.live-terminal-body .fn { color: var(--code-fn); }
.live-terminal-body .num { color: var(--code-num); }

/* ── Mentor cell ───────────────────────────────────── */
.mentor-cell { padding: 0; position: relative; min-height: 240px; }
.mentor-cell.row-2 { min-height: 504px; }
.mentor-cell img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.2);
  transition: filter .35s, transform .8s cubic-bezier(.2,.8,.2,1);
}
.mentor-cell:hover img { filter: grayscale(0); transform: scale(1.04); }
.mentor-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(10,10,12,0.92));
}
.mentor-name {
  font-family: var(--display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
}
.mentor-role {
  font-family: var(--mono); font-size: 11px; color: var(--fg-secondary);
  margin-top: 4px; letter-spacing: 0.04em;
}
.mentor-prev {
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  margin-top: 2px; letter-spacing: 0.04em;
}

/* ── Project cell ──────────────────────────────────── */
.project-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  min-height: 320px;
}
.project-img-half { position: relative; overflow: hidden; }
.project-img-half img { width: 100%; height: 100%; object-fit: cover; }
.project-info-half {
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid var(--border-subtle);
}
.project-name {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em;
}
.project-stack {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.04em;
}
.project-student {
  font-size: 13px; color: var(--fg-secondary);
}
.project-snip {
  margin-top: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  padding: 12px; background: var(--bg-base); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); color: var(--code-string);
  white-space: pre-wrap;
}

/* ── Career outcome ────────────────────────────────── */
.salary-mega-cell {
  display: flex; flex-direction: column; gap: 16px; min-height: 280px;
}
.salary-mega {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(80px, 10vw, 144px);
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, var(--accent), #5e5ce6);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.salary-sub {
  display: flex; gap: 32px; font-family: var(--mono); font-size: 13px;
  color: var(--fg-tertiary); margin-top: auto;
}
.salary-sub strong { color: var(--fg-primary); font-weight: 600; }

/* Apple "Used by" style mono wordmark grid (no real logos — demo placeholder) */
.logo-wall-cell { padding: 28px; min-height: 280px; display: flex; flex-direction: column; gap: 18px; }
.logo-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--border-subtle);                /* hairline divider grid */
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.logo-tile {
  background: var(--bg-base);
  aspect-ratio: 5 / 3;                             /* Apple wordmark proportions */
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--fg-secondary);
  text-align: center; padding: 8px 6px;
  transition: background .2s, color .2s;
  position: relative;
}
.logo-tile:hover {
  background: var(--bg-cell-hover);
  color: var(--fg-primary);
}
.logo-tile:hover::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 14%;
  height: 1px; background: var(--accent);
}
.logo-disclaimer {
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  letter-spacing: 0.02em; line-height: 1.5;
  display: flex; align-items: center; gap: 8px;
}
.logo-disclaimer::before {
  content: 'i'; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--fg-tertiary);
  font-family: var(--display); font-style: italic; font-size: 10px;
  flex-shrink: 0;
}

/* ── Calendar (cohort schedule) ─────────────────────── */
.calendar-cell { padding: 24px; }
.cohort-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; margin-bottom: 12px;
  background: var(--bg-base); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: border-color .2s, background .2s;
}
.cohort-card:last-child { margin-bottom: 0; }
.cohort-card.is-active {
  border-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.cohort-card.is-closed { opacity: 0.45; }
.cohort-label {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
.cohort-dates {
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
  margin-top: 4px; letter-spacing: 0.04em;
}
.cohort-meta {
  display: flex; gap: 24px; align-items: center;
}
.cohort-meta-item {
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cohort-meta-item strong {
  display: block; font-family: var(--display); font-size: 22px;
  font-weight: 700; color: var(--fg-primary); letter-spacing: -0.01em;
  margin-top: 2px;
}
.cohort-status {
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--bg-elevated); color: var(--fg-secondary);
}
.cohort-status.open { background: var(--accent); color: white; }
.cohort-status.earlybird { background: rgba(172,220,121,0.18); color: #acdc79; }
.cohort-status.closed { background: rgba(255,255,255,0.06); color: var(--fg-tertiary); }
.cohort-status.reserve { background: rgba(255,255,255,0.06); color: var(--fg-tertiary); }

/* ── Reviews (Tweet card stack) ─────────────────────── */
.review-cell {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px;
}
.review-head {
  display: flex; align-items: center; gap: 12px;
}
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5e5ce6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: white;
}
.review-name {
  font-family: var(--display); font-weight: 600; font-size: 14px;
}
.review-handle {
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
  margin-top: 2px;
}
.review-body {
  font-size: 15px; line-height: 1.55; color: var(--fg-secondary);
}
.review-role {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.04em; margin-top: auto;
}

/* ── CTA Bento ─────────────────────────────────────── */
#cta { padding-top: 40px; padding-bottom: 80px; }
.cta-headline-cell {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
}
.cta-headline {
  font-family: var(--display); font-weight: 900;
  font-size: 48px; letter-spacing: -0.03em; line-height: 1;
}
.cta-deadline {
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cta-spots {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  margin-top: 8px;
}
.field-label {
  display: block;
  font-family: var(--mono); font-size: 11px; color: var(--fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.cta-submit {
  width: 100%; padding: 18px 24px;
  background: var(--accent); color: white;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  transition: background .15s, transform .15s;
}
.cta-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }
.cta-meta {
  text-align: center; margin-top: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
}

/* ── Footer (Bento mini) ───────────────────────────── */
.footer { padding: 60px 0 80px; border-top: 1px solid var(--border-subtle); margin-top: 40px; }
.footer-cell {
  display: flex; flex-direction: column; gap: 12px; min-height: 160px;
}
.footer-cell.brand .name {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.02em;
}
.footer-cell.brand .manifesto {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-list a {
  font-size: 14px; color: var(--fg-secondary);
  transition: color .15s;
}
.footer-list a:hover { color: var(--fg-primary); }
.footer-cell h4 {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-tertiary); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 4px;
  font-weight: 500;
}
.footer-meta {
  grid-column: span 12; padding-top: 24px;
  border-top: 1px solid var(--border-subtle); margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--fg-tertiary);
}

/* ── Custom Cursor (code caret blink) ──────────────── */
.cursor-caret {
  position: fixed; top: 0; left: 0;
  width: 2px; height: 18px;
  background: var(--accent);
  pointer-events: none; z-index: var(--z-cursor);
  transform: translate(-100px, -100px);
  transition: transform 0.06s linear;
  animation: blink 1.1s step-end infinite;
  mix-blend-mode: difference;
  display: none;
}
@media (pointer: fine) { .cursor-caret { display: block; } }

/* ── Reveal (scroll-driven) ────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Mobile Drawer ─────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--bg-cell);
  border-left: 1px solid var(--border-card);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  padding: 80px 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  font-family: var(--display); font-weight: 600; font-size: 22px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
}
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7  { grid-column: span 12; }
  .row-2 { grid-row: auto; }
  .mentor-cell.row-2 { min-height: 320px; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--bg-elevated); border: 1px solid var(--border-card);
  }
  .bento { padding: 0 16px; gap: 12px; }
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
  .bento-section { padding: 60px 0; }
  .hero-headline { font-size: 56px; }
  .salary-mega { font-size: 80px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .project-cell { grid-template-columns: 1fr; }
  .project-info-half { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .cell { padding: 20px; }
  .cohort-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cohort-meta { width: 100%; justify-content: space-between; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 44px; }
  .stat-big { font-size: 56px; }
  .salary-mega { font-size: 64px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}

/* ── Reduce motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .cursor-caret { display: none !important; }
}


/* ===========================================
   RETROFIT v1.27 — motionsites integration
   slug: bento-apple
   effects: X, Q
   =========================================== */
/* === retrofit v1.27 motionsites bento-asymmetric (MIT) === */
@media (prefers-reduced-motion: no-preference) {
  .bento-cell, [class*="bento-"], .grid > * {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  }
  .bento-cell:hover, [class*="bento-"]:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  }
}/* === retrofit v1.27 motionsites marquee (MIT) === */
.marquee, .ticker, .scroll-x { overflow: hidden; }
.marquee > *:first-child, .ticker > *:first-child {
  display: flex; gap: 60px; width: max-content;
  animation: rt-marquee 30s linear infinite;
}
@keyframes rt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee > *, .ticker > * { animation: none; } }