:root {
  --red: #ff2a2a;
  --red-dark: #b51717;
  --black: #050505;
  --ink: #111111;
  --muted: #666666;
  --paper: #f4f4f4;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: var(--red);
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1), visibility 1.2s;
}

.preloader.is-hidden {
  transform: translateY(-100%);
  visibility: hidden;
}

.preloader__logo {
  position: relative;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.preloader__ghost {
  color: rgba(90, 0, 0, 0.35);
}

.preloader__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  animation: logo-fill 1.6s ease-in-out 0.2s both;
}

.preloader__fill span {
  color: #000;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.5rem 0;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar.is-scrolled,
.navbar.is-open {
  padding: 1rem 0;
}

.navbar.is-open {
  background: var(--red);
}

.navbar__inner {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__brand {
  font-size: 1.5rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.navbar__brand span {
  color: var(--red);
}

.navbar.light-mode .navbar__brand {
  color: #000;
}

.navbar.light-mode .navbar__links a {
  color: rgba(0, 0, 0, 0.8);
}

.navbar.light-mode .navbar__hire {
  color: #000;
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

.navbar.light-mode .navbar__toggle span {
  background: #000;
}

.navbar.is-open .navbar__brand span {
  color: #000;
}

.footer__explore {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__explore h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__hire {
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 750;
}

.navbar__hire--mobile,
.navbar__toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 7rem 0 8vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__copy {
  max-width: 42rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.28);
}

.hero p {
  max-width: 29rem;
  margin: 0 0 2rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.button:hover {
  transform: scale(1.04);
}

.button--primary {
  color: #000;
  background: #fff;
}

.button--ghost {
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.hero__reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.hero__reel-icon {
  width: clamp(4rem, 7vw, 5rem);
  height: clamp(4rem, 7vw, 5rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.hero__reel:hover .hero__reel-icon {
  transform: scale(1.1);
  background: var(--red);
  box-shadow: 0 0 40px rgba(255, 42, 42, 0.58);
}

.hero__reel-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.3rem;
  border-top: 0.7rem solid transparent;
  border-bottom: 0.7rem solid transparent;
  border-left: 1rem solid #fff;
}

.hero__reel.is-playing .hero__reel-icon::before {
  width: 1rem;
  height: 1.25rem;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65% 100%);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  width: 1.8rem;
  height: 1.8rem;
  transform: translateX(-50%);
  animation: bounce 1.4s infinite;
}

.hero__scroll span {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 4px solid #000;
  border-bottom: 4px solid #000;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6));
}

.about {
  position: relative;
  overflow: hidden;
  background: var(--red);
  padding: 7rem 1.5rem 12rem;
}

.about__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 6rem);
}

.about__badge {
  position: relative;
  width: min(100%, 22rem);
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.about__lanyard {
  position: absolute;
  top: -8rem;
  left: 50%;
  width: 0.75rem;
  height: 10rem;
  transform: translateX(-50%);
  background: #000;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.12);
}

.about__clip {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  z-index: 1;
  width: 1.5rem;
  height: 3rem;
  transform: translateX(-50%);
  border: 1px solid #9ca3af;
  border-radius: 0.25rem;
  background: #d1d5db;
}

.about__card {
  position: relative;
  z-index: 2;
  width: min(17.5rem, 100%);
  padding: 0.75rem;
  border-radius: 1.25rem;
  background: #111827;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.about__card:hover {
  transform: rotate(0deg);
}

.about__slot {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 4rem;
  height: 1.5rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 0.7rem 0.7rem 0 0;
  background: #111827;
}

.about__slot span {
  width: 2rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

.about__card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.9rem;
}

.about__copy {
  flex: 1;
  position: relative;
  z-index: 2;
}

.about h2 {
  margin: 0 0 1rem;
  color: #000;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 950;
}

.about p {
  max-width: 48rem;
  margin: 0 0 3rem;
  color: #fff0f0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 750;
  line-height: 1.7;
}

.about strong {
  color: #000;
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about__stack {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.about__stack img {
  width: clamp(5rem, 9vw, 6rem);
  height: clamp(5rem, 9vw, 6rem);
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.24));
  transition: transform 0.25s ease;
}

.about__stack img:hover {
  transform: scale(1.1);
}

.about__torn {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 4;
  width: 100%;
  height: clamp(3rem, 7vw, 5rem);
  fill: #fff;
}

.about__star {
  position: absolute;
  width: 4rem;
  height: 4rem;
  opacity: 0.3;
  background: #000;
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
  animation: pulse 2.4s ease-in-out infinite;
}

.about__star--one {
  top: 3rem;
  right: 8%;
}

.about__star--two {
  left: 8%;
  bottom: 8rem;
  width: 5rem;
  height: 5rem;
  animation-delay: 1s;
}

.services {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 8rem;
  background-color: #fff;
  background-image: linear-gradient(to right, rgba(128, 128, 128, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--ink);
}

.services__inner {
  position: relative;
  width: min(var(--max), 100%);
  min-height: 1350px;
  margin: 0 auto;
}

.services__header {
  position: absolute;
  top: 1rem;
  left: 0;
  z-index: 2;
  width: min(28rem, 100%);
}

.services__header span {
  display: inline-flex;
  margin-bottom: 2rem;
  padding: 0.45rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 800;
}

.services h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}


.services__header p {
  max-width: 24rem;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.65;
}

.services__path {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 1350px;
  pointer-events: none;
}

.services__path path {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.services__path-guide {
  stroke: #cbd5e1;
}

.services__path-active {
  stroke: #000;
  stroke-dashoffset: var(--path-offset, 1600);
}

.services__line {
  display: none;
}

.services__cards {
  position: relative;
  z-index: 1;
  min-height: 1350px;
}

.tag-card {
  position: absolute;
  width: min(20rem, 90vw);
  padding: 2.75rem 0.5rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.tag-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateX(-50%);
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 41, 55, 0.22) 0 28%, #f3f4f6 30%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tag-card > * {
  display: block;
  margin-inline: 1.5rem;
}

.tag-card span,
.tag-card h3,
.tag-card p {
  position: relative;
  z-index: 1;
}

.tag-card::after {
  content: "";
  position: absolute;
  inset: 2.8rem 0.5rem 0.5rem;
  border-radius: 1.5rem;
  background: #f4f4f4;
  transition: background-color 0.5s ease;
}

.tag-card span {
  margin-top: 1.8rem;
  color: #9ca3af;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 800;
}

.tag-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.tag-card p {
  margin-top: 0;
  min-height: 6rem;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.6;
}

.tag-card.is-active {
  border-color: #f87171;
  background: var(--red);
  box-shadow: 0 20px 50px rgba(255, 42, 42, 0.38);
}

.tag-card.is-active::after {
  background: rgba(185, 28, 28, 0.5);
}

.tag-card.is-active span {
  color: #fecaca;
}

.tag-card.is-active h3 {
  color: #fff;
}

.tag-card.is-active p {
  color: #fee2e2;
}

.tag-card--one {
  top: 0.5rem;
  right: 10%;
  transform: rotate(6deg);
}

.tag-card--two {
  top: 28rem;
  left: 10%;
  transform: rotate(-6deg);
}

.tag-card--three {
  top: 43.75rem;
  right: 15%;
  transform: rotate(3deg);
}

.tag-card--four {
  top: 65.5rem;
  left: 25%;
  transform: rotate(-3deg);
}

.tag-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.services__ready {
  position: absolute;
  top: 78rem;
  left: 60%;
  color: #4b5563;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.9rem;
  transform: rotate(6deg);
}

.section-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 8rem) 1.5rem;
}

.section-panel__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-panel--dark {
  background: #0a0a0a;
  color: #fff;
}

.section-panel--red {
  background: var(--red);
  color: #fff;
}

.section-panel--light {
  background-color: #fff;
  background-image: linear-gradient(to right, rgba(128, 128, 128, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--ink);
}

.section-heading {
  width: min(46rem, 100%);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 1.4rem;
  padding: 0.45rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-heading p {
  max-width: 34rem;
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.65;
}

.section-panel--dark .section-heading span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f4;
}

.section-panel--dark .section-heading p {
  color: #b8b8b8;
}

.section-heading--light span {
  border-color: rgba(0, 0, 0, 0.2);
  background: #000;
  color: #fff;
}

.section-heading--light h2 {
  color: #000;
}

.section-heading--light p {
  color: #fff0f0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1rem, 4vw, 3rem);
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(255, 255, 255, 0.12));
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-left: clamp(3rem, 7vw, 6rem);
}

.timeline-card__marker {
  position: absolute;
  top: 0.5rem;
  left: calc(clamp(1rem, 4vw, 3rem) - 0.6rem);
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid #0a0a0a;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(255, 42, 42, 0.14);
}

.timeline-card__meta {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.timeline-card__meta span {
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-card__meta strong {
  font-size: 1.1rem;
}

.timeline-card__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.timeline-card__body:hover {
  transform: translateY(-0.35rem);
  border-color: rgba(255, 42, 42, 0.5);
  background: rgba(255, 42, 42, 0.08);
}

.timeline-card__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-card h3,
.education-card h3,
.github-card h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1.3rem;
  color: #e5e5e5;
  font-weight: 650;
  line-height: 1.5;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
}

.education__grid,
.github-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.education-card {
  min-height: 100%;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 1.6rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-0.4rem) rotate(-0.5deg);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.2);
}

.education-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.education-card__top span,
.education-card__top strong {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.education-card__top span {
  color: var(--red);
}

.education-card__top strong {
  color: #6b7280;
  text-align: right;
}

.education-card p,
.github-card p {
  margin: 0;
  color: #6b7280;
  font-weight: 650;
  line-height: 1.65;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f4f4f4;
  color: #4b5563;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.pill-list--compact li {
  min-height: 1.8rem;
  padding: 0.38rem 0.7rem;
}

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

.github-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.github-card:hover {
  transform: translateY(-0.45rem);
  border-color: #f87171;
  box-shadow: 0 20px 50px rgba(255, 42, 42, 0.16);
}

.github-card__index {
  margin-bottom: 2rem;
  color: #9ca3af;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 800;
}

.github-card .pill-list {
  margin-bottom: 1.6rem;
}

.github-card__button {
  width: fit-content;
  margin-top: auto;
  background: #000;
  color: #fff;
}

.github-card__button:hover {
  background: var(--red);
  color: #fff;
}

.contact {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 8rem;
  background: #0a0a0a;
  border-top: 1px solid #111827;
}

.contact__word {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%) translateY(var(--contact-y, 0));
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(7rem, 25vw, 26rem);
  font-weight: 950;
  line-height: 0.75;
  text-transform: uppercase;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.contact__panel {
  position: relative;
  z-index: 2;
  width: min(85%, 1100px);
  margin-left: auto;
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--red);
}

.contact__eyebrow {
  display: block;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact__form {
  display: grid;
  gap: 3.5rem;
}

.contact__fields,
.contact__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact__column {
  display: grid;
  gap: 2.5rem;
}

.contact input:not([type="checkbox"]),
.contact textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 650;
}

.contact textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact select {
width: 100%;
border: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.42);
background: transparent;
color: #fff;
padding: 0 0 0.8rem;
font-size: 1.1rem;
font-weight: 650;
outline: none;
appearance: none;
cursor: pointer;
}

.contact select:focus {
border-bottom-color: #fff;
}

.contact select option {
background: #111;
color: #fff;
}

.contact__select {
min-height: 48px;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #fff;
  opacity: 1;
}

.contact input:focus,
.contact textarea:focus {
  border-bottom-color: #fff;
}

.contact__permission {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.contact__permission input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: #fff;
}

.contact__legal {
  display: grid;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.7;
}

.contact__legal a {
  text-decoration: underline;
}

.contact__legal > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.contact__legal p {
  margin: 0;
  max-width: 26rem;
}

.contact button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact button[type="submit"]:hover {
  background: #fff;
  color: var(--red);
}

.footer {
  min-height: 50vh;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  background: #111;
  color: #d4d4d4;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__row > *:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.footer__row > *:nth-child(3) {
  justify-self: end;
  text-align: right;
}

.footer p {
  margin: 0.25rem 0;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.footer h2 {
  margin: 0;
  color: #f4f4f4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(5rem, 16vw, 16rem);
  line-height: 0.8;
  text-align: center;
  letter-spacing: -0.06em;
}

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
}

.footer__cta p {
  max-width: 34rem;
  color: #f4f4f4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer .footer__button,
.footer__top {
  min-height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #f4f4f4;
  padding: 0.75rem 1.25rem;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer__button:hover,
.footer__top:hover {
  border-color: #f4f4f4;
  background: #f4f4f4;
  color: #111;
  transform: translateY(-2px);
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer__nav a {
  color: #d4d4d4;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  color: #d4d4d4;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.footer__socials a:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-2px);
}

.footer__socials svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.drop-reveal {
  opacity: 0;
}

.drop-reveal.is-visible {
  animation: drop-bounce 1.2s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

@keyframes logo-fill {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-0.8rem);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes drop-bounce {
  0% {
    opacity: 0;
    transform: translateY(-300px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  65% {
    transform: translateY(-40px);
  }
  80% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .navbar__links {
    gap: 0.95rem;
  }

  .navbar__inner > .navbar__hire {
    display: none;
  }

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

@media (max-width: 900px) {
  .navbar__links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    padding: 0 1.5rem;
    background: var(--red);
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  }

  .navbar__links.is-open {
    max-height: 30rem;
    padding: 1rem 1.5rem 1.5rem;
    opacity: 1;
  }

  .navbar__links a {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
  }

  .navbar__links a::after {
    display: none;
  }

  .navbar__hire {
    display: none;
  }

  .navbar__hire--mobile {
    display: block;
    border: 0;
    background: #fff;
    color: var(--red);
    text-align: center;
  }

  .navbar__toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .navbar__toggle span {
    width: 1.45rem;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .navbar__toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 5.5rem;
  }

  .hero__reel {
    flex-direction: row;
    align-self: flex-start;
  }

  .hero__reel-icon {
    width: 3rem;
    height: 3rem;
  }

  .hero__scroll {
    display: none;
  }

  .about {
    padding-top: 5rem;
  }

  .about__inner {
    flex-direction: column;
  }

  .about__badge {
    margin-inline: auto;
  }

  .services__inner,
  .services__cards {
    min-height: auto;
  }

  .services__header {
    position: relative;
    top: auto;
    margin-bottom: 4rem;
  }

  .services__path--desktop {
    display: none;
  }

  .services__line {
    position: absolute;
    top: 20rem;
    bottom: 6rem;
    left: 50%;
    display: block;
    width: 4px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom, #cbd5e1 0 4px, transparent 4px 10px);
  }

  .services__line span {
    display: block;
    width: 100%;
    height: var(--mobile-line-height, 0%);
    background: repeating-linear-gradient(to bottom, #000 0 4px, transparent 4px 10px);
  }

  .services__cards {
    display: grid;
    justify-items: center;
    gap: 2rem;
  }

  .tag-card,
  .tag-card--one,
  .tag-card--two,
  .tag-card--three,
  .tag-card--four {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: rotate(0deg);
  }

  .services__ready {
    display: none;
  }

  .section-panel {
    padding: 5rem 1.5rem;
  }

  .timeline::before {
    left: 0.6rem;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-left: 2.5rem;
  }

  .timeline-card__marker {
    left: 0;
  }

  .education__grid,
  .github-grid {
    grid-template-columns: 1fr;
  }

  .education-card__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .education-card__top strong {
    text-align: left;
  }

  .contact__panel {
    width: 100%;
  }

  .contact__fields,
  .contact__bottom {
    grid-template-columns: 1fr;
  }

  .contact__legal > div {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__actions {
    justify-content: flex-start;
  }

  .footer__nav {
    justify-content: flex-start;
  }

  .footer__socials {
    justify-content: flex-start;
  }

  .footer__row > *:nth-child(2),
  .footer__row > *:nth-child(3) {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .navbar__inner,
  .hero__content {
    width: min(100% - 2rem, var(--max));
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero__actions {
    width: 100%;
  }

  .button {
    flex: 1;
    min-width: 8.5rem;
    padding-inline: 1rem;
    font-size: 0.9rem;
  }

  .about__stack {
    justify-content: space-between;
  }

  .footer {
    gap: 3rem;
  }

  .footer__actions {
    width: 100%;
  }

  .footer .footer__button,
  .footer__top {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer__nav {
    gap: 0.9rem 1.2rem;
  }

  .footer__socials {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .footer__socials a {
    justify-content: center;
  }

  .section-heading h2 {
    font-size: 2.45rem;
  }

  .timeline-card__body,
  .education-card,
  .github-card {
    border-radius: 1.2rem;
  }

  .github-card {
    padding: 1.5rem;
  }

  .github-card__button {
    width: 100%;
  }

  .contact__word {
    top: 5rem;
    font-size: 24vw;
  }
}

.work-page {
  min-height: 100vh;
  background: #0a0a0a;
}

.work-page .navbar {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
}

.work-page .navbar.is-scrolled,
.work-page .navbar.is-open {
  background: var(--red);
}

.work-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 1.5rem 6rem;
  background: #0a0a0a;
  color: #fff;
  text-align: center;
}

.work-hero__content {
  width: min(820px, 100%);
}

.work-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.work-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #b8b8b8;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 650;
  line-height: 1.65;
}

.work-hero__badge {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 850;
}

.work-options {
  padding: 6rem 1.5rem;
  background: #111;
}

.work-options__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.work-options h2 {
  margin: 0 0 3rem;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.work-card {
  min-height: 13rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.75rem;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #181818;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.work-card span {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.work-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.work-card p {
  margin: 0;
  color: #b8b8b8;
  font-weight: 650;
  line-height: 1.55;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--red);
  transform: translateY(-0.45rem);
  box-shadow: 0 22px 55px rgba(255, 42, 42, 0.16);
  outline: 0;
}

.work-card.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 24px 58px rgba(255, 42, 42, 0.28);
  transform: translateY(-0.35rem);
}

.work-card.active span {
  border-color: rgba(255, 255, 255, 0.35);
  background: #000;
  color: #fff;
}

.work-card.active p {
  color: #fff0f0;
}

.dynamic-form {
  min-height: 42vh;
  padding: 6rem 1.5rem;
  background: #0a0a0a;
  scroll-margin-top: 6rem;
}

#form-container {
  width: min(760px, 100%);
  margin: 0 auto;
}

.placeholder-message,
.work-form {
  border: 1px solid #242424;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.placeholder-message {
  padding: 2rem;
  color: #b8b8b8;
  font-weight: 750;
  text-align: center;
}

.work-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  animation: work-form-in 0.32s ease both;
}

.work-form h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.work-field {
  display: grid;
  gap: 0.5rem;
}

.work-field span {
  color: #f4f4f4;
  font-size: 0.88rem;
  font-weight: 800;
}

.work-form input,
.work-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 8px;
  outline: 0;
  background: #0a0a0a;
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.work-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.work-form input::placeholder,
.work-form textarea::placeholder {
  color: #777;
}

.work-form input:focus,
.work-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 42, 42, 0.16);
}

.work-form input.is-invalid,
.work-form textarea.is-invalid {
  border-color: #ff6b6b;
  background: rgba(255, 42, 42, 0.08);
}

.work-error {
  min-height: 1.1rem;
  color: #ff9a9a;
  font-size: 0.82rem;
  font-weight: 700;
}

.work-success {
  display: none;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 42, 42, 0.14);
  color: #fff;
  font-weight: 800;
}

.work-success.is-visible {
  display: block;
}

.work-form button {
  min-height: 3.1rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.work-form button:hover,
.work-form button:focus-visible {
  background: #fff;
  color: var(--red);
  transform: translateY(-2px);
  outline: 0;
}

@keyframes work-form-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .work-hero {
    padding-top: 8rem;
  }

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

  .work-card {
    min-height: 11rem;
  }
}
