/* ── rgbguy — editorial dark theme ── */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --red:    #F97316;
  --red-dim: #c45a0a;
  --bg:     #080808;
  --bg-1:   #0e0e0e;
  --bg-2:   #141414;
  --line:   #1c1c1c;
  --line-2: #242424;
  --text:   #deded6;
  --text-2: #888880;
  --text-3: #444440;
  --mono:   'Space Mono', monospace;
  --sans:   'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Nav ── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 3rem 0;
  background: rgba(8,8,8,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
}
.nav-logo b { color: var(--red); font-weight: 700; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.nav-highlight { color: var(--red); }
.nav-links a.nav-highlight:hover { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--red-dim); }

/* ── Burger button ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  border-bottom: 1px solid var(--line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--text); }
.nav-mobile .nav-mobile-cta {
  margin-top: 1.5rem;
  color: var(--red);
  border-bottom: none;
}

/* ── Page wrapper ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 3rem 6rem;
}

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-header .section-id {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  min-width: 2.5rem;
  flex-shrink: 0;
}

.page-header-text h1 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #f0f0e8;
}
.page-header-text h1 em { font-style: italic; color: var(--red); }

.page-header-text .sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.35rem;
}

/* ── Section label ── */
.section-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

/* ── Grid list (1px line grid) ── */
.line-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.line-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.line-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.line-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* ── Card base ── */
.card {
  background: var(--bg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.card:hover { background: var(--bg-1); }

/* Red accent bar on card hover */
.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.card:hover .card-accent { transform: scaleX(1); }

/* ── Row item (for lists) ── */
.row-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row-item:last-child { border-bottom: none; }
.row-item:hover .row-title { color: var(--text); }
.row-item .row-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  width: 4.5rem;
}
.row-item .row-title {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 300;
  flex: 1;
  transition: color 0.15s;
}
.row-item .row-cat {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Blog flat list ── */
.blog-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}
.blog-list li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0.32rem 0;
  color: var(--text-3);
  font-size: 0.88rem;
}
.bl-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  flex-shrink: 0;
  width: 5.5rem;
}
.bl-date::after {
  content: ' : ';
  letter-spacing: 0;
}
.bl-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  flex-shrink: 0;
  width: 10rem;
}
.bl-tag::after {
  content: ' : ';
  letter-spacing: 0;
}

.bl-author {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18rem;
}

/* ── YouTube embed grid ── */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.yt-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--line);
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.yt-info {
  padding: 0.45rem 0 0.1rem;
}
.yt-title {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.4;
}
.yt-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}
@media (max-width: 700px) {
  .yt-grid-2 { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .yt-grid { grid-template-columns: 1fr; }
}

.blog-list a {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 300;
  text-decoration: none;
  transition: color 0.15s;
}
.blog-list a:hover { color: var(--text); }

/* ── Reading item ── */
.reading-item {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.reading-item:last-child { border-bottom: none; }
.reading-item:hover h4 { color: var(--text); }

.reading-kind {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
  width: 3.5rem;
}

.reading-item h4 {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 0;
  flex: 1;
  transition: color 0.15s;
}
.reading-item p {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 300;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Status badges ── */
.r-status {
  font-family: var(--mono);
  font-size: 0.52rem;
  padding: 0 0;
  margin: 0;
  display: inline;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none !important;
  flex-shrink: 0;
}
.s-reading { border: 1px solid #1a3a1a; color: #4a8a4a; }
.s-done    { border: 1px solid var(--line-2); color: var(--text-3); }
.s-queue   { border: 1px solid #2a2a1a; color: #6a6a2a; }
.s-live    { border: 1px solid #3a2010; color: var(--red); }

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  background: transparent;
}
.tag:hover, .tag.active {
  border-color: var(--red);
  color: var(--red);
}
.tag-red { border-color: #3a1410 !important; color: var(--red-dim) !important; }

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  align-items: center;
}

.filter-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 0.5rem;
}

/* ── Buttons ── */
.btn {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dim); border-color: var(--red-dim); color: #fff; }

/* ── Hero ── */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 480px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}

.hero-photo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
}

.hero-photo-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(8,8,8,0.88) 0%, transparent 100%);
  pointer-events: none;
}

.hero-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 100%;
  max-width: 340px;
}
.hero-social-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.6rem;
  transition: border-color 0.15s, color 0.15s;
}
.hero-social-btn:hover { border-color: var(--red); color: var(--red); }
.hero-social-btn svg { width: 10px; height: 10px; flex-shrink: 0; }
.hero-social-name { flex: 1; }
.hero-social-count { margin-left: auto; color: var(--text); }

.hero-photo-text {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f0f0e8;
  text-align: left;
}
.hero-photo-text em { font-style: italic; color: var(--red); }

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 3.5rem;
}


.hero-bio {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
}
.hero-bio p { margin: 0 0 1rem; }
.hero-bio p:last-child { margin-bottom: 0; }
.hero-bio a.hl {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.hero-bio a.hl:hover { color: var(--red); text-decoration-color: var(--red); }

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Hero columns (blog / reading) ── */
.hero-columns {
  border-bottom: 1px solid var(--line);
}

.hero-columns-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-col {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}
.hero-col:first-child {
  border-right: 1px solid var(--line);
}
.hero-col .section-label { margin-bottom: 0.75rem; }
.hero-col .exp-link { margin-top: 0.75rem; color: var(--text); font-size: 0.72rem; }
.hero-col .exp-link:hover { color: var(--red); }

/* unified list style for both blog + reading columns */
.hero-col #latest-posts,
.hero-col #latest-reading {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}
.hero-col #latest-posts li,
.hero-col #latest-reading li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0.32rem 0;
  white-space: nowrap;
}
.hero-col #latest-posts .bl-date,
.hero-col #latest-reading .bl-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  flex-shrink: 0;
  width: auto;
  padding-right: 0.6rem;
}
.hero-col #latest-posts .bl-date::after,
.hero-col #latest-reading .bl-date::after {
  content: ' · ';
}
.hero-col #latest-posts a,
.hero-col #latest-reading a {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 300;
  text-decoration: none;
  transition: color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-col #latest-posts a:hover,
.hero-col #latest-reading a:hover { color: var(--red); }
.hero-col #latest-reading .bl-author { display: none; }


/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 3rem;
}
.stat-cell { background: var(--bg); padding: 1.5rem; }
.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: #f0f0e8;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-num span { color: var(--red); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.5rem;
}

/* ── Expertise list ── */
.expertise-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.expertise-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 300;
}
.expertise-item:last-child { border-bottom: none; }
.expertise-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── experience card ── */
.experience-co {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #deded6;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card ul li {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}
.card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-family: var(--mono);
}

/* ── Lab card ── */
.lab-type {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Guide / resource card ── */
.guide-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--line-2);
  line-height: 1;
  min-width: 2rem;
  padding-top: 2px;
}
.guide-item {
  background: var(--bg);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: background 0.2s;
  text-decoration: none;
}
.guide-item:hover { background: var(--bg-1); }
.guide-item h4 {
  font-size: 0.88rem;
  font-weight: 400;
  color: #d0d0c8;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.guide-item p {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.6;
}

.guide-level {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  margin-top: 0.6rem;
  display: inline-block;
}
.level-begin { border: 1px solid #1a3a1a; color: #4a8a4a; }
.level-mid   { border: 1px solid #3a2a0a; color: #8a6a2a; }
.level-adv   { border: 1px solid #3a1010; color: #8a3a2a; }

/* ── Video card ── */
.video-card {
  background: var(--bg);
  transition: background 0.2s;
  overflow: hidden;
  cursor: pointer;
}
.video-card:hover { background: var(--bg-1); }
.video-thumb {
  aspect-ratio: 9/16;
  background: var(--bg-1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb.landscape { aspect-ratio: 16/9; }
.video-glyph {
  font-family: var(--mono);
  font-size: 3rem;
  color: var(--line-2);
}
.video-views {
  position: absolute;
  bottom: 0.6rem; left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--red);
}
.video-meta { padding: 1rem 1rem 1.25rem; }
.video-meta h4 {
  font-size: 0.8rem;
  font-weight: 400;
  color: #c8c8c0;
  line-height: 1.4;
}
.video-meta .video-dur {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  margin-top: 0.35rem;
}

/* ── Shorts grid ── */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.shorts-grid iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: none;
  display: block;
}
@media (max-width: 600px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* ── Course card ── */
.courses-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.course-main {
  background: var(--bg-1);
  padding: 2.5rem;
}
.course-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.course-main h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #f0f0e8;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.course-main > p {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
}
.course-modules {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.course-module {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 300;
}
.course-module::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.course-sidebar {
  background: var(--bg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.course-price {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: #f0f0e8;
  letter-spacing: -0.04em;
}
.course-price-sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.3rem;
}
.course-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}
.cdr:last-child { border-bottom: none; }
.cdr-l {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cdr-r { color: var(--text); }
.course-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ── Courses coming soon ── */
.courses-coming-soon {
  display: flex;
  justify-content: center;
  padding: 2rem 2rem;
}
.course-quote {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  letter-spacing: -0.01em;
}

/* ── Learn section / Desmos grid ── */
.learn-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.learn-section .section-label { margin-bottom: 1.25rem; }
.desmos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.desmos-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  display: block;
}
@media (max-width: 700px) {
  .desmos-grid { grid-template-columns: 1fr; }
}

/* ── Patent strip ── */
.patent-strip {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow-x: auto;
}
.patent-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.patent-item { flex-shrink: 0; }
.patent-id {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.patent-title { font-size: 0.78rem; color: var(--text-2); font-weight: 300; }

/* ── Blog Post ── */
.post-header {
  padding: 4rem 3rem 2.5rem;
  border-bottom: 1px solid var(--line);
  max-width: 760px;
}
.post-back {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 2.5rem;
}
.post-back:hover { color: var(--red); }
.post-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.5rem;
}
.post-tag {
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  padding: 0.15rem 0.5rem;
}
.post-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  color: #f0f0e8;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 1rem 0 0;
}
.post-body {
  padding: 3rem 3rem 5rem;
  max-width: 760px;
}
.post-body h2 {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 2.75rem 0 0.85rem;
  font-weight: 400;
}
.post-body h3 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-1);
  margin: 2rem 0 0.5rem;
}
.post-body p {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.85;
  margin: 0 0 1.25rem;
}
.post-body pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-body pre code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #b8d0b8;
  line-height: 1.65;
  background: none;
  border: none;
  padding: 0;
}
.post-body p code, .post-body li code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  color: #b8d0b8;
}
.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.post-body li {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 0.35rem;
}
.post-body strong { color: var(--text-1); font-weight: 500; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.post-body th {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 400;
}
.post-body td {
  font-size: 0.82rem;
  color: var(--text-2);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
  vertical-align: top;
}
.post-body blockquote {
  border-left: 2px solid var(--red);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-3);
  font-style: italic;
  font-size: 0.88rem;
}
@media (max-width: 600px) {
  .post-header { padding: 2.5rem 1.5rem 2rem; }
  .post-body { padding: 2rem 1.5rem 3rem; }
}

/* ── Social Row ── */
.social-row {
  display: flex;
  gap: 0.75rem;
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-1);
  width: 140px;
  flex: none;
  transition: border-color 0.15s, background 0.15s;
}
.social-icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}
.social-btn:hover .social-icon { color: var(--red); }
.social-btn:hover { border-color: var(--red); background: rgba(232,57,42,0.04); }
.social-btn-count {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--text-1);
  font-weight: 700;
  line-height: 1;
}
.social-btn-label {
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-top: 0.35rem;
}
@media (max-width: 600px) {
  .social-row { padding: 1.5rem; gap: 0.5rem; }
  .social-btn { width: calc(50% - 0.375rem); }
}

/* ── Footer ── */
footer.site-footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}
.footer-left {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-3);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }

/* ── Section gap ── */
.section-gap { margin-top: 3rem; }

/* ── Demo / project card grids ── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.demo-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.demo-card {
  background: var(--bg);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  overflow: hidden;
  position: relative;
}
.demo-card:hover { background: var(--bg-1); }

.demo-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.75);
  transition: filter 0.2s;
}
.demo-card:hover .demo-thumb {
  filter: brightness(1) saturate(1);
}

.demo-thumb-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) saturate(0.7);
  transition: filter 0.2s;
}
.demo-card:hover .demo-thumb-cover {
  filter: brightness(1) saturate(1);
}

/* play overlay for video cards */
.demo-card .play-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0,0,0,0.35);
}
.demo-card:hover .play-overlay { opacity: 1; }
.play-overlay span {
  font-family: var(--mono);
  font-size: 1rem;
  color: #fff;
}

.demo-info {
  padding: 0.45rem 0.65rem 0.6rem;
}
.demo-title {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.15rem;
}
.demo-meta {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* repo card (GitHub) */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.repo-card {
  background: var(--bg);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  overflow: hidden;
}
.repo-card:hover { background: var(--bg-1); }
.repo-og {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) saturate(0.6);
  transition: filter 0.2s;
  border-bottom: 1px solid var(--line);
}
.repo-card:hover .repo-og {
  filter: brightness(0.95) saturate(0.85);
}
.repo-info {
  padding: 0.8rem 1rem 0.9rem;
}
.repo-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.repo-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.55;
}

/* ── Career timeline (left spine, content right) ── */
.timeline {
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

/* continuous dotted spine on the left */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-2) 0,
    var(--line-2) 5px,
    transparent 5px,
    transparent 11px
  );
  z-index: 0;
}

.tl-entry {
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding-bottom: 3.5rem;
  position: relative;
}
.tl-entry:last-child { padding-bottom: 0; }

/* spine column: dot */
.tl-spine {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
  position: relative;
  z-index: 1;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--red);
  flex-shrink: 0;
}

/* content pane */
.tl-pane {
  padding-top: 2px;
}
.tl-pane-l { display: none; }
.tl-pane-r { padding-left: 1.5rem; }

/* card inside each pane */
.tl-period {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.tl-company {
  font-size: 1rem;
  font-weight: 500;
  color: #e8e8e0;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.tl-stack {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.tl-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
}

.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-list li {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}
.tl-list li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-family: var(--mono);
}

/* callout: patents / awards / impact */
.tl-callout {
  border-left: 2px solid var(--red);
  background: rgba(232,57,42,0.04);
  padding: 0.5rem 0.85rem;
  margin-top: 0.9rem;
}
.tl-callout-label {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}
.tl-callout-text {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.65;
}
.tl-callout-text a {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tl-callout-text a:hover { color: var(--red); }

/* ── Hidden (filter) ── */
[data-hidden] { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav.site-nav { padding: 0.75rem 1.5rem 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: 200px; height: 200px; }
  .hero-photo-text { font-size: 1rem; }
  .hero-left { padding: 2.5rem 1.5rem 1.5rem; }
  .hero-right { padding: 1.5rem 1.5rem 2.5rem; border-left: none; }
  .hero-columns-inner { grid-template-columns: 1fr; }
  .hero-col { padding: 2rem 1.5rem; }
  .hero-col:first-child { border-right: none; border-bottom: 1px solid var(--line); }

  .page { padding: 2.5rem 1.5rem 4rem; }

  .line-grid-2,
  .line-grid-3,
  .line-grid-4 { grid-template-columns: 1fr; }

  .row-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .row-item .row-date { display: none; }

  .courses-wrap { grid-template-columns: 1fr; }


  footer.site-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
  }
}
