:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b14;
  --surface: #0b1828;
  --surface-strong: #102238;
  --surface-soft: rgba(15, 34, 55, 0.72);
  --line: rgba(166, 202, 235, 0.15);
  --line-strong: rgba(78, 161, 255, 0.35);
  --text: #f4f8fc;
  --text-soft: #c7d4e2;
  --muted: #94a9bd;
  --blue: #4ea1ff;
  --blue-bright: #74b7ff;
  --cyan: #5eead4;
  --green: #79e6b5;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 76px;
  --shell: 1180px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(36, 112, 202, 0.13), transparent 32rem),
    radial-gradient(circle at 8% 52%, rgba(22, 189, 181, 0.06), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(78, 161, 255, 0.34);
  color: #fff;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg-deep);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.ambient--one {
  top: 9vh;
  right: -12rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(35, 114, 219, 0.12), transparent 68%);
}

.ambient--two {
  top: 110vh;
  left: -18rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(48, 210, 189, 0.07), transparent 68%);
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(4, 11, 20, 0.84);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(78, 161, 255, 0.22), rgba(78, 161, 255, 0.06));
  color: var(--blue-bright);
  box-shadow: inset 0 0 18px rgba(78, 161, 255, 0.1);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 620;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(78, 161, 255, 0.08);
  color: var(--text);
}

.nav-links .nav-links__contact {
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(78, 161, 255, 0.1);
  color: var(--blue-bright);
}

.nav-links .nav-links__contact:hover,
.nav-links .nav-links__contact.is-active {
  border-color: rgba(78, 161, 255, 0.62);
  background: rgba(78, 161, 255, 0.17);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  padding-top: calc(var(--header-height) + 66px);
  padding-bottom: 84px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 25px;
  height: 1px;
  background: currentColor;
  box-shadow: 7px 0 14px currentColor;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(3.25rem, 7.1vw, 6.45rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(98deg, var(--blue-bright), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.button--primary {
  background: var(--blue);
  color: #02101d;
  box-shadow: 0 13px 30px rgba(43, 134, 237, 0.24);
}

.button--primary:hover {
  background: #70b5ff;
  box-shadow: 0 16px 34px rgba(43, 134, 237, 0.34);
  transform: translateY(-2px);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button--secondary:hover {
  border-color: rgba(142, 185, 225, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  list-style: none;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(121, 230, 181, 0.1), 0 0 12px rgba(121, 230, 181, 0.45);
}

.hero__facts li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 13px;
  border-radius: 50%;
  background: rgba(199, 212, 226, 0.38);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  perspective: 1200px;
}

.terminal-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(129, 183, 234, 0.21);
  border-radius: 20px;
  background: rgba(7, 18, 31, 0.88);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotateY(-5deg) rotateX(2deg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 28% 68%, rgba(78, 161, 255, 0.035));
}

.terminal-card__bar {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.terminal-card__bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b6b;
}

.terminal-card__bar > span:nth-child(2) {
  background: #f8c65c;
}

.terminal-card__bar > span:nth-child(3) {
  background: #57d58d;
}

.terminal-card__bar p {
  margin: 0 0 0 auto;
  color: #7f95aa;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
}

.terminal-card__body {
  min-height: 360px;
  padding: 34px 29px 28px;
  overflow: hidden;
  color: #d4deea;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.72rem, 1.24vw, 0.92rem);
  line-height: 1.84;
}

.terminal-card__body p {
  margin-bottom: 1px;
  white-space: nowrap;
}

.code-muted {
  display: inline-block;
  width: 2.2em;
  color: #40566b;
  user-select: none;
}

.code-blue {
  color: #70b5ff;
}

.code-green {
  color: #78dfba;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.08em;
  margin-left: 5px;
  vertical-align: -0.18em;
  background: var(--blue-bright);
  animation: cursor-blink 1.1s steps(1, end) infinite;
}

.terminal-card__footer {
  display: flex;
  gap: 7px;
  padding: 15px 18px 17px;
  border-top: 1px solid var(--line);
}

.terminal-card__footer span {
  padding: 4px 8px;
  border: 1px solid rgba(126, 170, 211, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #8499ae;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(78, 161, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit--one {
  inset: -58px -60px -48px -40px;
  transform: rotate(-12deg);
}

.orbit--two {
  inset: -95px -10px -80px -100px;
  border-color: rgba(94, 234, 212, 0.08);
  transform: rotate(24deg);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #758da3;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 42px;
  height: 1px;
  background: rgba(129, 166, 199, 0.28);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: scroll-dot 2s ease-in-out infinite;
}

.section {
  position: relative;
  padding-block: clamp(90px, 11vw, 150px);
}

.section--tinted {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(8, 20, 34, 0.88), rgba(8, 20, 34, 0.88)),
    radial-gradient(circle at 85% 20%, rgba(78, 161, 255, 0.13), transparent 38rem);
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(42px, 6vw, 70px);
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  font-weight: 740;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.section-heading--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading--row > p {
  max-width: 360px;
  margin-bottom: 4px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.85fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}

.about-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy .lead {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 620;
  letter-spacing: -0.027em;
  line-height: 1.42;
}

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

.principles {
  border-top: 1px solid var(--line);
}

.principles article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.principles article > span {
  color: var(--blue-bright);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
}

.principles h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.principles p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-card {
  position: relative;
  min-height: 430px;
  padding: 30px 26px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  transition: background var(--transition), transform var(--transition);
}

.skill-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(78, 161, 255, 0.09);
  border-radius: 50%;
  transition: transform 500ms ease, border-color 500ms ease;
}

.skill-card:hover {
  z-index: 1;
  background: rgba(78, 161, 255, 0.055);
}

.skill-card:hover::after {
  border-color: rgba(78, 161, 255, 0.23);
  transform: scale(1.18);
}

.skill-card__number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #5d748a;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.69rem;
}

.skill-card__icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  margin: 42px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(78, 161, 255, 0.08);
  color: var(--blue-bright);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 800;
}

.skill-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.skill-card > p {
  min-height: 92px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-card ul {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  position: relative;
  padding: 7px 0 7px 16px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 620;
}

.skill-card li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.timeline {
  position: relative;
  max-width: 980px;
  margin-left: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 198px;
  width: 1px;
  background: linear-gradient(var(--blue), rgba(78, 161, 255, 0.08));
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 60px;
  padding-bottom: 62px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  top: 8px;
  left: 193px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(78, 161, 255, 0.16), 0 0 18px rgba(78, 161, 255, 0.3);
}

.timeline__meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-bright);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline__meta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline__content {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.timeline__content h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.timeline__content p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.timeline__item--muted .timeline__marker {
  background: #647b91;
  box-shadow: 0 0 0 4px rgba(112, 136, 159, 0.13);
}

.timeline__item--muted .timeline__meta span {
  color: #a5b6c7;
}

.section--projects {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}

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

.project-card {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(16, 34, 56, 0.7), rgba(8, 20, 34, 0.64));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(78, 161, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(78, 161, 255, 0.035);
  transition: transform 420ms ease, border-color 420ms ease;
}

.project-card:hover {
  border-color: rgba(78, 161, 255, 0.31);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.17);
  transform: translateY(-4px);
}

.project-card:focus-within {
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.17);
}

.project-card:hover::before {
  border-color: rgba(78, 161, 255, 0.22);
  transform: scale(1.12);
}

.project-card--featured {
  min-height: 430px;
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 86% 30%, rgba(78, 161, 255, 0.13), transparent 31rem),
    linear-gradient(145deg, rgba(16, 39, 66, 0.83), rgba(8, 20, 34, 0.72));
}

.project-card--featured .project-card__body {
  max-width: 760px;
}

.project-card--featured .project-card__body h3 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.project-card__top,
.project-card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.project-card__index {
  color: #7f96ab;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9eb0c2;
  font-size: 0.7rem;
  font-weight: 650;
}

.project-card__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(121, 230, 181, 0.4);
}

.project-card__status--active {
  color: var(--blue-bright);
}

.project-card__status--active i {
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(78, 161, 255, 0.55);
}

.project-card__body {
  position: relative;
  z-index: 1;
  margin-block: auto;
  padding: 50px 0 36px;
}

.project-card__kicker {
  margin-bottom: 10px;
  color: var(--blue-bright);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-card__body h3 {
  margin-bottom: 15px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.project-card__body > p:last-child {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted);
}

.project-card__bottom {
  align-items: end;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 8px;
  border: 1px solid rgba(134, 176, 215, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #9aafc2;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.63rem;
}

.project-link {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--blue-bright);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color var(--transition), transform var(--transition);
}

.project-link:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.github-callout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 18px;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
}

.github-callout h3 {
  margin-bottom: 9px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.github-callout p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.github-callout .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.contact {
  padding-block: clamp(80px, 12vw, 155px);
}

.contact__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.75fr);
  gap: clamp(48px, 9vw, 120px);
  padding: clamp(38px, 7vw, 78px);
  overflow: hidden;
  border: 1px solid rgba(78, 161, 255, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 87% 12%, rgba(78, 161, 255, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(15, 37, 62, 0.92), rgba(7, 20, 35, 0.92));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.22);
}

.contact__panel::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(94, 234, 212, 0.11);
  border-radius: 50%;
}

.contact__copy,
.contact__details {
  position: relative;
  z-index: 1;
}

.contact__copy > p:last-child {
  max-width: 600px;
  margin: 25px 0 0;
  color: var(--text-soft);
}

.contact__details {
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(144, 188, 229, 0.18);
  border-radius: var(--radius-md);
  background: rgba(4, 13, 23, 0.48);
}

.contact__label {
  margin-bottom: 8px;
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact__email {
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact__email a,
.site-footer p a {
  text-decoration: underline;
  text-decoration-color: rgba(116, 183, 255, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.contact__email a:hover,
.site-footer p a:hover {
  color: var(--cyan);
  text-decoration-color: currentColor;
}

.contact__note {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #a3b3c2;
  font-size: 0.77rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 11, 20, 0.66);
}

.site-footer__inner {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.site-footer p {
  margin-bottom: 0;
  color: #7f94a8;
  font-size: 0.76rem;
  line-height: 1.8;
  text-align: center;
}

.back-to-top {
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #aab9c8;
  font-size: 0.8rem;
  font-weight: 700;
  transition: color var(--transition);
}

.back-to-top:hover {
  color: var(--blue-bright);
}

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

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

@keyframes cursor-blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@keyframes scroll-dot {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(36px); opacity: 1; }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 7.2vw, 5.3rem);
  }

  .terminal-card__body {
    min-height: 325px;
    padding-inline: 22px;
  }

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

  .skill-card {
    min-height: 390px;
  }
}

@media (max-width: 840px) {
  :root {
    --header-height: 70px;
  }

  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .brand__text {
    font-size: 0.93rem;
  }

  .js .nav-toggle {
    display: block;
  }

  html:not(.js) .site-header {
    position: absolute;
    height: auto;
  }

  html:not(.js) .nav {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  html:not(.js) .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  html:not(.js) .hero {
    padding-top: calc(var(--header-height) + 150px);
  }

  .js .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6, 16, 28, 0.97);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-height) - 18px);
    max-height: calc(100dvh - var(--header-height) - 18px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .js .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  .nav-links .nav-links__contact {
    margin: 4px 0 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 120px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    max-width: 610px;
    justify-self: center;
  }

  .terminal-card {
    transform: none;
  }

  .scroll-cue {
    left: 18px;
  }

  .about-grid,
  .contact__panel {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 50px;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading--row > p {
    margin-top: 22px;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 0 52px 44px;
  }

  .timeline__marker {
    left: 3px;
  }

  .timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .timeline__meta p {
    font-size: 0.76rem;
  }

  .contact__panel {
    gap: 42px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 24px;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .hero {
    gap: 58px;
    padding-top: calc(var(--header-height) + 75px);
    padding-bottom: 104px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__facts {
    display: grid;
  }

  .hero__facts li + li::before {
    display: none;
  }

  .terminal-card__bar p {
    display: none;
  }

  .terminal-card__body {
    min-height: 295px;
    padding: 25px 16px 22px;
    font-size: clamp(0.59rem, 3.2vw, 0.77rem);
  }

  .terminal-card__footer {
    flex-wrap: wrap;
  }

  .orbit--one {
    inset: -34px -24px -30px;
  }

  .orbit--two {
    display: none;
  }

  .section {
    padding-block: 86px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: auto;
    padding: 28px 24px 32px;
  }

  .skill-card__icon {
    margin: 30px 0 30px;
  }

  .skill-card > p {
    min-height: auto;
  }

  .project-card--featured {
    grid-column: auto;
  }

  .project-card {
    min-height: 430px;
    padding: 24px;
  }

  .project-card__top,
  .project-card__bottom {
    align-items: flex-start;
  }

  .project-card__top {
    flex-direction: column;
  }

  .project-card__bottom {
    flex-direction: column;
  }

  .project-card__body {
    padding-block: 38px 28px;
  }

  .project-link {
    margin-top: 8px;
  }

  .github-callout {
    display: block;
    padding: 28px 24px;
  }

  .github-callout .button {
    margin-top: 25px;
  }

  .contact__panel {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .contact__details {
    padding: 21px;
  }

  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer p {
    flex-basis: 100%;
    order: 3;
  }
}

@media (max-width: 360px) {
  .brand__text {
    display: none;
  }

  .project-card__status {
    align-items: flex-start;
  }
}

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

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

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

@media (forced-colors: active) {
  .hero h1 span {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
