:root {
  --bg: #d9dee4;
  --page: #f7f4ef;
  --paper: #fbfaf7;
  --ink: #111722;
  --muted: #5f6773;
  --line: rgba(17, 23, 34, 0.12);
  --sand: #d7c6b2;
  --clay: #cb856b;
  --olive: #70755b;
  --rose: #f08ba8;
  --alien: #c4f400;
  --shadow: 0 28px 80px rgba(26, 33, 44, 0.08);
  --max-width: 1480px;
  --section-space: clamp(3.5rem, 8vw, 7rem);
  --display: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --serif: "Times New Roman", Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.top-accent-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #c4f400;
  z-index: 9999;
}

html {
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--display);
  background: #f7f4ef;
  position: relative;
  cursor: url("./cursor.cur"), auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    radial-gradient(circle at 88% 32%, rgba(240, 139, 168, 0.1), transparent 18%);
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.5rem auto;
  background: var(--page);
  box-shadow: none;
  backdrop-filter: none;
}

.ball-gif {
  position: absolute;
  top: 18rem;
  left: 50%;
  transform: translateX(-50%) scaleX(-1);
  width: 1980px;
  max-width: 200%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2rem 0 0;
  background: transparent;
  backdrop-filter: blur(10px);
}

.brand,
.site-nav a,
.micro-label,
.role-tag,
.project-title-row span,
.note span,
.work-header p {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand,
.site-nav a {
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1.3rem;
}

.layout {
  padding: 0 1.2rem 3rem;
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
  min-height: 74vh;
}

.hero-intro h1,
.work-header h2,
.feature-copy h2,
.about-copy h2,
.contact-link {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.arrow-icon {
  display: inline-block;
  width: 0.76em;
  height: auto;
  margin-left: 0.25em;
  vertical-align: middle;
  transform: translateY(-0.04em);
}

.hero-intro h1 {
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 800;
}

.hero-intro h1 span {
  display: block;
  color: rgba(17, 23, 34, 0.45);
}

.hero-summary {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding-top: clamp(2rem, 8vw, 9rem);
}

.statement,
.feature-copy p,
.project-meta p,
.about-copy p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.statement {
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 30ch;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.3rem;
  padding-top: 1.5rem;
}

.social-row a,
.project-meta a,
.contact-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.feature-editorial {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 2rem;
  align-items: stretch;
}

.feature-copy {
  display: grid;
  align-content: end;
  gap: 1rem;
  padding-right: 1rem;
}

.feature-copy h2,
.about-copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 800;
}

.feature-copy h2 span {
  color: rgba(17, 23, 34, 0.45);
}

.feature-art {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
}

.feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.feature-poster {
  position: relative;
  inset: 0;
  padding: 1.8rem;
  display: grid;
  align-content: space-between;
}

.poster-meta {
  margin: 0;
  justify-self: end;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  letter-spacing: -0.03em;
  text-align: right;
}

.feature-poster strong {
  font-size: clamp(4.4rem, 10vw, 8.2rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  color: #111722;
}

.feature-poster span {
  justify-self: end;
  align-self: end;
  font-size: clamp(3rem, 7vw, 6rem);
  font-family: var(--serif);
  font-style: italic;
  transform: rotate(-5deg);
  color: #f7ec91;
  text-shadow: 2px 2px 0 #111722;
}

.resume-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 15% 40%, rgba(198, 255, 0, 0.1), transparent 22%);
}

.resume-copy {
  display: grid;
  gap: 1rem;
  max-width: 30rem;
}

.resume-copy .micro-label {
  margin: 0;
}

.resume-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.resume-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding-top: 0.6rem;
}

.resume-actions a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.resume-card {
  position: relative;
  display: block;
  background: #f4efe7;
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(1.2deg);
  box-shadow: 0 24px 60px rgba(17, 23, 34, 0.1);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  z-index: 5;
}

.resume-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 23, 34, 0.08);
}

.resume-image {
  display: block;
  width: 100%;
  height: 44rem;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 10;
}

.Character-Jump-project-gif {
  position: absolute;
  top: 152rem;
  right: -2%;
  transform: translateX(-50%);
  width: 1980px;
  max-width: 90%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.resume-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
  box-shadow: 0 18px 40px rgba(17, 23, 34, 0.08);
}

.resume-tag,
.resume-year {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.work-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.work-header h2 {
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  font-weight: 800;
}

.work-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 2rem 2.25rem;
  align-items: start;
}

.project {
  display: grid;
  gap: 1rem;
}

.project-feature {
  grid-row: span 2;
}

.project-wide {
  grid-column: 1 / span 2;
  max-width: 68%;
}

.align-end {
  justify-self: end;
  max-width: 78%;
}

.project-visual {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  background-position: center;
}

.project-animation {
  position: relative;
  overflow: hidden;
  min-height: 34rem;
}

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

@media (max-width: 720px) {
  .project-animation {
    min-height: 18rem;
  }

  .project-video {
    display: none;
  }

  .project-animation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./MSFT_Logo_End_Card_Black_BG_4K_preview.jpg") center / cover no-repeat;
  }
}

.project-feature .project-visual {
  min-height: 16rem;
}

.pink-card .project-visual {
  min-height: 26rem;
}

@media (min-width: 1025px) {
  .pink-card {
    margin-top: 43rem;
    margin-bottom: 3rem;
    margin-left: -10rem;
    max-width: 150%;
  }
}

@media (max-width: 1024px) {
  .pink-card {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    max-width: 100%;
  }
}

.project-wide .project-visual {
  min-height: 28rem;
}

.visual-editorial {
  background:
    linear-gradient(0deg, rgba(240, 139, 168, 0.84), rgba(240, 139, 168, 0.84)),
    radial-gradient(circle at 40% 38%, rgba(255, 225, 236, 0.72), transparent 18%),
    linear-gradient(150deg, #f6d1dc 0%, #ec9db8 48%, #cf6d8d 100%);
}

.visual-dark {
  background:
    radial-gradient(circle at 78% 28%, rgba(90, 201, 255, 0.9), transparent 18%),
    linear-gradient(135deg, #10161d 0%, #0f1724 48%, #1192dd 100%);
}

.visual-night {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(140deg, #101528 0%, #19213a 42%, #05070e 100%);
}

.editorial-overlay {
  position: absolute;
  right: 6%;
  bottom: 8%;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-family: var(--serif);
  font-style: italic;
  color: #f7ec91;
  text-shadow: 2px 2px 0 #111722;
  transform: rotate(-8deg);
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.project-title-row h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 2rem;
  align-items: start;
}

.about-notes {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.note {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
}

.note strong {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.contact-banner {
  border-top: 1px solid var(--line);
  padding-bottom: 2rem;
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  font-weight: 800;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 850ms ease,
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-order, 0) * 90ms);
}

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

[data-section] {
  --section-progress: 0;
}

.hero-intro,
.hero-summary,
.feature-copy,
.feature-art,
.work-grid .project,
.about-copy,
.about-notes,
.contact-banner {
  transform: translateY(calc((1 - var(--section-progress)) * 26px));
}

[data-section]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(17, 23, 34, 0),
    rgba(17, 23, 34, calc(0.08 + var(--section-progress) * 0.18)),
    rgba(17, 23, 34, 0)
  );
}

@media (max-width: 1024px) {
  .hero,
  .feature-editorial,
  .about-section,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-feature,
  .project-wide {
    grid-row: auto;
    grid-column: auto;
    max-width: 100%;
  }

  .align-end {
    justify-self: stretch;
    max-width: 100%;
  }

  .hero-summary {
    padding-top: 0;
  }

  #jump-gif.Character-Jump-project-gif {
    position: absolute;
    top: 115rem !important; 
    right: -23%;
    left: auto;
    width: 530px;
    max-width: none;
    height: auto;
    transform: scaleX(-1);
    opacity: 0.7;
    pointer-events: none;
    z-index: 6;
  }
}

@media (max-width: 900px) {
  .resume-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .site-header,
  .layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hero-intro h1 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
  }

  .work-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .feature-art {
    min-height: 24rem;
  }

  .project-feature .project-visual,
  .project-wide .project-visual,
  .project-visual {
    min-height: 18rem;
  }

  .feature-poster {
    inset: 0;
    padding: 0.75rem;
  }

  .poster-meta {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.75rem;
    line-height: 1;
    max-width: 45%;
    text-align: right;
    z-index: 3;
  }

  .contact-link {
    display: inline-block;
    max-width: 100%;
    font-size: clamp(0.82rem, 4.1vw, 1.05rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1;
  }

  .contact-banner {
    border-bottom: none;
    padding-bottom: 0;
  }

  footer,
  .site-footer,
  .page-shell::after {
    display: none;
  }

  .resume-section {
    position: relative;
    z-index: 5;
    display: block;
  }

  #jump-gif.Character-Jump-project-gif {
    display: block;
    position: absolute;
    top: 117rem;
    right: 5vw;
    left: auto;
    width: clamp(320px, 28vw, 170px);
    max-width: none;
    height: auto;
    transform: scaleX(-1);
    opacity: 0.7;
    pointer-events: none;
    z-index: 6;
  }

  .resume-card {
    display: flex !important;
    flex-direction: column;
    position: relative;
    height: 30rem;
    width: 100%;
    overflow: hidden;
    z-index: 20;
    margin-top: 2rem;
    transform: rotate(0deg);
  }

  .resume-image {
    display: block !important;
    width: 100%;
    flex: 1;
    object-fit: cover;
    object-position: top center;
    z-index: 21;
  }

  .resume-card-meta {
    position: relative;
    z-index: 22;
    background: #fbfaf7;
    padding: 1rem;
    border-top: 1px solid var(--line);
    display: flex !important;
    justify-content: space-between;
  }
}

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

  .reveal,
  .reveal.is-visible,
  .hero-intro,
  .hero-summary,
  .feature-copy,
  .feature-art,
  .work-grid .project,
  .about-copy,
  .about-notes,
  .contact-banner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}