:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #090909;
  --panel-soft: #101010;
  --text: #f4f4f2;
  --muted: #b9b9b3;
  --dim: #73736d;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.055);
  --accent: #ff5f6d;
  --accent-soft: rgba(255, 95, 109, 0.15);
  --mono: Doto, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DM Serif Text", Georgia, serif;
  --script: "Nothing You Could Do", "Bradley Hand", "Segoe Print", cursive;
}

@property --ripple-offset {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.045), transparent 25rem),
    linear-gradient(180deg, #030303 0%, var(--bg) 48%, #020202 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
}

body::before {
  background:
    linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.09) 7px, transparent 8px) 0 0 / 100% 12px,
    linear-gradient(90deg, rgba(255, 95, 109, 0.18), transparent 26%, rgba(26, 240, 220, 0.12) 70%, transparent);
  mix-blend-mode: screen;
}

body::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 95, 109, 0.18), transparent 62%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.72) 100%);
  mix-blend-mode: hard-light;
}

body > :not(.page-transition) {
  transform-origin: center;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(255, 95, 109, 0.1), transparent 28%, rgba(26, 240, 220, 0.1) 70%, transparent),
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.055) 8px 9px);
  mix-blend-mode: screen;
}

.page-transition::before,
.page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, currentColor, transparent),
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.16) 11px 12px);
  opacity: 0;
  transform: translateX(var(--glitch-x, 0));
  clip-path: inset(var(--glitch-top, 0) 0 var(--glitch-bottom, 100%) 0);
}

.page-transition::before {
  color: #1af0dc;
}

.page-transition::after {
  color: var(--accent);
}

html.page-exit body::before,
html.page-enter body::before {
  animation: page-scan 320ms steps(2, end) both;
}

html.page-exit body::after,
html.page-enter body::after {
  animation: page-flare 320ms steps(2, end) both;
}

html.page-exit body > :not(.page-transition) {
  animation: page-content-exit 320ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

html.page-enter body > :not(.page-transition) {
  animation: page-content-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.page-exit .page-transition,
html.page-enter .page-transition {
  animation: page-transition-fade 320ms linear both;
}

html.page-exit .page-transition::before,
html.page-enter .page-transition::before {
  animation: page-noise-a 320ms steps(1, end) both;
}

html.page-exit .page-transition::after,
html.page-enter .page-transition::after {
  animation: page-noise-b 320ms steps(1, end) both;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.65px, transparent 0.65px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 8px;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: max-content;
  overflow: visible;
}

.logo-skull {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(124, 60, 255, 0.34));
  transition: transform 180ms ease, filter 180ms ease;
}

.brand:hover .logo-skull {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 16px rgba(255, 95, 109, 0.28));
}

.nav-links {
  display: inline-flex;
  gap: 26px;
  justify-self: center;
  font-size: 13px;
  font-weight: 700;
  color: #cfcfcb;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-links a:hover {
  color: #fff;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 38%),
    #000;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -12px 22px rgba(255, 255, 255, 0.025),
    0 18px 42px rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  isolation: isolate;
}

.button > span,
.button-glyph {
  position: relative;
  z-index: 1;
}

.button-glyph {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background:
    repeating-radial-gradient(
      circle at 100% 0%,
      rgba(255, 95, 109, 0.9) calc(var(--ripple-offset) + 0px),
      rgba(255, 255, 255, 0.95) calc(var(--ripple-offset) + 2px),
      rgba(255, 255, 255, 0.95) calc(var(--ripple-offset) + 18px),
      rgba(80, 104, 255, 0.95) calc(var(--ripple-offset) + 20px),
      rgba(0, 0, 0, 0.95) calc(var(--ripple-offset) + 24px),
      rgba(0, 0, 0, 0.95) calc(var(--ripple-offset) + 58px)
    ),
    conic-gradient(
      from 18deg,
      #050508 0deg,
      #050508 12deg,
      #8ea4ff 21deg,
      #ffffff 35deg,
      #5b6cff 44deg,
      #ffd16b 52deg,
      #08080b 86deg,
      #14141a 128deg,
      #987331 152deg,
      #fff6d4 172deg,
      #ffffff 184deg,
      #07070a 214deg,
      #252f8f 248deg,
      #f5f8ff 282deg,
      #ffb35c 302deg,
      #0b0b0f 332deg,
      #050508 360deg
    );
  background-blend-mode: screen, normal;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 20px rgba(99, 122, 255, 0.08),
    inset 0 0 12px rgba(255, 255, 255, 0.16);
  filter: saturate(1.35) contrast(1.18);
  animation:
    orphic-ring 4.8s linear infinite,
    metal-ripple 4.8s linear infinite;
}

.button::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, transparent 4%, rgba(255, 255, 255, 0.12) 18%, transparent 34%) -90px 50% / 90px 100% no-repeat,
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15), transparent 40%),
    linear-gradient(180deg, #171717, #020202 76%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -13px 20px rgba(0, 0, 0, 0.88),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  animation: button-sheen 3.4s ease-in-out infinite 1.2s;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -12px 22px rgba(255, 255, 255, 0.035),
    0 20px 50px rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

@keyframes orphic-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes metal-ripple {
  to {
    --ripple-offset: -58px;
  }
}

@keyframes button-sheen {
  55%,
  100% {
    background-position:
      calc(100% + 90px) 50%,
      0 0,
      0 0;
  }
}

@keyframes page-transition-fade {
  0%,
  100% {
    opacity: 0;
  }
  8%,
  78% {
    opacity: 0.52;
  }
}

@keyframes page-scan {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
  18% {
    opacity: 0.72;
    transform: translateX(-7px);
  }
  36% {
    opacity: 0.35;
    transform: translateX(9px);
  }
  56% {
    opacity: 0.58;
    transform: translateX(-5px);
  }
  76% {
    opacity: 0.28;
    transform: translateX(6px);
  }
}

@keyframes page-flare {
  0%,
  100% {
    opacity: 0;
  }
  22%,
  58% {
    opacity: 0.42;
  }
}

@keyframes page-content-exit {
  0% {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0) skew(0deg);
  }
  18% {
    opacity: 0.96;
    filter: contrast(1.25) saturate(1.4);
    transform: translate3d(-5px, 0, 0) skew(3deg);
  }
  36% {
    transform: translate3d(7px, -1px, 0) skew(-5deg);
  }
  58% {
    opacity: 0.7;
    filter: contrast(1.6) saturate(1.8) hue-rotate(16deg);
    transform: translate3d(-10px, 2px, 0) skew(6deg);
  }
  100% {
    opacity: 0;
    filter: contrast(1.9) saturate(2);
    transform: translate3d(0, 0, 0) scaleX(1.025);
  }
}

@keyframes page-content-enter {
  0% {
    opacity: 0;
    filter: contrast(1.8) saturate(2);
    transform: translate3d(8px, 0, 0) skew(-4deg);
  }
  24% {
    opacity: 0.42;
    transform: translate3d(-6px, 1px, 0) skew(4deg);
  }
  52% {
    opacity: 0.82;
    filter: contrast(1.28) saturate(1.45);
    transform: translate3d(4px, -1px, 0) skew(-2deg);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0) skew(0deg);
  }
}

@keyframes page-noise-a {
  0% {
    opacity: 0;
    --glitch-top: 0%;
    --glitch-bottom: 86%;
    --glitch-x: -0.08em;
  }
  14% {
    opacity: 0.85;
    --glitch-top: 12%;
    --glitch-bottom: 68%;
    --glitch-x: 0.04em;
  }
  32% {
    opacity: 0.55;
    --glitch-top: 44%;
    --glitch-bottom: 42%;
    --glitch-x: -0.12em;
  }
  54% {
    opacity: 0.9;
    --glitch-top: 70%;
    --glitch-bottom: 18%;
    --glitch-x: 0.08em;
  }
  82% {
    opacity: 0.38;
    --glitch-top: 24%;
    --glitch-bottom: 62%;
    --glitch-x: -0.04em;
  }
  100% {
    opacity: 0;
  }
}

@keyframes page-noise-b {
  0% {
    opacity: 0.72;
    --glitch-top: 74%;
    --glitch-bottom: 12%;
    --glitch-x: 0.1em;
  }
  18% {
    opacity: 0.45;
    --glitch-top: 6%;
    --glitch-bottom: 80%;
    --glitch-x: -0.08em;
  }
  40% {
    opacity: 0.82;
    --glitch-top: 36%;
    --glitch-bottom: 46%;
    --glitch-x: 0.14em;
  }
  66% {
    opacity: 0.5;
    --glitch-top: 58%;
    --glitch-bottom: 30%;
    --glitch-x: -0.06em;
  }
  100% {
    opacity: 0;
  }
}

.button-contact,
.button-download,
.button-mail {
  padding-left: 16px;
}

.button-contact::selection,
.button-download::selection,
.button-mail::selection {
  background: rgba(255, 95, 109, 0.35);
}

.button-small {
  justify-self: end;
}

.menu-button {
  display: none;
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 48px;
}

.section-frame {
  border-bottom: 1px solid var(--line-soft);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 77px);
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(34px, 4.5vw, 56px) clamp(0px, 2vw, 28px) clamp(34px, 4.5vw, 56px);
}

.hero-copy {
  max-width: 640px;
  justify-self: end;
}

.signature {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0.22em 0.42em 0.58em;
  color: #f7f7f3;
  font-family: var(--script);
  line-height: 1.16;
  white-space: nowrap;
  overflow: visible;
  clip-path: inset(0 100% -0.8em 0);
  animation: write-in 1.5s cubic-bezier(0.7, 0, 0.2, 1) 200ms forwards;
}

.signature::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: 0.14em;
  width: 105%;
  height: 0.55em;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
  transform: scaleX(0) rotate(-4deg);
  transform-origin: left center;
  animation: signature-swish 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.15s forwards;
}

.signature-small {
  font-size: 22px;
}

.signature-kicker {
  margin-bottom: 13px;
  font-size: clamp(20px, 2vw, 27px);
}

.signature-large {
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 84px);
}

@keyframes write-in {
  to {
    clip-path: inset(0 -0.7em -0.8em 0);
  }
}

@keyframes signature-swish {
  to {
    transform: scaleX(1) rotate(-4deg);
  }
}


h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero-meta {
  max-width: 34ch;
  margin-bottom: 20px;
  color: #f4f4f2;
  font-family: var(--mono);
  font-size: clamp(15px, 1.75vw, 22px);
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.55;
}

.hero-text span,
.hero-text a,
.contact-follow a {
  color: var(--accent);
}

.hero-text a,
.contact-follow a {
  border-bottom: 1px solid rgba(255, 95, 109, 0.34);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-text a:hover,
.contact-follow a:hover {
  border-color: var(--accent);
  background: rgba(255, 95, 109, 0.1);
  color: #fff;
}

.hero-text em {
  display: block;
  margin-top: 18px;
  color: #f2f2ee;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}

.text-link {
  color: #e8e8e4;
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent);
}

.portrait-stage {
  position: relative;
  min-height: clamp(390px, 42vw, 535px);
  isolation: isolate;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  inset: 5% 4% 0 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0) 42%, rgba(5, 5, 5, 0.34) 72%, rgba(5, 5, 5, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0) 54%, rgba(5, 5, 5, 0.84) 95%, #050505 100%),
    radial-gradient(circle at 58% 50%, rgba(255, 255, 255, 0.08), transparent 52%);
}

.portrait-grid {
  position: absolute;
  left: -7%;
  bottom: 9%;
  z-index: 3;
  width: min(48vw, 430px);
  aspect-ratio: 1;
  opacity: 0.82;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 39px 39px;
  mix-blend-mode: screen;
  mask-image:
    radial-gradient(circle at 50% 50%, black 0 42%, rgba(0, 0, 0, 0.78) 55%, transparent 76%),
    linear-gradient(90deg, transparent 0%, black 13%, black 80%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 14%, black 78%, transparent 100%);
  mask-composite: intersect;
}

.portrait-grid::after {
  content: "";
  position: absolute;
  inset: 24%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  filter: blur(20px);
}

.pixel {
  position: absolute;
  z-index: 4;
  background: #2b2b2b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pixel-lg {
  top: 14%;
  right: 2%;
  width: 88px;
  height: 88px;
}

.pixel-md {
  left: -3%;
  bottom: 7%;
  width: 86px;
  height: 86px;
}

.pixel-sm {
  top: 38%;
  right: 2%;
  width: 36px;
  height: 36px;
}

.portrait-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(92%, 590px);
  margin: 0;
  background: #050505;
  z-index: 2;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.2) brightness(0.9);
  mix-blend-mode: screen;
  mask-image:
    linear-gradient(90deg, black 0 74%, rgba(0, 0, 0, 0.6) 87%, transparent 100%),
    linear-gradient(180deg, black 0 62%, rgba(0, 0, 0, 0.72) 76%, transparent 98%);
  mask-composite: intersect;
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 54%, rgba(5, 5, 5, 0.66) 78%, #050505 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0) 58%, rgba(5, 5, 5, 0.42) 84%, #050505 100%);
}

.portrait-card figcaption {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.portrait-fallback {
  min-height: clamp(360px, 38vw, 450px);
}

.portrait-fallback::before {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 82%;
  aspect-ratio: 0.78;
  border-radius: 46% 46% 8% 8%;
  background:
    radial-gradient(ellipse at 56% 33%, rgba(230, 230, 224, 0.3) 0 19%, transparent 19.4%),
    radial-gradient(ellipse at 51% 28%, #111 0 34%, transparent 34.5%),
    linear-gradient(90deg, transparent 0 48%, rgba(230, 230, 224, 0.22) 48.5% 61%, transparent 61.5%),
    radial-gradient(ellipse at 56% 82%, #111 0 42%, transparent 42.4%);
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  mask-image: linear-gradient(180deg, black 0 72%, transparent 96%);
}

.portrait-fallback::after {
  content: "";
  position: absolute;
  right: 23%;
  bottom: 18%;
  width: 38%;
  height: 52%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  transform: rotate(8deg);
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line-soft);
}

.serif-title {
  max-width: 650px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.96;
}

.intro-strip p {
  max-width: 780px;
  color: #e8e8e4;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.5;
}

.status-list {
  align-self: end;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.status-list p {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  margin: 0;
  font-size: clamp(12px, 1.1vw, 15px);
}

.status-list span {
  color: #fff;
  font-family: var(--mono);
  font-size: 1em;
  line-height: 1;
}

.status-list b,
.dot-label {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-list b {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
  line-height: 1.18;
}

.dot-label,
.dot-text {
  color: #f4f4f2;
}

.status-list p:nth-child(3),
.status-list p:nth-child(4) {
  color: var(--accent);
}

.work,
.about,
.notes,
.skills-strip,
.resume,
.contact {
  padding: clamp(54px, 8vw, 92px) 0;
}

.resume {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.resume h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.05;
}

.resume p:not(.dot-label) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.dot-label {
  margin-bottom: 22px;
  color: transparent;
  font-size: 13px;
}

.section-heading h2,
.about h2,
.contact h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.projects-page {
  padding: clamp(64px, 9vw, 116px) 0;
}

.projects-page-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.projects-page-heading .text-link {
  display: inline-flex;
  margin-bottom: 32px;
}

.projects-page-heading h1 {
  max-width: 760px;
  margin-bottom: 22px;
}

.projects-page-heading p:not(.dot-label) {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.project-list-wide {
  grid-template-columns: 1fr;
}

.project-list-wide .project-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
}

.project-card {
  min-height: 0;
  padding: clamp(18px, 2.4vw, 30px);
  background: rgba(9, 9, 9, 0.94);
}

.project-media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #050505;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.28);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 58%, rgba(5, 5, 5, 0.68) 100%),
    linear-gradient(90deg, rgba(255, 95, 109, 0.12), transparent 24%, rgba(26, 240, 220, 0.08) 82%, transparent),
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.035) 7px 8px);
  mix-blend-mode: screen;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.85) contrast(1.12) brightness(0.82);
  transition: transform 240ms ease, filter 240ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.025);
  filter: grayscale(0.45) contrast(1.16) brightness(0.9);
}

.project-body {
  display: grid;
  align-content: center;
  min-height: 260px;
}

.project-body .dot-label {
  margin-bottom: 16px;
}

.project-card h3,
.note-row h3 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.18;
}

.project-card p:not(.dot-label),
.note-row p,
.about-text p {
  max-width: 760px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
}

.project-stack {
  margin: 18px 0 0;
  color: #f0f0ec;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-card a,
.project-action-muted {
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.project-card a {
  color: var(--accent);
}

.project-action-muted {
  color: var(--dim);
  opacity: 0.78;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.project-actions a {
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 95, 109, 0.28);
}

.project-actions .project-action-muted {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-actions a:hover {
  color: #fff;
  border-color: var(--accent);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 8vw, 96px);
}

.about-copy .dot-label {
  margin-bottom: 28px;
}

.about-text {
  align-self: end;
}

.skills-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.skills-copy h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.02;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.skill-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 999px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.022);
  color: #deded9;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notes {
  display: grid;
  gap: 1px;
}

.notes > .dot-label {
  margin-bottom: 34px;
}

.note-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.7fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}

.note-row span {
  color: var(--dim);
  font-family: var(--mono);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.contact h2 {
  max-width: 700px;
}

.contact-follow {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.button-mail {
  transform: translateY(calc(-1 * clamp(34px, 4vw, 58px)));
}

.button-mail:hover {
  transform: translateY(calc(-1 * clamp(34px, 4vw, 58px) - 1px));
}

.site-footer {
  display: grid;
  justify-items: center;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, 720px);
  }

  .nav-links,
  .button-small {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 188px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.55),
      inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
  }

  html.nav-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 9px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.055);
  }

  .menu-button {
    display: grid;
    width: 34px;
    height: 34px;
    align-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  html.nav-open .menu-button span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  html.nav-open .menu-button span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  main {
    width: min(100% - 28px, 720px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 74px;
    padding-bottom: 0;
    text-align: center;
  }

  .hero-copy {
    justify-self: center;
    order: 1;
  }

  .hero-actions {
    justify-content: center;
  }

  .portrait-stage {
    min-height: 480px;
    margin-top: 12px;
    order: 2;
  }

  .portrait-card {
    left: 50%;
    width: min(86%, 430px);
    transform: translateX(-50%);
  }

  .portrait-grid {
    left: 50%;
    bottom: 5%;
    width: 560px;
    max-width: 100%;
    transform: translateX(-50%);
  }

  .pixel-lg {
    right: 8%;
  }

  .pixel-md {
    left: 8%;
  }

  .intro-strip,
  .resume,
  .about,
  .skills-strip {
    grid-template-columns: 1fr;
  }

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

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-list-wide .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-list-wide .project-actions {
    grid-column: auto;
  }

  .project-body {
    min-height: 0;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-tags {
    justify-content: flex-start;
  }

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

  .button-mail,
  .button-mail:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .signature-small {
    display: inline-block;
    font-size: 18px;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-actions {
    display: grid;
    gap: 20px;
  }

  .button {
    width: auto;
  }

  .portrait-stage {
    min-height: 430px;
  }

  .serif-title {
    font-size: clamp(38px, 12vw, 58px);
  }

  .intro-strip p {
    font-size: 18px;
  }

  .status-list p {
    grid-template-columns: 34px minmax(0, 1fr);
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .status-list b {
    white-space: normal;
  }

  .project-card {
    min-height: 210px;
    padding: 22px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
    width: min(100% - 28px, 720px);
  }

}

@media (min-width: 721px) and (max-width: 900px) {
  main {
    width: min(100% - 40px, 860px);
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: calc(100vh - 77px);
    padding-top: 42px;
    padding-bottom: 42px;
    text-align: left;
  }

  .hero-copy {
    order: 2;
    justify-self: end;
    max-width: 390px;
  }

  .portrait-stage {
    order: 1;
    min-height: 500px;
    margin-top: 0;
  }

  .portrait-card {
    left: 0;
    right: auto;
    width: min(100%, 430px);
    transform: none;
  }

  .portrait-grid {
    left: 0;
    right: auto;
    bottom: 8%;
    width: min(390px, 118%);
    transform: none;
  }

  h1 {
    font-size: clamp(44px, 6.4vw, 58px);
  }

  .hero-meta {
    max-width: 28ch;
    font-size: clamp(14px, 2vw, 18px);
  }

  .hero-text {
    font-size: 14.5px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
