:root {
  --ink: #07111d;
  --ink-2: #0a1726;
  --panel: #0d1c2e;
  --panel-2: #10243a;
  --line: rgba(163, 197, 219, 0.14);
  --line-bright: rgba(102, 240, 211, 0.42);
  --text: #edf7ff;
  --muted: #9eb2c6;
  --muted-2: #6f879d;
  --signal: #66f0d3;
  --signal-strong: #31d9ba;
  --blue: #69a9ff;
  --amber: #ffca70;
  --danger: #ff7187;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --nav-height: 82px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--signal) var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -5;
  inset: 0;
  background:
    radial-gradient(circle at 13% 12%, rgba(48, 114, 161, 0.17), transparent 31rem),
    radial-gradient(circle at 82% 78%, rgba(50, 218, 185, 0.08), transparent 32rem),
    linear-gradient(135deg, #07111d 0%, #081522 44%, #07111d 100%);
  content: '';
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

a {
  color: var(--signal);
  transition: color 180ms ease, opacity 180ms ease;
}

a:hover,
a:focus {
  color: #a2ffed;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  line-height: 1.03;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.container {
  max-width: 1240px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--ink);
}

.site-grid {
  position: fixed;
  z-index: -4;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(152, 185, 207, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 185, 207, 0.07) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one {
  top: 18%;
  right: -12rem;
  background: var(--signal);
}

.ambient-two {
  bottom: 5%;
  left: -14rem;
  background: var(--blue);
}

.section-pad {
  padding: 8.75rem 0;
}

.section-pad-sm {
  padding: 5.5rem 0;
}

.section-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 2.4rem;
  height: 1px;
  background: var(--signal);
  content: '';
}

.section-heading {
  margin-bottom: 4.2rem;
}

.section-heading h2,
.section-intro h2 {
  margin-bottom: 0;
}

.section-heading h2 span,
.section-intro h2 span,
.stack-section .section-heading h2 span {
  color: var(--signal);
}

.section-heading .col-lg-4 p {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

/* Navigation */

#mainNav {
  height: var(--nav-height);
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, height 220ms ease;
}

#mainNav.is-scrolled {
  height: 70px;
  border-bottom-color: var(--line);
  background: rgba(7, 17, 29, 0.88);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 100%;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(102, 240, 211, 0.06);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 0.22rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#mainNav .nav-link {
  position: relative;
  margin: 0 0.25rem;
  padding: 0.6rem 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#mainNav .nav-link::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.22rem;
  left: 0.7rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--signal);
  content: '';
  transition: transform 180ms ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--text);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

#mainNav .nav-contact {
  margin-left: 0.7rem;
}

#mainNav .nav-contact .nav-link {
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(102, 240, 211, 0.06);
  color: var(--signal);
}

#mainNav .nav-contact .nav-link::after {
  display: none;
}

#mainNav .nav-contact i {
  margin-left: 0.4rem;
  font-size: 0.62rem;
}

.navbar-toggler {
  display: flex;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
}

.navbar-toggler span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--signal);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
}

.scroll-progress span {
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--signal));
  box-shadow: 0 0 16px rgba(102, 240, 211, 0.65);
}

/* Hero */

.hero-section {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 6rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 1.8rem;
}

.eyebrow span:not(.status-dot) {
  color: var(--muted-2);
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(102, 240, 211, 0.8);
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  content: '';
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% { transform: scale(0.55); opacity: 1; }
  75%, 100% { transform: scale(1.25); opacity: 0; }
}

.hero-section h1 {
  max-width: 850px;
  margin-bottom: 1.8rem;
}

.hero-section h1 span {
  display: block;
  background: linear-gradient(100deg, var(--signal) 8%, #92c5ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 2.25rem;
  color: #b8c9d8;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3.4rem;
}

.btn-signal,
.btn-ghost,
.btn-light-signal {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-signal {
  border: 1px solid var(--signal);
  background: var(--signal);
  box-shadow: 0 14px 40px rgba(49, 217, 186, 0.17);
  color: var(--ink);
}

.btn-signal:hover,
.btn-signal:focus {
  transform: translateY(-2px);
  background: #91ffe9;
  box-shadow: 0 18px 46px rgba(49, 217, 186, 0.25);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus {
  transform: translateY(-2px);
  border-color: rgba(105, 169, 255, 0.45);
  background: rgba(105, 169, 255, 0.08);
  color: var(--text);
}

.hero-meta {
  display: flex;
  max-width: 760px;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.meta-item {
  display: flex;
  min-width: 180px;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.15rem;
  background: rgba(8, 21, 34, 0.95);
}

.meta-item strong {
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.meta-item span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.02em;
}

.console-card {
  position: relative;
  max-width: 500px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(132, 181, 213, 0.2);
  border-radius: 20px;
  background: rgba(8, 21, 34, 0.92);
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.01);
  transform-style: preserve-3d;
}

.console-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(105, 169, 255, 0.06), transparent 36%, rgba(102, 240, 211, 0.035));
  content: '';
  pointer-events: none;
}

.console-bar {
  position: relative;
  z-index: 2;
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40546a;
}

.console-dots span:first-child { background: var(--danger); }
.console-dots span:nth-child(2) { background: var(--amber); }
.console-dots span:last-child { background: var(--signal); }

.console-body {
  position: relative;
  z-index: 2;
  padding: 1.55rem;
  font-family: var(--font-mono);
}

.command-line {
  margin-bottom: 1.6rem;
  color: var(--text);
  font-size: 0.8rem;
}

.prompt,
.flag {
  color: var(--signal);
}

.console-output {
  padding-bottom: 1.4rem;
}

.console-output p {
  display: grid;
  grid-template-columns: 28px 42px 1fr;
  gap: 0.6rem;
  margin-bottom: 0.72rem;
  color: #a8bbcc;
  font-size: 0.66rem;
}

.log-time { color: #516b82; }
.log-ok { color: var(--signal); }

.system-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.system-cell {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem;
  background: #0b1929;
}

.system-cell span {
  margin-bottom: 0.35rem;
  color: var(--muted-2);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.system-cell strong {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
}

.system-cell .healthy {
  color: var(--signal);
}

.healthy i,
.stack-valid i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(102, 240, 211, 0.7);
}

/* Principles */

.principles-section {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 23, 38, 0.65);
}

.section-intro {
  max-width: 850px;
  margin-bottom: 3.5rem;
}

.section-intro > p:last-child {
  max-width: 660px;
  margin-top: 1.4rem;
  margin-bottom: 0;
}

.principle-grid > div {
  display: flex;
  margin-bottom: 1.5rem;
}

.principle-card {
  position: relative;
  width: 100%;
  min-height: 290px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(17, 37, 59, 0.72), rgba(9, 23, 38, 0.78));
  transition: border-color 220ms ease, background-color 220ms ease, transform 100ms linear;
}

.principle-card:hover {
  border-color: rgba(102, 240, 211, 0.28);
}

.card-index {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  color: #38516a;
  font-family: var(--font-mono);
  font-size: 0.67rem;
}

.principle-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 2.8rem;
  place-items: center;
  border: 1px solid rgba(102, 240, 211, 0.24);
  border-radius: 14px;
  background: rgba(102, 240, 211, 0.055);
  color: var(--signal);
}

.principle-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.34rem;
}

.principle-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

/* Experience */

.experience-section {
  position: relative;
}

.experience-list {
  position: relative;
}

.experience-list::before {
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 181px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-bright) 8%, var(--line) 92%, transparent);
  content: '';
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 145px 72px 1fr;
  margin-bottom: 1.4rem;
}

.experience-date {
  padding-top: 2rem;
  text-align: right;
}

.experience-date span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.035em;
}

.experience-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 2.2rem;
}

.experience-marker span {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(102, 240, 211, 0.1), 0 0 18px rgba(102, 240, 211, 0.4);
}

.experience-card {
  padding: 2rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(15, 33, 53, 0.78), rgba(9, 23, 38, 0.58));
  transition: border-color 220ms ease, transform 100ms linear;
}

.experience-card:hover {
  border-color: rgba(105, 169, 255, 0.32);
}

.experience-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.company {
  margin-bottom: 0.35rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.experience-card h3 span {
  color: #425c73;
}

.experience-card > p {
  max-width: 850px;
  margin-bottom: 1.4rem;
  color: #a9bbca;
  font-size: 0.95rem;
}

.role-tag {
  flex: 0 0 auto;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-tag.current {
  border-color: rgba(102, 240, 211, 0.28);
  background: rgba(102, 240, 211, 0.055);
  color: var(--signal);
}

.role-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-skills li {
  padding: 0.38rem 0.65rem;
  border-radius: 7px;
  background: rgba(105, 169, 255, 0.07);
  color: #94bce9;
  font-family: var(--font-mono);
  font-size: 0.59rem;
}

/* Stack */

.stack-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 20, 33, 0.72);
}

.stack-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(9, 23, 38, 0.82);
  box-shadow: var(--shadow);
}

.stack-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.stack-header i {
  margin-right: 0.5rem;
  color: var(--blue);
}

.stack-valid {
  color: var(--signal);
}

.stack-valid i {
  margin-right: 0.35rem;
}

.stack-grid {
  margin-right: 0;
  margin-left: 0;
}

.stack-grid > .stack-column {
  min-height: 410px;
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--line);
}

.stack-column:last-child {
  border-right: 0;
}

.stack-label {
  margin-bottom: 2.5rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack-column h3 {
  margin-bottom: 1.25rem;
}

.tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem 0.25rem;
  border-bottom: 1px solid rgba(163, 197, 219, 0.09);
}

.tool-list li:last-child {
  border-bottom: 0;
}

.tool-list span {
  color: #bdcedb;
  font-size: 0.82rem;
}

.tool-list small {
  color: #547087;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  text-transform: uppercase;
}

/* Education */

.education-section h2 {
  margin-bottom: 1.35rem;
}

.education-lead {
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.profile-note {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.profile-note img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 30%;
  border: 2px solid rgba(102, 240, 211, 0.35);
  border-radius: 18px;
  filter: saturate(0.8) contrast(1.05);
}

.profile-note span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-note p {
  max-width: 430px;
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(15, 33, 53, 0.72), rgba(9, 23, 38, 0.58));
  transition: border-color 200ms ease, transform 200ms ease;
}

.education-card:hover {
  transform: translateX(6px);
  border-color: rgba(102, 240, 211, 0.28);
}

.education-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(105, 169, 255, 0.25);
  border-radius: 15px;
  background: rgba(105, 169, 255, 0.06);
  color: var(--blue);
}

.education-card p {
  margin-bottom: 0.3rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.education-card h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

/* Contact + footer */

.contact-section {
  padding-top: 4rem;
  padding-bottom: 7rem;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 4rem;
  border: 1px solid rgba(102, 240, 211, 0.32);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(102, 240, 211, 0.15), transparent 24rem),
    linear-gradient(135deg, #102a3b, #0b2030 68%, #0a1b29);
  box-shadow: var(--shadow);
}

.contact-card::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(102, 240, 211, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(102, 240, 211, 0.025), 0 0 0 6rem rgba(102, 240, 211, 0.018);
  content: '';
}

.contact-noise {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.45px, transparent 0.45px);
  background-size: 8px 8px;
  pointer-events: none;
}

.contact-card h2 {
  max-width: 800px;
  margin-bottom: 1rem;
}

.contact-card p:not(.section-kicker) {
  max-width: 680px;
  margin-bottom: 0;
  color: #b5c7d4;
}

.btn-light-signal {
  position: relative;
  z-index: 2;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--ink);
  white-space: nowrap;
}

.btn-light-signal:hover,
.btn-light-signal:focus {
  transform: translateY(-2px);
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.site-footer {
  padding-bottom: 2.2rem;
}

.footer-line {
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links a:hover {
  border-color: var(--line-bright);
  background: rgba(102, 240, 211, 0.06);
  color: var(--signal);
}

.footer-links .back-to-top {
  margin-left: 0.35rem;
}

/* Motion */

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */

@media (max-width: 1199.98px) {
  .stack-column {
    border-bottom: 1px solid var(--line);
  }

  .stack-column:nth-child(2) {
    border-right: 0;
  }

  .stack-column:nth-child(3),
  .stack-column:nth-child(4) {
    border-bottom: 0;
  }
}

@media (max-width: 991.98px) {
  :root {
    --nav-height: 72px;
  }

  .section-pad {
    padding: 6.5rem 0;
  }

  #mainNav,
  #mainNav.is-scrolled {
    height: auto;
    min-height: var(--nav-height);
    border-bottom-color: var(--line);
    background: rgba(7, 17, 29, 0.94);
    backdrop-filter: blur(18px);
  }

  .nav-shell {
    min-height: var(--nav-height);
    flex-wrap: wrap;
  }

  .navbar-collapse {
    width: 100%;
    padding: 1rem 0 1.35rem;
    border-top: 1px solid var(--line);
  }

  #mainNav .nav-link {
    margin: 0.12rem 0;
    padding: 0.72rem 0;
  }

  #mainNav .nav-link::after {
    right: auto;
    bottom: 0.35rem;
    left: 0;
    width: 28px;
  }

  #mainNav .nav-contact {
    margin-top: 0.6rem;
    margin-left: 0;
  }

  #mainNav .nav-contact .nav-link {
    display: inline-flex;
    padding: 0.7rem 0.9rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 5rem);
  }

  .console-card {
    max-width: 650px;
    margin-right: auto;
    margin-left: 0;
  }

  .section-heading .col-lg-4 p {
    max-width: 580px;
    margin-top: 1.25rem;
  }

  .contact-card {
    padding: 3rem;
  }

  .btn-light-signal {
    float: left;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 16px;
  }

  .section-pad {
    padding: 5.5rem 0;
  }

  .section-pad-sm {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 4rem);
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meta-item {
    min-width: 0;
  }

  .experience-list::before {
    left: 7px;
  }

  .experience-item {
    grid-template-columns: 16px 1fr;
    gap: 1.2rem;
  }

  .experience-date {
    grid-column: 2;
    padding-top: 0;
    text-align: left;
  }

  .experience-marker {
    grid-row: 1 / span 2;
    grid-column: 1;
    justify-content: flex-start;
    padding-top: 0.35rem;
  }

  .experience-card {
    grid-column: 2;
    padding: 1.5rem;
  }

  .experience-topline {
    flex-direction: column;
  }

  .role-tag {
    order: -1;
  }

  .stack-grid > .stack-column {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }

  .stack-grid > .stack-column:last-child {
    border-bottom: 0 !important;
  }

  .contact-card {
    padding: 2.2rem 1.5rem;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 1.2rem;
  }
}

@media (max-width: 479.98px) {
  h1 {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .brand-copy {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .console-body {
    padding: 1rem;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: auto;
  }

  .profile-note {
    align-items: flex-start;
  }

  .btn-light-signal {
    width: 100%;
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media print {
  body,
  body::before {
    background: #fff !important;
    color: #334155 !important;
  }

  #mainNav,
  .site-grid,
  .ambient,
  .hero-actions,
  .contact-section,
  .site-footer {
    display: none !important;
  }

  .section-pad,
  .section-pad-sm,
  .hero-section {
    min-height: 0;
    padding: 2rem 0;
  }

  h1,
  h2,
  h3,
  .experience-card h3,
  .hero-section h1 span {
    background: none !important;
    color: #0f172a !important;
    -webkit-text-fill-color: initial;
  }

  .console-card,
  .principle-card,
  .experience-card,
  .stack-shell,
  .education-card {
    break-inside: avoid;
    border-color: #cbd5e1 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .reveal {
    transform: none !important;
    opacity: 1 !important;
  }
}
