:root {
  --paper: #f4e9e1;
  --ink: #191416;
  --pink: #d88698;
  --pink-soft: #e9b6bd;
  --cream: #fff8f1;
  --line: rgba(41, 27, 30, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  cursor: none;
}

@property --speed-outer {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 98%;
}

body.view-open .portfolio-shell {
  pointer-events: none;
}

body.view-open .route-view {
  pointer-events: auto;
}

button,
a {
  color: inherit;
  cursor: none;
}

.portfolio-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 249, 243, 0.72) 0 29%, transparent 48%),
    var(--paper);
}

.hero-illustration {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.87) contrast(1.02);
}

.character-head-rig {
  --head-shift-x: 0px;
  --head-shift-y: 0px;
  --head-rotate: 0deg;
  --look-left: 0;
  --look-right: 0;
  --look-up: 0;
  --look-down: 0;
  position: absolute;
  z-index: -2;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--head-shift-x), var(--head-shift-y)) rotate(var(--head-rotate));
  transform-origin: 52% 88%;
  transition: opacity 450ms ease;
  will-change: transform;
}

.character-head-rig.is-ready {
  opacity: 1;
}

.head-frame {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: saturate(0.87) contrast(1.02);
  -webkit-mask-image: radial-gradient(ellipse 49% 49% at 51% 42%, #000 0 59%, rgba(0, 0, 0, 0.93) 68%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 49% 49% at 51% 42%, #000 0 59%, rgba(0, 0, 0, 0.93) 68%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
  transform-origin: 52% 88%;
  will-change: opacity;
  animation: head-idle 4.8s ease-in-out infinite;
}

.character-head-art {
  background-image: url("assets/face-frames/head-center.png");
}

.head-look-left {
  background-image: url("assets/face-frames/eyes-left.png");
  opacity: var(--look-left);
}

.head-look-right {
  background-image: url("assets/face-frames/eyes-right.png");
  opacity: var(--look-right);
}

.head-look-up {
  background-image: url("assets/face-frames/eyes-up.png");
  opacity: var(--look-up);
}

.head-look-down {
  background-image: url("assets/face-frames/eyes-down.png");
  opacity: var(--look-down);
}

.head-blink-half,
.head-blink-closed {
  opacity: 0;
}

.head-blink-half {
  background-image: url("assets/face-frames/eyes-blink-half.png");
}

.head-blink-closed {
  background-image: url("assets/face-frames/eyes-blink-closed.png");
}

.character-head-rig.blink-half .head-blink-half {
  opacity: 1;
}

.character-head-rig.blink-closed .head-blink-closed {
  opacity: 1;
}

@keyframes head-idle {
  0%, 100% { transform: translateY(0) rotate(-0.15deg); }
  48% { transform: translateY(-1.5px) rotate(0.35deg); }
  72% { transform: translateY(-0.5px) rotate(0.1deg); }
}

.grain {
  position: fixed;
  z-index: 30;
  inset: 0;
  opacity: 0.19;
  pointer-events: none;
  background-image: url("assets/vanilla-paper.png");
  background-size: 640px;
  mix-blend-mode: multiply;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 62, 68, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 62, 68, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
}

.particle-overlay {
  position: fixed;
  z-index: 900;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .particle-overlay {
    opacity: 0.5;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 1000;
  left: -20px;
  top: -20px;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(216, 134, 152, 0.7);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(216, 134, 152, 0.8);
  transition: width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cursor-ring.active {
  width: 58px;
  height: 58px;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.16);
}

.masthead {
  position: absolute;
  z-index: 5;
  top: clamp(20px, 4vh, 48px);
  left: clamp(22px, 3.2vw, 64px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.crest {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  text-decoration: none;
  font: 600 13px/1 "DM Mono", monospace;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.crest::before,
.crest::after {
  content: "";
  position: absolute;
  width: 58px;
  border-top: 1px solid var(--ink);
}

.crest::after {
  transform: rotate(90deg);
}

.crest span {
  transform: rotate(-45deg);
}

.edition {
  font-family: "DM Mono", monospace;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.edition p,
.edition small {
  margin: 0;
}

.edition p {
  font-size: 12px;
}

.edition p i {
  color: var(--pink);
  font-style: normal;
}

.edition p b {
  font-weight: 400;
  color: var(--pink);
}

.edition small {
  display: block;
  margin-top: 7px;
  font-size: 7px;
  opacity: 0.7;
}

.identity {
  position: absolute;
  z-index: 3;
  left: clamp(35px, 7.2vw, 142px);
  top: 21%;
  width: min(35vw, 580px);
}

.chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: 0 0 16px 5px;
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chapter::before {
  content: "";
  width: 42px;
  border-top: 1px solid var(--pink);
}

.chapter span {
  color: var(--pink);
}

.identity h1 {
  position: relative;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 0.66;
  letter-spacing: -0.05em;
}

.identity h1 span {
  display: block;
  font-size: clamp(86px, 10vw, 185px);
}

.identity h1 em {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 0 2vw;
  color: var(--pink);
  font-size: clamp(76px, 8vw, 145px);
  font-weight: 500;
  white-space: nowrap;
  transform: rotate(-7deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.identity h1 .brand-name {
  display: block;
  color: var(--pink);
  font-size: clamp(84px, 9vw, 168px);
  line-height: 0.82;
  white-space: nowrap;
  transform: rotate(-5deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.roles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(430px, 95%);
  margin: 36px 0 0 23px;
  padding: 10px 18px;
  font: 500 clamp(13px, 1.2vw, 22px)/1 "Playfair Display", serif;
  background: rgba(255, 249, 243, 0.72);
  border-block: 1px solid rgba(25, 20, 22, 0.72);
  backdrop-filter: blur(2px);
}

.roles i {
  width: 5px;
  height: 5px;
  background: var(--pink);
  transform: rotate(45deg);
}

.statement {
  margin: 30px 0 0 52px;
  font: 500 clamp(14px, 1.25vw, 22px)/1.55 "Playfair Display", serif;
}

.statement em {
  color: #bd5f74;
  font-style: normal;
}

.identity-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 10px;
  width: 80px;
  margin: 30px 0 0 2px;
  font: 7px/1 "DM Mono", monospace;
}

.identity-footer b {
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px);
}

.identity-footer small {
  writing-mode: vertical-rl;
}

.route-stage {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: min(55vw, 990px);
  height: 100%;
  color: var(--cream);
}

.route-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #100d0f;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 0% 50%, transparent 0 98.5%, #000 99%);
  mask-image: radial-gradient(ellipse 62% 68% at 0% 50%, transparent 0 98.5%, #000 99%);
}

.route-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 0% 50%, transparent 0 98.5%, #000 99%);
  mask-image: radial-gradient(ellipse 62% 68% at 0% 50%, transparent 0 98.5%, #000 99%);
  background:
    radial-gradient(circle at 80% 12%, transparent 0 90px, var(--pink) 91px 92px, transparent 93px),
    radial-gradient(ellipse 62% 68% at 0% 50%, transparent 0 97.3%, var(--pink) 97.6% 98.2%, transparent 98.6%),
    linear-gradient(151deg, transparent 0 35%, rgba(230, 154, 170, 0.34) 35.2% 35.5%, transparent 35.8%),
    linear-gradient(24deg, transparent 0 66%, rgba(255, 255, 255, 0.18) 66.2% 66.4%, transparent 66.6%);
}

.route-backdrop span {
  position: absolute;
  color: var(--pink);
  font-family: "Playfair Display", serif;
}

.route-backdrop::before,
.route-backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.route-backdrop::before {
  inset: -18%;
  background:
    radial-gradient(circle at 76% 50%, transparent 0 31%, rgba(232, 157, 173, 0.13) 31.3% 31.6%, transparent 31.9% 45%, rgba(255, 248, 241, 0.08) 45.3% 45.5%, transparent 45.8%);
  transform: rotate(-3deg) scale(0.96);
}

.route-backdrop::after {
  top: 7%;
  right: 2%;
  width: 28%;
  height: 86%;
  border: 1px solid rgba(232, 157, 173, 0.36);
  border-block-width: 0;
  transform: skewY(-14deg) scaleY(0.82);
}

.route-stage:has(.route-card:hover) .route-backdrop::before,
.route-stage:has(.route-card:focus-visible) .route-backdrop::before,
.route-stage:has(.route-card.is-selected) .route-backdrop::before,
.route-stage:has(.route-card-wrap.is-hovered) .route-backdrop::before {
  opacity: 0.34;
  transform: rotate(0deg) scale(1);
}

.route-stage:has(.route-card:hover) .route-backdrop::after,
.route-stage:has(.route-card:focus-visible) .route-backdrop::after,
.route-stage:has(.route-card.is-selected) .route-backdrop::after,
.route-stage:has(.route-card-wrap.is-hovered) .route-backdrop::after {
  opacity: 1;
  transform: skewY(-6deg) scaleY(1);
}

.route-backdrop span:nth-child(1) {
  top: 4%;
  left: 38%;
  font-size: 32px;
}

.route-backdrop span:nth-child(2) {
  top: 12%;
  right: 8%;
  font-size: 14px;
}

.route-backdrop span:nth-child(3) {
  right: 2%;
  bottom: 18%;
  font-size: 36px;
}

.route-backdrop span:nth-child(4) {
  left: 25%;
  bottom: 5%;
  font-size: 26px;
}

.route-stack {
  position: absolute;
  top: 3%;
  right: 18px;
  display: block;
  width: 78%;
  height: 88%;
  perspective: 1200px;
}

.route-card {
  --card-bg: rgba(255, 248, 241, 0.97);
  --sign-border: var(--ink);
  --route-w: 100%;
  --route-y: 0%;
  --route-r: 0deg;
  position: absolute;
  top: var(--route-y);
  right: 0;
  display: grid;
  grid-template-columns: 44px 1fr 58px;
  align-items: center;
  width: var(--route-w);
  height: clamp(112px, 16.5vh, 148px);
  padding: 16px 38px 16px 42px;
  overflow: visible;
  isolation: isolate;
  color: var(--ink);
  text-align: left;
  background: var(--card-bg);
  border: 0;
  outline: 3px solid var(--ink);
  outline-offset: -9px;
  clip-path: polygon(4% 5%, 94% 0, 100% 50%, 93% 93%, 2% 100%, 8% 53%);
  filter:
    drop-shadow(-3px 0 0 var(--sign-border))
    drop-shadow(3px 0 0 var(--sign-border))
    drop-shadow(0 -3px 0 var(--sign-border))
    drop-shadow(0 3px 0 var(--sign-border))
    drop-shadow(-5px -2px 0 var(--cream))
    drop-shadow(6px 5px 0 var(--cream))
    drop-shadow(10px 10px 0 var(--pink));
  transform: rotate(var(--route-r));
  transform-origin: 100% 50%;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease, color 180ms ease;
}

.route-aura {
  position: absolute;
  z-index: 1;
  inset: -7px -10px -9px -10px;
  pointer-events: none;
  background: var(--cream);
  clip-path: polygon(4% 5%, 94% 0, 100% 50%, 93% 93%, 2% 100%, 8% 53%);
  filter: drop-shadow(7px 8px 0 var(--ink)) drop-shadow(12px 13px 0 var(--pink));
  opacity: 0;
  transform: scale(0.97);
  transition: inset 240ms cubic-bezier(0.16, 1, 0.3, 1), filter 240ms ease, opacity 160ms ease, transform 240ms ease;
}

.route-card-wrap {
  --route-w: 100%;
  --route-y: 0%;
  --route-r: 0deg;
  position: absolute;
  top: var(--route-y);
  right: 0;
  width: var(--route-w);
  height: clamp(112px, 16.5vh, 148px);
  isolation: isolate;
  transform: rotate(var(--route-r));
  transform-origin: 100% 50%;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 761px) {
  .route-card-wrap::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -8px -12px;
    background: transparent;
  }
}

.route-card-wrap::before {
  --speed-outer: 98%;
  content: "";
  position: absolute;
  z-index: 0;
  left: 43%;
  top: 50%;
  width: 148%;
  height: 245%;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-conic-gradient(
      from 3deg at 43% 50%,
      transparent 0 5.5deg,
      rgba(255, 248, 241, 0.92) 5.7deg 5.98deg,
      transparent 6.15deg 11deg,
      rgba(216, 134, 152, 0.88) 11.2deg 11.75deg,
      transparent 11.9deg 20deg
    ),
    repeating-conic-gradient(
      from -7deg at 43% 50%,
      transparent 0 17deg,
      rgba(216, 134, 152, 0.54) 17.2deg 18deg,
      transparent 18.2deg 36deg
    );
  -webkit-mask-image:
    radial-gradient(ellipse 46% 34% at 43% 50%, transparent 0 48%, #000 53% 82%, transparent var(--speed-outer));
  mask-image:
    radial-gradient(ellipse 46% 34% at 43% 50%, transparent 0 48%, #000 53% 82%, transparent var(--speed-outer));
  filter: drop-shadow(0 0 3px rgba(216, 134, 152, 0.28));
  transform: translate(-50%, -50%) rotate(-5deg) scale(0.72);
  transition: opacity 160ms ease, transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.route-card-wrap:nth-child(even)::before {
  transform: translate(-50%, -50%) rotate(7deg) scale(0.72);
}

.route-card-wrap:has(.route-card:hover)::before,
.route-card-wrap:has(.route-card:focus-visible)::before,
.route-card-wrap.is-hovered::before {
  opacity: 0.78;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  animation:
    button-speed-pulse 760ms cubic-bezier(0.16, 1, 0.3, 1) both,
    button-speed-drift 2.4s 420ms ease-in-out infinite;
}

.route-card-wrap:nth-child(even):has(.route-card:hover)::before,
.route-card-wrap:nth-child(even):has(.route-card:focus-visible)::before,
.route-card-wrap:nth-child(even).is-hovered::before {
  transform: translate(-50%, -50%) rotate(2deg) scale(1);
  animation:
    button-speed-pulse 760ms cubic-bezier(0.16, 1, 0.3, 1) both,
    button-speed-drift-even 2.6s 420ms ease-in-out infinite;
}

.route-card-wrap .route-card {
  position: relative;
  z-index: 2;
  top: auto;
  right: auto;
  width: 100%;
  height: 100%;
  filter: none;
  transform: none;
}

.route-card-wrap:nth-child(1) {
  --route-w: 96%;
  --route-y: 1%;
  --route-r: -7deg;
}

.route-card-wrap:nth-child(2) {
  --route-w: 82%;
  --route-y: 25%;
  --route-r: -2deg;
}

.route-card-wrap:nth-child(3) {
  --route-w: 84%;
  --route-y: 49%;
  --route-r: 3deg;
}

.route-card-wrap:nth-child(4) {
  --route-w: 95%;
  --route-y: 73%;
  --route-r: 7deg;
}

.route-card-wrap:nth-child(even) .route-aura {
  background: var(--ink);
  clip-path: polygon(2% 1%, 96% 7%, 100% 54%, 91% 98%, 4% 91%, 8% 45%);
  filter: drop-shadow(7px 8px 0 var(--cream)) drop-shadow(12px 13px 0 var(--pink));
}

.route-card-wrap:has(.route-card:hover),
.route-card-wrap:has(.route-card:focus-visible),
.route-card-wrap:has(.route-card.is-selected),
.route-card-wrap.is-hovered {
  z-index: 5;
  transform: rotate(calc(var(--route-r) * 0.45));
}

.route-card-wrap:has(.route-card:hover) .route-aura,
.route-card-wrap:has(.route-card:focus-visible) .route-aura,
.route-card-wrap:has(.route-card.is-selected) .route-aura,
.route-card-wrap.is-hovered .route-aura {
  inset: -15px -20px -17px -20px;
  filter: drop-shadow(9px 10px 0 var(--ink)) drop-shadow(16px 17px 0 var(--pink));
  opacity: 1;
  transform: translate(-6px, 4px) scale(1);
}

.route-card-wrap:nth-child(even):has(.route-card:hover) .route-aura,
.route-card-wrap:nth-child(even):has(.route-card:focus-visible) .route-aura,
.route-card-wrap:nth-child(even):has(.route-card.is-selected) .route-aura,
.route-card-wrap:nth-child(even).is-hovered .route-aura {
  filter: drop-shadow(9px 10px 0 var(--cream)) drop-shadow(16px 17px 0 var(--pink));
}

@keyframes button-speed-pulse {
  0% { opacity: 0; filter: blur(2px); }
  42% { opacity: 0.86; filter: blur(0); }
  100% { opacity: 0.78; filter: blur(0); }
}

@keyframes button-speed-drift {
  0%, 100% { --speed-outer: 69%; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { --speed-outer: 98%; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes button-speed-drift-even {
  0%, 100% { --speed-outer: 69%; transform: translate(-50%, -50%) rotate(2deg) scale(1); }
  50% { --speed-outer: 98%; transform: translate(-50%, -50%) rotate(2deg) scale(1); }
}

.route-card:nth-child(1) {
  --route-w: 96%;
  --route-y: 1%;
  --route-r: -7deg;
}

.route-card:nth-child(2) {
  --route-w: 82%;
  --route-y: 25%;
  --route-r: -2deg;
}

.route-card:nth-child(3) {
  --route-w: 84%;
  --route-y: 49%;
  --route-r: 3deg;
}

.route-card:nth-child(4) {
  --route-w: 95%;
  --route-y: 73%;
  --route-r: 7deg;
}

.route-card-wrap:nth-child(even) .route-card {
  clip-path: polygon(2% 1%, 96% 7%, 100% 54%, 91% 98%, 4% 91%, 8% 45%);
}

.route-card.is-featured,
.route-card.is-pink {
  --card-bg: rgba(224, 149, 164, 0.98);
  --sign-border: var(--cream);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(112deg, transparent 0 48%, var(--ink) 48.5% 49%, transparent 49.5%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(20, 14, 17, 0.14) 14px);
}

.route-card::after {
  content: "";
  position: absolute;
  left: 74px;
  right: 54px;
  bottom: 17%;
  height: 24px;
  background: var(--ink);
  clip-path: polygon(3% 0, 100% 9%, 95% 82%, 0 100%);
  transition: background 180ms ease;
}

.route-card:hover,
.route-card:focus-visible,
.route-card.is-selected,
.route-card-wrap.is-hovered .route-card {
  --sign-border: var(--cream);
  z-index: 3;
  color: var(--cream);
  outline-color: var(--cream);
  outline-width: 4px;
  filter: none;
  transform: scale(1.045);
}

.route-card:hover::after,
.route-card:focus-visible::after,
.route-card.is-selected::after,
.route-card-wrap.is-hovered .route-card::after {
  background: var(--pink);
}

.route-card:hover,
.route-card:focus-visible,
.route-card.is-selected,
.route-card-wrap.is-hovered .route-card {
  background: #171215;
}

.route-number,
.route-mark,
.route-copy {
  position: relative;
  z-index: 1;
}

.route-number {
  align-self: start;
  padding-top: 5px;
  font: 500 14px/1 "DM Mono", monospace;
  font-style: italic;
}

.route-copy {
  align-self: center;
}

.route-copy b {
  display: block;
  font: 400 clamp(42px, 4.2vw, 76px)/0.82 "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.route-copy small {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 16px;
  padding: 3px 18px;
  color: var(--cream);
  font: italic 12px/1 "Playfair Display", serif;
}

.route-mark {
  justify-self: center;
  font: 32px/1 "Playfair Display", serif;
}

.socials {
  position: absolute;
  right: 7%;
  bottom: 2.5%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
}

.socials span {
  margin-right: 8px;
  color: var(--pink);
  font-size: 8px;
  letter-spacing: 0.25em;
}

.socials a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--cream);
  font-size: 9px;
  text-decoration: none;
  border: 1px solid rgba(255, 248, 241, 0.5);
  transform: rotate(45deg);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.socials a:hover {
  color: var(--ink);
  background: var(--pink);
  transform: rotate(0deg) scale(1.12);
}

.character-seal {
  position: absolute;
  z-index: 9;
  right: calc(min(55vw, 990px) - 37px);
  top: 42%;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 4px double var(--pink);
  border-radius: 50%;
  background: #181316;
  box-shadow: 0 0 0 7px var(--cream), 0 0 0 9px var(--ink);
}

.character-seal::before,
.character-seal::after {
  content: "";
  position: absolute;
  width: 130px;
  border-top: 1px solid var(--ink);
}

.character-seal::after {
  transform: rotate(90deg);
}

.character-seal div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.character-seal span,
.character-seal small {
  display: block;
}

.character-seal span {
  color: var(--pink-soft);
  font: italic 30px/1 "Playfair Display", serif;
}

.character-seal small {
  margin-top: 5px;
  color: var(--cream);
  font: 6px/1 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.corner-notes {
  position: absolute;
  z-index: 4;
  left: 3.3vw;
  bottom: 3vh;
  display: flex;
  gap: 20px;
  font: 7px/1 "DM Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.corner-notes span {
  color: #a65568;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.mood-on .hero-illustration {
  filter: saturate(1.1) contrast(1.08) sepia(0.08);
}

.scene-transition {
  position: fixed;
  z-index: 190;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.scene-transition.is-running {
  visibility: visible;
}

.scene-transition.is-returning {
  visibility: visible;
}

.scene-transition.is-returning .transition-shards i {
  animation: shard-return 760ms cubic-bezier(0.72, 0, 0.18, 1) both;
}

.scene-transition.is-returning .transition-shards i:nth-child(1) { animation-delay: 40ms; }
.scene-transition.is-returning .transition-shards i:nth-child(2) { animation-delay: 5ms; }
.scene-transition.is-returning .transition-shards i:nth-child(3) { animation-delay: 75ms; }
.scene-transition.is-returning .transition-shards i:nth-child(4) { animation-delay: 30ms; }

.scene-transition.is-returning .transition-title-frame {
  z-index: 7;
  animation: home-impact 820ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene-transition.is-returning .transition-burst {
  z-index: 4;
  animation: return-burst 950ms 70ms cubic-bezier(0.72, 0, 0.16, 1) both;
}

.scene-transition.is-returning .transition-wipe {
  z-index: 3;
  background:
    linear-gradient(124deg, transparent 0 48.8%, var(--cream) 49% 49.35%, var(--transition-accent, #c92d4a) 49.5% 51%, #120e11 51.2% 100%),
    #120e11;
  animation: return-wipe 980ms cubic-bezier(0.72, 0, 0.16, 1) both;
}

.scene-transition.is-returning .transition-shards {
  z-index: 6;
}

.scene-transition.is-returning .transition-shards::before,
.scene-transition.is-returning .transition-shards::after {
  animation: return-cut-line 560ms 150ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.scene-transition.is-returning .transition-shards::after {
  animation-delay: 220ms;
}

.transition-burst {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 145vmax;
  height: 145vmax;
  border-radius: 50%;
  opacity: 0;
  background:
    repeating-conic-gradient(
      from 0deg,
      #120e11 0 7deg,
      var(--transition-accent, #c92d4a) 7deg 13deg,
      var(--cream) 13deg 15deg,
      #120e11 15deg 26deg
    );
  clip-path: circle(0 at 50% 50%);
  transform: translate(-50%, -50%) rotate(-110deg) scale(0.2);
}

.scene-transition.is-running .transition-burst {
  animation: burst-in 700ms cubic-bezier(0.15, 0.85, 0.2, 1) both;
}

.transition-title-frame {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  min-width: min(560px, 76vw);
  min-height: min(210px, 30vh);
  padding: 26px 48px;
  place-content: center;
  color: var(--cream);
  text-align: center;
  background: #151013;
  border: 8px solid var(--cream);
  box-shadow:
    0 0 0 7px #151013,
    0 0 0 11px var(--transition-accent, #c92d4a),
    22px 24px 0 rgba(15, 11, 13, 0.75);
  clip-path: polygon(5% 5%, 96% 0, 100% 84%, 91% 100%, 2% 94%, 0 18%);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-12deg) scale(0.25);
}

.transition-title-frame::before,
.transition-title-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18%;
  right: -18%;
  height: 18px;
  background: var(--cream);
  border-block: 5px solid #151013;
  transform: skewX(-38deg);
}

.transition-title-frame::before {
  top: -34px;
}

.transition-title-frame::after {
  bottom: -34px;
}

.transition-title-frame span {
  margin-bottom: 8px;
  color: var(--transition-accent, #c92d4a);
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.transition-title-frame strong {
  font: 400 clamp(78px, 11vw, 170px)/0.76 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scene-transition.is-running .transition-title-frame {
  animation: title-impact 830ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.transition-shards {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.transition-shards i {
  position: absolute;
  left: -12vw;
  width: 124vw;
  height: 18vh;
  opacity: 0;
  background:
    linear-gradient(90deg, var(--cream) 0 0.7%, #120e11 0.9% 55%, var(--transition-accent, #c92d4a) 55.2% 74%, #120e11 74.2% 98.8%, var(--cream) 99%);
  border-block: 2px solid rgba(255, 248, 241, 0.82);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
  clip-path: polygon(3% 0, 100% 12%, 96% 100%, 0 87%);
  transform: translateX(120vw) skewX(-13deg);
}

.transition-shards i:nth-child(1) { top: -2vh; }
.transition-shards i:nth-child(2) { top: 23vh; }
.transition-shards i:nth-child(3) { top: 48vh; }
.transition-shards i:nth-child(4) { top: 73vh; }

.transition-shards i:nth-child(even) {
  background:
    linear-gradient(90deg, var(--cream) 0 0.7%, var(--transition-accent, #c92d4a) 0.9% 20%, #120e11 20.2% 77%, var(--cream) 77.2% 78%, #120e11 78.2%);
}

.scene-transition.is-running .transition-shards i {
  animation: shard-cross 560ms cubic-bezier(0.72, 0, 0.18, 1) both;
}

.scene-transition.is-running .transition-shards i:nth-child(1) { animation-delay: 500ms; }
.scene-transition.is-running .transition-shards i:nth-child(2) { animation-delay: 535ms; }
.scene-transition.is-running .transition-shards i:nth-child(3) { animation-delay: 570ms; }
.scene-transition.is-running .transition-shards i:nth-child(4) { animation-delay: 605ms; }

.transition-shards::before,
.transition-shards::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -20vw;
  width: 150vw;
  height: 4px;
  opacity: 0;
  background: var(--cream);
  box-shadow: 0 7px 0 var(--transition-accent, #c92d4a);
  transform: rotate(-7deg) translateX(110vw);
}

.transition-shards::before { top: 34%; }
.transition-shards::after { top: 66%; }

.scene-transition.is-running .transition-shards::before,
.scene-transition.is-running .transition-shards::after {
  animation: transition-cut-line 430ms 540ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.scene-transition.is-running .transition-shards::after {
  animation-delay: 610ms;
}

.transition-wipe {
  position: absolute;
  z-index: 5;
  inset: -20%;
  background:
    linear-gradient(124deg, transparent 0 37%, var(--cream) 37.15% 37.55%, transparent 37.7%),
    linear-gradient(124deg, transparent 0 43%, var(--transition-accent, #c92d4a) 43.2% 47%, transparent 47.2%),
    linear-gradient(124deg, transparent 0 50%, #120e11 50.2% 100%);
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.scene-transition.is-running .transition-wipe {
  animation: slash-wipe 520ms 690ms cubic-bezier(0.75, 0, 0.2, 1) both;
}

.route-card.is-launching {
  z-index: 20;
  animation: route-launch 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-view {
  --route-accent: var(--pink);
  --route-soft: var(--pink-soft);
  --route-ink: #130f12;
  --route-paper: #fff8f1;
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  overflow: hidden;
  visibility: hidden;
  color: var(--cream);
  background:
    linear-gradient(112deg, rgba(14, 10, 13, 0.18) 0 43%, #130f12 43.2% 100%),
    url("assets/lucy-hero-illustration.png") center / cover;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 650ms cubic-bezier(0.75, 0, 0.2, 1), visibility 0s 650ms;
}

.route-view.is-open {
  visibility: visible;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition-delay: 0s;
  animation: route-aperture 480ms cubic-bezier(0.72, 0, 0.16, 1);
}

.route-view.is-open.is-settled {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  animation: none;
  transition: none !important;
}

.route-view.is-closing {
  animation: route-fold-home 780ms cubic-bezier(0.72, 0, 0.16, 1) both;
  transition: none;
}

.route-view::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    linear-gradient(122deg, transparent 0 49.7%, var(--pink) 49.9% 50.1%, transparent 50.3%),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255, 255, 255, 0.08) 43px);
}

.route-view[data-route="projects"] {
  --route-accent: #e3374f;
  --route-soft: #ffd8d1;
  background:
    linear-gradient(105deg, rgba(255, 245, 235, 0.97) 0 41%, rgba(27, 11, 18, 0.2) 41.2%),
    repeating-linear-gradient(166deg, transparent 0 28px, rgba(227, 55, 79, 0.14) 29px 31px),
    #170b11;
}

.route-view[data-route="about"] {
  --route-accent: #e68ba3;
  --route-soft: #f9dfca;
  --route-ink: #273228;
  background:
    radial-gradient(circle at 72% 36%, rgba(230, 139, 163, 0.44) 0 18%, transparent 18.5%),
    linear-gradient(112deg, rgba(250, 229, 207, 0.98) 0 46%, rgba(43, 64, 48, 0.95) 46.2%),
    #2b4030;
}

.route-view[data-route="skills"] {
  --route-accent: #ef8fa6;
  --route-soft: #ffd5df;
}

.route-view[data-route="contact"] {
  --route-accent: #90f1dd;
  --route-soft: #d9fff6;
  --route-ink: #10171b;
  background:
    linear-gradient(158deg, transparent 0 52%, rgba(144, 241, 221, 0.16) 52.2% 59%, transparent 59.2%),
    linear-gradient(105deg, rgba(225, 238, 239, 0.96) 0 34%, #11171b 34.2% 100%);
}

.route-view[data-route="projects"]::before {
  background:
    repeating-linear-gradient(174deg, transparent 0 37px, rgba(227, 55, 79, 0.15) 38px 40px),
    radial-gradient(circle, rgba(19, 8, 13, 0.17) 0 1px, transparent 1.5px) 0 0 / 7px 7px;
}

.route-view[data-route="projects"] .view-hero h2 {
  color: #230d15;
  text-shadow: 3px 3px 0 rgba(227, 55, 79, 0.23);
}

.route-view[data-route="projects"] .view-hero strong {
  color: #9f3046;
}

.route-view[data-route="about"]::before {
  background:
    repeating-radial-gradient(circle at 78% 44%, transparent 0 36px, rgba(249, 223, 202, 0.12) 37px 38px),
    linear-gradient(32deg, transparent 0 52%, rgba(230, 139, 163, 0.24) 52.2% 58%, transparent 58.2%);
}

.route-view[data-route="about"] .view-hero h2,
.route-view[data-route="about"] .view-hero strong {
  color: #273228;
}

.route-view[data-route="contact"]::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(144, 241, 221, 0.09) 59px 60px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(144, 241, 221, 0.09) 59px 60px);
}

.route-view[data-route="contact"] .view-hero h2,
.route-view[data-route="contact"] .view-hero strong {
  color: #10171b;
}

.route-view[data-route] .view-hero p,
.route-view[data-route] .project-card span,
.route-view[data-route] .timeline article span,
.route-view[data-route] .contact-links span,
.route-view[data-route] .contact-note span {
  color: var(--route-accent);
}

.route-view[data-route] .route-view-index {
  color: var(--route-accent);
}

.route-view[data-route] .route-view-art span {
  border-color: var(--route-accent);
}

.route-soundtrack {
  position: fixed;
  z-index: 7;
  right: 34px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) 28px;
  align-items: center;
  width: min(310px, calc(100vw - 68px));
  min-height: 54px;
  padding: 7px 9px;
  color: var(--route-soft);
  background: rgba(13, 10, 12, 0.9);
  border: 1px solid var(--route-accent);
  clip-path: polygon(0 8%, 96% 0, 100% 82%, 5% 100%);
}

.route-soundtrack button,
.route-soundtrack a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--route-accent);
  background: transparent;
  border: 1px solid currentColor;
  text-decoration: none;
}

.route-soundtrack button.is-playing {
  color: var(--route-ink);
  background: var(--route-accent);
}

.route-soundtrack button:not(.is-playing) {
  animation: soundtrack-callout 1.6s ease-in-out infinite;
}

@keyframes soundtrack-callout {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--route-accent) 34%, transparent); }
}

.route-soundtrack div {
  min-width: 0;
  padding-inline: 8px;
}

.route-soundtrack small,
.route-soundtrack b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.route-soundtrack small {
  color: var(--route-accent);
  font: 500 6px/1 "DM Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.route-soundtrack b {
  margin-top: 5px;
  font: 500 9px/1 "Manrope", sans-serif;
}

.route-soundtrack iframe {
  position: absolute;
  left: -10000px;
  bottom: 0;
  width: 240px;
  height: 135px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

.route-view-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.route-view-art span {
  position: absolute;
  border: 1px solid var(--pink);
  transform: rotate(45deg);
}

.route-view-art span:nth-child(1) {
  width: 33vw;
  height: 33vw;
  right: -9vw;
  top: -12vw;
}

.route-view-art span:nth-child(2) {
  width: 18vw;
  height: 18vw;
  left: 5vw;
  bottom: -7vw;
}

.route-view-art span:nth-child(3) {
  width: 10vw;
  height: 10vw;
  right: 35vw;
  bottom: 9vh;
}

.route-view[data-route="skills"] {
  background:
    linear-gradient(24deg, transparent 0 73%, rgba(255, 248, 241, 0.08) 73.2% 79%, transparent 79.2%),
    linear-gradient(106deg, rgba(255, 248, 241, 0.98) 0 27%, rgba(237, 224, 220, 0.9) 27.2% 32%, transparent 32.2%),
    linear-gradient(162deg, transparent 0 64%, rgba(216, 134, 152, 0.2) 64.2% 69%, transparent 69.2%),
    linear-gradient(115deg, #171216 0 38%, #0e0b0d 38.2% 100%);
}

.route-view[data-route="skills"]::before {
  z-index: 0;
  opacity: 0.64;
  background:
    linear-gradient(73deg, transparent 0 17%, rgba(201, 45, 74, 0.48) 17.1% 17.35%, transparent 17.45%),
    linear-gradient(101deg, transparent 0 73%, rgba(255, 248, 241, 0.16) 73.1% 73.3%, transparent 73.4%),
    repeating-linear-gradient(174deg, transparent 0 18px, rgba(255, 248, 241, 0.045) 19px, transparent 20px 42px),
    url("assets/vanilla-paper.png") center / cover;
  mix-blend-mode: soft-light;
  filter: contrast(1.18) saturate(0.55);
}

.route-view[data-route="skills"]::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(circle, rgba(216, 134, 152, 0.36) 0 1px, transparent 1.7px) 0 0 / 8px 8px,
    radial-gradient(circle at 79% 49%, transparent 0 30%, rgba(216, 134, 152, 0.12) 30.15% 30.35%, transparent 30.5% 36%, rgba(255, 248, 241, 0.09) 36.15% 36.35%, transparent 36.5%),
    conic-gradient(from 7deg at 79% 49%, transparent 0 4deg, rgba(216, 134, 152, 0.16) 4.2deg 4.6deg, transparent 4.8deg 17deg);
  -webkit-mask-image:
    radial-gradient(ellipse 31% 48% at 87% 9%, #000 0 64%, transparent 66%),
    radial-gradient(ellipse 42% 51% at 68% 83%, #000 0 49%, transparent 52%);
  mask-image:
    radial-gradient(ellipse 31% 48% at 87% 9%, #000 0 64%, transparent 66%),
    radial-gradient(ellipse 42% 51% at 68% 83%, #000 0 49%, transparent 52%);
}

.route-view[data-route="skills"] .route-view-art span {
  border-color: rgba(216, 134, 152, 0.45);
  border-radius: 50%;
  transform: none;
}

.route-view[data-route="skills"] .route-view-art span:nth-child(1) {
  right: -12vw;
  top: -14vw;
  border-width: 2px;
  box-shadow:
    0 0 0 17px rgba(216, 134, 152, 0.025),
    0 0 0 18px rgba(255, 248, 241, 0.12),
    0 0 0 52px rgba(216, 134, 152, 0.018);
}

.route-view[data-route="skills"] .route-view-art span:nth-child(2) {
  left: 13vw;
  bottom: -13vw;
  border-style: dashed;
  box-shadow: 0 0 0 30px rgba(216, 134, 152, 0.035);
}

.route-view[data-route="skills"] .route-view-art span:nth-child(3) {
  right: 6vw;
  bottom: 5vh;
  border-style: dotted;
}

.route-view[data-route="skills"] .skill-heading {
  padding: 28px 20px 34px 0;
}

.route-view[data-route="skills"] .skill-heading h2 {
  color: #181216;
  text-shadow: 2px 2px 0 rgba(216, 134, 152, 0.26);
}

.route-view[data-route="skills"] .skill-heading p {
  color: #b64661;
}

.route-view[data-route="skills"] .skill-heading strong {
  color: rgba(24, 18, 22, 0.74);
}

.route-view[data-route="skills"] .skill-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8vw;
  right: -18px;
  top: -18px;
  bottom: -10px;
  opacity: 0.22;
  background:
    radial-gradient(circle, rgba(201, 45, 74, 0.42) 0 1px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(94deg, rgba(255, 248, 241, 0.2), transparent);
  clip-path: polygon(0 4%, 96% 0, 100% 82%, 7% 100%);
}

.route-view-back {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 34px;
  width: 92px;
  height: 54px;
  color: var(--cream);
  background: #171215;
  border: 1px solid var(--cream);
  clip-path: polygon(0 50%, 19% 0, 100% 7%, 91% 100%, 18% 92%);
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.route-view-back:hover {
  color: var(--ink);
  background: var(--pink);
  transform: translateX(-5px);
}

.route-view-index {
  position: absolute;
  z-index: 1;
  right: 4vw;
  top: 5vh;
  color: var(--pink);
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.24em;
}

.route-view-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(690px, 78vw);
  margin-left: 12vw;
  padding: 54px 64px 64px;
  background: rgba(17, 13, 16, 0.91);
  border: 1px solid rgba(255, 248, 241, 0.5);
  clip-path: polygon(5% 0, 100% 7%, 94% 100%, 0 91%);
  transform: translateY(50px) rotate(-2deg);
  opacity: 0;
}

.route-view.is-open .route-view-copy {
  animation: view-land 650ms 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.route-view-copy p {
  margin: 0 0 8px;
  color: var(--pink);
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.route-view-copy h2 {
  margin: 0;
  font: 400 clamp(90px, 14vw, 210px)/0.8 "Bebas Neue", sans-serif;
  text-transform: uppercase;
}

.route-view-copy strong {
  display: block;
  max-width: 440px;
  margin-top: 20px;
  color: var(--pink-soft);
  font: italic 18px/1.4 "Playfair Display", serif;
}

.route-view-rule {
  width: 72%;
  margin: 30px 0 20px;
  border-top: 1px solid var(--pink);
}

.route-view-copy small {
  font: 8px/1.5 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.route-view-stamp {
  position: absolute;
  right: 8vw;
  bottom: 8vh;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  color: var(--pink);
  border: 2px solid var(--pink);
  font: italic 42px/1 "Playfair Display", serif;
  transform: rotate(45deg);
}

.route-view {
  overflow-y: auto;
  scrollbar-color: var(--pink) #130f12;
  scrollbar-width: thin;
}

.route-view-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 170px));
  margin: 105px auto 90px;
  padding-bottom: 60px;
  opacity: 0;
  transform: translateY(45px);
}

.route-view.is-open .route-view-content {
  animation: view-content-land 650ms 470ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.view-hero p {
  margin: 0 0 12px;
  color: var(--pink);
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.view-hero h2 {
  margin: 0;
  font: 400 clamp(92px, 13vw, 190px)/0.76 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.view-hero strong {
  display: block;
  max-width: 690px;
  margin-top: 22px;
  color: var(--pink-soft);
  font: italic clamp(17px, 2vw, 25px)/1.45 "Playfair Display", serif;
}

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

.project-card {
  position: relative;
  min-height: 265px;
  padding: 28px 30px 26px;
  overflow: hidden;
  color: var(--cream);
  text-decoration: none;
  background: rgba(24, 18, 22, 0.91);
  border: 1px solid rgba(255, 248, 241, 0.35);
  clip-path: polygon(3% 0, 100% 4%, 96% 100%, 0 94%);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.project-card.has-media {
  min-height: 330px;
  padding-top: 145px;
  background:
    linear-gradient(to bottom, transparent 0 34%, rgba(18, 10, 14, 0.92) 52% 100%),
    var(--project-image) center 22% / cover no-repeat;
}

.project-card.has-media::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: linear-gradient(110deg, transparent 0 64%, rgba(227, 55, 79, 0.34) 64.5% 75%, transparent 75.5%);
  pointer-events: none;
}

.project-card.has-media:hover {
  color: var(--cream);
  background:
    linear-gradient(to bottom, rgba(227, 55, 79, 0.06), rgba(18, 10, 14, 0.9)),
    var(--project-image) center 22% / cover no-repeat;
}

.route-view[data-route="projects"] .project-card {
  border-color: rgba(255, 216, 209, 0.42);
}

.route-view[data-route="projects"] .project-card:hover {
  background-color: #e3374f;
}

.route-view[data-route="about"] .about-copy {
  background: rgba(39, 50, 40, 0.92);
  border-left-color: var(--route-accent);
}

.route-view[data-route="about"] .stat-strip div {
  color: #273228;
  background: #f2c8b8;
}

.route-view[data-route="about"] .timeline article {
  background: #273228;
}

.route-view[data-route="contact"] .contact-links a {
  border-left-color: var(--route-accent);
}

.route-view[data-route="contact"] .contact-links a:hover,
.route-view[data-route="contact"] .contact-note {
  color: #10171b;
  background: var(--route-accent);
}

.project-card:nth-child(even) {
  clip-path: polygon(0 4%, 97% 0, 100% 94%, 4% 100%);
}

.project-card::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 134, 152, 0.45);
  transform: rotate(45deg);
}

.project-card:hover {
  color: var(--ink);
  background: var(--pink);
  transform: translateY(-7px) rotate(-0.5deg);
}

.project-card.project-lead {
  min-height: 330px;
  background:
    linear-gradient(135deg, rgba(24, 18, 22, 0.96), rgba(72, 39, 49, 0.9)),
    url("assets/vanilla-paper.png");
}

.project-card.project-lead:hover {
  background: var(--pink);
}

.project-card span,
.skill-grid article span,
.timeline article span,
.contact-links span,
.contact-note span {
  color: var(--pink);
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.project-card:hover span {
  color: var(--cream);
}

.project-card h3 {
  margin: 30px 0 14px;
  font: 400 clamp(44px, 5vw, 72px)/0.88 "Bebas Neue", sans-serif;
  letter-spacing: 0;
}

.project-card p,
.about-copy p,
.timeline p,
.skill-grid p,
.contact-note p {
  margin: 0;
  max-width: 620px;
  font: 500 13px/1.65 "Manrope", sans-serif;
}

.project-card footer {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card footer b {
  padding: 4px 8px;
  font: 500 7px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

@media (min-width: 900px) {
  .route-view[data-route="projects"] {
    overflow: hidden;
  }

  .route-view[data-route="projects"] .route-view-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1180px, calc(100% - 150px));
    height: calc(100dvh - 130px);
    margin: 76px auto 54px;
    padding: 0;
  }

  .route-view[data-route="projects"] .view-hero {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr);
    grid-template-rows: auto auto;
    align-items: end;
    max-width: none;
    margin: 0 0 18px;
    column-gap: 28px;
  }

  .route-view[data-route="projects"] .view-hero p {
    grid-column: 1;
    margin-bottom: 5px;
  }

  .route-view[data-route="projects"] .view-hero h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(70px, 9.5vh, 102px);
    line-height: 0.72;
  }

  .route-view[data-route="projects"] .view-hero strong {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    max-width: 480px;
    margin: 0 0 2px;
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.25;
  }

  .route-view[data-route="projects"] .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 0;
    gap: 12px;
  }

  .route-view[data-route="projects"] .project-card,
  .route-view[data-route="projects"] .project-card.project-lead,
  .route-view[data-route="projects"] .project-card.has-media {
    min-height: 0;
    padding: clamp(17px, 2.3vh, 24px);
  }

  .route-view[data-route="projects"] .project-card.has-media {
    padding-top: clamp(72px, 13vh, 118px);
    background:
      linear-gradient(to bottom, transparent 0 25%, rgba(18, 10, 14, 0.96) 55% 100%),
      var(--project-image) center 22% / cover no-repeat;
  }

  .route-view[data-route="projects"] .project-card h3 {
    margin: clamp(14px, 2vh, 22px) 0 9px;
    font-size: clamp(34px, 5.1vh, 54px);
    line-height: 0.84;
  }

  .route-view[data-route="projects"] .project-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(9px, 1.25vh, 12px);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .route-view[data-route="projects"] .project-card footer {
    left: clamp(17px, 2.3vh, 24px);
    right: clamp(17px, 2.3vh, 24px);
    bottom: clamp(14px, 1.8vh, 20px);
  }

  .route-view[data-route="projects"] .project-card footer b {
    padding: 3px 6px;
    font-size: 6px;
  }

  .route-view[data-route="projects"] .route-soundtrack {
    top: 92px;
    right: 28px;
    bottom: auto;
    width: min(260px, calc(100vw - 56px));
  }
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 30px 55px;
}

.about-layout .view-hero,
.contact-layout .view-hero {
  grid-column: 1 / -1;
}

.about-copy {
  padding: 34px;
  background: rgba(19, 14, 18, 0.86);
  border-left: 2px solid var(--pink);
}

.about-copy p + p {
  margin-top: 18px;
}

.view-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 13px 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--pink);
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%, 5% 50%);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-strip div {
  display: grid;
  min-height: 135px;
  padding: 20px;
  place-content: center;
  background: rgba(216, 134, 152, 0.88);
  color: var(--ink);
  text-align: center;
  clip-path: polygon(4% 0, 100% 6%, 94% 100%, 0 94%);
}

.stat-strip b {
  font: 400 48px/0.9 "Bebas Neue", sans-serif;
}

.stat-strip span {
  margin-top: 10px;
  font: 500 8px/1.3 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  background: rgba(255, 248, 241, 0.25);
}

.timeline article {
  padding: 25px;
  background: #171215;
}

.timeline h3,
.skill-grid h3 {
  margin: 16px 0 12px;
  font: 400 31px/1 "Bebas Neue", sans-serif;
  letter-spacing: 0;
}

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

.skill-grid article {
  min-height: 215px;
  padding: 29px;
  color: var(--ink);
  background: rgba(255, 248, 241, 0.9);
  clip-path: polygon(4% 0, 100% 5%, 96% 100%, 0 94%);
}

.skill-grid article:nth-child(2),
.skill-grid article:nth-child(3) {
  color: var(--cream);
  background: rgba(216, 134, 152, 0.85);
}

.skill-heading {
  position: absolute;
  left: -1vw;
  top: 30px;
  z-index: 3;
  max-width: 330px;
  transform: rotate(-5deg);
}

.skill-heading h2 {
  font-size: clamp(80px, 9vw, 135px);
}

.skill-heading strong {
  max-width: 320px;
  color: rgba(20, 15, 18, 0.68);
  font-size: 16px;
}

.skill-wheel {
  --wheel-size: min(68vw, 700px);
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: -35px 2vw 35px auto;
  border-radius: 50%;
  isolation: isolate;
}

.skill-wheel::before,
.skill-wheel::after,
.skill-orbit {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.skill-wheel::before {
  display: none;
}

.skill-wheel::after {
  z-index: 1;
  inset: 33%;
  border: 2px solid rgba(255, 248, 241, 0.78);
  box-shadow:
    0 0 0 8px rgba(216, 134, 152, 0.5),
    0 0 0 14px #171215;
}

.skill-orbit {
  display: none;
}

.skill-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  width: 17%;
  aspect-ratio: 1;
  place-content: center;
  color: var(--cream);
  text-align: center;
  background: #171215;
  border: 2px solid var(--pink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.skill-core b {
  color: var(--pink);
  font: italic clamp(28px, 4vw, 48px)/1 "Playfair Display", serif;
}

.skill-core span {
  margin-top: 8px;
  font: 500 6px/1 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.skill-wedge {
  --wedge-angle: 0deg;
  --sector-start: -27deg;
  --sector-sweep: 54deg;
  --sector-inner: 28%;
  --panel-x: 0px;
  --panel-y: 0px;
  --panel-scale-x: 1;
  --panel-scale-y: 1;
  --panel-skew-x: 0deg;
  --panel-skew-y: 0deg;
  --copy-top: 3%;
  --copy-left: 33%;
  --copy-width: 29%;
  --copy-shift-x: 0px;
  --copy-shift-y: 0px;
  --wedge-bg: rgba(20, 15, 18, 0.96);
  --wedge-outline: rgba(255, 248, 241, 0.82);
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  color: var(--cream);
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  transform:
    translate(var(--panel-x), var(--panel-y))
    rotate(var(--wedge-angle));
  transform-origin: center;
  transition: color 220ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-wedge::before,
.skill-wedge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wedge-outline);
  -webkit-mask-image:
    radial-gradient(circle, transparent 0 var(--sector-inner), #000 calc(var(--sector-inner) + 0.5%) 100%),
    conic-gradient(from var(--sector-start), #000 0 var(--sector-sweep), transparent var(--sector-sweep) 360deg);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle, transparent 0 var(--sector-inner), #000 calc(var(--sector-inner) + 0.5%) 100%),
    conic-gradient(from var(--sector-start), #000 0 var(--sector-sweep), transparent var(--sector-sweep) 360deg);
  mask-composite: intersect;
  transition:
    background 240ms ease,
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-wedge::after {
  inset: var(--panel-inset, 3px);
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(216, 134, 152, 0.08) 58% 58.5%, transparent 58.5%),
    var(--wedge-bg);
}

.skill-wedge > div {
  position: absolute;
  z-index: 1;
  top: var(--copy-top);
  left: var(--copy-left);
  width: var(--copy-width);
  max-height: 19%;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
  transform:
    translate(var(--copy-shift-x), var(--copy-shift-y))
    rotate(calc(var(--wedge-angle) * -1));
  transform-origin: center;
}

.skill-wedge span {
  color: var(--pink);
  font: 600 7px/1 "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skill-wedge h3 {
  margin: 10px 0 8px;
  color: var(--pink-soft);
  font: 400 clamp(22px, 2.2vw, 30px)/0.95 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.skill-wedge p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 248, 241, 0.88);
  font: 500 clamp(9px, 0.82vw, 11px)/1.45 "Manrope", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-wedge footer {
  display: flex;
  gap: 5px;
  margin-top: 11px;
}

.skill-wedge footer i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--pink-soft);
  border-radius: 50%;
}

.skill-wedge footer i:nth-child(-n + 4) {
  background: var(--pink);
  border-color: var(--pink);
}

.skill-wedge-1 {
  --wedge-angle: -4deg;
  --sector-start: -24deg;
  --sector-sweep: 47deg;
  --sector-inner: 33%;
  --panel-x: 7px;
  --panel-y: -15px;
  --panel-scale-x: 0.96;
  --panel-scale-y: 1.045;
  --panel-skew-x: -1.4deg;
  --panel-skew-y: 0.4deg;
  --panel-inset: 4px;
  --copy-top: 3%;
  --copy-left: 35%;
  --copy-width: 27%;
}

.skill-wedge-2 {
  --wedge-angle: 55deg;
  --sector-start: -24deg;
  --sector-sweep: 51deg;
  --sector-inner: 29%;
  --panel-x: 17px;
  --panel-y: -4px;
  --panel-scale-x: 1.035;
  --panel-scale-y: 0.965;
  --panel-skew-x: 0.7deg;
  --panel-skew-y: -1.1deg;
  --panel-inset: 5px;
  --copy-top: 4%;
  --copy-left: 35%;
  --copy-width: 28%;
}

.skill-wedge-3 {
  --wedge-angle: 119deg;
  --sector-start: -25deg;
  --sector-sweep: 48deg;
  --sector-inner: 35%;
  --panel-x: 15px;
  --panel-y: 13px;
  --panel-scale-x: 1.055;
  --panel-scale-y: 1.015;
  --panel-skew-x: -0.5deg;
  --panel-skew-y: 1.3deg;
  --panel-inset: 3px;
  --copy-top: 4%;
  --copy-left: 36%;
  --copy-width: 27%;
  --copy-shift-x: -12px;
}

.skill-wedge-4 {
  --wedge-angle: 184deg;
  --sector-start: -23deg;
  --sector-sweep: 46deg;
  --sector-inner: 30%;
  --panel-x: -5px;
  --panel-y: 17px;
  --panel-scale-x: 0.94;
  --panel-scale-y: 1.055;
  --panel-skew-x: 1.2deg;
  --panel-skew-y: 0.6deg;
  --panel-inset: 6px;
  --copy-top: 3%;
  --copy-left: 34%;
  --copy-width: 28%;
  --copy-shift-y: 36px;
}

.skill-wedge-5 {
  --wedge-angle: 239deg;
  --sector-start: -26deg;
  --sector-sweep: 52deg;
  --sector-inner: 34%;
  --panel-x: -18px;
  --panel-y: 4px;
  --panel-scale-x: 1.045;
  --panel-scale-y: 0.955;
  --panel-skew-x: -1deg;
  --panel-skew-y: -0.8deg;
  --panel-inset: 3px;
  --copy-top: 4%;
  --copy-left: 35%;
  --copy-width: 27%;
  --copy-shift-x: -20px;
  --copy-shift-y: -2px;
}

.skill-wedge-6 {
  --wedge-angle: 302deg;
  --sector-start: -24deg;
  --sector-sweep: 46deg;
  --sector-inner: 29%;
  --panel-x: -16px;
  --panel-y: -12px;
  --panel-scale-x: 0.95;
  --panel-scale-y: 1.04;
  --panel-skew-x: 0.9deg;
  --panel-skew-y: 1deg;
  --panel-inset: 5px;
  --copy-top: 4%;
  --copy-left: 35%;
  --copy-width: 27%;
  --copy-shift-x: 52px;
}

.skill-wedge:hover,
.skill-wedge.is-hovered {
  --wedge-bg: var(--pink);
  z-index: 5;
  color: var(--ink);
  transform:
    translate(var(--panel-x), var(--panel-y))
    rotate(var(--wedge-angle))
    scale(1.018);
}

.skill-wedge:hover::before,
.skill-wedge.is-hovered::before {
  background:
    repeating-conic-gradient(
      from 0deg,
      var(--cream) 0 8deg,
      var(--pink) 8deg 9deg,
      var(--cream) 9deg 18deg
    );
  transform: translate(-8px, -7px) scale(1.018);
  animation: skill-outline-shift 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.skill-wedge:hover::after,
.skill-wedge.is-hovered::after {
  background:
    linear-gradient(130deg, transparent 0 55%, rgba(255, 248, 241, 0.3) 55% 56%, transparent 56%),
    var(--pink);
  transform: translate(3px, 3px);
}

.skill-wedge:hover > div,
.skill-wedge.is-hovered > div {
  transform:
    translate(var(--copy-shift-x), calc(var(--copy-shift-y) - 5px))
    rotate(calc(var(--wedge-angle) * -1));
}

.skill-wedge:hover h3,
.skill-wedge:hover span,
.skill-wedge.is-hovered h3,
.skill-wedge.is-hovered span {
  color: var(--ink);
}

.skill-wedge:hover p,
.skill-wedge.is-hovered p {
  color: rgba(20, 15, 18, 0.9);
}

.skill-wedge:hover footer i,
.skill-wedge.is-hovered footer i {
  border-color: var(--ink);
}

.skill-wedge:hover footer i:nth-child(-n + 4),
.skill-wedge.is-hovered footer i:nth-child(-n + 4) {
  background: var(--ink);
}

.route-view[data-route="skills"] .award-band {
  margin-top: 5px;
}

@keyframes skill-spin {
  to { transform: rotate(360deg); }
}

@keyframes skill-outline-shift {
  0% { transform: translate(0, 0) scale(1) rotate(0); }
  65% { transform: translate(-11px, -9px) scale(1.024) rotate(0.5deg); }
  100% { transform: translate(-8px, -7px) scale(1.018) rotate(0); }
}

.award-band {
  margin-top: 24px;
  padding: 28px;
  background: rgba(19, 14, 18, 0.88);
  border-block: 1px solid var(--pink);
}

.award-band p {
  margin: 0 0 18px;
  color: var(--pink);
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.award-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.award-band span {
  padding: 8px 10px;
  font: 500 8px/1 "DM Mono", monospace;
  border: 1px solid rgba(255, 248, 241, 0.35);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  position: relative;
  display: grid;
  min-height: 125px;
  padding: 25px 60px 24px 27px;
  color: var(--cream);
  text-decoration: none;
  background: rgba(20, 15, 18, 0.9);
  border: 1px solid rgba(255, 248, 241, 0.35);
  clip-path: polygon(0 0, 97% 4%, 100% 50%, 96% 96%, 0 100%, 4% 50%);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  color: var(--ink);
  background: var(--pink);
  transform: translateX(8px);
}

.contact-links b {
  align-self: end;
  overflow-wrap: anywhere;
  font: 400 clamp(23px, 3vw, 40px)/1 "Bebas Neue", sans-serif;
  letter-spacing: 0;
}

.contact-links i {
  position: absolute;
  right: 25px;
  top: 50%;
  font: normal 26px/1 "DM Mono", monospace;
  transform: translateY(-50%);
}

.contact-note {
  align-self: start;
  padding: 38px;
  color: var(--ink);
  background: var(--pink);
  clip-path: polygon(5% 0, 100% 4%, 93% 100%, 0 94%);
}

.contact-note span {
  color: var(--cream);
}

.contact-note b {
  display: block;
  margin: 25px 0 15px;
  font: 400 clamp(48px, 6vw, 82px)/0.86 "Bebas Neue", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

@keyframes view-content-land {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes route-launch {
  0% { transform: translateX(-44px) rotate(calc(var(--route-r) * 0.45)) scale(1.055); }
  45% { transform: translateX(-70px) rotate(-4deg) scale(1.16); }
  100% { transform: translate(-42vw, calc(48vh - var(--route-y))) rotate(-2deg) scale(2.5); opacity: 0; }
}

@keyframes burst-in {
  0% { opacity: 0; clip-path: circle(0 at 50% 50%); transform: translate(-50%, -50%) rotate(-110deg) scale(0.2); }
  35%, 66% { opacity: 1; clip-path: circle(52% at 50% 50%); }
  82% { opacity: 0.55; }
  100% { opacity: 0; clip-path: circle(78% at 50% 50%); transform: translate(-50%, -50%) rotate(65deg) scale(1.08); }
}

@keyframes title-impact {
  0%, 12% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(0.25); }
  32% { opacity: 1; transform: translate(-50%, -50%) rotate(3deg) scale(1.14); }
  46%, 68% { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
  82% { opacity: 1; transform: translate(-55%, -50%) rotate(-4deg) scale(1.06, 0.82); }
  100% { opacity: 0; transform: translate(-92%, -50%) rotate(-8deg) scale(1.42, 0.24); }
}

@keyframes shard-cross {
  0% { opacity: 0; transform: translateX(120vw) skewX(-13deg) scaleX(0.7); }
  14% { opacity: 1; }
  64% { opacity: 1; transform: translateX(-2vw) skewX(-13deg) scaleX(1); }
  100% { opacity: 0; transform: translateX(-132vw) skewX(-13deg) scaleX(0.78); }
}

@keyframes shard-return {
  0% { opacity: 0; transform: translateX(-132vw) skewX(13deg) scaleX(0.5); }
  14%, 48% { opacity: 0.96; }
  76% { opacity: 0.7; transform: translateX(32vw) skewX(13deg) scaleX(0.64); }
  100% { opacity: 0; transform: translateX(112vw) skewX(13deg) scaleX(0.12); }
}

@keyframes home-impact {
  0%, 12% { opacity: 0; transform: translate(-88%, -50%) rotate(9deg) scale(1.45, 0.16); }
  36% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1.08); }
  58%, 70% { opacity: 1; transform: translate(-50%, -50%) rotate(1deg) scale(1); }
  100% { opacity: 0; transform: translate(34%, -50%) rotate(7deg) scale(0.18, 0.7); }
}

@keyframes return-burst {
  0% { opacity: 0; clip-path: circle(84% at 50% 50%); transform: translate(-50%, -50%) rotate(70deg) scale(1.1); }
  24%, 54% { opacity: 0.72; clip-path: circle(56% at 50% 50%); }
  100% { opacity: 0; clip-path: circle(0 at 79% 50%); transform: translate(-50%, -50%) rotate(-45deg) scale(0.2); }
}

@keyframes return-wipe {
  0% { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  20% { opacity: 1; clip-path: polygon(0 0, 54% 0, 43% 100%, 0 100%); }
  44%, 56% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  78% { opacity: 1; clip-path: polygon(67% 0, 100% 0, 100% 100%, 78% 100%); }
  100% { opacity: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
}

@keyframes return-cut-line {
  0% { opacity: 0; transform: rotate(7deg) translateX(-115vw) scaleX(0.35); }
  32%, 64% { opacity: 1; }
  100% { opacity: 0; transform: rotate(7deg) translateX(110vw) scaleX(0.85); }
}

@keyframes route-fold-home {
  0% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: scale(1); filter: contrast(1); }
  42% { opacity: 1; clip-path: polygon(22% 0, 100% 4%, 100% 96%, 10% 100%); transform: scale(1.015); filter: contrast(1.15); }
  78% { opacity: 0.95; clip-path: polygon(72% 14%, 100% 24%, 100% 78%, 66% 88%); transform: scale(0.99); }
  100% { opacity: 0; clip-path: polygon(96% 46%, 100% 48%, 100% 54%, 94% 56%); transform: scale(0.94); filter: contrast(1.35); }
}

@keyframes transition-cut-line {
  0% { opacity: 0; transform: rotate(-7deg) translateX(110vw) scaleX(0.25); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-7deg) translateX(-115vw) scaleX(1); }
}

@keyframes slash-wipe {
  0% {
    opacity: 1;
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
  42% {
    opacity: 1;
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 45% 100%);
  }
  68% {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  82% {
    opacity: 1;
    clip-path: polygon(0 0, 48% 0, 35% 100%, 0 100%);
  }
  100% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
}

@keyframes route-aperture {
  0% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); filter: contrast(1.35) saturate(0.6); }
  46% { clip-path: polygon(62% 0, 100% 0, 100% 100%, 48% 100%); }
  76% { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); filter: contrast(1) saturate(1); }
}

@keyframes view-land {
  to { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

@media (max-width: 1100px) {
  .identity {
    left: 5vw;
    top: 18%;
    width: 43vw;
  }

  .identity h1 span {
    font-size: clamp(76px, 11vw, 120px);
  }

  .identity h1 em {
    font-size: clamp(66px, 9vw, 104px);
  }

  .identity h1 .brand-name {
    font-size: clamp(76px, 11vw, 126px);
  }

  .route-stage {
    width: 57vw;
  }

  .route-card {
    grid-template-columns: 35px 1fr 38px;
    padding-inline: 28px;
  }

  .character-seal {
    right: calc(57vw - 25px);
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
    cursor: auto;
  }

  button,
  a {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .portfolio-shell {
    min-height: 920px;
    height: auto;
    background: var(--paper);
  }

  .hero-illustration {
    height: 570px;
    object-position: 57% center;
    opacity: 0.72;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }

  .masthead {
    top: 20px;
    left: 20px;
  }

  .crest {
    width: 38px;
    height: 38px;
  }

  .edition p {
    font-size: 9px;
  }

  .identity {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 155px 20px 0;
  }

  .chapter {
    margin-bottom: 14px;
  }

  .identity h1 span {
    font-size: clamp(76px, 24vw, 104px);
  }

  .identity h1 em {
    margin-left: 8vw;
    font-size: clamp(64px, 20vw, 88px);
  }

  .identity h1 .brand-name {
  display: block;
  color: var(--pink);
  font-size: clamp(84px, 9vw, 168px);
  line-height: 0.82;
  white-space: nowrap;
  transform: rotate(-5deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Readable skill dossier: keeps the collage energy while putting the stack first. */
.route-view[data-route="skills"] {
  overflow-x: hidden;
}

.route-view[data-route="skills"] .route-view-content {
  width: min(1180px, calc(100% - 140px));
  margin: 82px auto 72px;
}

.skills-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.42fr);
  gap: 18px;
}

.route-view[data-route="skills"] .skill-heading {
  position: relative;
  inset: auto;
  max-width: none;
  padding: 30px 34px 28px;
  color: #171214;
  background: rgba(255, 248, 241, 0.94);
  border: 2px solid #171214;
  box-shadow: 9px 10px 0 rgba(213, 131, 152, 0.88);
  clip-path: polygon(1% 3%, 99% 0, 100% 92%, 3% 100%);
  transform: rotate(-1deg);
}

.route-view[data-route="skills"] .skill-heading p {
  color: #a83253;
}

.route-view[data-route="skills"] .skill-heading h2 {
  font-size: clamp(82px, 10vw, 138px);
  line-height: 0.72;
}

.route-view[data-route="skills"] .skill-heading strong {
  max-width: 570px;
  margin-top: 22px;
  color: rgba(23, 18, 20, 0.78);
  font-size: clamp(15px, 1.6vw, 21px);
}

.skill-summary {
  position: relative;
  align-self: stretch;
  padding: 26px 26px 24px;
  color: #fff8f1;
  background: rgba(20, 15, 18, 0.94);
  border: 2px solid rgba(255, 248, 241, 0.82);
  box-shadow: 8px 9px 0 rgba(213, 131, 152, 0.72);
  clip-path: polygon(3% 0, 100% 4%, 96% 100%, 0 94%);
  transform: translateY(6px) rotate(1.2deg);
}

.skill-summary div {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 248, 241, 0.28);
}

.skill-summary b {
  color: #f0a2b4;
  font: 400 clamp(70px, 8vw, 105px)/0.7 "Bebas Neue", sans-serif;
}

.skill-summary span,
.skill-summary small {
  font: 500 8px/1.35 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skill-summary p {
  margin: 20px 0;
  font: 500 12px/1.65 "Manrope", sans-serif;
}

.skill-summary small {
  color: #f0a2b4;
}

.skill-card-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 8px;
}

.skill-card {
  --card-accent: #ef96aa;
  position: relative;
  min-height: 255px;
  padding: 25px 24px 22px;
  overflow: hidden;
  color: #fff8f1;
  background: rgba(17, 13, 15, 0.94);
  border: 1px solid rgba(255, 248, 241, 0.5);
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--card-accent) 75%, transparent);
  clip-path: polygon(2% 0, 100% 3%, 97% 100%, 0 95%);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.skill-card:nth-child(2),
.skill-card:nth-child(5) {
  --card-accent: #f4c472;
  transform: translateY(7px) rotate(0.5deg);
}

.skill-card:nth-child(3),
.skill-card:nth-child(6) {
  --card-accent: #98d8d1;
  transform: rotate(-0.6deg);
}

.skill-card::after {
  content: attr(data-index);
  position: absolute;
  right: 12px;
  bottom: -18px;
  color: rgba(255, 248, 241, 0.035);
  font: 400 130px/1 "Bebas Neue", sans-serif;
  pointer-events: none;
}

.skill-card:hover {
  color: #171214;
  background: var(--card-accent);
  box-shadow: 9px 10px 0 rgba(255, 248, 241, 0.76);
  transform: translateY(-5px) rotate(-0.4deg);
}

.skill-card > span {
  color: var(--card-accent);
  font: 600 8px/1 "DM Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skill-card:hover > span {
  color: #171214;
}

.skill-card h3 {
  margin: 17px 0 10px;
  color: #fff8f1;
  font: 400 clamp(34px, 3.4vw, 48px)/0.9 "Bebas Neue", sans-serif;
}

.skill-card:hover h3 {
  color: #171214;
}

.skill-card p {
  margin: 0 0 18px;
  min-height: 42px;
  color: rgba(255, 248, 241, 0.76);
  font: 500 11px/1.5 "Manrope", sans-serif;
}

.skill-card:hover p {
  color: rgba(23, 18, 20, 0.8);
}

.skill-card ul {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  padding: 6px 7px;
  color: #fff8f1;
  font: 500 7px/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 248, 241, 0.35);
}

.skill-card:hover li {
  color: #171214;
  border-color: rgba(23, 18, 20, 0.45);
}

.route-view[data-route="skills"] .award-band {
  grid-column: 1 / -1;
  margin-top: 12px;
  border: 2px solid rgba(255, 248, 241, 0.75);
  box-shadow: 7px 8px 0 rgba(213, 131, 152, 0.65);
  transform: rotate(-0.4deg);
}

.project-card.project-lead.has-media {
  background:
    linear-gradient(to bottom, transparent 0 29%, rgba(18, 10, 14, 0.94) 58% 100%),
    var(--project-image) center 30% / cover no-repeat;
}

.project-card.project-lead.has-media.project-vessle {
  background-position: center, center 38%;
}

.project-card.project-lead.has-media:hover {
  background:
    linear-gradient(to bottom, rgba(227, 55, 79, 0.05), rgba(18, 10, 14, 0.9)),
    var(--project-image) center 30% / cover no-repeat;
}

.project-card.project-lead.has-media.project-vessle:hover {
  background-position: center, center 38%;
}

@media (max-width: 980px) {
  .route-view[data-route="skills"] .route-view-content {
    width: calc(100% - 60px);
  }

  .skills-showcase {
    grid-template-columns: 1fr;
  }

  .skill-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .route-view[data-route="skills"] .route-view-content {
    width: calc(100% - 28px);
    margin: 92px 14px 60px;
  }

  .route-view[data-route="skills"] .skill-heading {
    padding: 28px 23px 25px;
    transform: none;
  }

  .route-view[data-route="skills"] .skill-heading h2 {
    font-size: clamp(78px, 26vw, 108px);
  }

  .skill-summary {
    transform: none;
  }

  .skill-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-card,
  .skill-card:nth-child(2),
  .skill-card:nth-child(3),
  .skill-card:nth-child(5),
  .skill-card:nth-child(6) {
    min-height: 230px;
    transform: none;
  }
}
.roles {
    width: 100%;
    margin: 30px 0 0;
    padding-inline: 10px;
    gap: 8px;
    font-size: 13px;
  }

  .statement {
    margin: 22px 0 0 5px;
    font-size: 15px;
  }

  .identity-footer,
  .character-seal,
  .corner-notes {
    display: none;
  }

  .route-stage {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    margin-top: 42px;
    padding: 36px 0 58px;
    background: #100d0f;
    border-radius: 48% 48% 0 0 / 6% 6% 0 0;
  }

  .route-stage::before,
  .route-stage::after {
    display: none;
  }

  .route-backdrop::before,
  .route-backdrop::after {
    display: none;
  }

  .route-card-wrap::before {
    display: none;
  }

  .route-stack {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    width: calc(100% - 24px);
    height: auto;
    margin-left: 12px;
    gap: 8px;
  }

  .route-card-wrap,
  .route-card-wrap:nth-child(even) {
    --route-w: 100%;
    --route-y: 0%;
    --route-r: 0deg;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 92px;
    transform: rotate(-1deg);
  }

  .route-card-wrap:nth-child(even) {
    transform: rotate(1deg);
  }

  .route-card-wrap .route-aura {
    inset: -5px -7px -7px;
    filter: drop-shadow(5px 6px 0 var(--ink)) drop-shadow(8px 9px 0 var(--pink));
  }

  .route-card,
  .route-card:nth-child(even) {
    --route-w: 100%;
    --route-y: 0%;
    --route-r: 0deg;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    margin-left: 0;
    min-height: 92px;
    padding: 12px 24px 12px 26px;
    grid-template-columns: 30px 1fr 28px;
    transform: none;
    filter: none;
  }

  .route-card:nth-child(even) {
    transform: none;
  }

  .route-card:hover,
  .route-card:focus-visible,
  .route-card.is-selected,
  .route-card:nth-child(even):hover,
  .route-card:nth-child(even):focus-visible,
  .route-card:nth-child(even).is-selected {
    transform: translateX(-4px) scale(1.02);
  }

  .route-copy b {
    font-size: 42px;
  }

  .route-copy small {
    margin-top: 10px;
    font-size: 10px;
  }

  .route-card::after {
    left: 54px;
    right: 38px;
    bottom: 13%;
    height: 18px;
  }

  .route-mark {
    font-size: 20px;
  }

  .socials {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 28px;
  }

  .transition-title-frame {
    min-width: 84vw;
    min-height: 150px;
    padding-inline: 24px;
  }

  .route-view-copy {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding: 42px 28px 48px;
  }

  .route-view-content {
    width: calc(100% - 28px);
    margin: 90px 14px 50px;
  }

  .view-hero {
    margin-bottom: 28px;
  }

  .view-hero h2 {
    font-size: clamp(76px, 25vw, 110px);
  }

  .skill-heading {
    position: relative;
    left: auto;
    top: auto;
    max-width: none;
    transform: rotate(-2deg);
  }

  .route-view[data-route="skills"] {
    background:
      radial-gradient(circle at 18% 12%, rgba(216, 134, 152, 0.18) 0 1px, transparent 1.7px) 0 0 / 7px 7px,
      linear-gradient(155deg, rgba(255, 248, 241, 0.95) 0 15%, transparent 15.3%),
      #100d0f;
  }

  .route-view[data-route="skills"]::after,
  .route-view[data-route="skills"] .skill-heading::before {
    display: none;
  }

  .route-view[data-route="skills"] {
    overflow-x: hidden;
  }

  .route-view[data-route="skills"] .route-view-art {
    display: none;
  }

  .skill-wheel {
    --wheel-size: auto;
    display: grid;
    width: 100%;
    height: auto;
    margin: 18px 0 42px;
    gap: 10px;
    border-radius: 0;
  }

  .skill-wheel::before,
  .skill-wheel::after,
  .skill-orbit,
  .skill-core {
    display: none;
  }

  .skill-wedge,
  .skill-wedge:hover {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 180px;
    padding: 26px 30px;
    border-radius: 0;
    clip-path: polygon(0 8%, 96% 0, 100% 82%, 8% 100%);
    pointer-events: auto;
    transform: none;
    transform-origin: center;
  }

  .skill-wedge:hover {
    transform: translateY(-5px);
  }

  .skill-wedge:hover::before {
    display: block;
    inset: -5px;
    border-radius: 0;
    clip-path: inherit;
    -webkit-mask-image: none;
    mask-image: none;
    transform: translate(-3px, 2px);
    animation: none;
  }

  .skill-wedge:nth-of-type(even),
  .skill-wedge:nth-of-type(even):hover {
    clip-path: polygon(4% 0, 100% 8%, 92% 100%, 0 82%);
  }

  .skill-wedge > div {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    min-height: 0;
    transform: none;
  }

  .skill-wedge:hover > div {
    transform: translateX(4px);
  }

  .skill-wedge::before {
    display: none;
  }

  .skill-wedge::after {
    inset: 2px;
    border-radius: 0;
    clip-path: inherit;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .skill-wedge h3 {
    font-size: 39px;
  }

  .project-grid,
  .skill-grid,
  .about-layout,
  .contact-layout,
  .timeline {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.project-lead {
    min-height: 280px;
  }

  .about-layout .view-hero,
  .contact-layout .view-hero,
  .timeline {
    grid-column: auto;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links b {
    font-size: 27px;
  }

  .route-view-copy h2 {
    font-size: clamp(76px, 25vw, 110px);
  }

  .route-view-stamp {
    right: 24px;
    bottom: 36px;
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .route-soundtrack {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}

/* Album scenes stay visually dominant; route UI sits over the illustration. */
.route-view[data-route="projects"] {
  --route-accent: #e95a7a;
  --route-soft: #ffd7e1;
  background:
    linear-gradient(90deg, rgba(4, 3, 4, 0.38) 0 34%, rgba(4, 3, 4, 0.04) 67%, rgba(4, 3, 4, 0.18) 100%),
    url("assets/albums/sisterhood-route.png") center / cover no-repeat;
}

.route-view[data-route="about"] {
  --route-accent: #d97691;
  --route-soft: #f5d5c8;
  --route-ink: #342727;
  color: #342727;
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.08), rgba(255, 247, 232, 0.2) 42%, rgba(255, 247, 232, 0.04)),
    url("assets/albums/fete-route.png") center / cover no-repeat;
}

.route-view[data-route="skills"] {
  --route-accent: #d58398;
  --route-soft: #f6d7df;
  --route-ink: #171214;
  color: #171214;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.08) 0 36%, transparent 65%),
    url("assets/albums/unmusique-route.png") center / cover no-repeat;
}

.route-view[data-route="contact"] {
  --route-accent: #a9d8ff;
  --route-soft: #d9e8ff;
  --route-ink: #0b1020;
  background:
    linear-gradient(90deg, rgba(5, 10, 27, 0.28), rgba(5, 10, 27, 0.04) 55%, rgba(5, 10, 27, 0.22)),
    url("assets/albums/tether-route.png") center / cover no-repeat;
}

.route-view[data-route]::before {
  z-index: 0;
  opacity: 0.16;
  mix-blend-mode: normal;
  filter: none;
}

.route-view[data-route="projects"]::before {
  background: radial-gradient(circle, rgba(233, 90, 122, 0.22) 0 1px, transparent 1.4px) 0 0 / 9px 9px;
}

.route-view[data-route="about"]::before {
  background: repeating-linear-gradient(173deg, transparent 0 57px, rgba(159, 94, 108, 0.11) 58px 59px);
}

.route-view[data-route="skills"]::before {
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(20, 16, 18, 0.08) 80px);
}

.route-view[data-route="skills"]::after {
  opacity: 0.18;
}

.route-view[data-route="contact"]::before {
  background: radial-gradient(circle, rgba(196, 226, 255, 0.22) 0 1px, transparent 1.5px) 0 0 / 12px 12px;
}

.route-view[data-route="projects"] .view-hero h2,
.route-view[data-route="projects"] .view-hero strong,
.route-view[data-route="contact"] .view-hero h2,
.route-view[data-route="contact"] .view-hero strong {
  color: #fff8f1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 5px 5px 0 rgba(0, 0, 0, 0.26);
}

.route-view[data-route="about"] .view-hero h2,
.route-view[data-route="skills"] .view-hero h2 {
  text-shadow: 3px 3px 0 rgba(255, 250, 241, 0.62);
}

.route-view[data-route="about"] .about-copy,
.route-view[data-route="about"] .timeline article {
  color: #fff8f1;
}

.route-view[data-route="about"] .about-copy {
  background: rgba(39, 50, 40, 0.9);
}

.route-view[data-route] .route-view-art {
  opacity: 0.38;
}

body.is-home-arriving .identity {
  animation: home-copy-return 720ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-home-arriving .route-stage {
  animation: home-nav-return 760ms 70ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-home-arriving .masthead,
body.is-home-arriving .corner-notes {
  animation: home-detail-return 620ms 150ms ease both;
}

body.is-home-arriving .route-card.is-return-target {
  animation: return-card-land 760ms 110ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Fete de vanille scrapbook composition */
.route-view[data-route="about"] .route-view-content,
.route-view[data-route="contact"] .route-view-content {
  width: min(1220px, calc(100% - 120px));
  margin-top: 84px;
}

.route-view[data-route="about"] .about-layout {
  position: relative;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  min-height: 820px;
}

.route-view[data-route="about"] .about-layout::before,
.route-view[data-route="about"] .about-layout::after,
.route-view[data-route="contact"] .contact-layout::before,
.route-view[data-route="contact"] .contact-layout::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.route-view[data-route="about"] .about-layout::before {
  right: -3%;
  top: 10%;
  width: 43%;
  height: 39%;
  border: 2px solid rgba(55, 39, 42, 0.78);
  box-shadow: 11px 12px 0 rgba(217, 118, 145, 0.6), -8px -7px 0 rgba(255, 248, 241, 0.82);
  clip-path: polygon(3% 0, 100% 5%, 96% 96%, 0 100%);
  transform: rotate(3deg);
}

.route-view[data-route="about"] .about-layout::after {
  left: 37%;
  top: 5%;
  width: 120px;
  height: 26px;
  background: rgba(217, 118, 145, 0.78);
  box-shadow: 510px 390px 0 rgba(55, 39, 42, 0.84), 470px 430px 0 rgba(255, 248, 241, 0.78);
  transform: rotate(-7deg);
}

.route-view[data-route="about"] .view-hero {
  grid-column: 1 / 8;
  position: relative;
  z-index: 3;
  margin: 16px 0 14px;
  transform: rotate(-2deg);
}

.route-view[data-route="about"] .view-hero h2,
.route-view[data-route="contact"] .view-hero h2 {
  display: inline-block;
  position: relative;
  padding: 14px 32px 10px;
  color: var(--cream);
  background: #302629;
  border: 4px solid var(--cream);
  outline: 4px solid #302629;
  filter: drop-shadow(12px 12px 0 var(--route-accent));
  clip-path: polygon(2% 7%, 96% 0, 100% 84%, 91% 100%, 0 92%);
  text-shadow: none;
  transform: rotate(-2deg);
}

.route-view[data-route="about"] .view-hero::after {
  content: "ME";
  position: absolute;
  left: 350px;
  top: 145px;
  z-index: 3;
  padding: 4px 13px;
  color: #302629;
  background: var(--route-accent);
  border: 3px solid #302629;
  font: 400 52px/0.8 "Bebas Neue", sans-serif;
  transform: rotate(8deg);
}

.route-view[data-route="about"] .view-hero strong {
  width: fit-content;
  max-width: 560px;
  margin: 30px 0 0 34px;
  padding: 11px 18px;
  color: #302629;
  background: rgba(255, 248, 241, 0.86);
  border-block: 1px solid #302629;
  box-shadow: 7px 7px 0 rgba(217, 118, 145, 0.55);
  transform: rotate(1deg);
}

.route-view[data-route="about"] .about-copy {
  grid-column: 1 / 7;
  align-self: start;
  position: relative;
  z-index: 2;
  margin: 10px 0 0 32px;
  padding: 34px 38px 32px;
  color: var(--cream);
  background: rgba(48, 38, 41, 0.95);
  border: 2px solid var(--cream);
  box-shadow: 9px 9px 0 #302629, 15px 15px 0 rgba(217, 118, 145, 0.72);
  clip-path: polygon(2% 0, 100% 4%, 96% 100%, 0 94%);
  transform: rotate(-1deg);
}

.route-view[data-route="about"] .about-copy::before {
  content: "CURIOUS MIND / CREATIVE SOUL";
  display: block;
  width: fit-content;
  margin: -49px 0 25px -22px;
  padding: 8px 16px;
  color: #302629;
  background: var(--route-accent);
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: 0.15em;
  transform: rotate(-3deg);
}

.route-view[data-route="about"] .stat-strip {
  grid-column: 8 / 13;
  grid-row: 1 / span 2;
  align-self: end;
  z-index: 2;
  gap: 14px;
  padding-top: 265px;
  transform: rotate(2deg);
}

.route-view[data-route="about"] .stat-strip div {
  min-height: 118px;
  color: #302629;
  background: rgba(255, 248, 241, 0.92);
  border: 2px solid #302629;
  box-shadow: 6px 7px 0 var(--route-accent);
}

.route-view[data-route="about"] .stat-strip div:nth-child(2),
.route-view[data-route="about"] .stat-strip div:nth-child(3) {
  transform: translateY(8px) rotate(-3deg);
}

.route-view[data-route="about"] .timeline {
  grid-column: 3 / 13;
  grid-row: 3;
  position: relative;
  z-index: 2;
  gap: 14px;
  margin: 18px 0 0;
  background: transparent;
  transform: rotate(1deg);
}

.route-view[data-route="about"] .timeline article {
  min-height: 185px;
  color: var(--cream);
  background: rgba(48, 38, 41, 0.94);
  border: 2px solid var(--cream);
  box-shadow: 7px 7px 0 rgba(217, 118, 145, 0.72);
  clip-path: polygon(2% 3%, 100% 0, 96% 100%, 0 95%);
}

.route-view[data-route="about"] .timeline article:nth-child(2) {
  transform: translateY(-12px) rotate(-2deg);
}

/* Tether contact collage */
.route-view[data-route="contact"] .contact-layout {
  position: relative;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  min-height: 750px;
}

.route-view[data-route="contact"] .contact-layout::before {
  left: 27%;
  bottom: 4%;
  width: 265px;
  height: 180px;
  background:
    linear-gradient(32deg, transparent 49%, rgba(169, 216, 255, 0.55) 49.5% 50.5%, transparent 51%),
    linear-gradient(-32deg, transparent 49%, rgba(169, 216, 255, 0.55) 49.5% 50.5%, transparent 51%),
    rgba(7, 13, 32, 0.8);
  border: 2px solid var(--route-accent);
  box-shadow: 12px 13px 0 rgba(3, 7, 20, 0.72);
  transform: rotate(-7deg);
}

.route-view[data-route="contact"] .contact-layout::after {
  right: 2%;
  top: 7%;
  width: 37%;
  height: 69%;
  border: 2px solid rgba(217, 232, 255, 0.72);
  box-shadow: 11px 12px 0 rgba(7, 13, 32, 0.82), 18px 19px 0 rgba(121, 191, 255, 0.48);
  clip-path: polygon(4% 0, 100% 5%, 95% 100%, 0 95%);
  transform: rotate(3deg);
}

.route-view[data-route="contact"] .view-hero {
  grid-column: 1 / 8;
  position: relative;
  z-index: 3;
  margin: 18px 0 8px;
  transform: rotate(-2deg);
}

.route-view[data-route="contact"] .view-hero h2 {
  color: #e7f2ff;
  background: #071020;
  border-color: #e7f2ff;
  outline-color: #071020;
  filter: drop-shadow(12px 12px 0 var(--route-accent));
}

.route-view[data-route="contact"] .view-hero::after {
  content: "ME";
  position: absolute;
  left: 450px;
  top: 148px;
  z-index: 3;
  padding: 4px 13px;
  color: #071020;
  background: var(--route-accent);
  border: 3px solid #071020;
  font: 400 52px/0.8 "Bebas Neue", sans-serif;
  transform: rotate(7deg);
}

.route-view[data-route="contact"] .view-hero strong {
  width: fit-content;
  margin: 30px 0 0 30px;
  padding: 10px 18px;
  color: #071020;
  background: rgba(217, 232, 255, 0.88);
  border: 2px solid #071020;
  box-shadow: 7px 7px 0 var(--route-accent);
  transform: rotate(1deg);
}

.route-view[data-route="contact"] .contact-links {
  grid-column: 1 / 8;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin: 20px 0 0 28px;
}

.route-view[data-route="contact"] .contact-links::before {
  content: "REACH ME AT";
  position: absolute;
  left: 28px;
  top: -24px;
  z-index: 3;
  padding: 8px 28px;
  color: #071020;
  background: var(--route-accent);
  border: 2px solid #071020;
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0.18em;
  transform: rotate(-3deg);
}

.route-view[data-route="contact"] .contact-links a {
  min-height: 105px;
  color: #e7f2ff;
  background: rgba(7, 13, 32, 0.92);
  border: 2px solid rgba(217, 232, 255, 0.78);
  box-shadow: 8px 8px 0 rgba(121, 191, 255, 0.55);
  clip-path: polygon(1% 3%, 98% 0, 100% 88%, 3% 100%);
}

.route-view[data-route="contact"] .contact-links a:nth-child(2) {
  transform: translateX(32px) rotate(1deg);
}

.route-view[data-route="contact"] .contact-links a:nth-child(3) {
  transform: translateX(8px) rotate(-1deg);
}

.route-view[data-route="contact"] .contact-links a:hover {
  color: #071020;
  background: var(--route-accent);
  transform: translateX(20px) rotate(-1deg);
}

.route-view[data-route="contact"] .contact-note {
  grid-column: 9 / 13;
  align-self: start;
  position: relative;
  z-index: 2;
  margin-top: 172px;
  padding: 48px 32px;
  color: #071020;
  background: rgba(217, 232, 255, 0.95);
  border: 3px solid #071020;
  box-shadow: 10px 11px 0 #071020, 17px 18px 0 rgba(121, 191, 255, 0.72);
  clip-path: polygon(2% 2%, 98% 0, 100% 92%, 5% 100%);
  transform: rotate(3deg);
}

.route-view[data-route="contact"] .contact-note::before {
  content: "OPEN CHANNEL";
  position: absolute;
  left: 20px;
  top: -18px;
  padding: 7px 15px;
  color: #e7f2ff;
  background: #071020;
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: 0.16em;
  transform: rotate(-4deg);
}

.route-view[data-route="contact"] .contact-note b {
  font-size: clamp(44px, 5vw, 70px);
}

@media (max-width: 760px) {
  .route-view[data-route="about"] .route-view-content,
  .route-view[data-route="contact"] .route-view-content {
    width: calc(100% - 28px);
    margin: 90px 14px 70px;
  }

  .route-view[data-route="about"] .about-layout,
  .route-view[data-route="contact"] .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
  }

  .route-view[data-route="about"] .about-layout::before,
  .route-view[data-route="about"] .about-layout::after,
  .route-view[data-route="contact"] .contact-layout::before,
  .route-view[data-route="contact"] .contact-layout::after {
    display: none;
  }

  .route-view[data-route="about"] .view-hero,
  .route-view[data-route="about"] .about-copy,
  .route-view[data-route="about"] .stat-strip,
  .route-view[data-route="about"] .timeline,
  .route-view[data-route="contact"] .view-hero,
  .route-view[data-route="contact"] .contact-links,
  .route-view[data-route="contact"] .contact-note {
    grid-column: 1;
    grid-row: auto;
    margin: 0;
    transform: none;
  }

  .route-view[data-route="about"] .view-hero h2,
  .route-view[data-route="contact"] .view-hero h2 {
    padding-inline: 20px;
    font-size: clamp(74px, 25vw, 105px);
  }

  .route-view[data-route="about"] .view-hero::after,
  .route-view[data-route="contact"] .view-hero::after {
    left: auto;
    right: 8px;
    top: 92px;
    font-size: 34px;
  }

  .route-view[data-route="about"] .about-copy {
    margin-top: 18px;
    padding: 32px 25px 26px;
  }

  .route-view[data-route="about"] .stat-strip {
    padding-top: 0;
  }

  .route-view[data-route="about"] .timeline {
    grid-template-columns: 1fr;
  }

  .route-view[data-route="contact"] .contact-links {
    margin-top: 20px;
  }

  .route-view[data-route="contact"] .contact-links a,
  .route-view[data-route="contact"] .contact-links a:nth-child(2),
  .route-view[data-route="contact"] .contact-links a:nth-child(3) {
    transform: none;
  }

  .route-view[data-route="contact"] .contact-note {
    margin-bottom: 70px;
  }
}

@keyframes home-copy-return {
  0% { opacity: 0; transform: translateX(-36px) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes home-nav-return {
  0% { opacity: 0; transform: translateX(60px) scale(0.94); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes home-detail-return {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes return-card-land {
  0%, 48% { color: var(--cream); background: #171215; transform: translateX(48px) scale(1.1); }
  72% { transform: translateX(-12px) scale(1.045); }
  100% { transform: translateX(0) scale(1); }
}

/* Persona loadout / skills route */
.route-view[data-route="skills"] {
  overflow-x: hidden;
  scrollbar-color: #d58398 #0c090b;
}

.route-view[data-route="skills"] .route-view-content {
  width: min(1180px, calc(100% - 132px));
  margin: 76px auto 56px;
}

.persona-skills {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(560px, 1.34fr);
  grid-template-rows: auto 1fr auto;
  gap: 18px 24px;
  min-height: 650px;
  padding: 10px 4px 0;
  isolation: isolate;
}

.persona-skills::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px;
  right: -3%;
  width: 68%;
  height: calc(100% - 72px);
  background:
    repeating-linear-gradient(166deg, transparent 0 31px, rgba(255, 248, 241, 0.06) 32px 34px),
    rgba(10, 7, 9, 0.78);
  border: 2px solid rgba(255, 248, 241, 0.76);
  box-shadow: 14px 14px 0 rgba(213, 131, 152, 0.62);
  clip-path: polygon(6% 0, 100% 4%, 96% 96%, 0 100%, 3% 47%);
  transform: rotate(0.7deg);
}

.persona-skills::after {
  content: "03 / LOADOUT";
  position: absolute;
  z-index: -1;
  right: -28px;
  top: 42%;
  color: rgba(255, 248, 241, 0.16);
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: 0.38em;
  writing-mode: vertical-rl;
}

.persona-speedlines {
  position: absolute;
  z-index: -2;
  left: -18vw;
  top: -11vh;
  width: 64vw;
  height: 48vh;
  opacity: 0.48;
  background: repeating-conic-gradient(from 196deg at 5% 9%, transparent 0 3.6deg, rgba(18, 13, 16, 0.4) 3.8deg 4deg);
  clip-path: polygon(0 0, 100% 0, 83% 100%, 0 75%);
  pointer-events: none;
  animation: persona-speed-pulse 2.8s ease-in-out infinite alternate;
}

.persona-heading {
  position: relative;
  z-index: 3;
  grid-column: 1;
  align-self: start;
  min-height: 245px;
  padding: 32px 38px 30px 34px;
  color: #171214;
  background:
    radial-gradient(circle at 85% 16%, rgba(213, 131, 152, 0.24) 0 2px, transparent 2.5px) 0 0 / 12px 12px,
    rgba(255, 248, 241, 0.95);
  border: 2px solid #171214;
  outline: 4px solid rgba(255, 248, 241, 0.72);
  box-shadow: 10px 11px 0 #171214, 19px 19px 0 rgba(213, 131, 152, 0.84);
  clip-path: polygon(0 4%, 97% 0, 100% 84%, 88% 100%, 4% 94%);
  transform: rotate(-1.6deg);
}

.persona-heading::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 72px;
  width: 52px;
  height: 8px;
  background: #ff5277;
  box-shadow: 0 17px 0 #171214, 0 34px 0 #ff5277;
  transform: rotate(-10deg);
}

.persona-heading p {
  margin: 0;
  color: #a83253;
  font: 600 8px/1 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.persona-heading p span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  place-items: center;
  color: #fff8f1;
  background: #171214;
  border-radius: 50%;
  letter-spacing: 0;
}

.persona-heading h2 {
  position: relative;
  width: fit-content;
  margin: 16px 0 8px;
  font: 400 clamp(86px, 9vw, 130px)/0.72 "Bebas Neue", sans-serif;
  letter-spacing: -0.025em;
  text-shadow: 5px 5px 0 rgba(213, 131, 152, 0.48);
  transform: skewX(-5deg);
}

.persona-heading h2::after {
  content: "";
  position: absolute;
  left: 8%;
  right: -10%;
  bottom: -6px;
  height: 11px;
  background: #ff5277;
  clip-path: polygon(0 28%, 100% 0, 94% 100%, 4% 74%);
  transform: rotate(-2deg);
}

.persona-heading strong {
  display: block;
  max-width: 325px;
  margin-top: 18px;
  font: italic 16px/1.38 "Playfair Display", serif;
}

.persona-heading-stamp {
  position: absolute;
  right: 23px;
  top: 30px;
  width: 56px;
  height: 56px;
  display: grid;
  place-content: center;
  color: #fff8f1;
  background: #171214;
  border: 2px solid #ff5277;
  border-radius: 50%;
  text-align: center;
  font: italic 22px/0.72 "Playfair Display", serif;
  transform: rotate(8deg);
}

.persona-heading-stamp small {
  display: block;
  margin-top: 7px;
  color: #ff92aa;
  font: 500 6px/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
}

.persona-console {
  position: relative;
  z-index: 2;
  grid-column: 1;
  min-height: 285px;
  padding: 25px 22px 22px 154px;
  color: #fff8f1;
  background: rgba(17, 12, 15, 0.94);
  border: 2px solid rgba(255, 248, 241, 0.8);
  box-shadow: 9px 10px 0 rgba(213, 131, 152, 0.74);
  clip-path: polygon(5% 0, 100% 5%, 96% 92%, 12% 100%, 0 78%);
  transform: translateX(14px) rotate(1deg);
  overflow: hidden;
}

.persona-console::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.16) 8px);
  animation: persona-scan 5s linear infinite;
  pointer-events: none;
}

.persona-sigil {
  position: absolute;
  left: 20px;
  top: 55px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 2px solid #ff5277;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #171214, 0 0 0 9px rgba(255, 248, 241, 0.7);
}

.persona-sigil::before,
.persona-sigil::after,
.persona-sigil i {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 248, 241, 0.52);
  border-radius: 50%;
}

.persona-sigil::before {
  inset: -14px 45px;
  border-radius: 0;
  border-block: 0;
  transform: rotate(45deg);
  animation: persona-orbit 5.5s linear infinite;
}

.persona-sigil::after {
  inset: 45px -14px;
  border-radius: 0;
  border-inline: 0;
  transform: rotate(-45deg);
  animation: persona-orbit 4.2s linear infinite reverse;
}

.persona-sigil i:nth-child(1) {
  inset: 17px;
  border-style: dashed;
  animation: persona-orbit 8s linear infinite;
}

.persona-sigil i:nth-child(2) {
  inset: 30px;
  border-color: #ff5277;
  animation: persona-orbit 3s linear infinite reverse;
}

.persona-sigil i:nth-child(3) {
  inset: 52px;
  background: #ff5277;
  border: 0;
  box-shadow: -42px 0 0 #ffd166, 42px 0 0 #74e7d6, 0 -42px 0 #72b7ff, 0 42px 0 #dca7ff;
}

.persona-sigil b {
  position: relative;
  z-index: 2;
  color: #fff8f1;
  font: italic 28px/1 "Playfair Display", serif;
}

.persona-readout {
  position: relative;
  z-index: 1;
}

.persona-readout > span {
  color: #ff92aa;
  font: 600 7px/1 "DM Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.persona-readout h3 {
  margin: 14px 0 10px;
  color: #fff8f1;
  font: 400 clamp(34px, 3vw, 48px)/0.9 "Bebas Neue", sans-serif;
  transition: color 160ms ease, transform 160ms ease;
}

.persona-readout.is-updating h3 {
  color: #ff92aa;
  transform: translateX(7px);
}

.persona-readout p {
  min-height: 74px;
  margin: 0;
  color: rgba(255, 248, 241, 0.74);
  font: 500 11px/1.55 "Manrope", sans-serif;
}

.persona-level {
  display: flex;
  gap: 5px;
  margin-top: 15px;
}

.persona-level i {
  width: 15px;
  height: 5px;
  background: #ff5277;
  transform: skewX(-20deg);
  animation: persona-level-pulse 1.4s calc(var(--level, 0) * 120ms) ease-in-out infinite alternate;
}

.persona-level i:nth-child(2) { --level: 1; }
.persona-level i:nth-child(3) { --level: 2; }
.persona-level i:nth-child(4) { --level: 3; }
.persona-level i:nth-child(5) { --level: 4; }
.persona-level i:nth-child(6) { --level: 5; }

.persona-instruction {
  position: absolute;
  left: 24px;
  bottom: 19px;
  color: rgba(255, 248, 241, 0.48);
  font: 500 6px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.persona-deck {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 18px 16px 16px 24px;
}

.persona-card {
  --persona: #ff5277;
  position: relative;
  min-height: 168px;
  padding: 20px 22px 18px 72px;
  overflow: hidden;
  color: #fff8f1;
  text-align: left;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.05), transparent 45%),
    rgba(20, 15, 18, 0.96);
  border: 1px solid rgba(255, 248, 241, 0.58);
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--persona) 68%, transparent);
  clip-path: polygon(6% 0, 100% 4%, 96% 100%, 0 94%);
  transform: translateX(55px) rotate(calc((var(--i) - 2.5) * 0.3deg));
  opacity: 0;
  isolation: isolate;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.route-view.is-open .persona-card {
  animation: persona-card-enter 540ms calc(500ms + var(--i) * 65ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.persona-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(165deg, transparent 0 18px, rgba(255, 248, 241, 0.08) 19px 20px),
    var(--persona);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.persona-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -52px;
  width: 126px;
  height: 126px;
  border: 1px solid color-mix(in srgb, var(--persona) 68%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 248, 241, 0.025), 0 0 0 26px rgba(255, 248, 241, 0.018);
}

.persona-card:hover,
.persona-card:focus-visible,
.persona-card.is-active {
  color: #171214;
  box-shadow: 9px 10px 0 rgba(255, 248, 241, 0.8);
  transform: translate(-7px, -4px) rotate(-0.8deg) !important;
  outline: none;
}

.persona-card:hover::before,
.persona-card:focus-visible::before,
.persona-card.is-active::before {
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 94%);
}

.persona-card-index {
  position: absolute;
  left: 18px;
  top: 19px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #171214;
  background: var(--persona);
  border-radius: 50%;
  font: 700 8px/1 "DM Mono", monospace;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.persona-card:hover .persona-card-index,
.persona-card:focus-visible .persona-card-index,
.persona-card.is-active .persona-card-index {
  color: var(--persona);
  background: #171214;
  transform: rotate(-12deg) scale(1.08);
}

.persona-card-glyph {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--persona);
  font: normal 700 19px/1 "DM Mono", monospace;
  transition: color 180ms ease, transform 220ms ease;
}

.persona-card:hover .persona-card-glyph,
.persona-card:focus-visible .persona-card-glyph,
.persona-card.is-active .persona-card-glyph {
  color: #171214;
  transform: rotate(-14deg) scale(1.2);
}

.persona-card small {
  color: var(--persona);
  font: 600 7px/1 "DM Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.persona-card:hover small,
.persona-card:focus-visible small,
.persona-card.is-active small {
  color: #171214;
}

.persona-card h3 {
  position: relative;
  z-index: 1;
  margin: 13px 0 9px;
  color: #fff8f1;
  font: 400 clamp(29px, 2.5vw, 40px)/0.88 "Bebas Neue", sans-serif;
  letter-spacing: 0.015em;
  transition: color 180ms ease;
}

.persona-card:hover h3,
.persona-card:focus-visible h3,
.persona-card.is-active h3 {
  color: #171214;
}

.persona-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 248, 241, 0.7);
  font: 500 9px/1.45 "Manrope", sans-serif;
  transition: color 180ms ease;
}

.persona-card:hover p,
.persona-card:focus-visible p,
.persona-card.is-active p {
  color: rgba(23, 18, 20, 0.78);
}

.persona-card > b {
  position: absolute;
  right: 10px;
  bottom: -9px;
  color: rgba(255, 248, 241, 0.045);
  font: 400 64px/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  transform: rotate(-6deg);
  pointer-events: none;
}

.persona-card:hover > b,
.persona-card:focus-visible > b,
.persona-card.is-active > b {
  color: rgba(23, 18, 20, 0.09);
}

.persona-ticker {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  color: #fff8f1;
  background: #171214;
  border: 2px solid #fff8f1;
  box-shadow: 7px 8px 0 #d58398;
  clip-path: polygon(1% 0, 100% 5%, 99% 100%, 0 89%);
  transform: rotate(-0.4deg);
}

.persona-ticker > span {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  padding: 0 22px;
  place-items: center;
  color: #171214;
  background: #ff5277;
  font: 700 7px/1 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.persona-ticker div {
  display: flex;
  width: max-content;
  animation: persona-ticker 28s linear infinite;
}

.persona-ticker p {
  margin: 0;
  padding-left: 34px;
  white-space: nowrap;
  font: 500 7px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes persona-card-enter {
  0% { opacity: 0; transform: translateX(75px) skewX(-10deg) scale(0.94); }
  64% { opacity: 1; transform: translateX(-8px) skewX(2deg) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) rotate(calc((var(--i) - 2.5) * 0.3deg)); }
}

@keyframes persona-orbit {
  to { transform: rotate(405deg); }
}

@keyframes persona-scan {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(14px); }
}

@keyframes persona-speed-pulse {
  from { opacity: 0.28; transform: translateX(-1.5%); }
  to { opacity: 0.56; transform: translateX(1.5%); }
}

@keyframes persona-level-pulse {
  from { opacity: 0.35; transform: skewX(-20deg) scaleY(0.8); }
  to { opacity: 1; transform: skewX(-20deg) scaleY(1.15); }
}

@keyframes persona-ticker {
  to { transform: translateX(-50%); }
}

@media (max-width: 1040px) {
  .route-view[data-route="skills"] .route-view-content {
    width: calc(100% - 72px);
  }

  .persona-skills {
    grid-template-columns: minmax(290px, 0.72fr) minmax(470px, 1.2fr);
    gap: 16px;
  }

  .persona-heading {
    padding-inline: 27px;
  }

  .persona-console {
    padding-left: 126px;
  }

  .persona-sigil {
    left: 16px;
    width: 88px;
    height: 88px;
  }

  .persona-card {
    min-height: 158px;
    padding-left: 62px;
  }

  .persona-card h3 {
    font-size: 30px;
  }
}

@media (max-width: 820px) {
  .route-view[data-route="skills"] .route-view-content {
    width: calc(100% - 30px);
    margin: 88px 15px 60px;
  }

  .persona-skills {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 22px;
  }

  .persona-skills::before {
    top: 29%;
    right: -18%;
    width: 120%;
    height: 67%;
  }

  .persona-heading,
  .persona-console,
  .persona-deck,
  .persona-ticker {
    grid-column: 1;
    grid-row: auto;
  }

  .persona-heading {
    min-height: 225px;
    transform: rotate(-0.8deg);
  }

  .persona-console {
    min-height: 220px;
    margin-inline: 12px;
    transform: rotate(0.5deg);
  }

  .persona-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }
}

@media (max-width: 560px) {
  .persona-heading {
    min-height: 215px;
    padding: 29px 24px 27px;
    box-shadow: 7px 8px 0 #171214, 12px 13px 0 rgba(213, 131, 152, 0.84);
  }

  .persona-heading h2 {
    font-size: clamp(82px, 28vw, 116px);
  }

  .persona-heading strong {
    max-width: 270px;
    font-size: 14px;
  }

  .persona-heading-stamp {
    right: 16px;
    top: 25px;
    width: 48px;
    height: 48px;
  }

  .persona-console {
    min-height: 295px;
    margin-inline: 3px;
    padding: 148px 25px 35px;
    clip-path: polygon(3% 0, 100% 3%, 96% 95%, 8% 100%, 0 82%);
  }

  .persona-sigil {
    left: 50%;
    top: 28px;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
  }

  .persona-readout {
    text-align: center;
  }

  .persona-readout p {
    min-height: 66px;
  }

  .persona-level {
    justify-content: center;
  }

  .persona-instruction {
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translateX(-50%);
  }

  .persona-deck {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .persona-card {
    min-height: 158px;
    padding: 21px 22px 18px 72px;
  }

  .persona-card h3 {
    font-size: 34px;
  }

  .persona-ticker {
    grid-template-columns: 1fr;
  }

  .persona-ticker > span {
    min-height: 30px;
    clip-path: none;
  }

  .persona-ticker div {
    min-height: 34px;
    align-items: center;
  }
}

/* Clean command deck — one focal panel, compact selectors, restrained motion. */
.persona-skills-clean {
  grid-template-columns: minmax(400px, 0.9fr) minmax(470px, 1.1fr);
  grid-template-rows: auto 1fr auto;
  gap: 16px 24px;
  min-height: 610px;
  padding: 8px 0 0;
}

.persona-skills-clean::before,
.persona-skills-clean::after,
.persona-skills-clean .persona-speedlines {
  display: none;
}

.persona-skills-clean .persona-heading {
  grid-column: 1;
  grid-row: 1;
  min-height: 205px;
  padding: 27px 31px 25px;
  background: rgba(255, 248, 241, 0.95);
  border: 0;
  outline: 0;
  box-shadow: 7px 8px 0 #171214;
  clip-path: polygon(0 2%, 100% 0, 97% 100%, 2% 96%);
  transform: rotate(-0.6deg);
}

.persona-skills-clean .persona-heading::before {
  display: none;
}

.persona-skills-clean .persona-heading p {
  color: #a83253;
}

.persona-skills-clean .persona-heading h2 {
  margin-top: 13px;
  margin-bottom: 4px;
  font-size: clamp(82px, 8vw, 116px);
  text-shadow: none;
  transform: none;
}

.persona-skills-clean .persona-heading h2::after {
  left: 0;
  right: 18%;
  bottom: -5px;
  height: 7px;
  transform: none;
}

.persona-skills-clean .persona-heading strong {
  max-width: 350px;
  margin-top: 15px;
  font-size: 14px;
}

.persona-skills-clean .persona-heading-stamp {
  right: 22px;
  top: 23px;
  width: 47px;
  height: 47px;
  border-width: 1px;
  transform: rotate(4deg);
}

.persona-skills-clean .persona-deck {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
}

.persona-skills-clean .persona-card {
  min-height: 86px;
  padding: 14px 13px 12px 52px;
  color: #171214;
  background: rgba(255, 248, 241, 0.93);
  border: 0;
  box-shadow: none;
  clip-path: polygon(2% 0, 100% 2%, 98% 100%, 0 96%);
  transform: translateY(18px);
}

.route-view.is-open .persona-skills-clean .persona-card {
  animation: clean-card-enter 420ms calc(440ms + var(--i) * 48ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.persona-skills-clean .persona-card::before {
  display: block;
  background: var(--persona);
  clip-path: inset(0 100% 0 0);
}

.persona-skills-clean .persona-card::after,
.persona-skills-clean .persona-card-glyph,
.persona-skills-clean .persona-card p,
.persona-skills-clean .persona-card > b {
  display: none;
}

.persona-skills-clean .persona-card:hover,
.persona-skills-clean .persona-card:focus-visible,
.persona-skills-clean .persona-card.is-active {
  color: #171214;
  box-shadow: 5px 6px 0 #171214;
  transform: translate(-3px, -3px) !important;
}

.persona-skills-clean .persona-card:hover::before,
.persona-skills-clean .persona-card:focus-visible::before,
.persona-skills-clean .persona-card.is-active::before {
  clip-path: inset(0);
}

.persona-skills-clean .persona-card-index {
  left: 12px;
  top: 50%;
  width: 29px;
  height: 29px;
  color: #fff8f1;
  background: #171214;
  transform: translateY(-50%);
}

.persona-skills-clean .persona-card:hover .persona-card-index,
.persona-skills-clean .persona-card:focus-visible .persona-card-index,
.persona-skills-clean .persona-card.is-active .persona-card-index {
  color: var(--persona);
  background: #171214;
  transform: translateY(-50%) rotate(-8deg);
}

.persona-skills-clean .persona-card small {
  color: #9e3852;
  font-size: 6px;
}

.persona-skills-clean .persona-card:hover small,
.persona-skills-clean .persona-card:focus-visible small,
.persona-skills-clean .persona-card.is-active small {
  color: rgba(23, 18, 20, 0.68);
}

.persona-skills-clean .persona-card h3 {
  margin: 9px 0 0;
  color: #171214;
  font-size: clamp(24px, 2.2vw, 31px);
  white-space: nowrap;
}

.persona-skills-clean .persona-card:hover h3,
.persona-skills-clean .persona-card:focus-visible h3,
.persona-skills-clean .persona-card.is-active h3 {
  color: #171214;
}

.persona-skills-clean .persona-console {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 505px;
  padding: 285px 50px 43px;
  color: #fff8f1;
  background: rgba(16, 12, 14, 0.96);
  border: 0;
  box-shadow: 11px 12px 0 rgba(213, 131, 152, 0.82);
  clip-path: polygon(3% 0, 100% 2%, 97% 100%, 0 96%);
  transform: rotate(0.4deg);
}

.persona-skills-clean .persona-console::before {
  display: none;
}

.persona-skills-clean .persona-sigil {
  left: 50%;
  top: 64px;
  width: 170px;
  height: 170px;
  border-color: rgba(255, 82, 119, 0.9);
  box-shadow: 0 0 0 10px #171214, 0 0 0 11px rgba(255, 248, 241, 0.34);
  transform: translateX(-50%);
}

.persona-skills-clean .persona-sigil::before,
.persona-skills-clean .persona-sigil::after {
  opacity: 0.42;
}

.persona-skills-clean .persona-sigil i:nth-child(1) {
  animation-duration: 16s;
}

.persona-skills-clean .persona-sigil i:nth-child(2) {
  animation-duration: 10s;
}

.persona-skills-clean .persona-sigil i:nth-child(3) {
  box-shadow: -63px 0 0 #ffd166, 63px 0 0 #74e7d6, 0 -63px 0 #72b7ff, 0 63px 0 #dca7ff;
}

.persona-skills-clean .persona-sigil b {
  font-size: 38px;
}

.persona-skills-clean .persona-readout {
  max-width: 455px;
  margin: 0 auto;
  text-align: center;
}

.persona-skills-clean .persona-readout h3 {
  margin: 13px 0 11px;
  font-size: clamp(45px, 4.7vw, 68px);
}

.persona-skills-clean .persona-readout p {
  min-height: 54px;
  max-width: 420px;
  margin-inline: auto;
  color: rgba(255, 248, 241, 0.68);
  font-size: 11px;
}

.persona-skills-clean .persona-level {
  justify-content: center;
  margin-top: 18px;
}

.persona-skills-clean .persona-level i {
  animation: none;
}

.persona-skills-clean .persona-instruction {
  left: 50%;
  bottom: 20px;
  width: 100%;
  text-align: center;
  transform: translateX(-50%);
}

.persona-skills-clean .persona-ticker {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 0;
  box-shadow: 5px 6px 0 #171214;
  clip-path: polygon(0 0, 100% 2%, 99% 100%, 1% 96%);
  transform: none;
}

.persona-skills-clean .persona-ticker > span {
  padding-inline: 18px 25px;
}

.persona-skills-clean .persona-ticker div {
  width: auto;
  overflow: hidden;
  animation: none;
}

.persona-skills-clean .persona-ticker p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.persona-skills-clean .persona-ticker p[aria-hidden="true"] {
  display: none;
}

@keyframes clean-card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .persona-skills-clean {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .persona-skills-clean .persona-heading,
  .persona-skills-clean .persona-console,
  .persona-skills-clean .persona-deck,
  .persona-skills-clean .persona-ticker {
    grid-column: 1;
    grid-row: auto;
  }

  .persona-skills-clean .persona-console {
    min-height: 460px;
    padding-top: 250px;
    order: 2;
  }

  .persona-skills-clean .persona-deck {
    order: 3;
  }

  .persona-skills-clean .persona-ticker {
    order: 4;
  }
}

@media (max-width: 560px) {
  .persona-skills-clean .persona-heading {
    min-height: 195px;
    padding: 25px 23px 23px;
    transform: none;
  }

  .persona-skills-clean .persona-heading h2 {
    font-size: clamp(78px, 27vw, 105px);
  }

  .persona-skills-clean .persona-heading strong {
    max-width: 265px;
    font-size: 13px;
  }

  .persona-skills-clean .persona-console {
    min-height: 430px;
    padding: 230px 27px 46px;
    transform: none;
  }

  .persona-skills-clean .persona-sigil {
    top: 50px;
    width: 145px;
    height: 145px;
  }

  .persona-skills-clean .persona-sigil i:nth-child(3) {
    box-shadow: -52px 0 0 #ffd166, 52px 0 0 #74e7d6, 0 -52px 0 #72b7ff, 0 52px 0 #dca7ff;
  }

  .persona-skills-clean .persona-readout h3 {
    font-size: 42px;
  }

  .persona-skills-clean .persona-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .persona-skills-clean .persona-card {
    min-height: 92px;
    padding: 14px 10px 12px 43px;
  }

  .persona-skills-clean .persona-card-index {
    left: 8px;
    width: 26px;
    height: 26px;
  }

  .persona-skills-clean .persona-card h3 {
    font-size: 22px;
    white-space: normal;
  }

  .persona-skills-clean .persona-ticker {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .persona-skills-clean .persona-ticker > span {
    min-height: 42px;
  }
}

/* Ability Record — a clean, album-native skill selector. */
.route-view[data-route="skills"] .route-view-content {
  width: min(1160px, calc(100% - 128px));
  margin: 78px auto 56px;
}

.ability-record {
  --record-accent: #ff5277;
  --record-angle: 0deg;
  display: grid;
  gap: 13px;
  min-height: 620px;
}

.ability-record-heading {
  display: grid;
  grid-template-columns: 190px auto minmax(260px, 1fr);
  align-items: end;
  gap: 20px;
  min-height: 96px;
  padding: 16px 24px 14px;
  color: #171214;
  background: rgba(255, 248, 241, 0.95);
  border-bottom: 6px solid var(--record-accent);
  clip-path: polygon(0 0, 100% 3%, 99% 100%, 1% 96%);
  transition: border-color 420ms ease;
}

.ability-record-heading > div {
  align-self: center;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.ability-record-heading span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff8f1;
  background: #171214;
  border-radius: 50%;
  font: 600 7px/1 "DM Mono", monospace;
  text-transform: uppercase;
}

.ability-record-heading small {
  max-width: 100px;
  font: 600 7px/1.45 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ability-record-heading h2 {
  margin: 0;
  font: 400 clamp(72px, 7vw, 104px)/0.7 "Bebas Neue", sans-serif;
  letter-spacing: -0.02em;
}

.ability-record-heading > p {
  justify-self: end;
  max-width: 360px;
  margin: 0 0 3px;
  font: italic 15px/1.35 "Playfair Display", serif;
  text-align: right;
}

.ability-record-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  min-height: 390px;
  overflow: hidden;
  background: linear-gradient(102deg, rgba(16, 12, 14, 0.97) 0 49.8%, rgba(255, 248, 241, 0.96) 50% 100%);
  box-shadow: 10px 11px 0 rgba(23, 18, 20, 0.92);
  clip-path: polygon(1% 0, 100% 2%, 98% 100%, 0 97%);
}

.ability-turntable {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
}

.ability-disc {
  position: relative;
  width: min(330px, 31vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 241, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 8%, var(--record-accent) 8.5% 22%, #171214 22.5% 28%, transparent 28.5%),
    repeating-radial-gradient(circle, #1b1619 0 3px, #393036 3.6px 4px, #161114 4.5px 8px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32), inset 0 0 0 10px rgba(255, 248, 241, 0.035);
  transform: rotate(var(--record-angle));
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1), background 420ms ease;
}

.ability-disc::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(255, 248, 241, 0.2);
  border-radius: 50%;
}

.ability-disc::after {
  content: "";
  position: absolute;
  inset: 48%;
  background: #fff8f1;
  border-radius: 50%;
}

.ability-disc > i {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: #fff8f1;
  border: 2px solid #171214;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 248, 241, 0.5);
}

.ability-disc > i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-144px); }
.ability-disc > i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg) translateY(-144px); }
.ability-disc > i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg) translateY(-144px); }
.ability-disc > i:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg) translateY(-144px); }
.ability-disc > i:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg) translateY(-144px); }
.ability-disc > i:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg) translateY(-144px); }

.ability-disc-label {
  position: absolute;
  z-index: 3;
  left: 35%;
  top: 35%;
  display: grid;
  width: 30%;
  aspect-ratio: 1;
  place-content: center;
  color: #171214;
  text-align: center;
  transform: rotate(calc(-1 * var(--record-angle)));
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ability-disc-label b {
  font: italic clamp(32px, 4vw, 48px)/0.9 "Playfair Display", serif;
}

.ability-disc-label small {
  margin-top: 8px;
  font: 600 6px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
}

.ability-needle {
  position: absolute;
  right: 9%;
  top: 34px;
  width: 8px;
  height: 170px;
  background: #fff8f1;
  border: 2px solid #171214;
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--record-accent);
  transform: rotate(24deg);
  transform-origin: 50% 6px;
  transition: box-shadow 420ms ease;
}

.ability-needle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  width: 24px;
  height: 24px;
  background: #fff8f1;
  border: 5px solid #171214;
  border-radius: 50%;
  transform: translateX(-50%);
}

.ability-needle i {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 24px;
  height: 31px;
  background: var(--record-accent);
  border: 3px solid #171214;
  transform: translateX(-50%);
  transition: background 420ms ease;
}

.ability-focus {
  position: relative;
  align-self: stretch;
  display: grid;
  align-content: center;
  padding: 48px 54px 40px;
  color: #171214;
  isolation: isolate;
}

.ability-focus::before {
  content: attr(data-focus-number);
  position: absolute;
  z-index: -1;
  right: 22px;
  top: 12px;
  color: color-mix(in srgb, var(--record-accent) 17%, transparent);
  font: 400 185px/0.9 "Bebas Neue", sans-serif;
  transition: color 420ms ease;
}

.ability-focus > span {
  color: #a83253;
  font: 700 8px/1 "DM Mono", monospace;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.ability-focus h3 {
  max-width: 470px;
  margin: 18px 0 16px;
  font: 400 clamp(57px, 5.8vw, 82px)/0.83 "Bebas Neue", sans-serif;
  letter-spacing: -0.015em;
}

.ability-focus > p {
  max-width: 450px;
  margin: 0;
  font: 500 12px/1.6 "Manrope", sans-serif;
}

.ability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 21px;
}

.ability-tags b {
  padding: 6px 8px;
  background: color-mix(in srgb, var(--record-accent) 24%, #fff8f1);
  border: 1px solid #171214;
  font: 600 7px/1 "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 420ms ease;
}

.ability-focus > small {
  margin-top: 22px;
  color: rgba(23, 18, 20, 0.52);
  font: 600 6px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ability-focus.is-switching > span,
.ability-focus.is-switching h3,
.ability-focus.is-switching > p,
.ability-focus.is-switching .ability-tags {
  animation: ability-copy-swap 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ability-focus.is-switching h3 { animation-delay: 35ms; }
.ability-focus.is-switching > p { animation-delay: 70ms; }
.ability-focus.is-switching .ability-tags { animation-delay: 105ms; }

.ability-tracklist {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.ability-track {
  position: relative;
  min-height: 66px;
  padding: 12px 32px 11px 13px;
  overflow: hidden;
  color: #171214;
  text-align: left;
  background: rgba(255, 248, 241, 0.93);
  border: 0;
  border-bottom: 4px solid rgba(23, 18, 20, 0.18);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.ability-track:hover,
.ability-track:focus-visible,
.ability-track.is-active {
  color: #171214;
  background: var(--record-accent);
  border-bottom-color: #171214;
  outline: none;
  transform: translateY(-4px);
}

.ability-track span {
  display: block;
  font: 700 7px/1 "DM Mono", monospace;
}

.ability-track b {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font: 400 23px/0.85 "Bebas Neue", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ability-track small {
  position: absolute;
  right: 9px;
  top: 11px;
  font: 500 6px/1 "DM Mono", monospace;
}

.ability-record-credits {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  color: #fff8f1;
  background: rgba(23, 18, 20, 0.95);
  overflow: hidden;
}

.ability-record-credits span {
  align-self: stretch;
  display: grid;
  padding: 0 20px;
  place-items: center;
  color: #171214;
  background: var(--record-accent);
  font: 700 6px/1 "DM Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background 420ms ease;
}

.ability-record-credits p {
  margin: 0;
  padding: 0 18px;
  overflow: hidden;
  font: 500 6px/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.route-view.is-open .ability-record-heading {
  animation: ability-heading-in 520ms 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-view.is-open .ability-record-stage {
  animation: ability-stage-in 650ms 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-view.is-open .ability-disc {
  animation: ability-record-drop 850ms 610ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-view.is-open .ability-tracklist {
  animation: ability-tracks-in 520ms 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ability-heading-in {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ability-stage-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ability-record-drop {
  from { opacity: 0; transform: rotate(-150deg) scale(0.72); }
  to { opacity: 1; transform: rotate(var(--record-angle)) scale(1); }
}

@keyframes ability-tracks-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ability-copy-swap {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 940px) {
  .route-view[data-route="skills"] .route-view-content {
    width: calc(100% - 40px);
  }

  .ability-record-heading {
    grid-template-columns: 150px auto 1fr;
  }

  .ability-record-stage {
    grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
  }

  .ability-disc {
    width: min(300px, 34vw);
  }

  .ability-disc > i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-130px); }
  .ability-disc > i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg) translateY(-130px); }
  .ability-disc > i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg) translateY(-130px); }
  .ability-disc > i:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg) translateY(-130px); }
  .ability-disc > i:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg) translateY(-130px); }
  .ability-disc > i:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg) translateY(-130px); }

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

@media (max-width: 720px) {
  .route-view[data-route="skills"] .route-view-content {
    width: calc(100% - 28px);
    margin: 90px 14px 56px;
  }

  .ability-record-heading {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 15px 18px 13px;
  }

  .ability-record-heading > div {
    grid-column: 1;
  }

  .ability-record-heading h2 {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 70px;
  }

  .ability-record-heading > p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .ability-record-stage {
    grid-template-columns: 1fr;
    min-height: 735px;
    background: linear-gradient(to bottom, rgba(16, 12, 14, 0.97) 0 52%, rgba(255, 248, 241, 0.96) 52.2% 100%);
  }

  .ability-turntable {
    min-height: 380px;
  }

  .ability-disc {
    width: 300px;
  }

  .ability-focus {
    min-height: 350px;
    padding: 45px 34px 35px;
  }

  .ability-focus h3 {
    font-size: 62px;
  }
}

@media (max-width: 480px) {
  .ability-record-heading h2 {
    font-size: 58px;
  }

  .ability-record-heading > p {
    font-size: 13px;
  }

  .ability-record-stage {
    min-height: 670px;
    background: linear-gradient(to bottom, rgba(16, 12, 14, 0.97) 0 49%, rgba(255, 248, 241, 0.96) 49.2% 100%);
  }

  .ability-turntable {
    min-height: 330px;
  }

  .ability-disc {
    width: 255px;
  }

  .ability-disc > i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-109px); }
  .ability-disc > i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg) translateY(-109px); }
  .ability-disc > i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg) translateY(-109px); }
  .ability-disc > i:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg) translateY(-109px); }
  .ability-disc > i:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg) translateY(-109px); }
  .ability-disc > i:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg) translateY(-109px); }

  .ability-needle {
    right: 5%;
    height: 140px;
  }

  .ability-focus {
    min-height: 340px;
    padding: 38px 25px 30px;
  }

  .ability-focus::before {
    font-size: 138px;
  }

  .ability-focus h3 {
    font-size: 52px;
  }

  .ability-tracklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ability-record-credits {
    grid-template-columns: 1fr;
  }

  .ability-record-credits span {
    min-height: 27px;
  }

  .ability-record-credits p {
    min-height: 28px;
    line-height: 28px;
  }
}

.ability-turntable-model .ability-model-anchor {
  position: absolute;
  z-index: 4;
  inset: 0;
}

/* Blender mascot layered over the Ability Record turntable. */
.ability-turntable-model {
  overflow: hidden;
  cursor: grab;
}

.ability-turntable-model:active,
.ability-turntable-model:has(.ability-model-host.is-dragging) {
  cursor: grabbing;
}

.ability-model-host {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.ability-model-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.38));
}

.ability-model-loading {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  padding: 8px 11px;
  color: #171214;
  background: var(--record-accent);
  font: 700 7px/1 "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ability-model-host.is-loaded .ability-model-loading {
  opacity: 0;
  transform: translate(-50%, -42%);
  pointer-events: none;
}

.ability-model-host.is-error .ability-model-loading {
  color: #171214;
  background: #fff8f1;
}

.ability-model-host.is-error .ability-model-loading::after {
  content: " / 3D unavailable";
}

.ability-turntable-model .ability-disc {
  z-index: 1;
  width: 285px;
  opacity: 0.27;
  transform: translateY(108px) rotate(var(--record-angle));
}

.ability-turntable-model .ability-disc > i,
.ability-turntable-model .ability-disc-label {
  display: none;
}

.ability-turntable-model .ability-needle {
  z-index: 2;
  right: 7%;
  opacity: 0.48;
  transform: rotate(31deg) scale(0.82);
}

.ability-model-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 15px;
  width: max-content;
  color: rgba(255, 248, 241, 0.62);
  font: 600 6px/1 "DM Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.route-view.is-open .ability-turntable-model .ability-disc {
  animation: ability-pedestal-in 720ms 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ability-pedestal-in {
  from { opacity: 0; transform: translateY(130px) rotate(-90deg) scale(0.75); }
  to { opacity: 0.27; transform: translateY(108px) rotate(var(--record-angle)) scale(1); }
}

@media (max-width: 720px) {
  .ability-turntable-model .ability-disc {
    width: 255px;
    transform: translateY(86px) rotate(var(--record-angle));
  }

  .route-view.is-open .ability-turntable-model .ability-disc {
    animation-name: ability-pedestal-in-mobile;
  }

  @keyframes ability-pedestal-in-mobile {
    from { opacity: 0; transform: translateY(110px) rotate(-90deg) scale(0.75); }
    to { opacity: 0.27; transform: translateY(86px) rotate(var(--record-angle)) scale(1); }
  }
}

@media (max-width: 480px) {
  .ability-turntable-model .ability-disc {
    width: 220px;
    transform: translateY(75px) rotate(var(--record-angle));
  }

  .ability-model-hint {
    bottom: 10px;
    font-size: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
