/* ==========================================================================
   Hari Dahal — Portfolio (dahalhari.com)
   Bento Studio × Neo-Teal Architectural Design (Handcrafted, Zero AI Clichés)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-canvas: #0b0f14;
  --bg-tile: #11171f;
  --bg-tile-alt: #141c26;
  --bg-tile-hover: #17212d;
  --bg-nav: rgba(15, 21, 29, 0.88);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Signature Original dahalhari.com Neo-Teal */
  --teal: #00a78e;
  --teal-hover: #00c4a7;
  --teal-dim: rgba(0, 167, 142, 0.12);
  --teal-border: rgba(0, 167, 142, 0.42);

  --border-subtle: #1e293b;
  --border-strong: #2dd4bf33;
  --dotted-rule: rgba(148, 163, 184, 0.22);

  --kbd-bg: #1a2430;
  --kbd-border: #283648;
  --kbd-text: #e2e8f0;

  --code-bg: rgba(0, 167, 142, 0.12);
  --code-text: #2dd4bf;

  --hero-overlay: linear-gradient(
    135deg,
    rgba(11, 15, 20, 0.92) 0%,
    rgba(15, 23, 32, 0.84) 55%,
    rgba(0, 167, 142, 0.16) 100%
  );
  --shadow-tile: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  --bg-canvas: #f3f5f7;
  --bg-tile: #ffffff;
  --bg-tile-alt: #f8fafc;
  --bg-tile-hover: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.92);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --teal: #008f79;
  --teal-hover: #00a78e;
  --teal-dim: rgba(0, 143, 121, 0.09);
  --teal-border: rgba(0, 143, 121, 0.38);

  --border-subtle: #dce3ec;
  --border-strong: rgba(0, 143, 121, 0.35);
  --dotted-rule: rgba(15, 23, 42, 0.18);

  --kbd-bg: #f1f5f9;
  --kbd-border: #cbd5e1;
  --kbd-text: #1e293b;

  --code-bg: rgba(0, 143, 121, 0.1);
  --code-text: #007563;

  --hero-overlay: linear-gradient(
    135deg,
    rgba(15, 23, 34, 0.88) 0%,
    rgba(19, 29, 42, 0.82) 60%,
    rgba(0, 167, 142, 0.22) 100%
  );
  --shadow-tile: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Subtle architectural dot grid on canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

img {
  max-width: 100%;
  display: block;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   SIGNATURE NEO-TEAL SPEECH-BUBBLE TAG & NOTCHED DIVIDER
   (Direct homage to original dahalhari.com #00a78e elements)
   ========================================================================== */
.neo-tag {
  display: inline-block;
  position: relative;
  background: var(--teal);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.36rem 0.85rem;
  margin-bottom: 1.15rem;
  line-height: 1.2;
}

.neo-tag::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--teal);
}

/* Original-style inline <kbd> and <code> technical callouts */
kbd {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76em;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
  background: var(--kbd-bg);
  color: var(--kbd-text);
  border: 1px solid var(--kbd-border);
  border-radius: 3px;
  vertical-align: baseline;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82em;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 3px;
}

/* ==========================================================================
   FLOATING ARCHITECTURAL TOP NAVBAR
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0.9rem;
  z-index: 100;
  padding: 0 1.5rem;
  margin-bottom: 1.75rem;
}

.nav-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow-tile);
}

/* Iconic [h]dahal Logo Mark */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-h-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 4px solid var(--teal);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.brand-logo:hover .brand-h-box {
  background: var(--teal);
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a.nav-item {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
}

.nav-links a.nav-item::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a.nav-item:hover {
  color: var(--text-primary);
}

.nav-links a.nav-item:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  background: var(--teal);
  color: #ffffff;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.nav-blog-btn:hover {
  background: var(--teal-hover);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tile);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.theme-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

[data-theme="dark"] .sun-svg {
  display: block;
}
[data-theme="dark"] .moon-svg {
  display: none;
}
[data-theme="light"] .sun-svg {
  display: none;
}
[data-theme="light"] .moon-svg {
  display: block;
}

/* ==========================================================================
   BENTO STUDIO × NEO-TEAL HERO GRID (12-COLUMN ASYMMETRIC)
   ========================================================================== */
.bento-hero {
  margin-bottom: 4.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.bento-tile {
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-tile);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-tile:hover {
  border-color: var(--teal-border);
}

/* Tile 1: Main Neo-Teal Dossier with Original Mountain Backdrop (8 cols) */
.tile-dossier {
  grid-column: span 8;
  background-image: var(--hero-overlay), url("/images/header-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  border-top: 3px solid var(--teal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dossier-mobile-avatar {
  display: none;
}

.dossier-head h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.dossier-head h1 span {
  color: var(--teal-hover);
}

.dossier-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-hover);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.dossier-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  max-width: 66ch;
}

.dossier-bio strong {
  color: #ffffff;
  font-weight: 700;
}

/* Modernized Dotted Key-Value Spec Table from Original dahalhari.com */
.dossier-specs {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.75rem;
}

.dossier-specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.24);
  font-size: 0.86rem;
}

.spec-key {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.spec-val {
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
}

.spec-val a {
  color: #2dd4bf;
  border-bottom: 1px dotted rgba(45, 212, 191, 0.5);
}

.spec-val a:hover {
  color: #ffffff;
  border-bottom-style: solid;
}

/* Tile 2: Portrait Tile (4 cols) */
.tile-portrait {
  grid-column: span 4;
  padding: 0;
  min-height: 390px;
  background: #0d131a;
  border-top: 3px solid var(--teal);
  display: flex;
  flex-direction: column;
}

.portrait-img-wrap {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
}

.portrait-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.tile-portrait:hover .portrait-img-wrap img {
  transform: scale(1.03);
}

.portrait-caption {
  padding: 0.85rem 1.25rem;
  background: var(--bg-tile);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.portrait-caption span {
  color: var(--text-secondary);
  font-weight: 600;
}

.portrait-caption a {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 1px dotted var(--teal-border);
}

.portrait-caption a:hover {
  color: var(--teal-hover);
  border-bottom-style: solid;
}

/* Tile 3: About Me & Stack Matrix (7 cols) */
.tile-about {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.about-title span {
  color: var(--teal);
}

.about-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.about-copy p + p {
  margin-top: 0.65rem;
}

.stack-table {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.stack-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.stack-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Tile 4: Education & RIT Merit Card (5 cols) */
.tile-education {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  background: var(--bg-tile-alt);
}

.edu-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.edu-top-bar .neo-tag {
  margin-bottom: 0;
}

.edu-city-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.edu-brand-box {
  display: block;
  padding: 1.05rem 1.15rem;
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid #f76902;
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.edu-brand-box:hover {
  border-color: #f76902;
  transform: translateY(-1px);
}

.rit-official-svg {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  color: var(--text-primary);
}

.edu-college-sub {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dotted var(--dotted-rule);
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.edu-details {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.edu-details li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px dotted var(--dotted-rule);
}

.edu-details li span:first-child {
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.edu-details li strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.edu-details li a {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 1px dotted var(--teal-border);
  text-align: right;
}

.edu-details li a:hover {
  color: var(--teal-hover);
  border-bottom-style: solid;
}

.edu-merit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  font-size: 0.76rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.edu-merit-bar:hover {
  border-color: var(--teal);
  background: var(--bg-tile-hover);
}

.edu-merit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.edu-merit-check {
  color: var(--teal);
  flex-shrink: 0;
}

.edu-merit-url {
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

.edu-merit-bar:hover .edu-merit-url {
  color: var(--teal-hover);
}

/* ==========================================================================
   BUTTONS (Tactile Neo-Teal Outlined & Solid)
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-neo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(15, 23, 34, 0.55);
  transition: all 0.18s ease;
}

.btn-neo:hover {
  border-color: var(--teal-hover);
  color: var(--teal-hover);
}

.btn-neo.solid {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.btn-neo.solid:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #ffffff;
}

.btn-surface {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tile-alt);
  color: var(--text-primary);
}

.btn-surface:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ==========================================================================
   NEO-TEAL SECTION HEADERS (With Signature Center-Notched Horizontal Rule)
   ========================================================================== */
.section-block {
  margin-bottom: 4.5rem;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

/* Signature thick Neo-Teal bar segment on the bottom rule */
.section-header-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 3px;
  background: var(--teal);
}

.section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.15;
}

.section-heading span {
  color: var(--teal);
  font-weight: 400;
}

.section-side-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  padding-bottom: 0.15rem;
  border-bottom: 1px dotted var(--teal);
}

.section-side-link:hover {
  color: var(--teal-hover);
  border-bottom-style: solid;
}

/* ==========================================================================
   PROJECTS BENTO GRID (12-Column Architectural Layout)
   ========================================================================== */
.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.project-tile {
  grid-column: span 4;
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-tile);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-tile.span-6 {
  grid-column: span 6;
}

.project-tile.span-8 {
  grid-column: span 8;
}

.project-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-tile:hover {
  border-color: var(--teal-border);
  transform: translateY(-2px);
}

.project-tile:hover::before {
  opacity: 1;
}

.proj-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

/* Architectural [01] Index Box echoing the [h]dahal mark */
.proj-index-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.52rem;
  border: 1.5px solid var(--teal);
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.project-tile:hover .proj-index-box {
  background: var(--teal);
  color: #ffffff;
}

.proj-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}

.project-tile h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-tile h3 a:hover {
  color: var(--teal);
}

.proj-bullets {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.6;
}

.proj-bullets li {
  position: relative;
  padding-left: 0.95rem;
}

.proj-bullets li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.proj-footer {
  padding-top: 0.9rem;
  border-top: 1px dotted var(--dotted-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.proj-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

.proj-link:hover {
  color: var(--teal-hover);
  text-decoration: underline;
}

/* ==========================================================================
   EXPERIENCE ARCHITECTURAL TIMELINE BENTO (#experience)
   ========================================================================== */
.exp-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.exp-tile {
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-tile);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.exp-tile.exp-featured {
  grid-column: span 2;
  background: var(--bg-tile-alt);
  border-top: 3px solid var(--teal);
  border-left: 1px solid var(--border-subtle);
  padding: 1.85rem 2rem;
}

.exp-tile:hover {
  background: var(--bg-tile-hover);
  border-color: var(--teal);
}

.journey-subhead {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0.15rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.journey-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  border-bottom: 1px dotted var(--dotted-rule);
}

.exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dotted var(--dotted-rule);
}

.exp-role {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.exp-tile.exp-featured .exp-role {
  font-size: 1.25rem;
}

.exp-org {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 0.18rem;
}

.exp-date-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--teal-border);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-date-badge.current {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.exp-points {
  list-style: none;
  display: grid;
  gap: 0.42rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.exp-points li {
  position: relative;
  padding-left: 0.95rem;
}

.exp-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ==========================================================================
   FOOTER / CONTACT (#contact)
   ========================================================================== */
.site-footer {
  margin-top: 2rem;
  padding-bottom: 3.5rem;
}

.footer-bento {
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-tile);
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.footer-title span {
  color: var(--teal);
}

.footer-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-sub a {
  color: var(--teal);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile Optimization)
   ========================================================================== */
@media (max-width: 980px) {
  .tile-dossier,
  .tile-portrait,
  .tile-about,
  .tile-education,
  .project-tile,
  .project-tile.span-6,
  .project-tile.span-8 {
    grid-column: span 12;
  }

  .tile-portrait {
    display: none;
  }

  .dossier-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
  }

  .dossier-intro {
    flex: 1;
    min-width: 0;
  }

  .dossier-intro .dossier-subtitle {
    margin-bottom: 0;
  }

  .dossier-mobile-avatar {
    display: block;
    flex: 0 0 96px;
    width: 96px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 167, 142, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    background: #0b111e;
  }

  .dossier-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
  }

  .exp-bento-grid {
    grid-template-columns: 1fr;
  }

  .exp-tile.exp-featured,
  .journey-subhead {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 7.25rem;
  }

  .top-header {
    top: 0.5rem;
    padding: 0 0.75rem;
    margin-bottom: 1.15rem;
  }

  .nav-bar {
    flex-wrap: wrap;
    padding: 0.55rem 0.85rem;
    gap: 0.45rem;
  }

  .brand-logo {
    font-size: 1.12rem;
  }

  .brand-h-box {
    width: 30px;
    height: 30px;
    border-width: 3.5px;
    font-size: 0.98rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .nav-blog-btn {
    font-size: 0.72rem;
    padding: 0.38rem 0.65rem;
  }

  .theme-btn {
    width: 31px;
    height: 31px;
  }

  /* Second row inside sticky navbar for instant mobile section jumps */
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.42rem;
    border-top: 1px dotted var(--dotted-rule);
    gap: 0.15rem;
  }

  .nav-links li.hide-mobile {
    display: block;
  }

  .nav-links a.nav-item {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.4rem;
  }

  .container {
    padding: 0 0.85rem;
  }

  .bento-hero,
  .section-block {
    margin-bottom: 2.75rem;
  }

  .bento-grid,
  .projects-bento-grid,
  .exp-bento-grid {
    gap: 0.9rem;
  }

  .bento-tile,
  .project-tile,
  .exp-tile,
  .exp-tile.exp-featured,
  .footer-bento {
    padding: 1.25rem;
  }

  .neo-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.85rem;
  }

  .dossier-top-row {
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .dossier-head h1 {
    font-size: 1.7rem;
  }

  .dossier-subtitle {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .dossier-mobile-avatar {
    flex: 0 0 84px;
    width: 84px;
    height: 100px;
  }

  .dossier-bio,
  .about-copy {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .dossier-specs {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
  }

  .dossier-specs li {
    font-size: 0.82rem;
    padding-bottom: 0.42rem;
  }

  /* 2x2 thumb-friendly button grid on mobile for Hero and Footer */
  .tile-dossier .btn-row,
  .footer-bento .btn-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .tile-dossier .btn-neo,
  .footer-bento .btn-neo,
  .footer-bento .btn-surface {
    justify-content: center;
    text-align: center;
    padding: 0.58rem 0.5rem;
    font-size: 0.75rem;
    width: 100%;
  }

  .about-title {
    font-size: 1.25rem;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dotted var(--dotted-rule);
  }

  .stack-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .edu-brand-box {
    padding: 0.85rem 0.95rem;
  }

  .rit-official-svg {
    max-width: 255px;
  }

  .edu-details {
    font-size: 0.81rem;
  }

  .section-header-bar {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .section-side-link {
    font-size: 0.74rem;
  }

  .project-tile h3 {
    font-size: 1.04rem;
  }

  .proj-bullets,
  .exp-points {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .proj-footer {
    font-size: 0.72rem;
  }

  .proj-link {
    font-size: 0.73rem;
  }

  /* Stack experience role + org and date badge cleanly on mobile */
  .exp-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .exp-role,
  .exp-tile.exp-featured .exp-role {
    font-size: 1.02rem;
  }

  .exp-org {
    font-size: 0.8rem;
  }

  .footer-bento {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .footer-title {
    font-size: 1.25rem;
  }

  .footer-sub {
    font-size: 0.8rem;
  }
}

@media (max-width: 390px) {
  .proj-category {
    font-size: 0.63rem;
    letter-spacing: 0.03em;
  }

  .edu-details li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .edu-details li strong,
  .edu-details li a {
    text-align: left;
  }
}
