:root {
  --bg: #0b1020;
  --bg-soft: #131b33;
  --panel: rgba(13, 20, 38, 0.8);
  --panel-strong: rgba(15, 24, 46, 0.95);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3efe7;
  --muted: #bfc7d9;
  --accent: #ff6b2c;
  --accent-soft: #ffd166;
  --teal: #72f1d4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 44, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(114, 241, 212, 0.18), transparent 25%),
    linear-gradient(145deg, #070b16 0%, #111a32 58%, #0b1020 100%);
  color: var(--text);
  max-width: 100%;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  background: rgba(7, 11, 22, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.topbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(6, 10, 19, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.navbar-toggler {
  color: var(--text);
}

.navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

.brand-mark,
.hero-title,
.section-heading h2,
.project-card h3,
.stack-card h3,
.timeline-step h3,
.contact-card h2,
.build-card h2 {
  font-family: "Syne", sans-serif;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 107, 44, 0.08));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: #fff8ee;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.brand-mark:hover,
.brand-mark:focus {
  border-color: rgba(255, 209, 102, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 107, 44, 0.16));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px) scale(1.02);
}

.nav-link {
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.hero-section {
  padding: 6rem 0 4rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 4rem auto auto 52%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.14), transparent 66%);
  filter: blur(6px);
  animation: pulse-glow 8s ease-in-out infinite;
  pointer-events: none;
}

.eyebrow-pill,
.section-kicker,
.project-badge,
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
}

.eyebrow-pill {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.08);
  box-shadow: 0 0 0 rgba(255, 209, 102, 0);
}

.hero-title {
  font-size: clamp(2.9rem, 6vw, 5.45rem);
  line-height: 0.9;
  max-width: 11.5ch;
}

.hero-title span {
  color: transparent;
  display: block;
  background: linear-gradient(90deg, var(--accent), #ffb066 46%, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-shift 7s linear infinite;
}

.hero-copy,
.section-heading p,
.project-card p,
.stack-card p,
.timeline-step p,
.contact-card p,
.build-card p,
.metric-card span,
.stack-mini-list li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  align-items: center;
}

.btn-impact,
.btn-outline-impact {
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.btn-impact {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #ff8f5a);
  color: #08101f;
  box-shadow: 0 12px 35px rgba(255, 107, 44, 0.28);
}

.btn-impact:hover,
.btn-impact:focus {
  color: #08101f;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(255, 107, 44, 0.34);
}

.btn-outline-impact {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-impact:hover,
.btn-outline-impact:focus {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-3px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.project-card,
.stack-card,
.timeline-step,
.sticky-card,
.contact-card,
.hero-panel,
.build-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.metric-card {
  padding: 1.25rem;
}

.metric-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.metric-card:hover,
.project-card:hover,
.stack-card:hover,
.timeline-step:hover,
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 510px;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 209, 102, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(8, 14, 26, 0.82);
  transform-style: preserve-3d;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-panel:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.panel-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.orbit-one {
  inset: 8% auto auto 12%;
  width: 290px;
  height: 290px;
  animation: spin 22s linear infinite;
}

.orbit-two {
  inset: auto 15% 15% auto;
  width: 180px;
  height: 180px;
  animation: spin 14s linear infinite reverse;
}

.build-card {
  position: relative;
  padding: 1.6rem;
  z-index: 2;
  width: min(100%, 320px);
  max-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(19, 28, 58, 0.98), rgba(11, 18, 38, 0.96));
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.build-card::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.18), transparent 68%);
  filter: blur(12px);
  opacity: 0.65;
}

.build-card h2,
.build-card p,
.build-card li {
  position: relative;
  z-index: 1;
}

.build-primary {
  margin-top: 1rem;
  z-index: 4;
  animation: float-card 7.5s ease-in-out infinite;
}

.build-secondary {
  align-self: flex-start;
  margin-bottom: 1rem;
  max-width: 280px;
  z-index: 3;
  animation: float-card 8.5s ease-in-out infinite reverse;
}

.build-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.marquee-strip {
  overflow: clip;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  min-width: max-content;
  animation: slide 28s linear infinite;
}

.marquee-track span {
  color: rgba(243, 239, 231, 0.88);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.section-space {
  padding: 6rem 0;
}

.section-heading {
  max-width: 760px;
  min-width: 0;
}

.section-heading h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.08;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.project-card,
.stack-card,
.timeline-step {
  padding: 1.8rem;
  height: 100%;
}

.featured-project {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 44, 0.22), transparent 35%),
    rgba(14, 22, 40, 0.9);
}

.project-showcase {
  overflow: visible;
  padding: 0;
}

.project-showcase-stack {
  overflow: visible;
  padding: 0;
}

.project-showcase-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 1rem;
  overflow: visible;
}

.project-showcase-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 22, 0.06) 100%);
  pointer-events: none;
}

.project-showcase-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-showcase-content {
  padding: 1.6rem 1.6rem 1.8rem;
}

.project-showcase-intro {
  padding-bottom: 1.6rem;
}

.project-shot-stack {
  position: relative;
  min-height: 350px;
  /* right: -25%; */
  margin: -0.35rem -1.3rem -0.35rem 0;
  padding: 0.8rem 1.3rem 1rem 0;
  overflow: visible;
}

.project-shot-card {
  position: absolute;
  width: min(100%, 360px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(11, 18, 38, 0.92);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  transform-origin: center center;
  cursor: zoom-in;
}

.project-shot-card:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.85);
  outline-offset: 6px;
}

.project-shot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 22, 0.05) 100%);
  pointer-events: none;
}

.project-shot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.project-shot-card figcaption {
  padding: 0.95rem 1rem 1.05rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.project-shot-card-primary {
  top: -0.8rem;
  left: -0.8rem;
  z-index: 2;
  animation: showcase-stack-primary 8.5s ease-in-out infinite;
}

.project-shot-card-secondary {
  top: 3.4rem;
  left: 4rem;
  z-index: 1;
  animation: showcase-stack-secondary 8.5s ease-in-out infinite;
}

.project-showcase-stack:hover .project-shot-card {
  animation-play-state: paused;
}

body.project-lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(18px);
}

.project-lightbox[hidden] {
  display: none;
}

.project-lightbox-dialog {
  margin: 0;
  width: min(100%, 1100px);
}

.project-lightbox-image {
  width: 100%;
  max-height: 82vh;
  display: block;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  background: rgba(11, 18, 38, 0.94);
}

.project-lightbox-caption {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.project-lightbox-close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 18, 38, 0.86);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.project-showcase-stack-four .project-showcase-intro {
  padding-bottom: 1.6rem;
}

.project-showcase-stack-four .project-showcase-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 1.2rem;
}

.project-showcase-stack-four .project-shot-stack {
  min-height: 360px;
  margin: -0.25rem -1.4rem -0.25rem 0;
  padding: 0.6rem 1.4rem 0.9rem 0;
}

.project-showcase-stack-four .project-shot-card {
  width: min(100%, 320px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  animation: showcase-stack-cycle-four 14s ease-in-out infinite;
}

.project-showcase-stack-four .project-shot-card-primary {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.project-showcase-stack-four .project-shot-card-secondary {
  top: 0;
  left: 0;
  animation-delay: -3.5s;
}

.project-showcase-stack-four .project-shot-card-tertiary {
  top: 0;
  left: 0;
  animation-delay: -7s;
}

.project-showcase-stack-four .project-shot-card-quaternary {
  top: 0;
  left: 0;
  animation-delay: -10.5s;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.project-meta span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover .project-meta span {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.sticky-card {
  position: sticky;
  top: 6.5rem;
  padding: 2rem;
  height: 100%;
  min-width: 0;
}

.stack-section .sticky-card h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 1.12;
  text-wrap: balance;
}

.stack-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-step span {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  color: var(--teal);
}

.timeline-step-highlight {
  grid-column: 1 / -1;
  padding: 2.3rem;
  background:
    radial-gradient(circle at top right, rgba(114, 241, 212, 0.14), transparent 38%),
    radial-gradient(circle at bottom left, rgba(255, 107, 44, 0.14), transparent 42%),
    rgba(14, 22, 40, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}

.timeline-step-highlight h3 {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
}

.timeline-step-highlight p {
  max-width: 58ch;
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 2.2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.12), transparent 35%),
    rgba(13, 20, 38, 0.92);
}

.contact-card-single {
  grid-template-columns: minmax(0, 1fr);
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(6, 10, 19, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(191, 199, 217, 0.7);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255, 107, 44, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.12);
  background: rgba(9, 14, 25, 0.92);
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.contact-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-actions .btn {
  min-width: 190px;
  text-align: center;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body:not(.is-ready) .eyebrow-pill,
body:not(.is-ready) .hero-title,
body:not(.is-ready) .hero-copy,
body:not(.is-ready) .hero-actions,
body:not(.is-ready) .metrics-grid,
body:not(.is-ready) .hero-panel {
  opacity: 0;
  transform: translateY(26px);
}

.eyebrow-pill,
.hero-title,
.hero-copy,
.hero-actions,
.metrics-grid,
.hero-panel {
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .eyebrow-pill {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

body.is-ready .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

body.is-ready .hero-copy {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

body.is-ready .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.34s;
}

body.is-ready .metrics-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.44s;
}

body.is-ready .hero-panel {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes text-shift {
  from {
    background-position: 0 50%;
  }

  to {
    background-position: 200% 50%;
  }
}

@keyframes showcase-stack-primary {
  0%,
  42% {
    z-index: 2;
    transform: translate(0, 0) rotate(-2deg) scale(1);
    opacity: 1;
  }

  50%,
  92% {
    z-index: 1;
    transform: translate(1.3rem, 1.2rem) rotate(2deg) scale(0.96);
    opacity: 0.9;
  }

  100% {
    z-index: 2;
    transform: translate(0, 0) rotate(-2deg) scale(1);
    opacity: 1;
  }
}

@keyframes showcase-stack-secondary {
  0%,
  42% {
    z-index: 1;
    transform: translate(0, 0) rotate(2deg) scale(0.94);
    opacity: 0.9;
  }

  50%,
  92% {
    z-index: 3;
    transform: translate(-1.3rem, -1.2rem) rotate(-2deg) scale(1);
    opacity: 1;
  }

  100% {
    z-index: 1;
    transform: translate(0, 0) rotate(2deg) scale(0.94);
    opacity: 0.9;
  }
}

@keyframes showcase-stack-cycle-four {
  0%,
  18% {
    z-index: 4;
    transform: translate(0, 0) rotate(-2deg) scale(1);
    opacity: 1;
  }

  25%,
  43% {
    z-index: 3;
    transform: translate(0.9rem, 0.85rem) rotate(1deg) scale(0.97);
    opacity: 0.96;
  }

  50%,
  68% {
    z-index: 2;
    transform: translate(1.8rem, 1.7rem) rotate(2deg) scale(0.94);
    opacity: 0.92;
  }

  75%,
  93% {
    z-index: 1;
    transform: translate(2.7rem, 2.55rem) rotate(3deg) scale(0.91);
    opacity: 0.88;
  }

  100% {
    z-index: 4;
    transform: translate(0, 0) rotate(-2deg) scale(1);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 4.75rem;
  }

  .hero-section::before {
    width: 20rem;
    height: 20rem;
    inset: 5rem auto auto 45%;
  }

  .metrics-grid,
  .stack-grid,
  .timeline-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-form-grid,
  .contact-form-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel {
    min-height: 480px;
  }

  .build-primary,
  .build-secondary {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: 1rem;
  }

  .project-showcase-shell {
    grid-template-columns: 1fr;
  }

  .project-showcase-stack-four .project-showcase-shell {
    grid-template-columns: 1fr;
  }

  .project-shot-stack {
    min-height: 340px;
    margin: 0;
    padding: 0 1.6rem 1.6rem;
  }

  .project-showcase-stack-four .project-shot-stack {
    min-height: 340px;
    padding: 0 1.6rem 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    padding: 0.8rem 0;
  }

  .hero-title {
    max-width: none;
    line-height: 0.95;
  }

  .hero-panel {
    min-height: auto;
  }

  .build-primary,
  .build-secondary {
    animation: none;
  }

  .panel-orbit {
    display: none;
  }

  .section-space {
    padding: 4.5rem 0;
  }

  .contact-card,
  .sticky-card,
  .project-card,
  .stack-card,
  .timeline-step,
  .hero-panel,
  .build-card {
    border-radius: 20px;
  }

  .contact-form {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .contact-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .project-shot-stack {
    min-height: auto;
    display: grid;
    gap: 0.9rem;
    padding-top: 0;
  }

  .project-shot-stack .project-shot-card {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    animation: none;
    transform: none;
  }

  .project-shot-stack .project-shot-card-primary,
  .project-shot-stack .project-shot-card-secondary,
  .project-shot-stack .project-shot-card-tertiary,
  .project-shot-stack .project-shot-card-quaternary {
    top: auto;
    left: auto;
    z-index: auto;
  }

  .project-showcase-stack-four .project-shot-card {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .project-showcase-stack-four .project-shot-stack {
    display: contents;
    min-height: auto;
    justify-items: center;
    padding: 0 1.6rem 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  body:not(.is-ready) .eyebrow-pill,
  body:not(.is-ready) .hero-title,
  body:not(.is-ready) .hero-copy,
  body:not(.is-ready) .hero-actions,
  body:not(.is-ready) .metrics-grid,
  body:not(.is-ready) .hero-panel {
    opacity: 1;
    transform: none;
  }
}