:root {
  color-scheme: dark;
  --bg: #080908;
  --surface: #111310;
  --surface-soft: rgba(242, 240, 233, 0.06);
  --surface-2: #e8e1d4;
  --text: #f2f0e9;
  --muted: #a7a69f;
  --ink: #111310;
  --line: rgba(242, 240, 233, 0.16);
  --acid: #b45cff;
  --purple: #8e44d8;
  --red: #ff3b30;
  --cyan: #54d9ff;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(180, 92, 255, 0.08) 62% 62.4%, transparent 62.4%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 80px 80px;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: var(--acid);
  color: var(--ink);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.contact-links,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--acid);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.brand-mark::before {
  content: "⭑";
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.contact-links a:hover {
  color: var(--acid);
}

main {
  overflow: hidden;
}

.intro,
.work-section,
.case-section,
.about-section,
.contact-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) clamp(18px, 4vw, 48px);
}

.intro {
  min-height: calc(100svh - 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  padding-top: clamp(34px, 6vw, 76px);
  padding-bottom: clamp(34px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-label,
.project-info > p:first-child {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.86;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.25;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.intro-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 16, 0.78);
}

.intro-panel p {
  margin-bottom: 22px;
  color: var(--text);
  line-height: 1.45;
}

.panel-label {
  margin-bottom: 6px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 190px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--acid);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
  transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0);
  transition: transform 260ms cubic-bezier(0.18, 1.35, 0.28, 1), background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--text);
  border-color: var(--text);
}

.button.secondary {
  color: var(--text);
  background: transparent;
}

.button.secondary:hover {
  color: var(--ink);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.metrics div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 0.95;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  margin-bottom: 28px;
  align-items: end;
}

.section-head h2,
.about-section h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

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

.project-card {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(180, 92, 255, 0.7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.project-card.feature {
  grid-column: span 2;
}

.project-card.tall {
  grid-row: span 2;
}

.project-card a {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(240px, 1fr) auto;
  transform-style: preserve-3d;
}

.project-media {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(18px);
}

.project-info {
  transform: translateZ(28px);
}

.project-media:not(.image-single, .image-stack)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(8, 9, 8, 0.2), rgba(8, 9, 8, 0.2) 2px, transparent 2px, transparent 7px),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(135deg, currentColor, #111310 72%);
}

.project-media:not(.image-single, .image-stack)::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(242, 240, 233, 0.18);
  background:
    linear-gradient(90deg, transparent 48%, rgba(242, 240, 233, 0.16) 49%, transparent 50%),
    linear-gradient(0deg, transparent 48%, rgba(242, 240, 233, 0.14) 49%, transparent 50%);
  mix-blend-mode: screen;
}

.project-media img {
  display: block;
  max-width: 100%;
  border: 1px solid rgba(242, 240, 233, 0.16);
  border-radius: 6px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.38);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.project-card:hover .project-media img {
  box-shadow: 0 30px 58px rgba(0, 0, 0, 0.48);
}

.image-single {
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, currentColor 36%, transparent), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, currentColor 45%, #111310), #111310 74%);
}

.image-single img {
  width: min(82%, 230px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: rotate(-2deg);
}

.project-card:hover .image-single img {
  transform: rotate(-1deg) translateY(-8px) scale(1.045);
}

.image-stack {
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, currentColor 46%, #111310), #111310 76%);
}

.image-stack img {
  width: min(43%, 230px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-stack img:first-child {
  transform: rotate(-4deg) translateY(8px);
}

.image-stack img:last-child {
  transform: rotate(4deg) translateY(-8px);
}

.project-card:hover .image-stack img:first-child {
  transform: rotate(-7deg) translate(-10px, -4px) scale(1.04);
}

.project-card:hover .image-stack img:last-child {
  transform: rotate(7deg) translate(10px, -14px) scale(1.04);
}

.media-red {
  color: var(--red);
}

.media-green {
  color: var(--purple);
}

.media-blue {
  color: var(--cyan);
}

.media-light {
  color: var(--surface-2);
}

.project-media span {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 0.85;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-info {
  padding: 18px;
}

.project-info h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.project-info p {
  color: var(--muted);
  line-height: 1.45;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.skills-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(242, 240, 233, 0.04);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-section {
  padding-top: 0;
}

.case-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.case-row h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
}

.reels-case {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.reel-preview-column {
  position: sticky;
  top: 96px;
}

.reel-viewer {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.reel-phone {
  position: relative;
  min-height: 360px;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(180, 92, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(242, 240, 233, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(180, 92, 255, 0.2), rgba(17, 19, 16, 0.88)),
    var(--surface);
  background-size: 18px 18px, auto, auto;
  overflow: hidden;
}

.reel-phone::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(242, 240, 233, 0.14);
  border-radius: 6px;
  pointer-events: none;
}

.reel-phone::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 14px;
  z-index: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(242, 240, 233, 0.44);
  pointer-events: none;
}

.reel-video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  border: 0;
  object-fit: cover;
  background: var(--surface);
}

.reel-placeholder {
  position: absolute;
  left: 16px;
  bottom: 32px;
  z-index: 1;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  padding: 6px 8px;
  border: 1px solid rgba(242, 240, 233, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 8, 0.62);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.reel-caption {
  align-self: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 16, 0.68);
}

.reel-caption h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 0.95;
  text-transform: uppercase;
}

.reel-caption p:not(.panel-label) {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.4;
}

.reel-caption a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--acid);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.reel-caption a:hover {
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-2px);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.case-gallery.one {
  grid-template-columns: minmax(0, 0.72fr);
}

.poster-preview {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
  transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0);
  transition: transform 260ms cubic-bezier(0.18, 1.35, 0.28, 1);
}

.poster-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.poster-preview:hover img,
.poster-preview:focus-visible img {
  border-color: rgba(180, 92, 255, 0.72);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px) scale(1.015);
}

.poster-preview:focus-visible,
.reel-slot:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.reels-showcase {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.reel-slot {
  width: 100%;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(242, 240, 233, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(180, 92, 255, 0.14), rgba(17, 19, 16, 0.74));
  background-size: 18px 18px, auto;
  cursor: pointer;
  transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0);
  transition: border-color 180ms ease, transform 260ms cubic-bezier(0.18, 1.35, 0.28, 1), background-color 180ms ease;
}

.reel-slot:hover,
.reel-slot.is-active {
  border-color: rgba(180, 92, 255, 0.78);
}

.reel-slot.is-active {
  background-color: rgba(180, 92, 255, 0.12);
}

.reel-slot span,
.reel-slot strong {
  display: block;
}

.reel-slot span {
  margin-bottom: 18px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
}

.reel-slot strong {
  margin-bottom: 8px;
  color: var(--text);
  text-transform: uppercase;
}

.reel-slot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  transition:
    opacity 1150ms ease,
    transform 1150ms cubic-bezier(0.18, 1.35, 0.28, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.stagger-item {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.18, 1.35, 0.28, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.is-visible .stagger-item,
.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-text p {
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
}

dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-section > p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 760px;
  margin: 24px 0 0 auto;
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.contact-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0);
  transition: transform 260ms cubic-bezier(0.18, 1.35, 0.28, 1), border-color 180ms ease, color 180ms ease;
}

.contact-links a:hover {
  border-color: rgba(180, 92, 255, 0.78);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer > div {
  display: grid;
  gap: 6px;
  text-align: right;
}

.legal-note {
  max-width: 520px;
  color: rgba(167, 166, 159, 0.54);
  font-size: 10px;
  line-height: 1.35;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 8, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(88vw, 620px);
  max-height: 86vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(17, 19, 16, 0.82);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 900px) {
  .intro,
  .section-head,
  .case-row,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }

  .reel-preview-column {
    position: static;
  }

  .reels-case {
    gap: 22px;
  }

  .reel-viewer {
    grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1fr);
    align-items: end;
  }

  .reel-phone {
    min-height: 330px;
  }

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

  .project-card.feature,
  .project-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .contact-section {
    display: grid;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .intro-actions,
  .intro-actions .button {
    width: 100%;
  }

  .intro-actions .button {
    min-width: 0;
  }

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

  .reel-viewer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reel-phone {
    width: min(72vw, 250px);
    min-height: 0;
    margin: 0 auto;
  }

  .reel-caption {
    padding: 12px;
  }

  .reel-caption h3 {
    font-size: 24px;
  }

  .reel-caption p:not(.panel-label) {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .reels-showcase {
    gap: 8px;
    margin-top: 18px;
  }

  .reel-slot {
    min-height: 104px;
    padding: 12px;
  }

  .reel-slot span {
    margin-bottom: 12px;
  }

  .reel-slot strong {
    font-size: 18px;
  }

  .reel-slot p {
    font-size: 15px;
  }

  .intro,
  .work-section,
  .case-section,
  .about-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .project-card {
    min-height: 0;
  }

  .project-media,
  .project-info {
    transform: none;
  }

  .case-gallery,
  .case-gallery.one {
    grid-template-columns: minmax(0, 1fr);
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .skills-row {
    justify-content: flex-start;
  }

  .site-footer > div {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .project-card,
  .project-media img,
  .poster-preview img,
  .reel-slot,
  .lightbox,
  .reveal {
    transition: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stagger-item {
    opacity: 1;
    transform: none;
  }
}
