:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, 0.14);
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.25rem);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
}

body.booting {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

a {
  color: inherit;
  text-decoration: none;
}

/* BOOT */
.boot {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.boot-tag,
.boot-status {
  margin: 0;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: #aaa;
  text-transform: uppercase;
}

.boot-tag {
  margin-bottom: 1rem;
  animation: blink 0.7s steps(2) infinite;
}

.boot-status {
  margin-top: 1rem;
  color: #666;
  letter-spacing: 0.18em;
}

.boot-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  animation: slam 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.boot-ver {
  margin: 1rem 0 0;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: #777;
}

.boot-bar {
  width: min(300px, 70vw);
  height: 2px;
  margin: 1.8rem auto 0;
  background: #1c1c1c;
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: loadbar 1.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.boot-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.028) 2px,
    rgba(255, 255, 255, 0.028) 4px
  );
  animation: scan 1.1s linear infinite;
  pointer-events: none;
}

.boot-bars {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 48%,
    transparent 52%
  );
  animation: swipeBars 1.2s ease-in-out infinite;
  pointer-events: none;
}

.boot-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.boot.flash .boot-flash {
  animation: flash 0.4s ease forwards;
}

/* OVERLAYS */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wipe {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  pointer-events: none;
}

.wipe span {
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
}

.wipe.play span {
  animation: wipeCol 0.72s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.wipe.play span:nth-child(2) {
  animation-delay: 0.05s;
}

.wipe.play span:nth-child(3) {
  animation-delay: 0.1s;
}

.rgb-flash {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, rgba(255, 0, 80, 0.18), transparent 40%),
    linear-gradient(270deg, rgba(0, 220, 255, 0.16), transparent 40%);
}

.rgb-flash.go {
  animation: rgbPulse 0.45s ease;
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 45;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* HEADER */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
  backdrop-filter: blur(8px);
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.mark em {
  font-style: normal;
  border: 1px solid #fff;
  padding: 0.08rem 0.32rem;
  font-size: 0.68rem;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  justify-content: flex-end;
}

.top nav a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}

.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.top nav a:hover {
  color: #fff;
}

.top nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* HERO — split professional layout */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: calc(5.5rem + env(safe-area-inset-top)) var(--pad) 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--bg);
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #bbb;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 12vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.split {
  display: block;
  overflow: hidden;
}

.split i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
}

body.ready .split i {
  animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(242, 242, 242, 0.86);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #fff;
  color: #000;
}

.btn.primary:hover {
  background: #d8d8d8;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}

.btn.ghost:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 760px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(24px) scale(0.985);
  opacity: 0;
}

body.ready .hero-frame {
  animation: frameIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.12) brightness(0.96);
  transform: scale(1.04);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hero-frame:hover .hero-photo {
  transform: scale(1.08);
  filter: grayscale(0.15) contrast(1.08) brightness(1);
}

.hero-frame-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  mix-blend-mode: soft-light;
  animation: scanSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-frame-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.marquee-track {
  display: flex;
  gap: 2.4rem;
  white-space: nowrap;
  padding: 0.65rem 0;
  width: max-content;
  animation: marquee 20s linear infinite;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.marquee-track span::after {
  content: " // ";
  opacity: 0.3;
}

/* SECTIONS */
.section {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(4.2rem, 10vw, 7.2rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.strike-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-lede {
  margin: 1rem 0 0;
  font-size: 1.12rem;
  color: rgba(242, 242, 242, 0.76);
}

.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1) contrast(1.1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.portrait:hover img {
  transform: scale(1.05);
  filter: grayscale(0.2) contrast(1.05);
}

.portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-copy p {
  font-size: 1.12rem;
  color: rgba(242, 242, 242, 0.88);
  margin: 0 0 1.05rem;
}

.id-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.id-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.id-meta dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.live-for {
  width: 100%;
  max-width: none;
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.live-for .section-head,
.live-for .pillars,
.live-for .manifesto {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillars li {
  padding: 1.2rem 1rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.pillars li:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.35);
}

.pillar-num {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.pillars h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pillars p {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(242, 242, 242, 0.75);
}

.manifesto {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0;
  border: 0;
  max-width: 44rem;
}

.manifesto p {
  margin: 0;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  line-height: 1.2;
  font-weight: 600;
}

.manifesto cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-strip {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-nine {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .gallery-nine {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-nine figure {
  aspect-ratio: 4 / 5;
}

.gallery-four {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .gallery-four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-four figure {
  aspect-ratio: 3 / 4;
}

.gallery-strip figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-strip figure:hover img {
  transform: scale(1.07);
  filter: grayscale(0.15) contrast(1.05);
}

.resume-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 860px) {
  .resume-layout {
    grid-template-columns: 1.3fr 0.9fr;
  }
}

.resume-label {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.resume-label.spaced {
  margin-top: 2.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 0 0 1.75rem 1.15rem;
  border-left: 1px solid var(--line);
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.timeline .when {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.timeline strong {
  display: block;
  font-size: 1.15rem;
}

.timeline .where {
  display: block;
  color: rgba(242, 242, 242, 0.65);
  margin: 0.2rem 0 0.55rem;
}

.timeline p {
  margin: 0;
  color: rgba(242, 242, 242, 0.75);
}

.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skills li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.skills li:hover {
  background: #fff;
  color: #000;
}

.edu {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(242, 242, 242, 0.85);
}

.contact {
  padding-bottom: 3rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-link {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.4vw, 2.55rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.15rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-link:hover {
  transform: skewX(-3deg);
  opacity: 0.78;
}

.contact-link.phone {
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.socials a,
.socials span {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.socials a:hover {
  color: #fff;
}

.foot {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot p {
  margin: 0;
}

/* REVEALS */
.fx-rise,
.fx-zoom,
.fx-clip,
.fx-slam,
.section-head,
.about-copy,
.resume-layout > div,
.contact-row {
  opacity: 0;
}

.fx-rise {
  transform: translateY(52px);
}

.fx-zoom {
  transform: scale(1.08) translateY(18px);
  filter: blur(6px) grayscale(1);
}

.fx-clip {
  clip-path: inset(12% 12% 12% 12%);
  filter: contrast(1.4) grayscale(1);
}

.fx-slam {
  transform: scale(0.9) rotate(-1.25deg);
}

.section-head,
.about-copy,
.resume-layout > div,
.contact-row {
  transform: translateY(28px);
}

.in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: inset(0 0 0 0) !important;
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease,
    clip-path 1s cubic-bezier(0.77, 0, 0.18, 1) !important;
}

.pillars li.in:nth-child(2),
.gallery-strip figure.in:nth-child(2),
.timeline li.in:nth-child(2) {
  transition-delay: 0.06s !important;
}

.pillars li.in:nth-child(3),
.gallery-strip figure.in:nth-child(3),
.timeline li.in:nth-child(3) {
  transition-delay: 0.12s !important;
}

.gallery-strip figure.in:nth-child(4) { transition-delay: 0.04s !important; }
.gallery-strip figure.in:nth-child(5) { transition-delay: 0.1s !important; }
.gallery-strip figure.in:nth-child(6) { transition-delay: 0.16s !important; }
.gallery-strip figure.in:nth-child(7) { transition-delay: 0.08s !important; }
.gallery-strip figure.in:nth-child(8) { transition-delay: 0.14s !important; }
.gallery-strip figure.in:nth-child(9) { transition-delay: 0.2s !important; }

.glitch-text {
  position: relative;
  display: inline-block;
}

body.ready .glitch-text::before,
body.ready .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0.65;
}

body.ready .glitch-text::before {
  animation: glitch1 2.5s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}

body.ready .glitch-text::after {
  animation: glitch2 2.1s infinite linear alternate-reverse;
  clip-path: inset(45% 0 0 0);
}

@keyframes slam {
  from {
    opacity: 0;
    transform: scale(1.28) translateY(18px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes loadbar {
  to {
    width: 100%;
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes scan {
  from {
    transform: translateY(-18%);
  }
  to {
    transform: translateY(18%);
  }
}

@keyframes swipeBars {
  0%,
  100% {
    transform: translateX(-30%);
    opacity: 0.2;
  }
  50% {
    transform: translateX(30%);
    opacity: 0.7;
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes wipeCol {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes frameIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes scanSweep {
  0%,
  100% {
    transform: translateY(-120%);
  }
  50% {
    transform: translateY(120%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rgbPulse {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes glitch1 {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 1px);
  }
  40% {
    transform: translate(2px, -1px);
  }
  60% {
    transform: translate(-1px, 2px);
  }
  80% {
    transform: translate(1px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch2 {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(2px, -1px);
  }
  40% {
    transform: translate(-2px, 1px);
  }
  60% {
    transform: translate(1px, 2px);
  }
  80% {
    transform: translate(-1px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@media (max-width: 640px) {
  .top nav {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .id-meta {
    grid-template-columns: 1fr;
  }

  .mark span {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .boot {
    display: none;
  }

  body.booting {
    overflow: auto;
  }

  .fx-rise,
  .fx-zoom,
  .fx-clip,
  .fx-slam,
  .section-head,
  .about-copy,
  .resume-layout > div,
  .contact-row,
  .hero-frame,
  .split i {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

/* Secret overlays */
.insult-banner {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.92);
  text-align: center;
}

.insult-banner[hidden] {
  display: none !important;
}

.insult-banner p {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: slam 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.game-center {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.game-center[hidden] {
  display: none !important;
}

.game-center-panel {
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #090909;
  padding: 1.25rem;
}

.game-center-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.game-center-top h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.02em;
}

.game-lede {
  margin: 0.85rem 0 1.1rem;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  text-align: left;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.game-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.game-card:hover,
.game-card.active {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.game-card:hover span,
.game-card.active span {
  color: #333;
}

.game-stage {
  border: 1px solid var(--line);
  background: #050505;
  padding: 0.75rem;
}

#game-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  image-rendering: pixelated;
}

.game-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Monty upgrade layer --- */
.float-orbs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.float-orbs span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.045);
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.float-orbs span:nth-child(1) {
  top: -10%;
  left: -8%;
  width: 42vw;
  height: 42vw;
}

.float-orbs span:nth-child(2) {
  right: -12%;
  top: 20%;
  width: 28vw;
  height: 28vw;
  animation-delay: -4s;
}

.float-orbs span:nth-child(3) {
  bottom: -15%;
  left: 30%;
  width: 36vw;
  height: 36vw;
  animation-delay: -8s;
}

.float-orbs span:nth-child(4) {
  top: 40%;
  right: 20%;
  width: 18vw;
  height: 18vw;
  animation-delay: -2s;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.live-clock {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
  text-align: right;
}

.mark {
  align-items: center !important;
}

.mark-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.6s ease-out infinite;
  flex-shrink: 0;
}

.top {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.hero-stage {
  position: relative;
}

.hero-orbit {
  position: absolute;
  inset: -8% -12%;
  pointer-events: none;
  z-index: 0;
}

.hero-orbit img {
  position: absolute;
  width: 28%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.55;
  animation: floatPic 7s ease-in-out infinite alternate;
}

.hero-orbit img:nth-child(1) {
  top: 4%;
  left: -2%;
  transform: rotate(-8deg);
}

.hero-orbit img:nth-child(2) {
  bottom: 10%;
  right: -4%;
  animation-delay: -2s;
  transform: rotate(7deg);
}

.hero-orbit img:nth-child(3) {
  top: 42%;
  left: -8%;
  width: 20%;
  animation-delay: -3.5s;
  transform: rotate(4deg);
}

.hero-frame {
  position: relative;
  z-index: 1;
}

.blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  margin-right: 0.35rem;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}

.secret-hint {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-size: 0.85rem;
}

.secret-hint p {
  margin: 0;
}

.wipe span:nth-child(4) {
  left: 75%;
  width: 25%;
}

.wipe.play span:nth-child(4) {
  animation-delay: 0.18s;
}

.cta-row .btn {
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-row .btn.primary:hover {
  box-shadow: 0 0 0 1px #fff, 0 0 28px rgba(255, 255, 255, 0.22);
}

.marquee-track {
  animation-duration: 28s !important;
}

.portrait img {
  transition: transform 0.7s ease, filter 0.5s ease;
}

.portrait:hover img {
  transform: scale(1.03);
  filter: grayscale(0.2) contrast(1.1);
}

.skills li {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.skills li:hover {
  transform: translateX(4px);
}

.contact-link {
  transition: letter-spacing 0.25s ease, color 0.2s ease;
}

.contact-link:hover {
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .top {
    grid-template-columns: 1fr auto;
  }

  .live-clock,
  .hero-orbit {
    display: none;
  }

  .float-orbs {
    opacity: 0.5;
  }
}

@media (max-width: 800px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .game-grid {
    grid-template-columns: 1fr !important;
  }
}

@keyframes orbDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, -3%, 0) scale(1.06);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes floatPic {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -14px;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
