/* =========================================================
   Bryan Solon — infinite canvas portfolio
   Camera-driven 2D world. Scroll position = camera path.
   ========================================================= */

:root {
  --bg: #08080a;
  --bg-soft: #0f0f12;
  --text: #ece9e3;
  --muted: #918d86;
  --dim: #7d7a74;
  --line: rgba(236, 233, 227, 0.12);
  --line-strong: rgba(236, 233, 227, 0.26);
  --accent: #ff6b35;
  --accent-soft: #ff8a5c;
  --violet: #6e56cf;
  --teal: #2dd4bf;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(85% 60% at 50% -10%, rgba(110, 86, 207, 0.18), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(255, 107, 53, 0.08), transparent 70%);
}

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

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #0a0a0b;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.8rem;
  transition: top 0.3s var(--ease);
}

.skip:focus {
  top: 1rem;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---------------- atmosphere ---------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 50% 50%,
    transparent 45%,
    rgba(4, 4, 6, 0.55) 100%
  );
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    560px circle at var(--mx, 50%) var(--my, 35%),
    rgba(255, 107, 53, 0.1),
    rgba(110, 86, 207, 0.06) 45%,
    transparent 70%
  );
}

/* ---------------- HUD ---------------- */

.hud {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.86), transparent);
  pointer-events: none;
}

.hud > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.brand__name {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand__role {
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud__scene {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hud__num {
  color: var(--accent);
}

.hud__sep,
.hud__total {
  color: var(--dim);
}

.hud__label {
  margin-left: 0.75rem;
  color: var(--text);
  letter-spacing: 0.16em;
}

.sound {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.5);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    background 0.3s ease;
}

.sound:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.sound[aria-pressed="true"] {
  border-color: rgba(45, 212, 191, 0.55);
  color: var(--teal);
}

.sound__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound__bars i {
  display: block;
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  transition: height 0.4s var(--ease);
}

.sound[aria-pressed="true"] .sound__bars i {
  animation: bar 1.1s ease-in-out infinite alternate;
}

.sound[aria-pressed="true"] .sound__bars i:nth-child(2) {
  animation-delay: 0.18s;
}
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) {
  animation-delay: 0.36s;
}
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) {
  animation-delay: 0.54s;
}

@keyframes bar {
  from {
    height: 3px;
  }
  to {
    height: 12px;
  }
}

/* ---------------- rail ---------------- */

.rail {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.6rem);
  top: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateY(-50%);
}

.rail__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--dim);
  transition: color 0.3s ease;
}

.rail__item span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease);
}

.rail__item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition:
    background 0.3s ease,
    transform 0.4s var(--ease),
    border-color 0.3s ease;
}

.rail__item:hover,
.rail__item.is-active {
  color: var(--text);
}

.rail__item:hover span {
  opacity: 1;
  transform: none;
}

.rail__item.is-active i {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.8);
}

/* ---------------- scroll progress ---------------- */

.scrollbar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  width: 2px;
  background: rgba(236, 233, 227, 0.08);
}

.scrollbar i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, var(--accent), var(--violet));
}

/* ---------------- stage + world ---------------- */

.spacer {
  height: 940vh;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.grid {
  position: absolute;
  left: -1800px;
  top: -1300px;
  width: 9600px;
  height: 6400px;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236, 233, 227, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 233, 227, 0.05) 1px, transparent 1px),
    radial-gradient(closest-side, rgba(255, 107, 53, 0.1), transparent);
  background-size:
    120px 120px,
    120px 120px,
    100% 100%;
}

.map {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
  opacity: var(--mapOpacity, 0);
  transition: opacity 0.3s linear;
}

.map__route {
  fill: none;
  stroke: rgba(255, 107, 53, 0.55);
  stroke-width: 12;
  stroke-dasharray: 44 48;
  stroke-linecap: round;
}

.map__node {
  fill: rgba(255, 107, 53, 0.9);
}

.map__labels {
  position: absolute;
  left: 0;
  top: 0;
  opacity: var(--mapOpacity, 0);
  transition: opacity 0.3s linear;
}

.map__label {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: 112px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 233, 227, 0.45);
  transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%));
}

/* ---------------- panels ---------------- */

.panel {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 1200px);
  transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%))
    rotate(var(--rot, 0deg));
}

.label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}

.panel__title {
  font-size: 82px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.panel__title em {
  color: var(--accent-soft);
  font-size: 1.04em;
}

.panel__note {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
}

/* ---------------- islands: entrance + exit ----------------
   Every panel is an island. When the camera brings it on screen it performs
   its own entrance, and when the camera leaves it behind it performs its own
   exit. Each island has a pair all to itself, so no two sections move alike:

     intro    rift      rise out of blur, drift away overhead
     work     deal      cards fan in from the lower right, tossed away below
     gallery  bloom     tiles swell from a point, rush past the lens
     details  sweep     wiped in like a headline cut, wiped back out
     about    drift     copy from the left, photos from the right, retreat back
     motion   skew      the shell session shears in, shears away the other way
     contact  flatten   squashed wide then settled, folded back up

   Panels are tagged at boot; the stagger comes from --in-delay / --out-delay. */

.panel .in {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .panel .in {
    will-change: transform, opacity, filter;
  }

  .panel.is-live .in:not(.in--still) {
    animation-duration: 1.05s;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.24, 1);
    animation-fill-mode: both;
    animation-delay: var(--in-delay, 0ms);
  }

  /* the hero headline types itself in, so its block only joins the exits */
  .panel.is-live .in--still {
    opacity: 1;
  }

  .panel.is-out .in {
    animation-duration: 0.66s;
    animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.4);
    animation-fill-mode: both;
    animation-delay: var(--out-delay, 0ms);
  }

  /* -- intro : rift -- */

  .panel[data-scene="intro"].is-live .in:not(.in--still) {
    animation-name: island-rift;
  }

  .panel[data-scene="intro"].is-out .in {
    animation-name: island-rift-away;
  }

  @keyframes island-rift {
    0% {
      opacity: 0;
      transform: translate3d(0, 70px, 0) scale(0.95);
      filter: blur(12px);
    }

    58% {
      opacity: 1;
      filter: blur(0);
    }

    100% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }
  }

  @keyframes island-rift-away {
    0% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }

    100% {
      opacity: 0;
      transform: translate3d(0, -84px, 0) scale(1.07);
      filter: blur(10px);
    }
  }

  /* -- work : deal -- */

  .panel[data-scene="work"].is-live .in {
    animation-name: island-deal;
  }

  .panel[data-scene="work"].is-out .in {
    animation-name: island-toss;
  }

  @keyframes island-deal {
    0% {
      opacity: 0;
      transform: translate3d(58px, 98px, 0) rotate(4.5deg) scale(0.9);
    }

    70% {
      opacity: 1;
      transform: translate3d(0, -8px, 0) rotate(-0.8deg) scale(1.006);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes island-toss {
    0% {
      opacity: 1;
      transform: none;
    }

    100% {
      opacity: 0;
      transform: translate3d(-44px, 132px, 0) rotate(-6deg) scale(0.9);
    }
  }

  /* -- gallery : bloom -- */

  #panel-gallery.is-live .in {
    animation-name: island-bloom;
  }

  #panel-gallery.is-out .in {
    animation-name: island-rush;
  }

  @keyframes island-bloom {
    0% {
      opacity: 0;
      transform: scale(0.68) rotate(-3deg);
      filter: blur(9px);
    }

    64% {
      opacity: 1;
      transform: scale(1.028) rotate(0.4deg);
      filter: blur(0);
    }

    100% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }
  }

  @keyframes island-rush {
    0% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }

    100% {
      opacity: 0;
      transform: scale(1.24) rotate(1.5deg);
      filter: blur(13px);
    }
  }

  /* -- details : sweep -- */

  .panel[data-scene="details"].is-live .in {
    animation-name: island-sweep;
  }

  .panel[data-scene="details"].is-out .in {
    animation-name: island-sweep-away;
  }

  @keyframes island-sweep {
    0% {
      opacity: 0;
      clip-path: inset(0 100% 0 0);
    }

    100% {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }
  }

  @keyframes island-sweep-away {
    0% {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }

    100% {
      opacity: 0;
      clip-path: inset(0 0 100% 0);
    }
  }

  /* the characters of this island fall from above, untwisting as they land */
  .panel[data-scene="details"] .char {
    transform: translate3d(0, -0.6em, 0) rotate(-9deg);
    filter: blur(6px);
  }

  .panel[data-scene="details"].is-live .char {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  .panel[data-scene="details"].is-out .char {
    transition-duration: 0.45s;
    transition-delay: calc(var(--i) * 7ms);
    opacity: 0;
    transform: translate3d(0, 0.5em, 0) rotate(8deg);
    filter: blur(8px);
  }

  /* -- about : drift -- */

  .panel[data-scene="about"].is-live .about__copy {
    animation-name: island-drift-left;
  }

  .panel[data-scene="about"].is-live .doc {
    animation-name: island-drift-right;
  }

  .panel[data-scene="about"].is-out .about__copy {
    animation-name: island-retreat-left;
  }

  .panel[data-scene="about"].is-out .doc {
    animation-name: island-retreat-right;
  }

  @keyframes island-drift-left {
    0% {
      opacity: 0;
      transform: translate3d(-130px, 0, 0);
      filter: blur(5px);
    }

    100% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }
  }

  @keyframes island-drift-right {
    0% {
      opacity: 0;
      transform: translate3d(130px, 0, 0);
      filter: blur(5px);
    }

    100% {
      opacity: 1;
      transform: none;
      filter: blur(0);
    }
  }

  @keyframes island-retreat-left {
    0% {
      opacity: 1;
      transform: none;
    }

    100% {
      opacity: 0;
      transform: translate3d(-140px, 0, 0);
      filter: blur(7px);
    }
  }

  @keyframes island-retreat-right {
    0% {
      opacity: 1;
      transform: none;
    }

    100% {
      opacity: 0;
      transform: translate3d(140px, 0, 0);
      filter: blur(7px);
    }
  }

  /* -- motion : skew -- */

  .panel[data-scene="motion"].is-live .in {
    animation-name: island-skew;
  }

  .panel[data-scene="motion"].is-out .in {
    animation-name: island-skew-away;
  }

  @keyframes island-skew {
    0% {
      opacity: 0;
      transform: translate3d(150px, 26px, 0) skewX(-13deg);
    }

    72% {
      opacity: 1;
      transform: translate3d(-6px, 0, 0) skewX(1.6deg);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes island-skew-away {
    0% {
      opacity: 1;
      transform: none;
    }

    100% {
      opacity: 0;
      transform: translate3d(-164px, -22px, 0) skewX(11deg);
    }
  }

  /* -- contact : flatten -- */

  .panel[data-scene="contact"].is-live .in {
    animation-name: island-flatten;
  }

  .panel[data-scene="contact"].is-out .in {
    animation-name: island-fold;
  }

  @keyframes island-flatten {
    0% {
      opacity: 0;
      transform: translate3d(0, 46px, 0) scale(1.18, 0.76);
      filter: blur(7px);
    }

    68% {
      opacity: 1;
      transform: translate3d(0, -6px, 0) scale(0.99, 1.03);
      filter: blur(0);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes island-fold {
    0% {
      opacity: 1;
      transform: none;
    }

    100% {
      opacity: 0;
      transform: translate3d(0, 36px, 0) scale(0.86, 1.14);
      filter: blur(8px);
    }
  }

  /* these characters condense out of a wide, shattered setting */
  .panel[data-scene="contact"] .char {
    transform: translate3d(0, 0.95em, 0) scale(0.72);
    filter: blur(5px);
  }

  .panel[data-scene="contact"].is-live .char {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  .panel[data-scene="contact"].is-out .char {
    transition-duration: 0.42s;
    transition-delay: calc(var(--i) * 9ms);
    opacity: 0;
    transform: translate3d(0, -0.45em, 0) scale(0.9);
    filter: blur(6px);
  }
}

/* split characters */

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.85em) rotate(5deg);
  transition:
    transform 0.95s var(--ease),
    opacity 0.7s ease;
  transition-delay: calc(var(--i) * 20ms);
}

.is-live .char {
  opacity: 1;
  transform: none;
}

/* ---------------- hero ---------------- */

.panel--hero {
  padding-bottom: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 44px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(45, 212, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}

.hero__text {
  min-width: 0;
}

/* portrait */
.portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin: 34px 0 0;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.9) contrast(1.05);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.95);
  transform: scale(1.02);
  transition:
    transform 0.9s var(--ease),
    filter 0.6s ease;
}

.portrait:hover img {
  transform: scale(1.08);
  filter: saturate(1) contrast(1.06);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    transparent 54%,
    rgba(8, 8, 10, 0.62) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(236, 233, 227, 0.18);
}

.portrait__ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0 55%,
    rgba(255, 107, 53, 0.45) 76%,
    var(--accent) 86%,
    transparent 94%
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 1.5px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 1.5px)
  );
  animation: portrait-spin 18s linear infinite;
}

@keyframes portrait-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__title {
  font-size: 194px;
  line-height: 0.85;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__title em {
  color: var(--accent-soft);
  font-size: 1.02em;
}

/* typewriter hero */
.hero__title--type {
  font-size: 124px;
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.hero__title--type .type__line {
  display: block;
  white-space: nowrap;
  min-height: 1.04em;
}

.type__role {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: -0.01em;
  color: var(--accent-soft);
}

.type__caret {
  display: none;
  width: 0.055em;
  height: 0.86em;
  margin-left: 0.05em;
  vertical-align: -0.06em;
  background: var(--accent);
  animation: caret-blink 1.05s steps(1) infinite;
}

.type__line--intro .type__caret {
  width: 0.07em;
  height: 0.92em;
}

.hero__title--type.is-intro .type__line--intro .type__caret,
.hero__title--type.is-role .type__line--role .type__caret {
  display: inline-block;
}

.is-typing .type__caret {
  animation: none;
  opacity: 1;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.lede {
  max-width: 560px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0b;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.4s var(--ease),
    color 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: #0a0a0b;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 15px 26px;
  font-size: 15px;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.hint__line {
  position: relative;
  display: block;
  width: 70px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: hint-slide 2.6s var(--ease) infinite;
}

@keyframes hint-slide {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------------- work ---------------- */

.panel--work .panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.panel__headText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seeMore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.4s var(--ease);
}

.seeMore svg {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease);
}

.seeMore:hover {
  background: var(--text);
  color: #0a0a0b;
  border-color: var(--text);
  transform: translateY(-2px);
}

.seeMore:hover svg {
  transform: translate(3px, -3px);
}

/* ---------------- gallery ---------------- */

.panel--gallery {
  padding-bottom: 10px;
}

.panel__head--gallery {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}

.gallery__hint {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

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

.pcard {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.008)
  );
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition:
    translate 0.55s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.5s ease;
}

.pcard:hover {
  translate: 0 -8px;
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 50px 90px -60px rgba(255, 107, 53, 0.9);
}

.pcard .art {
  display: block;
  height: 240px;
  border-radius: 0;
}

.pcard .art::after {
  background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 10, 0.8));
}

.pcard__body {
  display: block;
  padding: 22px 22px 26px;
}

.pcard__year {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pcard__title {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.pcard__desc {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

.pcard__view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.pcard__view::after {
  content: "→";
  transition: transform 0.4s var(--ease);
}

.pcard:hover .pcard__view::after {
  transform: translateX(4px);
}

/* ---------------- explore mode ---------------- */

.explorebar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 230;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--ease);
}

body.exploring .explorebar {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.explorebar__hint {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.explorebar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.explorebar__controls button {
  min-width: 34px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.explorebar__controls button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.explorebar__controls .explorebar__back {
  background: var(--text);
  border-color: var(--text);
  color: #0a0a0b;
  font-weight: 500;
}

.explorebar__controls .explorebar__back:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
}

/* the chrome bows out when the gallery takes the screen: the HUD lifts and
   blurs away, the rail drifts off to the right, dot by dot */

.hud,
.rail,
.scrollbar {
  transition:
    opacity 0.45s var(--ease),
    transform 0.6s var(--ease),
    filter 0.5s ease;
}

.rail__item {
  transition:
    color 0.3s ease,
    opacity 0.4s var(--ease),
    transform 0.55s var(--ease);
}

body.exploring .hud {
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  filter: blur(7px);
  pointer-events: none;
}

body.exploring .hud > * {
  pointer-events: none;
}

body.exploring .rail {
  opacity: 0;
  transform: translate(20px, -50%);
  filter: blur(7px);
  pointer-events: none;
  transition-delay: 90ms;
}

body.exploring .rail__item {
  opacity: 0;
  transform: translate3d(12px, 0, 0);
  transition-delay: calc(90ms + var(--i, 0) * 24ms);
}

body.exploring .scrollbar {
  opacity: 0;
}

body.exploring .stage {
  cursor: grab;
}

body.is-dragging .stage {
  cursor: grabbing;
}

/* ---------------- project lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  overscroll-behavior: contain;
  transition: opacity 0.35s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1060px, 100%);
  max-height: 88vh;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: #0c0c0f;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s var(--ease);
}

.lightbox__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

/* previous / next */
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(1.5rem, 3vw, 2.75rem);
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 12, 0.72);
}

.lightbox__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s var(--ease);
}

.lightbox__step:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

.lightbox__step:active {
  transform: scale(0.97);
}

.lightbox__count {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lightbox.is-open .lightbox__panel {
  transform: none;
}

.lightbox__close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  background: rgba(12, 12, 15, 0.92);
  backdrop-filter: blur(8px);
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.lightbox__close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.lightbox__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 16px;
}

.lightbox__desc {
  max-width: 62ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

.lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lightbox__meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}

.lightbox__meta span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.lightbox__meta b {
  font-weight: 400;
  color: var(--text);
}

.lightbox__shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.shot {
  margin: 0;
}

.shot--wide,
.shot--full {
  grid-column: 1 / -1;
}

.shot__art {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0d;
}

.shot--wide .shot__art {
  aspect-ratio: 21 / 9;
}

.shot__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.shot--wide .shot__img {
  aspect-ratio: 21 / 9;
}

.shot__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 50% 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.shot figcaption {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.shot__art[data-art="mesh"] {
  background-image:
    linear-gradient(to right, rgba(236, 233, 227, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 233, 227, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 62% 38%, rgba(110, 86, 207, 0.55), transparent 62%);
  background-size:
    28px 28px,
    28px 28px,
    100% 100%;
  background-color: #0b0b0d;
}

.shot__art[data-art="rings"] {
  background-image:
    repeating-radial-gradient(
      circle at 50% 52%,
      rgba(255, 107, 53, 0.8) 0 1px,
      transparent 1px 28px
    ),
    radial-gradient(circle at 50% 52%, rgba(255, 107, 53, 0.3), transparent 62%);
  background-color: #0b0b0d;
}

.shot__art[data-art="bands"] {
  background-image:
    repeating-linear-gradient(
      112deg,
      #101014 0 24px,
      #17171e 24px 48px,
      #1e1e28 48px 72px
    ),
    radial-gradient(120% 90% at 85% 0%, rgba(45, 212, 191, 0.45), transparent 60%);
}

.shot__art[data-art="orb"] {
  background-image: radial-gradient(
    circle at 38% 34%,
    #ffd0b8 0%,
    #ff6b35 22%,
    #a33a12 48%,
    #2a1110 70%,
    #0b0b0d 88%
  );
}

.shot__art[data-art="wave"] {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(236, 233, 227, 0.07) 0 1px,
      transparent 1px 16px
    ),
    radial-gradient(120% 85% at 50% 115%, rgba(45, 212, 191, 0.55), transparent 58%);
  background-color: #0b0b0d;
}

.shot__art[data-art="type"] {
  display: grid;
  place-items: center;
  background-image: radial-gradient(
    circle at 30% 20%,
    rgba(255, 107, 53, 0.3),
    transparent 58%
  );
  background-color: #0b0b0d;
}

.shot__art[data-art="type"]::before {
  content: "Aa";
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(64px, 9vw, 130px);
  color: rgba(236, 233, 227, 0.88);
}


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

.card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.008)
  );
  transition:
    border-color 0.4s ease,
    translate 0.6s var(--ease),
    box-shadow 0.5s ease;
}

.card:hover {
  /* `translate` composes with the entrance animation's transform */
  translate: 0 -8px;
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 40px 80px -50px rgba(255, 107, 53, 0.8);
}

.art {
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0e;
}

.art__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

.pcard:hover .art__img,
.card:hover .art__img {
  transform: scale(1.035);
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 50% 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.art__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(236, 233, 227, 0.24);
  background: rgba(8, 8, 10, 0.45);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.art--a {
  background:
    repeating-radial-gradient(
      circle at 50% 55%,
      rgba(255, 107, 53, 0.85) 0 1px,
      transparent 1px 30px
    ),
    radial-gradient(circle at 50% 55%, rgba(255, 107, 53, 0.35), transparent 62%),
    radial-gradient(circle at 10% 10%, rgba(110, 86, 207, 0.55), transparent 50%),
    #0b0b0d;
}

.art--b {
  background:
    repeating-linear-gradient(
      112deg,
      #101014 0 22px,
      #16161c 22px 44px,
      #1d1d26 44px 66px
    ),
    radial-gradient(120% 100% at 85% 0%, rgba(45, 212, 191, 0.5), transparent 58%),
    radial-gradient(100% 110% at 10% 110%, rgba(110, 86, 207, 0.6), transparent 60%);
}

.art--c {
  background:
    radial-gradient(
      circle at 36% 32%,
      #ffd0b8 0%,
      #ff6b35 20%,
      #a33a12 44%,
      #2a1110 66%,
      #0b0b0d 84%
    ),
    #0b0b0d;
}

.card__body {
  padding: 22px 12px 12px;
}

.card__body h3 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 10px;
}

.card__body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------------- stack ---------------- */

.panel--statement {
  text-align: left;
}

.statement {
  font-size: 128px;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.stack__bg {
  position: absolute;
  inset: -20px -60px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.stack__head,
.stack {
  position: relative;
  z-index: 1;
}

.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-flow 84s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-name: marquee-flow-back;
  animation-duration: 101s;
}

.marquee__item {
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  margin-right: 76px;
}

.marquee img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.045;
  filter: brightness(0) invert(1);
}

.marquee__mono {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0.14;
}

@keyframes marquee-flow {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-flow-back {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.stack__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.44fr);
  gap: 70px;
  align-items: end;
}

.stack__note {
  max-width: 400px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  margin-top: 54px;
}

.stack__group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stack__title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.stack__list {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

.stack__list li {
  transition: color 0.25s ease;
}

.stack__list li:hover {
  color: var(--text);
}

.statement__line {
  display: block;
}

.statement__line--accent {
  color: var(--accent-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.statement__line--accent em {
  color: var(--text);
}

.statement__note {
  max-width: 620px;
  margin: 42px auto 0;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.statement__note em {
  color: var(--text);
  font-size: 1.06em;
}

/* ---------------- events & hackathons ---------------- */

.panel--about {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 32px;
}

.about__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 70px;
  align-items: end;
}

.about__text {
  max-width: 460px;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

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

.doc {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel, rgba(255, 255, 255, 0.03));
}

.doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(0.5) contrast(1.08) brightness(0.82);
  transform: scale(1.02);
  transition:
    filter 0.5s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.doc figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 40px 15px 13px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 8, 7, 0.96) 30%,
    rgba(8, 8, 7, 0.55) 65%,
    rgba(8, 8, 7, 0)
  );
}

.doc__name {
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.doc__meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.doc:hover img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.06);
}

/* ---------------- motion ---------------- */

.panel--motion {
  position: absolute;
}

.motion__title {
  font-size: 128px;
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.motion__row {
  display: block;
  white-space: nowrap;
  animation: sway 9s ease-in-out infinite alternate;
}

.motion__row--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 233, 227, 0.5);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  animation-direction: alternate-reverse;
  text-indent: 90px;
}

@keyframes sway {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: translateX(18px);
  }
}

.strip {
  margin: 26px 0 22px;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.strip__track {
  display: flex;
  width: max-content;
  animation: strip 22s linear infinite;
}

.strip__track span {
  padding-right: 16px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes strip {
  to {
    transform: translateX(-50%);
  }
}

.term__row {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  margin-top: 30px;
}

.term {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.72);
  overflow: hidden;
}

.term__bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.term__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
  opacity: 0.55;
}

.term__bar i:nth-child(2) {
  background: #febc2e;
}

.term__bar i:nth-child(3) {
  background: #28c840;
}

.term__body {
  padding: 16px 20px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.term__line {
  display: block;
}

.term__line--break {
  height: 0.7em;
}

.term__prompt {
  color: var(--accent-soft);
  font-weight: 500;
}

.term__line--ok {
  color: var(--teal);
  opacity: 0.85;
}

.term__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: 1px;
  box-shadow: 0 0 10px var(--teal);
}

.term__line--joke {
  color: var(--accent-soft);
}

.term__caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  transform: translateY(2px);
  background: var(--text);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.term__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.term__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.term__cta:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.07);
}

.term__hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

/* ---------------- contact ---------------- */

.panel--contact {
  text-align: center;
}

.contact__title .line {
  display: block;
  white-space: nowrap;
}

.contact__title {
  font-size: 148px;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin-bottom: 54px;
}

.contact__title em {
  color: var(--accent-soft);
  font-size: 1.02em;
}

.contact__row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.mail {
  font-size: 40px;
  letter-spacing: -0.03em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.mail:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
}

.copy {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.copy:hover,
.copy.is-done {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.55);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 66px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.socials a {
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--accent);
}

.socials a[target="_blank"]::after {
  content: "↗";
  margin-left: 5px;
  font-size: 0.85em;
  opacity: 0.55;
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 250;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 15, 18, 0.94);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.8rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Mobile: the camera is replaced by a linear, stacked read.
   ========================================================= */

@media (max-width: 760px) {
  .spacer {
    display: none;
  }

  .stage {
    position: static;
    overflow: visible;
  }

  .world {
    position: static;
    width: 100%;
    height: auto;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 6.5rem 1.25rem 4rem;
  }

  .grid {
    display: none;
  }

  .panel {
    position: static;
    width: 100%;
    transform: none !important;
    text-align: left;
  }

  .map,
  .map__labels,
  .rail,
  .scrollbar,
  .spotlight {
    display: none;
  }

  .hero__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portrait {
    width: 148px;
    max-width: 148px;
    justify-self: start;
    margin-top: 1.75rem;
  }

  .portrait__ring {
    inset: -9px;
  }

  .hero__title {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .hero__title--type {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .type__role {
    font-size: 0.66em;
  }

  .hero__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 38px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1.6rem;
  }

  .btn,
  .btn--ghost {
    justify-content: center;
  }

  .lede {
    font-size: 16px;
  }

  .hint {
    display: none;
  }

  .statement {
    font-size: clamp(2.1rem, 10.5vw, 3.4rem);
  }

  .stack__head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .panel--statement {
    position: relative;
  }

  .stack__bg {
    inset: 0;
  }

  .marquee__item {
    width: 108px;
    height: 108px;
    margin-right: 44px;
  }

  .marquee__mono {
    width: 94px;
    height: 94px;
    font-size: 20px;
  }

  .marquee img {
    opacity: 0.035;
  }

  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    margin-top: 2rem;
  }

  .stack__list,
  .stack__note {
    font-size: 15px;
  }

  .stack__title {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .panel__title {
    font-size: 2.1rem;
  }

  .panel__note,
  .about__text,
  .statement__note {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .panel--work .panel__head,
  .panel__head--gallery {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .seeMore {
    padding: 13px 20px;
    font-size: 14px;
  }

  .gallery__hint {
    white-space: normal;
    font-size: 10px;
  }

  .pgallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pcard .art {
    height: 200px;
  }

  .explorebar {
    display: none;
  }

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

  .lightbox__panel {
    padding: 0;
    max-height: 90vh;
  }

  .lightbox__scroll {
    padding: 1.25rem;
  }

  .lightbox__nav {
    padding: 12px 1.25rem;
  }

  .lightbox__step {
    padding: 8px 12px;
    font-size: 12px;
  }

  .art {
    height: 210px;
  }

  .card__body h3 {
    font-size: 1.5rem;
  }

  .panel--about {
    gap: 2rem;
  }

  .about__copy {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .doc__name {
    font-size: 12px;
  }

  .motion__title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .motion__row--outline {
    text-indent: 1.2rem;
    -webkit-text-stroke-width: 1px;
  }

  .term__row {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .term {
    width: 100%;
  }

  .term__side {
    margin-top: 0;
  }

  .term__cta {
    font-size: 14px;
    padding: 12px 20px;
  }

  .term__body {
    padding: 14px 16px 16px;
    font-size: 12px;
    line-height: 1.85;
  }

  .contact__title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .contact__title .line {
    white-space: normal;
  }

  .contact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mail {
    font-size: 1.4rem;
    word-break: break-all;
  }

  .socials {
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .brand__role {
    display: none;
  }

  .hud__scene {
    display: none;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .brand__role {
    display: none;
  }
}

/* ---------------- reduced motion ---------------- */

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

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

  .marquee__track {
    animation: none;
  }

  .type__caret {
    animation: none;
    opacity: 1;
  }

  .panel .in {
    opacity: 1;
    animation: none !important;
  }

  .boot {
    display: none;
  }
}

/* ---------------- boot splash ----------------
   Portrait first, then the name, then the photo flies into the hero
   portrait while the backdrop dissolves. */

.boot {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 42px;
}

.boot__veil,
.boot__glow {
  position: absolute;
  inset: 0;
}

.boot__veil {
  background: var(--bg);
  transition: opacity 0.62s ease 0.06s;
}

.boot__glow {
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 107, 53, 0.2),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 1s ease;
}

.boot.is-face .boot__glow {
  opacity: 1;
}

.boot__core {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}

.boot__face {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.62) rotate(-7deg);
  filter: blur(7px);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 0 60px -12px rgba(255, 107, 53, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.85);
  transition:
    opacity 0.5s ease,
    transform 0.9s cubic-bezier(0.2, 0.9, 0.24, 1),
    filter 0.65s ease;
  will-change: transform, opacity;
}

.boot.is-face .boot__face {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
}

.boot__burst,
.boot__ring {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.boot__burst {
  inset: 0;
  border: 2px solid rgba(255, 107, 53, 0.6);
}

.boot__ring {
  inset: -14px;
  border: 1px dashed var(--line-strong);
}

.boot.is-face .boot__burst {
  animation: bootBurst 1.15s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.boot.is-face .boot__ring {
  animation: bootRing 1.6s cubic-bezier(0.2, 0.8, 0.3, 1) both 0.1s;
}

@keyframes bootBurst {
  0% {
    opacity: 0.9;
    transform: scale(0.62);
  }

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

@keyframes bootRing {
  0% {
    opacity: 0;
    transform: scale(1.5) rotate(0deg);
  }

  30% {
    opacity: 0.8;
  }

  100% {
    opacity: 0.35;
    transform: scale(1) rotate(40deg);
  }
}

.boot__copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 96px;
  text-align: center;
  transition: opacity 0.4s ease;
}

.boot__name,
.boot__role {
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  transition:
    opacity 0.6s ease,
    transform 0.75s cubic-bezier(0.22, 0.9, 0.24, 1),
    filter 0.5s ease;
}

.boot.is-name .boot__name,
.boot.is-role .boot__role {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.boot__name {
  font-family: var(--font-serif);
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.boot__role {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  transition-delay: 0.08s;
}

/* hand-off: backdrop and copy clear while the photo travels to the hero */
.boot.is-flying .boot__veil,
.boot.is-flying .boot__glow,
.boot.is-flying .boot__copy {
  opacity: 0;
}

.boot.is-flying .boot__copy {
  transition: opacity 0.3s ease;
}

.boot.is-flying .boot__burst,
.boot.is-flying .boot__ring {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ---------------- intro reel ---------------- */

html.reel-lock,
html.reel-lock body {
  overflow: hidden;
}

/* the canvas keeps its entrance until the reel hands the page over */
html.reel-lock .panel .in {
  animation-play-state: paused;
}

.reel {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

.reel.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.reel__video.is-on {
  opacity: 1;
}

.reel__loader {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 40px;
  font-family: "Poppins", var(--font-sans);
  opacity: 0;
  transform: scale(0.62) rotate(-18deg);
  filter: blur(14px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease),
    filter 1s ease;
}

.reel__loader.is-in {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
}

.reel__loader.is-gone {
  opacity: 0;
  transform: scale(1.18) rotate(0deg);
  filter: blur(16px);
  pointer-events: none;
}

.reel__orbit {
  position: relative;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease);
}

.reel__orbit.is-full {
  transform: scale(1.08);
}

.reel__track {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.reel__track--a {
  inset: 0;
  border-color: var(--line-strong);
}

.reel__track--b {
  inset: 34px;
}

.reel__track--c {
  inset: 68px;
}

.reel__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.reel__ringTrack,
.reel__ringArc {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.reel__ringTrack {
  stroke: rgba(236, 233, 227, 0.07);
}

.reel__ringArc {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 628.32;
  stroke-dashoffset: 628.32;
  filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.55));
  transition: stroke-width 0.5s ease;
}

.reel__orbit.is-full .reel__ringArc {
  stroke-width: 3.4;
}

.reel__spin {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.reel__spin i {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
}

.reel__spin--a i {
  top: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(255, 107, 53, 0.95);
}

.reel__spin--b i {
  top: 31px;
  width: 6px;
  height: 6px;
  background: var(--text);
  box-shadow: 0 0 16px rgba(236, 233, 227, 0.65);
}

.reel__spin--c i {
  top: 66px;
  width: 4px;
  height: 4px;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.85);
}

.reel__core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 13px;
  text-align: center;
}

.reel__pct {
  font-family: "Poppins", var(--font-sans);
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: transform 0.5s var(--ease);
}

.reel__orbit.is-full .reel__pct {
  transform: scale(1.12);
}

.reel__pct span:last-child {
  margin-left: 2px;
  font-size: 0.36em;
  letter-spacing: 0;
  color: var(--dim);
}

.reel__label {
  font-family: "Poppins", var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.reel__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
}

.reel__mark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.9);
  animation: reel-blink 1.6s ease-in-out infinite;
}

@keyframes reel-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.reel__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 32px;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

.reel__hud.is-on {
  opacity: 1;
}

.reel__count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.reel__count b {
  font-weight: 500;
  color: #fff;
}

.reel__skip {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.reel__skip:hover {
  background: var(--accent);
  border-color: transparent;
  color: #0a0a0b;
}

@media (max-width: 760px) {
  .reel__hud {
    padding: 0 18px 22px;
  }

  .reel__orbit {
    width: 218px;
    height: 218px;
  }

  .reel__pct {
    font-size: 40px;
  }

  .reel__loader {
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel {
    display: none;
  }
}
