/* ==========================================================================
   ARPIT DHAMELIYA - Portfolio v2 (Tactical Console)
   ========================================================================== */

:root {
  /* surface */
  --bg: #07080C;
  --bg-2: #0B0D14;
  --surface: #10131C;
  --surface-2: #161A26;
  --surface-3: #1C2231;
  --panel: #0E1119;
  /* border */
  --border: #1F2638;
  --border-strong: #2D364D;
  --border-dim: #161B29;
  /* text */
  --text: #ECEEF3;
  --text-2: #B6BCCB;
  --text-3: #7A8294;
  --text-4: #4A5161;
  /* accent */
  --amber: #FFB23F;
  --amber-2: #FFC773;
  --amber-soft: rgba(255, 178, 63, .14);
  --amber-glow: rgba(255, 178, 63, .35);
  --emerald: #34D399;
  --emerald-2: #6EE7B7;
  --emerald-soft: rgba(52, 211, 153, .14);
  --emerald-glow: rgba(52, 211, 153, .35);
  --crimson: #FB7185;
  --crimson-2: #FDA4AF;
  --crimson-soft: rgba(251, 113, 133, .12);
  --crimson-glow: rgba(251, 113, 133, .35);
  --violet: #A78BFA;
  --violet-soft: rgba(167, 139, 250, .12);
  --cyan: #67E8F9;
  --cyan-soft: rgba(103, 232, 249, .12);
  /* typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  /* radius / shape */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  /* shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--amber-soft); color: var(--amber-2); }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(1100px 600px at 90% -10%, rgba(255, 178, 63, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(52, 211, 153, .05), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(167, 139, 250, .05), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }
img { max-width: 100%; display: block; }

/* scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* grid background */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

/* layout container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* =======================
   NAV
   ======================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(7, 8, 12, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
}

/* offset page content so it doesn't slide under the fixed topbar */
body { padding-top: 64px; }

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 63, .15);
}

.brand-slash { color: var(--amber); }
.brand-id { color: var(--text-3); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--amber); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all .18s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: #0B0905;
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 24px -8px var(--amber-glow);
}

.btn-primary:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
  box-shadow: 0 0 0 1px var(--amber-2), 0 14px 30px -10px var(--amber-glow);
}

.btn-emerald {
  border-color: var(--emerald-glow);
  color: var(--emerald-2);
  background: var(--emerald-soft);
}

.btn-emerald:hover {
  background: rgba(52, 211, 153, .2);
  border-color: var(--emerald);
}

.btn-lg { padding: 14px 22px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: all .2s ease;
}

/* =======================
   SECTION SCAFFOLD
   ======================= */
section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--text);
}

.section-title .accent { color: var(--amber); }

.section-sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 720px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 56px;
  max-width: 800px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* =======================
   HERO
   ======================= */
.hero {
  padding: 80px 0 120px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-2);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .15), 0 0 12px var(--emerald-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.hero-name {
  font-size: clamp(40px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-name .line { display: block; }
.hero-name .line-2 {
  background: linear-gradient(90deg, var(--amber) 0%, var(--crimson) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.hero-role .bracket { color: var(--text-4); }
.hero-role .role-text { color: var(--amber); }
.hero-role .cursor {
  display: inline-block;
  width: 8px; height: 18px;
  background: var(--amber);
  vertical-align: -3px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

.hero-tag {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 580px;
}

.hero-tag .hl { color: var(--amber); }

.hero-bio {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-bio b { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}

.stat {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 16px 14px;
  border-radius: var(--r-sm);
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 1px solid var(--amber);
  border-left: 1px solid var(--amber);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -.02em;
  display: block;
  line-height: 1;
}

.stat-num small { font-size: 16px; color: var(--amber-2); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 8px;
  display: block;
}

/* hero side panel */
.hero-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-panel-bar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .08em;
}

.hero-panel-bar .lights {
  display: flex; gap: 6px;
}
.hero-panel-bar .light {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}
.hero-panel-bar .light.r { background: var(--crimson); }
.hero-panel-bar .light.y { background: var(--amber); }
.hero-panel-bar .light.g { background: var(--emerald); }
.hero-panel-title {
  margin-left: auto;
  text-transform: uppercase;
}

.hero-panel-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-2);
  min-height: 360px;
}

.hp-line { display: block; }
.hp-prompt { color: var(--emerald); }
.hp-flag { color: var(--amber); }
.hp-key { color: var(--violet); }
.hp-val { color: var(--text); }
.hp-comment { color: var(--text-4); }
.hp-muted { color: var(--text-3); }
.hp-ok { color: var(--emerald); }
.hp-warn { color: var(--amber); }
.hp-err { color: var(--crimson); }

.hp-kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 16px;
  margin: 10px 0 16px;
  font-size: 12px;
}
.hp-kv dt { color: var(--text-3); }
.hp-kv dd { color: var(--text); }
.hp-kv dd .tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--amber);
  margin-right: 4px;
}

/* =======================
   ABOUT
   ======================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-prose p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-prose p strong { color: var(--text); font-weight: 600; }
.about-prose p .hl { color: var(--amber); font-weight: 600; }

.about-quick {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 24px;
}

.about-quick h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.about-quick h4::before {
  content: '▌';
  color: var(--amber);
}

.about-quick dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.about-quick dt { color: var(--text-3); }
.about-quick dd { color: var(--text); }
.about-quick dd a { color: var(--amber-2); }
.about-quick dd a:hover { text-decoration: underline; }

.about-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.role-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--amber);
}

.role-card[data-color="emerald"]::before { background: var(--emerald); }
.role-card[data-color="crimson"]::before { background: var(--crimson); }

.role-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.role-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--amber);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.role-card[data-color="emerald"] .role-card-icon { color: var(--emerald); }
.role-card[data-color="crimson"] .role-card-icon { color: var(--crimson); }

.role-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.role-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

/* =======================
   TOOLS / PROFICIENCY TIERS
   ======================= */
.tier-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.tier-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.tier-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease;
}

.tier-search input:focus { border-color: var(--amber); }

.tier-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}

.tier-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tier-filter {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .15s ease;
}

.tier-filter:hover { color: var(--text); border-color: var(--border-strong); }

.tier-filter.active {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}
.tier-filter[data-tier="proficient"].active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald);
}
.tier-filter[data-tier="familiar"].active {
  background: var(--violet-soft);
  border-color: var(--violet);
  color: var(--violet);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.tool-chip {
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .15s ease;
  position: relative;
}

.tool-chip[data-tier="expert"] { border-left: 3px solid var(--amber); }
.tool-chip[data-tier="proficient"] { border-left: 3px solid var(--emerald); }
.tool-chip[data-tier="familiar"] { border-left: 3px solid var(--violet); }

.tool-chip:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.tool-chip[data-tier="expert"]:hover { border-left-color: var(--amber-2); }

.tool-chip.hidden { display: none; }

.tool-chip-tier {
  display: none;
}

.tier-empty {
  padding: 60px;
  text-align: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  display: none;
}

.tier-empty.show { display: block; }

/* =======================
   CAPABILITIES
   ======================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cap-card {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}

.cap-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--amber-soft), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.cap-card:hover::after { opacity: 1; }

.cap-card[data-tone="emerald"]::after { background: radial-gradient(circle at top right, var(--emerald-soft), transparent 70%); }
.cap-card[data-tone="crimson"]::after { background: radial-gradient(circle at top right, var(--crimson-soft), transparent 70%); }
.cap-card[data-tone="violet"]::after { background: radial-gradient(circle at top right, var(--violet-soft), transparent 70%); }
.cap-card[data-tone="cyan"]::after { background: radial-gradient(circle at top right, var(--cyan-soft), transparent 70%); }

.cap-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--amber);
}

.cap-card[data-tone="emerald"] .cap-icon { color: var(--emerald); }
.cap-card[data-tone="crimson"] .cap-icon { color: var(--crimson); }
.cap-card[data-tone="violet"] .cap-icon { color: var(--violet); }
.cap-card[data-tone="cyan"] .cap-icon { color: var(--cyan); }

.cap-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cap-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-2);
}

/* =======================
   EXPERIENCE / TIMELINE
   ======================= */
.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), var(--emerald), transparent);
  opacity: .35;
}

.tl-item {
  position: relative;
  padding-left: 50px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 24px 28px 24px 60px;
  transition: border-color .2s ease;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--amber-glow);
}

.tl-item:hover { border-color: var(--border-strong); }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 4px;
}

.tl-role {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.tl-company {
  color: var(--amber);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-mono);
}

.tl-meta {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.tl-meta span { display: inline-flex; align-items: center; gap: 6px; }

.tl-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 3px;
  background: var(--amber-soft);
  margin-bottom: 14px;
}

.tl-body ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
  display: grid;
  gap: 8px;
}

.tl-body li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.tl-body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
}

.tl-body li b { color: var(--text); font-weight: 700; }
.tl-body li .num { color: var(--amber); font-weight: 700; }

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-2);
}

/* =======================
   PROJECTS
   ======================= */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.proj-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}

.proj-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.proj-feat {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(255, 178, 63, .04) 0%, transparent 60%),
    var(--panel);
  border-color: rgba(255, 178, 63, .25);
}

.proj-feat::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 60%);
  pointer-events: none;
}

.proj-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--amber);
  color: #0B0905;
  border-radius: 3px;
  align-self: flex-start;
}

.proj-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald);
}
.proj-status.completed { color: var(--text-3); }
.proj-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.proj-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
}

.proj-feat .proj-title { font-size: 28px; }

.proj-desc {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: auto;
}

.proj-stack code {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--text-2);
}

.proj-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.proj-block {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 16px;
}

.proj-block-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}

.proj-block-label::before {
  content: '◆';
  color: var(--amber);
  font-size: 8px;
}

.proj-block p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.proj-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.proj-module {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proj-module-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.proj-module-state {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.proj-module[data-state="in-progress"] .proj-module-state { color: var(--amber); }
.proj-module[data-state="planned"] .proj-module-state { color: var(--text-4); }

.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.proj-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-2);
  border-bottom: 1px dashed transparent;
  padding-bottom: 1px;
  transition: border-color .15s ease;
}

.proj-links a:hover { border-bottom-color: var(--amber-2); }

/* =======================
   WRITING
   ======================= */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.write-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s ease;
}

.write-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.write-tag {
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--amber);
}

.write-card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.write-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.write-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =======================
   ACHIEVEMENTS / CERTS
   ======================= */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.ach-card {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ach-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 4px;
}

.ach-card h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ach-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}

.ach-card p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.cert-section {
  border-top: 1px dashed var(--border);
  padding-top: 40px;
}

.cert-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}

.cert-section h3::before {
  content: '//';
  color: var(--text-4);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.cert-card {
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .15s ease;
  text-decoration: none;
  color: inherit;
}

.cert-card:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.cert-icon {
  font-size: 20px;
  color: var(--amber);
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
}

.cert-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cert-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
  line-height: 1.3;
}

.cert-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =======================
   EDUCATION
   ======================= */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.edu-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 28px;
  position: relative;
}

.edu-card.current { border-color: rgba(255, 178, 63, .35); }

.edu-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 3px;
  margin-bottom: 12px;
}

.edu-tag.completed {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-3);
}

.edu-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 6px;
}

.edu-degree {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 13px;
  margin-bottom: 14px;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.edu-meta span { display: inline-flex; align-items: center; gap: 6px; }
.edu-meta b { color: var(--text); font-weight: 700; }

.edu-courses h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 14px 0 10px;
}

.edu-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edu-course-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-2);
}

/* =======================
   CONTACT
   ======================= */
.contact {
  background:
    radial-gradient(800px 300px at 50% 0%, var(--amber-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-sm);
  transition: all .15s ease;
}

.contact-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateX(2px);
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--amber);
  flex-shrink: 0;
}

.contact-card[data-tone="emerald"] .contact-icon { color: var(--emerald); }
.contact-card[data-tone="violet"] .contact-icon { color: var(--violet); }
.contact-card[data-tone="cyan"] .contact-icon { color: var(--cyan); }

.contact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-text strong { font-size: 13px; color: var(--text); }
.contact-text span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}

.contact-form {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 28px;
}

.contact-form h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.contact-form-sub {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 22px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease;
  font-family: var(--font-sans);
  resize: vertical;
}

.field input:focus, .field textarea:focus { border-color: var(--amber); }

.field textarea { min-height: 110px; }

.contact-status {
  background:
    radial-gradient(700px 200px at 50% 0%, transparent, var(--amber-soft) 50%, transparent);
  border: 1px solid var(--amber);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--amber);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  animation: pulse 1.5s infinite;
}

/* =======================
   FOOTER
   ======================= */
.footer {
  background: var(--bg-2);
  padding: 36px 0;
  border-top: 1px solid var(--border-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: .04em;
}

.footer-links {
  display: flex; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links a { color: var(--text-3); transition: color .15s ease; }
.footer-links a:hover { color: var(--amber); }

/* =======================
   RESUME MODAL
   ======================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7, 8, 12, .82);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  padding: 20px;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(16px) scale(.97);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  display: grid; place-items: center;
}

.modal-close:hover { background: var(--surface); color: var(--text); }

.modal h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}

.modal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 22px;
}

.modal-options { display: flex; flex-direction: column; gap: 10px; }

.modal-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  transition: all .2s ease;
}

.modal-option:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.modal-option[data-tone="amber"]:hover { border-color: var(--amber); }
.modal-option[data-tone="emerald"]:hover { border-color: var(--emerald); }

.modal-option-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  color: var(--amber);
  flex-shrink: 0;
}

.modal-option[data-tone="emerald"] .modal-option-icon { color: var(--emerald); }

.modal-option-text { flex: 1; min-width: 0; }
.modal-option-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.modal-option-text span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .04em;
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-roles { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .nav { display: none; }
  .nav-burger { display: flex; }
  .topbar.menu-open .nav {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border-dim);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    align-items: stretch;
  }
  .topbar.menu-open .nav a {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-dim);
  }
  .topbar.menu-open .nav a:last-child { border-bottom: 0; }
  .nav-actions .btn { padding: 10px 12px; font-size: 11px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tl-meta { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(48px, 14vw, 68px); }
  .nav-cta-text { display: none; }
  .tl-item { padding: 20px 18px 20px 50px; }
}


/* ==========================================================================
   REFINEMENTS - v3  (typography, density, scroll rhythm)
   --------------------------------------------------------------------------
   Three problems fixed:
     1. Type scale was undersized for wide screens - bumped baseline one
        step on the modular scale; secondary text was tightened up off the
        bottom of the range (no more 13–14px walls of copy).
     2. Project grid forced three cramped columns; featured card forced
        four narrow problem/approach/impact/status strips. Both now
        breathe at desktop widths.
     3. F-pattern reading was muddled - first paragraph in About now gets
        a "lead" treatment, anchoring the eye where it lands.
   Plus one new feature: a CSS-only scroll progress bar (degrades to
   nothing in older browsers without animation-timeline support).
   Delete this block to revert everything.
   ========================================================================== */

/* ── Baseline up two steps (16 → 18) - less text now lives on each page,
       so the text that remains can grow into the space. ── */
html, body {
  font-size: 18px;
  letter-spacing: 0.003em;
}

/* ── Section heads: more vertical air, comfier subhead ── */
.section-head { margin-bottom: 72px; }
.section-sub {
  font-size: 19.5px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ── Generous vertical rhythm between sections on large displays ── */
@media (min-width: 1024px) {
  section { padding: 130px 0; }
}

/* ── Top nav: 12px was hostile, 13 reads comfortably ── */
.nav a { font-size: 13px; }

/* ── Hero bio: bumped to match the new baseline ── */
.hero-bio { font-size: 18.5px; line-height: 1.65; max-width: 50ch; }

/* ── ABOUT ──
   Looser column gap, lead-paragraph treatment for the first <p>.
   First paragraph is one step up + tighter line-height + a hairline
   divider - gives the eye a clear anchor for the F-pattern. */
.about-grid    { gap: 64px; }
.about-prose p {
  font-size: 18.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.about-prose p:first-child {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 450;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-dim);
}

/* ── Quick Facts panel: more padding, comfier dt/dd rhythm ── */
.about-quick    { padding: 32px; }
.about-quick h4 { margin-bottom: 24px; font-size: 12px; }
.about-quick dl {
  grid-template-columns: 120px 1fr;
  gap: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Role cards: bigger touch targets + readable copy ── */
.about-roles    { gap: 24px; margin-top: 56px; }
.role-card      { padding: 32px 28px; }
.role-card h3   { font-size: 20px; margin-bottom: 10px; }
.role-card p    { font-size: 16.5px; line-height: 1.65; }
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── PROJECTS - 2 columns at desktop, not 3 ──
   Each card carries a lot (status, title, desc, list, stack, links).
   minmax(440px, 1fr) gives roughly two columns of ~590px on the
   1216px-wide container, which lets the content breathe. */
.proj-grid {
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
}
.proj-card {
  padding: 32px 30px;
  gap: 16px;
}
.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.proj-title              { font-size: 25px; }
.proj-feat .proj-title   { font-size: clamp(30px, 3vw, 36px); margin-top: 4px; }
.proj-desc               { font-size: 17px; line-height: 1.7; }

/* ── Featured card: 2x2 blocks instead of cramped 4-across ──
   minmax 280px means the four problem/approach/impact/status boxes
   wrap to two rows at typical desktop widths - each one finally has
   room for its 2–3 lines of copy. */
.proj-feat { padding: 38px 34px; }
.proj-blocks {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.proj-block         { padding: 20px; }
.proj-block-label   { margin-bottom: 10px; font-size: 11px; }
.proj-block p       { font-size: 15px; line-height: 1.7; }

/* ── Project module chips: slightly more padding ── */
.proj-modules     { gap: 10px; }
.proj-module      { padding: 14px 16px; }
.proj-module-name { font-size: 13px; }

/* ── Capability cards (Skills): rebalanced ── */
.cap-card h3 { font-size: 17px; }

/* ── Experience timeline: legible list items ── */
.tl-body li { font-size: 17px; line-height: 1.7; }

/* ── Achievements / contact: bumped one step ── */
.ach-card h4         { font-size: 18px; }
.ach-card p          { font-size: 15.5px; line-height: 1.65; }
.contact-text strong { font-size: 15px; }
.contact-text span   { font-size: 14px; }


/* ==========================================================================
   NEW FEATURE - CSS-only scroll progress bar
   --------------------------------------------------------------------------
   A 2px amber→crimson gradient strip at the top of the viewport that
   fills as the user scrolls. Uses scroll-driven animations
   (animation-timeline: scroll()) - supported in Chromium 115+, behind a
   flag in Firefox. In browsers without support, this rule is skipped
   entirely thanks to @supports - no fallback needed, just nothing.
   This is intentionally subtle: it's a wayfinding cue, not a chrome
   element competing with the content.
   ========================================================================== */
@supports (animation-timeline: scroll()) {
  html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--amber) 0%, var(--crimson) 100%);
    box-shadow: 0 0 8px var(--amber-glow);
    z-index: 60;
    pointer-events: none;
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}


/* ==========================================================================
   MOBILE - keep the new scale, ease padding so it doesn't crowd
   ========================================================================== */
@media (max-width: 720px) {
  html, body              { font-size: 16.5px; letter-spacing: 0; }
  .section-head           { margin-bottom: 48px; }
  .section-sub            { font-size: 17px; }
  .about-grid             { gap: 40px; }
  .about-prose p          { font-size: 16.5px; margin-bottom: 18px; }
  .about-prose p:first-child { font-size: 18px; padding-bottom: 18px; margin-bottom: 20px; }
  .about-quick            { padding: 24px; }
  .about-roles            { margin-top: 40px; gap: 16px; }
  .role-card              { padding: 24px; }
  .role-card h3           { font-size: 17px; }
  .role-card p            { font-size: 15px; }
  .proj-grid              { gap: 18px; grid-template-columns: 1fr; }
  .proj-card              { padding: 24px; }
  .proj-feat              { padding: 28px 24px; }
  .proj-feat .proj-title  { font-size: 24px; }
  .proj-desc              { font-size: 15.5px; }
  .proj-block p           { font-size: 14.5px; }
}


/* ==========================================================================
   F-PATTERN STRUCTURE - v4
   --------------------------------------------------------------------------
   Replaces prose blocks with scannable patterns so the eye can sweep down
   the left margin and pick up numbers/keywords without reading the body.
     • .highlights - number-left, context-right list (About)
     • .lead-li    - metric-chip-left, sentence-right bullet (Experience)
     • .proj-stats - at-a-glance stat chip strip (Projects)
   ========================================================================== */

/* About: highlights list - eye scans the amber chips down the left margin */
.about-prose .highlights {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.about-prose .highlights li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.5;
}
.about-prose .highlights li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.about-prose .highlights .hl-key {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.about-prose .highlights strong { color: var(--text); font-weight: 600; }

/* Experience: metric-led bullets - chip prefix replaces the triangle marker */
.tl-body li.lead-li {
  padding-left: 0;
  display: grid;
  grid-template-columns: minmax(130px, max-content) 1fr;
  gap: 22px;
  align-items: baseline;
  border-bottom: 1px solid var(--border-dim);
  padding-top: 14px;
  padding-bottom: 14px;
}
.tl-body li.lead-li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.tl-body li.lead-li::before { content: none; }
.tl-body li.lead-li .lead-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Projects: stat chip strip - replaces verbose bullet lists */
.proj-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}
.proj-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  min-width: 92px;
  transition: border-color .15s ease;
}
.proj-card:hover .proj-stats > div {
  border-color: var(--border-strong);
}
.proj-stats b {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.proj-stats span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Mobile: collapse the two-column grids so chips don't crush */
@media (max-width: 720px) {
  .about-prose .highlights li,
  .tl-body li.lead-li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .proj-stats > div { min-width: 78px; padding: 10px 12px; }
  .proj-stats b { font-size: 17px; }
}


/* ==========================================================================
   GRAPHICS - v5  (inline SVG decoration throughout)
   ========================================================================== */

/* Hero: animated constellation behind the text */
.hero { position: relative; overflow: hidden; }
.hero-bg-graphic {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 80%);
}
.hero-bg-graphic svg { width: 100%; height: 100%; display: block; }
.hero-bg-graphic .ln { stroke-width: 0.6; opacity: 0.25; }
.hero-bg-graphic .nd {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 4s ease-in-out infinite;
}
.hero-bg-graphic .n1 { fill: var(--amber);   animation-delay: 0s;   }
.hero-bg-graphic .n2 { fill: var(--emerald); animation-delay: 0.8s; }
.hero-bg-graphic .n3 { fill: var(--cyan);    animation-delay: 1.6s; }
.hero-bg-graphic .n4 { fill: var(--violet);  animation-delay: 2.4s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; transform: scale(1);   }
  50%      { opacity: 1;    transform: scale(1.4); }
}
.hero-grid { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg-graphic .nd { animation: none; opacity: 0.7; }
}

/* Achievement card icon SVGs (replace emoji) */
.ach-icon-svg {
  width: 38px;
  height: 38px;
  color: var(--amber);
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 10px var(--amber-glow));
  transition: transform .25s ease;
}
.ach-card:hover .ach-icon-svg { transform: translateY(-2px) scale(1.05); }
.ach-card[data-tone="emerald"] .ach-icon-svg { color: var(--emerald); filter: drop-shadow(0 0 10px var(--emerald-glow)); }
.ach-card[data-tone="crimson"] .ach-icon-svg { color: var(--crimson); filter: drop-shadow(0 0 10px var(--crimson-glow)); }
.ach-card[data-tone="violet"]  .ach-icon-svg { color: var(--violet);  filter: drop-shadow(0 0 10px rgba(167,139,250,0.35)); }

/* Bruce Smoochie device schematic */
.bruce-device {
  margin: 16px 0 4px;
  padding: 18px 14px 12px;
  background: linear-gradient(180deg, rgba(255,178,63,.03), transparent 70%);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bruce-device svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  color: var(--amber);
}
.bruce-device .wave {
  animation: signalWave 2.4s ease-out infinite;
  transform-origin: 200px 30px;
}
.bruce-device .wave-2 { animation-delay: 0.6s; }
.bruce-device .wave-3 { animation-delay: 1.2s; }
@keyframes signalWave {
  0%   { opacity: 0;   transform: scale(0.4); }
  40%  { opacity: 0.7; }
  100% { opacity: 0;   transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .bruce-device .wave { animation: none; opacity: 0.4; }
}

/* Decorative section dividers (drop between sections in HTML) */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  position: relative;
  z-index: 2;
}
.section-divider svg {
  width: 100%;
  max-width: 540px;
  height: 14px;
  color: var(--border-strong);
}
.section-divider .dv-mark { color: var(--amber); }
