:root {
  --bg: #f3f0e8;
  --surface: #fffaf0;
  --surface-strong: #111318;
  --ink: #171a21;
  --muted: #5f6673;
  --line: #d9d2c3;
  --cyan: #13a8a8;
  --pink: #d94872;
  --yellow: #d79a1e;
  --green: #2f9a5f;
  --orange: #e66f2f;
  --violet: #7659d8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 70px rgba(23, 26, 33, 0.13);
  --shadow-strong: 0 32px 90px rgba(23, 26, 33, 0.18);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-drop {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 38px 38px, 38px 38px, 160px 0, 0 0;
  }
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes scan-line {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes stack-pop {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(var(--layer-tilt));
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--layer-tilt));
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0.25;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(17, 19, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.04) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 64%, rgba(19, 168, 168, 0.1) 64% 65%, transparent 65%),
    var(--bg);
  background-size: 38px 38px, 38px 38px, 160px 160px, auto;
  letter-spacing: 0;
  animation: grid-drift 22s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(217, 72, 114, 0.08), transparent 30% 70%, rgba(215, 154, 30, 0.08)),
    linear-gradient(180deg, rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0));
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--surface-strong);
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(243, 240, 232, 0.86);
  border-bottom: 1px solid rgba(23, 26, 33, 0.1);
  box-shadow: 0 10px 30px rgba(23, 26, 33, 0.07);
  backdrop-filter: blur(18px);
  animation: header-drop 0.7s var(--ease-out) both;
}

.brand,
.site-nav,
.hero-actions,
.contact-links,
.language-map {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  box-shadow: 7px 7px 0 var(--cyan);
  transform: rotate(-2deg);
}

.site-nav {
  gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(88svh - 72px);
  padding: clamp(52px, 8vw, 108px) clamp(20px, 5vw, 72px) 48px;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy > * {
  animation: reveal-up 0.8s var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 320ms;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 5px 5px 0 rgba(19, 168, 168, 0.24);
}

.hero-lede {
  max-width: 760px;
  margin-bottom: 30px;
  color: #353a44;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  color: #fff;
  background: var(--surface-strong);
  box-shadow: 5px 5px 0 var(--cyan);
}

.button.ghost {
  background: rgba(255, 250, 240, 0.76);
}

.button:hover,
.button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 rgba(23, 26, 33, 0.16);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 250, 240, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.metric-strip div {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.metric-strip div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.metric-strip dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-strip dd {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

.profile-panel {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: reveal-up 0.8s var(--ease-out) 260ms both, panel-float 6s ease-in-out 1.2s infinite;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 40%, rgba(255, 255, 255, 0.45) 48%, transparent 56% 100%);
  transform: translateX(-120%);
  animation: scan-line 5.2s ease-in-out 1.3s infinite;
}

.profile-panel > * {
  position: relative;
  z-index: 1;
}

.profile-pair {
  display: grid;
  gap: 14px;
}

.identity {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.identity img {
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.identity-label {
  margin-bottom: 4px;
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.identity h2 {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.identity p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.personal-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.personal-facts div {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 250, 240, 0.72);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 26, 33, 0.1);
}

.personal-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-facts dd {
  margin: 0;
  font-size: clamp(0.9rem, 1.8vw, 1.08rem);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.terminal {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  color: #dbe8e4;
  background: var(--surface-strong);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.terminal::after {
  content: "_";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--yellow);
  font-weight: 900;
  animation: caret-blink 1s steps(1) infinite;
}

.terminal p {
  margin-bottom: 8px;
}

.terminal p:last-child {
  margin-bottom: 0;
}

.terminal span {
  color: var(--yellow);
}

.section {
  padding: clamp(60px, 9vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(28px, 5vw, 48px);
  animation: reveal-up 0.75s var(--ease-out) both;
}

.section-heading h2,
.contact-band h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 276px;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(23, 26, 33, 0.13);
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms ease;
  animation: reveal-up 0.72s var(--ease-out) both;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 6px 0 0 6px;
  background: var(--accent, var(--cyan));
  transition: width 220ms var(--ease-out);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.6) 48%, transparent 54% 100%);
  opacity: 0;
  transform: translateX(-110%);
}

.project-card:hover,
.project-card:focus-within {
  background: #fffdf7;
  box-shadow: 12px 12px 0 rgba(23, 26, 33, 0.16);
  transform: translate(-5px, -7px);
}

.project-card:hover::before,
.project-card:focus-within::before {
  width: 14px;
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
  transform: translateX(110%);
  transition: transform 650ms var(--ease-out), opacity 180ms ease;
}

.project-card:nth-child(2),
.capability:nth-child(2),
.timeline li:nth-child(2) {
  animation-delay: 70ms;
}

.project-card:nth-child(3),
.capability:nth-child(3),
.timeline li:nth-child(3) {
  animation-delay: 140ms;
}

.project-card:nth-child(4),
.capability:nth-child(4),
.timeline li:nth-child(4) {
  animation-delay: 210ms;
}

.project-card:nth-child(5),
.timeline li:nth-child(5) {
  animation-delay: 280ms;
}

.project-card:nth-child(6),
.timeline li:nth-child(6) {
  animation-delay: 350ms;
}

.project-card:nth-child(7),
.timeline li:nth-child(7) {
  animation-delay: 420ms;
}

.project-card:nth-child(8),
.timeline li:nth-child(8) {
  animation-delay: 490ms;
}

.timeline li:nth-child(9) {
  animation-delay: 560ms;
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-pink {
  --accent: var(--pink);
}

.accent-yellow {
  --accent: var(--yellow);
}

.accent-green {
  --accent: var(--green);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  padding-left: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.project-card p {
  color: #444a55;
  line-height: 1.65;
}

.project-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink);
  font-weight: 900;
  border-bottom: 2px solid var(--accent, var(--cyan));
}

.muted {
  background: rgba(255, 250, 240, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fullstack-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  margin-bottom: clamp(42px, 6vw, 66px);
  padding: clamp(24px, 5vw, 46px);
  color: #fff;
  background: var(--surface-strong);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: reveal-up 0.8s var(--ease-out) both;
}

.fullstack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 168, 168, 0.26), transparent 28%),
    linear-gradient(315deg, rgba(217, 72, 114, 0.22), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.fullstack-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-120%);
  animation: scan-line 6.5s ease-in-out 1.5s infinite;
}

.fullstack-card > * {
  position: relative;
  z-index: 1;
}

.fullstack-copy {
  max-width: 560px;
}

.fullstack-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.fullstack-copy p:last-child {
  margin-bottom: 0;
  color: #d7ddd8;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.stack-deck {
  position: relative;
  min-height: 430px;
}

.stack-layer {
  position: absolute;
  top: var(--layer-top);
  left: var(--layer-left);
  z-index: var(--layer-z);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(560px, calc(100% - 90px));
  min-height: 86px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--layer-color);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.2);
  transform: translateX(0) rotate(var(--layer-tilt));
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
  animation: stack-pop 0.65s var(--ease-out) backwards;
  cursor: default;
  outline: 0;
}

.stack-layer:hover,
.stack-layer:focus-visible {
  z-index: 30;
  box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.24);
  transform: translateX(var(--desktop-shift)) rotate(var(--layer-tilt));
}

.stack-layer:focus-visible {
  border-color: var(--surface-strong);
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.stack-layer span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--surface-strong);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.stack-layer strong {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stack-layer small {
  justify-self: end;
  color: rgba(23, 26, 33, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.stack-tools {
  display: flex;
  grid-column: 2 / 4;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 0;
  margin-top: -10px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height 260ms var(--ease-out),
    margin-top 260ms var(--ease-out),
    opacity 180ms ease,
    transform 260ms var(--ease-out);
}

.stack-tools b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 19, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.stack-layer:hover .stack-tools,
.stack-layer:focus-visible .stack-tools {
  max-height: 92px;
  margin-top: 0;
  opacity: 1;
  transform: translateY(0);
}

.layer-ai {
  --layer-top: 0;
  --layer-left: 0;
  --layer-z: 6;
  --mobile-nudge: 0;
  --desktop-shift: -6px;
  --layer-tilt: -2deg;
  --layer-color: #7dd3fc;
  animation-delay: 100ms;
}

.layer-db {
  --layer-top: 48px;
  --layer-left: 18px;
  --layer-z: 5;
  --mobile-nudge: -2px;
  --desktop-shift: 8px;
  --layer-tilt: 1.5deg;
  --layer-color: #f9c74f;
  animation-delay: 180ms;
}

.layer-security {
  --layer-top: 96px;
  --layer-left: 36px;
  --layer-z: 4;
  --mobile-nudge: -4px;
  --desktop-shift: -4px;
  --layer-tilt: -1deg;
  --layer-color: #f472b6;
  animation-delay: 260ms;
}

.layer-backend {
  --layer-top: 144px;
  --layer-left: 54px;
  --layer-z: 3;
  --mobile-nudge: -6px;
  --desktop-shift: 10px;
  --layer-tilt: 1deg;
  --layer-color: #8bdc9f;
  animation-delay: 340ms;
}

.layer-frontend {
  --layer-top: 192px;
  --layer-left: 72px;
  --layer-z: 2;
  --mobile-nudge: -8px;
  --desktop-shift: -8px;
  --layer-tilt: -1.2deg;
  --layer-color: #f7a76c;
  animation-delay: 420ms;
}

.layer-embedded {
  --layer-top: 240px;
  --layer-left: 90px;
  --layer-z: 1;
  --mobile-nudge: -10px;
  --desktop-shift: 6px;
  --layer-tilt: 1.4deg;
  --layer-color: #c4b5fd;
  animation-delay: 500ms;
}

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

.capability {
  padding: 24px 0 0;
  border-top: 3px solid var(--ink);
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
  animation: reveal-up 0.72s var(--ease-out) both;
}

.capability:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
}

.capability-index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 900;
}

.capability h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.language-map {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.language-map span {
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(23, 26, 33, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.language-map span:hover {
  background: #fff;
  box-shadow: 6px 6px 0 rgba(19, 168, 168, 0.22);
  transform: translate(-2px, -3px);
}

.timeline-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(23, 26, 33, 0.09);
  overflow: hidden;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  animation: reveal-up 0.72s var(--ease-out) both;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 138px;
  z-index: 0;
  width: 12px;
  height: 12px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.timeline li::after {
  content: "";
  position: absolute;
  top: -24px;
  bottom: -24px;
  left: 138px;
  z-index: 0;
  width: 2px;
  background: rgba(23, 26, 33, 0.14);
}

.timeline li > * {
  position: relative;
  z-index: 1;
}

.timeline li:hover {
  box-shadow: 10px 10px 0 rgba(23, 26, 33, 0.12);
  transform: translate(-3px, -4px);
}

.timeline time {
  color: var(--green);
  font-weight: 900;
}

.timeline-type {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  color: #fff;
  background: var(--surface-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-type.education {
  background: var(--green);
}

.timeline-type.github {
  background: var(--violet);
}

.timeline p {
  margin-bottom: 0;
  color: #414752;
  line-height: 1.65;
}

.contact-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 0 clamp(20px, 5vw, 72px) clamp(48px, 7vw, 72px);
  padding: clamp(28px, 6vw, 56px);
  color: #fff;
  background: var(--surface-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  animation: reveal-up 0.78s var(--ease-out) both;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 168, 168, 0.25), transparent 36%),
    linear-gradient(315deg, rgba(215, 154, 30, 0.24), transparent 34%);
  pointer-events: none;
}

.contact-band > * {
  position: relative;
  z-index: 1;
}

.contact-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-links a {
  color: #fff;
  font-weight: 900;
  border-bottom: 2px solid var(--yellow);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: #f9c74f;
  border-color: var(--cyan);
  transform: translateX(4px);
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 72px) 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .hero,
  .timeline-section,
  .fullstack-card {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-panel {
    max-width: 760px;
  }

  .stack-deck {
    max-width: 700px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5.6rem);
  }

  .metric-strip,
  .project-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .fullstack-card {
    padding: 24px;
  }

  .stack-deck {
    display: grid;
    gap: 0;
    min-height: auto;
  }

  .stack-layer {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 84px;
    margin-bottom: -8px;
    transform: translateY(var(--mobile-nudge)) rotate(var(--layer-tilt));
  }

  .stack-layer small {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }

  .stack-tools {
    grid-column: 2;
  }

  .metric-strip div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .identity {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .identity img {
    width: 62px;
    height: 62px;
  }

  .personal-facts {
    grid-template-columns: 1fr;
  }

  .timeline li,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .timeline li::before,
  .timeline li::after {
    display: none;
  }

  .contact-band {
    margin-right: 20px;
    margin-left: 20px;
  }
}

@media (max-width: 430px) {
  .brand {
    align-items: flex-start;
  }

  .brand span:last-child {
    max-width: 210px;
    line-height: 1.18;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-card {
    min-height: 250px;
  }
}

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