:root {
  color-scheme: dark;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  background: #000;
  --brand-glass: linear-gradient(135deg, rgba(58, 27, 9, .74), rgba(31, 15, 7, .36));
  --brand-shadow: 0 16px 48px rgba(226, 105, 34, .3), inset 0 0 0 1px rgba(255, 174, 107, .18);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body { color: #fff; background: #000; }
a { color: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .65rem .9rem;
  color: #000;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.gallery {
  position: absolute;
  top: 0;
  right: 0;
  width: min(68%, 61rem);
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 5%, #000 17%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 5%, #000 17%, #000 100%);
}

.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  opacity: 0;
  transform: scale(1.025);
  filter: saturate(.88) contrast(1.04);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.backdrop.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  animation: gallery-drift 6s linear both;
}

.gallery .backdrop:nth-child(even).active { animation-name: gallery-drift-reverse; }
.gallery .backdrop:nth-child(2) { object-position: 50% 54%; }
.gallery .backdrop:nth-child(3) { object-position: 50% 56%; }
.gallery .backdrop:nth-child(4) { object-position: 50% 50%; }
.gallery .backdrop:nth-child(5) { object-position: 50% 54%; }

.gallery-controls {
  position: absolute;
  z-index: 4;
  top: 51%;
  right: clamp(1.25rem, 3.8vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem;
  border-radius: 999px;
  background: var(--brand-glass);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(10px);
}

.gallery-progress {
  position: absolute;
  right: 0;
  bottom: -.65rem;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
}

.gallery-progress::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.gallery-controls.playing .gallery-progress::after {
  animation: gallery-progress var(--autoplay-delay, 6000ms) linear forwards;
}

.gallery-controls button {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .36);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .2s ease;
}

.gallery-controls button:hover { background: rgba(0, 0, 0, .68); }
.gallery-controls button:active { transform: scale(.94); }

.gallery-controls p {
  display: grid;
  min-width: 5.8rem;
  margin: 0;
  text-align: center;
}

.gallery-count {
  color: rgba(255, 255, 255, .6);
  font-size: .56rem;
  letter-spacing: .13em;
}

.gallery-title {
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-shadow: 0 2px 12px rgba(238, 112, 40, .85);
}

.gallery-controls p.updating {
  animation: label-update .35s cubic-bezier(.22, 1, .36, 1);
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .96) 28%, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .04) 82%),
    linear-gradient(0deg, rgba(0, 0, 0, .76) 0%, transparent 46%, rgba(0, 0, 0, .16) 100%);
}

.shell {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 3.8vw, 3.5rem);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.15rem, 2.6vh, 1.55rem) 0;
}

.mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.3vw, 2rem);
  padding: .58rem .85rem;
  border-radius: 999px;
  background: var(--brand-glass);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(10px);
}

.header nav a {
  font-size: .7rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .11em;
  transition: opacity .2s ease;
}

.header nav button {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .11em;
  cursor: pointer;
}

.header nav a:hover,
.header nav button:hover { opacity: .7; }

.menu-button,
.close-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: .5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button svg,
.close-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: clamp(.5rem, 2vh, 1.5rem);
}

.identity h1,
.discipline h2 {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .035em;
}

.identity h1 span,
.identity h1 strong,
.discipline h2 span,
.discipline h2 strong {
  display: block;
}

.identity h1 strong,
.discipline h2 strong,
.identity p,
.profile h2,
.services h2,
.headline span {
  font-family: "basis33", monospace;
  font-weight: 400;
}

.identity h1 strong,
.discipline h2 strong {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: .8;
}

.identity i {
  display: block;
  margin-top: .85rem;
  color: rgba(255, 255, 255, .5);
  font-size: .65rem;
  font-style: normal;
}

.identity p {
  margin: .25rem 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: clamp(.58rem, .78vw, .72rem);
  line-height: 1.28;
}

.profile h2,
.services h2 {
  margin: 0 0 .65rem;
  color: rgba(255, 255, 255, .52);
  font-size: clamp(.8rem, 1.1vw, 1rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.profile p,
.services ul {
  max-width: 14rem;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.68rem, .9vw, .83rem);
  line-height: 1.4;
}

.profile,
.services {
  align-self: start;
  padding: .85rem 1rem;
  border-radius: .35rem;
  background: var(--brand-glass);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(10px);
}

.profile p,
.services li {
  text-shadow: 0 2px 14px rgba(238, 112, 40, .78);
}

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

.spacer { flex: 1; min-height: 1rem; }
.bottom { padding-bottom: clamp(.7rem, 2vh, 1rem); }

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(1rem, 3vw, 3rem);
}

.headline {
  margin: 0;
  font-size: clamp(2.45rem, 4.25vw, 4.25rem);
  font-weight: 400;
  line-height: .72;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.headline span {
  display: inline-block;
  font-size: 1.25em;
  line-height: 0;
  vertical-align: baseline;
}

.actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1rem, 2.8vh, 1.6rem);
}

.showreel {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .75rem;
  min-height: 2.8rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .2s ease;
  box-shadow: var(--brand-shadow);
}

.showreel:hover { background: rgba(255, 255, 255, .12); }

.showreel svg {
  width: .9rem;
  height: .9rem;
  fill: currentColor;
}

.milestones {
  display: flex;
  align-items: stretch;
  align-self: flex-end;
  gap: .65rem;
}

.milestones > span {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .55rem .8rem;
  background: var(--brand-glass);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(10px);
}

.milestones strong { font-size: clamp(.72rem, 1vw, .9rem); }

.milestones small {
  color: rgba(255, 255, 255, .5);
  font-size: .58rem;
}

.bottom footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(.8rem, 2vh, 1.2rem);
  padding-top: clamp(.75rem, 1.6vh, 1rem);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.bottom footer p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(.58rem, .75vw, .68rem);
}

.bottom footer p:last-child { text-align: right; }
.bottom footer a { color: #ef4444; }

.mobile-menu {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, .96);
  backdrop-filter: blur(12px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}

.mobile-menu .close-button { display: block; }

.mobile-menu nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu nav > * {
  opacity: 0;
  transform: translateY(1rem);
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  cursor: pointer;
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu.open nav > * {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open nav > *:nth-child(1) { transition-delay: .1s; }
.mobile-menu.open nav > *:nth-child(2) { transition-delay: .16s; }
.mobile-menu.open nav > *:nth-child(3) { transition-delay: .22s; }
.mobile-menu.open nav > *:nth-child(4) { transition-delay: .28s; }
.mobile-menu.open nav > *:nth-child(5) { transition-delay: .34s; }
.mobile-menu.open nav > *:nth-child(6) { transition-delay: .4s; }

.world-panel {
  position: fixed;
  z-index: 60;
  inset: 0;
  padding: clamp(1.25rem, 3.8vw, 3.5rem);
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  background: #0a0a0a;
  transform: translateY(100%);
  transition: opacity .55s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}

.world-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.world-panel > header,
.world-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.world-panel > header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.world-panel > header p,
.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: .62rem;
  letter-spacing: .14em;
}

.panel-close {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.world-intro {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding: clamp(2.5rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
}

.world-intro h2 {
  margin: .75rem 0 0;
  font-size: clamp(3.2rem, 7.8vw, 8rem);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.045em;
}

.world-intro h2 span {
  font-family: "basis33", monospace;
  letter-spacing: .02em;
}

.world-copy > p {
  max-width: 26rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(.9rem, 1.35vw, 1.2rem);
  line-height: 1.45;
}

.world-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.world-stats span {
  display: grid;
  gap: .25rem;
  color: rgba(255, 255, 255, .5);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.world-stats strong {
  color: #fff;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.social-grid a {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.social-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}

.social-grid a::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, .9));
}

.social-grid a:hover img {
  filter: saturate(1);
  transform: scale(1.04);
}

.social-grid span {
  position: absolute;
  z-index: 1;
  right: .8rem;
  bottom: .8rem;
  left: .8rem;
  font-size: .6rem;
  letter-spacing: .11em;
}

.world-panel > footer {
  margin-top: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.world-panel > footer p {
  margin: 0;
  color: rgba(255, 255, 255, .45);
  font-size: .6rem;
}

.world-panel > footer div { display: flex; gap: 1.5rem; }
.world-panel > footer a { font-size: .68rem; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }

@keyframes gallery-drift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-.8%, -.5%, 0); }
}

@keyframes gallery-drift-reverse {
  from { transform: scale(1.01) translate3d(-.6%, -.4%, 0); }
  to { transform: scale(1.075) translate3d(.6%, .5%, 0); }
}

@keyframes gallery-progress {
  to { transform: scaleX(1); }
}

@keyframes label-update {
  from { opacity: .2; transform: translateY(.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes content-enter {
  from { opacity: 0; transform: translateY(.85rem); }
  to { opacity: 1; transform: translateY(0); }
}

.header {
  animation: content-enter .6s .05s both cubic-bezier(.22, 1, .36, 1);
}

.meta > div {
  animation: content-enter .65s both cubic-bezier(.22, 1, .36, 1);
}

.meta > div:nth-child(1) { animation-delay: .12s; }
.meta > div:nth-child(2) { animation-delay: .2s; }
.meta > div:nth-child(3) { animation-delay: .28s; }
.meta > div:nth-child(4) { animation-delay: .36s; }

.bottom {
  animation: content-enter .7s .42s both cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 1024px) {
  .backdrop { transform: scale(1.025); }
  .backdrop.active { transform: scale(1); }
}

@media (max-width: 767px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page,
  .shell {
    height: auto;
    min-height: 100svh;
  }

  .header nav { display: none; }
  .menu-button { display: block; }

  .gallery,
  .shade {
    position: fixed;
    height: 100svh;
  }

  .gallery {
    width: 100%;
  }

  .backdrop {
    object-position: 52% 28%;
    filter: saturate(.82) contrast(1.06);
  }

  .gallery .backdrop:nth-child(n+2) { object-position: 50% 48%; }

  .gallery-controls {
    position: absolute;
    top: auto;
    right: 1.15rem;
    bottom: 6.6rem;
    gap: 0;
    padding: .1rem .25rem;
  }

  .gallery-controls p { display: none; }
  .gallery-controls button {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background:
      radial-gradient(circle, rgba(0, 0, 0, .5) 0 14px, rgba(255, 255, 255, .38) 14.5px 15.5px, transparent 16px);
    font-size: .65rem;
  }

  .gallery-progress { bottom: -.25rem; }

  .shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .15)),
      linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, .5) 100%);
  }

  .meta {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: .4rem;
  }

  .discipline { text-align: right; }
  .profile, .services { margin-top: .35rem; }
  .services { position: relative; top: -3.5rem; text-align: right; }
  .services ul { margin-left: auto; }

  .bottom-grid { grid-template-columns: 1fr; gap: .9rem; }
  .headline { font-size: clamp(2rem, 8.9vw, 2.85rem); }
  .actions { gap: .75rem; }
  .showreel { min-height: 2.45rem; padding: 0 1rem; }
  .milestones { align-self: flex-start; }
  .milestones > span { padding: .42rem .65rem; }
  .bottom footer { grid-template-columns: 1fr; gap: .25rem; margin-top: .65rem; padding-top: .6rem; }
  .bottom footer p:last-child { text-align: left; }

  .world-panel { padding: 1.25rem; }
  .world-intro { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0 2rem; }
  .world-intro h2 { font-size: clamp(3rem, 16vw, 5rem); }
  .world-copy > p { margin-bottom: 1.25rem; }
  .social-grid { grid-template-columns: 1fr; }
  .world-panel > footer { align-items: flex-start; flex-direction: column; }
  .world-panel > footer div { width: 100%; justify-content: space-between; gap: .5rem; }
}

@media (max-width: 380px) {
  .profile,
  .services { padding: .65rem .75rem; }
  .headline { font-size: clamp(1.5rem, 7.5vw, 1.85rem); line-height: .78; }
  .headline span { font-size: 1.1em; }
}

@media (max-height: 700px) {
  .identity p, .services li:nth-child(n+5) { display: none; }
  .meta { margin-top: 0; }
  .profile h2, .services h2 { margin-bottom: .35rem; }
  .headline { font-size: clamp(1.9rem, 7.8vh, 3.8rem); }
  .bottom { padding-top: 4rem; padding-bottom: .75rem; }
}

@media (max-width: 380px) and (max-height: 700px) {
  .headline { font-size: clamp(1.5rem, 7.5vw, 1.85rem); }
}

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

  .backdrop { transform: none !important; }
  .gallery-progress { display: none; }
}

.low-motion .backdrop.active { animation: none; }
.low-motion .gallery-progress { display: none; }
