﻿:root {
  --bg-primary: #6F6F69;
  --text-primary: #ffffff;
  --text-secondary: #101010;
  --accent: rgba(255, 255, 255, 0.1);
  --hero-background: url('assets/hero.jpg');
  --dynamic-nav-offset: clamp(32px, 6vw, 72px);
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body.is-gallery-open {
  overflow: hidden;
}

[data-loader] {
  --loader-duration: 2800ms;
}

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

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

body.is-loading {
  overflow: hidden;
  touch-action: none;
}

body.is-loading > :not(.loader) {
  pointer-events: none;
  user-select: none;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: clamp(1.2rem, 4vw, 1.8rem);
  width: min(280px, 70vw);
  text-align: center;
}

.loader-figure {
  width: clamp(140px, 40vw, 200px);
  height: clamp(140px, 40vw, 200px);
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.45));
}

.loader-progress {
  width: min(280px, 72vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
  position: relative;
}

.loader-progress__bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.9));
  transform: scaleX(0);
  transform-origin: left center;
  animation: loader-progress-fill var(--loader-duration) ease-out forwards;
}

@keyframes loader-progress-fill {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

[id] {
  scroll-margin-top: calc(var(--dynamic-nav-offset) + 56px);
}

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

header {
  padding: 3rem 5vw 6rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.brand a {
  color: inherit;
}

.local-time {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  min-width: 4.5rem;
  text-align: right;
}

.dynamic-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), padding 0.6s ease, background-color 0.6s ease, box-shadow 0.6s ease, gap 0.6s ease;
}

.dynamic-nav.is-expanded {
  transform: translateX(-50%) scale(1);
  padding: 0.75rem 1.9rem;
  gap: 1.8rem;
  background-color: rgba(0, 0, 0, 0.78);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.dynamic-nav.is-collapsed {
  transform: translateX(-50%) scale(0.88);
  padding: 0.45rem 1rem;
  gap: 1.1rem;
  background-color: rgba(0, 0, 0, 0.48);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.dynamic-nav a {
  position: relative;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}

.dynamic-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0;
}

.dynamic-nav a.is-active,
.dynamic-nav a:hover {
  opacity: 1;
}

.dynamic-nav a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.dynamic-nav.is-collapsed a {
  opacity: 0.55;
  letter-spacing: 0.12em;
}

.hero {
  position: relative;
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2.8rem, 6vw, 3.8rem);
  border-radius: clamp(2rem, 4vw, 2.8rem);
  background-image: var(--hero-background);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  animation: hero-surface 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.38) 55%, rgba(10, 10, 10, 0.6) 100%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes hero-surface {
  0% {
    opacity: 0;
    transform: translate3d(0, 60px, 0) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

.hero-copy blockquote footer {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.hero-media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.hero-media img {
  width: clamp(280px, 36vw, 440px);
  max-width: 100%;
  border-radius: 1.6rem 2.8rem 2.4rem 1.6rem;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(-100px);
}

.scroll-hint {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  animation: hintPulse 3.5s ease-in-out infinite;
}

.scroll-hint::before {
  content: "";
  width: 36px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  display: block;
}

main {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 0 5vw 6rem;
}

section {
  display: grid;
  gap: 2.5rem;
}

.float-section {
  position: relative;
  min-height: 240vh;
  display: flex;
  align-items: stretch;
}

.float-track {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4rem, 12vw, 8rem);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.float-panels {
  width: min(960px, 100%);
  display: grid;
  gap: 0;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  position: relative;
}

.float-panel {
  --panel-padding: clamp(2rem, 6vw, 3rem);
  --tab-height: clamp(2.1rem, 5vw, 2.8rem);
  --folder-overlap: clamp(5.2rem, 11vw, 7rem);
  --stack-offset: var(--folder-overlap);
  --panel-surface: rgba(25, 25, 25, 0.82);
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-text: var(--text-primary);
  --panel-muted: rgba(255, 255, 255, 0.7);
  --panel-border-subtle: rgba(255, 255, 255, 0.12);
  --tab-color: rgba(44, 44, 44, 0.95);
  --tab-text: var(--text-primary);
  --panel-delay: var(--delay, 0s);
  --unmask-duration: 0.9s;
  --unmask-ease: cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 1.6rem 2.8rem 2.4rem 1.6rem;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  padding: calc(var(--panel-padding) + var(--tab-height)) var(--panel-padding) var(--panel-padding);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.2rem);
  position: relative;
  overflow: visible;
  isolation: isolate;
  color: var(--panel-text);
  margin-top: calc(var(--folder-overlap) * -1);
  --stack-transform: translate3d(0, var(--stack-offset), 0);
  transition:
    transform var(--stack-speed, 0.7s) cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease,
    border-color 0.6s ease,
    background 0.6s ease;
  z-index: 7;
  will-change: transform, box-shadow;
}

.float-panel.is-stacked {
  --stack-offset: var(--folder-overlap);
  animation: stackLift var(--stack-speed, 0.7s) var(--panel-delay) var(--unmask-ease) both;
}

.float-panel > * {
  position: relative;
  z-index: 1;
}

.float-panel__tab {
  position: absolute;
  top: calc(-1 * var(--tab-height) + 4px);
  left: calc(var(--panel-padding) + var(--tab-offset, 0px));
  height: var(--tab-height);
  padding: 0 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--tab-color);
  color: var(--tab-text);
  border-radius: 1.3rem 1.3rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 6;
  font-weight: 600;
  line-height: 1;
}

.float-panel__tab::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1.75rem;
  width: 1.75rem;
  height: 100%;
  background: inherit;
  border-radius: 0 1.2rem 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 32% 100%);
  box-shadow: inherit;
}

.float-panel__tab-index {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
}

.float-panel__tab-title {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.float-panel:nth-of-type(1) {
  z-index: 7;
  --panel-surface: rgba(235, 235, 235, 0.98);
  --panel-border: rgba(20, 20, 20, 0.12);
  --panel-text: #151515;
  --panel-muted: rgba(21, 21, 21, 0.66);
  --panel-border-subtle: rgba(21, 21, 21, 0.18);
  --tab-color: rgba(225, 225, 225, 0.98);
  --tab-text: #151515;
  --tab-offset: 0px;
  --stack-speed: 0.75s;
}

.float-panel:nth-of-type(2) {
  z-index: 8;
  --panel-surface: rgba(60, 60, 60, 0.92);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-text: #f3f3f3;
  --panel-muted: rgba(243, 243, 243, 0.72);
  --panel-border-subtle: rgba(243, 243, 243, 0.18);
  --tab-color: rgba(70, 70, 70, 0.96);
  --tab-text: #f3f3f3;
  --folder-overlap: clamp(6rem, 12vw, 8.2rem);
  --tab-offset: clamp(3rem, 12vw, 6rem);
  --stack-speed: 0.65s;
}

.float-panel:nth-of-type(3) {
  z-index: 9;
  --panel-surface: rgba(16, 16, 16, 0.94);
  --panel-border: rgba(255, 255, 255, 0.22);
  --panel-text: #fafafa;
  --panel-muted: rgba(250, 250, 250, 0.68);
  --panel-border-subtle: rgba(250, 250, 250, 0.24);
  --tab-color: rgba(22, 22, 22, 0.96);
  --tab-text: #fafafa;
  --folder-overlap: clamp(6.8rem, 13vw, 9.6rem);
  --tab-offset: clamp(6rem, 14vw, 9rem);
  --stack-speed: 0.55s;
}

.float-panel::before,
.float-panel::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--unmask-duration) var(--unmask-ease),
    clip-path var(--unmask-duration) var(--unmask-ease);
  transition-delay: var(--panel-delay);
  will-change: transform, opacity, clip-path;
}

.float-panel::before {
  background: linear-gradient(170deg, rgba(8, 8, 8, 0.95) 0%, rgba(16, 16, 16, 0.82) 36%, rgba(60, 60, 60, 0.35) 70%, transparent 90%);
  clip-path: inset(0 0 0 0);
  transform-origin: top center;
  transform: perspective(1400px) rotateX(0deg);
  opacity: 1;
  z-index: 9;
}

.float-panel::after {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.18) 40%, transparent 78%);
  opacity: 0.4;
  z-index: 10;
  mix-blend-mode: screen;
  clip-path: inset(0 0 0 0);
  transform-origin: top center;
  transition-delay: calc(var(--panel-delay) + 0.08s);
}

.float-panel.is-visible::before,
.float-panel.is-visible::after {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}

.float-panel.is-visible::before {
  transform: perspective(1400px) rotateX(-88deg);
}

.float-panel.is-visible::after {
  transform: translate3d(0, -30%, 0);
  opacity: 0;
}

.float-panel__header {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
}

.float-panel__tag {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--panel-muted);
}

.float-panel__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.float-panel__intro {
  margin: 0;
  max-width: 520px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-muted);
}

.float-panel .brand-strip {
  width: 100%;
}

.recognitions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.recognitions-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--panel-border-subtle);
}

.recognitions-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recognitions-placeholder {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.recognitions-project {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recognitions-meta {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--panel-muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  opacity: 0.65;
}

.section-heading > span {
  font-size: 1.6rem;
  letter-spacing: normal;
  text-transform: none;
}

.brand-strip {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%) rgba(0, 0, 0, 0.18);
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 12%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.85) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 12%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.85) 88%, transparent 100%);
}

.brand-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(111, 111, 105, 0.95) 0%, rgba(111, 111, 105, 0) 14%, rgba(111, 111, 105, 0) 86%, rgba(111, 111, 105, 0.95) 100%);
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  padding-inline: 2.2rem;
  animation: brandMarquee 24s linear infinite;
}

.brand-strip:hover .brand-track {
  animation-play-state: paused;
}

.brand-strip img {
  max-height: 60px;
  filter: grayscale(1) brightness(1.25) contrast(1.1);
  opacity: 0.82;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1.2rem;
  border-radius: 1rem;
  transition: transform 0.5s ease, opacity 0.35s ease, filter 0.45s ease;
}

.brand-strip img:hover {
  filter: grayscale(0.2) brightness(1.4);
  opacity: 1;
  transform: translateY(-10px) scale(1.05);
}

.works-list {
  display: grid;
  gap: 1.8rem;
}

.work-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem;
  border-radius: 1.4rem;
  background-color: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.work-item header {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.work-item h3 {
  margin: 0;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.work-item:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(0, 0, 0, 0.22);
}

.work-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(0, 0, 0, 0.2);
  width: clamp(140px, 24vw, 220px);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-copy {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.gallery-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 4vw, 1.8rem);
  align-items: center;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 1.6rem;
  position: relative;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.85), rgba(30, 30, 30, 0.72));
}

.gallery-track {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  transform: translate3d(0, 0, 0);
  transition: transform var(--gallery-speed, 0.65s) cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1.2rem);
  opacity: 0.64;
  transition: opacity 0.45s ease;
  position: relative;
}

.gallery-slide.is-active {
  opacity: 1;
}

.gallery-slide-button {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  border-radius: clamp(1.25rem, 4vw, 1.8rem);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-slide-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.gallery-slide-caption {
  position: absolute;
  top: clamp(0.55rem, 2.8vw, 1.1rem);
  left: calc(50% + min(300px, 40vw));
  transform: translateX(clamp(0.5rem, 2vw, 1rem));
  font-style: italic;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  text-align: left;
  max-width: min(260px, 32vw);
}

body.is-gallery-open .gallery-slide-caption {
  display: none;
}

body.is-gallery-open .gallery-lightbox__caption {
  display: none;
}

.gallery-slide-button:hover,
.gallery-slide-button:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  outline: none;
}

.gallery-slide-button img {
  width: min(680px, 100%);
  height: clamp(320px, 48vw, 460px);
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.gallery-nav {
  --nav-translate-y: 0;
  width: clamp(2.7rem, 6vw, 3.4rem);
  height: clamp(2.7rem, 6vw, 3.4rem);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 15, 0.65);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(var(--nav-translate-y));
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  transform: translateY(calc(var(--nav-translate-y, 0) - 2px)) scale(1.05);
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.gallery-nav--prev {
  justify-self: end;
}

.gallery-nav--next {
  justify-self: start;
}

.gallery-nav[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 6vw, 3rem);
  background-color: rgba(0, 0, 0, 0.78);
  z-index: 70;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(960px, 92vw);
  max-height: 90vh;
  padding: clamp(0.75rem, 2vw, 1.4rem);
  border-radius: 1.5rem;
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.6);
}

.gallery-lightbox__content img {
  display: block;
  width: 100%;
  max-height: calc(90vh - clamp(2.2rem, 6vw, 3rem));
  object-fit: contain;
  border-radius: 1rem;
}

.gallery-lightbox__caption {
  margin-top: clamp(0.65rem, 3vw, 1rem);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  text-align: center;
}

.gallery-lightbox__close {
  position: absolute;
  top: clamp(0.4rem, 1.5vw, 0.8rem);
  right: clamp(0.4rem, 1.5vw, 0.8rem);
  border: 0;
  background: rgba(30, 30, 30, 0.85);
  color: rgba(255, 255, 255, 0.9);
  width: clamp(2.2rem, 5vw, 2.8rem);
  height: clamp(2.2rem, 5vw, 2.8rem);
  border-radius: 999px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  transform: scale(1.08);
  background: rgba(45, 45, 45, 0.95);
  outline: none;
}

@media (max-width: 720px) {
  .gallery-slider {
    grid-template-columns: 1fr;
    padding-inline: clamp(0.5rem, 6vw, 1.2rem);
  }

  .gallery-slide-caption {
    position: absolute;
    left: 50%;
    bottom: clamp(0.7rem, 5vw, 1.2rem);
    transform: translateX(-50%);
    width: calc(100% - clamp(1.4rem, 8vw, 2.6rem));
    padding: clamp(0.55rem, 3vw, 0.85rem) clamp(0.75rem, 4vw, 1.2rem);
    margin: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.08) 0%, rgba(8, 8, 8, 0.72) 82%);
    color: rgba(255, 255, 255, 0.9);
    border-radius: clamp(0.8rem, 3vw, 1rem);
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
    text-align: center;
    max-width: none;
    pointer-events: none;
    backdrop-filter: blur(12px);
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    --nav-translate-y: -50%;
    z-index: 2;
  }

  .gallery-nav--prev {
    left: clamp(0.4rem, 3vw, 0.8rem);
    justify-self: auto;
  }

  .gallery-nav--next {
    right: clamp(0.4rem, 3vw, 0.8rem);
    justify-self: auto;
  }
}

.socials-page {
  margin-top: clamp(2.5rem, 8vw, 4rem);
  padding: clamp(4rem, 9vw, 5.5rem) 5vw clamp(5rem, 10vw, 6.5rem);
  border-radius: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.28) 100%);
  display: grid;
  gap: 3rem;
  min-height: 70vh;
}

body.socials header {
  padding: clamp(2.5rem, 6vw, 3.5rem) 5vw clamp(2.5rem, 7vw, 3.5rem);
}

.socials-hero {
  margin: clamp(1.8rem, 5vw, 2.8rem) 0 clamp(2.4rem, 6vw, 3.4rem);
}

.socials-subheading {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

.socials-header {
  max-width: 520px;
  display: grid;
  gap: 1rem;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.social-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  padding: 1.8rem;
  display: grid;
  gap: 0.6rem;
  transition: transform 0.45s ease, border-color 0.45s ease, background-color 0.45s ease;
}

.social-card__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  opacity: 0.7;
}

.social-card__link {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
}

.social-card:hover,
.social-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.24);
  background-color: rgba(0, 0, 0, 0.32);
}

.socials-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.8rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(0, 0, 0, 0.28);
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
  cursor: pointer;
  font: inherit;
}

.social-button-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.social-button-copy {
  display: grid;
  gap: 0.35rem;
}

.social-button-copy small {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  opacity: 0.72;
}

.social-button-copy > span {
  font-size: 1.4rem;
  font-weight: 600;
}

.social-button::after {
  content: "->";
  font-size: 1.1rem;
  margin-left: 0.5rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-button:hover,
.social-button:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.26);
  background-color: rgba(0, 0, 0, 0.42);
  color: var(--text-primary);
}

.social-button:hover::after,
.social-button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.social-button--copy::after {
  content: none;
}

.toast {
  position: fixed;
  top: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.68);
  color: var(--text-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 3500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

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

.toast__message {
  margin: 0;
}

.cta {
  padding: 4rem 5vw;
  border-radius: 1.8rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2rem;
}

.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-actions {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background-color: var(--text-primary);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
  background-color: #f5f5f5;
  color: #0f0f0f;
}

.cta-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
}

footer {
  padding: 4rem 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  opacity: 0.7;
}

.sitemap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credits {
  font-size: 0.8rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.reveal {
  --reveal-duration: 0.85s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-x: 0px;
  --reveal-y: 36px;
  --reveal-scale: 0.96;
  --reveal-rotation: -1deg;
  --stack-transform: translate3d(0, 0, 0);
  --reveal-blur: 12px;
  opacity: 0;
  transform: var(--stack-transform) translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale)) rotate(var(--reveal-rotation));
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter calc(var(--reveal-duration) * 0.8) var(--reveal-ease);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity, filter;
}

.reveal.is-visible {
  --reveal-x: 0px;
  --reveal-y: 0px;
  --reveal-scale: 1;
  --reveal-rotation: 0deg;
  opacity: 1;
  transform: var(--stack-transform) translate3d(0, 0, 0) scale(1) rotate(0deg);
  filter: blur(0);
}

.reveal[data-reveal="up"] {
  --reveal-y: 48px;
  --reveal-rotation: -0.8deg;
}

.reveal[data-reveal="down"] {
  --reveal-y: -48px;
  --reveal-rotation: 0.8deg;
}

.reveal[data-reveal="left"] {
  --reveal-x: -56px;
  --reveal-rotation: -1.6deg;
}

.reveal[data-reveal="right"] {
  --reveal-x: 56px;
  --reveal-rotation: 1.6deg;
}

.reveal[data-reveal="zoom"] {
  --reveal-scale: 0.82;
}

@keyframes hintPulse {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes brandMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

\1  .float-section {
    min-height: 200vh;
  }

  .float-track {
    gap: clamp(3rem, 12vw, 4rem);
    padding-block: clamp(3rem, 10vw, 5rem);
  }

  .float-panels {
    width: 100%;
    padding-inline: clamp(1rem, 6vw, 2rem);
    gap: clamp(2.5rem, 10vw, 3.5rem);
  }

  .float-panel {
    margin-top: 0;
    --folder-overlap: 0;
    --stack-offset: 0;
    --panel-padding: clamp(1.8rem, 6vw, 2.4rem);
    --tab-height: 0;
    padding: var(--panel-padding);
  }

  .float-panel__tab {
    position: static;
    height: auto;
    border-radius: 1rem;
    padding: 0.6rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: none;
  }

  .float-panel__tab::after {
    display: none;
  }

  .float-panel:last-of-type {
    margin-bottom: clamp(3rem, 12vw, 4.5rem);
  }

  .float-panel:nth-of-type(1),
  .float-panel:nth-of-type(2),
  .float-panel:nth-of-type(3) {
    --folder-overlap: 0;
    --tab-offset: 0;
  }

  .float-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

@media (max-width: 768px) {
  header {
    padding-top: 5.5rem;
  }

  .dynamic-nav {
    top: 1rem;
    padding: 0.6rem 1.1rem;
    gap: 0.85rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .local-time {
    align-self: flex-start;
    text-align: left;
    margin-top: 0.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.8rem;
  }

  .hero-media {
    min-height: 220px;
    justify-content: center;
    align-items: center;
  }

  .float-section {
    min-height: 200vh;
  }

  .float-track {
    gap: clamp(3rem, 12vw, 4rem);
    padding-block: clamp(3rem, 10vw, 5rem);
  }

  .float-panels {
    width: 100%;
    padding-inline: clamp(1rem, 6vw, 2rem);
    gap: clamp(2.5rem, 10vw, 3.5rem);
  }

  .float-panel {
    padding: clamp(1.6rem, 6vw, 2.2rem);
  }

  .float-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .float-panel__title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
  }

  .float-panel__intro {
    max-width: 100%;
  }

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

  .social-card {
    padding: 1.5rem;
  }

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

  .work-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .socials-page {
    padding: 4rem 1.8rem 5rem;
    min-height: auto;
    gap: 2.5rem;
  }

  .socials-buttons {
    flex-direction: column;
  }

  .social-button {
    width: 100%;
  }

  body.socials header {
    padding: 4rem 1.8rem 2.5rem;
  }

  .socials-hero {
    margin: 4rem 0 2.5rem;
  }
}

@media (max-width: 540px) {
  header {
    padding: 3.2rem 6vw 4.5rem;
  }

  .dynamic-nav {
    flex-wrap: wrap;
    justify-content: center;
    width: min(480px, calc(100% - 2.2rem));
  }

  .dynamic-nav,
  .dynamic-nav.is-expanded,
  .dynamic-nav.is-collapsed {
    transform: translateX(-50%);
    padding: 0.55rem 1rem;
    gap: 0.75rem;
  }

  .dynamic-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero {
    margin-top: 3rem;
    padding: 2.2rem 1.4rem;
    text-align: center;
    gap: 1.8rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
    letter-spacing: 0.04em;
  }

  .hero-copy blockquote {
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
  }

  .hero-copy blockquote footer {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .hero-media {
    justify-content: center;
    padding: 1.2rem;
  }

  .hero-media img {
    width: min(220px, 70vw);
    border-radius: 1.4rem;
  }

  .scroll-hint {
    margin-top: 2.2rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .scroll-hint::before {
    width: 24px;
  }

  main {
    gap: 4rem;
    padding: 0 1.6rem 4.5rem;
  }

  section {
    gap: 1.8rem;
  }

  .float-section {
    min-height: auto;
  }

  .float-track {
    gap: 2.4rem;
    padding-block: 0;
  }

  .float-panels {
    padding-inline: 1.2rem;
    gap: 2.1rem;
  }

  .float-panel {
    padding: 2rem 1.4rem 1.6rem;
    border-radius: 1.3rem;
  }

  .float-panel__tab {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    box-shadow: none;
    text-align: center;
  }

  .float-panel__tab::after {
    display: none;
  }

  .float-panel__title {
    font-size: 1.45rem;
  }

  .float-panel__intro {
    font-size: 0.95rem;
  }

  .brand-strip {
    padding: 0.75rem 0;
  }

  .brand-strip img {
    max-height: 46px;
    padding: 0.5rem 0.9rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.75rem;
  }

  .section-heading > span {
    font-size: 1.25rem;
  }

  .work-item {
    padding: 1.5rem 1.3rem;
    gap: 1.1rem;
  }

  .cta {
    padding: 3rem 1.6rem;
    gap: 1.4rem;
  }

  .cta h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: 0.06em;
  }

  .cta-actions {
    gap: 0.8rem;
  }

  .cta-link {
    width: 100%;
  }

  footer {
    padding: 3rem 1.6rem;
  }

  body.socials header {
    padding: 3rem 1.6rem 2.2rem;
  }

  .socials-hero {
    margin: 2.6rem 0 2rem;
    text-align: center;
  }

  .socials-subheading {
    margin-top: 0.6rem;
    font-size: 1rem;
  }

  .socials-page {
    padding: 3rem 1.6rem 4rem;
    border-radius: 1.6rem;
    gap: 2rem;
  }

  .socials-buttons {
    gap: 1rem;
  }
}

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

.float-panel:first-of-type {
  margin-top: 0;
  --stack-offset: 0;
}

.float-panel:last-of-type {
  margin-bottom: clamp(4rem, 10vw, 6rem);
}

.float-panel.is-visible {
  --stack-offset: 0;
  box-shadow: 0 35px 96px rgba(0, 0, 0, 0.35);
  animation: stackSettle var(--stack-speed, 0.7s) var(--panel-delay) var(--unmask-ease) both;
}

@keyframes stackLift {
  0% {
    transform: translate3d(0, var(--stack-offset, 0), 0);
  }
  100% {
    transform: translate3d(0, calc(var(--stack-offset, 0) - var(--folder-overlap)), 0);
  }
}

@keyframes stackSettle {
  0% {
    transform: translate3d(0, calc(var(--stack-offset, 0) - var(--folder-overlap)), 0);
  }
  100% {
    transform: translate3d(0, var(--stack-offset, 0), 0);
  }
}

