/* Breeti Bandyopadhyay — Portfolio Styles */

.ico { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
/* File extension sits a shade behind the section name it trails.
   Opacity rather than a colour, so it stays duller in every state. */
.ext { opacity: 0.55; }

.ico svg { stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; display:block; overflow:visible; }



/* ── TOKENS ── */
:root {
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

[data-theme="dark"] {
  --bg:        #1a1c22;
  --bg-deeper: #14161c;
  --bg-card:   #14161c;
  --border:    #2a2d3d;
  --border-hi: #a05068;
  --text-hi:   #eceaf4;
  --text-body: #b8bcd0;
  --text-mid:  #9094a8;
  --text-dim:  #6b6f86;
  --text-faint:#7a7e96;
  --accent:    #e8809c;
  --accent-dk: #a05068;
  --chip-bg:   #1e1428;
  --tag-bg:    #1e2030;
  --tag-border:#2e3040;
  --tag-text:  #b0b4c8;
  --nav-active:#0e1016;
  --badge-bg:  #1e1428;
}

[data-theme="light"] {
  --bg:        #faf6ef;
  --bg-deeper: #f2ece0;
  --bg-card:   #f2ece0;
  --border:    #e0d8c8;
  --border-hi: #e8a0b8;
  --text-hi:   #2a1f14;
  --text-body: #3a2818;
  --text-mid:  #6a5040;
  --text-dim:  #9a8070;
  --text-faint:#b09878;
  --accent:    #c03060;
  --accent-dk: #c03060;
  --chip-bg:   #fce8ef;
  --tag-bg:    #faf6ef;
  --tag-border:#d8d0c0;
  --tag-text:  #5a4030;
  --nav-active:#e8e2d6;
  --badge-bg:  #fce8ef;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text-hi); min-height: 100%; }
[data-theme="dark"]  body { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'><path d='M3 2 L3 19 L7 15 L10 22 L13 21 L10 14 L15 14 Z' fill='%23c8506a' stroke='%23ffffff' stroke-width='2.4' stroke-linejoin='round' paint-order='stroke fill'/></svg>") 3 2, auto; }
[data-theme="light"] body { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'><path d='M3 2 L3 19 L7 15 L10 22 L13 21 L10 14 L15 14 Z' fill='%23e8809c' stroke='%23211008' stroke-width='2.4' stroke-linejoin='round' paint-order='stroke fill'/></svg>") 3 2, auto; }

input, textarea, select { cursor: text; }

/* Ring that trails the pointer and blooms open over anything clickable.
   The outer div is moved by JS every frame; the inner span owns the
   transition, so the two never fight over the same `transform`. */
.cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.cursor-ring span {
  display: block; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 2px solid var(--accent); border-radius: 50%;
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.cursor-ring.over span {
  opacity: 1; transform: scale(1);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
/* No pointer to follow on touch screens. */
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ── FLUID TYPE SCALE ── */
:root {
  --t-xs:   clamp(0.7rem,  0.65rem + 0.2vw,  0.8rem);
  --t-sm:   clamp(0.8rem,  0.75rem + 0.25vw, 0.9rem);
  --t-base: clamp(0.875rem,0.82rem + 0.3vw,  1rem);
  --t-md:   clamp(1rem,    0.95rem + 0.3vw,  1.125rem);
  --t-lg:   clamp(1.1rem,  1rem    + 0.5vw,  1.3rem);
  --t-xl:   clamp(1.4rem,  1.2rem  + 0.8vw,  1.8rem);
}

/* ── SHELL ── */
.shell {
  display: flex; flex-direction: column;
  height: 100dvh; width: 100%;
}

/* ── TITLEBAR ── */
.titlebar {
  background: var(--bg-deeper); border-bottom: 1px solid var(--border);
  padding: clamp(8px, 1.2vw, 12px) clamp(14px, 2vw, 24px);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.tb-left { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); }
.mh-burger {
  display: none; background: none; border: none; color: var(--text-mid);
  font-size: var(--t-lg); padding: 4px; align-items: center;
}
.mh-burger:hover { color: var(--accent); }
.tb-dots { display: flex; gap: 6px; }
.tb-dot { width: 10px; height: 10px; border-radius: 50%; }
.tb-title { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--text-faint); letter-spacing: 0.05em; }
/* hide title text on very small screens */
@media (max-width: 480px) { .tb-title { display: none; } }
.cursor {
  display: inline-block; width: 7px; height: 12px;
  background: var(--accent); vertical-align: middle; margin-left: 3px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.tb-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 5px;
  padding: 5px 9px; color: var(--text-dim);
  font-size: var(--t-md); display: flex; align-items: center; gap: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.resume-btn {
  font-family: var(--font-mono); font-size: var(--t-sm);
  color: var(--accent); border: 1px solid var(--accent-dk);
  border-radius: 5px; padding: 5px 12px;
  display: flex; align-items: center; gap: 5px;
  background: none; text-decoration: none; transition: background 0.2s;
}
.resume-btn:hover { background: #111215; }
.resume-btn span { display: none; }
@media (min-width: 500px) { .resume-btn span { display: inline; } }

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: clamp(200px, 20vw, 280px) 1fr;
  flex: 1; overflow: hidden;
}

.sb-scrim { display: none; }

/* ── SIDEBAR ── */
.sb {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg-deeper); overflow-y: auto;
  overflow-x: visible;
}
.sb-top {
  padding: clamp(14px,2vw,22px) clamp(12px,1.5vw,18px) 14px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sb-name { font-size: var(--t-md); font-weight: 500; color: var(--accent); font-family: var(--font-mono); }
.sb-role { font-size: var(--t-xs); color: var(--text-faint); margin-top: 4px; font-family: var(--font-mono); }
.sb-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  font-size: var(--t-xs); color: var(--accent);
  background: var(--badge-bg); border: 1px solid var(--accent-dk);
  border-radius: 4px; padding: 3px 8px; font-family: var(--font-mono);
}
.sb-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.sb-nav { padding: 8px 0; flex: 1; }
.sb-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: clamp(7px,1vw,10px) clamp(12px,1.5vw,18px);
  font-size: var(--t-sm); color: var(--text-mid); font-weight: 500;
  font-family: var(--font-mono); border-left: 3px solid transparent;
  transition: all 0.18s ease; user-select: none;
}
/* Rule between nav entries. A pseudo-element rather than border-bottom so it
   can be rounded and inset from the edges; last one skipped so it doesn't
   double up with the border on .sb-bottom. */
.sb-nav-item { position: relative; }
.sb-nav-item:not(:last-child)::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 1.5px; border-radius: 2px; background: var(--border);
}
.sb-nav-item:hover {
  color: var(--text-hi);
  background: var(--nav-active);
  border-left-color: var(--accent-dk);
}
.sb-nav-item:hover .ico { color: var(--accent); }
.sb-nav-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--nav-active); }
.sb-nav-item.active .ico { color: var(--accent); }
.sb-nav-item i { font-size: var(--t-md); flex-shrink: 0; }

.sb-bottom {
  border-top: 1px solid var(--border);
  padding: clamp(12px,1.5vw,16px) clamp(12px,1.5vw,18px) 18px;
  display: flex; flex-direction: column; gap: 12px; flex-shrink: 0;
}
.sb-block-label {
  font-size: var(--t-xs); color: var(--text-mid);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-mono); margin-bottom: 8px;
}
.sb-contact-item { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.sb-contact-item:last-child { margin-bottom: 0; }
.sb-contact-item i { font-size: var(--t-md); color: var(--accent); flex-shrink: 0; }
.sb-contact-val { font-size: var(--t-sm); color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.copy-btn {
  flex-shrink: 0; margin-left: auto; background: none; border: none;
  color: var(--text-dim); padding: 2px 4px; border-radius: 4px;
  display: flex; align-items: center; transition: color 0.15s, background 0.15s;
}
.copy-btn:hover { color: var(--accent); background: var(--bg-hover, rgba(0,0,0,0.06)); }
.copy-btn.copied { color: var(--accent); }
.copy-btn svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-plink-row { display: flex; align-items: stretch; gap: 0; margin-bottom: 6px; }
.sb-plink-row:last-child { margin-bottom: 0; }
.sb-plink-row .sb-plink { margin-bottom: 0; flex: 1; min-width: 0; border-radius: 6px 0 0 6px; border-right: none; }
.sb-plink-row .copy-btn { padding: 0 8px; border: 1px solid var(--border); border-radius: 0 6px 6px 0; border-left: none; background: var(--bg); display: flex; align-items: center; }
.sb-plink-row .copy-btn:hover { border-color: var(--accent-dk); color: var(--accent); background: var(--bg); }
.sb-plink-row:hover .sb-plink { border-color: var(--accent-dk); }
.sb-plink-row:hover .copy-btn { border-color: var(--accent-dk); color: var(--accent); }
.sb-plink {
  display: flex; align-items: center; gap: 9px; font-size: var(--t-sm);
  color: var(--text-mid); padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg);
  text-decoration: none; transition: border-color 0.15s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-plink:hover { border-color: var(--accent-dk); }
.sb-plink i { font-size: var(--t-md); color: var(--accent); flex-shrink: 0; }

/* ── MAIN CONTENT ── */
.mc { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.mc-tabs {
  background: var(--bg-deeper); border-bottom: 1px solid var(--border);
  display: flex; overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
}
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab {
  padding: clamp(7px,1vw,10px) clamp(10px,1.5vw,16px);
  font-size: var(--t-xs); font-family: var(--font-mono); font-weight: 500;
  color: var(--text-mid); border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  user-select: none; border-bottom: 2px solid transparent; flex-shrink: 0;
}
.mc-tab:hover { color: var(--text-hi); background: var(--nav-active); border-bottom-color: var(--accent); }
.mc-tab.active { color: var(--text-hi); background: var(--bg); border-bottom-color: var(--accent); }
.mc-tab .tab-close {
  font-size: 14px; opacity: 0; margin-left: 6px;
  padding: 2px 5px; border-radius: 4px;
  transition: opacity 0.15s, color 0.15s, background 0.12s, transform 0.1s;
  line-height: 1;
}
.mc-tab:hover .tab-close { opacity: 0.65; }
.mc-tab.active .tab-close { opacity: 0.5; }
.mc-tab .tab-close:hover {
  opacity: 1 !important;
  color: #e05c5c;
  background: rgba(224, 92, 92, 0.15);
  transform: scale(1.15);
}
.mc-tab .tab-close:active { transform: scale(0.9); }
.mc-tab i { font-size: var(--t-sm); }

.mc-body {
  padding: clamp(20px, 3vw, 44px) clamp(20px, 3.5vw, 52px);
  overflow-y: auto; flex: 1; width: 100%;
}

/* ── SECTION PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── SECTION HEADINGS ── */
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; margin-top: 26px; }
.sec-head:first-child { margin-top: 0; }
.sec-line { flex: 1; height: 1px; background: var(--border); }
.sec-label { font-size: var(--t-xs); color: var(--text-mid); letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono); white-space: nowrap; }

/* ── ABOUT HERO ── */
.about-h { font-size: var(--t-xl); font-weight: 500; color: var(--text-hi); margin-bottom: 5px; line-height: 1.2; }
.about-h span { color: var(--accent); }
.about-role { font-size: var(--t-sm); color: var(--text-faint); margin-bottom: 12px; font-family: var(--font-mono); }
.about-greet { font-size: var(--t-sm); color: var(--text-mid); font-family: var(--font-mono); margin-bottom: 8px; letter-spacing: 0.02em; }
.about-bio { font-size: var(--t-md); color: var(--text-body); line-height: 1.9; max-width: none; }
.about-bio p { margin: 0 0 16px; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio strong { color: var(--text-hi); font-weight: 500; }

/* ── EDU GRID ── */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.edu-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.edu-deg { font-size: var(--t-md); font-weight: 500; color: var(--text-hi); margin-bottom: 3px; }
.edu-school { font-size: var(--t-sm); color: var(--accent); font-family: var(--font-mono); margin-bottom: 4px; }
.edu-detail { font-size: var(--t-sm); color: var(--text-mid); line-height: 1.65; }
.edu-pill { display: inline-block; font-size: var(--t-xs); padding: 2px 8px; background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 4px; color: var(--accent); font-family: var(--font-mono); margin-top: 6px; }

/* ── SKILLS ── */
.skills-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skill-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 13px; }
.skill-cat { font-size: var(--t-xs); color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
/* Same pink palette as .honour-chip so tags read consistently site-wide. */
.skill-tag { font-size: var(--t-sm); padding: 3px 8px; background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 3px; color: var(--accent); font-family: var(--font-mono); }

/* ── TIMELINE ── */
.tl-item { display: grid; grid-template-columns: 2px 1fr; gap: 0 16px; margin-bottom: 24px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-bar { background: var(--accent-dk); border-radius: 3px; }
.tl-title { font-size: var(--t-lg); font-weight: 500; color: var(--text-hi); margin-bottom: 3px; }
.tl-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 7px; gap: 8px; flex-wrap: wrap; }
.tl-sub { font-size: var(--t-sm); color: var(--accent); font-family: var(--font-mono); }
.tl-date { font-size: var(--t-sm); color: var(--text-faint); white-space: nowrap; }
.tl-desc { font-size: var(--t-base); color: var(--text-body); line-height: 1.85; }
.tl-chip { display: inline-block; font-size: var(--t-xs); padding: 2px 8px; background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 4px; color: var(--accent); font-family: var(--font-mono); margin-top: 6px; }

/* ── RESEARCH CARD ── */
.research-card { background: var(--bg-card); border: 1px solid var(--border-hi); border-radius: 8px; padding: clamp(14px,2vw,20px); margin-bottom: 12px; max-width: 78ch; }
.research-card:last-child { margin-bottom: 0; }
.research-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 10px; flex-wrap: wrap; }
.research-title { font-size: var(--t-md); font-weight: 500; color: var(--text-hi); line-height: 1.45; }
.research-date { font-size: var(--t-sm); font-weight: 700; color: var(--text-faint); white-space: nowrap; }
.research-venue { font-size: var(--t-sm); color: var(--accent); font-family: var(--font-mono); margin-bottom: 8px; }
.research-desc { font-size: var(--t-base); color: var(--text-body); line-height: 1.85; margin-bottom: 10px; }
.research-desc p { margin: 0 0 10px; }
.research-desc p:last-child { margin-bottom: 0; }
.research-desc b { color: var(--text-hi); font-weight: 500; }
.research-footer { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.research-chip { font-size: var(--t-xs); padding: 2px 8px; background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 4px; color: var(--accent); font-family: var(--font-mono); }
.research-doi { font-size: var(--t-xs); color: var(--text-dim); font-family: var(--font-mono); word-break: break-all; text-decoration: none; }
a.research-doi:hover { color: var(--accent); }
.research-authors { font-size: var(--t-sm); color: var(--text-mid); margin-bottom: 8px; line-height: 1.6; }
.research-authors b { color: var(--text-hi); font-weight: 500; }

/* Collapsible full-paper summary at the foot of each research card. */
.research-more { margin-top: 14px; border-top: 2px solid var(--border-hi); }
.research-more > summary {
  list-style: none; user-select: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px; padding-top: 12px;
  font-family: var(--font-mono); font-size: var(--t-sm); font-weight: 700; color: var(--accent);
  transition: color 0.15s;
}
.research-more > summary:hover { color: var(--accent-dk); }
.research-more > summary::-webkit-details-marker { display: none; }
.research-more > summary::after {
  content: "▾"; font-size: 0.85em; transition: transform 0.2s ease;
}
.research-more[open] > summary::after { transform: rotate(180deg); }
.research-more-body { padding-top: 12px; max-width: 68ch; }
.research-more-body p { font-size: var(--t-base); color: var(--text-body); line-height: 1.8; margin: 0 0 8px; }
.research-more-body p:last-child { margin-bottom: 0; }
.research-more-body b { color: var(--text-hi); font-weight: 500; }
.rm-h {
  font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin: 16px 0 5px;
}
.rm-h:first-child { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .research-more > summary::after { transition: none; } }
.research-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.research-scholar { font-size: var(--t-xs); color: var(--accent); font-family: var(--font-mono); text-decoration: none; padding: 2px 8px; border: 1px solid var(--border-hi); border-radius: 4px; }
.research-scholar:hover { background: var(--chip-bg); }

/* ── PROJECT GRID ── */
.proj-grid { display: flex; gap: 12px; align-items: flex-start; }
.proj-col { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.proj-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: clamp(13px,2vw,18px); }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.proj-title { font-size: var(--t-md); font-weight: 500; color: var(--text-hi); }
.proj-icons { display: flex; gap: 8px; }
.proj-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: var(--accent); text-decoration: none;
  font-size: 22px;
  transition: color 0.15s;
}
.proj-icons a:hover { color: var(--accent-dk); }
.proj-desc { font-size: var(--t-base); color: var(--text-body); line-height: 1.8; margin-bottom: 10px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tag { font-size: var(--t-xs); padding: 3px 7px; background: var(--tag-bg); border: 1px solid var(--tag-border); border-radius: 3px; color: var(--tag-text); font-family: var(--font-mono); }
.proj-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-badge { font-size: var(--t-xs); padding: 2px 7px; background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 999px; color: var(--accent); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ── HONOUR ── */
.honour-item { display: grid; grid-template-columns: 2px 1fr; gap: 0 16px; margin-bottom: 22px; }
.honour-item:last-child { margin-bottom: 0; }
.honour-bar { background: var(--accent-dk); border-radius: 3px; }
.honour-title { font-size: var(--t-md); font-weight: 500; color: var(--text-hi); margin-bottom: 3px; }
.honour-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.honour-sub { font-size: var(--t-sm); color: var(--accent); font-family: var(--font-mono); }
.honour-date { font-size: var(--t-sm); color: var(--text-faint); }
.honour-desc { font-size: var(--t-base); color: var(--text-body); line-height: 1.8; }
/* Row of skill tags under a certification / coursework card. */
.honour-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.honour-chips .honour-chip { margin-top: 0; }
.honour-chip { display: inline-block; font-size: var(--t-xs); padding: 2px 8px; background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 4px; color: var(--accent); font-family: var(--font-mono); margin-top: 6px; }

/* ── RESUME SECTIONS (about.md) ── */
.rs-sec {
  border: 1px solid var(--border); border-radius: 8px;
  padding: clamp(13px,2vw,18px); margin-top: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.rs-sec:hover { border-color: var(--accent-dk); background: var(--bg-card); }
.rs-sec:first-of-type { margin-top: 16px; }
.rs-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.rs-sec-label {
  font-size: var(--t-sm); font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-mono); display: flex; align-items: center; gap: 7px;
}
.rs-sec-label i { font-size: var(--t-sm); }
.rs-sec-link { font-size: var(--t-xs); color: var(--text-faint); font-family: var(--font-mono); transition: color 0.15s; white-space: nowrap; }
.rs-sec:hover .rs-sec-link { color: var(--accent); }
.rs-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.rs-row-left { flex: 1; min-width: 0; }
.rs-row-right { text-align: right; flex-shrink: 0; }
.rs-title { font-size: var(--t-md); font-weight: 500; color: var(--text-hi); margin-bottom: 2px; }
.rs-sub { font-size: var(--t-sm); color: var(--text-mid); font-family: var(--font-mono); }
.rs-date { font-size: var(--t-xs); color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 4px; }
.rs-tag {
  display: inline-block; font-size: var(--t-xs); padding: 2px 7px;
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  border-radius: 3px; color: var(--tag-text); font-family: var(--font-mono);
}
.rs-tag-hi { background: var(--chip-bg); border-color: var(--border-hi); color: var(--accent); }
.rs-bullets { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.rs-bullet {
  font-size: var(--t-base); color: var(--text-body); line-height: 1.75;
  padding-left: 16px; position: relative;
}
.rs-bullet::before { content: '–'; position: absolute; left: 0; color: var(--accent-dk); font-family: var(--font-mono); }
.rs-skills-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.rs-skills-row:last-child { margin-bottom: 0; }
.rs-skill-cat { font-family: var(--font-mono); color: var(--accent); font-size: var(--t-sm); min-width: 80px; flex-shrink: 0; }
.rs-skill-list { font-size: var(--t-base); color: var(--text-body); }
.rs-inline-list { display: flex; flex-direction: column; gap: 10px; }
.rs-inline-item { display: flex; flex-direction: column; gap: 2px; }

/* ── ABOUT: 2-col resume layout on wide screens ── */
.rs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}
.rs-grid .rs-sec { margin-top: 0; }
.rs-col { display: flex; flex-direction: column; gap: 10px; }

/* ── AESTHETIC POLISH ── */

/* pulsing status dot */
.sb-badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* card lift + soft shadow on hover */
.rs-sec, .proj-card, .edu-card {
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.rs-sec:hover, .proj-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* research card subtle accent glow */
.research-card {
  position: relative;
  box-shadow: 0 4px 24px -12px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* accent gradient bar on hero name */
.about-h span {
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--text-hi)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* timeline bar gradient */
.tl-bar, .honour-bar {
  background: linear-gradient(180deg, var(--accent), var(--accent-dk));
}

/* nav item subtle slide on hover */
.sb-nav-item { transition: all 0.18s ease; }
.sb-nav-item:hover { padding-left: clamp(15px, 1.8vw, 21px); }
.sb-nav-item.active:hover { padding-left: clamp(12px,1.5vw,18px); }

/* skill tags hover */
.skill-tag, .proj-tag, .rs-tag {
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.proj-tag:hover {
  border-color: var(--accent-dk);
  color: var(--accent);
}
/* .skill-tag is already accent-coloured, so hover firms up the border instead. */
.skill-tag:hover { border-color: var(--accent); background: var(--nav-active); }

/* resume button shimmer */
.resume-btn {
  position: relative; overflow: hidden;
}
.resume-btn::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  transition: left 0.5s;
}
.resume-btn:hover::after { left: 100%; }

/* tab bar active glow */
.mc-tab.active { box-shadow: inset 0 -2px 0 var(--accent); }

/* smooth theme cross-fade */
* { transition-property: background-color, border-color, color, box-shadow; }

/* section divider line gradient */
.sec-line, .rs-sec-head { 
  background-image: none;
}
.sec-line {
  background: linear-gradient(90deg, var(--border), transparent);
}

/* avatar-style monogram in sidebar top */
.about-hero { margin-bottom: 24px; }
/* Contain the floated image so it can't hang below the hero. */
.about-hero::after { content: ''; display: block; clear: both; }
/* Floated rather than flexed: the bio runs alongside the image and then
   carries on underneath it once it passes the bottom edge. */
.about-avatar {
  float: left;
  width: clamp(120px, 24vw, 240px);
  aspect-ratio: 1;                /* square at every screen size */
  margin: 4px 22px 14px 0;
  border-radius: 16px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 18px -4px color-mix(in srgb, var(--accent) 50%, transparent);
  object-fit: cover;
  object-position: center top;
  display: block;
  cursor: inherit;
}

/* ── MOBILE BREAKPOINTS ── */
@media (max-width: 900px) {
  .rs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .edu-grid { grid-template-columns: 1fr; } .proj-grid { flex-direction: column; }
  .skills-row { grid-template-columns: 1fr 1fr; }
  .rs-row { flex-direction: column; }
  .rs-row-right { text-align: left; }
  .tl-meta { flex-direction: column; gap: 2px; }
  .research-top { flex-direction: column; }
}
.ov-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px; margin-top: 10px;
}
.ov-hint i { font-size: var(--t-sm); color: var(--text-dim); }
.ov-hint span { font-size: var(--t-xs); color: var(--text-faint); font-family: var(--font-mono); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ── TRANSITIONS ── */
body, .shell, .sb, .titlebar, .mc-tabs, .mc-body, .sb-top, .sb-nav-item,
.edu-card, .skill-group, .tl-item, .research-card, .proj-card, .honour-item, .rs-sec {
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

/* ── MOBILE: hamburger + off-canvas drawer ── */
@media (max-width: 640px) {
  .mh-burger { display: flex; }
  .tb-dots { display: none; }
  .tb-title { display: none; }

  .layout { grid-template-columns: 1fr; position: relative; }

  .sb {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: min(78vw, 280px); height: auto;
    transform: translateX(-100%); transition: transform 0.25s ease;
    z-index: 200; flex-direction: column;
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 24px rgba(0,0,0,0.35);
  }
  .sb.open { transform: translateX(0); }
  .sb-nav { flex-direction: column; }
  .sb-nav-item { border-top: none; min-width: 0; }

  .sb-scrim {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 150;
  }
  .sb-scrim.open { opacity: 1; pointer-events: auto; }

  .mc { height: calc(100dvh - 44px); }
  .mc-body { padding: 16px 14px 20px; }
  .mc-tabs { display: none; }
  .edu-grid { grid-template-columns: 1fr; } .proj-grid { flex-direction: column; }
  .skills-row { grid-template-columns: 1fr 1fr; }

  /* .rs-sec-link's visibility normally depends on :hover, which never fires
     on touch, so on mobile give it a permanent chip look instead. */
  .rs-sec { position: relative; }
  .rs-sec-link {
    color: var(--accent); font-weight: 700;
    background: var(--chip-bg); border: 1px solid var(--border-hi); border-radius: 999px;
    padding: 4px 10px;
  }
  .rs-sec:active { border-color: var(--accent-dk); background: var(--bg-card); }
}

/* ── TABLET: narrow icon-only sidebar ── */
@media (min-width: 641px) and (max-width: 900px) {
  .layout { grid-template-columns: 56px 1fr; }
  .sb-top { padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .sb-name, .sb-role, .sb-badge { display: none; }
  .sb-nav-item { padding: 10px 0; justify-content: center; gap: 0; }
  .sb-nav-item:hover { padding-left: 0; }
  .sb-nav-item .ico svg { width: 20px; height: 20px; }
  .sb-nav-item span { display: none; }
  .sb-bottom { display: none; }
  .rs-grid { grid-template-columns: 1fr; }
  .proj-grid { flex-direction: column; }
}