:root {
  --bg: #08111f;
  --bg-soft: #101a2c;
  --paper: rgba(10, 17, 30, 0.92);
  --card-surface: linear-gradient(180deg, rgba(10, 17, 30, 0.98), rgba(14, 24, 42, 0.98));
  --paper-strong: #0f1b2f;
  --panel: rgba(148, 163, 184, 0.08);
  --panel-strong: #12233a;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8f0ff;
  --muted: #91a2bf;
  --accent: #4b8dff;
  --accent-deep: #2f74f3;
  --accent-soft: #77a8ff;
  --olive: #28c76f;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #060f1c 0%, #0c1730 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 13, 25, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(80, 164, 255, 0.18), rgba(50, 140, 114, 0.12)),
    #0d182a;
  color: var(--accent-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small,
.eyebrow,
.project-type,
.timeline-year,
.contact-label {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.hero,
.section {
  padding: 40px 0 48px;
}

.hero {
  position: relative;
  padding-top: 54px;
  margin-bottom: 14px;
  overflow: hidden;
}

.section {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100vw - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.12), transparent);
}

.section::after {
  display: none;
}

.section-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-art::before,
.section-art::after {
  content: "";
  position: absolute;
}

.section-art-projects::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(148, 163, 184, 0.05) 10% 10.3%, transparent 10.3% 100%);
  opacity: 0.9;
}

.section-art-projects::after {
  top: 18%;
  right: 7%;
  width: 36%;
  height: 110px;
  border-top: 1px dashed rgba(47, 128, 255, 0.16);
  border-left: 1px dashed rgba(47, 128, 255, 0.16);
  border-radius: 22px 0 0 0;
}

.hero-grid,
.about-layout,
.project-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  align-items: center;
  gap: 60px;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 34px;
  align-items: start;
}

.portfolio-content {
  grid-column: 1;
  min-width: 0;
}

.git-sidebar {
  grid-column: 2;
  position: relative;
  align-self: stretch;
}

.git-rail {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: 58px 0 18px;
}

.git-rail-head {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent;
}

.git-rail-head strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.git-branch-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.git-graph {
  position: relative;
  min-height: 100%;
}

.git-start-point {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.git-start-dot {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2.5px solid rgba(75, 141, 255, 0.84);
  background: #0c1730;
  box-shadow: 0 0 0 4px rgba(75, 141, 255, 0.08);
}

.git-start-dot img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.git-rail-lines {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.git-main-line,
.git-branch-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.git-merge-dot {
  fill: #0c1730;
  stroke: rgba(75, 141, 255, 0.76);
  stroke-width: 2.25;
  transition: stroke 220ms ease, fill 220ms ease;
}

.git-main-line {
  stroke: rgba(75, 141, 255, 0.74);
  stroke-width: 2.3;
}

.git-branch-line {
  stroke-width: 2.3;
  opacity: 0.94;
  transition: stroke 220ms ease, opacity 220ms ease;
}

.git-branch-feat {
  stroke: rgba(96, 165, 250, 0.92);
  marker-end: url(#git-arrow-feat);
}

.git-branch-app {
  stroke: rgba(74, 222, 128, 0.92);
  marker-end: url(#git-arrow-app);
}

.git-branch-degree {
  stroke: rgba(96, 165, 250, 0.92);
  marker-end: url(#git-arrow-degree);
}

.git-branch-bootcamp {
  stroke: rgba(74, 222, 128, 0.92);
  marker-end: url(#git-arrow-bootcamp);
}

.git-point {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease, transform 200ms ease;
}

.git-point:hover {
  opacity: 0.85;
}

.git-point-mainline {
  width: 0;
  overflow: visible;
  transform: translate(-50%, -50%);
  justify-content: center;
  text-align: left;
}

.git-point-mainline .git-point-copy {
  position: absolute;
  top: 50%;
  left: 24px;
  width: max-content;
  transform: translateY(-50%);
}

.git-point-mainline .git-point-copy small,
.git-point-mainline .git-point-copy strong {
  display: block;
}

.git-point-mainline .git-point-copy small {
  margin-bottom: 2px;
}

.git-point-mainline .git-point-dot {
  margin: 0;
}

.git-point-mainline .git-point-copy,
.git-point-branch .git-point-copy {
  pointer-events: none;
}


.git-point-branch {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: 0;
  overflow: visible;
}

.git-point-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0c1730;
  border: 2.5px solid rgba(75, 141, 255, 0.82);
  flex: 0 0 auto;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.git-point-dot::before {
  display: none;
}

/* DevOps pipeline branch dots — blue */
.git-dot-feat {
  border-color: rgba(96, 165, 250, 0.96);
}

/* Mobile app dots — green */
.git-dot-app {
  border-color: rgba(74, 222, 128, 0.96);
}

/* Degree dots — blue */
.git-dot-degree {
  border-color: rgba(96, 165, 250, 0.96);
}

/* Bootcamp dots — green */
.git-dot-bootcamp {
  border-color: rgba(74, 222, 128, 0.96);
}

/* HEAD dot — solid accent */
.git-dot-head {
  border-color: rgba(147, 197, 253, 0.98);
  background: rgba(75, 141, 255, 0.18);
}

.git-dot-release {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-width: 3px;
  border-color: rgba(147, 197, 253, 0.98);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #4c8bff, #2855cc);
  box-shadow:
    0 0 0 12px rgba(75, 141, 255, 0.14),
    0 0 34px rgba(75, 141, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.git-dot-release::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: rgba(10, 20, 42, 0.24);
}

.git-dot-release svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #eff6ff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.git-dot-mini {
  width: 15px;
  height: 15px;
}

.git-point-copy {
  display: block;
  line-height: 1.25;
}

.git-point-copy small {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.60rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.git-point-copy strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms ease;
}

/* Branch commit labels — right of dot by default (bootcamp, right-side branch) */
.git-point-branch .git-point-copy {
  position: absolute;
  top: 50%;
  left: 16px;
  width: max-content;
  max-width: 82px;
  transform: translateY(-50%);
  text-align: left;
}

.git-point-branch .git-point-copy small {
  display: none;
}

/* feat and degree are left-side branches — labels go to the left of dot */
[data-branch-key="feat"] .git-point-copy,
[data-branch-key="degree"] .git-point-copy {
  left: auto;
  right: 16px;
  text-align: right;
}

.git-point-branch-compact .git-point-copy {
  display: none;
}

.commit-icons {
  display: flex;
  gap: 7px;
  margin-top: 7px;
  align-items: center;
}

.commit-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.commit-icons img.commit-icon-wide {
  width: 68px;
  height: auto;
  max-height: 24px;
  border-radius: 0;
}

.commit-icons svg {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

[data-branch-key="feat"] .commit-icons,
[data-branch-key="degree"] .commit-icons {
  justify-content: flex-end;
}

.git-point.is-active .git-point-dot {
  transform: scale(1.08);
  border-color: rgba(147, 197, 253, 0.98);
  background: #163868;
}

.git-point.is-active .git-point-copy strong,
.git-point:hover .git-point-copy strong {
  color: var(--accent-deep);
}

/* Active feature branch dots */
.git-point.is-active .git-dot-feat {
  transform: scale(1.08);
  background: #183765;
}

.git-point.is-active .git-dot-app {
  transform: scale(1.08);
  background: #123925;
}

/* Active degree dots */
.git-point.is-active .git-dot-degree {
  transform: scale(1.08);
  background: #183765;
}

/* Active bootcamp dots */
.git-point.is-active .git-dot-bootcamp {
  transform: scale(1.08);
  background: #123925;
}

/* Active HEAD dot */
.git-point.is-active .git-dot-head {
  border-color: var(--accent);
  background: #163868;
}

.git-point-release .git-point-copy small,
.git-point-release .git-point-copy strong {
  color: rgba(147, 197, 253, 0.98);
}

.git-point-release .git-point-copy {
  left: 34px;
}

.git-point-release .git-point-copy strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.git-point-release .git-point-copy small {
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.95;
}

.git-point-release.is-active .git-dot-release,
.git-point-release:hover .git-dot-release {
  transform: scale(1.08);
  background: linear-gradient(145deg, #6da8ff, #2d61e6);
}

.git-branch-name {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 120px;
  pointer-events: none;
  line-height: 1.05;
}

.git-branch-name small,
.git-branch-name strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
}

.git-branch-name small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.git-branch-name strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

[data-branch-label="feat"],
[data-branch-label="degree"] {
  text-align: right;
}

[data-branch-label="feat"] strong {
  color: rgba(96, 165, 250, 0.96);
}

[data-branch-label="app"] strong {
  color: rgba(74, 222, 128, 0.96);
}

[data-branch-label="degree"] strong {
  color: rgba(96, 165, 250, 0.96);
}

[data-branch-label="bootcamp"] strong {
  color: rgba(74, 222, 128, 0.96);
}

.git-branch-name-project {
  opacity: 0.96;
}

.git-merge-dot.is-active {
  fill: #0c1730;
  stroke: rgba(147, 197, 253, 0.98);
}

.hero-copy h1,
.section-title h2,
.contact-copy h2 {
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-top: 16px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.96;
}

.hero-text,
.about-card p,
.project-card p,
.timeline-card p,
.contact-copy p {
  color: var(--muted);
}

.hero-text {
  max-width: 37rem;
  margin-top: 22px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.project-link:hover,
.contact-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(10, 17, 30, 0.92);
  color: var(--text);
}

.hero-board,
.section-shell,
.contact-panel {
  position: relative;
}

.hero-panel,
.metric-card,
.about-card,
.stack-card,
.project-card,
.timeline-card,
.contact-panel,
.contact-card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-board {
  display: grid;
  gap: 18px;
  width: 100%;
  padding-left: 36px;
}

.hero-copy {
  max-width: 35rem;
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-panel-primary {
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.94), rgba(29, 99, 206, 0.94)),
    var(--panel-strong);
  color: #ffffff;
}

.hero-panel-primary .panel-kicker,
.hero-panel-primary p {
  color: rgba(255, 255, 255, 0.84);
}

.hero-panel-primary h2 {
  margin: 12px 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-terminal-panel {
  padding: 22px 24px 24px;
  background: rgba(15, 15, 18, 0.96);
}

.hero-terminal-lines {
  display: grid;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.65;
}

.hero-terminal-lines p {
  color: #d7e6ff;
}

.terminal-keyword {
  color: #c792ea;
}

.terminal-name {
  color: #82aaff;
}

.terminal-label {
  color: #8ea6c8;
}

.terminal-string {
  color: #c3e88d;
}

.terminal-prompt {
  color: #77a8ff;
}

.hero-git-panel {
  padding: 18px 22px 22px;
  background: rgba(15, 15, 18, 0.96);
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.hero-git-lines {
  display: grid;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.hero-git-lines p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #d7e6ff;
  white-space: nowrap;
}

.git-status-dim {
  color: #8ea6c8;
}

.git-status-branch {
  color: #77a8ff;
}

.git-status-remote {
  color: #c3e88d;
}

.git-status-ok {
  color: #4ade80;
}

.section-shell {
  position: relative;
  z-index: 1;
  padding: 28px 26px 22px;
  border-radius: 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section-title {
  max-width: 48rem;
  margin-bottom: 28px;
}

.section-title h2,
.contact-copy h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.about-layout {
  grid-template-columns: minmax(300px, 0.86fr) minmax(500px, 1.14fr);
  align-items: start;
  gap: 56px;
}

.about-copy,
.about-stack {
  display: grid;
  align-content: start;
  gap: 24px;
}

.about-stack {
  padding-left: 8px;
}

.about-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.about-card,
.stack-card,
.timeline-card,
.contact-panel {
  border-radius: var(--radius-xl);
}

.about-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.about-card p + p {
  margin-top: 18px;
}

.about-card p {
  max-width: 28rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.about-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.about-link:hover {
  transform: translateX(2px);
  color: var(--accent-soft);
}

.about-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.section-title h2 {
  margin-top: 0;
}

.stack-heading {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.stack-card {
  padding: 40px;
  background: var(--card-surface);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  min-height: 100%;
  max-width: 680px;
  width: 100%;
}

.stack-card .stack-heading {
  margin-bottom: 20px;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.concept-kicker {
  display: inline-block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.concept-card h4 {
  margin: 10px 0 14px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.terminal-card,
.object-card,
.git-status-card,
.flow-card,
.infra-card,
.metrics-card-mini {
  min-height: 150px;
}

.terminal-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-lines {
  display: grid;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.terminal-prompt {
  color: #77a8ff;
}

.terminal-muted {
  color: #f7af22;
}

.terminal-ok {
  color: #4ade80;
}

.object-card {
  margin: 0;
  padding: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #d7e6ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.git-status-card {
  display: grid;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.git-branch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.git-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 128, 255, 0.12);
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.git-status-card ul {
  display: grid;
  gap: 10px;
}

.git-status-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.git-status-card li strong {
  color: var(--text);
  font-size: 0.86rem;
}

.flow-card {
  display: grid;
  align-content: center;
  gap: 12px;
}

.flow-card span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-weight: 600;
}

.flow-card span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 1px;
  height: 12px;
  background: rgba(119, 168, 255, 0.38);
}

.flow-card span:last-child::after {
  display: none;
}

.infra-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.infra-card span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 0.9rem;
}

.metrics-card-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metrics-card-mini div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.metrics-card-mini strong {
  font-size: 1rem;
}

.metrics-card-mini span {
  color: var(--muted);
  font-size: 0.88rem;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.92rem;
}

.tag-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 92px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #f4f7fb;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: none;
  transition: transform 180ms ease;
}

.tag-grid li::after {
  display: none;
}

.tag-grid li:hover {
  transform: translateY(-1px);
}

.tool-mark {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.12);
  color: #f4f7fb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex: 0 0 auto;
}

.tag-grid li span:last-child {
  position: relative;
  z-index: 1;
  color: #f4f7fb;
  line-height: 1.25;
}

.tag-grid li:nth-child(1) .tool-mark {
  background: linear-gradient(135deg, #8a5bff, #6039d3);
}

.tag-grid li:nth-child(2) .tool-mark {
  background: linear-gradient(135deg, #f7af22, #dd8612);
}

.tag-grid li:nth-child(3) .tool-mark {
  background: linear-gradient(135deg, #437eff, #2454d8);
}

.tag-grid li:nth-child(4) .tool-mark {
  background: linear-gradient(135deg, #2bb3ff, #1a79dd);
}

.tag-grid li:nth-child(5) .tool-mark {
  background: linear-gradient(135deg, #26a2ff, #1b61bb);
}

.tag-grid li:nth-child(6) .tool-mark {
  background: linear-gradient(135deg, #ff7141, #da4c2d);
}

.tag-grid li:nth-child(7) .tool-mark {
  background: linear-gradient(135deg, #2f80ff, #55d2ff);
}

.tag-grid li:nth-child(8) .tool-mark {
  background: linear-gradient(135deg, #ff6f3d, #d94a17);
}

.tag-grid li:nth-child(9) .tool-mark {
  background: linear-gradient(135deg, #fb5e57, #cf3530);
}

.tag-grid li:nth-child(10) .tool-mark {
  background: linear-gradient(135deg, #ff9f1f, #d97706);
}

.tag-grid li:nth-child(11) .tool-mark {
  background: linear-gradient(135deg, #ffb11c, #f08700);
}

.tag-grid li:nth-child(12) .tool-mark {
  background: linear-gradient(135deg, #4373ff, #2448c5);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-rows: minmax(220px, 240px) 1fr;
  min-height: 100%;
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--card-surface);
  overflow: hidden;
}

#project-devops {
  border-color: rgba(96, 165, 250, 0.24);
}

#project-mobile {
  border-color: rgba(74, 222, 128, 0.24);
}

.project-card-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.project-card-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.3px),
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.3px);
  background-size: 28px 28px, 28px 28px;
  opacity: 0.24;
  pointer-events: none;
}

.project-card-top-devops {
  background: linear-gradient(135deg, #314f89 0%, #233a67 58%, #1a2b4e 100%);
}

.project-card-top-mobile {
  background: linear-gradient(135deg, #17553b 0%, #123f2c 58%, #0d2c1f 100%);
}

.project-top-note {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.18);
}

.project-top-note span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.project-top-note strong {
  display: block;
  margin-top: 4px;
  color: #f8fbff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px 24px;
}

.project-card-body h3 {
  font-size: clamp(1.8rem, 2.3vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.project-card-body p {
  max-width: 31ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-chip-row {
  gap: 10px;
}

.project-chip-row span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(5, 9, 16, 0.9);
  border-color: rgba(148, 163, 184, 0.1);
  color: #e8f0ff;
  font-size: 0.88rem;
}

.chip-with-icon {
  gap: 8px;
}

.chip-with-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease;
}

.project-link::after {
  content: "\2192";
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.timeline-education-stack {
  display: grid;
  gap: 22px;
}

.timeline-experience-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
}

.timeline-column-heading {
  margin: 0;
  color: #d7e6ff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.timeline-card {
  padding: 24px 24px 22px;
  border-radius: 18px;
  background: var(--card-surface);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.timeline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.timeline-org {
  margin: 8px 0 14px;
  color: #2f80ff;
  font-size: 0.98rem;
  font-weight: 500;
}

.timeline-org-link {
  color: #2f80ff;
  transition: color 180ms ease;
}

.timeline-org-link:hover {
  color: #6aa7ff;
}

.timeline-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
}

.timeline-card p:last-child {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.timeline-card-experience {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.contact-panel {
  display: grid;
  justify-items: center;
  padding: 34px;
  background: var(--card-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.contact-copy {
  max-width: 48rem;
  text-align: center;
}

.contact-copy p:last-child {
  margin-top: 18px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  gap: 18px;
  width: min(100%, 700px);
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--card-surface);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.contact-card strong {
  font-size: 1.05rem;
  line-height: 1.4;
}

.contact-card:hover {
  border-color: rgba(125, 182, 255, 0.3);
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.98), rgba(18, 31, 54, 0.98));
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(47, 128, 255, 0.1);
  color: var(--accent-soft);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.contact-social {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--card-surface);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.contact-social:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 182, 255, 0.3);
  color: var(--accent-soft);
}

.contact-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer {
  padding: 12px 0 42px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .about-layout,
  .contact-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

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

  .git-sidebar {
    display: none;
  }

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

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

  .hero-git-panel {
    max-width: none;
    justify-self: stretch;
  }

  .hero-board {
    padding-left: 0;
  }

  .hero-git-lines p {
    white-space: normal;
    flex-wrap: wrap;
  }

}

@media (max-width: 760px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .header-shell,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .hero,
  .section {
    padding: 28px 0 36px;
  }

  .section {
    margin-top: 16px;
  }

  .section-shell {
    padding: 22px 0 18px;
    border-radius: 0;
  }

  .section-art-hero::after,
  .section-art-projects::after {
    width: 55%;
  }


  .hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .hero-panel,
  .about-card,
  .stack-card,
  .timeline-card,
  .contact-panel,
  .contact-card {
    padding: 22px;
  }

  .project-card {
    padding: 0;
  }

  .project-card-top {
    min-height: 200px;
    padding: 18px;
  }

  .project-card-body {
    padding: 24px 22px 22px;
  }

  .section-title h2,
  .contact-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .about-heading h2,
  .stack-heading {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

}
