/* ==========================================================================
   ARPIT TAK · FULL-STACK SYSTEMS ENGINEER
   Pristine, bug-free editorial design system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
  --canvas: #050505;
  --surface: #0e0e0e;
  --surface-raised: #161616;
  --ink: #f5f5f7;
  --ink-soft: #d1d1d6;
  --muted: #888891;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .20);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --focus: #3b82f6;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --grid-dot: rgba(255, 255, 255, .055);
  --status-green: #10b981;
}

:root.light-mode {
  --canvas: #f3f0e9;
  --surface: #ebe7df;
  --surface-raised: #e2ddd3;
  --ink: #1c1c1a;
  --ink-soft: #4f4b44;
  --muted: #777167;
  --line: rgba(28, 28, 26, .14);
  --line-strong: rgba(28, 28, 26, .34);
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --focus: #2563eb;
  --grid-dot: rgba(28, 28, 26, .11);
  --status-green: #059669;
}

/* --------------------------------------------------------------------------
   2. Reset & Typography Baseline
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.section, .contact-section, .site-header {
  scroll-margin-top: 4rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
  transition: transform 0.05s linear;
}

button, input, textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   3. Hardware Blue Cursor & Hover Hand Pointer
   -------------------------------------------------------------------------- */
html,
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 2l11 6.5-5.5 1.5-1.5 5.5z' fill='%233b82f6' stroke='%23151514' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}

:root.light-mode html,
:root.light-mode body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M3 2l11 6.5-5.5 1.5-1.5 5.5z' fill='%232563eb' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}

/* Hand pointer cursor on hover for all interactive, clickable elements */
a,
button,
[role="button"],
.theme-switch,
.text-link,
.copy-email-btn,
.btn,
.pill-button,
.status-pill,
.status-pill-link,
.social-link,
.footer-social-link,
summary,
select,
input[type="submit"],
input[type="button"],
label[for] {
  cursor: pointer !important;
}

a:hover,
button:hover,
[role="button"]:hover,
.theme-switch:hover,
.text-link:hover,
.copy-email-btn:hover,
.btn:hover,
.pill-button:hover,
.status-pill:hover,
.status-pill-link:hover,
.social-link:hover,
.footer-social-link:hover {
  cursor: pointer !important;
}

:root.light-mode a,
:root.light-mode button,
:root.light-mode [role="button"],
:root.light-mode .theme-switch,
:root.light-mode .text-link,
:root.light-mode .copy-email-btn,
:root.light-mode .btn,
:root.light-mode .pill-button,
:root.light-mode .status-pill,
:root.light-mode .status-pill-link,
:root.light-mode .social-link {
  cursor: pointer !important;
}

input[type="text"],
input[type="email"],
textarea {
  cursor: text;
}

/* --------------------------------------------------------------------------
   4. Signature Electric Blue Dot
   -------------------------------------------------------------------------- */
.accent-dot,
.wordmark .accent-dot,
.heading-xl .accent-dot,
.section-title .accent-dot,
.contact-title .accent-dot {
  color: var(--accent) !important;
  display: inline !important;
  font-weight: 800 !important;
  transition: color 0.2s ease;
}

:root:not(.light-mode) .accent-dot,
:root:not(.light-mode) .wordmark .accent-dot,
:root:not(.light-mode) .heading-xl .accent-dot,
:root:not(.light-mode) .section-title .accent-dot,
:root:not(.light-mode) .contact-title .accent-dot {
  color: #3b82f6 !important;
}

:root.light-mode .accent-dot,
:root.light-mode .wordmark .accent-dot,
:root.light-mode .heading-xl .accent-dot,
:root.light-mode .section-title .accent-dot,
:root.light-mode .contact-title .accent-dot {
  color: #2563eb !important;
}

/* --------------------------------------------------------------------------
   5. Site Layout & Container
   -------------------------------------------------------------------------- */
.site-root {
  padding: 1.25rem;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.site-header {
  padding: 0 0 clamp(4rem, 9vw, 7rem);
}

/* --------------------------------------------------------------------------
   6. Topbar Navigation
   -------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.topbar-actions, .site-nav, .hero-links, .footer-links, .project-actions {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 1.5rem;
}

.site-nav {
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: lowercase;
  transition: color .16s ease;
  padding: .2rem 0;
}

.site-nav a:before {
  color: var(--accent);
  content: "#";
  opacity: 0;
  margin-right: 1px;
  transition: opacity .16s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover:before {
  opacity: 1;
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active:before {
  opacity: 1;
}

.site-nav a.is-active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   7. Dual-Icon Sliding Theme Switch
   -------------------------------------------------------------------------- */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 62px;
  height: 32px;
  padding: 3px;
  border-radius: 9999px;
  background-color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

:root.light-mode .theme-switch {
  background-color: #e5e0d5;
  border-color: rgba(28, 28, 26, 0.18);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translateX(30px); /* Default Dark: Over Moon on right */
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease;
  z-index: 1;
}

:root.light-mode .theme-switch-thumb {
  transform: translateX(0); /* Light: Over Sun on left */
  background-color: #ffffff;
  border-color: rgba(28, 28, 26, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.theme-switch-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #8c867c;
  pointer-events: none;
  transition: color 0.2s ease;
}

.theme-switch-icon svg {
  width: 14px;
  height: 14px;
}

.theme-switch-icon.moon-icon {
  color: #f3f0e9;
}

.theme-switch-icon.sun-icon {
  color: #7a756c;
}

:root.light-mode .theme-switch-icon.sun-icon {
  color: #1c1c1a;
}

:root.light-mode .theme-switch-icon.moon-icon {
  color: #8a8479;
}

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .32fr);
  align-items: end;
  gap: 3rem;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.eyebrow, .section-label, .project-meta, .initiative-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.heading-xl, .section-title, .contact-title {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.heading-xl {
  max-width: 850px;
  margin-top: .4rem;
  font-size: clamp(3.2rem, 7.8vw, 5.6rem);
  line-height: .94;
}

.section-title {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.0;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .6rem;
}

.hero-status-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-intro {
  max-width: 540px;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--canvas) !important;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .3);
}

.btn-cta span.arrow {
  color: var(--accent) !important;
  transition: transform .16s ease;
}

.btn-cta:hover span.arrow {
  transform: translate(2px, -2px);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .16s ease;
}

.btn-subtle:hover {
  color: var(--ink);
}

.btn-subtle span {
  color: var(--accent);
  transition: transform .16s ease;
}

.btn-subtle:hover span {
  transform: translate(2px, -2px);
}

.text-link {
  display: inline-flex;
  gap: .38rem;
  align-items: center;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link span {
  color: var(--accent);
  transition: transform .16s ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

/* Hero Aside Profile Card */
.hero-aside {
  display: flex;
  flex-direction: column;
}

.profile-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: border-color .2s ease, transform .2s ease;
}

.profile-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

:root.light-mode .profile-card {
  background: #ffffff;
  border-color: rgba(28, 28, 26, .14);
  box-shadow: 0 8px 24px rgba(28, 28, 26, .06);
}

.hero-photo-wrapper {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-photo-wrapper:hover {
  border-color: var(--accent);
}

.profile-card-details {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1rem;
}

.hero-time-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
}

.live-clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}

.profile-tags span {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--muted);
  padding: .15rem .45rem;
  background: color-mix(in srgb, var(--canvas) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Clean Medicine Pill Shape Status Button */
.status,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.status-pill:hover,
.status-pill:focus-visible,
.status:hover,
.status:focus-visible {
  border-color: var(--status-green);
  color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
  outline: none;
}

.status:before,
.status-pill:before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green) !important;
  box-shadow: 0 0 6px var(--status-green) !important;
  content: "";
  animation: status-pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}

.status:after,
.status .status-dot,
.status-pill:after,
.status-pill .status-dot {
  display: none !important;
  content: none !important;
}

:root.light-mode .status,
:root.light-mode .status-pill {
  background: #f1f1ee;
  border-color: rgba(0, 0, 0, 0.12);
  color: #57534e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

:root.light-mode .status-pill:hover,
:root.light-mode .status-pill:focus-visible,
:root.light-mode .status:hover,
:root.light-mode .status:focus-visible {
  background: #ffffff;
  border-color: var(--status-green);
  color: #1c1917;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero-note-title {
  margin: .75rem 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-note-meta {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.48;
}

/* Email Copy Button & Toast */
.email-copy-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease;
}

.copy-email-btn span.arrow {
  color: var(--accent);
  transition: transform 0.16s ease;
}

.copy-email-btn:hover span.arrow {
  transform: translate(2px, -2px);
}

.copy-toast {
  position: absolute;
  left: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 0.24rem 0.6rem;
  border-radius: 4px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.copy-toast.is-active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* --------------------------------------------------------------------------
   9. Common Section Structure
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  white-space: nowrap;
}

.section-label span {
  color: var(--accent);
}

.section-label span:after {
  margin-left: .75rem;
  color: var(--muted);
  content: "/";
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(135px, .25fr) minmax(0, .75fr);
  gap: 2rem;
  margin-bottom: 3.25rem;
}

.compact-heading {
  align-items: end;
  margin-bottom: 2.4rem;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.65rem);
  line-height: .98;
}

.section-intro {
  max-width: 480px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. Section 01: About & Heatmap
   -------------------------------------------------------------------------- */
.about-body {
  max-width: 640px;
}

.about-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.about-body .about-lead {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 600;
  margin: 1.5rem 0 1.25rem;
}

.about-body .text-link {
  margin-top: .6rem;
}

/* Engineering Telemetry Bento Grid */
.about-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: border-color .2s ease, transform .2s ease;
}

.bento-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

:root.light-mode .bento-card {
  background: #ffffff;
  border-color: rgba(28, 28, 26, .14);
}

.bento-badge {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bento-val {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.bento-desc {
  margin: 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Heatmap Component */
.heatmap {
  display: grid;
  grid-template-columns: minmax(135px, .25fr) minmax(0, .75fr);
  gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.heatmap-main {
  min-width: 0;
  max-width: 100%;
}

.heatmap-summary {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.heatmap-scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  padding-bottom: .75rem;
  -webkit-overflow-scrolling: touch;
}

.heatmap-body {
  min-width: calc(var(--weeks, 53) * 12px);
}

.heatmap-months, .heatmap-grid {
  display: grid;
  grid-template-columns: repeat(var(--weeks, 53), minmax(9px, 1fr));
  gap: 3px;
}

.heatmap-months {
  height: 1.1rem;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.heatmap-months span {
  white-space: nowrap;
}

.heatmap-grid {
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
}

.heatmap-cell {
  display: block;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--surface-raised);
}

.heatmap-cell.is-empty {
  background: transparent;
}

.heatmap-cell.level-1 {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface-raised));
}

.heatmap-cell.level-2 {
  background: color-mix(in srgb, var(--accent) 45%, var(--surface-raised));
}

.heatmap-cell.level-3 {
  background: color-mix(in srgb, var(--accent) 70%, var(--surface-raised));
}

.heatmap-cell.level-4 {
  background: var(--accent);
}

:root.light-mode .heatmap-cell {
  background: rgba(28, 28, 26, 0.08);
}

:root.light-mode .heatmap-cell.is-empty {
  background: transparent;
}

:root.light-mode .heatmap-cell.level-1 {
  background: #bfdbfe;
}

:root.light-mode .heatmap-cell.level-2 {
  background: #60a5fa;
}

:root.light-mode .heatmap-cell.level-3 {
  background: #2563eb;
}

:root.light-mode .heatmap-cell.level-4 {
  background: #1d4ed8;
}

.heatmap-grid .heatmap-cell:not(.is-empty):hover {
  outline: 1px solid var(--ink-soft);
  outline-offset: 1px;
}

.heatmap-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: .66rem;
}

.heatmap-legend > span:not(.heatmap-cell) {
  margin: 0 .2rem;
}

.heatmap-legend .heatmap-cell {
  width: 11px;
}

/* --------------------------------------------------------------------------
   11. Section 02: Experience & Architecture
   -------------------------------------------------------------------------- */
.experience-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1.3rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.experience-card-featured {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 58%);
}

.experience-card:before {
  position: absolute;
  top: 2.35rem;
  bottom: 2.25rem;
  left: 18px;
  width: 1px;
  background: linear-gradient(var(--accent), transparent);
  opacity: .38;
  content: "";
}

.experience-stamp, .education-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  font-family: 'Newsreader', ui-serif, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 1.75rem;
}

.experience-company-lead {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
}

.experience-dates {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.experience-roles {
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.experience-role-item {
  position: relative;
  padding: 0 0 2.2rem 1.6rem;
  border-left: 1px solid var(--line-strong);
}

.experience-role-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.experience-role-item:before {
  position: absolute;
  left: -5px;
  top: .55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.experience-role-item .experience-role {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.experience-type {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: .55rem 0 0;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.experience-type:before {
  width: .45rem;
  height: .45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.initiative {
  max-width: 760px;
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  transition: border-color .2s ease;
}

.initiative:hover {
  border-color: var(--line-strong);
  border-left-color: var(--accent);
}

.initiative-header {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.initiative-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.initiative-title {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

.initiative strong {
  color: var(--ink);
  font-weight: 700;
}

.initiative-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.1rem 0 0;
  padding-top: .95rem;
  border-top: 1px solid var(--line);
}

.initiative-metrics div {
  background: color-mix(in srgb, var(--canvas) 65%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .65rem .75rem;
}

.initiative-metrics dt {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.initiative-metrics dd {
  margin: .35rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
  line-height: 1.35;
  text-transform: lowercase;
}

.experience-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 2.25rem;
  max-width: 860px;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
  counter-reset: highlight;
}

.experience-highlights li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.58;
  counter-increment: highlight;
}

.experience-highlights li:before {
  position: absolute;
  left: 0;
  top: .1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 800;
  content: "0" counter(highlight);
}

/* --------------------------------------------------------------------------
   12. Section 03: Projects Grid & Architectural Case Plates
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .25s ease;
}

.project-card::before, .initiative::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(59, 130, 246, 0.14), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.project-card:hover::before, .initiative:hover::before {
  opacity: 1;
}

:root.light-mode .project-card::before, :root.light-mode .initiative::before {
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(37, 99, 235, 0.09), transparent 65%);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  border-top-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}

:root.light-mode .project-card {
  background: #ffffff;
  border-color: rgba(28, 28, 26, .14);
}

:root.light-mode .project-card:hover {
  border-color: rgba(28, 28, 26, .26);
  border-top-color: var(--accent);
  box-shadow: 0 12px 28px rgba(28, 28, 26, .09);
}

/* --------------------------------------------------------------------------
   Interactive Visual Viewports inside Project Cards
   -------------------------------------------------------------------------- */
.project-preview {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom: 1px solid var(--line);
  padding: .9rem 1.15rem 1.15rem;
  overflow: hidden;
}

:root.light-mode .project-preview {
  background: #f8f6f0;
}

.preview-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .06em;
  padding-bottom: .65rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: .85rem;
}

.preview-tag {
  color: var(--accent);
  font-weight: 700;
}

.preview-meta {
  color: var(--muted);
}

/* 1. Outpost Canvas Preview */
.preview-canvas {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: .5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.canvas-item {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: .45rem .55rem;
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: .62rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  overflow: hidden;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: .25rem;
  margin-bottom: .35rem;
  font-size: .58rem;
}

.item-tag {
  color: var(--accent);
  font-weight: 700;
}

.item-tag.active {
  color: var(--status-green);
}

.item-code {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .56rem;
}

.code-line {
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-line.hl {
  color: var(--accent-2);
}

.canvas-shapes {
  display: flex;
  align-items: center;
}

.shape-box {
  padding: .35rem .5rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: .6rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.cursor-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  z-index: 3;
}

.cursor-arpit {
  top: .4rem;
  left: 40%;
  background: #1e3a8a;
  color: #bfdbfe;
  border: 1px solid var(--accent);
}

.cursor-copilot {
  bottom: .4rem;
  right: .65rem;
  background: #064e3b;
  color: #a7f3d0;
  border: 1px solid var(--status-green);
}

/* 2. Bolo India Voice Stream Preview */
.preview-speech {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 112px;
  justify-content: center;
}

.audio-visualizer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .5rem .75rem;
}

.audio-bars {
  display: flex;
  align-items: center;
  gap: .3rem;
  height: 22px;
}

.vbar {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: soundwave 1.4s ease-in-out infinite alternate;
}

.vb1 { height: 6px; animation-delay: 0.1s; }
.vb2 { height: 16px; animation-delay: 0.4s; }
.vb3 { height: 22px; animation-delay: 0.2s; }
.vb4 { height: 12px; animation-delay: 0.6s; }
.vb5 { height: 20px; animation-delay: 0.3s; }
.vb6 { height: 14px; animation-delay: 0.5s; }
.vb7 { height: 18px; animation-delay: 0.25s; }
.vb8 { height: 10px; animation-delay: 0.7s; }
.vb9 { height: 8px; animation-delay: 0.35s; }

@keyframes soundwave {
  0% { transform: scaleY(0.35); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

.audio-label {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}

.speech-lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.lang-pill {
  font-family: var(--mono);
  font-size: .62rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.lang-pill.active {
  border-color: var(--accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-weight: 600;
}

/* 3. QuickEMS RBAC Security Preview */
.preview-rbac {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 112px;
  justify-content: center;
}

.rbac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .3rem .55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .62rem;
}

.rbac-badge {
  padding: .1rem .35rem;
  border-radius: 3px;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.rbac-admin {
  background: color-mix(in srgb, #ef4444 20%, transparent);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .3);
}

.rbac-lead {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-2);
  border: 1px solid rgba(59, 130, 246, .3);
}

.rbac-text {
  color: var(--ink-soft);
  flex: 1;
  font-size: .6rem;
}

.rbac-flag.ok {
  color: var(--status-green);
  font-weight: 700;
  font-size: .56rem;
}

.rbac-metric-row {
  display: flex;
  gap: .5rem;
  margin-top: .1rem;
}

.rbac-metric {
  flex: 1;
  padding: .3rem .55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
}

.rm-val {
  color: var(--ink);
  font-weight: 700;
  font-size: .65rem;
}

.rm-lbl {
  color: var(--muted);
  font-size: .56rem;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 1.4rem;
}

.project-meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.project-badge {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-year {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
}

.project-title {
  margin: .75rem 0 .35rem;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.project-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.62;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 1.35rem 0 1.25rem;
  list-style: none;
}

.project-tags li, .tag, .skill-group li {
  padding: .22rem .5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--canvas) 60%, transparent);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.35;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

/* --------------------------------------------------------------------------
   13. Section 04: Education
   -------------------------------------------------------------------------- */
.education-list {
  border-top: 1px solid var(--line);
}

.education-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.education-item h3, .education-item p {
  margin: 0;
}

.education-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.education-item p {
  color: var(--muted);
  font-size: .84rem;
  margin-top: .3rem;
}

.education-item time {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   14. Section 05: Toolkit / Skills
   -------------------------------------------------------------------------- */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.skill-group {
  min-height: 195px;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.skill-group + .skill-group {
  padding-left: 1.5rem;
}

.skill-group:last-child {
  border-right: 0;
}

.skill-group > p {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   15. Section 06: Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  margin: clamp(4.5rem, 10vw, 7.5rem) 0 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.22s ease;
}

.contact-section .section-label {
  color: var(--muted);
}

.contact-section .section-label span {
  color: var(--accent);
}

.contact-section .contact-title {
  color: var(--ink);
}

.contact-section .contact-copy > p:last-child {
  color: var(--ink-soft);
}

.contact-section .contact-form label {
  color: var(--muted);
}

.contact-section .input {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.contact-section .input:focus {
  border-color: var(--accent);
}

.contact-section .btn {
  color: var(--ink) !important;
}

.contact-section .btn:hover {
  color: var(--accent) !important;
}

.contact-section .copy-email-btn {
  color: var(--ink) !important;
}

.contact-section .copy-email-btn:hover {
  color: var(--accent) !important;
}

.contact-title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: .94;
}

.contact-copy > p:last-child {
  max-width: 420px;
  margin: 1.4rem 0 0;
  font-size: .95rem;
  line-height: 1.65;
}

.contact-direct-email {
  margin-top: 1.5rem;
}

.contact-email-address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent) !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.16s ease;
}

.contact-email-address:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-email-address span.arrow {
  font-size: 0.9rem;
  transition: transform 0.16s ease;
}

.contact-email-address:hover span.arrow {
  transform: translate(2px, -2px);
}

.contact-actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-copy-btn, .contact-client-btn {
  font-size: 0.88rem;
  font-weight: 700;
}

/* Contact Form Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.input {
  width: 100%;
  padding: .7rem 0 .8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .95rem;
  outline: none;
  transition: border-color .16s ease;
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.5;
}

.btn {
  align-self: flex-start;
  margin-top: .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  transition: color 0.16s ease;
}

.btn span {
  color: var(--accent);
  transition: transform 0.16s ease;
}

.btn:hover span {
  transform: translate(2px, -2px);
}

.btn:disabled {
  opacity: .55;
  cursor: wait;
}

.form-result {
  margin: 0;
  color: var(--accent);
  font-size: .8rem;
  font-family: var(--mono);
}

/* --------------------------------------------------------------------------
   16. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 0 4rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links span {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   18. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .hero-grid, .contact-section {
    grid-template-columns: 1fr;
  }
  .about-bento {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .hero-aside {
    max-width: 100%;
  }
  .profile-card {
    max-width: 360px;
  }
  .hero-photo-wrapper {
    width: 125px;
    height: 125px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .initiative-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .contact-section {
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .site-root {
    padding: 0 1rem;
  }
  .topbar {
    min-height: 65px;
    max-width: 100%;
  }
  .site-nav {
    display: flex;
    overflow-x: auto;
    max-width: calc(100vw - 165px);
    gap: 0.75rem;
    padding: 0.25rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .topbar-actions {
    gap: 0.75rem;
  }
  .heading-xl {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.75rem;
  }
  .contact-title {
    font-size: 2.85rem;
  }
  .experience-role-item .experience-role {
    font-size: 1.6rem;
  }
  .hero-grid {
    gap: 2.5rem;
    padding-top: 3.5rem;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.25rem;
  }
  .heatmap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .experience-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .8rem;
  }
  .experience-header {
    flex-direction: column;
    gap: .4rem;
  }
  .experience-highlights {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .skills-groups {
    grid-template-columns: 1fr;
  }
  .skill-group, .skill-group + .skill-group {
    min-height: 0;
    padding: 1.35rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .education-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .5rem .8rem;
    align-items: start;
  }
  .education-item time {
    grid-column: 2;
    margin-top: 0.15rem;
  }
  .contact-section {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2.5rem 1.25rem;
    border-radius: 0;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 380px) {
  .site-nav {
    max-width: calc(100vw - 145px);
    gap: 0.6rem;
  }
  .site-nav a {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
