:root {
  --pf-bg: #080913;
  --pf-panel: rgba(19, 21, 39, 0.86);
  --pf-panel-strong: #151728;
  --pf-line: rgba(221, 226, 255, 0.14);
  --pf-text: #f8f8ff;
  --pf-soft: #b8bdd0;
  --pf-muted: #80869c;
  --pf-blue: #62a8ff;
  --pf-cyan: #58e8dc;
  --pf-violet: #9d75ff;
  --pf-pink: #f45e9b;
  --pf-coral: #ff765f;
  --pf-lime: #b9f36a;
  --pf-yellow: #ffd85e;
}

.portfolio-page {
  overflow-x: hidden;
  color: var(--pf-text);
  background:
    radial-gradient(ellipse at 84% 4%, rgba(244, 94, 155, 0.16), transparent 27rem),
    radial-gradient(ellipse at 14% 18%, rgba(72, 118, 255, 0.18), transparent 34rem),
    radial-gradient(ellipse at 66% 58%, rgba(122, 80, 226, 0.1), transparent 44rem),
    var(--pf-bg);
}

.portfolio-page::before {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(159, 169, 205, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 169, 205, 0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px);
  background-position: center, center, 36px 21px;
  background-size: 72px 72px, 72px 72px, 223px 223px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.58) 64%, transparent);
}

.portfolio-page::after {
  inset: -30%;
  opacity: 0.3;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(65, 132, 255, 0.34), transparent 20%),
    radial-gradient(ellipse at 74% 12%, rgba(240, 72, 140, 0.29), transparent 18%),
    radial-gradient(ellipse at 65% 64%, rgba(139, 92, 246, 0.16), transparent 24%);
  filter: blur(92px);
}

.portfolio-page .scroll-progress {
  background: linear-gradient(90deg, var(--pf-cyan), var(--pf-blue), var(--pf-violet), var(--pf-pink), var(--pf-coral));
  box-shadow: 0 0 16px rgba(244, 94, 155, 0.45);
}

.portfolio-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 16px;
  pointer-events: none;
}

.portfolio-nav-shell {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(140px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 64px;
  padding: 8px 10px 8px 14px;
  background: rgba(12, 13, 25, 0.74);
  border: 1px solid rgba(213, 220, 255, 0.16);
  border-radius: 22px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px) saturate(145%);
  pointer-events: auto;
}

.portfolio-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  color: var(--pf-text);
  text-decoration: none;
}

.portfolio-brand:hover {
  color: var(--pf-text);
}

.portfolio-brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.portfolio-brand strong {
  font-size: 0.92rem;
  font-weight: 790;
  letter-spacing: -0.02em;
}

.portfolio-brand small {
  margin-top: 2px;
  color: var(--pf-muted);
  font-size: 0.57rem;
  font-weight: 670;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-content: center;
  background: linear-gradient(135deg, rgba(98, 168, 255, 0.18), rgba(244, 94, 155, 0.14));
  border: 1px solid rgba(170, 188, 255, 0.22);
  border-radius: 11px;
}

.portfolio-brand-mark i {
  display: block;
  background: var(--pf-blue);
  border-radius: 2px;
  box-shadow: 0 0 9px rgba(98, 168, 255, 0.38);
}

.portfolio-brand-mark i:nth-child(2) {
  background: var(--pf-pink);
  box-shadow: 0 0 9px rgba(244, 94, 155, 0.38);
}

.portfolio-brand-mark i:nth-child(3) {
  background: var(--pf-cyan);
  box-shadow: 0 0 9px rgba(88, 232, 220, 0.38);
}

.portfolio-brand-mark i:nth-child(4) {
  background: var(--pf-violet);
  box-shadow: 0 0 9px rgba(157, 117, 255, 0.38);
}

.portfolio-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.portfolio-nav a {
  padding: 8px 11px;
  color: var(--pf-soft);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.portfolio-nav a:hover {
  color: var(--pf-text);
  background: rgba(255, 255, 255, 0.055);
}

.nav-contact {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
  padding: 10px 14px;
  color: #10131f;
  background: linear-gradient(120deg, var(--pf-yellow), #ff9d65 62%, #ff7ca7);
  border: 1px solid rgba(255, 235, 170, 0.38);
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(255, 112, 99, 0.18);
  font-size: 0.75rem;
  font-weight: 790;
  text-decoration: none;
  transition:
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-contact:hover {
  color: #090b13;
  box-shadow: 0 13px 32px rgba(255, 112, 99, 0.3);
  transform: translateY(-2px);
}

.portfolio-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: clamp(52px, 7vw, 104px);
  align-items: center;
  min-height: calc(100svh - 96px);
  padding-block: 80px 120px;
}

.portfolio-hero::before {
  position: absolute;
  top: 0;
  left: 52%;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  background: conic-gradient(from 40deg, rgba(88, 232, 220, 0.16), rgba(98, 168, 255, 0.22), rgba(157, 117, 255, 0.2), rgba(244, 94, 155, 0.18), rgba(88, 232, 220, 0.16));
  border-radius: 50%;
  filter: blur(85px);
  content: "";
  transform: translateX(-16%);
  animation: pf-hue-drift 10s ease-in-out infinite alternate;
}

.portfolio-hero-copy {
  position: relative;
  z-index: 3;
}

.hero-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: 0 0 23px;
  padding: 7px 11px;
  color: var(--pf-soft);
  background: rgba(18, 22, 41, 0.66);
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker > span {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--pf-lime);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(185, 243, 106, 0.72);
}

.hero-kicker > span::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(185, 243, 106, 0.34);
  border-radius: inherit;
  content: "";
  animation: pf-pulse-ring 2.2s ease-out infinite;
}

.portfolio-title {
  display: grid;
  gap: 0.03em;
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.35rem);
  font-weight: 810;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.portfolio-title span {
  display: block;
}

.typing-line {
  min-height: 0.91em;
}

.typing-line.is-active::after {
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  margin-left: 0.075em;
  background: var(--pf-text);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(248, 248, 255, 0.38);
  content: "";
  animation: pf-caret-blink 760ms steps(1, end) infinite;
  transform: translateY(0.06em);
}

.title-accent.typing-line.is-active::after {
  background: var(--pf-cyan);
  box-shadow: 0 0 16px rgba(88, 232, 220, 0.62);
}

.title-accent {
  width: fit-content;
  padding-right: 0.06em;
  color: transparent;
  background: linear-gradient(95deg, var(--pf-blue), var(--pf-cyan) 30%, var(--pf-yellow) 58%, var(--pf-coral) 78%, var(--pf-pink));
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: pf-gradient-shift 7s ease-in-out infinite alternate;
}

.portfolio-intro {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--pf-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.78;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.portfolio-button {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 10px 20px;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.button-color {
  color: #0a1018;
  background: linear-gradient(115deg, var(--pf-cyan), #75c5ff 52%, #b599ff);
  border: 1px solid rgba(195, 251, 255, 0.42);
  box-shadow: 0 14px 34px rgba(90, 181, 241, 0.2);
}

.button-color:hover {
  color: #070b13;
  box-shadow: 0 18px 42px rgba(90, 181, 241, 0.32);
  transform: translateY(-2px);
}

.button-dark {
  color: var(--pf-soft);
  background: rgba(17, 19, 35, 0.68);
  border: 1px solid var(--pf-line);
}

.button-dark:hover {
  color: var(--pf-text);
  border-color: rgba(213, 220, 255, 0.3);
  transform: translateY(-2px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  margin: 39px 0 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--pf-line);
}

.hero-facts > div {
  display: grid;
  gap: 1px;
}

.hero-facts dt {
  color: var(--pf-muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--pf-text);
  font-size: 0.82rem;
  font-weight: 690;
}

.hero-playground {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 30px 10px;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.hero-playground::before,
.hero-playground::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.hero-playground::before {
  top: 5%;
  right: 0;
  width: 150px;
  height: 150px;
  background: var(--pf-pink);
  filter: blur(70px);
  opacity: 0.3;
}

.hero-playground::after {
  bottom: 2%;
  left: -2%;
  width: 190px;
  height: 190px;
  background: var(--pf-cyan);
  filter: blur(85px);
  opacity: 0.24;
}

.playground-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.14), transparent 34%);
  pointer-events: none;
  transition: opacity 200ms ease;
}

.hero-playground.is-tilting .playground-glow {
  opacity: 1;
}

.game-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(14, 16, 31, 0.92);
  border: 1px solid rgba(220, 226, 255, 0.22);
  border-radius: 24px;
  box-shadow:
    0 45px 100px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  transform: translateZ(20px) rotate(1.5deg);
}

.game-window-bar,
.game-window-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  color: var(--pf-muted);
  background: rgba(8, 9, 18, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 690;
  letter-spacing: 0.08em;
}

.game-window-bar {
  border-bottom: 1px solid var(--pf-line);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  background: var(--pf-coral);
  border-radius: 50%;
}

.window-dots i:nth-child(2) {
  background: var(--pf-yellow);
}

.window-dots i:nth-child(3) {
  background: var(--pf-lime);
}

.window-live {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #b9f3c0;
}

.window-live i,
.footer-signal {
  width: 6px;
  height: 6px;
  background: #6bea84;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(107, 234, 132, 0.68);
}

.game-screen {
  --parallax-y: 0px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 21% 18%, rgba(88, 232, 220, 0.17), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(244, 94, 155, 0.18), transparent 23%),
    linear-gradient(155deg, #151a37, #15132a 55%, #101323);
  transform: translate3d(0, var(--parallax-y), 0) scale(1.035);
  transition: transform 100ms linear;
}

.game-grid {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(177, 190, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 190, 234, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  animation: pf-grid-move 14s linear infinite;
}

.game-score,
.game-combo {
  position: absolute;
  top: 22px;
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  background: rgba(7, 9, 22, 0.48);
  border: 1px solid rgba(212, 220, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.game-score {
  left: 22px;
}

.game-combo {
  right: 22px;
  text-align: right;
}

.game-score span,
.game-combo span,
.game-message span {
  color: var(--pf-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.game-score strong,
.game-combo strong {
  color: var(--pf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.game-combo strong {
  color: var(--pf-lime);
}

.block-field {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -47%) rotate(-5deg);
}

.block {
  position: absolute;
  width: 54px;
  height: 54px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 34%), var(--pf-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  box-shadow:
    0 13px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation: pf-block-float 5.4s ease-in-out infinite;
}

.block-a { top: 3%; left: 42%; background-color: var(--pf-pink); }
.block-b { top: 25%; left: 12%; background-color: var(--pf-blue); animation-delay: -1s; }
.block-c { top: 22%; right: 8%; background-color: var(--pf-cyan); animation-delay: -2.2s; }
.block-d { top: 51%; left: 0; background-color: var(--pf-yellow); animation-delay: -3s; }
.block-e { top: 48%; right: 0; background-color: var(--pf-violet); animation-delay: -1.7s; }
.block-f { bottom: 1%; left: 23%; background-color: var(--pf-coral); animation-delay: -0.6s; }
.block-g { right: 23%; bottom: 0; background-color: var(--pf-lime); animation-delay: -2.7s; }
.block-h { top: 37%; left: 34%; width: 42px; height: 42px; background-color: #4f67dc; animation-delay: -1.4s; }
.block-i { right: 32%; bottom: 27%; width: 39px; height: 39px; background-color: #e75b8e; animation-delay: -3.4s; }

.player-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0 3%, transparent 4%),
    radial-gradient(circle at 38% 34%, #c0fbff, #6fbdf9 24%, #7351d7 62%, #282653 100%);
  border: 1px solid rgba(222, 234, 255, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 35px rgba(98, 168, 255, 0.64),
    0 0 80px rgba(157, 117, 255, 0.35);
  transform: translate(-50%, -50%);
  animation: pf-core-pulse 4s ease-in-out infinite;
}

.player-core::before,
.player-core::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(133, 209, 255, 0.28);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.player-core::before {
  width: 116px;
  height: 116px;
}

.player-core::after {
  width: 157px;
  height: 157px;
  border-style: dashed;
  animation: pf-spin 18s linear infinite;
}

.game-message {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(7, 9, 22, 0.64);
  border: 1px solid rgba(212, 220, 255, 0.15);
  border-radius: 11px;
  backdrop-filter: blur(10px);
}

.game-message strong {
  color: var(--pf-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.game-window-footer {
  border-top: 1px solid var(--pf-line);
}

.game-window-footer span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 1px;
  min-width: 112px;
  padding: 10px 13px;
  background: rgba(14, 16, 32, 0.8);
  border: 1px solid rgba(216, 223, 255, 0.2);
  border-radius: 11px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  animation: pf-badge-float 5s ease-in-out infinite;
  transform: translateZ(45px);
}

.floating-badge span {
  color: var(--pf-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 740;
  letter-spacing: 0.1em;
}

.floating-badge strong {
  color: var(--pf-text);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.badge-unity {
  top: 8%;
  right: -4%;
}

.badge-unity strong {
  color: var(--pf-cyan);
}

.badge-input {
  bottom: 11%;
  left: -5%;
  animation-delay: -2.1s;
}

.badge-input strong {
  color: var(--pf-yellow);
}

.portfolio-scroll-cue {
  position: absolute;
  bottom: 37px;
  left: 24px;
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--pf-muted);
  font-size: 0.6rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.portfolio-scroll-cue i {
  position: relative;
  width: 39px;
  height: 1px;
  overflow: hidden;
  background: var(--pf-line);
}

.portfolio-scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--pf-cyan), transparent);
  content: "";
  animation: pf-line-travel 2s ease-in-out infinite;
  transform: translateX(-100%);
}

.motion-strip {
  position: relative;
  z-index: 4;
  overflow: hidden;
  color: #10121b;
  background: linear-gradient(90deg, var(--pf-cyan), #8fc6ff, #d39aff, #ff93b7, #ff9b69, var(--pf-yellow));
  border-block: 1px solid rgba(255, 255, 255, 0.28);
  transform: rotate(-1.2deg) scale(1.02);
}

.motion-strip > div {
  display: flex;
  gap: 21px;
  align-items: center;
  width: max-content;
  padding-block: 13px;
  animation: pf-marquee 22s linear infinite;
}

.motion-strip span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 860;
  letter-spacing: 0.14em;
}

.motion-strip i {
  width: 7px;
  height: 7px;
  background: #151725;
  border-radius: 2px;
  transform: rotate(45deg);
}

.portfolio-section {
  position: relative;
  padding-block: clamp(100px, 12vw, 160px);
}

.portfolio-section-heading {
  display: flex;
  gap: 52px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(52px, 7vw, 84px);
}

.portfolio-section-heading > div {
  max-width: 820px;
}

.portfolio-section-heading > p {
  max-width: 370px;
  margin: 0 0 8px;
  color: var(--pf-soft);
  font-size: 0.9rem;
  line-height: 1.76;
}

.portfolio-section-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 17px;
  color: var(--pf-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portfolio-section-label span {
  color: var(--pf-muted);
}

.portfolio-section-heading h2,
.profile-copy h2,
.contact-panel h2 {
  margin: 0;
  color: var(--pf-text);
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.projects-section {
  background:
    radial-gradient(ellipse at 5% 32%, rgba(98, 168, 255, 0.12), transparent 32rem),
    radial-gradient(ellipse at 92% 68%, rgba(244, 94, 155, 0.11), transparent 28rem),
    rgba(7, 8, 17, 0.66);
}

.projects-grid {
  display: grid;
  gap: 18px;
}

.project-card,
.project-slot,
.principle-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --pointer-x: 50%;
  --pointer-y: 50%;
  transform-style: preserve-3d;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 180ms ease-out;
}

.project-card.is-visible,
.principle-card.is-visible {
  transform: perspective(1300px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.project-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 1.08fr) minmax(330px, 0.92fr);
  min-height: 570px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.07), transparent 27%),
    linear-gradient(145deg, rgba(26, 30, 56, 0.92), rgba(13, 15, 29, 0.96));
  border: 1px solid var(--pf-line);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.project-featured:hover {
  border-color: rgba(209, 219, 255, 0.3);
  box-shadow: 0 38px 96px rgba(0, 0, 0, 0.4);
}

.project-art {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 232, 220, 0.23), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(244, 94, 155, 0.28), transparent 30%),
    linear-gradient(145deg, #1a2550, #2b174a 58%, #11182e);
  border: 1px solid rgba(224, 230, 255, 0.16);
  border-radius: 20px;
}

.project-art::after {
  position: absolute;
  inset: auto -10% -38% 15%;
  height: 65%;
  background: rgba(110, 78, 215, 0.3);
  border-radius: 50%;
  filter: blur(45px);
  content: "";
}

.project-art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(215, 225, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 225, 255, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 96%);
}

.bloom-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 310px;
  height: 310px;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.bloom-shape i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin: -45px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 34%),
    var(--pf-yellow);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px 24px 40px 24px;
  box-shadow:
    0 20px 35px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-origin: 50% 50%;
  animation: pf-bloom 6s ease-in-out infinite;
}

.bloom-shape i:nth-child(1) { background-color: var(--pf-pink); transform: translateY(-112px) rotate(45deg); }
.bloom-shape i:nth-child(2) { background-color: var(--pf-coral); transform: translate(88px, -65px) rotate(95deg); }
.bloom-shape i:nth-child(3) { background-color: var(--pf-yellow); transform: translate(98px, 57px) rotate(145deg); }
.bloom-shape i:nth-child(4) { background-color: var(--pf-lime); transform: translateY(109px) rotate(190deg); }
.bloom-shape i:nth-child(5) { background-color: var(--pf-cyan); transform: translate(-95px, 58px) rotate(240deg); }
.bloom-shape i:nth-child(6) { background-color: var(--pf-blue); transform: translate(-94px, -62px) rotate(292deg); }
.bloom-shape i:nth-child(7) { background-color: var(--pf-violet); border-radius: 50%; box-shadow: 0 0 55px rgba(157, 117, 255, 0.58); }

.project-art-score,
.project-art-status {
  position: absolute;
  z-index: 3;
  background: rgba(8, 10, 22, 0.62);
  border: 1px solid rgba(220, 227, 255, 0.18);
  backdrop-filter: blur(12px);
}

.project-art-score {
  top: 20px;
  left: 20px;
  display: grid;
  gap: 1px;
  padding: 11px 13px;
  border-radius: 11px;
}

.project-art-score span {
  color: var(--pf-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.project-art-score strong {
  color: var(--pf-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.project-art-status {
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: var(--pf-soft);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 710;
}

.project-art-status i {
  width: 7px;
  height: 7px;
  background: var(--pf-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(185, 243, 106, 0.68);
}

.project-content {
  display: flex;
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
  flex-direction: column;
  justify-content: center;
}

.project-topline,
.project-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--pf-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 670;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 38px 0 18px;
  color: var(--pf-text);
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.project-content > p {
  margin: 0;
  color: var(--pf-soft);
  font-size: 0.96rem;
  line-height: 1.82;
}

.project-tags,
.toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 38px;
  padding: 0;
  list-style: none;
}

.project-tags li,
.toolkit span {
  padding: 7px 10px;
  color: var(--pf-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--pf-line);
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 670;
}

.project-footer {
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid var(--pf-line);
  line-height: 1.5;
}

.project-state {
  color: var(--pf-lime);
}

.project-slot {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  padding: clamp(30px, 5vw, 52px);
  background: rgba(16, 18, 34, 0.55);
  border: 1px dashed rgba(202, 211, 247, 0.2);
  border-radius: 24px;
}

.slot-visual {
  position: relative;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  background:
    linear-gradient(rgba(190, 202, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 202, 242, 0.07) 1px, transparent 1px),
    rgba(20, 23, 43, 0.72);
  background-size: 28px 28px;
  border: 1px solid var(--pf-line);
  border-radius: 20px;
}

.slot-visual span {
  position: relative;
  z-index: 2;
  color: var(--pf-soft);
  font-size: 2.4rem;
  font-weight: 300;
}

.slot-visual i {
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(98, 168, 255, 0.22);
  border: 1px solid rgba(98, 168, 255, 0.3);
  border-radius: 9px;
}

.slot-visual i:nth-of-type(1) { top: 18px; left: 24px; transform: rotate(12deg); }
.slot-visual i:nth-of-type(2) { top: 28px; right: 20px; background: rgba(244, 94, 155, 0.2); border-color: rgba(244, 94, 155, 0.28); transform: rotate(-17deg); }
.slot-visual i:nth-of-type(3) { right: 30px; bottom: 17px; background: rgba(88, 232, 220, 0.18); border-color: rgba(88, 232, 220, 0.28); transform: rotate(21deg); }

.slot-label {
  margin: 0 0 12px;
  color: var(--pf-yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-slot h3 {
  margin: 0 0 13px;
  color: var(--pf-text);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.project-slot p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--pf-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.approach-section {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 18%, rgba(157, 117, 255, 0.13), transparent 30rem),
    rgba(10, 11, 22, 0.7);
  border-top: 1px solid rgba(215, 222, 255, 0.08);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.principle-card {
  position: relative;
  display: flex;
  min-height: 430px;
  padding: clamp(27px, 3.5vw, 39px);
  overflow: hidden;
  flex-direction: column;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(27, 30, 54, 0.86), rgba(14, 16, 31, 0.9));
  border: 1px solid var(--pf-line);
  border-radius: 22px;
}

.principle-card:hover {
  border-color: rgba(218, 225, 255, 0.28);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.26);
}

.principle-card::after {
  position: absolute;
  right: -35%;
  bottom: -35%;
  width: 85%;
  height: 85%;
  background: var(--card-glow, var(--pf-cyan));
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.1;
  content: "";
}

.card-cyan { --card-glow: var(--pf-cyan); }
.card-violet { --card-glow: var(--pf-violet); }
.card-coral { --card-glow: var(--pf-coral); }

.principle-number {
  color: var(--pf-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.principle-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 45px 0 auto;
}

.principle-card h3 {
  position: relative;
  z-index: 2;
  margin: 40px 0 12px;
  color: var(--pf-text);
  font-size: 1.35rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.principle-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--pf-soft);
  font-size: 0.88rem;
  line-height: 1.72;
}

.icon-prototype i {
  position: absolute;
  width: 57px;
  height: 57px;
  background: rgba(88, 232, 220, 0.16);
  border: 1px solid rgba(88, 232, 220, 0.34);
  border-radius: 15px;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.18);
}

.icon-prototype i:nth-child(1) { top: 0; left: 0; transform: rotate(-8deg); }
.icon-prototype i:nth-child(2) { top: 22px; right: 0; background: rgba(98, 168, 255, 0.17); border-color: rgba(98, 168, 255, 0.34); transform: rotate(9deg); }
.icon-prototype i:nth-child(3) { bottom: 0; left: 27px; background: rgba(185, 243, 106, 0.15); border-color: rgba(185, 243, 106, 0.3); transform: rotate(3deg); }

.icon-device {
  display: grid;
  place-items: center;
}

.icon-device::before {
  width: 63px;
  height: 105px;
  background: rgba(157, 117, 255, 0.11);
  border: 2px solid rgba(175, 151, 255, 0.42);
  border-radius: 16px;
  box-shadow: 0 0 32px rgba(157, 117, 255, 0.18);
  content: "";
}

.icon-device::after {
  position: absolute;
  bottom: 13px;
  width: 19px;
  height: 3px;
  background: rgba(215, 203, 255, 0.68);
  border-radius: 999px;
  content: "";
}

.icon-device i {
  position: absolute;
  width: 44px;
  height: 58px;
  background:
    linear-gradient(rgba(200, 185, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 185, 255, 0.13) 1px, transparent 1px);
  background-size: 11px 11px;
  border-radius: 6px;
}

.icon-feedback {
  border: 1px solid rgba(255, 118, 95, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(255, 118, 95, 0.13);
}

.icon-feedback::before,
.icon-feedback::after,
.icon-feedback i {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.icon-feedback::before {
  inset: 20px;
  border: 1px solid rgba(255, 118, 95, 0.42);
}

.icon-feedback::after {
  inset: 42px;
  background: var(--pf-coral);
  box-shadow: 0 0 22px rgba(255, 118, 95, 0.7);
}

.icon-feedback i {
  top: 11px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--pf-yellow);
  box-shadow: 0 0 12px rgba(255, 216, 94, 0.6);
  transform: translateX(-50%);
}

.icon-feedback i:nth-child(2) {
  top: auto;
  right: 12px;
  bottom: 18px;
  left: auto;
}

.profile-section {
  background:
    radial-gradient(ellipse at 10% 60%, rgba(88, 232, 220, 0.1), transparent 30rem),
    rgba(6, 7, 15, 0.76);
  border-top: 1px solid rgba(215, 222, 255, 0.08);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.78fr);
  gap: clamp(55px, 9vw, 130px);
  align-items: center;
}

.profile-copy h2 {
  max-width: 790px;
}

.profile-copy > p:not(.portfolio-section-label) {
  max-width: 680px;
  margin: 29px 0 0;
  color: var(--pf-soft);
  font-size: 1rem;
  line-height: 1.84;
}

.toolkit {
  margin-bottom: 0;
}

.build-console {
  overflow: hidden;
  background: rgba(12, 14, 27, 0.86);
  border: 1px solid var(--pf-line);
  border-radius: 21px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.32);
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--pf-muted);
  background: rgba(7, 8, 17, 0.74);
  border-bottom: 1px solid var(--pf-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.console-bar i {
  width: 7px;
  height: 7px;
  background: var(--pf-cyan);
  border-radius: 50%;
  box-shadow: 0 0 11px rgba(88, 232, 220, 0.6);
}

.build-console ol {
  margin: 0;
  padding: 13px 20px;
  list-style: none;
}

.build-console li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 17px 2px;
  border-bottom: 1px solid rgba(217, 224, 255, 0.09);
}

.build-console li:last-child {
  border-bottom: 0;
}

.build-console li > span {
  color: var(--pf-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.56rem;
}

.build-console code {
  color: var(--pf-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.build-console li strong {
  color: var(--pf-lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.build-console li:nth-child(3) strong {
  color: var(--pf-yellow);
}

.build-console li:nth-child(4) strong {
  color: var(--pf-muted);
}

.build-console > p {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 15px 20px;
  color: var(--pf-muted);
  background: rgba(9, 10, 21, 0.66);
  border-top: 1px solid var(--pf-line);
  font-size: 0.67rem;
}

.build-console > p i {
  width: 6px;
  height: 6px;
  background: var(--pf-pink);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(244, 94, 155, 0.56);
}

.portfolio-contact {
  padding-block: clamp(90px, 12vw, 150px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 20%, rgba(244, 94, 155, 0.1), transparent 28rem),
    var(--pf-bg);
  border-top: 1px solid rgba(215, 222, 255, 0.08);
}

.contact-panel {
  position: relative;
  padding: clamp(48px, 8vw, 100px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(27, 33, 67, 0.96), rgba(28, 19, 50, 0.96));
  border: 1px solid rgba(215, 222, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.38);
}

.contact-panel::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(205, 214, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 214, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(90deg, transparent, #000);
  content: "";
}

.contact-panel > *:not(.contact-orb) {
  position: relative;
  z-index: 2;
}

.contact-panel h2 {
  max-width: 830px;
}

.contact-panel > p:not(.portfolio-section-label) {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--pf-soft);
  font-size: 0.96rem;
  line-height: 1.82;
}

.contact-panel > a {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin-top: 44px;
  padding: 19px 22px;
  color: var(--pf-text);
  background: rgba(8, 10, 24, 0.45);
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 690;
  text-decoration: none;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.contact-panel > a:hover {
  color: var(--pf-text);
  background: rgba(8, 10, 24, 0.7);
  border-color: rgba(220, 228, 255, 0.32);
  transform: translateY(-2px);
}

.contact-panel > a i {
  color: var(--pf-cyan);
  font-style: normal;
}

.contact-orb {
  --parallax-y: 0px;
  position: absolute;
  top: 50%;
  right: -8%;
  width: 430px;
  height: 430px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 2%),
    conic-gradient(from 30deg, var(--pf-blue), var(--pf-violet), var(--pf-pink), var(--pf-coral), var(--pf-yellow), var(--pf-cyan), var(--pf-blue));
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(140, 91, 240, 0.32);
  opacity: 0.5;
  filter: saturate(120%);
  transform: translateY(calc(-50% + var(--parallax-y)));
}

.contact-orb::after {
  position: absolute;
  inset: 20%;
  background: #171a35;
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(8, 10, 24, 0.7);
  content: "";
}

.portfolio-footer {
  background: #070810;
  border-top: 1px solid var(--pf-line);
}

.portfolio-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding-block: 34px;
}

.portfolio-footer-inner > p {
  margin: 0;
  color: var(--pf-muted);
  font-size: 0.7rem;
  text-align: center;
}

.portfolio-footer nav {
  display: flex;
  gap: 20px;
  justify-self: end;
}

.portfolio-footer nav a {
  color: var(--pf-muted);
  font-size: 0.7rem;
  text-decoration: none;
}

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

html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

html.js [data-reveal="scale"] {
  transform: translate3d(0, 22px, 0) scale(0.97);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

html.js .hero-playground.is-visible {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

@keyframes pf-pulse-ring {
  0% { opacity: 0.9; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes pf-caret-blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes pf-hue-drift {
  0% { opacity: 0.62; transform: translateX(-18%) scale(0.94) rotate(-8deg); }
  100% { opacity: 0.9; transform: translateX(-12%) scale(1.06) rotate(8deg); }
}

@keyframes pf-gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pf-grid-move {
  to { background-position: 34px 34px; }
}

@keyframes pf-block-float {
  0%, 100% { transform: translateY(-4px) rotate(-2deg); }
  50% { transform: translateY(7px) rotate(2deg); }
}

@keyframes pf-core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.96); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes pf-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pf-badge-float {
  0%, 100% { transform: translateZ(45px) translateY(-4px); }
  50% { transform: translateZ(45px) translateY(7px); }
}

@keyframes pf-line-travel {
  0% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

@keyframes pf-marquee {
  to { transform: translateX(-50%); }
}

@keyframes pf-bloom {
  0%, 100% { filter: saturate(0.95); }
  50% { filter: saturate(1.2) brightness(1.08); }
}

@media (max-width: 1080px) {
  .portfolio-nav-shell {
    grid-template-columns: minmax(200px, 1fr) auto;
  }

  .portfolio-nav {
    display: none;
  }

  .portfolio-hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
    gap: 40px;
  }

  .portfolio-title {
    font-size: clamp(3.8rem, 8.5vw, 6.4rem);
  }

  .badge-unity {
    right: -1%;
  }

  .badge-input {
    left: -1%;
  }

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

@media (max-width: 860px) {
  .portfolio-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 75px 126px;
  }

  .portfolio-hero-copy {
    max-width: 720px;
  }

  .hero-playground {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .portfolio-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .portfolio-section-heading > p {
    max-width: 640px;
  }

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

  .project-art {
    min-height: 500px;
  }

  .project-content {
    min-height: 460px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    display: grid;
    grid-template-columns: 48px 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 250px;
  }

  .principle-icon {
    margin: 0;
  }

  .principle-card h3 {
    margin-top: 0;
  }

  .principle-card p {
    grid-column: 3;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .build-console {
    max-width: 700px;
  }

  .portfolio-footer-inner {
    grid-template-columns: 1fr auto;
  }

  .portfolio-footer-inner > p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .portfolio-header {
    padding-block: 10px;
  }

  .portfolio-nav-shell {
    width: min(calc(100% - 20px), var(--container));
    min-height: 58px;
    padding-left: 10px;
    border-radius: 18px;
  }

  .portfolio-brand small {
    display: none;
  }

  .nav-contact {
    gap: 6px;
    padding: 9px 11px;
  }

  .portfolio-hero {
    padding-block: 57px 112px;
  }

  .portfolio-title {
    font-size: clamp(3.2rem, 16.5vw, 4.7rem);
  }

  .portfolio-intro {
    margin-top: 24px;
  }

  .portfolio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .hero-playground {
    width: 112%;
    margin-left: -6%;
    padding-block: 15px;
  }

  .game-window {
    border-radius: 18px;
    transform: none;
  }

  .game-window-bar,
  .game-window-footer {
    padding: 11px;
  }

  .game-window-bar > span:nth-child(2) {
    display: none;
  }

  .game-screen {
    min-height: 390px;
  }

  .block-field {
    width: 240px;
    height: 240px;
  }

  .block {
    width: 45px;
    height: 45px;
    border-radius: 11px;
  }

  .player-core {
    width: 62px;
    height: 62px;
  }

  .game-message {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .game-message span {
    display: none;
  }

  .floating-badge {
    display: none;
  }

  .portfolio-scroll-cue {
    bottom: 27px;
    left: 14px;
  }

  .portfolio-section {
    padding-block: 88px;
  }

  .portfolio-section-heading {
    gap: 24px;
    margin-bottom: 45px;
  }

  .portfolio-section-heading h2,
  .profile-copy h2,
  .contact-panel h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .project-featured {
    padding: 9px;
    border-radius: 21px;
  }

  .project-art {
    min-height: 390px;
    border-radius: 15px;
  }

  .bloom-shape {
    width: 235px;
    height: 235px;
  }

  .bloom-shape i {
    width: 67px;
    height: 67px;
    margin: -33.5px;
    border-radius: 18px 18px 30px 18px;
  }

  .bloom-shape i:nth-child(1) { transform: translateY(-86px) rotate(45deg); }
  .bloom-shape i:nth-child(2) { transform: translate(67px, -49px) rotate(95deg); }
  .bloom-shape i:nth-child(3) { transform: translate(74px, 43px) rotate(145deg); }
  .bloom-shape i:nth-child(4) { transform: translateY(83px) rotate(190deg); }
  .bloom-shape i:nth-child(5) { transform: translate(-72px, 44px) rotate(240deg); }
  .bloom-shape i:nth-child(6) { transform: translate(-72px, -47px) rotate(292deg); }

  .project-content {
    min-height: 450px;
    padding: 29px 22px;
  }

  .project-content h3 {
    margin-top: 30px;
    font-size: 3.3rem;
  }

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

  .project-slot {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .slot-visual {
    width: 100%;
    height: 150px;
  }

  .principle-card {
    display: flex;
    min-height: 400px;
  }

  .principle-icon {
    margin: 40px 0 auto;
  }

  .principle-card h3 {
    margin-top: 38px;
  }

  .contact-panel {
    padding: 38px 23px;
    border-radius: 21px;
  }

  .contact-panel > a {
    gap: 10px;
    padding: 16px;
  }

  .contact-panel > a span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-orb {
    top: 24%;
    right: -64%;
    width: 340px;
    height: 340px;
  }

  .portfolio-footer-inner {
    grid-template-columns: 1fr;
  }

  .portfolio-footer nav {
    justify-self: start;
  }

  .portfolio-footer-inner > p {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-hero::before,
  .hero-kicker > span::after,
  .title-accent,
  .game-grid,
  .block,
  .player-core,
  .player-core::after,
  .floating-badge,
  .portfolio-scroll-cue i::after,
  .motion-strip > div,
  .bloom-shape i {
    animation: none !important;
  }

  .hero-playground,
  .project-card,
  .principle-card,
  .game-screen,
  .contact-orb {
    transform: none !important;
  }
}

@media print {
  .portfolio-page {
    color: #11131b;
    background: #ffffff;
  }

  .portfolio-page::before,
  .portfolio-page::after,
  .portfolio-header,
  .scroll-progress,
  .hero-playground,
  .portfolio-scroll-cue,
  .motion-strip,
  .portfolio-footer,
  .contact-orb {
    display: none;
  }

  .portfolio-hero {
    display: block;
    min-height: auto;
    padding-block: 40px;
  }

  .portfolio-section,
  .portfolio-contact {
    padding-block: 35px;
    color: #11131b;
    background: #ffffff;
  }

  .project-card,
  .project-slot,
  .principle-card,
  .build-console,
  .contact-panel {
    color: #11131b;
    background: #ffffff;
    border-color: #d8dce7;
    box-shadow: none;
    break-inside: avoid;
  }
}
