:root {
  --bg: #041018;
  --bg-soft: #081924;
  --panel: rgba(10, 28, 39, 0.72);
  --panel-strong: rgba(7, 22, 32, 0.92);
  --line: rgba(120, 206, 255, 0.16);
  --line-strong: rgba(120, 206, 255, 0.34);
  --text: #edf8ff;
  --muted: #95b8c8;
  --accent: #3ce0ff;
  --accent-2: #8effc1;
  --accent-3: #0e6fff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(12, 107, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(60, 224, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #05131d 0%, #030b10 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 201, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 201, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  pointer-events: none;
  z-index: 0;
}

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

.page-shell {
  position: relative;
  z-index: 1;
}

.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb,
.bg-grid,
.bg-beam {
  position: absolute;
}

.bg-orb {
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
}

.bg-orb-a {
  width: 34rem;
  height: 34rem;
  top: 8%;
  left: -8rem;
  background: rgba(60, 224, 255, 0.16);
}

.bg-orb-b {
  width: 30rem;
  height: 30rem;
  top: 42%;
  right: -10rem;
  background: rgba(14, 111, 255, 0.16);
}

.bg-orb-c {
  width: 26rem;
  height: 26rem;
  bottom: 8%;
  left: 28%;
  background: rgba(142, 255, 193, 0.1);
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 201, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 201, 255, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
}

.bg-beam {
  width: 60rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60, 224, 255, 0.18), transparent);
  opacity: 0.65;
}

.bg-beam-a {
  top: 22%;
  left: -10rem;
  transform: rotate(18deg);
}

.bg-beam-b {
  top: 68%;
  right: -12rem;
  transform: rotate(-14deg);
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  background: rgba(60, 224, 255, 0.18);
  top: 10%;
  left: -12rem;
}

.ambient-right {
  background: rgba(14, 111, 255, 0.18);
  top: 24%;
  right: -12rem;
}

.topbar,
.section {
  width: min(calc(100% - 4rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(4, 16, 24, 0.38), rgba(4, 16, 24, 0.12));
  box-shadow: inset 0 -1px 0 rgba(120, 206, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(60, 224, 255, 0.14), rgba(14, 111, 255, 0.22));
  box-shadow: inset 0 0 30px rgba(60, 224, 255, 0.16);
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy small,
.eyebrow,
.card-kicker,
.project-type,
.timeline-date {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy small,
.nav a,
.hero-text,
.glass-card p,
.project-card p,
.stack-card p,
.timeline-item p,
.contact-card p {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--text);
}

.section {
  padding: 4rem 0;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
}

.eyebrow,
.card-kicker,
.project-type {
  color: var(--accent);
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.glass-card h2,
.contact-card h2 {
  margin: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  max-width: 10ch;
}

.hero h1 span {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(142, 255, 193, 0.24);
}

.hero-lead {
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-text {
  font-size: 1rem;
  max-width: 54ch;
  margin: 1rem 0 0;
}

.hero-inline-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-inline-facts span {
  border: 1px solid rgba(120, 206, 255, 0.18);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.2rem 0 0;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(60, 224, 255, 0.18), rgba(14, 111, 255, 0.25));
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.glass-card,
.stack-card,
.project-card,
.contact-card,
.hero-metrics li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.glass-card,
.stack-card,
.project-card,
.contact-card {
  background: var(--panel);
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-metrics li {
  padding: 0.9rem;
  min-height: 6.6rem;
}

.hero-metrics strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0.9rem;
}

.radar-card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 0.8;
  border-radius: 32px;
  background:
    radial-gradient(circle at center, rgba(60, 224, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(7, 22, 32, 0.92), rgba(6, 18, 28, 0.96));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(60, 224, 255, 0.08);
}

.radar-grid,
.radar-ring,
.scan-line,
.map-route,
.map-node,
.hero-visual-title,
.hero-project-link {
  position: absolute;
}

.radar-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 214, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 214, 255, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
}

.radar-ring {
  border: 1px solid rgba(60, 224, 255, 0.2);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 30%;
  height: 30%;
}

.ring-b {
  width: 54%;
  height: 54%;
}

.ring-c {
  width: 82%;
  height: 82%;
}

.scan-line {
  left: -10%;
  top: 10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(60, 224, 255, 0.8), transparent);
  box-shadow: 0 0 18px rgba(60, 224, 255, 0.6);
  animation: sweep 5s linear infinite;
}

.hero-visual-title {
  top: 7%;
  left: 6%;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 224, 255, 0.22);
  background: rgba(4, 17, 24, 0.8);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-node {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(142, 255, 193, 0.08), 0 0 24px rgba(142, 255, 193, 0.4);
}

.node-a {
  top: 24%;
  left: 38%;
}

.node-b {
  top: 44%;
  left: 62%;
}

.node-c {
  top: 68%;
  left: 47%;
}

.node-d {
  top: 32%;
  left: 76%;
}

.map-route {
  border-top: 1px dashed rgba(60, 224, 255, 0.55);
  transform-origin: left center;
}

.route-a {
  top: 30%;
  left: 40%;
  width: 29%;
  transform: rotate(20deg);
}

.route-b {
  top: 53%;
  left: 49%;
  width: 18%;
  transform: rotate(-34deg);
}

.hero-project {
  position: absolute;
  min-width: 10.5rem;
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
  border: 1px solid rgba(60, 224, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 21, 30, 0.88), rgba(5, 17, 24, 0.92));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  overflow: hidden;
}

.hero-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(126, 214, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 214, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.32;
  pointer-events: none;
}

.hero-project:hover {
  transform: translateY(-3px);
  border-color: rgba(60, 224, 255, 0.45);
  background: rgba(5, 21, 30, 0.92);
}

.hero-project span {
  position: relative;
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}

.hero-project strong {
  position: relative;
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.hero-project-a {
  top: 18%;
  left: 16%;
}

.hero-project-b {
  top: 42%;
  right: 12%;
}

.hero-project-c {
  left: 18%;
  bottom: 16%;
}

.hero-project-link {
  height: 1px;
  border-top: 1px dashed rgba(60, 224, 255, 0.38);
  transform-origin: left center;
  opacity: 0.9;
}

.hero-project-link-a {
  top: 27%;
  left: 39.5%;
  width: 11%;
  transform: rotate(-168deg);
}

.hero-project-link-b {
  top: 47%;
  left: 63%;
  width: 13%;
  transform: rotate(8deg);
}

.hero-project-link-c {
  top: 69%;
  left: 46.5%;
  width: 13%;
  transform: rotate(144deg);
}

.hero-side-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(100%, 520px);
}

.hero-side-stats article {
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 206, 255, 0.18);
  background: rgba(8, 24, 34, 0.72);
}

.hero-side-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.3rem;
}

.hero-side-stats strong {
  font-size: 0.95rem;
}

.intro-grid,
.projects-grid,
.stack-grid {
  display: grid;
  gap: 1.2rem;
}

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

.glass-card,
.stack-card,
.project-content,
.contact-card {
  padding: 1.4rem;
}

.glass-card h2,
.section-heading h2,
.contact-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  margin-top: 0.45rem;
}

.section-heading {
  max-width: 62rem;
  margin-bottom: 1.6rem;
}

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

.project-card {
  overflow: hidden;
  position: relative;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 206, 255, 0.28);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.project-link,
.project-note {
  display: inline-flex;
  margin-top: 1rem;
}

.project-link {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 206, 255, 0.24);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.project-link:hover {
  border-color: rgba(120, 206, 255, 0.45);
}

.project-note {
  color: var(--muted);
}

.featured {
  grid-row: span 2;
}

.project-surface {
  height: 240px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.project-surface-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 17, 24, 0.06), rgba(4, 17, 24, 0.12) 52%, rgba(4, 17, 24, 0.38)),
    linear-gradient(135deg, rgba(60, 224, 255, 0.06), transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.project-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(235, 249, 255, 0.18);
  background: rgba(4, 18, 25, 0.82);
  color: #eaf8ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.03) contrast(1.03);
  transform: scale(1.01);
  transition:
    transform 300ms ease,
    filter 300ms ease;
}

.project-card:hover .project-image {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.05);
}

.project-surface::before,
.project-surface::after {
  content: "";
  position: absolute;
  inset: 0;
}

.surface-mapasco {
  background:
    radial-gradient(circle at 30% 40%, rgba(142, 255, 193, 0.22), transparent 16%),
    radial-gradient(circle at 68% 52%, rgba(60, 224, 255, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(12, 40, 60, 0.7), rgba(4, 19, 29, 0.95));
}

.surface-mapasco::before {
  background-image:
    linear-gradient(rgba(105, 194, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 194, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}

.surface-mapasco::after {
  background:
    linear-gradient(145deg, transparent 36%, rgba(142, 255, 193, 0.14) 37%, transparent 38%),
    linear-gradient(36deg, transparent 43%, rgba(60, 224, 255, 0.14) 44%, transparent 45%);
}

.surface-ops {
  background:
    linear-gradient(180deg, rgba(8, 27, 40, 0.75), rgba(3, 13, 19, 0.96)),
    radial-gradient(circle at 50% 40%, rgba(60, 224, 255, 0.16), transparent 26%);
}

.surface-ops::before {
  background:
    linear-gradient(90deg, rgba(60, 224, 255, 0.12) 20%, transparent 20%) 0 0 / 22px 22px,
    linear-gradient(rgba(60, 224, 255, 0.12) 20%, transparent 20%) 0 0 / 22px 22px;
  opacity: 0.35;
}

.surface-landing {
  background:
    linear-gradient(135deg, rgba(14, 111, 255, 0.36), rgba(60, 224, 255, 0.06)),
    linear-gradient(180deg, rgba(9, 24, 35, 0.8), rgba(4, 16, 24, 0.95));
}

.surface-landing::before {
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle at 72% 48%, rgba(255, 255, 255, 0.12), transparent 14%);
}

.image-placeholder,
.gallery-frame {
  position: absolute;
  inset: 1rem;
  border-radius: 20px;
  border: 1px dashed rgba(214, 244, 255, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: rgba(237, 248, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      45deg,
      rgba(120, 206, 255, 0.05),
      rgba(120, 206, 255, 0.05) 10px,
      transparent 10px,
      transparent 20px
    );
}

.image-placeholder span,
.gallery-frame span {
  max-width: 18ch;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3,
.stack-card h3,
.timeline-item h3 {
  margin: 0.5rem 0;
  font-size: 1.35rem;
}

.project-content {
  display: grid;
  gap: 0.8rem;
}

.project-content p {
  margin: 0;
}

.tags,
.stack-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags li,
.stack-card li {
  border: 1px solid rgba(120, 206, 255, 0.2);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

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

.stack-card {
  min-height: 18rem;
}

.trajectory-section {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.2rem;
}

.gallery-card h3 {
  margin: 1rem 0 0.4rem;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-frame {
  position: relative;
  inset: auto;
  min-height: 220px;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 8.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(rgba(60, 224, 255, 0.2), rgba(142, 255, 193, 0.2));
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2.2rem;
  align-items: start;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8.25rem;
  top: 0.42rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 20px rgba(142, 255, 193, 0.5);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(60, 224, 255, 0.08), rgba(14, 111, 255, 0.14)),
    var(--panel-strong);
}

.contact-links {
  display: grid;
  gap: 0.8rem;
}

.contact-links a {
  display: inline-flex;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 206, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.contact-links a:hover {
  transform: translateX(4px);
  border-color: rgba(120, 206, 255, 0.38);
}

.site-footer {
  width: min(calc(100% - 4rem), var(--max-width));
  margin: 0 auto;
  padding: 0 0 2.4rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(120, 206, 255, 0.14);
}

.footer-brand {
  display: grid;
  gap: 0.3rem;
}

.footer-brand strong {
  font-size: 0.96rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.cursor-glow {
  position: fixed;
  width: 18rem;
  height: 18rem;
  margin-left: -9rem;
  margin-top: -9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 224, 255, 0.12), transparent 62%);
  pointer-events: none;
  z-index: 0;
  transition: transform 100ms linear;
}

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

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

@keyframes sweep {
  0% {
    transform: translateY(0) rotate(-8deg);
  }
  100% {
    transform: translateY(430px) rotate(-8deg);
  }
}

@media (max-width: 1080px) {
  .hero,
  .contact-card,
  .projects-grid,
  .stack-grid,
  .intro-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    grid-row: auto;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-side-stats {
    width: 100%;
  }

  .hero-project {
    min-width: 9.5rem;
  }

  .hero-project-link {
    display: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

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

  .hero-project {
    position: absolute;
    min-width: 8.8rem;
    padding: 0.65rem 0.75rem;
  }

  .hero-project-b {
    right: 5%;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3rem 0;
  }

  .topbar,
  .section,
  .site-footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
