:root {
  --bg: #080807;
  --bg-soft: #11110f;
  --ink: #f5f0e8;
  --muted: #aaa39a;
  --line: rgba(245, 240, 232, 0.16);
  --glass: rgba(18, 18, 16, 0.68);
  --cyan: #43e8ff;
  --lime: #c8ff43;
  --pink: #ff4da6;
  --amber: #ffb000;
  --red: #ff5d4d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 255, 67, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(67, 232, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #060605 0%, #10100e 46%, #070706 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

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

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

button {
  color: inherit;
  font: inherit;
}

#signalField {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink));
  box-shadow: 0 0 18px rgba(67, 232, 255, 0.45);
}

.cursor-light {
  position: fixed;
  left: var(--cursor-x, 50vw);
  top: var(--cursor-y, 50vh);
  z-index: -1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(67, 232, 255, 0.16), transparent 62%);
  filter: blur(10px);
  opacity: 0.9;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  display: flex;
  width: min(1120px, calc(100% - 28px));
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 7, 0.72);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--lime), var(--cyan), var(--pink), var(--lime));
  box-shadow: 0 0 22px rgba(200, 255, 67, 0.5);
}

.nav-links {
  gap: clamp(10px, 2vw, 28px);
  color: rgba(245, 240, 232, 0.72);
  font-size: 13px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 88svh);
  align-items: end;
  padding: clamp(122px, 16vh, 172px) 0 44px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 38%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-media {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  overflow: hidden;
  opacity: 0.78;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.94) 0%, rgba(8, 8, 7, 0.52) 44%, rgba(8, 8, 7, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.22), rgba(8, 8, 7, 0.96));
}

.media-track {
  position: absolute;
  display: grid;
  width: 160vw;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  gap: 22px;
  transform: rotate(-8deg);
  will-change: transform;
}

.media-track img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(245, 240, 232, 0.22);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  filter: saturate(1.06) contrast(1.08);
}

.track-one {
  top: 7%;
  left: -18vw;
  animation: driftLeft 24s linear infinite;
}

.track-two {
  top: 48%;
  left: -4vw;
  animation: driftRight 30s linear infinite;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(900px, 100%);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8.8em;
  margin-bottom: 20px;
  font-size: clamp(64px, 13vw, 150px);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(245, 240, 232, 0.82);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.ghost-action,
.icon-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-action {
  padding: 0 20px;
  background: var(--ink);
  color: #080807;
  font-weight: 800;
}

.ghost-action {
  padding: 0 18px;
  color: rgba(245, 240, 232, 0.78);
}

.icon-action {
  width: 48px;
  background: rgba(245, 240, 232, 0.08);
}

.primary-action:hover,
.primary-action:focus-visible,
.ghost-action:hover,
.ghost-action:focus-visible,
.icon-action:hover,
.icon-action:focus-visible {
  border-color: rgba(245, 240, 232, 0.56);
  transform: translateY(-2px);
}

.hero-status {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 4;
  display: grid;
  width: min(330px, 42vw);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 10, 8, 0.52);
  backdrop-filter: blur(18px);
}

.hero-status div {
  padding: 14px 16px;
  background: rgba(245, 240, 232, 0.05);
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-status strong {
  color: var(--ink);
  font-size: 13px;
}

.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(245, 240, 232, 0.12);
  background: rgba(245, 240, 232, 0.04);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 20s linear infinite;
}

.ticker span {
  padding: 18px 28px;
  color: rgba(245, 240, 232, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-section,
.reel-section,
.lab-section,
.contact-section {
  padding: clamp(78px, 10vw, 126px) 0;
}

.section-heading {
  display: grid;
  max-width: 760px;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.filter-pill,
.reel-tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245, 240, 232, 0.05);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.filter-pill {
  min-height: 38px;
  padding: 0 14px;
  color: rgba(245, 240, 232, 0.74);
}

.filter-pill:hover,
.filter-pill:focus-visible,
.filter-pill.is-active,
.reel-tab:hover,
.reel-tab:focus-visible,
.reel-tab.is-active {
  border-color: rgba(200, 255, 67, 0.52);
  background: rgba(200, 255, 67, 0.13);
  color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.work-card {
  position: relative;
  grid-column: span 6;
  min-height: 420px;
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    border-color 240ms ease;
}

.work-card:hover {
  border-color: rgba(245, 240, 232, 0.34);
}

.work-card.is-hidden {
  display: none;
}

.work-card:nth-child(1),
.work-card:nth-child(4) {
  grid-column: span 7;
}

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

.work-media {
  display: block;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
  background: #151512;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 620ms ease;
}

.work-card:hover .work-media img {
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.08);
}

.work-body {
  padding: 20px;
}

.work-kicker {
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-body h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.work-body p {
  max-width: 54ch;
  margin-bottom: 16px;
  color: rgba(245, 240, 232, 0.68);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 6px 8px;
  border: 1px solid rgba(245, 240, 232, 0.13);
  border-radius: 999px;
  color: rgba(245, 240, 232, 0.72);
  font-size: 11px;
}

.reel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: stretch;
}

.reel-frame {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(245, 240, 232, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 77, 166, 0.12), transparent 36%),
    #10100e;
  box-shadow: var(--shadow);
}

.reel-frame img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
  animation: slowZoom 10s ease-in-out infinite alternate;
}

.reel-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at var(--reel-x, 50%) var(--reel-y, 50%), rgba(200, 255, 67, 0.18), transparent 18rem),
    linear-gradient(180deg, transparent 36%, rgba(8, 8, 7, 0.86) 100%);
}

.scan-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: overlay;
  opacity: 0.28;
}

.play-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: clamp(68px, 9vw, 104px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(245, 240, 232, 0.36);
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.42);
  box-shadow: 0 0 72px rgba(67, 232, 255, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.reel-meta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.reel-meta span {
  color: var(--amber);
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 900;
  line-height: 0.8;
}

.reel-meta strong {
  max-width: 12ch;
  text-align: right;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 0.95;
}

.reel-panel {
  display: grid;
  gap: 10px;
}

.reel-tab {
  min-height: 72px;
  padding: 0 16px;
  text-align: left;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lab-item {
  min-height: 270px;
  padding: 22px;
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(245, 240, 232, 0.08), transparent),
    rgba(245, 240, 232, 0.04);
  overflow: hidden;
}

.lab-item span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.lab-item h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.lab-item p {
  margin-bottom: 0;
  color: rgba(245, 240, 232, 0.68);
  line-height: 1.55;
}

.contact-section {
  margin-bottom: 22px;
  padding-inline: clamp(18px, 4vw, 54px);
  border: 1px solid rgba(245, 240, 232, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(200, 255, 67, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 77, 166, 0.12), transparent 42%),
    rgba(245, 240, 232, 0.05);
}

.contact-section h2 {
  max-width: 900px;
  margin-bottom: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftLeft {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(-28vw, 0, 0) rotate(-8deg);
  }
}

@keyframes driftRight {
  from {
    transform: translate3d(-24vw, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
  }

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4) {
    grid-column: span 12;
  }

  .reel-stage,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .reel-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 22px, 1160px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 138px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 88px);
  }

  .hero-media {
    opacity: 0.58;
  }

  .media-track {
    width: 230vw;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px;
  }

  .work-media {
    height: 220px;
  }

  .work-card {
    min-height: auto;
  }

  .reel-frame,
  .reel-frame img {
    min-height: 390px;
  }

  .reel-panel {
    grid-template-columns: 1fr;
  }

  .ticker span {
    padding-inline: 18px;
  }
}

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

.video-deck-section {
  padding: clamp(78px, 10vw, 126px) 0;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 240, 232, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(67, 232, 255, 0.12), transparent 36%),
    rgba(245, 240, 232, 0.05);
  box-shadow: var(--shadow);
}

.featured-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #10100e;
}

.featured-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 72% 24%, rgba(200, 255, 67, 0.12), transparent 18rem),
    linear-gradient(180deg, transparent 42%, rgba(8, 8, 7, 0.28));
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-project:hover .featured-media img {
  transform: scale(1.035);
}

.featured-body {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.featured-body h3 {
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}

.featured-body p {
  max-width: 48ch;
  margin-bottom: 20px;
  color: rgba(245, 240, 232, 0.72);
  font-size: 17px;
  line-height: 1.62;
}

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

.supporting-grid .work-card,
.supporting-grid .work-card:nth-child(1),
.supporting-grid .work-card:nth-child(2),
.supporting-grid .work-card:nth-child(3),
.supporting-grid .work-card:nth-child(4) {
  grid-column: span 4;
}

.deck-stage {
  position: relative;
  min-height: 720px;
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 77, 166, 0.16), transparent 22rem),
    radial-gradient(circle at 20% 20%, rgba(67, 232, 255, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(245, 240, 232, 0.06), rgba(245, 240, 232, 0.025));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.deck-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(245, 240, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 60%, #000, transparent 72%);
}

.deck-readout {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 7;
  display: grid;
  width: min(420px, calc(100% - 48px));
  gap: 6px;
  pointer-events: none;
}

.deck-readout span {
  color: var(--amber);
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 950;
  line-height: 0.78;
}

.deck-readout strong {
  font-size: clamp(28px, 5vw, 58px);
  line-height: 0.92;
}

.deck-readout p {
  max-width: 38ch;
  margin: 2px 0 0;
  color: rgba(245, 240, 232, 0.66);
  line-height: 1.55;
}

.video-deck {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 100%;
  perspective: 1800px;
}

.video-deck::after {
  position: absolute;
  right: 10%;
  bottom: 46px;
  left: 10%;
  height: 42px;
  border-radius: 50%;
  content: "";
  background: rgba(0, 0, 0, 0.42);
  filter: blur(22px);
}

.video-card {
  position: absolute;
  bottom: 74px;
  left: 50%;
  z-index: 5;
  width: clamp(168px, 17vw, 228px);
  aspect-ratio: 9 / 16;
  border: 0;
  outline: 0;
  transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--r));
  transform-origin: 50% 92%;
  transition:
    transform 430ms cubic-bezier(0.2, 1.15, 0.2, 1),
    filter 220ms ease;
  will-change: transform;
}

.video-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}

.video-card.is-active {
  z-index: 60;
  filter: drop-shadow(0 38px 68px rgba(0, 0, 0, 0.48));
  transform: translateX(calc(-50% + var(--x))) translateY(-74px) rotate(0deg) scale(1.42);
}

.video-card.is-active .video-shell {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(245, 240, 232, 0.18),
    0 0 44px rgba(67, 232, 255, 0.26),
    0 28px 76px rgba(0, 0, 0, 0.52);
}

.video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #11110f;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  transform: translateZ(0);
}

.video-shell::before {
  position: absolute;
  inset: 10px;
  z-index: 4;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(245, 240, 232, 0.16);
  border-radius: 5px;
}

.video-shell::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.08), transparent 36%, rgba(8, 8, 7, 0.72)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 7px
    );
  opacity: 0.36;
}

.video-poster,
.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster {
  z-index: 1;
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-shell video {
  z-index: 2;
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-card.is-active .video-poster {
  opacity: 0;
  transform: scale(1.04);
}

.video-card.is-active video {
  opacity: 1;
}

.video-card-meta {
  position: absolute;
  right: 12px;
  bottom: 13px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
}

.video-card-meta span {
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  line-height: 0.86;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.video-card-meta strong {
  max-width: 8ch;
  text-align: right;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-media,
  .featured-body {
    min-height: auto;
  }

  .featured-media {
    aspect-ratio: 16 / 10;
  }

  .supporting-grid .work-card,
  .supporting-grid .work-card:nth-child(1),
  .supporting-grid .work-card:nth-child(2),
  .supporting-grid .work-card:nth-child(3),
  .supporting-grid .work-card:nth-child(4) {
    grid-column: span 12;
  }

  .deck-stage {
    min-height: 660px;
  }

  .video-card {
    width: clamp(144px, 22vw, 190px);
  }

  .video-card.is-active {
    transform: translateX(calc(-50% + var(--x))) translateY(-58px) rotate(0deg) scale(1.24);
  }
}

@media (max-width: 620px) {
  .deck-stage {
    min-height: 640px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .deck-readout {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 22px 18px 0;
  }

  .video-deck {
    position: relative;
    display: flex;
    height: 500px;
    min-width: 1120px;
    align-items: flex-end;
    padding: 0 28px 76px;
  }

  .video-deck::after {
    right: 90px;
    bottom: 44px;
    left: 90px;
  }

  .video-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 154px;
    margin-right: -62px;
    transform: translateY(var(--y)) rotate(var(--r));
  }

  .video-card.is-active {
    transform: translateY(-40px) rotate(0deg) scale(1.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-poster,
  .video-shell video,
  .featured-media img {
    transition-duration: 0.001ms !important;
  }
}

/* Cord phone contact */
.contact-section {
  width: min(1160px, calc(100% - 20px));
  margin-bottom: 22px;
  padding: clamp(74px, 9vw, 112px) 0 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.contact-card {
  position: relative;
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1eee8;
  box-shadow: var(--shadow);
  --phone-x: 0px;
  --phone-y: 0px;
  --phone-rotate: 0deg;
}

.contact-stage {
  position: relative;
  min-height: 430px;
  border-radius: 0 0 72px 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(67, 232, 255, 0.08), transparent 18rem),
    linear-gradient(180deg, #171716, #111110);
}

.contact-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(245, 240, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 48%, #000, transparent 72%);
}

.contact-pill {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 232, 0.72);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.contact-pill::after {
  margin-left: 8px;
  color: var(--lime);
  content: "->";
}

.contact-stage h2 {
  position: absolute;
  top: 134px;
  left: 50%;
  z-index: 3;
  width: min(980px, calc(100% - 42px));
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 8.6vw, 116px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}


.phone-cord {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.phone-cord path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-cord-shadow {
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 5;
}

.phone-cord-main {
  stroke: rgba(245, 240, 232, 0.82);
  stroke-width: 2.4;
}

.phone-cord-coil {
  stroke: rgba(67, 232, 255, 0.85);
  stroke-width: 2.1;
  stroke-dasharray: 2 12;
  opacity: 0.7;
}

.phone-handset {
  position: absolute;
  top: 212px;
  left: 50%;
  z-index: 6;
  width: 96px;
  height: 104px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transform: translate(calc(-50% + var(--phone-x)), var(--phone-y)) rotate(var(--phone-rotate));
  transform-origin: 50% 16%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.42));
}

.phone-handset:active,
.contact-card.is-dragging .phone-handset {
  cursor: grabbing;
}

.contact-card.is-returning .phone-handset {
  transition: transform 760ms cubic-bezier(0.12, 1.55, 0.28, 1);
}

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

.receiver-shape {
  position: absolute;
  inset: 0;
  display: block;
  transform: rotate(8deg);
}

.receiver-icon {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 78px;
  height: 78px;
  fill: #24ff26;
  transform: translateX(-50%) rotate(-104deg);
  transform-origin: 50% 50%;
  filter:
    drop-shadow(0 0 18px rgba(36, 255, 38, 0.28))
    drop-shadow(0 16px 20px rgba(0, 0, 0, 0.36));
}

.contact-card.is-armed .receiver-icon {
  fill: var(--lime);
  filter:
    drop-shadow(0 0 24px rgba(200, 255, 67, 0.48))
    drop-shadow(0 16px 20px rgba(0, 0, 0, 0.36));
}
.contact-floor {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 28px clamp(18px, 5vw, 56px) 34px;
  color: #111110;
  background:
    radial-gradient(circle at 50% 0%, rgba(67, 232, 255, 0.08), transparent 18rem),
    #f1eee8;
}

.email-card {
  display: grid;
  grid-template-columns: 58px minmax(0, auto);
  gap: 14px;
  align-items: center;
  max-width: min(100%, 520px);
  padding: 12px 16px;
  border: 1px solid rgba(17, 17, 16, 0.14);
  border-radius: var(--radius);
  color: #111110;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.email-card strong,
.email-card span span {
  display: block;
}

.email-card strong {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.email-card span span {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.email-glyph {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #111110;
  color: #24ff26;
  font-size: 30px;
  font-weight: 950;
}

@media (max-width: 920px) {
  .contact-stage {
    min-height: 400px;
  }

  .contact-stage h2 {
    top: 128px;
  }
}

@media (max-width: 620px) {
  .contact-section {
    width: min(100% - 18px, 1160px);
  }

  .contact-stage {
    min-height: 390px;
    border-radius: 0 0 42px 42px;
  }

  .contact-stage h2 {
    top: 124px;
    width: calc(100% - 24px);
    font-size: clamp(36px, 13vw, 58px);
  }

  .contact-pill {
    top: 16px;
    right: 16px;
  }

  .phone-handset {
    top: 204px;
    transform: translate(calc(-50% + var(--phone-x)), var(--phone-y)) rotate(var(--phone-rotate)) scale(0.9);
  }
.email-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
/* GitHub star button */
.github-star-button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  width: min(100%, 248px);
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #030303;
  color: #fff;
  box-shadow:
    inset 0 0 0 2px #050505,
    0 12px 32px rgba(0, 0, 0, 0.28);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.github-star-button::before {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 14px;
  width: 42px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-12deg);
}

.github-star-button:hover,
.github-star-button:focus-visible {
  border-color: #fff;
  box-shadow:
    inset 0 0 0 2px #050505,
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 16px 42px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.github-star-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.github-star-shine {
  position: absolute;
  top: -42px;
  right: 0;
  width: 34px;
  height: 132px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(76px) rotate(12deg);
  transition: transform 900ms ease;
}

.github-star-button:hover .github-star-shine,
.github-star-button:focus-visible .github-star-shine {
  transform: translateX(-256px) rotate(12deg);
}

.github-star-main,
.github-star-count-wrap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.github-star-main {
  gap: 8px;
}

.github-mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.github-star-count-wrap {
  gap: 7px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.star-mark {
  width: 23px;
  height: 23px;
  color: rgba(255, 255, 255, 0.38);
  fill: currentColor;
  filter: none;
  transition:
    color 260ms ease,
    filter 260ms ease,
    transform 260ms ease;
}

.github-star-button:hover .star-mark,
.github-star-button:focus-visible .star-mark {
  color: #ffe032;
  filter: drop-shadow(0 0 10px rgba(255, 224, 50, 0.48));
  transform: rotate(12deg) scale(1.08);
}

.github-star-count {
  min-width: 1.5ch;
  letter-spacing: 0;
}

@media (max-width: 620px) {
  .github-star-button {
    width: min(100%, 238px);
    min-height: 48px;
    font-size: 15px;
  }
}