:root {
  --v3-bg: #05080d;
  --v3-surface: #0a1018;
  --v3-fg: #eef3f7;
  --v3-accent: #4da3ff;
  --v3-highlight: #8dd8ff;
  --v3-muted: #8f9aa8;
  --v3-grid: rgba(141, 216, 255, 0.14);
  --v3-pointer-x: 50vw;
  --v3-pointer-y: 50vh;
}

html,
body.v3-field {
  overflow-x: clip;
}

body.v3-field {
  background:
    radial-gradient(circle at var(--v3-pointer-x) var(--v3-pointer-y), rgba(77, 163, 255, 0.055), transparent 24rem),
    linear-gradient(180deg, var(--v3-bg), #070b11 48%, #04070b);
  color: var(--v3-fg);
  cursor: none;
}

body.v3-field a,
body.v3-field button,
body.v3-field [role="button"] {
  cursor: none;
}

.v3-cursor-reticle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 24px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  color: var(--v3-highlight);
  transform: translate3d(-40px, -40px, 0);
  transition: opacity 160ms ease, color 180ms ease, filter 180ms ease;
  will-change: transform;
}

.v3-cursor-reticle.is-v3-visible {
  opacity: 1;
}

.v3-cursor-reticle svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  transform-origin: center;
  animation: v3ReticleSpin 3.2s linear infinite;
}

.v3-cursor-reticle circle {
  fill: currentColor;
  stroke: none;
}

.v3-cursor-reticle.is-v3-active {
  color: #b9e9ff;
  filter: drop-shadow(0 0 7px rgba(77, 163, 255, 0.72));
}

.v3-cursor-reticle.is-v3-active svg {
  animation: v3ReticleLock 800ms cubic-bezier(0.16, 1, 0.3, 1) both, v3ReticleSpin 1.1s linear 800ms infinite;
}

.v3-cursor-reticle.is-v3-active circle {
  animation: v3ReticleDot 800ms ease both;
}

@keyframes v3ReticleSpin {
  to { transform: rotate(360deg); }
}

@keyframes v3ReticleLock {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(0.72) rotate(135deg); }
  100% { transform: scale(1) rotate(270deg); }
}

@keyframes v3ReticleDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 1; transform: scale(2.2); }
}

body.v3-field::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.v3-field-canvas {
  position: fixed;
  inset: 0;
  z-index: 12;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.v3-boot-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: var(--v3-bg);
}

.v3-boot-grid {
  position: absolute;
  inset: -12%;
  opacity: 0;
  transform: scale(0.7);
  background-image:
    linear-gradient(var(--v3-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--v3-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 58%);
}

.v3-reticle {
  position: relative;
  width: 24px;
  height: 24px;
  opacity: 0;
  border: 1px solid var(--v3-highlight);
  box-shadow: 0 0 26px rgba(141, 216, 255, 0.3);
}

.v3-reticle::before,
.v3-reticle::after {
  content: "";
  position: absolute;
  background: var(--v3-highlight);
}

.v3-reticle::before {
  top: 10px;
  left: -6px;
  width: 34px;
  height: 1px;
}

.v3-reticle::after {
  top: -6px;
  left: 10px;
  width: 1px;
  height: 34px;
}

body.v3-field .hero-video-stage::after {
  background:
    radial-gradient(circle at 50% 42%, transparent 16%, rgba(5, 8, 13, 0.22) 53%, rgba(5, 8, 13, 0.82) 100%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.2), rgba(5, 8, 13, 0.52) 72%, var(--v3-bg));
}

body.v3-field .hero-title,
body.v3-field .display-title,
body.v3-field .contact-copy h2 {
  color: var(--v3-fg);
}

body.v3-field .hero-title-accent,
body.v3-field .v3-title-accent,
body.v3-field .filter-button.is-active,
body.v3-field .timeline time,
body.v3-field .library-count {
  color: var(--v3-accent);
}

body.v3-field .v3-title-accent {
  color: var(--v3-accent);
  text-shadow: 0 0 34px rgba(77, 163, 255, 0.16);
}

body.cinematic-portfolio.v3-field .hero-title .hero-title-accent {
  color: var(--v3-accent);
  -webkit-text-fill-color: var(--v3-accent);
  text-shadow: 0 0 40px rgba(77, 163, 255, 0.18);
}

body.v3-field .hero-subtitle,
body.v3-field p {
  color: var(--v3-muted);
}

body.v3-field .primary-action {
  border: 1px solid rgba(141, 216, 255, 0.72);
  background: var(--v3-accent);
  color: #05101b;
  box-shadow: 0 0 0 1px rgba(141, 216, 255, 0.08), 0 18px 52px rgba(77, 163, 255, 0.2);
}

body.v3-field .secondary-action,
body.v3-field .filter-button {
  border-color: rgba(141, 216, 255, 0.12);
  background: rgba(5, 10, 17, 0.68);
  color: rgba(238, 243, 247, 0.72);
}

body.v3-field .filter-button.is-active {
  border-color: rgba(77, 163, 255, 0.68);
  background:
    linear-gradient(90deg, rgba(77, 163, 255, 0.16), rgba(141, 216, 255, 0.05)),
    rgba(5, 10, 17, 0.88);
  box-shadow: inset 0 -1px 0 var(--v3-accent), 0 0 30px rgba(77, 163, 255, 0.12);
}

body.v3-field .library-tools {
  border-color: rgba(141, 216, 255, 0.12);
  background: rgba(5, 8, 13, 0.82);
}

body.v3-field .workflow-panel,
body.v3-field .library-section .work-card,
body.v3-field .contact-item,
body.v3-field .qr-code-card {
  --v3-tilt-x: 0deg;
  --v3-tilt-y: 0deg;
  --v3-shift-x: 0px;
  --v3-shift-y: 0px;
  transform: perspective(1100px) rotateX(var(--v3-tilt-x)) rotateY(var(--v3-tilt-y)) translate3d(var(--v3-shift-x), var(--v3-shift-y), 0);
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease, box-shadow 360ms ease;
}

body.v3-field .workflow-panel.is-v3-targeted,
body.v3-field .library-section .work-card.is-v3-targeted {
  border-color: rgba(141, 216, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(141, 216, 255, 0.08), 0 28px 84px rgba(0, 0, 0, 0.34), 0 0 38px rgba(77, 163, 255, 0.09);
}

body.v3-field .workflow-panel.is-v3-targeted img,
body.v3-field .library-section .work-card.is-v3-targeted img {
  transform: translate3d(calc(var(--v3-shift-x) * -0.7), calc(var(--v3-shift-y) * -0.7), 18px) scale(1.018) !important;
}

body.v3-field .display-title.is-v3-glitch {
  text-shadow: 3px 0 rgba(77, 163, 255, 0.46), -2px 0 rgba(141, 216, 255, 0.26);
  transform: translate3d(2px, 0, 0);
}

body.v3-field .qr-code-card {
  overflow: hidden;
}

body.v3-field .qr-code-card::after {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  z-index: 4;
  height: 34%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(141, 216, 255, 0.2), transparent);
  transform: translateY(-130%);
}

body.v3-field .qr-code-card.is-v3-scanning {
  box-shadow: inset 0 0 0 1px var(--v3-highlight), 0 0 34px rgba(77, 163, 255, 0.16);
}

body.v3-field .qr-code-card.is-v3-scanning::after {
  opacity: 1;
  animation: v3QrScan 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.v3-field .timeline li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color 300ms ease, box-shadow 300ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.v3-field .timeline li > * {
  position: relative;
  z-index: 1;
}

body.v3-field .timeline li::before,
body.v3-field .timeline li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

body.v3-field .timeline li::before {
  background:
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) left top / 24px 1px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) left top / 1px 24px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) right top / 24px 1px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) right top / 1px 24px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) left bottom / 24px 1px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) left bottom / 1px 24px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) right bottom / 24px 1px no-repeat,
    linear-gradient(var(--v3-highlight), var(--v3-highlight)) right bottom / 1px 24px no-repeat;
  transform: scale(1.035);
}

body.v3-field .timeline li::after {
  background: linear-gradient(180deg, transparent 0%, rgba(141, 216, 255, 0.16) 48%, transparent 100%);
  transform: translateY(-110%);
}

body.v3-field .timeline li.is-v3-selected {
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.09), rgba(141, 216, 255, 0.018));
  box-shadow: inset 0 0 0 1px rgba(141, 216, 255, 0.12), 0 0 28px rgba(77, 163, 255, 0.08);
  transform: translate3d(0, -4px, 0);
}

body.v3-field .timeline li.is-v3-selected::before {
  opacity: 0.85;
  transform: scale(1);
  transition: opacity 180ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.v3-field .timeline li.is-v3-selected::after {
  animation: v3TimelineScan 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.v3-field .timeline li.is-v3-selected time {
  color: var(--v3-highlight);
  text-shadow: 0 0 18px rgba(77, 163, 255, 0.3);
}

body.v3-field .timeline li.is-v3-selected h3 {
  color: var(--v3-ink);
}

body.v3-field .timeline li.is-v3-selected p {
  color: rgba(238, 247, 255, 0.72);
}

@keyframes v3TimelineScan {
  0% { opacity: 0; transform: translateY(-110%); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translateY(110%); }
}

@keyframes v3QrScan {
  from { transform: translateY(-130%); }
  to { transform: translateY(480%); }
}

@media (pointer: coarse) {
  .v3-field-canvas,
  .v3-cursor-reticle {
    display: none;
  }

  body.v3-field,
  body.v3-field a,
  body.v3-field button,
  body.v3-field [role="button"] {
    cursor: auto;
  }
}

@media (max-width: 760px) {
  body.v3-field .hero-title {
    max-width: 100%;
  }

  body.v3-field .hero-title-line {
    white-space: nowrap;
  }

  body.v3-field .about-section .about-top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  body.v3-field .about-photo {
    justify-self: center;
  }

  body.v3-field .about-copy {
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  body.v3-field .about-summary {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
  }

  body.v3-field .about-section .about-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 560px;
    padding: 12px 0;
  }

  body.v3-field .about-section .about-facts article {
    min-width: 0;
    padding: 10px 8px;
    border-right: 1px solid rgba(141, 216, 255, 0.16);
    border-bottom: 0;
    justify-items: center;
    text-align: center;
  }

  body.v3-field .about-section .about-facts article:last-child {
    border-right: 0;
  }

  body.v3-field .about-facts strong {
    font-size: clamp(30px, 8vw, 40px);
    white-space: nowrap;
  }

  body.v3-field .about-facts span {
    font-size: 12px;
    line-height: 1.35;
  }

  body.cinematic-portfolio.kinetic-v2.v3-field .contact-intro,
  body.cinematic-portfolio.kinetic-v2.v3-field .contact-intro p {
    justify-items: center;
    margin-inline: auto;
    text-align: center;
  }

  body.cinematic-portfolio.kinetic-v2.v3-field .contact-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  body.v3-field .contact-list {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    align-items: center;
  }

  body.v3-field .contact-item,
  body.v3-field .contact-item[href^="mailto"],
  body.v3-field .contact-item[href^="tel"] {
    width: min(100%, 420px);
    min-width: 0;
    max-width: 420px;
    margin-inline: auto;
    justify-items: center;
    text-align: center;
  }

  body.v3-field .qr-code-card {
    justify-self: center;
    width: min(260px, 72vw);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-field-canvas,
  .v3-boot-layer,
  .v3-cursor-reticle {
    display: none !important;
  }

  body.v3-field [data-reveal],
  body.v3-field .workflow-panel,
  body.v3-field .library-section .work-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.v3-field .timeline li.is-v3-selected::after,
  .v3-cursor-reticle.is-v3-active svg,
  .v3-cursor-reticle.is-v3-active circle {
    animation: none !important;
  }
}
