/* ============================================================
   Portfolio — Bento Grid Design
   Electric lime accent · Space Grotesk display · No glass/blur
   ============================================================ */

:root {
  --bg:        #0c0c0c;
  --surface:   #141414;
  --surface2:  #1c1c1c;
  --border:    rgba(255, 255, 255, 0.07);
  --accent:    #c6f135;
  --accent-d:  rgba(198, 241, 53, 0.1);
  --text:      #efefef;
  --text2:     #888;
  --text3:     #444;
  --ff-d:      'Space Grotesk', sans-serif;
  --ff-b:      'Inter', sans-serif;
  --r:         12px;
  --r-lg:      18px;
  --t:         0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-b);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
li { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }
::selection { background: var(--accent); color: #000; }

/* ---- Bento cell base ---- */
.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
}

/* ---- Large screen scaling ---- */
@media (min-width: 1440px) {
  .nav-container { max-width: 1440px; }
  .hero-bento    { max-width: 1440px; grid-template-columns: repeat(4, 1fr) 260px 155px; }
  .container     { max-width: 1440px; }
  .bento-cell    { padding: 32px; }
}

@media (min-width: 1700px) {
  .nav-container { max-width: 1640px; }
  .hero-bento    { max-width: 1640px; grid-template-columns: repeat(4, 1fr) 300px 175px; }
  .container     { max-width: 1640px; }
  .bento-cell    { padding: 36px; }
  .section       { padding: 120px 40px; }
  body           { font-size: 16px; }
}

@media (min-width: 1920px) {
  .nav-container { max-width: 1800px; }
  .hero-bento    { max-width: 1800px; grid-template-columns: repeat(4, 1fr) 330px 195px; }
  .container     { max-width: 1800px; }
  .bento-cell    { padding: 40px; border-radius: 22px; }
  .section       { padding: 140px 48px; }
  .stat-n        { font-size: 64px; }
  .tl-card       { padding: 36px; }
  .contact-layout{ gap: 120px; }
}

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px; height: 60px;
}
.nav-logo {
  font-family: var(--ff-d); font-size: 18px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.5px;
}
.nav-list { display: flex; gap: 2px; }
.nav-link {
  font-family: var(--ff-d); color: var(--text2);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: color var(--t), background var(--t); display: block;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent); }
.nav-toggle { display: none; color: var(--text); font-size: 24px; align-items: center; }
.icon-close { display: none; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(12,12,12,0.98); backdrop-filter: blur(12px);
    flex-direction: column; gap: 2px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .navbar.active .nav-list { transform: translateY(0); opacity: 1; pointer-events: all; }
  .navbar.active .icon-menu  { display: none; }
  .navbar.active .icon-close { display: block; }
  .nav-link { padding: 12px 14px; font-size: 15px; }
}

/* ================================================================
   HERO — BENTO GRID
================================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 72px 24px 24px;
}

.hero-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 220px 130px;
  grid-template-rows: 1fr 1fr auto;
  gap: 10px;
  width: 100%; max-width: 1280px; margin: 0 auto;
  min-height: calc(100vh - 88px);
}

.cell-intro   { grid-column: 1 / 5; grid-row: 1 / 3; }
.cell-photo   { grid-column: 5;     grid-row: 1 / 3; padding: 0; }
.cell-stat    { grid-column: 6;     grid-row: 1; }
.cell-stat2   { grid-column: 6;     grid-row: 2; }
.cell-social  { grid-column: 1 / 3; grid-row: 3; }
.cell-company { grid-column: 3 / 5; grid-row: 3; }
.cell-location{ grid-column: 5;     grid-row: 3; }
.cell-email   { grid-column: 6;     grid-row: 3; }

/* Intro cell */
.avail-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-d); font-size: 12px; font-weight: 500; color: var(--text2);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 12px; margin-bottom: 28px;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  animation: pulse-g 2s ease-in-out infinite;
}
@keyframes pulse-g {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.display-name {
  font-family: var(--ff-d);
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -3px; color: var(--text);
  margin-bottom: 28px;
}

.cell-bio {
  color: var(--text2); font-size: 15px; line-height: 1.8;
  max-width: 480px; margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-solid {
  font-family: var(--ff-d); display: inline-flex; align-items: center;
  background: var(--accent); color: #000;
  font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r);
  transition: opacity var(--t), transform var(--t);
}
.btn-solid:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-solid.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  font-family: var(--ff-d); display: inline-flex; align-items: center;
  background: transparent; color: var(--text2);
  font-size: 14px; font-weight: 500;
  padding: 11px 22px; border-radius: var(--r);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* Photo cell */
.cell-photo { overflow: hidden; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Accent stat cell */
.accent-bg { background: var(--accent); border-color: var(--accent); }
.accent-bg .stat-n,
.accent-bg .stat-unit { color: #000; }
.accent-bg .stat-l { color: rgba(0,0,0,0.6); }

/* Stat cells */
.stat-n {
  font-family: var(--ff-d); display: block;
  font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -2px;
  color: var(--text);
}
.stat-unit { font-family: var(--ff-d); font-size: 22px; font-weight: 600; color: var(--text2); }
.stat-l { font-size: 11px; color: var(--text2); margin-top: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-block { display: flex; flex-direction: column; }
.stat-divider { width: 100%; height: 1px; background: rgba(0,0,0,0.15); margin: 8px 0; }
.stat-n--sm { font-size: 28px !important; letter-spacing: -1px; }
.stat-unit--sm { font-size: 14px !important; }

/* Social cell */
.cell-social { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.social-row-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--text2); font-size: 13px; font-weight: 500;
  padding: 8px 10px; border-radius: 8px;
  transition: color var(--t), background var(--t);
}
.social-row-link ion-icon { font-size: 17px; flex-shrink: 0; }
.social-row-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Company cell */
.cell-company { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.company-row { display: flex; flex-direction: column; gap: 3px; }
.co-name { font-family: var(--ff-d); font-size: 14px; font-weight: 600; color: var(--text); }
.co-role { font-size: 12px; color: var(--text2); }
.company-divider { height: 1px; background: var(--border); }

/* Location cell */
.cell-location {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 8px;
}
.cell-location ion-icon { font-size: 22px; color: var(--text2); }
.cell-location span { font-size: 12px; color: var(--text2); font-weight: 500; line-height: 1.5; }

/* Email cell */
.cell-email {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px;
}
.email-link {
  font-size: 10px; color: var(--text2); line-height: 1.7;
  text-align: center; transition: color var(--t);
  word-break: break-all;
}
.email-link:hover { color: var(--accent); }
.email-arrow { font-size: 16px; color: var(--text3); transform: rotate(45deg); }

/* Responsive bento grid */
@media (max-width: 1100px) {
  .hero-bento {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }
  .cell-intro   { grid-column: 1 / 4; grid-row: auto; min-height: 260px; }
  .cell-photo   { grid-column: 1;     grid-row: auto; min-height: 200px; }
  .cell-stat    { grid-column: 2;     grid-row: auto; }
  .cell-stat2   { grid-column: 3;     grid-row: auto; }
  .cell-social  { grid-column: 1;     grid-row: auto; }
  .cell-company { grid-column: 2 / 4; grid-row: auto; }
  .cell-location{ grid-column: 1;     grid-row: auto; }
  .cell-email   { grid-column: 2 / 4; grid-row: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 68px 12px 12px; }
  .hero-bento { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cell-intro   { grid-column: 1 / 3; }
  .cell-photo   { grid-column: 1 / 3; min-height: 200px; }
  .cell-stat    { grid-column: 1; }
  .cell-stat2   { grid-column: 2; }
  .cell-social  { grid-column: 1 / 3; }
  .cell-company { grid-column: 1 / 3; }
  .cell-location{ grid-column: 1; }
  .cell-email   { grid-column: 2; }
  .display-name { font-size: 44px; letter-spacing: -2px; }
  .stat-n       { font-size: 40px; }
}

/* ================================================================
   SECTIONS — shared
================================================================ */
.section { padding: 100px 28px; }
.container { max-width: 1280px; margin: 0 auto; }

.sec-header-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.sec-label {
  font-family: var(--ff-d);
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: var(--text); letter-spacing: -1.5px;
}
.sec-sub { font-size: 13px; color: var(--text2); }

/* ================================================================
   SKILLS — tag wall
================================================================ */
.skill-wall {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.sk {
  font-family: var(--ff-d); font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text2);
  white-space: nowrap; cursor: default;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.sk:hover { color: var(--accent); border-color: rgba(198,241,53,0.3); background: var(--accent-d); }
.sk-xl { font-size: 20px; padding: 10px 18px; color: var(--text); }
.sk-lg { font-size: 16px; padding: 8px 15px; color: var(--text); }
.sk-md { font-size: 14px; padding: 7px 13px; }
.sk-sm { font-size: 12px; padding: 5px 10px; }

/* ================================================================
   PROJECTS — row list
================================================================ */
.project-filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; font-family: var(--ff-d);
  color: var(--text2); background: var(--surface); border: 1px solid var(--border);
  transition: all var(--t);
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.14); }
.filter-btn.active { color: #000; background: var(--accent); border-color: var(--accent); }
.filter-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-active   { background: #22c55e; }
.dot-building { background: #60a5fa; }
.dot-paused   { background: #f59e0b; }
.dot-archived { background: #555; }

.projects-list { display: flex; flex-direction: column; }

.project-row {
  display: grid;
  grid-template-columns: 40px 14px 1fr auto;
  align-items: center; gap: 20px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t), padding-left var(--t);
}
.project-row:first-child { border-top: 1px solid var(--border); }
.project-row:hover { background: rgba(255,255,255,0.02); padding-left: 20px; }

.pr-num {
  font-family: var(--ff-d); font-size: 11px; font-weight: 700;
  color: var(--text3); letter-spacing: 0.04em;
}
.pr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.pr-main { min-width: 0; }
.pr-title-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 3px;
}
.pr-title {
  font-family: var(--ff-d); font-size: 17px; font-weight: 600; color: var(--text);
}
.pr-type {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text3);
}
.pr-desc { font-size: 13px; color: var(--text2); margin-bottom: 6px; line-height: 1.6; max-width: 680px; }
.pr-tags { font-size: 11px; color: var(--text3); line-height: 1.6; }

.pr-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0;
}
.pr-detail-btn {
  font-family: var(--ff-d); font-size: 12px; font-weight: 600; color: var(--text2);
  padding: 6px 14px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  transition: all var(--t); cursor: pointer; white-space: nowrap;
}
.pr-detail-btn:hover { color: var(--accent); border-color: rgba(198,241,53,0.3); }
.pr-link-btn {
  font-size: 12px; font-weight: 500; color: var(--text2);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--t); white-space: nowrap;
}
.pr-link-btn:hover { color: var(--text); }
.projects-empty { color: var(--text2); padding: 40px 0; text-align: center; font-size: 14px; }

@media (max-width: 640px) {
  .project-row {
    grid-template-columns: 36px 12px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    padding: 18px 10px;
  }
  .pr-actions {
    grid-column: 1 / 4; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  }
  .sec-header-row { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 16px; }
}

/* ================================================================
   EXPERIENCE TIMELINE
================================================================ */
.timeline { padding-left: 24px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px;
  background: linear-gradient(to bottom, rgba(198,241,53,0.5), transparent);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -30px; top: 24px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); opacity: 0.8;
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
}
.tl-card--compact { padding: 20px 28px; }
.tl-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.tl-card--compact .tl-header { margin-bottom: 0; }
.tl-role { font-family: var(--ff-d); font-size: 18px; font-weight: 700; color: var(--text); }
.tl-company { display: block; font-size: 13px; color: var(--accent); opacity: 0.8; margin-top: 3px; font-weight: 500; }
.tl-period {
  font-size: 11px; color: var(--text2); font-weight: 500;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
}
.tl-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--accent); opacity: 0.6; margin: 18px 0 10px;
}
.tl-body > .tl-cat:first-child { margin-top: 0; }
.tl-list { padding-left: 14px; display: flex; flex-direction: column; gap: 7px; }
.tl-list li {
  color: var(--text2); font-size: 14px; line-height: 1.75;
  list-style: none; position: relative;
}
.tl-list li::before { content: '–'; position: absolute; left: -14px; color: var(--text3); }

/* ================================================================
   CONTACT
================================================================ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 48px; } }

.contact-big {
  font-family: var(--ff-d);
  font-size: clamp(40px, 6vw, 72px); font-weight: 700;
  line-height: 1.0; letter-spacing: -2.5px;
  color: var(--text); margin-bottom: 28px;
}
.contact-email-big {
  display: block; font-size: 14px; font-weight: 500; color: var(--text2);
  margin-bottom: 14px; transition: color var(--t); word-break: break-word;
}
.contact-email-big:hover { color: var(--accent); }
.contact-note { font-size: 13px; color: var(--text2); margin-bottom: 24px; line-height: 1.6; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cpill {
  font-family: var(--ff-d); font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); transition: all var(--t);
}
.cpill:hover { color: var(--accent); border-color: rgba(198,241,53,0.3); }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text2); margin-bottom: 7px;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: 14px;
  transition: border-color var(--t); outline: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text3); }
.form-field input:focus, .form-field textarea:focus { border-color: rgba(198,241,53,0.35); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px; text-align: center;
  color: var(--text2); font-size: 12px; letter-spacing: 0.02em;
}

/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   PROJECT DETAIL DRAWER
================================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.project-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(520px, 100vw);
  background: #111; border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(0,0,0,0.6);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex; flex-direction: column;
}
.project-drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text2); font-size: 20px;
  transition: all var(--t);
}
.drawer-close:hover { color: var(--text); }

.drawer-scroll { flex: 1; overflow-y: auto; padding: 48px 30px 40px; }
.drawer-scroll::-webkit-scrollbar { width: 4px; }
.drawer-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.drawer-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.drawer-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; font-size: 26px; color: var(--text2);
}
.drawer-title-group { flex: 1; min-width: 0; }
.drawer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.drawer-title { font-family: var(--ff-d); font-size: 24px; font-weight: 700; margin-bottom: 3px; }
.drawer-tagline { font-size: 13px; color: var(--accent); font-weight: 500; }
.drawer-year { font-size: 11px; color: var(--text2); margin-top: 4px; }

.drawer-section { margin-bottom: 26px; }
.drawer-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text2); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.drawer-text { color: var(--text2); font-size: 14px; line-height: 1.85; }
.drawer-text p { margin-bottom: 14px; }
.drawer-text p:last-child { margin-bottom: 0; }

.drawer-status-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; background: var(--accent-d);
  border: 1px solid rgba(198,241,53,0.2); border-radius: 10px;
  margin-bottom: 26px; font-size: 13px; color: var(--text2); line-height: 1.7;
}
.drawer-status-note ion-icon { font-size: 17px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

.drawer-highlights { display: flex; flex-direction: column; gap: 9px; }
.drawer-highlight {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text2); line-height: 1.6;
}
.drawer-highlight ion-icon { font-size: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.drawer-challenge {
  padding: 14px 16px;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.15);
  border-left: 2px solid #f59e0b;
  border-radius: 9px;
  font-size: 13px; color: var(--text2); line-height: 1.75;
}

.drawer-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.drawer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.drawer-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--r);
  font-size: 13px; font-weight: 600; transition: all var(--t);
}
.drawer-link-primary { background: var(--accent); color: #000; }
.drawer-link-primary:hover { opacity: 0.85; }
.drawer-link-secondary {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text2);
}
.drawer-link-secondary:hover { color: var(--text); }
.drawer-link-muted {
  color: var(--text2); font-size: 13px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--r);
  padding: 10px 16px; display: inline-flex; align-items: center; gap: 6px;
}

/* Status badges (used in drawer) */
.project-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 3px 9px; border-radius: 100px;
}
.status-active   { color: #22c55e; background: rgba(34,197,94,0.08);  border: 1px solid rgba(34,197,94,0.2); }
.status-building { color: #60a5fa; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); }
.status-paused   { color: #f59e0b; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.status-archived { color: #555;    background: rgba(80,80,80,0.08);   border: 1px solid rgba(80,80,80,0.2); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active .status-dot { animation: pulse-s 2s infinite; }
@keyframes pulse-s {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.project-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text2); background: var(--surface2); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 100px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

/* ================================================================
   MARKDOWN VIEW — LLM-readable switch
================================================================ */
.nav-list { margin-left: auto; }
.md-toggle {
  display: flex; align-items: center; gap: 2px;
  margin-left: 16px; padding: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px;
}
.md-toggle-opt {
  font-family: var(--ff-d); font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em; color: var(--text2);
  padding: 3px 10px; border-radius: 100px;
  transition: color var(--t), background var(--t);
}
.md-toggle-opt.active { color: var(--bg); background: var(--accent); }

@media (max-width: 768px) {
  .md-toggle { margin-left: auto; margin-right: 14px; }
}

body.md-mode main > section:not(.md-view) { display: none; }

.md-view {
  max-width: 880px; margin: 0 auto;
  padding: 96px 24px 60px;
  min-height: 100vh;
}
.md-view-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
  padding: 10px 16px;
}
.md-view-path {
  font-family: 'Courier New', monospace; font-size: 12px; color: var(--text2);
}
.md-copy-btn {
  font-family: var(--ff-d); font-size: 12px; font-weight: 600;
  color: var(--text2); padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 100px;
  transition: color var(--t), border-color var(--t);
}
.md-copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.md-view-pre {
  background: var(--surface); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  padding: 24px;
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}
