:root {
  --bg: #04100f;
  --bg-soft: #071713;
  --panel: rgba(9, 17, 16, 0.66);
  --panel-strong: rgba(5, 10, 10, 0.9);
  --ink: #f3f7f0;
  --muted: #9ca69e;
  --dim: #5f6a62;
  --line: rgba(236, 255, 226, 0.14);
  --lime: #b9ff16;
  --lime-soft: #dbff80;
  --violet: #7056ff;
  --page: min(1360px, calc(100% - 96px));
  --section-page: min(1640px, calc(100% - 96px));
  --case-study-canvas: 2200px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: dark;
}

/* Portfolio category and project pages */
.portfolio-browser-page,
.portfolio-project-page {
  min-height: 100vh;
  background: transparent;
}

.portfolio-browser-page .site-header {
  margin-bottom: 0;
}

.portfolio-project-page .site-header {
  margin-bottom: 0;
  grid-template-columns: auto 1fr;
}

.portfolio-project-page .site-nav {
  display: none;
}

.portfolio-project-page .contact-pill {
  justify-self: end;
}

.portfolio-browser,
.project-detail {
  width: var(--section-page);
  margin: 0 auto;
  padding: 168px 0 148px;
}

.portfolio-browser-header,
.project-detail-header {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding-bottom: 62px;
}

.portfolio-browser-header h1,
.project-detail-header h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--ink);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(58px, 7vw, 112px);
  line-height: 1.04;
  letter-spacing: 0;
}

.portfolio-loading {
  min-height: 220px;
  padding: 72px 0;
  color: rgba(243, 247, 240, .5);
  font-size: 18px;
}

.portfolio-loading[hidden] {
  display: none;
}

.portfolio-sections {
  display: grid;
  gap: 132px;
}

.portfolio-section {
  scroll-margin-top: 112px;
}

.portfolio-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(236, 255, 226, .14);
}

.portfolio-section-header > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.portfolio-section-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.1;
  letter-spacing: 0;
}

.portfolio-section-number,
.portfolio-section-count {
  margin: 0;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
}

.portfolio-section-count {
  color: rgba(243, 247, 240, .42);
}

.portfolio-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.portfolio-section-grid--gallery {
  display: block;
  columns: 4;
  column-gap: 18px;
}

.portfolio-media-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .15);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 14, 12, .62);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  cursor: pointer;
  text-align: left;
  transform: translateZ(0);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .3s ease;
}

.portfolio-media-card:hover,
.portfolio-media-card:focus-visible {
  z-index: 4;
  outline: none;
  border-color: rgba(185, 255, 22, .62);
  box-shadow: 0 34px 86px rgba(0, 0, 0, .42), 0 0 34px rgba(185, 255, 22, .12);
  transform: translateY(-7px) scale(1.025);
}

.portfolio-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06100f;
}

.portfolio-card-cover,
.portfolio-card-video,
.portfolio-project-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-cover,
.portfolio-card-video {
  position: absolute;
  inset: 0;
}

.portfolio-card-cover {
  z-index: 2;
  opacity: 1;
  transition: opacity .28s ease;
}

.portfolio-card-video {
  z-index: 1;
  opacity: 0;
  background: #020706;
  transition: opacity .28s ease;
}

.portfolio-card-video-fallback {
  z-index: 2;
  opacity: 1;
}

.portfolio-video-card.is-previewing .portfolio-card-cover {
  opacity: 0;
}

.portfolio-video-card.is-previewing .portfolio-card-video {
  z-index: 3;
  opacity: 1;
}

.portfolio-video-card.is-autoplaying .portfolio-card-cover {
  opacity: 0;
}

.portfolio-video-card.is-autoplaying .portfolio-card-video {
  z-index: 3;
  opacity: 1;
}

.portfolio-card-meta {
  position: relative;
  display: grid;
  min-height: 116px;
  padding: 18px 20px 20px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 14px;
  background: linear-gradient(180deg, rgba(11, 21, 19, .88), rgba(4, 12, 10, .96));
}

.portfolio-card-index {
  display: inline-flex;
  min-width: 34px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #061006;
  background: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.portfolio-card-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.2;
}

.portfolio-card-action {
  grid-column: 2;
  color: rgba(243, 247, 240, .52);
  font-size: 13px;
}

.portfolio-project-card {
  aspect-ratio: 4 / 3;
}

.portfolio-project-cover {
  position: absolute;
  inset: 0;
  object-fit: contain;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}

.portfolio-project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(1, 6, 6, .9) 100%);
}

.portfolio-project-card .portfolio-card-meta {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  background: transparent;
}

.portfolio-project-card:hover .portfolio-project-cover,
.portfolio-project-card:focus-visible .portfolio-project-cover {
  filter: saturate(1.08) brightness(1.05);
  transform: scale(1.045);
}

.portfolio-section-grid--gallery .portfolio-media-card {
  display: inline-block;
  margin: 0 0 18px;
  break-inside: avoid;
}

.portfolio-gallery-image {
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, .03);
  transition: filter .3s ease;
}

.portfolio-image-card:hover .portfolio-gallery-image,
.portfolio-image-card:focus-visible .portfolio-gallery-image {
  filter: brightness(1.06) saturate(1.06);
}

.portfolio-hover-preview {
  position: fixed;
  z-index: 9000;
  inset: 0;
  display: grid;
  padding: 48px;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: rgba(1, 7, 9, .72);
}

.portfolio-hover-preview.is-visible {
  visibility: visible;
  opacity: 1;
}

.portfolio-hover-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 96px);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .58);
}

@media (max-width: 680px) {
  .portfolio-hover-preview {
    display: none;
  }
}

.portfolio-media-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: rgba(1, 5, 7, .92);
}

.portfolio-media-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
}

.portfolio-media-dialog-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 64px 76px 86px;
}

.portfolio-media-dialog-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.portfolio-dialog-image,
.portfolio-dialog-video {
  width: auto;
  max-width: min(94vw, 1800px);
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .52);
}

.portfolio-dialog-video {
  width: auto;
  max-width: min(94vw, 1920px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.portfolio-dialog-close,
.portfolio-dialog-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(5, 14, 13, .82);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(16px);
}

.portfolio-dialog-close:hover,
.portfolio-dialog-nav:hover,
.portfolio-dialog-close:focus-visible,
.portfolio-dialog-nav:focus-visible {
  outline: none;
  color: #061006;
  border-color: var(--lime);
  background: var(--lime);
}

.portfolio-dialog-close {
  top: 24px;
  right: 28px;
}

.portfolio-dialog-prev {
  top: 50%;
  left: 22px;
}

.portfolio-dialog-next {
  top: 50%;
  right: 22px;
}

.portfolio-dialog-caption {
  position: absolute;
  right: 80px;
  bottom: 28px;
  left: 80px;
  margin: 0;
  overflow: hidden;
  color: rgba(243, 247, 240, .7);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-detail {
  width: 100%;
  padding-bottom: 0;
}

.project-detail-header {
  width: var(--section-page);
  margin: 0 auto;
}

.project-image-stack {
  width: min(1920px, 100%);
  margin: 0 auto;
  line-height: 0;
  background: transparent;
}

.portfolio-project-page.is-archive-width-1280 .project-detail-header,
.portfolio-project-page.is-project-width-1280 .project-detail-header {
  width: min(1280px, calc(100% - 96px));
}

.portfolio-project-page.is-archive-width-1280 .project-image-stack,
.portfolio-project-page.is-project-width-1280 .project-image-stack {
  width: min(1280px, 100%);
}

.portfolio-project-page.is-archive-width-1280 .project-end-return,
.portfolio-project-page.is-project-width-1280 .project-end-return {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.project-detail-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-case-meta {
  display: grid;
  max-width: 1040px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .13);
  border-radius: 14px;
  background: rgba(236, 255, 226, .13);
}

.project-case-meta[hidden],
.project-case-study[hidden] {
  display: none;
}

.project-case-meta__item {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 104px;
  padding: 22px 24px;
  background: rgba(4, 15, 13, .92);
}

.project-case-meta__label {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.project-case-meta__value {
  color: var(--ink);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 650;
  line-height: 1.55;
}

.portfolio-project-page.is-case-study {
  --case-page: min(1440px, calc(100% - 128px));
  --case-wide: min(1600px, calc(100% - 80px));
}

.portfolio-project-page.is-case-study .project-detail {
  padding-top: 156px;
}

.portfolio-project-page.is-case-study .project-detail-header {
  width: var(--case-page);
  align-items: start;
  padding-bottom: clamp(72px, 8vw, 118px);
}

.portfolio-project-page.is-case-study .project-detail-header h1 {
  max-width: 1180px;
  margin-top: 13px;
  font-size: clamp(58px, 7.2vw, 112px);
}

.portfolio-project-page.is-case-study .project-detail-header .detail-copy {
  max-width: 820px;
  margin-top: 25px;
  color: rgba(243, 247, 240, .72);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.75;
}

.project-case-study {
  display: grid;
  gap: clamp(112px, 12vw, 190px);
  padding-bottom: clamp(120px, 12vw, 190px);
}

.project-case-section {
  width: var(--case-page);
  margin: 0 auto;
}

.project-case-section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 54px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(236, 255, 226, .16);
}

.project-case-section-index {
  display: block;
  margin-bottom: 13px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.project-case-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.project-case-section-heading p {
  margin: 0 0 4px;
  color: rgba(243, 247, 240, .58);
  font-size: 15px;
  line-height: 1.7;
}

.project-case-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(185, 255, 22, .28);
  border-radius: 18px;
  color: var(--ink);
  background: #020807;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  cursor: pointer;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}

.project-case-video::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.project-case-video:hover,
.project-case-video:focus-visible {
  outline: none;
  border-color: rgba(185, 255, 22, .7);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .42), 0 0 42px rgba(185, 255, 22, .12);
  transform: scale(1.018);
}

.project-case-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-case-video__overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(2, 8, 7, .72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(15px);
}

.project-case-video__play {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #07100d;
  background: var(--lime);
  font-size: 11px;
  text-indent: 2px;
}

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

.project-motion-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .13);
  border-radius: 14px;
  background: rgba(6, 17, 15, .78);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.project-motion-card:hover {
  border-color: rgba(185, 255, 22, .42);
  transform: translateY(-5px) scale(1.008);
}

.project-motion-card__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020807;
}

.project-motion-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-motion-card__caption {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 17px 18px;
  border-top: 1px solid rgba(236, 255, 226, .1);
}

.project-motion-card__caption span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.project-motion-card__caption strong {
  color: rgba(243, 247, 240, .84);
  font-size: 14px;
}

.project-case-detail-intro {
  padding-bottom: 12px;
}

.project-deliverables {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .14);
  border-radius: 14px;
  background: rgba(236, 255, 226, .12);
}

.project-deliverables__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 18px;
  color: rgba(243, 247, 240, .75);
  background: rgba(5, 15, 13, .94);
  font-size: 14px;
  font-weight: 700;
}

.project-deliverables__item + .project-deliverables__item {
  border-left: 1px solid rgba(236, 255, 226, .12);
}

.project-deliverables__item small {
  color: var(--lime);
  font-size: 10px;
}

.portfolio-project-page.is-case-study .project-image-stack {
  display: grid;
  width: var(--case-wide);
  gap: clamp(48px, 6vw, 94px);
  padding-bottom: clamp(120px, 12vw, 190px);
  background: transparent;
}

.project-detail-frame {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.project-detail-frame.is-landscape {
  width: min(1600px, 100%);
}

.project-detail-frame__label {
  margin-bottom: 12px;
  color: rgba(185, 255, 22, .62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
}

.project-detail-frame .project-detail-image {
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.project-detail-frame.is-panoramic .project-detail-image {
  border-radius: 4px;
}

.project-end-return {
  display: grid;
  min-height: clamp(190px, 26vh, 280px);
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 48px 24px 70px;
  color: rgba(243, 247, 240, .58);
  line-height: 1.35;
  text-align: center;
  opacity: .42;
  transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.project-end-return.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-end-return__eyebrow {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
}

.project-end-return strong {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 38px);
  letter-spacing: 0;
}

.project-end-return__arrow {
  margin-top: 8px;
  color: var(--lime);
  font-size: 25px;
  animation: project-end-arrow 1.4s ease-in-out infinite;
}

.project-scroll-top {
  position: fixed;
  z-index: 1200;
  right: clamp(16px, 2vw, 34px);
  bottom: clamp(96px, 12vh, 142px);
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(185, 255, 22, .52);
  border-radius: 50%;
  color: #07100d;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(185, 255, 22, .2);
  font: 800 26px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.project-scroll-top:hover,
.project-scroll-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(185, 255, 22, .16), 0 0 30px rgba(185, 255, 22, .32);
  transform: translateY(-4px);
}

@keyframes project-end-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.has-portfolio-error .portfolio-loading {
  color: #ff9d9d;
}

@media (max-width: 1100px) {
  .portfolio-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-section-grid--gallery {
    columns: 3;
  }

  .portfolio-project-page.is-case-study {
    --case-page: min(100% - 64px, 1040px);
    --case-wide: min(100% - 48px, 1100px);
  }

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

  .project-motion-card:last-child {
    grid-column: 1 / -1;
  }

  .project-motion-card:last-child .project-motion-card__frame {
    aspect-ratio: 2 / 1;
  }

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

  .project-deliverables__item {
    border-bottom: 1px solid rgba(236, 255, 226, .12);
  }
}

@media (max-width: 760px) {
  .portfolio-browser,
  .project-detail {
    width: min(100% - 32px, 680px);
    padding-top: 132px;
  }

  .project-detail {
    width: 100%;
  }

  .portfolio-browser-header,
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 48px;
  }

  .project-detail-header {
    width: calc(100% - 32px);
  }

  .portfolio-project-page.is-case-study {
    --case-page: calc(100% - 32px);
    --case-wide: calc(100% - 20px);
  }

  .portfolio-project-page.is-case-study .project-detail {
    padding-top: 126px;
  }

  .portfolio-project-page.is-case-study .project-detail-header {
    width: var(--case-page);
    padding-bottom: 74px;
  }

  .portfolio-project-page.is-case-study .project-detail-header h1 {
    font-size: clamp(42px, 13vw, 66px);
  }

  .project-case-meta {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .project-case-meta__item {
    min-height: 0;
    padding: 18px;
  }

  .project-case-study {
    gap: 92px;
    padding-bottom: 98px;
  }

  .project-case-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
  }

  .project-case-section-heading h2 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .project-case-video {
    border-radius: 10px;
  }

  .project-case-video__overlay {
    right: 12px;
    bottom: 12px;
  }

  .project-case-video__hint {
    display: none;
  }

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

  .project-motion-card:last-child {
    grid-column: auto;
  }

  .project-motion-card:last-child .project-motion-card__frame {
    aspect-ratio: 16 / 9;
  }

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

  .project-deliverables__item + .project-deliverables__item {
    border-left: 0;
  }

  .portfolio-project-page.is-case-study .project-image-stack {
    gap: 46px;
  }

  .project-detail-frame__label {
    padding-left: 2px;
  }

  .project-detail-frame .project-detail-image {
    border-radius: 3px;
  }

  .portfolio-project-page.is-archive-width-1280 .project-detail-header,
  .portfolio-project-page.is-project-width-1280 .project-detail-header {
    width: calc(100% - 32px);
  }

  .project-scroll-top {
    right: 16px;
    bottom: 92px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .portfolio-browser-header h1,
  .project-detail-header h1 {
    font-size: clamp(44px, 14vw, 72px);
  }

  .portfolio-sections {
    gap: 92px;
  }

  .portfolio-section-header {
    align-items: start;
  }

  .portfolio-section-header > div {
    display: grid;
    gap: 8px;
  }

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

  .portfolio-section-grid--gallery {
    columns: 2;
  }

  .portfolio-project-card {
    aspect-ratio: 4 / 3;
  }

  .portfolio-media-dialog-shell {
    padding: 66px 18px 74px;
  }

  .portfolio-dialog-image,
  .portfolio-dialog-video {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 150px);
  }

  .portfolio-dialog-prev,
  .portfolio-dialog-next {
    top: auto;
    bottom: 20px;
  }

  .portfolio-dialog-prev {
    left: 18px;
  }

  .portfolio-dialog-next {
    right: 18px;
  }

  .portfolio-dialog-caption {
    right: 72px;
    bottom: 34px;
    left: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-case-video,
  .project-motion-card,
  .project-end-return,
  .project-scroll-top {
    transition: none;
  }

  .project-case-video:hover,
  .project-case-video:focus-visible,
  .project-motion-card:hover {
    transform: none;
  }

  .project-end-return__arrow {
    animation: none;
  }
}

/* Opening film / interactive resume portal */
.home-page .site-header {
  transition: opacity .72s var(--ease), transform .72s var(--ease), visibility .72s;
}

.home-page.is-opening .site-header {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
}

.home-page.opening-complete .site-header {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

body.portal-lock {
  overflow: hidden;
}

body.portal-lock .site-header {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-18px);
}

.opening-hero {
  --resume-x: 37%;
  --resume-y: 36%;
  --resume-width: 29%;
  --resume-height: 64%;
  isolation: isolate;
  background: #05080d;
}

.opening-hero .opening-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: filter .8s var(--ease), transform 1.35s cubic-bezier(.2, .7, .1, 1);
}

.opening-grade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 54%, rgba(4, 10, 20, .12) 0 18%, transparent 52%),
    linear-gradient(90deg, rgba(2, 7, 16, .16) 0%, transparent 40%, rgba(1, 6, 14, .06) 100%),
    linear-gradient(0deg, rgba(1, 5, 12, .3), transparent 26%);
  transition: background 1.1s ease, opacity .9s ease;
}

.opening-hero.is-final .opening-grade {
  background:
    radial-gradient(ellipse at 17% 48%, rgba(3, 8, 18, .18) 0 20%, transparent 54%),
    linear-gradient(90deg, rgba(1, 6, 17, .72) 0%, rgba(2, 8, 18, .36) 28%, transparent 51%),
    linear-gradient(0deg, rgba(1, 5, 12, .42), transparent 30%);
}

.opening-controls {
  position: absolute;
  z-index: 18;
  inset: 0;
  pointer-events: none;
}

.opening-skip {
  position: absolute;
  top: clamp(20px, 2.2vw, 34px);
  right: clamp(20px, 2.4vw, 38px);
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(2, 8, 17, .34);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease, opacity .4s ease, transform .25s ease;
}

.opening-skip i {
  color: #ffd38a;
  font-style: normal;
}

.opening-skip:hover,
.opening-skip:focus-visible {
  color: #07101b;
  border-color: #ffd38a;
  background: #ffd38a;
  outline: none;
  transform: translateY(-2px);
}

.opening-hero.is-final .opening-skip {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
}

.opening-audio {
  position: absolute;
  bottom: clamp(24px, 3.5vw, 48px);
  left: 50%;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 8, 17, .48);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0);
  transition: opacity .45s ease, transform .45s var(--ease), visibility .45s;
}

.opening-audio.is-dismissed {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
}

.opening-audio-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 8px;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.opening-audio-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd38a;
  box-shadow: 0 0 12px rgba(255, 211, 138, .8);
}

.opening-audio.is-enabled .opening-audio-status i {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(185, 255, 22, .8);
}

.opening-audio button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.opening-audio button:first-of-type {
  color: #08111c;
  background: #e9f2ff;
}

.opening-audio button:hover,
.opening-audio button:focus-visible {
  color: #07101b;
  background: #ffd38a;
  outline: none;
}

.opening-copy {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: clamp(54px, 6vw, 116px);
  width: min(31vw, 590px);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(-50% + 26px));
}

.opening-hero.is-final .opening-copy {
  opacity: 1;
  transform: translateY(-50%);
  transition: opacity .8s .12s ease, transform .9s .12s var(--ease);
}

.opening-kicker {
  margin: 0 0 18px;
  color: #ffd38a;
  font-family: "Arial Narrow", "Segoe UI", "PingFang SC", sans-serif;
  font-size: clamp(11px, .8vw, 14px);
  font-weight: 800;
  letter-spacing: .16em;
  opacity: 0;
  transform: translateY(12px);
}

.opening-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Arial Black", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.05em;
  text-shadow: 0 14px 46px rgba(0, 0, 0, .46);
}

.opening-copy h1 span,
.opening-copy h1 strong {
  display: block;
  opacity: 0;
  transform: translateY(18px);
}

.opening-copy h1 span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(30px, 3.3vw, 64px);
  font-weight: 700;
  letter-spacing: -.06em;
}

.opening-copy h1 strong {
  color: #fff;
  font-size: clamp(58px, 6.4vw, 122px);
}

.opening-role {
  width: max-content;
  max-width: 100%;
  margin: 20px 0 0;
  color: #fff;
  background: linear-gradient(92deg, #ffd38a 0%, #fff3d4 34%, #96caff 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(20px, 2vw, 38px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.04em;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(16px);
}

.opening-instruction {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
}

.opening-instruction i {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #ffd38a, var(--lime));
  box-shadow: 0 0 10px rgba(185, 255, 22, .5);
}

.opening-hero.is-final .opening-kicker {
  animation: opening-copy-in .65s .2s var(--ease) both;
}

.opening-hero.is-final .opening-copy h1 span {
  animation: opening-copy-in .72s .36s var(--ease) both;
}

.opening-hero.is-final .opening-copy h1 strong {
  animation: opening-copy-in .78s .5s var(--ease) both;
}

.opening-hero.is-final .opening-role {
  animation: opening-copy-in .72s .68s var(--ease) both;
}

.opening-hero.is-final .opening-instruction {
  animation: opening-copy-in .65s .9s var(--ease) both;
}

@keyframes opening-copy-in {
  to { opacity: 1; transform: translateY(0); }
}

.resume-trigger {
  position: absolute;
  z-index: 12;
  top: var(--resume-y);
  left: var(--resume-x);
  width: var(--resume-width);
  height: var(--resume-height);
  padding: 0;
  overflow: visible;
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 88% 100%, 0 100%);
  color: #fff;
  background: transparent;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity .5s .76s ease;
}

.opening-hero.is-final .resume-trigger {
  pointer-events: auto;
  opacity: 1;
}

.resume-glow,
.resume-rim,
.resume-signal {
  position: absolute;
  pointer-events: none;
}

.resume-glow {
  z-index: -1;
  inset: 3% 2% 1%;
  border-radius: 4%;
  background: linear-gradient(145deg, rgba(255, 201, 112, .36), rgba(74, 158, 255, .28) 64%, rgba(185, 255, 22, .2));
  filter: blur(clamp(14px, 1.5vw, 28px));
  opacity: .52;
  animation: resume-breathe 2.8s ease-in-out infinite;
}

.resume-rim {
  z-index: 2;
  inset: -3px;
  padding: 3px;
  clip-path: inherit;
  background: linear-gradient(118deg, transparent 5%, transparent 28%, #ffd38a 43%, #fff 49%, #77baff 56%, transparent 71%, transparent 100%) 100% 0 / 260% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .82;
  animation: resume-rim-flow 2.6s linear infinite;
}

.resume-signal {
  z-index: 4;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(185, 255, 22, .6), 0 0 20px rgba(185, 255, 22, .95);
  animation: resume-signal 1.8s ease-out infinite;
}

.resume-label {
  position: absolute;
  z-index: 5;
  top: 54%;
  left: calc(100% + 16px);
  display: grid;
  min-width: 150px;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: #fff;
  background: rgba(3, 10, 22, .68);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .32), 0 0 24px rgba(82, 158, 255, .14);
  backdrop-filter: blur(14px);
  clip-path: none;
  text-align: left;
  opacity: 0;
  transform: translate(-10px, -50%);
  transition: opacity .3s ease, transform .4s var(--ease), border-color .3s ease;
}

.resume-label b {
  color: #ffd38a;
  font-size: 11px;
  letter-spacing: .08em;
}

.resume-label small {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.resume-trigger:hover .resume-label,
.resume-trigger:focus-visible .resume-label {
  border-color: rgba(185, 255, 22, .56);
  opacity: 1;
  transform: translate(0, -50%);
}

.resume-trigger:hover .resume-glow,
.resume-trigger:focus-visible .resume-glow {
  opacity: .9;
}

.resume-trigger:hover .resume-rim,
.resume-trigger:focus-visible .resume-rim {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 211, 138, .64));
}

.resume-trigger:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 8px;
}

@keyframes resume-breathe {
  0%, 100% { opacity: .38; filter: blur(clamp(14px, 1.5vw, 28px)); }
  50% { opacity: .78; filter: blur(clamp(20px, 2vw, 38px)); }
}

@keyframes resume-rim-flow {
  from { background-position: 110% 0; }
  to { background-position: -120% 0; }
}

@keyframes resume-signal {
  0% { box-shadow: 0 0 0 0 rgba(185, 255, 22, .65), 0 0 20px rgba(185, 255, 22, .95); }
  75%, 100% { box-shadow: 0 0 0 18px rgba(185, 255, 22, 0), 0 0 20px rgba(185, 255, 22, .7); }
}

.resume-portal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 185, 255, .2), transparent 12%),
    radial-gradient(circle at 50% 50%, #09234d 0%, #06142f 28%, #020714 62%, #01030a 100%);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.opening-hero.is-transitioning .resume-portal {
  visibility: visible;
  opacity: 1;
  animation: portal-overlay 3.15s linear both;
}

.home-page .opening-hero.is-transitioning {
  z-index: 200;
}

.opening-hero.is-transitioning .opening-video {
  filter: blur(5px) saturate(1.12);
  transform: scale(1.18);
}

.opening-hero.is-transitioning .opening-copy,
.opening-hero.is-transitioning .resume-trigger,
.opening-hero.is-transitioning ~ * {
  pointer-events: none;
}

.portal-flash {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(circle at 50% 54%, rgba(255, 228, 174, .9), rgba(97, 165, 255, .42) 8%, transparent 28%);
  opacity: 0;
}

.portal-tunnel {
  position: absolute;
  z-index: 1;
  inset: -18%;
  perspective: 700px;
  transform-style: preserve-3d;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(120, 184, 255, .16) 0 1deg, transparent 1deg 11deg),
    radial-gradient(circle at center, transparent 0 8%, rgba(98, 167, 255, .24) 8.2% 8.5%, transparent 9% 17%, rgba(255, 211, 138, .12) 17.2% 17.5%, transparent 18%),
    linear-gradient(rgba(2, 8, 20, .08), rgba(2, 8, 20, .24)),
    url("assets/portal-archive-tunnel.png") center / cover no-repeat;
  filter: saturate(1.18);
}

.portal-rail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 96%;
  background: linear-gradient(0deg, transparent, #7cbcff 18%, #fff 52%, #ffd38a 78%, transparent);
  box-shadow: 0 0 18px rgba(108, 177, 255, .7);
  transform-origin: 50% 0;
  opacity: .66;
}

.portal-rail-a { transform: rotate(58deg); }
.portal-rail-b { transform: rotate(124deg); }
.portal-rail-c { transform: rotate(238deg); }
.portal-rail-d { transform: rotate(304deg); }

.portal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16vmin;
  aspect-ratio: 1;
  border: 1px solid rgba(173, 211, 255, .58);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(104, 172, 255, .2), 0 0 22px rgba(104, 172, 255, .22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.18);
}

.opening-hero.is-transitioning .portal-ring-1 { animation: portal-ring 1.22s .36s linear infinite; }
.opening-hero.is-transitioning .portal-ring-2 { animation: portal-ring 1.22s .64s linear infinite; }
.opening-hero.is-transitioning .portal-ring-3 { animation: portal-ring 1.22s .92s linear infinite; }
.opening-hero.is-transitioning .portal-ring-4 { animation: portal-ring 1.22s 1.2s linear infinite; }

.portal-year {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(221, 239, 255, .8);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(16px, 2vw, 36px);
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 0 0 16px rgba(95, 167, 255, .7);
  opacity: 0;
}

.opening-hero.is-transitioning .portal-year-a { animation: portal-year-a 2s .55s var(--ease) both; }
.opening-hero.is-transitioning .portal-year-b { animation: portal-year-b 2s .78s var(--ease) both; }
.opening-hero.is-transitioning .portal-year-c { animation: portal-year-c 2s 1s var(--ease) both; }
.opening-hero.is-transitioning .portal-year-d { color: var(--lime); animation: portal-year-d 1.45s 1.46s var(--ease) both; }

.portal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5vmin;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 4%, var(--lime) 9%, #4b9cff 28%, rgba(23, 72, 146, .24) 52%, transparent 70%);
  box-shadow: 0 0 34px rgba(113, 181, 255, .86), 0 0 100px rgba(50, 123, 255, .46);
  transform: translate(-50%, -50%);
}

.portal-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(185, 255, 22, .8), 0 0 42px rgba(185, 255, 22, 1);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.portal-caption {
  position: absolute;
  z-index: 4;
  bottom: clamp(34px, 5vw, 72px);
  left: 50%;
  display: grid;
  gap: 6px;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
}

.portal-caption span {
  color: #9bcaff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.portal-caption b {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
}

.portal-flash,
.portal-tunnel,
.portal-core,
.portal-node,
.portal-caption {
  animation: none;
}

.opening-hero.is-transitioning .portal-flash {
  animation: portal-flash 3.15s ease both;
}

.opening-hero.is-transitioning .portal-tunnel {
  animation: portal-tunnel 3.15s cubic-bezier(.16, .72, .12, 1) both;
}

.opening-hero.is-transitioning .portal-core {
  animation: portal-core 3.15s var(--ease) both;
}

.opening-hero.is-transitioning .portal-node {
  animation: portal-node-lock 3.15s ease both;
}

.opening-hero.is-transitioning .portal-caption {
  animation: portal-caption 3.15s ease both;
}

@keyframes portal-overlay {
  0% { opacity: 0; }
  10%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes portal-flash {
  0% { opacity: 0; transform: scale(.55); }
  8% { opacity: 1; transform: scale(1); }
  24% { opacity: .08; transform: scale(2.2); }
  78% { opacity: 0; }
  88% { opacity: .7; background: radial-gradient(circle, rgba(185, 255, 22, .6), transparent 28%); }
  100% { opacity: 0; }
}

@keyframes portal-tunnel {
  0% { opacity: 0; transform: scale(.16) rotate(0deg); filter: blur(9px) saturate(1); }
  18% { opacity: 1; transform: scale(.52) rotate(2deg); filter: blur(2px) saturate(1.15); }
  64% { opacity: 1; transform: scale(1.4) rotate(-3deg); filter: blur(0) saturate(1.25); }
  86% { opacity: 1; transform: scale(2.7) rotate(1deg); filter: blur(1px) saturate(1.35); }
  100% { opacity: 0; transform: scale(4.3) rotate(0); filter: blur(7px) saturate(1.1); }
}

@keyframes portal-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.14); }
  18% { opacity: .72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7.2); }
}

@keyframes portal-year-a {
  0% { opacity: 0; transform: translate(-12vw, -4vh) scale(.28); }
  28% { opacity: .8; }
  100% { opacity: 0; transform: translate(-48vw, -34vh) scale(2.2); }
}

@keyframes portal-year-b {
  0% { opacity: 0; transform: translate(8vw, -2vh) scale(.2); }
  28% { opacity: .8; }
  100% { opacity: 0; transform: translate(40vw, -28vh) scale(2.4); }
}

@keyframes portal-year-c {
  0% { opacity: 0; transform: translate(-5vw, 5vh) scale(.18); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translate(-36vw, 32vh) scale(2.5); }
}

@keyframes portal-year-d {
  0% { opacity: 0; transform: translate(2vw, 2vh) scale(.2); }
  48% { opacity: 1; transform: translate(8vw, 8vh) scale(1); }
  100% { opacity: 0; transform: translate(24vw, 25vh) scale(2.8); }
}

@keyframes portal-core {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  14% { opacity: 1; }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  88% { opacity: 1; transform: translate(-50%, -50%) scale(.24); background: var(--lime); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

@keyframes portal-node-lock {
  0%, 70% { opacity: 0; box-shadow: 0 0 0 0 rgba(185, 255, 22, .8), 0 0 42px rgba(185, 255, 22, 1); }
  78% { opacity: 1; box-shadow: 0 0 0 0 rgba(185, 255, 22, .8), 0 0 42px rgba(185, 255, 22, 1); }
  92% { opacity: 1; box-shadow: 0 0 0 38vmax rgba(185, 255, 22, 0), 0 0 90px rgba(185, 255, 22, .9); }
  100% { opacity: 0; }
}

@keyframes portal-caption {
  0%, 15% { opacity: 0; transform: translate(-50%, 12px); }
  26%, 72% { opacity: 1; transform: translate(-50%, 0); }
  88%, 100% { opacity: 0; transform: translate(-50%, -8px); }
}

.opening-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .opening-copy {
    top: 18%;
    left: clamp(24px, 6vw, 52px);
    width: min(46vw, 420px);
    transform: translateY(20px);
  }

  .opening-hero.is-final .opening-copy {
    transform: translateY(0);
  }

  .opening-copy h1 span { font-size: clamp(25px, 4.5vw, 40px); }
  .opening-copy h1 strong { font-size: clamp(54px, 9vw, 82px); }
  .opening-role { font-size: clamp(19px, 3vw, 28px); }
  .opening-instruction { margin-top: 18px; }
  .resume-label { display: none; }
}

@media (max-width: 640px) {
  .opening-hero .opening-video {
    object-position: center;
  }

  .opening-skip {
    top: 14px;
    right: 14px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .opening-audio {
    bottom: max(18px, env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }

  .opening-audio-status {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 5px 8px 2px;
  }

  .opening-audio button {
    width: 100%;
  }

  .opening-copy {
    top: max(78px, calc(env(safe-area-inset-top) + 62px));
    left: 18px;
    width: calc(100% - 36px);
    text-align: center;
  }

  .opening-kicker {
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .opening-copy h1 {
    text-shadow: 0 6px 24px rgba(0, 0, 0, .82);
  }

  .opening-copy h1 span {
    display: inline;
    margin-right: 5px;
    font-size: clamp(23px, 7.2vw, 32px);
  }

  .opening-copy h1 strong {
    display: inline;
    font-size: clamp(37px, 11vw, 50px);
  }

  .opening-role {
    margin: 8px auto 0;
    font-size: clamp(17px, 5.4vw, 24px);
  }

  .opening-instruction {
    justify-content: center;
    margin-top: 10px;
    font-size: 12px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .8);
  }

  .opening-instruction i {
    width: 18px;
  }

  .resume-trigger:focus-visible {
    outline-offset: 3px;
  }

  .portal-caption {
    bottom: max(26px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .site-header,
  .opening-video,
  .opening-grade,
  .opening-copy,
  .opening-kicker,
  .opening-copy h1 span,
  .opening-copy h1 strong,
  .opening-role,
  .opening-instruction,
  .resume-glow,
  .resume-rim,
  .resume-signal,
  .resume-portal,
  .portal-flash,
  .portal-tunnel,
  .portal-ring,
  .portal-year,
  .portal-core,
  .portal-node,
  .portal-caption {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .opening-hero.is-reduced-transition .resume-portal {
    visibility: visible;
    opacity: 1;
    background: rgba(2, 7, 15, .96);
  }
}

/* TEC case study: fixed 70/30 split layout */
.project-detail-pane__header[hidden] {
  display: none;
}

@media (min-width: 1100px) and (min-height: 680px) {
  body.portfolio-project-page.is-case-study {
    overflow: hidden;
  }

  .portfolio-project-page.is-case-study .site-header {
    position: fixed;
    top: 12px;
    left: 50%;
    width: min(100%, var(--case-study-canvas));
    min-height: 48px;
    margin: 0;
    padding: 4px;
    transform: translateX(-50%);
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .portfolio-project-page.is-case-study .brand-pill {
    min-width: 118px;
    min-height: 38px;
    padding: 6px 14px;
  }

  .portfolio-project-page.is-case-study .brand-wordmark {
    width: 88px;
  }

  .portfolio-project-page.is-case-study .site-nav {
    padding: 2px;
    background: rgba(3, 12, 11, .72);
  }

  .portfolio-project-page.is-case-study .site-nav a:not(.is-active) {
    display: none;
  }

  .portfolio-project-page.is-case-study .site-nav a.is-active {
    min-width: 112px;
    padding: 8px 14px;
  }

  .portfolio-project-page.is-case-study .contact-pill {
    min-height: 38px;
    padding-inline: 15px;
  }

  .portfolio-project-page.is-case-study .project-detail {
    display: grid;
    width: 100%;
    max-width: var(--case-study-canvas);
    height: 100svh;
    margin: 0 auto;
    padding: 72px 18px 18px;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px 22px;
    overflow: hidden;
  }

  .portfolio-project-page.is-case-study .project-detail-header {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px 20px 18px;
    grid-column: 1;
    grid-row: 2;
    border-top: 1px solid rgba(236, 255, 226, .14);
    background: rgba(2, 9, 8, .58);
  }

  .portfolio-project-page.is-case-study .project-detail-header > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 28px;
    align-items: end;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-kicker {
    grid-column: 1;
    margin: 0 0 6px;
    color: var(--lime);
    font-size: 10px;
    letter-spacing: .14em;
  }

  .portfolio-project-page.is-case-study .project-detail-header h1 {
    grid-column: 1;
    max-width: none;
    margin: 0;
    font-size: clamp(34px, 3.45vw, 58px);
    line-height: .98;
    white-space: nowrap;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-copy {
    grid-column: 1;
    margin: 8px 0 0;
    color: var(--lime);
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 800;
    line-height: 1.2;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-back {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-case-meta {
    display: grid;
    min-width: 138px;
    max-width: none;
    margin: 0;
    padding: 0 0 2px;
    grid-column: 2;
    grid-row: 1 / 4;
    align-content: end;
    gap: 4px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .portfolio-project-page.is-case-study .project-case-meta__type {
    margin-bottom: 8px;
    color: rgba(243, 247, 240, .82);
    font-size: 13px;
    line-height: 1.2;
  }

  .portfolio-project-page.is-case-study .project-case-meta__tool {
    color: rgba(243, 247, 240, .52);
    font-size: 11px;
    line-height: 1.2;
  }

  .portfolio-project-page.is-case-study .project-case-study {
    display: grid;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: minmax(0, 1fr) clamp(116px, 19vh, 190px);
    gap: 14px;
  }

  .portfolio-project-page.is-case-study .project-case-section {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }

  .portfolio-project-page.is-case-study .project-case-hero,
  .portfolio-project-page.is-case-study .project-case-video {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .portfolio-project-page.is-case-study .project-case-video {
    aspect-ratio: auto;
    border-radius: 9px;
  }

  .portfolio-project-page.is-case-study .project-case-video__media {
    object-fit: cover;
    object-position: center;
  }

  .portfolio-project-page.is-case-study .project-case-video__overlay {
    right: 14px;
    bottom: 14px;
  }

  .portfolio-project-page.is-case-study .project-case-motion,
  .portfolio-project-page.is-case-study .project-motion-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .portfolio-project-page.is-case-study .project-motion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .portfolio-project-page.is-case-study .project-motion-card,
  .portfolio-project-page.is-case-study .project-motion-card__frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
  }

  .portfolio-project-page.is-case-study .project-motion-card {
    border-radius: 8px;
  }

  .portfolio-project-page.is-case-study .project-motion-card__frame {
    aspect-ratio: auto;
  }

  .portfolio-project-page.is-case-study .project-motion-card__media {
    object-fit: cover;
  }

  .portfolio-project-page.is-case-study .project-detail-pane {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(236, 255, 226, .14);
    border-radius: 10px;
    background: #030908;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 72px;
    padding: 15px 18px;
    align-items: end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(236, 255, 226, .14);
    background: rgba(3, 10, 9, .96);
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header span {
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1;
  }

  .portfolio-project-page.is-case-study .project-detail-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(185, 255, 22, .56) rgba(255, 255, 255, .05);
    scrollbar-width: thin;
  }

  .portfolio-project-page.is-case-study .project-detail-scroll::-webkit-scrollbar {
    width: 7px;
  }

  .portfolio-project-page.is-case-study .project-detail-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .04);
  }

  .portfolio-project-page.is-case-study .project-detail-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #030908;
    border-radius: 999px;
    background: rgba(185, 255, 22, .56);
  }

  .portfolio-project-page.is-case-study .project-image-stack {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .portfolio-project-page.is-case-study .project-detail-frame {
    width: 100%;
    margin: 0;
  }

  .portfolio-project-page.is-case-study .project-detail-frame .project-detail-image {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portfolio-project-page.is-case-study .project-end-return {
    min-height: 230px;
    padding: 42px 20px 54px;
    border-top: 1px solid rgba(236, 255, 226, .12);
  }

  .portfolio-project-page.is-case-study .project-end-return__button {
    min-width: 150px;
    margin-top: 14px;
    padding: 12px 20px;
    border: 1px solid rgba(185, 255, 22, .55);
    border-radius: 999px;
    color: #061006;
    background: var(--lime);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
  }

  .portfolio-project-page.is-case-study .project-scroll-top {
    right: clamp(22px, 2vw, 34px);
    bottom: 34px;
  }
}

@media (max-width: 1099px), (max-height: 679px) {
  body.portfolio-project-page.is-case-study {
    overflow: auto;
  }

  .portfolio-project-page.is-case-study .site-header {
    position: sticky;
    top: 12px;
    left: auto;
    width: min(760px, calc(100% - 32px));
    min-height: 52px;
    margin: 12px auto -66px;
    padding: 5px;
  }

  .portfolio-project-page.is-case-study .site-nav a:not(.is-active) {
    display: none;
  }

  .portfolio-project-page.is-case-study .site-nav a.is-active {
    min-width: 106px;
    padding: 8px 12px;
  }

  .portfolio-project-page.is-case-study .project-detail {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 116px 16px 0;
    flex-direction: column;
    gap: 54px;
    overflow: visible;
  }

  .portfolio-project-page.is-case-study .project-detail-header {
    display: block;
    order: 1;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 0;
  }

  .portfolio-project-page.is-case-study .project-detail-header h1 {
    margin: 9px 0 0;
    font-size: clamp(42px, 11vw, 72px);
    line-height: 1.02;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-copy {
    margin: 12px 0 0;
    color: var(--lime);
    font-size: 12px;
    font-weight: 800;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-back {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-case-meta {
    display: grid;
    max-width: none;
    margin-top: 24px;
    padding-top: 18px;
    grid-template-columns: 1fr;
    gap: 6px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
  }

  .portfolio-project-page.is-case-study .project-case-meta__type {
    margin-bottom: 7px;
    color: rgba(243, 247, 240, .82);
    font-size: 14px;
  }

  .portfolio-project-page.is-case-study .project-case-meta__tool {
    color: rgba(243, 247, 240, .52);
    font-size: 12px;
  }

  .portfolio-project-page.is-case-study .project-case-study {
    display: grid;
    order: 2;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0;
    gap: 18px;
  }

  .portfolio-project-page.is-case-study .project-case-section {
    width: 100%;
    margin: 0;
  }

  .portfolio-project-page.is-case-study .project-case-video,
  .portfolio-project-page.is-case-study .project-motion-card__frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .portfolio-project-page.is-case-study .project-motion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portfolio-project-page.is-case-study .project-motion-card,
  .portfolio-project-page.is-case-study .project-motion-card:last-child {
    width: 100%;
    margin: 0;
    grid-column: auto;
  }

  .portfolio-project-page.is-case-study .project-motion-card:last-child .project-motion-card__frame {
    aspect-ratio: 16 / 9;
  }

  .portfolio-project-page.is-case-study .project-detail-pane {
    display: block;
    order: 3;
    width: min(100%, 920px);
    margin: 0 auto;
    overflow: visible;
    border: 1px solid rgba(236, 255, 226, .13);
    border-radius: 8px 8px 0 0;
    background: #030908;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header {
    display: flex;
    min-height: 76px;
    padding: 18px;
    align-items: end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(236, 255, 226, .14);
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header span {
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
  }

  .portfolio-project-page.is-case-study .project-detail-scroll {
    overflow: visible;
  }

  .portfolio-project-page.is-case-study .project-image-stack {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .portfolio-project-page.is-case-study .project-detail-frame {
    width: 100%;
    margin: 0;
  }

  .portfolio-project-page.is-case-study .project-detail-frame .project-detail-image {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .portfolio-project-page.is-case-study .project-end-return {
    min-height: 240px;
    padding: 48px 20px 70px;
    border-top: 1px solid rgba(236, 255, 226, .12);
  }

  .portfolio-project-page.is-case-study .project-end-return__button {
    min-width: 154px;
    margin-top: 14px;
    padding: 13px 20px;
    border: 1px solid rgba(185, 255, 22, .55);
    border-radius: 999px;
    color: #061006;
    background: var(--lime);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
  }
}

@media (max-width: 520px) {
  .portfolio-project-page.is-case-study .site-header {
    grid-template-columns: auto 1fr;
  }

  .portfolio-project-page.is-case-study .contact-pill {
    display: none;
  }

  .portfolio-project-page.is-case-study .brand-pill {
    min-width: 112px;
    padding-inline: 14px;
  }

  .portfolio-project-page.is-case-study .brand-wordmark {
    width: 86px;
  }
}

@media (max-width: 480px) {
  .portfolio-section-grid--gallery {
    columns: 1;
  }

  .portfolio-section-header h2 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-media-card,
  .portfolio-card-cover,
  .portfolio-card-video,
  .portfolio-project-cover {
    transition-duration: .01ms !important;
  }

  .project-end-return,
  .project-scroll-top {
    transition-duration: .01ms !important;
  }

  .project-end-return__arrow {
    animation: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #020706;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #030807;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -8vh -8vw;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(920px 680px at 16% 24%, rgba(0, 105, 89, .42), transparent 72%),
    radial-gradient(1100px 760px at 82% 34%, rgba(45, 24, 105, .36), transparent 74%),
    radial-gradient(900px 680px at 56% 78%, rgba(20, 67, 74, .2), transparent 72%),
    linear-gradient(135deg, #041211 0%, #03100f 34%, #050914 68%, #090515 100%);
  filter: blur(18px);
  transform: scale(1.02);
}

body.is-dialog-open {
  overflow: hidden;
}

main {
  position: relative;
  isolation: isolate;
}

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

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  color: #050805;
  background: var(--lime);
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #061006;
  background: var(--lime);
  transform: translateY(-140%);
}

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

.page-texture {
  position: fixed;
  z-index: -1;
  inset: 0;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, rgba(185, 255, 22, .075), transparent 24%),
    radial-gradient(circle at 76% 62%, rgba(112, 86, 255, .1), transparent 34%);
  opacity: .56;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 16px;
  display: grid;
  width: min(960px, calc(100% - 42px));
  min-height: 56px;
  margin: 16px auto -72px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 7px 9px;
  border: 1px solid rgba(185, 255, 22, .28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(185, 255, 22, .24), transparent 28%),
    linear-gradient(90deg, rgba(185, 255, 22, .2), rgba(2, 8, 10, .78) 28%, rgba(2, 8, 10, .76) 72%, rgba(185, 255, 22, .16));
  box-shadow: 0 16px 52px rgba(0, 0, 0, .34), 0 0 34px rgba(185, 255, 22, .12);
  backdrop-filter: blur(22px);
}

/* The home hero starts at the viewport edge; its floating nav must not reserve space. */
.home-page .site-header {
  position: fixed;
  top: clamp(12px, 1.1vw, 16px);
  right: 0;
  left: 0;
  margin: 0 auto;
}

.brand-pill,
.contact-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
}

.brand-pill {
  min-width: 156px;
  padding: 8px 20px;
  color: #071107;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(185, 255, 22, .38);
}

[data-scroll-home] {
  cursor: pointer;
}

.brand-wordmark {
  width: 118px;
  height: auto;
  filter: brightness(0);
}

.site-nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  width: max-content;
  margin: 0 auto;
  padding: 5px;
  overflow: visible;
  border: 1px solid rgba(185, 255, 22, .2);
  border-radius: 999px;
  color: rgba(243, 247, 240, .74);
  background:
    radial-gradient(circle at var(--gooey-center-x, 50%) 50%, rgba(185, 255, 22, .18), transparent 28%),
    rgba(1, 7, 8, .72);
  font-size: 14px;
  font-weight: 800;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .32),
    0 0 30px rgba(185, 255, 22, .08);
  transition: background-position .58s var(--ease), box-shadow .28s var(--ease);
}

.site-nav a,
.contact-pill {
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.site-nav a {
  position: relative;
  z-index: 7;
  min-width: 94px;
  padding: 10px 16px;
  overflow: visible;
  border-radius: 999px;
  text-align: center;
  transform: translateZ(0);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateZ(0);
}

.site-nav a:hover:not(.is-active) {
  color: #fff;
  background: rgba(185, 255, 22, .06);
}

.site-nav a.is-active {
  color: #061006;
  text-shadow: none;
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(185, 255, 22, .9);
  outline-offset: 4px;
}

.gooey-effect {
  position: absolute;
  left: var(--gooey-left, 4px);
  top: var(--gooey-top, 4px);
  width: var(--gooey-width, 94px);
  height: var(--gooey-height, 38px);
  border-radius: 999px;
  pointer-events: none;
  transition:
    left .58s linear(0, .068, .19 2.7%, .804 8.1%, 1.199 13.2%, 1.274 17.4%, .996 28%, .926 33.3%, 1.019 50.8%, 1 63.1%, 1.001 85%, 1),
    top .58s linear(0, .068, .19 2.7%, .804 8.1%, 1.199 13.2%, 1.274 17.4%, .996 28%, .926 33.3%, 1.019 50.8%, 1 63.1%, 1.001 85%, 1),
    width .58s linear(0, .068, .19 2.7%, .804 8.1%, 1.199 13.2%, 1.274 17.4%, .996 28%, .926 33.3%, 1.019 50.8%, 1 63.1%, 1.001 85%, 1),
    height .58s linear(0, .068, .19 2.7%, .804 8.1%, 1.199 13.2%, 1.274 17.4%, .996 28%, .926 33.3%, 1.019 50.8%, 1 63.1%, 1.001 85%, 1);
}

.gooey-effect.filter {
  z-index: 1;
  filter: none;
  mix-blend-mode: normal;
}

.gooey-effect.filter::before {
  display: none;
}

.gooey-effect.filter.is-burst::before {
  animation: none;
}

.gooey-effect.filter::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: var(--lime);
  box-shadow:
    0 0 0 1px rgba(185, 255, 22, .95),
    0 0 20px rgba(185, 255, 22, .5);
  opacity: 1;
  transform: scale(1);
}

.gooey-effect.filter.is-burst::after {
  animation: gooey-pill .56s linear(0, .068, .19 2.7%, .804 8.1%, 1.199 13.2%, 1.274 17.4%, .996 28%, .926 33.3%, 1.019 50.8%, 1 63.1%, 1.001 85%, 1) both;
}

.gooey-effect.text {
  display: none;
}

.gooey-effect.text.is-active {
  opacity: 0;
}

@keyframes gooey-pill {
  from {
    opacity: .92;
    transform: scale(.88, .9);
  }

  44% {
    opacity: 1;
    transform: scale(1.04, 1);
  }

  72% {
    opacity: 1;
    transform: scale(.98, 1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gooey-halo-burst {
  0% {
    opacity: .72;
    transform: scale(.72, .7);
    filter: none;
  }

  36% {
    opacity: 1;
    transform: scale(1.28, 1.05);
    filter: none;
  }

  100% {
    opacity: .92;
    transform: scale(.98, .86);
    filter: none;
  }
}

.gooey-particle,
.gooey-point {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  opacity: 0;
  transform-origin: center;
}

.gooey-particle {
  position: absolute;
  top: calc(50% - 12px);
  left: calc(50% - 12px);
  animation: gooey-particle var(--time, 980ms) ease 1 -170ms;
}

.gooey-point {
  background: var(--color, var(--lime));
  box-shadow: none;
  opacity: 1;
  animation: gooey-point var(--time, 980ms) ease 1 -170ms;
}

@keyframes gooey-particle {
  0% {
    opacity: 1;
    transform: rotate(0deg) translate(var(--start-x), var(--start-y));
    animation-timing-function: cubic-bezier(.55, 0, 1, .45);
  }

  70% {
    opacity: 1;
    transform: rotate(calc(var(--rotate) * .5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
  }

  100% {
    opacity: 1;
    transform: rotate(var(--rotate)) translate(calc(var(--end-x) * .48), calc(var(--end-y) * .48));
  }
}

@keyframes gooey-point {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  34% {
    opacity: 1;
    transform: scale(calc(var(--scale) * .34));
  }

  70% {
    opacity: 1;
    transform: scale(var(--scale));
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.nav-particle {
  position: fixed;
  z-index: 79;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(185, 255, 22, .7);
  animation: nav-particle-pop .62s var(--ease) forwards;
}

@keyframes nav-particle-pop {
  from {
    opacity: .95;
    transform: translate(-50%, -50%) scale(.4);
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.08);
  }
}

.contact-pill {
  padding: 0 18px;
  border: 1px solid rgba(243, 247, 240, .2);
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  color: #061006;
  border-color: var(--lime);
  background: var(--lime);
  outline: none;
}

.contact-lanyard {
  position: relative;
  z-index: 12;
  display: grid;
  justify-self: end;
  isolation: isolate;
}

.contact-lanyard-drop {
  --contact-lanyard-rise: 72px;
  --contact-lanyard-y: -166px;
  --contact-lanyard-rotate: -3deg;
  --contact-lanyard-opacity: 0;
  --contact-lanyard-scale: .86;
  position: absolute;
  z-index: 1;
  top: calc(100% - 1px);
  left: calc(50% - 98px);
  width: 196px;
  height: 316px;
  pointer-events: none;
  opacity: var(--contact-lanyard-opacity);
  transform:
    translate3d(0, var(--contact-lanyard-y), 0)
    rotate(var(--contact-lanyard-rotate))
    scale(var(--contact-lanyard-scale));
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

.contact-lanyard-strap {
  position: absolute;
  z-index: 2;
  top: calc(-1 * var(--contact-lanyard-rise));
  left: 50%;
  display: grid;
  width: 24px;
  height: calc(116px + var(--contact-lanyard-rise));
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(90deg, #050706 0 16%, #171a18 45%, #030403 82%),
    #050605;
  box-shadow:
    inset 1px 0 rgba(255, 255, 255, .08),
    inset -1px 0 rgba(0, 0, 0, .72),
    0 9px 18px rgba(0, 0, 0, .38);
  transform: translateX(-50%);
}

.contact-lanyard-mark {
  color: rgba(243, 247, 240, .92);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  transform: rotate(90deg);
}

.contact-lanyard-clasp {
  position: absolute;
  z-index: 4;
  top: 96px;
  left: 50%;
  width: 42px;
  height: 38px;
  border: 5px solid #111412;
  border-top-color: #2b302d;
  border-radius: 48% 48% 54% 54%;
  background: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 5px 10px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}

.contact-lanyard-clasp::after {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 18px;
  height: 22px;
  content: "";
  border-radius: 5px 5px 10px 10px;
  background: linear-gradient(90deg, #080a09, #2a2f2b 48%, #050605);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}

.contact-lanyard-badge {
  position: absolute;
  z-index: 3;
  top: 120px;
  left: 50%;
  display: block;
  width: 196px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(185, 255, 22, .12);
  transform: translateX(-50%);
}

.contact-lanyard-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.contact-lanyard.is-open .contact-pill {
  color: #061006;
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 22px rgba(185, 255, 22, .28);
}

.contact-lanyard .contact-pill {
  position: relative;
  z-index: 3;
}

.section-screen {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-pad {
  padding: 118px 0;
}

.hero {
  --hero-spotlight-x: 50%;
  --hero-spotlight-y: 50%;
  --hero-spotlight-radius: clamp(210px, 18vw, 300px);
  --hero-spotlight-opacity: 0;
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 780px;
  min-height: max(780px, 100svh);
  min-height: max(780px, 100dvh);
  margin: 0 auto;
  overflow: visible;
  align-items: center;
  border-radius: 0;
  background: transparent;
}

/* Keep the complete opening scene still while the page content rises over it. */
.hero.section-screen {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
}

.hero-video {
  display: block;
  pointer-events: none;
}

.hero-video-night {
  z-index: 0;
}

.hero-video-day {
  z-index: 1;
  opacity: var(--hero-spotlight-opacity);
  -webkit-mask-image: radial-gradient(
    circle var(--hero-spotlight-radius) at var(--hero-spotlight-x) var(--hero-spotlight-y),
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, .92) 50%,
    rgba(0, 0, 0, .7) 64%,
    rgba(0, 0, 0, .36) 78%,
    rgba(0, 0, 0, .1) 90%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--hero-spotlight-radius) at var(--hero-spotlight-x) var(--hero-spotlight-y),
    #000 0%,
    #000 38%,
    rgba(0, 0, 0, .92) 50%,
    rgba(0, 0, 0, .7) 64%,
    rgba(0, 0, 0, .36) 78%,
    rgba(0, 0, 0, .1) 90%,
    transparent 100%
  );
  will-change: opacity, mask-image, -webkit-mask-image;
}

.hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(1, 6, 8, .45) 0%, rgba(1, 7, 8, .2) 48%, rgba(2, 6, 8, .28) 100%),
    linear-gradient(0deg, rgba(3, 8, 7, .64) 0%, rgba(3, 8, 7, .08) 42%, rgba(3, 8, 7, .26) 100%);
}

.hero::after {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: -92px;
  left: 0;
  display: block;
  height: 280px;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgba(3, 8, 7, .98) 0%, rgba(3, 8, 7, .88) 28%, rgba(3, 8, 7, .46) 64%, transparent 100%);
}

/* The moving veil belongs to the scrolling content, not the fixed hero. */
.hero.section-screen::after {
  display: none;
}

.content-cover {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(185, 255, 22, .24);
  border-radius: clamp(26px, 3vw, 52px) clamp(26px, 3vw, 52px) 0 0;
  background:
    radial-gradient(1100px 820px at 12% 8%, rgba(0, 105, 89, .22), transparent 72%),
    radial-gradient(1200px 860px at 88% 32%, rgba(45, 24, 105, .2), transparent 74%),
    linear-gradient(135deg, #041211 0%, #03100f 34%, #050914 68%, #090515 100%);
  box-shadow: 0 -22px 64px rgba(0, 0, 0, .34);
}

.content-cover > section {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 7;
  width: var(--page);
  margin: 0 auto;
  padding-top: 0;
  text-align: left;
  transform: translateY(-18px);
}

.hero-kicker,
.section-label,
.tiny-label {
  margin: 0;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-title {
  max-width: 820px;
  margin: 22px 0 18px;
  color: #fbfff7;
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 12px 42px rgba(0, 0, 0, .46);
}

.hero-title span {
  display: block;
}

.title-main,
.title-sub {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.title-main {
  color: var(--lime);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 96px;
  line-height: .88;
  text-transform: uppercase;
}

.title-sub {
  margin-top: 4px;
  color: rgba(250, 252, 246, .96);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 58px;
  line-height: .92;
  text-transform: uppercase;
}

.title-sign {
  position: absolute;
  right: -60px;
  bottom: 3px;
  color: var(--lime-soft);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 14px rgba(185, 255, 22, .42);
  transform: rotate(-9deg);
}

.title-spark {
  position: absolute;
  display: block;
  color: var(--lime);
  filter: drop-shadow(0 0 14px rgba(185, 255, 22, .58));
}

.title-spark::before,
.title-spark::after {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.title-spark::after {
  transform: rotate(45deg) scale(.54);
}

.spark-large {
  top: 4px;
  right: -78px;
  width: 58px;
  height: 58px;
}

.spark-small {
  top: 62px;
  right: -104px;
  width: 31px;
  height: 31px;
}

.hero-subtitle {
  max-width: 520px;
  margin: 0;
  color: rgba(243, 247, 240, .78);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .42);
}

/* Scale the complete hero lockup on desktop while preserving its existing anchor. */
@media (min-width: 981px) {
  .hero-kicker {
    font-size: clamp(15px, calc(13px + .2vw), 17px);
  }

  .hero-title {
    max-width: 1100px;
    margin: clamp(26px, calc(22px + .4vw), 30px) 0 clamp(21px, calc(18px + .3vw), 24px);
  }

  .title-main {
    font-size: clamp(112px, calc(95px + 1.7vw), 130px);
  }

  .title-sub {
    margin-top: clamp(5px, .3vw, 6px);
    font-size: clamp(66px, calc(55px + 1.13vw), 78px);
  }

  .title-sign {
    right: clamp(-81px, calc(-40px - 2vw), -60px);
    bottom: clamp(3px, .2vw, 4px);
    font-size: clamp(29px, calc(24px + .5vw), 34px);
  }

  .spark-large {
    top: clamp(4px, .25vw, 5px);
    right: clamp(-105px, calc(-56px - 2.4vw), -80px);
    width: clamp(67px, calc(57px + 1vw), 78px);
    height: clamp(67px, calc(57px + 1vw), 78px);
  }

  .spark-small {
    top: clamp(72px, calc(61px + 1.1vw), 84px);
    right: clamp(-140px, calc(-74px - 3.2vw), -107px);
    width: clamp(36px, calc(30px + .6vw), 42px);
    height: clamp(36px, calc(30px + .6vw), 42px);
  }

  .hero-subtitle {
    max-width: 700px;
    font-size: clamp(21px, calc(18px + .3vw), 24px);
  }
}

.hero-carousel {
  display: none;
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 0 28px;
  will-change: transform;
}

.carousel-track.is-ready {
  animation: carousel-move 34s linear infinite;
}

.hero-carousel:hover .carousel-track,
.hero-carousel:focus-within .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--scroll-distance, 50%) * -1)); }
}

.carousel-card {
  flex: 0 0 174px;
  width: 174px;
  height: 210px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
  cursor: pointer;
  transform: rotate(-2deg);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.carousel-card:nth-child(2n) {
  transform: rotate(1.4deg);
}

.carousel-card:hover,
.carousel-card:focus-visible {
  border-color: var(--lime);
  outline: none;
  transform: translateY(-12px) rotate(0);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  display: flex;
  width: var(--section-page);
  margin: 0 auto 56px;
  align-items: end;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: rgba(243, 247, 240, .55);
  font-size: 25px;
  font-weight: 800;
}

.section-label {
  color: var(--ink);
  font-size: 46px;
  line-height: 1;
}

.section-label > span:not(.shiny-text) {
  color: var(--lime);
}

.shiny-text {
  --shiny-base: #f3f7f0;
  --shiny-light: #ffffff;
  --shiny-angle: 120deg;
  --shiny-speed: 2.6s;
  display: inline-block;
  color: var(--shiny-base);
  background-image:
    linear-gradient(
      var(--shiny-angle),
      var(--shiny-base) 0%,
      var(--shiny-base) 32%,
      rgba(255, 255, 255, .78) 43%,
      var(--shiny-light) 50%,
      rgba(255, 255, 255, .82) 57%,
      var(--shiny-base) 68%,
      var(--shiny-base) 100%
    );
  background-size: 220% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-text-sweep var(--shiny-speed) linear infinite;
  will-change: background-position;
}

.section-shine {
  --shiny-speed: 2.4s;
  --shiny-base: #f3f7f0;
  --shiny-light: #ffffff;
  text-shadow: 0 0 22px rgba(255, 255, 255, .04);
}

.profile-shine {
  --shiny-speed: 2.9s;
  --shiny-base: #f7fbf4;
  --shiny-light: #ffffff;
  animation-delay: .34s;
}

.shiny-text:hover {
  animation-duration: 1.85s;
}

@keyframes shiny-text-sweep {
  0% {
    background-position: 150% center;
  }
  62% {
    background-position: -55% center;
  }
  100% {
    background-position: -55% center;
  }
}

.works,
.experience,
.portfolio-categories,
.strengths,
.contact {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

.works {
  overflow: visible;
  isolation: isolate;
}

.works::after {
  position: absolute;
  z-index: 0;
  inset: -260px 0 -320px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 16% 42%, rgba(0, 105, 89, .22), transparent 76%),
    radial-gradient(1180px 740px at 82% 48%, rgba(45, 24, 105, .22), transparent 78%),
    radial-gradient(880px 620px at 50% 56%, rgba(20, 67, 74, .16), transparent 76%),
    linear-gradient(135deg, rgba(4, 18, 17, .26) 0%, rgba(3, 16, 15, .2) 34%, rgba(5, 9, 20, .22) 68%, rgba(9, 5, 21, .18) 100%);
  opacity: .86;
}

.works::before,
.experience::before,
.portfolio-categories::before,
.strengths::before,
.contact::before {
  display: none;
}

.works .section-heading,
.works .works-3d {
  position: relative;
  z-index: 1;
}

.work-masonry {
  position: relative;
  z-index: 1;
  width: var(--section-page);
  margin: 0 auto;
  column-count: 5;
  column-gap: 22px;
}

.work-card {
  min-width: 0;
}

.masonry-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
}

.masonry-card:nth-child(5n + 2) { margin-top: 34px; }
.masonry-card:nth-child(5n + 4) { margin-top: 58px; }
.masonry-card:nth-child(5n + 5) { margin-top: 16px; }

.masonry-sentinel {
  display: block;
  width: 100%;
  height: 1px;
}

.work-card button {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .13);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}

.work-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(.78) saturate(.96);
  transition: transform .6s var(--ease), filter .35s var(--ease);
}

.work-card:hover button,
.work-card:focus-within button {
  border-color: rgba(185, 255, 22, .48);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34), 0 0 28px rgba(185, 255, 22, .1);
  transform: translateY(-8px);
}

.work-card:hover img,
.work-card:focus-within img {
  filter: brightness(.9) saturate(1.08);
  transform: scale(1.045);
}

.work-card button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .18) 46%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%);
}

.card-title,
.work-card small {
  position: absolute;
  left: 28px;
  z-index: 1;
}

.card-title {
  right: 22px;
  bottom: 45px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.work-card small {
  right: 22px;
  bottom: 21px;
  color: rgba(243, 247, 240, .7);
  font-size: 12px;
}

.works-3d {
  --card-w: clamp(280px, 33vw, 500px);
  --card-ratio: 1.18;
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: min(100vh, 760px);
  height: clamp(560px, 78vh, 760px);
  margin: -28px 0 -52px;
  overflow: hidden;
  color: #fff;
  background: transparent;
  transform: translateX(-50%);
  user-select: none;
  touch-action: pan-y;
}

.works-3d.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.works-3d.is-zoom-open,
.works-3d.is-zoom-open .works-3d-viewport {
  overflow: visible;
}

.works-3d-viewport {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1450px;
  perspective-origin: 50% 50%;
  cursor: grab;
  outline: none;
}

.works-3d-cursor {
  --cursor-x: 50%;
  --cursor-y: 50%;
  position: absolute;
  z-index: 2000;
  top: 0;
  left: 0;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(185, 255, 22, .54);
  border-radius: 50%;
  color: rgba(246, 255, 238, .94);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .12), transparent 42%),
    rgba(4, 14, 12, .58);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, .3),
    0 0 24px rgba(185, 255, 22, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  opacity: 0;
  pointer-events: none;
  scale: .78;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    scale 260ms cubic-bezier(.2, .8, .2, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform, opacity;
}

.works-3d.is-cursor-visible .works-3d-cursor {
  opacity: 1;
  scale: 1;
}

.works-3d.is-cursor-pressed .works-3d-cursor {
  border-color: rgba(185, 255, 22, .9);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .36),
    0 0 30px rgba(185, 255, 22, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .1);
  scale: .88;
}

.works-3d-cursor-drag,
.works-3d-cursor-view {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 150ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.works-3d-cursor-drag {
  gap: 5px;
}

.works-3d-cursor i {
  color: var(--lime);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.works-3d-cursor b,
.works-3d-cursor-view {
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

.works-3d-cursor-view {
  opacity: 0;
  transform: scale(.72);
}

.works-3d-cursor[data-mode="view"] .works-3d-cursor-drag {
  opacity: 0;
  transform: scale(.72);
}

.works-3d-cursor[data-mode="view"] .works-3d-cursor-view {
  opacity: 1;
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .works-3d.is-cursor-visible:not(.is-zoom-open),
  .works-3d.is-cursor-visible:not(.is-zoom-open) .works-3d-viewport,
  .works-3d.is-cursor-visible:not(.is-zoom-open) .works-3d-card {
    cursor: none;
  }
}

.works-3d.is-dragging .works-3d-viewport {
  cursor: grabbing;
}

.works-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.works-3d-card {
  --shine-opacity: 0;
  --shine-x: 50%;
  --shine-y: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-width, var(--card-w));
  max-width: 86vw;
  max-height: min(78vh, 640px);
  aspect-ratio: var(--image-ratio, var(--card-ratio));
  padding: 0;
  border: 0;
  overflow: visible;
  border-radius: 10px;
  background: #050706;
  color: #fff;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.works-3d-card.is-zoomed {
  z-index: 9999 !important;
  border-radius: 0;
  background: transparent;
}

.works-3d.is-animating .works-3d-card,
.works-3d.is-settling .works-3d-card {
  transition:
    transform 580ms cubic-bezier(.22, 1, .36, 1),
    opacity 580ms cubic-bezier(.22, 1, .36, 1);
}

.works-3d-card::before {
  position: absolute;
  z-index: -1;
  inset: -10% -12% -14%;
  content: "";
  border-radius: 18px;
  background: var(--card-glow);
  filter: blur(var(--glow-blur, 24px));
  opacity: var(--glow-opacity, .42);
  transform: translate3d(0, 12px, -1px) scale(var(--glow-scale, 1));
  transition: opacity 580ms cubic-bezier(.22, 1, .36, 1), transform 580ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.works-3d-card::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .32);
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, .34), transparent 25%),
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 38%, rgba(185, 255, 22, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 0 rgba(185, 255, 22, 0);
  opacity: var(--shine-opacity);
  transition: opacity .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  pointer-events: none;
}

.works-3d-card.is-hovered::after,
.works-3d-card:hover::after {
  border-color: rgba(185, 255, 22, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 24px rgba(185, 255, 22, .12);
  opacity: 1;
}

.works-3d-card.is-zoomed::before,
.works-3d-card.is-zoomed::after,
.works-3d-card.is-zoomed:hover::before,
.works-3d-card.is-zoomed:hover::after {
  opacity: 0;
}

.works-3d-card:focus-visible {
  outline: 2px solid rgba(185, 255, 22, .9);
  outline-offset: 8px;
}

.works-3d-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  border-radius: inherit;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .32s var(--ease);
}

.works-3d-card.is-hovered img,
.works-3d-card:hover img {
  filter: saturate(1.08) brightness(1.04);
}

.works-3d-card.is-zoomed img,
.works-3d-card[data-active="true"].is-zoomed img,
.works-3d-card.is-zoomed:hover img {
  transform: scale(1);
  filter: saturate(1.08) brightness(1.04);
}

.portfolio-categories {
  overflow: visible;
  padding-top: 70px;
  padding-bottom: 132px;
}

.category-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--section-page);
  min-height: 660px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(400px, .86fr) minmax(680px, 1.14fr);
  gap: clamp(64px, 8vw, 160px);
}

.category-copy {
  max-width: 680px;
}

.category-copy h2 {
  max-width: 680px;
  margin: 22px 0 24px;
  color: var(--ink);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(46px, 5.4vw, 84px);
  line-height: 1.12;
  letter-spacing: 0;
}

.category-copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(243, 247, 240, .68);
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 500;
  line-height: 1.55;
}

.category-swap {
  position: relative;
  min-height: 600px;
  perspective: 980px;
  transform-style: preserve-3d;
  overflow: visible;
  isolation: isolate;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
}

.category-swap::before {
  position: absolute;
  inset: 6% -8% 2% 10%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 52%, rgba(185, 255, 22, .2), transparent 34%),
    radial-gradient(circle at 52% 44%, rgba(112, 86, 255, .16), transparent 42%);
  filter: blur(28px);
  opacity: .72;
}

.category-card {
  position: absolute;
  top: 50%;
  left: 52%;
  display: grid;
  width: clamp(420px, 34vw, 640px);
  height: clamp(330px, 27vw, 500px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .22);
  border-radius: 14px;
  background: rgba(5, 10, 10, .82);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 26px 86px rgba(0, 0, 0, .36),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
  transition:
    top .38s cubic-bezier(.22, 1, .36, 1),
    left .38s cubic-bezier(.22, 1, .36, 1),
    width .38s cubic-bezier(.22, 1, .36, 1),
    height .38s cubic-bezier(.22, 1, .36, 1),
    transform .38s cubic-bezier(.22, 1, .36, 1),
    opacity .3s cubic-bezier(.22, 1, .36, 1),
    border-color .28s var(--ease),
    box-shadow .28s var(--ease);
}

.category-card::before,
.category-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.category-card::before {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(1, 5, 5, .88) 0%, rgba(1, 5, 5, .42) 46%, rgba(1, 5, 5, .08) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 32%, rgba(185, 255, 22, .08));
}

.category-card::after {
  z-index: 2;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  opacity: .86;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) brightness(.76);
  transform: scale(1.02);
  transition: transform .8s var(--ease), filter .32s var(--ease);
}

.category-card span,
.category-card small,
.category-card strong {
  position: relative;
  z-index: 3;
  margin-left: 30px;
  margin-right: 30px;
}

.category-card span {
  align-self: start;
  justify-self: start;
  display: inline-grid;
  min-width: 46px;
  height: 28px;
  margin-top: 28px;
  place-items: center;
  border-radius: 999px;
  color: #061006;
  background: var(--category-accent, var(--lime));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 22px color-mix(in srgb, var(--category-accent, var(--lime)) 38%, transparent);
}

.category-card small {
  align-self: end;
  margin-bottom: 4px;
  color: var(--category-accent, var(--lime));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.category-card strong {
  align-self: start;
  margin-bottom: 30px;
  color: #fff;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.category-card[data-slot="0"] {
  z-index: 4;
  opacity: 1;
  transform: translate3d(calc(-50% + var(--category-drag-x, 0px)), calc(-50% + var(--category-drag-y, 0px)), 0) rotateY(calc(-7deg + var(--category-drag-tilt, 0deg))) skewY(-3deg);
}

.category-card[data-slot="1"] {
  z-index: 3;
  opacity: .74;
  transform: translate3d(calc(-50% + 58px), calc(-50% - 62px), -90px) rotateY(-7deg) skewY(-3deg) scale(.94);
}

.category-card[data-slot="2"] {
  z-index: 2;
  opacity: .48;
  transform: translate3d(calc(-50% + 116px), calc(-50% - 124px), -180px) rotateY(-7deg) skewY(-3deg) scale(.88);
}

.category-card[data-slot="3"] {
  z-index: 1;
  opacity: .26;
  transform: translate3d(calc(-50% + 174px), calc(-50% - 186px), -270px) rotateY(-7deg) skewY(-3deg) scale(.82);
}

.category-card.is-dropping {
  z-index: 5;
  opacity: .12;
  transform: translate3d(calc(-50% + 12px), calc(-50% + 430px), -70px) rotateY(-7deg) skewY(-3deg) scale(.9);
  transition:
    transform 650ms cubic-bezier(.42, 0, .28, 1),
    opacity 520ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(185, 255, 22, .58);
  outline: none;
  box-shadow:
    0 34px 96px rgba(0, 0, 0, .44),
    0 0 38px rgba(185, 255, 22, .13),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.category-card:hover img,
.category-card:focus-visible img {
  filter: saturate(1.08) brightness(.88);
  transform: scale(1.065);
}

.category-swap.is-grid {
  perspective: none;
}

.category-swap.is-grid .category-card {
  top: 0;
  left: 0;
  z-index: 3;
  width: calc((100% - 28px) / 2);
  height: calc((100% - 28px) / 2);
  opacity: 1;
  border-color: rgba(236, 255, 226, .2);
  border-radius: 18px;
  transform: translate3d(0, 0, 0);
}

.category-swap.is-grid .category-card[data-category-index="1"] {
  left: calc(50% + 14px);
}

.category-swap.is-grid .category-card[data-category-index="2"] {
  top: calc(50% + 14px);
}

.category-swap.is-grid .category-card[data-category-index="3"] {
  top: calc(50% + 14px);
  left: calc(50% + 14px);
}

.category-swap.is-grid .category-card::after {
  inset: 12px;
  border-radius: 13px;
}

.category-swap.is-grid .category-card small {
  font-size: 11px;
}

.category-swap.is-grid .category-card strong {
  font-size: clamp(24px, 2.1vw, 34px);
}

.category-swap.is-grid .category-card:hover,
.category-swap.is-grid .category-card:focus-visible {
  z-index: 12;
  transform: scale(1.045);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, .48),
    0 0 44px rgba(185, 255, 22, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .13);
}

.category-detail-page .site-header {
  margin-bottom: 0;
}

.detail-page-main {
  min-height: 100vh;
}

.category-detail {
  width: var(--section-page);
  margin: 0 auto;
  padding: 168px 0 132px;
}

.detail-header {
  display: grid;
  margin-bottom: 64px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.detail-kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.category-detail h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(58px, 7vw, 118px);
  line-height: 1.04;
  letter-spacing: 0;
}

.detail-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(243, 247, 240, .68);
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.72;
}

.detail-back {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(185, 255, 22, .34);
  border-radius: 999px;
  color: #061006;
  background: var(--lime);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(185, 255, 22, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.detail-back:hover,
.detail-back:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 0 42px rgba(185, 255, 22, .28);
}

.detail-gallery {
  column-count: 4;
  column-gap: 24px;
}

.detail-work-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .14);
  border-radius: 14px;
  background: rgba(6, 14, 13, .72);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  break-inside: avoid;
  transform: translateZ(0);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}

.detail-work-card:hover {
  border-color: rgba(185, 255, 22, .5);
  box-shadow: 0 34px 92px rgba(0, 0, 0, .36), 0 0 34px rgba(185, 255, 22, .1);
  transform: translateY(-8px);
}

.detail-work-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, .03);
}

.detail-work-card figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(243, 247, 240, .82);
  background: rgba(2, 8, 8, .54);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.works-3d-card[data-active="false"] .works-card-content {
  opacity: 0;
}

.works-card-top {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  pointer-events: none;
}

.works-card-top svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: .9;
}

.works-card-content {
  position: absolute;
  inset: 17% 12% 13%;
  z-index: 1;
  display: grid;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 14px rgba(255, 255, 255, .08);
  backdrop-filter: blur(9px);
  opacity: var(--content-opacity, 1);
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}

.ui-label {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.2;
}

.ui-input,
.ui-context,
.ui-row,
.ui-app,
.ui-cell,
.ui-config {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
}

.ui-input,
.ui-context {
  min-height: 36px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  line-height: 1.38;
}

.ui-context {
  min-height: 52px;
  color: rgba(255, 255, 255, .58);
}

.ui-form {
  display: grid;
  gap: 9px;
}

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

.ui-app {
  display: grid;
  min-height: 66px;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
}

.ui-app i,
.ui-dot {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .2);
}

.ui-row {
  display: grid;
  min-height: 37px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
}

.ui-row small,
.ui-cell small,
.ui-config small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .54);
  font-size: 9px;
}

.ui-pill {
  display: inline-flex;
  min-width: 48px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .82);
  font-size: 9px;
}

.ui-table {
  display: grid;
  gap: 8px;
}

.ui-vuln {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 10px;
}

.ui-cell,
.ui-config {
  min-height: 44px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
}

.ui-config {
  display: grid;
  align-content: center;
  gap: 7px;
}

.ui-meter {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.ui-meter i {
  display: block;
  width: var(--value, 50%);
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, .7);
}

.profile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--section-page);
  margin: 0 auto;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: 48px;
  align-items: start;
}

.profile-portrait {
  position: relative;
  z-index: 1;
  --lanyard-x: 0px;
  --lanyard-y: 0px;
  --lanyard-rot: 0deg;
  --lanyard-height: 610px;
  margin: 0;
  display: flex;
  height: var(--lanyard-height);
  min-height: 520px;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  perspective: 900px;
  user-select: none;
}

.lanyard-swing {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  cursor: grab;
  touch-action: none;
  transform: translate3d(var(--lanyard-x), var(--lanyard-y), 0) rotate(var(--lanyard-rot));
  transform-origin: 50% 0;
  will-change: transform;
}

.lanyard-profile.is-dragging .lanyard-swing {
  cursor: grabbing;
}

.lanyard-strap {
  position: relative;
  z-index: 7;
  display: flex;
  width: min(100%, 340px);
  height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.lanyard-strap:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 8px;
}

.lanyard-strap::before,
.lanyard-strap::after {
  position: absolute;
  top: 50%;
  width: 120px;
  height: 18px;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle at 52% 50%, rgba(230, 255, 148, .95), transparent 18%),
    linear-gradient(90deg, rgba(79, 122, 0, .8), var(--lime) 54%, rgba(63, 96, 0, .88));
  box-shadow: 0 0 24px rgba(185, 255, 22, .34);
  transform: translateY(-50%);
}

.lanyard-strap::before {
  left: 0;
}

.lanyard-strap::after {
  right: 0;
}

.lanyard-strap img {
  position: relative;
  z-index: 2;
  width: 96px;
  height: auto;
  padding: 8px 19px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 26px rgba(185, 255, 22, .42);
  opacity: 1;
  filter: brightness(0);
  transform: none;
}

.lanyard-ring {
  position: relative;
  z-index: 9;
  width: 72px;
  height: 56px;
  flex: 0 0 auto;
  margin-top: -72px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 13px 13px 16px 16px;
  background:
    radial-gradient(circle at 36% 18%, rgba(255, 255, 255, .52), transparent 22px),
    linear-gradient(145deg, #d9e1d5 0%, #879085 48%, #d4ddd1 100%);
  box-shadow:
    0 15px 24px rgba(0, 0, 0, .34),
    inset 0 1px 3px rgba(255, 255, 255, .62);
}

.lanyard-ring::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  height: 21px;
  content: "";
  border: 6px solid rgba(38, 48, 43, .9);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.lanyard-hook {
  display: none;
}

.lanyard-hook::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 28px;
  content: "";
  border-radius: 9px 9px 12px 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .42), transparent 16px),
    linear-gradient(145deg, #1c211d, #010201 68%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: translateX(-50%);
}

.lanyard-hook i {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 22px;
  height: 52px;
  border: 9px solid #030403;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 18px 0;
  box-shadow: 5px 3px 0 rgba(255, 255, 255, .07) inset, 0 10px 16px rgba(0, 0, 0, .42);
  transform: translateX(-50%) rotate(4deg);
}

.lanyard-card {
  position: relative;
  width: min(100%, 360px);
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 34px 88px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.lanyard-card::after {
  display: none;
}

.lanyard-hole {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 50%;
  width: 64px;
  height: 18px;
  border-radius: 999px;
  background: #050805;
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, .22), 0 0 0 7px rgba(255, 255, 255, .9);
  transform: translateX(-50%);
}

.lanyard-card img {
  width: 100%;
  height: calc(100% - 52px);
  margin-top: 52px;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

.profile-info {
  position: relative;
  z-index: 6;
  padding: 8px 0 0;
}

.profile-info h3 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: 44px;
  line-height: 1.06;
}

.profile-summary {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(243, 247, 240, .72);
  font-size: 14px;
  line-height: 1.65;
}

.info-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-lines div {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(236, 255, 226, .08);
}

.info-lines span {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.info-lines strong {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 17px;
}

.metrics {
  display: grid;
  margin: 18px 0 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.metrics strong {
  display: block;
  color: var(--lime);
  font-size: 34px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 7px;
  color: rgba(243, 247, 240, .55);
  font-size: 12px;
}

.skill-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  isolation: isolate;
}

.skill-card {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(236, 255, 226, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  cursor: default;
  transform-origin: 50% 50%;
  transition:
    transform .28s var(--ease),
    border-color .28s var(--ease),
    background-color .28s var(--ease),
    box-shadow .28s var(--ease),
    opacity .28s var(--ease);
}

.skill-board:has(.skill-card:hover) .skill-card:not(:hover),
.skill-board:has(.skill-card:focus-visible) .skill-card:not(:focus-visible) {
  opacity: .54;
}

.skill-card:hover,
.skill-card:focus-visible {
  z-index: 5;
  border-color: rgba(185, 255, 22, .72);
  outline: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(185, 255, 22, .18), transparent 36%),
    rgba(13, 24, 20, .92);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .36),
    0 0 24px rgba(185, 255, 22, .18);
  transform: translateY(-8px) scale(1.06);
}

.skill-card:hover .skill-icon,
.skill-card:focus-visible .skill-icon {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .34),
    0 12px 28px rgba(0, 0, 0, .32),
    0 0 18px rgba(185, 255, 22, .26);
  transform: scale(1.04);
}

.skill-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .24);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.skill-icon.c4d { background: linear-gradient(135deg, #111b43, #5966ff); }
.skill-icon.rs { background: linear-gradient(135deg, #36111a, #e42d3f); }
.skill-icon.rh { background: linear-gradient(135deg, #101010, #5f6871); }
.skill-icon.ps { background: linear-gradient(135deg, #001d34, #19a8ff); }
.skill-icon.ae { background: linear-gradient(135deg, #1d0f3f, #b067ff); }
.skill-icon.ai { color: #061006; background: linear-gradient(135deg, var(--lime), #e8ff9a); }

.skill-card h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
}

.skill-card p {
  margin: 0;
  color: rgba(243, 247, 240, .62);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  line-height: 1.35;
}

.skill-card i {
  position: relative;
  display: block;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.skill-card i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level, 72%);
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), rgba(112, 86, 255, .95));
}

.career-path {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--section-page);
  margin: 94px auto 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  border-top: 1px solid rgba(185, 255, 22, .45);
}

.career-path article {
  position: relative;
  z-index: 1;
  margin: 0 -14px;
  padding: 38px 14px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transform-origin: 50% 0;
  transition:
    transform .34s var(--ease),
    background-color .34s var(--ease),
    border-color .34s var(--ease),
    box-shadow .34s var(--ease),
    opacity .34s var(--ease);
}

.career-path:has(article:hover) article:not(:hover) {
  opacity: .42;
}

.career-path article:hover,
.career-path article:focus-within {
  z-index: 8;
  border-color: rgba(185, 255, 22, .42);
  background:
    radial-gradient(circle at 12% 12%, rgba(185, 255, 22, .16), transparent 32%),
    rgba(9, 19, 16, .9);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .44),
    0 0 34px rgba(185, 255, 22, .13);
  opacity: 1;
  transform: translateY(-12px) scale(1.08);
}

.career-path article:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.career-path article::before {
  position: absolute;
  top: -8px;
  left: 14px;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--lime);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 12px rgba(185, 255, 22, .8));
  transition: transform .34s var(--ease), filter .34s var(--ease);
}

.career-path article:hover::before,
.career-path article:focus-within::before {
  filter: drop-shadow(0 0 20px rgba(185, 255, 22, 1));
  transform: scale(1.25) rotate(45deg);
}

.career-path time {
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  transition: color .34s var(--ease), text-shadow .34s var(--ease);
}

.career-path h4 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  transition: color .34s var(--ease), transform .34s var(--ease);
}

.career-path h4 span {
  display: block;
  margin-top: 4px;
  color: rgba(243, 247, 240, .78);
  font-size: 15px;
}

.career-path p,
.career-path ul {
  margin: 0;
  color: rgba(243, 247, 240, .65);
  font-size: 14px;
  line-height: 1.8;
  transition: color .34s var(--ease);
}

.career-path article:hover time,
.career-path article:focus-within time {
  color: #d8ff63;
  text-shadow: 0 0 18px rgba(185, 255, 22, .42);
}

.career-path article:hover h4,
.career-path article:focus-within h4 {
  color: #fff;
  transform: translateY(-2px);
}

.career-path article:hover h4 span,
.career-path article:focus-within h4 span,
.career-path article:hover p,
.career-path article:focus-within p,
.career-path article:hover ul,
.career-path article:focus-within ul {
  color: rgba(243, 247, 240, .86);
}

.career-path ul {
  padding-left: 1.1em;
}

.career-path li + li {
  margin-top: 4px;
}

.strength-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--section-page);
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.strength-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(236, 255, 226, .14);
  border-radius: 8px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, .24);
}

.strength-card:nth-child(1) {
  grid-column: span 3;
}

.strength-card:nth-child(2) {
  grid-column: span 3;
}

.strength-card:nth-child(n + 3) {
  grid-column: span 2;
}

.dark-card {
  background: rgba(3, 9, 11, .76);
}

.lime-card {
  color: #071107;
  background: var(--lime);
}

.strength-card span {
  display: inline-grid;
  min-width: 42px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #071107;
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.lime-card span {
  color: var(--lime);
  background: rgba(7, 17, 7, .84);
}

.strength-card small {
  position: absolute;
  top: 31px;
  right: 30px;
  color: rgba(243, 247, 240, .54);
  font-size: 11px;
  font-weight: 800;
}

.lime-card small {
  color: rgba(7, 17, 7, .58);
}

.strength-card h3 {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 54px 0 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.22;
}

.lime-card h3 {
  color: #071107;
}

.lime-card p {
  max-width: 470px;
  margin: 22px 0 0;
  color: rgba(7, 17, 7, .68);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.strength-card i {
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 128px;
  height: 82px;
  opacity: .78;
  background:
    linear-gradient(135deg, rgba(185, 255, 22, .88), rgba(112, 86, 255, .76));
  clip-path: polygon(12% 44%, 36% 18%, 55% 42%, 78% 14%, 91% 36%, 70% 68%, 46% 52%, 25% 78%);
  filter: drop-shadow(0 0 22px rgba(185, 255, 22, .25));
}

.contact {
  display: grid;
  width: var(--section-page);
  margin: 0 auto;
  min-height: 720px;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 86px;
  align-items: center;
  background: transparent;
}

.contact-copy,
.contact-card {
  position: relative;
  z-index: 1;
}

.contact-copy p {
  margin: 0 0 12px;
  color: rgba(243, 247, 240, .62);
  font-size: 18px;
  font-weight: 800;
}

.contact h2 {
  max-width: 860px;
  margin: 0 0 34px;
  color: #fff;
  font-size: 72px;
  line-height: 1.08;
}

.contact h2 span {
  color: var(--lime);
}

.footer-logo {
  width: max-content;
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(236, 255, 226, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.contact-card h3 {
  margin: 0 0 24px;
  color: var(--lime);
  font-size: 18px;
}

.contact-card dl {
  margin: 0;
}

.contact-card dl div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(236, 255, 226, .12);
}

.contact-card dt,
.contact-card dd {
  margin: 0;
  min-width: 0;
  color: rgba(243, 247, 240, .72);
  font-size: 15px;
}

.contact-card dd {
  overflow-wrap: anywhere;
}

.contact-card p {
  margin: 28px 0 18px;
  color: rgba(243, 247, 240, .56);
  font-size: 13px;
  font-weight: 800;
}

.contact-card img {
  width: 180px;
  height: 180px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
}

.case-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: #050908;
}

.case-dialog::backdrop {
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px);
}

.case-shell {
  min-height: 100%;
}

.case-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  min-height: 76px;
  padding: 0 34px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 8, .93);
  backdrop-filter: blur(18px);
  grid-template-columns: 1fr auto 1fr;
}

.case-logo img {
  width: 110px;
  height: 32px;
  object-fit: contain;
  filter: invert(1);
}

.case-counter {
  color: var(--muted);
  font-size: 13px;
}

.case-close {
  justify-self: end;
  padding: 9px 0 9px 20px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
}

.case-close span {
  margin-left: 12px;
  color: var(--lime);
  font-size: 26px;
  line-height: 0;
  vertical-align: -3px;
}

.case-body {
  display: grid;
  min-height: calc(100dvh - 76px);
  grid-template-columns: minmax(290px, 31%) 1fr;
}

.case-info {
  padding: 70px 44px;
  border-right: 1px solid var(--line);
}

.case-category {
  margin: 0 0 22px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.case-info h2 {
  max-width: 420px;
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
}

.case-description {
  max-width: 410px;
  margin: 38px 0;
  color: rgba(243, 247, 240, .68);
  font-size: 15px;
  line-height: 1.85;
}

.case-info dl {
  margin: 0;
}

.case-info dl div {
  display: grid;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 74px 1fr;
}

.case-info dt,
.case-info dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.case-info dt {
  color: var(--dim);
}

.case-viewer {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 46px;
  flex-direction: column;
  justify-content: center;
  background: #0b1110;
}

.case-stage {
  position: relative;
  display: grid;
  min-height: min(66vh, 760px);
  place-items: center;
  overflow: hidden;
  outline: none;
  border-radius: 8px;
  background: #030504;
}

.case-stage img,
.case-stage video {
  width: 100%;
  height: min(66vh, 760px);
  object-fit: contain;
}

.case-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
  transform: translateY(-50%);
}

.case-arrow:hover,
.case-arrow:focus-visible {
  color: #061006;
  border-color: var(--lime);
  outline: none;
  background: var(--lime);
}

.case-prev { left: 62px; }
.case-next { right: 62px; }

.case-progress {
  height: 2px;
  margin-top: 18px;
  background: rgba(255, 255, 255, .12);
}

.case-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width .35s var(--ease);
}

.case-thumbnails {
  display: flex;
  margin-top: 16px;
  gap: 9px;
  overflow-x: auto;
  scrollbar-color: var(--lime) transparent;
}

.case-thumb {
  flex: 0 0 78px;
  width: 78px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #15201d;
  cursor: pointer;
  opacity: .48;
}

.case-thumb:hover,
.case-thumb.is-active,
.case-thumb:focus-visible {
  border-color: var(--lime);
  outline: none;
  opacity: 1;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-thumb-video {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--lime);
  font-size: 20px;
}

.noscript {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  color: #061006;
  background: var(--lime);
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 46px, 760px);
    --section-page: min(100% - 46px, 760px);
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 840px;
    min-height: max(840px, 100svh);
    min-height: max(840px, 100dvh);
  }

  .title-main {
    font-size: 74px;
  }

  .title-sub {
    font-size: 46px;
  }

  .title-sign {
    right: -42px;
    font-size: 21px;
  }

  .spark-large {
    right: -58px;
    width: 43px;
    height: 43px;
  }

  .spark-small {
    top: 50px;
    right: -78px;
    width: 24px;
    height: 24px;
  }

  .hero-subtitle {
    max-width: 560px;
    font-size: 17px;
  }

  .carousel-card {
    flex-basis: 148px;
    width: 148px;
    height: 180px;
  }

  .profile-grid,
  .career-path,
  .strength-grid,
  .contact,
  .case-body {
    grid-template-columns: 1fr;
  }

  .work-masonry {
    column-count: 3;
  }

  .works-3d {
    --card-w: clamp(270px, 72vw, 430px);
    height: 620px;
    min-height: 620px;
  }

  .category-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .category-copy {
    max-width: 720px;
  }

  .category-copy h2 {
    max-width: 720px;
  }

  .category-swap {
    min-height: 520px;
  }

  .category-card {
    left: 44%;
    width: min(76vw, 470px);
    height: min(62vw, 380px);
  }

  .category-detail {
    padding-top: 138px;
  }

  .detail-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail-gallery {
    column-count: 2;
  }

  .strength-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .masonry-card {
    transform: none;
    margin-top: 0;
  }

  .masonry-card:nth-child(n) {
    margin-top: 0;
  }

  .profile-grid {
    gap: 36px;
  }

  .profile-portrait {
    max-width: 430px;
  }

  .career-path {
    gap: 0;
    border-top: 0;
  }

  .career-path article {
    padding: 26px 0 26px 28px;
    border-left: 1px solid rgba(185, 255, 22, .45);
  }

  .career-path article:hover,
  .career-path article:focus-within {
    transform: translateY(-8px) scale(1.02);
  }

  .career-path article::before {
    top: 32px;
    left: -8px;
  }

  .case-info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 32px);
    --section-page: calc(100% - 32px);
  }

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand-pill {
    padding-right: 14px;
  }

  .contact-pill {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12px;
  }

  .contact-lanyard {
    margin-right: 24px;
  }

  .contact-lanyard-drop {
    left: calc(50% - 84px);
    width: 168px;
    height: 276px;
    transform-origin: 50% 0;
  }

  .contact-lanyard-strap {
    width: 22px;
    height: 98px;
    height: calc(98px + var(--contact-lanyard-rise));
  }

  .contact-lanyard-clasp {
    top: 80px;
    width: 38px;
    height: 34px;
  }

  .contact-lanyard-badge {
    top: 104px;
    width: 168px;
  }

  .section-pad {
    padding: 86px 0;
  }

  .hero {
    --hero-spotlight-radius: clamp(145px, 46vw, 210px);
    min-height: 760px;
    min-height: max(760px, 100svh);
    min-height: max(760px, 100dvh);
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero-copy {
    padding-top: 24px;
    transform: translateY(-58px);
  }

  .hero-kicker {
    max-width: 240px;
    font-size: 12px;
  }

  .hero-title {
    max-width: 360px;
    line-height: .95;
  }

  .title-main {
    font-size: 52px;
  }

  .title-sub {
    font-size: 32px;
  }

  .title-sign {
    right: -22px;
    bottom: 1px;
    font-size: 16px;
  }

  .spark-large {
    top: 0;
    right: -35px;
    width: 28px;
    height: 28px;
  }

  .spark-small {
    top: 36px;
    right: -50px;
    width: 17px;
    height: 17px;
  }

  .hero-subtitle {
    max-width: 330px;
    font-size: 15px;
  }

  .hero-carousel {
    bottom: 34px;
  }

  .work-masonry {
    column-count: 1;
    column-gap: 0;
  }

  .works-3d {
    --card-w: min(78vw, 340px);
    height: 600px;
    min-height: 600px;
  }

  .portfolio-categories {
    padding-top: 62px;
    padding-bottom: 96px;
  }

  .category-copy h2 {
    margin-top: 18px;
    font-size: 42px;
  }

  .category-copy > p:last-child {
    font-size: 16px;
  }

  .category-swap {
    min-height: 430px;
  }

  .category-card {
    left: 40%;
    width: min(78vw, 330px);
    height: 280px;
    border-radius: 12px;
  }

  .category-card[data-slot="1"] {
    transform: translate3d(calc(-50% + 34px), calc(-50% - 46px), -90px) rotateY(-7deg) skewY(-3deg) scale(.94);
  }

  .category-card[data-slot="2"] {
    transform: translate3d(calc(-50% + 68px), calc(-50% - 92px), -180px) rotateY(-7deg) skewY(-3deg) scale(.88);
  }

  .category-card[data-slot="3"] {
    transform: translate3d(calc(-50% + 102px), calc(-50% - 138px), -270px) rotateY(-7deg) skewY(-3deg) scale(.82);
  }

  .category-card span,
  .category-card small,
  .category-card strong {
    margin-left: 22px;
    margin-right: 22px;
  }

  .category-card span {
    margin-top: 22px;
  }

  .category-card strong {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .category-detail {
    padding-top: 126px;
    padding-bottom: 92px;
  }

  .category-detail h1 {
    font-size: 46px;
  }

  .detail-gallery {
    column-count: 1;
  }

  .works-card-top {
    top: 14px;
    font-size: 10px;
  }

  .works-card-content {
    inset: 18% 10% 12%;
    padding: 10px;
  }

  .ui-grid,
  .ui-vuln {
    gap: 7px;
  }

  .ui-app,
  .ui-row,
  .ui-cell,
  .ui-config,
  .ui-input,
  .ui-context {
    font-size: 9px;
  }

  .masonry-card {
    height: auto;
    transform: none;
    margin-bottom: 18px;
  }

  .masonry-card:nth-child(n) {
    margin-top: 0;
  }

  .masonry-card button {
    height: auto;
    min-height: 0;
  }

  .carousel-track {
    gap: 16px;
    padding: 0 16px;
  }

  .carousel-card {
    flex-basis: 122px;
    width: 122px;
    height: 152px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-label {
    font-size: 36px;
    line-height: 1.1;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .card-title {
    bottom: 56px;
    left: 20px;
    font-size: 25px;
  }

  .work-card small {
    left: 20px;
    right: 20px;
    bottom: 25px;
  }

  .profile-info h3 {
    font-size: 36px;
  }

  .profile-summary {
    font-size: 15px;
  }

  .info-lines,
  .metrics,
  .skill-board {
    grid-template-columns: 1fr;
  }

  .metrics {
    gap: 18px;
  }

  .strength-card {
    min-height: 220px;
    padding: 24px;
  }

  .strength-card small {
    top: 25px;
    right: 24px;
  }

  .strength-card h3 {
    font-size: 27px;
  }

  .contact {
    min-height: 640px;
    gap: 48px;
  }

  .contact h2 {
    font-size: 42px;
  }

  .contact-card {
    padding: 24px;
  }

  .case-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .case-logo img {
    width: 88px;
  }

  .case-info {
    padding: 38px 18px;
  }

  .case-info h2 {
    font-size: 35px;
  }

  .case-viewer {
    padding: 18px;
  }

  .case-stage {
    min-height: 54vh;
  }

  .case-stage img,
  .case-stage video {
    height: 54vh;
  }

  .case-prev {
    left: 28px;
  }

  .case-next {
    right: 28px;
  }
}

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

  .shiny-text {
    background-image: none !important;
    -webkit-text-fill-color: currentColor;
  }

  .works-3d-card,
  .works-3d.is-animating .works-3d-card,
  .works-3d.is-settling .works-3d-card {
    transition-duration: 120ms !important;
  }

  .works-3d-cursor {
    transition-duration: 100ms !important;
  }
}

/* Career dossier */
.experience.section-pad {
  padding: 40px 0 80px;
}

.experience .section-heading {
  width: min(1536px, calc(100% - 144px));
  margin-bottom: 0;
  border-bottom: 1px solid rgba(236, 255, 226, .16);
}

.experience-dossier {
  --career-progress: 0;
  --career-axis-x: 17px;
  --career-card-offset: 38px;
  --career-line-color: rgba(185, 255, 22, .58);
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1536px, calc(100% - 144px));
  margin: 0 auto;
  grid-template-columns: minmax(330px, 386px) minmax(0, 1fr);
  grid-template-areas:
    "identity intro"
    "identity log";
  column-gap: 56px;
  row-gap: 22px;
  align-items: start;
}

.experience-identity {
  position: sticky;
  top: 104px;
  grid-area: identity;
  min-width: 0;
  align-self: start;
}

.experience-dossier .profile-portrait {
  --lanyard-height: 480px;
  width: 100%;
  height: var(--lanyard-height);
  min-height: 0;
}

.experience-dossier .lanyard-swing {
  height: 100%;
}

.experience-dossier .lanyard-strap {
  width: 46px;
  height: 88px;
  flex-basis: 88px;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(90deg, rgba(51, 83, 0, .76), rgba(185, 255, 22, .96) 45%, rgba(108, 157, 0, .88));
  box-shadow:
    0 0 24px rgba(185, 255, 22, .24),
    inset 0 0 0 1px rgba(224, 255, 142, .28);
}

.experience-dossier .lanyard-strap::before,
.experience-dossier .lanyard-strap::after {
  display: none;
}

.experience-dossier .lanyard-strap img {
  width: 66px;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: .38;
  transform: rotate(90deg);
}

.experience-dossier .lanyard-ring {
  width: 54px;
  height: 42px;
  margin-top: -5px;
  border-radius: 9px 9px 12px 12px;
}

.experience-dossier .lanyard-ring::after {
  right: 14px;
  bottom: 10px;
  left: 14px;
  height: 16px;
  border-width: 5px;
  border-bottom: 0;
}

.experience-dossier .lanyard-card {
  width: min(100%, 272px);
  height: 348px;
  flex: 0 0 348px;
  margin-top: -1px;
  border-color: rgba(185, 255, 22, .18);
  border-radius: 17px;
  background: #0b1210;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
}

.experience-dossier .lanyard-hole {
  top: 17px;
  width: 54px;
  height: 14px;
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, .18), 0 0 0 6px rgba(11, 18, 16, .92);
}

.experience-dossier .lanyard-card img {
  height: calc(100% - 42px);
  margin-top: 42px;
}

.identity-meta {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid rgba(236, 255, 226, .12);
}

.identity-line {
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid rgba(236, 255, 226, .12);
  color: var(--ink);
  text-decoration: none;
}

.identity-line p {
  min-width: 0;
  margin: 0;
}

.identity-line strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.identity-name strong {
  font-size: 17px;
}

.identity-line small {
  display: block;
  margin-top: 4px;
  color: rgba(243, 247, 240, .54);
  font-size: 12px;
}

a.identity-line {
  transition: color .24s ease, border-color .24s ease;
}

a.identity-line:hover,
a.identity-line:focus-visible {
  outline: none;
  border-color: rgba(185, 255, 22, .55);
}

.identity-symbol {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  color: var(--lime);
}

.identity-person::before {
  position: absolute;
  top: 1px;
  left: 7px;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.identity-person::after {
  position: absolute;
  bottom: 1px;
  left: 3px;
  width: 17px;
  height: 10px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 12px 12px 2px 2px;
}

.identity-location::before {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 14px;
  height: 18px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 12px 12px 12px 2px;
  transform: rotate(-45deg);
}

.identity-location::after {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 4px;
  height: 4px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.identity-email {
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.identity-email::before,
.identity-email::after {
  position: absolute;
  top: 2px;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
}

.identity-email::before {
  left: 0;
  transform: rotate(34deg);
  transform-origin: left center;
}

.identity-email::after {
  right: 0;
  transform: rotate(-34deg);
  transform-origin: right center;
}

.experience-intro {
  grid-area: intro;
  min-width: 0;
  padding-top: 16px;
}

.experience-intro .tiny-label {
  display: none;
}

.experience-intro h3 {
  max-width: 1060px;
  margin: 9px 0 12px;
  color: var(--ink);
  font-family: "Arial Black", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 3.1vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.experience-intro h3 span {
  white-space: nowrap;
}

.experience-intro .profile-summary {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: 14px;
}

.experience-intro .metrics {
  margin: 0 0 16px;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-intro .metrics > div {
  position: relative;
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
}

.experience-intro .metrics > div:first-child {
  padding-left: 0;
}

.experience-intro .metrics > div + div::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.experience-intro .metrics strong {
  font-family: "Bahnschrift SemiCondensed", Bahnschrift, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(34px, 3vw, 48px);
  font-stretch: semi-condensed;
  font-weight: 750;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: .92;
  letter-spacing: -.045em;
  text-rendering: geometricPrecision;
}

.experience-intro .metrics span {
  margin: 0;
  font-size: 14px;
}

.skill-strip {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(236, 255, 226, .14);
  border-radius: 8px;
  background: rgba(9, 19, 16, .76);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .2);
}

.skill-strip > div {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 13px;
  padding: 10px 20px;
}

.skill-strip > div + div {
  border-left: 1px solid rgba(236, 255, 226, .1);
}

.skill-strip img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28));
}

.skill-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-log {
  position: relative;
  grid-area: log;
  min-width: 0;
  padding-left: var(--career-card-offset);
}

.career-log-label {
  margin: 0 0 9px calc(-1 * var(--career-card-offset));
  color: var(--lime);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
}

.career-track {
  position: absolute;
  z-index: 0;
  top: 70px;
  bottom: 18px;
  left: var(--career-axis-x);
  width: 1px;
  overflow: visible;
  background: rgba(185, 255, 22, .58);
}

.career-track i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--lime);
  box-shadow: 0 0 13px rgba(185, 255, 22, .62);
  transform: scaleY(var(--career-progress));
  transform-origin: 50% 0;
  transition: transform .12s linear;
}

.career-entry {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 78px;
  align-items: center;
  margin: 0 0 10px;
  padding: 14px 18px;
  border: 1px solid rgba(236, 255, 226, .12);
  border-radius: 8px;
  background: rgba(5, 14, 12, .46);
  grid-template-columns: minmax(162px, .72fr) minmax(220px, 1fr) minmax(280px, 1.45fr);
  gap: 20px;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform .28s var(--ease),
    opacity .28s var(--ease),
    border-color .28s var(--ease),
    background-color .28s var(--ease),
    box-shadow .28s var(--ease);
}

.career-entry::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: calc(var(--career-axis-x) - var(--career-card-offset));
  width: calc(var(--career-card-offset) - var(--career-axis-x));
  height: 1px;
  content: "";
  background: var(--career-line-color);
  box-shadow: 0 0 10px rgba(185, 255, 22, .12);
  transform: translateY(-50%);
  transition: background-color .28s ease, box-shadow .28s ease;
}

.career-entry.is-past::before,
.career-entry.is-active::before,
.career-entry:hover::before,
.career-entry:focus-visible::before {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(185, 255, 22, .48);
}

.career-entry:last-child {
  margin-bottom: 0;
}

.career-entry.is-current {
  min-height: 92px;
  border-color: rgba(185, 255, 22, .72);
  background:
    linear-gradient(90deg, rgba(185, 255, 22, .045), transparent 48%),
    rgba(5, 14, 12, .74);
}

.career-entry:nth-of-type(2) {
  min-height: 76px;
}

.career-entry:nth-of-type(n + 3) {
  min-height: 58px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.career-entry:nth-of-type(n + 3) h4 {
  font-size: 15px;
}

.career-entry:nth-of-type(n + 3) h4 span {
  margin-top: 2px;
  font-size: 12px;
}

.career-entry:nth-of-type(n + 3) p {
  font-size: 12px;
}

.career-entry:hover,
.career-entry:focus-visible,
.career-entry.is-active {
  outline: none;
  border-color: rgba(185, 255, 22, .52);
  background-color: rgba(9, 24, 19, .82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

@media (hover: hover) and (pointer: fine) {
  .career-log:has(.career-entry:hover) .career-entry:not(:hover),
  .career-log:has(.career-entry:focus-visible) .career-entry:not(:focus-visible) {
    opacity: .6;
  }

  .career-entry:hover,
  .career-entry:focus-visible {
    z-index: 20;
    border-color: rgba(185, 255, 22, .86);
    background-color: rgba(9, 24, 19, .94);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, .44),
      0 0 30px rgba(185, 255, 22, .14);
    opacity: 1;
    transform: scale(1.1);
  }
}

.career-node {
  position: absolute;
  top: 50%;
  left: calc(var(--career-axis-x) - var(--career-card-offset) - 5.5px);
  width: 11px;
  height: 11px;
  border: 2px solid rgba(185, 255, 22, .66);
  border-radius: 50%;
  background: rgba(185, 255, 22, .72);
  box-shadow:
    0 0 0 4px rgba(4, 16, 15, .9),
    0 0 10px rgba(185, 255, 22, .28);
  transform: translateY(-50%);
  transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.career-entry.is-past .career-node,
.career-entry.is-active .career-node,
.career-entry:hover .career-node,
.career-entry:focus-visible .career-node {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow:
    0 0 0 4px rgba(4, 16, 15, .92),
    0 0 16px rgba(185, 255, 22, .78);
}

.career-entry.is-active .career-node,
.career-entry:hover .career-node,
.career-entry:focus-visible .career-node {
  transform: translateY(-50%) scale(1.18);
}

.career-entry time {
  color: var(--lime);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.career-entry h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.38;
}

.career-entry h4 span {
  display: block;
  margin-top: 3px;
  color: rgba(243, 247, 240, .62);
  font-size: 13px;
  font-weight: 600;
}

.career-entry p {
  margin: 0;
  color: rgba(243, 247, 240, .62);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1240px) and (min-width: 981px) {
  .experience .section-heading,
  .experience-dossier {
    width: var(--section-page);
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    column-gap: 42px;
  }

  .experience-intro h3 {
    font-size: clamp(36px, 4vw, 48px);
  }

  .career-entry {
    grid-template-columns: minmax(126px, .65fr) minmax(166px, .9fr) minmax(0, 1.25fr);
    gap: 14px;
  }

  .skill-strip > div {
    gap: 8px;
    padding: 9px 10px;
  }

  .skill-strip img {
    width: 35px;
    height: 35px;
  }

  .skill-strip strong {
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .experience .section-heading,
  .experience-dossier {
    width: var(--section-page);
  }

  .experience-dossier {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "identity"
      "log";
    row-gap: 40px;
  }

  .experience-identity {
    position: relative;
    top: auto;
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .experience-intro h3 {
    max-width: 800px;
  }

  .experience-dossier .profile-portrait {
    max-width: none;
  }

  .career-entry {
    grid-template-columns: minmax(150px, .68fr) minmax(210px, .9fr) minmax(260px, 1.35fr);
  }
}

@media (max-width: 820px) {
  .skill-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-strip > div:nth-child(3) {
    border-left: 0;
  }

  .skill-strip > div:nth-child(n + 3) {
    border-top: 1px solid rgba(236, 255, 226, .1);
  }

  .career-entry {
    display: block;
    min-height: 0;
    padding: 18px;
  }

  .career-entry.is-current {
    min-height: 0;
  }

  .career-entry h4 {
    margin-top: 9px;
  }

  .career-entry p {
    margin-top: 11px;
  }
}

@media (max-width: 640px) {
  .experience-dossier {
    --career-axis-x: 9px;
    --career-card-offset: 27px;
    row-gap: 34px;
  }

  .experience-intro h3 {
    margin-top: 8px;
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.15;
  }

  .experience-intro h3 span {
    white-space: normal;
  }

  .experience-intro .profile-summary {
    font-size: 13px;
  }

  .experience-intro .metrics > div {
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px;
  }

  .experience-intro .metrics > div:first-child {
    padding-left: 0;
  }

  .experience-intro .metrics strong {
    font-size: 29px;
  }

  .experience-intro .metrics span {
    font-size: 11px;
  }

  .skill-strip > div {
    min-height: 60px;
    gap: 10px;
    padding: 9px 12px;
  }

  .skill-strip img {
    width: 36px;
    height: 36px;
  }

  .skill-strip strong {
    font-size: 12px;
  }

  .experience-identity {
    width: 100%;
  }

  .experience-dossier .profile-portrait {
    --lanyard-height: 380px;
  }

  .experience-dossier .lanyard-card {
    width: min(100%, 246px);
    height: 260px;
    flex-basis: 260px;
  }

  .identity-meta {
    width: min(100%, 330px);
    margin-right: auto;
    margin-left: auto;
  }

  .career-entry {
    margin-bottom: 10px;
    padding: 17px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-track i {
    transform: scaleY(1) !important;
  }

  .career-node {
    border-color: var(--lime);
    background: var(--lime);
    box-shadow:
      0 0 0 4px rgba(4, 16, 15, .92),
      0 0 12px rgba(185, 255, 22, .48);
  }

  .experience-dossier .lanyard-swing {
    transform: none !important;
  }
}

/* Project case study v2: dynamic stage + expandable reading drawer */
.project-sequence[hidden],
.project-chapters[hidden],
.project-detail-open[hidden],
.project-case-summary[hidden] {
  display: none;
}

.project-sequence {
  color: rgba(243, 247, 240, .58);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.project-sequence strong {
  color: var(--lime);
}

.project-case-summary {
  color: rgba(243, 247, 240, .62);
  font-size: 13px;
  line-height: 1.7;
}

.project-chapters {
  display: grid;
  align-content: start;
}

.project-chapters__label {
  margin-bottom: 13px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.project-chapter {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  color: rgba(243, 247, 240, .64);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color .24s ease;
}

.project-chapter::before {
  position: absolute;
  top: 50%;
  bottom: -50%;
  left: 5px;
  width: 1px;
  background: rgba(185, 255, 22, .34);
  content: "";
}

.project-chapter:last-child::before {
  display: none;
}

.project-chapter__marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid rgba(243, 247, 240, .62);
  border-radius: 50%;
  background: #07110f;
  transition: border-color .24s ease, background-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.project-chapter:hover,
.project-chapter:focus-visible,
.project-chapter.is-active {
  outline: none;
  color: var(--ink);
}

.project-chapter.is-active .project-chapter__marker {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 255, 22, .12), 0 0 13px rgba(185, 255, 22, .4);
  transform: scale(1.12);
}

.project-detail-open {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding: 12px 18px;
  border: 1px solid var(--lime);
  border-radius: 7px;
  color: #061006;
  background: var(--lime);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.project-detail-open:hover,
.project-detail-open:focus-visible {
  outline: none;
  background: #c9ff4d;
  box-shadow: 0 0 0 4px rgba(185, 255, 22, .12);
  transform: translateY(-2px);
}

.project-detail-pane__title {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.project-detail-pane__title small {
  color: rgba(243, 247, 240, .52);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  letter-spacing: .04em;
}

.project-detail-pane__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-detail-pane__actions button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(236, 255, 226, .16);
  border-radius: 999px;
  color: rgba(243, 247, 240, .72);
  background: rgba(243, 247, 240, .04);
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.project-detail-pane__actions button:hover,
.project-detail-pane__actions button:focus-visible {
  outline: none;
  border-color: rgba(185, 255, 22, .55);
  color: var(--ink);
}

@media (min-width: 1100px) and (min-height: 680px) {
  body.portfolio-project-page.is-case-study {
    overflow: hidden;
    background: #020908;
  }

  .portfolio-project-page.is-case-study .page-texture {
    opacity: .18;
  }

  .portfolio-project-page.is-case-study .site-header {
    top: 10px;
    width: calc(100% - 56px);
    max-width: none;
    min-height: 48px;
    padding: 4px;
    grid-template-columns: 1fr auto 1fr;
    border-color: rgba(236, 255, 226, .12);
    border-radius: 8px;
    background: rgba(4, 16, 15, .92);
    box-shadow: none;
  }

  .portfolio-project-page.is-case-study .brand-pill {
    min-width: 98px;
    min-height: 38px;
    justify-self: start;
    padding: 6px 13px;
    border-radius: 6px;
  }

  .portfolio-project-page.is-case-study .brand-wordmark {
    width: 76px;
  }

  .portfolio-project-page.is-case-study .site-nav {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-sequence {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    gap: 5px;
  }

  .portfolio-project-page.is-case-study .contact-pill {
    min-height: 36px;
    justify-self: end;
    padding-inline: 14px;
    border-radius: 999px;
    background: rgba(243, 247, 240, .06);
    font-size: 11px;
  }

  .portfolio-project-page.is-case-study .project-detail {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    height: 100svh;
    margin: 0;
    padding: 72px 28px 22px;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 16px;
    overflow: hidden;
    transition: grid-template-columns .5s cubic-bezier(.2, .8, .2, 1);
  }

  .portfolio-project-page.is-case-study.is-detail-open .project-detail {
    grid-template-columns: minmax(0, 45fr) minmax(560px, 55fr);
  }

  .portfolio-project-page.is-case-study .project-case-study {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    transition: filter .35s ease;
  }

  .portfolio-project-page.is-case-study.is-detail-open .project-case-study {
    filter: saturate(.84) brightness(.88);
  }

  .portfolio-project-page.is-case-study .project-case-section,
  .portfolio-project-page.is-case-study .project-case-hero,
  .portfolio-project-page.is-case-study .project-case-video,
  .portfolio-project-page.is-case-study .project-case-motion,
  .portfolio-project-page.is-case-study .project-motion-grid,
  .portfolio-project-page.is-case-study .project-motion-card,
  .portfolio-project-page.is-case-study .project-motion-card__frame {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }

  .portfolio-project-page.is-case-study .project-case-video {
    aspect-ratio: auto;
    border-color: rgba(185, 255, 22, .24);
    border-radius: 8px;
    box-shadow: none;
  }

  .portfolio-project-page.is-case-study .project-case-video:hover,
  .portfolio-project-page.is-case-study .project-case-video:focus-visible {
    border-color: rgba(185, 255, 22, .52);
    box-shadow: none;
    transform: none;
  }

  .portfolio-project-page.is-case-study .project-case-video__media {
    object-fit: cover;
    object-position: center;
  }

  .portfolio-project-page.is-case-study .project-case-video__overlay {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px 7px 7px;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(2, 8, 7, .82);
    backdrop-filter: blur(8px);
  }

  .portfolio-project-page.is-case-study .project-case-video__play {
    width: 28px;
    height: 28px;
  }

  .portfolio-project-page.is-case-study .project-motion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .portfolio-project-page.is-case-study .project-motion-card {
    border-radius: 7px;
  }

  .portfolio-project-page.is-case-study .project-motion-card:hover {
    transform: none;
  }

  .portfolio-project-page.is-case-study .project-motion-card__frame {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .portfolio-project-page.is-case-study .project-case-motion,
  .portfolio-project-page.is-case-study .project-motion-grid,
  .portfolio-project-page.is-case-study .project-motion-card {
    height: auto;
  }

  .portfolio-project-page.is-case-study .project-detail-header {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 30px 28px 26px;
    grid-column: 2;
    grid-row: 1;
    overflow: auto;
    border: 1px solid rgba(236, 255, 226, .13);
    border-radius: 8px;
    background: rgba(5, 16, 14, .88);
    opacity: 1;
    visibility: visible;
    transition: opacity .22s ease, visibility .22s ease;
  }

  .portfolio-project-page.is-case-study.is-detail-open .project-detail-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .portfolio-project-page.is-case-study .project-detail-header > div {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-kicker {
    margin: 0 0 14px;
    color: var(--lime);
    font-size: 10px;
    letter-spacing: .16em;
  }

  .portfolio-project-page.is-case-study .project-detail-header h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(28px, 2.25vw, 42px);
    line-height: 1.08;
    white-space: normal;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-copy {
    margin: 10px 0 0;
    color: var(--lime);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
  }

  .portfolio-project-page.is-case-study .project-case-meta {
    display: grid;
    min-width: 0;
    max-width: none;
    margin: 22px 0 0;
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
  }

  .portfolio-project-page.is-case-study .project-case-meta__type {
    margin: 0 0 4px;
    color: rgba(243, 247, 240, .82);
    font-size: 12px;
  }

  .portfolio-project-page.is-case-study .project-case-meta__tool {
    color: rgba(243, 247, 240, .5);
    font-size: 11px;
  }

  .portfolio-project-page.is-case-study .project-case-summary {
    margin: 18px 0 20px;
  }

  .portfolio-project-page.is-case-study .project-chapters {
    margin-bottom: 20px;
  }

  .portfolio-project-page.is-case-study .project-detail-header .detail-back {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-detail-pane {
    position: relative;
    z-index: 4;
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: visible;
    border: 1px solid rgba(236, 255, 226, .14);
    border-radius: 8px;
    background: #030908;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity .34s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility .34s ease;
  }

  .portfolio-project-page.is-case-study .project-detail-pane::before {
    position: absolute;
    top: 61px;
    left: -17px;
    width: 17px;
    height: 1px;
    background: var(--lime);
    content: "";
  }

  .portfolio-project-page.is-case-study .project-detail-pane::after {
    position: absolute;
    top: 56px;
    left: -22px;
    width: 11px;
    height: 11px;
    border: 2px solid #06100e;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 2px rgba(185, 255, 22, .32);
    content: "";
  }

  .portfolio-project-page.is-case-study.is-detail-open .project-detail-pane {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 94px;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(236, 255, 226, .13);
    background: rgba(3, 10, 9, .97);
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lime) 0 calc(var(--detail-progress, 0) * 100%), transparent calc(var(--detail-progress, 0) * 100%));
    content: "";
    pointer-events: none;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header span {
    color: var(--lime);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header h2 {
    max-width: min(52vw, 620px);
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(22px, 1.75vw, 32px);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portfolio-project-page.is-case-study .project-detail-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(185, 255, 22, .72) rgba(255, 255, 255, .05);
    scrollbar-width: thin;
  }

  .portfolio-project-page.is-case-study .project-image-stack {
    display: block;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 18px 18px 0;
  }

  .portfolio-project-page.is-case-study .project-detail-frame,
  .portfolio-project-page.is-case-study .project-detail-frame .project-detail-image {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .portfolio-project-page.is-case-study .project-end-return {
    min-height: 210px;
  }

  .portfolio-project-page.is-case-study .project-scroll-top {
    display: none;
  }
}

@media (max-width: 1099px), (max-height: 679px) {
  .portfolio-project-page.is-case-study .site-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .portfolio-project-page.is-case-study .site-nav {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-sequence {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    gap: 4px;
  }

  .portfolio-project-page.is-case-study .contact-pill {
    justify-self: end;
  }

  .portfolio-project-page.is-case-study .project-detail {
    padding: 96px 16px 0;
    gap: 34px;
  }

  .portfolio-project-page.is-case-study .project-case-study {
    order: 1;
    width: min(100%, 920px);
  }

  .portfolio-project-page.is-case-study .project-detail-header {
    order: 2;
    padding: 0 0 8px;
  }

  .portfolio-project-page.is-case-study .project-detail-header h1 {
    font-size: clamp(36px, 8vw, 64px);
  }

  .portfolio-project-page.is-case-study .project-case-summary {
    max-width: 640px;
    margin: 18px 0;
  }

  .portfolio-project-page.is-case-study .project-chapters {
    max-width: 640px;
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 24px;
  }

  .portfolio-project-page.is-case-study .project-chapters__label {
    grid-column: 1 / -1;
  }

  .portfolio-project-page.is-case-study .project-chapter::before {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-detail-open {
    max-width: 360px;
    margin-top: 26px;
  }

  .portfolio-project-page.is-case-study .project-detail-pane {
    order: 3;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header {
    position: sticky;
    top: 72px;
    z-index: 4;
    align-items: center;
    background: rgba(3, 10, 9, .96);
    backdrop-filter: blur(14px);
  }

  .portfolio-project-page.is-case-study [data-project-detail-close] {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-image-stack {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .portfolio-project-page.is-case-study .site-header {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 48px;
    margin-top: 8px;
  }

  .portfolio-project-page.is-case-study .brand-pill {
    min-width: 78px;
    padding-inline: 9px;
  }

  .portfolio-project-page.is-case-study .brand-wordmark {
    width: 64px;
  }

  .portfolio-project-page.is-case-study .project-sequence {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .portfolio-project-page.is-case-study .contact-pill {
    min-width: 0;
    padding-inline: 10px;
    font-size: 10px;
  }

  .portfolio-project-page.is-case-study .project-detail {
    padding: 82px 12px 0;
    gap: 28px;
  }

  .portfolio-project-page.is-case-study .project-case-study {
    gap: 10px;
  }

  .portfolio-project-page.is-case-study .project-case-video__overlay {
    right: 8px;
    bottom: 8px;
  }

  .portfolio-project-page.is-case-study .project-case-video__hint {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-motion-grid {
    display: grid;
    padding-bottom: 6px;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .portfolio-project-page.is-case-study .project-motion-grid::-webkit-scrollbar {
    display: none;
  }

  .portfolio-project-page.is-case-study .project-motion-card {
    scroll-snap-align: start;
  }

  .portfolio-project-page.is-case-study .project-motion-card__frame {
    aspect-ratio: 3 / 2;
  }

  .portfolio-project-page.is-case-study .project-detail-header h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .portfolio-project-page.is-case-study .project-chapters {
    grid-template-columns: 1fr;
  }

  .portfolio-project-page.is-case-study .project-detail-open {
    max-width: none;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header {
    top: 64px;
    min-height: 78px;
    padding: 13px 12px;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__header h2 {
    max-width: 210px;
    font-size: 19px;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__title small {
    font-size: 9px;
  }

  .portfolio-project-page.is-case-study .project-detail-pane__actions button {
    padding-inline: 9px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-project-page.is-case-study .project-detail,
  .portfolio-project-page.is-case-study .project-detail-pane,
  .portfolio-project-page.is-case-study .project-case-study,
  .portfolio-project-page.is-case-study .project-detail-open,
  .portfolio-project-page.is-case-study .project-chapter,
  .portfolio-project-page.is-case-study .project-chapter__marker {
    transition: none;
  }
}
