:root {
  --ink: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.72);
  --ember: #ff5a2a;
  --ember-2: #ffb08a;
  --cyan: #2ec8ff;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(6, 8, 12, 0.58);
  --font: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font);
}

body {
  overflow-x: hidden;
}

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

button, a { font-family: inherit; }

#stage,
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#stage { background: #000; }

#stage {
  z-index: 0;
  filter: contrast(1.06) brightness(1.18) saturate(1.12);
}

#particles { z-index: 1; }

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 200, 255, 0.16), rgba(255, 90, 42, 0.05) 42%, transparent 68%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #000;
  opacity: 0;
}

#track { height: 1800vh; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 32px;
  mix-blend-mode: normal;
}

.brand img {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(46, 200, 255, 0.25));
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-links button {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
}

.nav-links button:hover { color: #fff; }

.nav-cta,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ff7a45 0%, #ff3d16 100%);
  border: 1px solid rgba(255, 196, 160, 0.45);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 80, 30, 0.25), 0 0 28px rgba(255, 80, 30, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta { font-size: 13px; padding: 10px 16px; }

.cta svg { width: 18px; height: 18px; }

.nav-cta:hover,
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 180, 140, 0.6), 0 0 42px rgba(255, 90, 40, 0.72);
}

.scroll-readout {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  min-width: 52px;
  text-align: right;
}

.panel {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: flex;
  padding: 120px 7vw 80px;
  pointer-events: none;
  visibility: hidden;
}

.panel a,
.panel button { pointer-events: auto; }

.panel-center {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.panel-left { align-items: center; justify-content: flex-start; }
.panel-right { align-items: center; justify-content: flex-end; }
.panel-bottom { align-items: flex-end; justify-content: center; padding-bottom: 8vh; }
.panel-close {
  align-items: stretch;
  justify-content: center;
  background: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 16px;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; margin: 0; }

h1 {
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.95;
  max-width: 14ch;
  text-shadow: 0 0 32px rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 0.98;
  margin-bottom: 16px;
}

.lede {
  margin: 18px 0 28px;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ember-2);
  text-shadow: 0 0 18px rgba(255, 90, 42, 0.35);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 22px;
}

.copy {
  max-width: 560px;
  padding: 32px 32px 28px;
}

.copy p:last-of-type,
.profile-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.pills, .float-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.pills li, .float-chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(4, 8, 14, 0.78);
  border: 1px solid rgba(46, 200, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(46, 200, 255, 0.15), 0 0 22px rgba(46, 200, 255, 0.38), inset 0 0 14px rgba(46, 200, 255, 0.12);
  backdrop-filter: blur(12px);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

.pills li::before, .float-chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 2px #fff;
  flex: none;
}

.pills li:nth-child(even),
.float-chips li:nth-child(even) {
  border-color: rgba(255, 122, 69, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 90, 42, 0.18), 0 0 22px rgba(255, 90, 42, 0.42), inset 0 0 14px rgba(255, 90, 42, 0.12);
}

.pills li:nth-child(even)::before,
.float-chips li:nth-child(even)::before {
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember), 0 0 2px #fff;
}

.float-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  margin: 0;
}

.float-chips li {
  position: absolute;
  animation: drift 8s ease-in-out infinite;
}

.float-chips li::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0.55;
  animation: node-ping 2.6s ease-out infinite;
}

.float-chips li:nth-child(1) { top: 18%; left: 8%; color: var(--cyan); animation-delay: 0s; }
.float-chips li:nth-child(2) { top: 16%; right: 9%; color: var(--ember); animation-delay: -1.4s; }
.float-chips li:nth-child(3) { bottom: 18%; left: 10%; color: var(--cyan); animation-delay: -2.6s; }
.float-chips li:nth-child(4) { bottom: 16%; right: 11%; color: var(--ember); animation-delay: -0.8s; }
.float-chips li:nth-child(5) { top: 46%; right: 5%; color: var(--cyan); animation-delay: -2s; }

.float-chips li:nth-child(odd)::after { border-color: rgba(46, 200, 255, 0.7); }
.float-chips li:nth-child(even)::after { border-color: rgba(255, 122, 69, 0.75); }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes node-ping {
  0% { transform: scale(0.94); opacity: 0.65; }
  100% { transform: scale(1.18); opacity: 0; }
}

.bridge {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  align-items: center;
}

.bridge li {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bridge li span {
  border: 1px solid rgba(46, 200, 255, 0.45);
  color: var(--cyan);
  border-radius: 999px;
  padding: 7px 10px;
  box-shadow: 0 0 16px rgba(46, 200, 255, 0.18);
}

.bridge li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin: 0 6px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 8px var(--cyan);
}

.stats {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px;
}

.stats article {
  padding: 26px 24px 22px;
  border-right: 1px solid var(--line);
}

.stats article:last-child { border-right: 0; }

.stat-index {
  font-family: var(--mono);
  color: var(--ember);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.stats h3 {
  margin: 12px 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.stats p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.work {
  width: min(760px, 100%);
  padding: 28px 28px 22px;
  text-align: left;
}

.work h2 { margin-bottom: 18px; }

.gallery {
  width: min(1080px, 100%);
  padding: 26px 22px 18px;
  text-align: left;
}

.gallery h2 { margin-bottom: 16px; }

.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.shot {
  appearance: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 3 / 4;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 200, 255, 0.75);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 18px rgba(46, 200, 255, 0.25);
}

.gallery-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-dialog {
  width: min(920px, 94vw);
  text-align: center;
}

.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.gallery-dialog img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.work-list a,
.work-list .soon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.work-list a:hover {
  border-color: rgba(46, 200, 255, 0.7);
  box-shadow: 0 0 24px rgba(46, 200, 255, 0.18);
  transform: translateY(-2px);
}

.work-list span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.work-list small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.work-list .soon {
  grid-column: 1 / -1;
  color: var(--muted);
  border-style: dashed;
}

.work-list .soon span {
  font-weight: 500;
  font-size: 15px;
}

.close-inner {
  width: min(1120px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 28px;
  padding: 18px;
  align-items: center;
  margin-top: 8px;
}

.portrait {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px;
}

.role {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ember-2);
  margin: 0 0 8px;
}

.profile h3 { font-size: 40px; margin-bottom: 10px; }

.cta-small { padding: 10px 16px; font-size: 14px; }

.cert {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  text-align: left;
}

.cert img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cert span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px 32px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-foot strong { color: #fff; display: block; margin-bottom: 6px; }
.site-foot p { margin: 0; line-height: 1.5; }
.site-foot a { color: var(--ink); text-decoration: none; display: block; margin-bottom: 4px; }
.site-foot a:hover { color: var(--cyan); }
.legal { grid-column: 1 / -1; font-size: 12px; opacity: 0.7; }

.hint {
  position: fixed;
  left: 32px;
  bottom: 28px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--cyan), transparent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader p {
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.bar {
  width: min(280px, 70vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--ember));
  box-shadow: 0 0 12px var(--cyan);
}

.loader.is-done { opacity: 0; visibility: hidden; }

dialog {
  border: 1px solid var(--line);
  background: #07080b;
  color: white;
  border-radius: 18px;
  padding: 18px;
  width: min(720px, 94vw);
  max-height: 92vh;
  overflow: auto;
}

dialog img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

dialog::backdrop { background: rgba(0, 0, 0, 0.72); }

.dialog-close {
  appearance: none;
  margin-left: auto;
  display: block;
  margin-bottom: 10px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav { padding: 16px; gap: 12px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .brand img { width: 150px; }
  .panel { padding: 108px 20px 32px; }
  .panel-left, .panel-right, .panel-bottom { align-items: flex-end; justify-content: center; }
  .copy { max-width: none; }
  .stats { grid-template-columns: 1fr; }
  .stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .portrait { height: 160px; }
  .profile h3 { font-size: 32px; }
  .panel-close {
    overflow-y: auto;
    justify-content: flex-start;
    align-items: stretch;
    pointer-events: auto;
    overscroll-behavior-y: auto;
    padding-top: 88px;
    padding-bottom: 28px;
  }
  .close-inner {
    margin: 0 auto;
    justify-content: flex-start;
  }
  .cert { order: -1; }
  .cert img {
    width: 100%;
    height: min(52vh, 460px);
    object-fit: contain;
    object-position: center;
    background: #fff;
  }
  .site-foot { grid-template-columns: 1fr; margin-top: 16px; }
  .work-list { grid-template-columns: 1fr; }
  .gallery-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .shot {
    flex: 0 0 72%;
    scroll-snap-align: center;
    aspect-ratio: 3 / 4;
  }
  .work { padding: 22px 18px 16px; }
  h1 { max-width: 16ch; }
  .float-chips {
    position: static;
    justify-content: center;
    margin-top: 22px;
    gap: 8px;
  }
  .float-chips li {
    position: static;
    animation: none;
    padding: 8px 12px 8px 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .float-chips li::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .float-chips li, .hint i { animation: none; }
  .cursor-glow { display: none; }
}
