:root {
  --bg: #020202;
  --fg: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.58);
  --faint: rgba(246, 243, 238, 0.16);
  --line: rgba(246, 243, 238, 0.3);
  --stage-x: 0;
  --stage-y: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

.background-video-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #020202;
}

.background-video,
.background-video-noise {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.background-video {
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.88) contrast(1.16) brightness(0.7);
  transform: scale(1.035);
}

.background-video-noise {
  opacity: 0.24;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,0.16) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 36%, rgba(255,255,255,0.11) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,0.09) 0 1px, transparent 1.4px),
    linear-gradient(90deg, transparent 0 47%, rgba(255,255,255,0.045) 48% 52%, transparent 53%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 36%, rgba(255,255,255,0.035));
  background-size: 7px 7px, 11px 11px, 13px 13px, 4px 4px, 100% 100%;
  animation: videoNoiseDrift 900ms steps(2, end) infinite;
}

.background-video-layer::before,
.background-video-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-video-layer::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.16) 42%, rgba(0,0,0,0.62)),
    radial-gradient(ellipse at center, transparent 18%, rgba(0,0,0,0.64) 84%);
}

.background-video-layer::after {
  opacity: 0.32;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px);
}

@keyframes videoNoiseDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-8px, 6px, 0);
  }
  100% {
    transform: translate3d(5px, -7px, 0);
  }
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 16px;
  z-index: 400;
  transform: translateY(-140%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.2vw, 34px) clamp(22px, 3vw, 42px);
  pointer-events: none;
}

.brand,
.site-header nav,
.menu-button {
  pointer-events: auto;
}

.brand {
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(0,0,0,0.95), 0 0 1px rgba(0,0,0,0.9);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 58px);
  text-shadow: 0 2px 18px rgba(0,0,0,0.95), 0 0 1px rgba(0,0,0,0.9);
}

.site-header nav button {
  position: relative;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.site-header nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.site-header nav button:hover::after,
.site-header nav button:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 1px;
  margin: 9px 4px;
  background: var(--fg);
  transition: transform 220ms ease;
}

.project-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  perspective: 1800px;
  touch-action: none;
  background:
    radial-gradient(circle at calc(50% + var(--stage-x) * 3%) calc(42% + var(--stage-y) * 3%), rgba(255, 255, 255, 0.05), transparent 26%),
    radial-gradient(circle at 13% 24%, rgba(255, 255, 255, 0.018), transparent 18%),
    rgba(2, 2, 2, 0.08);
}

.project-stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,0.04) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(255,255,255,0.035) 50%, transparent 50.1%);
  background-size: 118px 118px;
  opacity: 0.15;
  transform: translate3d(calc(var(--stage-x) * -16px), calc(var(--stage-y) * -16px), 0) rotateX(68deg) scale(1.22);
  mask-image: radial-gradient(ellipse at center, black 0 32%, transparent 70%);
}

.project-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(0, 0, 0, 0.68) 0 18%, rgba(0, 0, 0, 0.34) 43%, transparent 64%),
    radial-gradient(ellipse at center, transparent 24%, rgba(0, 0, 0, 0.5) 78%);
}

.stage-kicker,
.stage-count,
.project-copy p,
.stage-controls p,
.detail-link,
.progress button,
.plane-caption,
.detail-copy > p,
.detail-tags span,
.detail-actions,
.slide-meta,
.detail-thumbs button,
.profile-main > p,
.profile-flow,
.profile-contact {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-kicker {
  position: absolute;
  left: 50%;
  top: 13.6vh;
  z-index: 20;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.78);
  font-size: clamp(10px, 0.8vw, 13px);
  text-shadow: 0 2px 18px rgba(0,0,0,0.98), 0 0 1px rgba(0,0,0,1);
  white-space: nowrap;
}

.stage-count {
  position: absolute;
  left: clamp(24px, 3vw, 42px);
  top: 15.8vh;
  z-index: 20;
  color: rgba(255,255,255,0.92);
  font-size: clamp(13px, 0.95vw, 16px);
  text-shadow: 0 2px 20px rgba(0,0,0,1), 0 0 1px rgba(0,0,0,1);
}

.rotonde,
.planes {
  transform-style: preserve-3d;
}

.rotonde {
  position: absolute;
  inset: 0;
}

.planes {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  transform: translate3d(calc(var(--stage-x) * 20px), calc(var(--stage-y) * 16px), 0);
}

.plane {
  position: absolute;
  left: 0;
  top: 0;
  width: min(49vw, 690px);
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: #050505;
  color: var(--fg);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 760ms cubic-bezier(.2,.84,.18,1),
    opacity 520ms ease,
    filter 520ms ease;
  will-change: transform, opacity, filter;
}

.plane.is-portrait {
  width: min(35vw, 460px);
  aspect-ratio: 4 / 5;
}

.plane-media,
.plane-media > img,
.plane-collage,
.resume-card {
  display: block;
  width: 100%;
  height: 100%;
}

.plane-media > img {
  object-fit: contain;
  background: #020202;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.018);
  transition: transform 850ms cubic-bezier(.2,.84,.18,1), filter 420ms ease;
}

.plane.is-active .plane-media > img {
  transform: scale(1);
  filter: saturate(1.02) contrast(1.08);
}

.plane-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: #000;
}

.plane-collage i {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #030303;
}

.plane-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resume-card {
  padding: clamp(24px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, #101010, #050505);
  text-align: left;
}

.resume-card span,
.resume-card em {
  display: block;
  color: rgba(255,255,255,0.62);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(10px, 0.82vw, 12px);
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resume-card strong {
  display: block;
  margin: clamp(22px, 4vw, 50px) 0;
  font-size: clamp(58px, 8vw, 122px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: 0;
}

.resume-card em + em {
  margin-top: 10px;
}

.resume-card.is-cv-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.76fr);
  grid-template-rows: auto 1fr auto;
  gap: clamp(14px, 2vw, 28px);
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 46px);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(circle at 86% 18%, rgba(246,243,238,0.12), transparent 28%),
    linear-gradient(135deg, #181818, #050505 62%);
  background-size: 58px 58px, 58px 58px, auto, auto;
}

.resume-card.is-cv-cover::before,
.resume-card.is-cv-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.resume-card.is-cv-cover::before {
  inset: clamp(14px, 1.5vw, 22px);
  border: 1px solid rgba(255,255,255,0.16);
}

.resume-card.is-cv-cover::after {
  right: clamp(24px, 3vw, 44px);
  top: clamp(54px, 6vw, 82px);
  width: clamp(58px, 8vw, 112px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px rgba(255,255,255,0.03);
}

.resume-card.is-cv-cover .resume-card-kicker,
.resume-card.is-cv-cover .resume-card-tags {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

.resume-card.is-cv-cover strong {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0;
  font-size: clamp(54px, 7.1vw, 112px);
  line-height: 0.82;
}

.resume-card.is-cv-cover dl {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 10px;
  margin: 0;
}

.resume-card.is-cv-cover dl div {
  display: grid;
  grid-template-columns: minmax(66px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.resume-card.is-cv-cover dt,
.resume-card.is-cv-cover dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(9px, 0.72vw, 11px);
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-card.is-cv-cover dt {
  color: rgba(255,255,255,0.4);
}

.resume-card.is-cv-cover dd {
  color: rgba(255,255,255,0.78);
}

.resume-card.is-cv-cover .resume-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-card.is-cv-cover i {
  display: block;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 9px;
  color: rgba(255,255,255,0.68);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(9px, 0.72vw, 11px);
  font-style: normal;
  letter-spacing: 0.08em;
}

.plane-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,1), 0 0 1px rgba(0,0,0,1);
}

.project-copy {
  position: absolute;
  left: 50%;
  top: 14vh;
  z-index: 35;
  width: min(48vw, 660px);
  transform: translateX(-50%);
  pointer-events: none;
  padding: clamp(14px, 1.7vw, 22px) clamp(18px, 2.2vw, 30px);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.08));
  border-left: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 72px rgba(0,0,0,0.42);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 1), 0 0 1px rgba(0,0,0,1);
  backdrop-filter: blur(2px);
}

.project-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(10px, 0.78vw, 12px);
}

.project-copy h1 {
  margin: 9px 0 0;
  font-size: clamp(28px, 3.3vw, 58px);
  line-height: 0.95;
  font-weight: 500;
  color: #fff;
}

.project-copy [data-project-role] {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 0;
  text-transform: none;
}

.stage-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 7vh, 72px);
  z-index: 40;
  width: min(660px, 62vw);
  transform: translateX(-50%);
}

.stage-controls p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.72);
  font-size: clamp(10px, 0.82vw, 12px);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,1), 0 0 1px rgba(0,0,0,1);
}

.detail-link {
  position: absolute;
  left: 50%;
  top: -44px;
  transform: translateX(-50%);
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,0.96);
  font-size: 11px;
  cursor: pointer;
  text-shadow: 0 2px 18px rgba(0,0,0,1), 0 0 1px rgba(0,0,0,1);
}

.progress {
  display: grid;
  grid-template-columns: repeat(var(--count, 14), 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.progress button {
  height: 22px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.progress button::before {
  content: "";
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.28);
  box-shadow: 0 2px 12px rgba(0,0,0,0.9);
  transition: background 220ms ease, transform 220ms ease;
}

.progress button.is-active::before {
  background: #fff;
  transform: scaleY(1.6);
}

.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 44px);
  background:
    radial-gradient(circle at 70% 42%, rgba(255,255,255,0.08), transparent 28%),
    rgba(0,0,0,0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms ease, visibility 360ms step-end;
}

.detail-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 360ms ease, visibility 0ms step-start;
}

.detail-close {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  top: clamp(20px, 3vw, 44px);
  z-index: 5;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(20px, 3.6vw, 62px);
  align-items: center;
  width: min(1780px, 95vw);
  height: min(900px, 90vh);
}

.detail-copy {
  min-width: 0;
  max-height: 82vh;
  overflow: hidden;
}

.detail-copy > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.detail-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 78px);
  line-height: 0.9;
  font-weight: 400;
}

.detail-copy p:not(:first-child) {
  color: rgba(246, 243, 238, 0.72);
  line-height: 1.68;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.detail-tags span {
  border: 1px solid var(--faint);
  padding: 8px 11px;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
}

.detail-actions {
  margin-top: 26px;
  color: rgba(255,255,255,0.46);
  font-size: 11px;
}

.detail-gallery {
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.detail-viewer {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto clamp(54px, 7.2vh, 78px);
  gap: clamp(10px, 1.35vh, 14px);
  height: 100%;
  min-height: 0;
  outline: none;
}

.detail-viewer figure {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.075);
  background: #030303;
  box-shadow: 0 40px 120px rgba(0,0,0,0.66);
}

.detail-viewer figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-viewer[data-orientation="landscape"] figure img {
  object-fit: contain;
}

.detail-viewer[data-orientation="portrait"] figure img {
  object-fit: contain;
}

.detail-viewer[data-orientation="square"] figure img {
  object-fit: contain;
}

.detail-viewer figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 1;
  color: rgba(255,255,255,0.64);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.slide-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
}

.slide-meta strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.slide-meta em {
  color: rgba(255,255,255,0.42);
  font-style: normal;
}

.detail-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(54px, 5vw, 78px);
  gap: 10px;
  height: clamp(54px, 7.2vh, 78px);
  overflow-x: auto;
  padding-bottom: 5px;
}

.detail-thumbs button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: #050505;
  opacity: 0.44;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.detail-thumbs button.is-active {
  border-color: rgba(255,255,255,0.88);
  opacity: 1;
}

.detail-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  grid-auto-rows: auto;
  gap: 16px;
  height: 100%;
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) transparent;
}

.profile-main,
.profile-sections,
.profile-flow,
.profile-contact {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  padding: clamp(18px, 2.2vw, 30px);
}

.profile-main {
  grid-row: span 2;
}

.profile-main > p {
  color: var(--muted);
  font-size: 11px;
}

.profile-main h3 {
  margin: 16px 0;
  font-size: clamp(30px, 4vw, 62px);
  line-height: 0.94;
  font-weight: 400;
}

.profile-main p:not(:first-child),
.profile-sections p {
  color: rgba(255,255,255,0.7);
  line-height: 1.68;
}

.profile-main dl {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.profile-main dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}

.profile-main dt {
  color: rgba(255,255,255,0.45);
}

.profile-main dd {
  margin: 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags span {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 7px 9px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.profile-sections {
  display: grid;
  gap: 16px;
}

.profile-sections article {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

.profile-sections span {
  color: rgba(255,255,255,0.4);
}

.profile-sections strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.profile-flow,
.profile-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  color: rgba(255,255,255,0.66);
  font-size: 11px;
}

.profile-contact a {
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    padding: 23px 20px;
  }

  .site-header nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  body.menu-open .site-header {
    min-height: 100svh;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    pointer-events: auto;
  }

  body.menu-open .site-header nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 88px;
    display: grid;
    gap: 22px;
  }

  body.menu-open .site-header nav button {
    border-top: 1px solid var(--faint);
    padding-top: 18px;
    text-align: left;
    font-size: 26px;
  }

  body.menu-open .menu-button span:nth-child(1) {
    transform: translateY(10px) rotate(42deg);
  }

  body.menu-open .menu-button span:nth-child(2) {
    transform: rotate(-42deg);
  }

  .stage-kicker {
    left: 114px;
    top: 10.8vh;
    transform: none;
    font-size: 11px;
  }

  .stage-count {
    left: 20px;
    top: 10.7vh;
  }

  .plane {
    width: 78vw;
  }

  .plane.is-portrait {
    width: 68vw;
  }

  .project-copy {
    left: 20px;
    top: 17vh;
    width: calc(100vw - 40px);
    transform: none;
  }

  .project-copy h1 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .stage-controls {
    width: calc(100vw - 40px);
    bottom: 32px;
  }

  .stage-controls p {
    max-width: 250px;
    margin-inline: auto;
    line-height: 1.55;
  }

  .progress {
    gap: 9px;
  }

  .detail-panel {
    align-items: start;
    overflow: auto;
    padding: 72px 18px 22px;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    height: auto;
    min-height: calc(100svh - 104px);
  }

  .detail-copy h2 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .detail-copy {
    max-height: none;
    overflow: visible;
  }

  .detail-gallery {
    min-height: 58vh;
  }

  .detail-viewer {
    min-height: 58vh;
    grid-template-rows: minmax(320px, 58vh) auto 64px;
  }

  .slide-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-detail {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .profile-main,
  .profile-flow,
  .profile-contact {
    grid-column: auto;
    grid-row: auto;
  }

  .resume-card.is-cv-cover {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 10px;
    padding: 20px;
  }

  .resume-card.is-cv-cover::after {
    top: 42px;
    right: 22px;
    width: 56px;
  }

  .resume-card.is-cv-cover strong {
    font-size: clamp(40px, 12vw, 54px);
  }

  .resume-card.is-cv-cover dl {
    gap: 6px;
  }

  .resume-card.is-cv-cover dl div {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding-top: 6px;
  }

  .resume-card.is-cv-cover dt,
  .resume-card.is-cv-cover dd {
    font-size: 8px;
    line-height: 1.32;
  }

  .resume-card.is-cv-cover .resume-card-tags {
    display: none;
  }
}

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