:root {
  --background: #0a0b0d;
  --surface: #121418;
  --surface-soft: #181b20;
  --text: #f4efe7;
  --muted: #c0b4a4;
  --accent: #ff6a00;
  --accent-bright: #ffb24d;
  --accent-deep: #a83a00;
  --line: rgba(244, 239, 231, 0.12);
  --container: 1440px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 8px;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --plyr-color-main: var(--accent);
  --plyr-video-background: #050607;
  --plyr-control-radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.04), transparent 460px),
    var(--background);
}

body.gate-locked {
  overflow: hidden;
}

body.hero-released .hero {
  opacity: 0;
  visibility: hidden;
}

body.returned-top .hero {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none;
}

body.returned-top .hero::after {
  opacity: 0.82;
  animation: camera-pulse 3.8s ease-in-out infinite;
}

body.returned-top .hero-image {
  opacity: 1 !important;
}

body.returned-top .hero-content,
body.returned-top .hero-title,
body.returned-top .hero-copy {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

body.hero-text-cleared .hero-content {
  opacity: 0;
  transform: translate3d(0, -140px, 0) scale(1.018);
  transition-duration: 900ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

button {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #150803;
  background: var(--accent-bright);
  border-radius: 4px;
}

.container,
.nav-shell {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(10, 11, 13, 0.86), rgba(18, 20, 24, 0.76));
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  transform: translateY(-110%);
  animation: header-arrive 900ms cubic-bezier(0.16, 1, 0.3, 1) 420ms forwards;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.8vw, 3.65rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255, 106, 0, 0.24);
}

.wordmark-text {
  display: inline-block;
  white-space: nowrap;
}

.wordmark-caret {
  display: inline-block;
  width: 0.16em;
  height: 0.96em;
  margin-left: 0.02em;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-radius: 1px;
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.72), 0 0 42px rgba(255, 178, 77, 0.28);
  transform: translateY(0);
  animation:
    cursor-pulse 360ms steps(2, end) 280ms 4,
    cursor-pulse 850ms steps(2, end) 3.12s infinite;
}

.wordmark::after {
  content: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-cta {
  overflow: hidden;
  position: relative;
  padding: 12px 18px;
  color: #210a00;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav .nav-cta:hover {
  color: #210a00;
  background: var(--accent-bright);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-open .menu-icon {
  background: transparent;
}

.menu-open .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: sticky;
  top: 0;
  display: grid;
  z-index: 1;
  min-height: clamp(700px, 96vh, 900px);
  overflow: hidden;
  place-items: center;
  background: #060708;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(1040px, 118vw);
  height: min(460px, 58vh);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 178, 77, 0.58), rgba(255, 106, 0, 0.28) 38%, rgba(255, 106, 0, 0.08) 64%, transparent 78%);
  filter: blur(28px);
  opacity: 0.82;
  transform: translate(-50%, -50%);
  animation: glow-intro 2.2s ease-out both, camera-pulse 3.8s ease-in-out 2.2s infinite;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 24%;
  background:
    linear-gradient(to bottom, rgba(10, 11, 13, 0.96), rgba(10, 11, 13, 0.72) 38%, transparent);
  pointer-events: none;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: none;
  transform-origin: center bottom;
  animation: camera-intro 2.2s ease-out 320ms forwards;
}

.hero-shade {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(10, 11, 13, 0.34), rgba(10, 11, 13, 0.1) 36%, rgba(10, 11, 13, 0.46) 76%, var(--background) 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 178, 77, 0.18), rgba(255, 106, 0, 0.08) 32%, transparent 58%);
  transform: translate3d(0, 0, 0);
  animation: shade-intro 2.4s ease-out both;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding-top: 56px;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  animation: hero-content-arrive 1ms linear 1.65s forwards;
  transition: opacity 950ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.has-scrolled .hero-content {
  opacity: 0;
  transform: translate3d(0, -140px, 0) scale(1.018);
  transition-duration: 900ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  display: inline-block;
  max-width: calc(100vw - (var(--gutter) * 2));
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 0 42px rgba(255, 106, 0, 0.56), 0 0 110px rgba(255, 178, 77, 0.28);
  transform: translateY(18px) scale(0.98);
  animation: hero-title-aura 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.7s forwards;
}

.hero-copy {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-copy-rise 900ms ease 2.55s forwards;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-block: 0;
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(2.3rem, 6.4vw, 5.1rem);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}

.keep-together {
  white-space: nowrap;
}

.hero-copy {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.section-pad {
  padding-block: var(--section);
}

.intro-section {
  position: relative;
  z-index: 2;
  margin-top: -14vh;
  padding-top: clamp(90px, 12vw, 160px);
  padding-bottom: clamp(92px, 11vw, 150px);
  background: linear-gradient(to bottom, transparent, rgba(10, 11, 13, 0.72) 48%, var(--background));
}

.narrow {
  max-width: 920px;
}

.center {
  text-align: center;
}

.intro-section h2,
.about-copy h2 {
  font-size: clamp(2rem, 4.7vw, 3.3rem);
  line-height: 1.14;
}

.about-copy .about-title {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  text-shadow: 0 0 42px rgba(255, 106, 0, 0.22);
}

.about-copy .about-lede {
  margin-block: 18px 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
}

.intro-section p,
.about-copy p,
.project-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.72;
}

.rule {
  display: block;
  width: 84px;
  height: 4px;
  margin: 28px auto;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.38);
}

.portfolio-section {
  position: relative;
  z-index: 3;
  background: var(--background);
  border-top: 1px solid rgba(244, 239, 231, 0.06);
}

.section-heading {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.project-list {
  display: grid;
  gap: clamp(72px, 10vw, 128px);
}

.project {
  display: grid;
  gap: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 178, 77, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 106, 0, 0.04);
  transform: translateZ(0);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.project:hover .player-frame {
  border-color: rgba(255, 178, 77, 0.38);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42), 0 0 50px rgba(255, 106, 0, 0.12);
  transform: scale(1.012);
}

.player-frame .plyr,
.player-frame video,
.player-frame iframe,
.portfolio-player {
  width: 100%;
  height: 100%;
}

.player-frame .plyr__video-wrapper,
.player-frame video,
.player-frame iframe,
.portfolio-player {
  aspect-ratio: 16 / 9;
  background: #050607;
}

.player-frame .plyr__controls {
  z-index: 6;
  opacity: 1 !important;
  pointer-events: auto;
  transform: none !important;
  background:
    linear-gradient(to top, rgba(5, 6, 7, 0.94), rgba(5, 6, 7, 0.68) 58%, transparent);
}

.player-frame .plyr__control {
  color: var(--text);
}

.player-frame .plyr__control svg {
  display: block;
  fill: currentColor;
}

.player-frame .plyr__control:hover,
.player-frame .plyr__control:focus-visible {
  color: var(--accent-bright);
  background: rgba(255, 106, 0, 0.12);
}

.player-frame .plyr__control[data-plyr="fullscreen"] {
  position: relative;
  color: var(--accent-bright);
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid rgba(255, 178, 77, 0.32);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.18);
}

.player-frame .plyr__control[data-plyr="play"],
.player-frame .plyr__control[data-plyr="fullscreen"] {
  display: inline-grid;
  place-items: center;
}

.player-frame .plyr__control[data-plyr="play"] svg,
.player-frame .plyr__control[data-plyr="fullscreen"] svg {
  display: none;
}

.player-frame .plyr__control[data-plyr="play"]::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.player-frame .plyr__control[data-plyr="play"].plyr__control--pressed::before {
  width: 12px;
  height: 16px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.player-frame .plyr__control[data-plyr="fullscreen"]::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 178, 77, 0.22);
}

.player-frame .plyr__progress input[type="range"],
.player-frame .plyr__volume input[type="range"] {
  cursor: pointer;
}

.player-frame .plyr__control--overlaid {
  width: clamp(58px, 7vw, 82px);
  height: clamp(58px, 7vw, 82px);
  padding: 18px;
  color: #210a00;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border: 1px solid rgba(255, 178, 77, 0.5);
  border-radius: 999px;
  box-shadow:
    0 0 26px rgba(255, 106, 0, 0.5),
    0 0 74px rgba(255, 178, 77, 0.22);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.player-frame .plyr__control--overlaid svg {
  display: block;
  width: 100%;
  height: 100%;
}

.player-frame .plyr__control--overlaid:hover,
.player-frame .plyr__control--overlaid:focus-visible {
  color: #210a00;
  background: linear-gradient(135deg, var(--accent-bright), #ffc36a);
  border-color: rgba(255, 178, 77, 0.82);
  box-shadow:
    0 0 34px rgba(255, 106, 0, 0.66),
    0 0 92px rgba(255, 178, 77, 0.3);
  transform: translate(-50%, -50%) scale(1.08);
}

.pending-pill {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  color: #210a00;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border: 1px solid rgba(255, 178, 77, 0.4);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-copy {
  max-width: 820px;
}

.project-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

dl {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

dl div {
  display: flex;
  gap: 8px;
}

dt {
  color: var(--accent-bright);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--muted);
}

.about-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.1), transparent 34%),
    var(--surface);
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 13, 0.42));
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.portrait-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 178, 77, 0.2);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-copy p {
  margin-block: 22px 30px;
}

.about-copy .about-lede + p {
  margin-top: 0;
}

.expertise-panel {
  padding: 24px;
  background: var(--background);
  border: 1px solid rgba(255, 178, 77, 0.14);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 178, 77, 0.08);
}

.expertise-panel h3 {
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 11px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid rgba(255, 178, 77, 0.14);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.tag-list li:hover {
  color: var(--text);
  border-color: rgba(255, 178, 77, 0.36);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(244, 239, 231, 0.08);
  padding-block: 64px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.privacy-trigger {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.privacy-trigger:hover {
  color: var(--accent-bright);
}

.policy-panel {
  margin-top: 48px;
}

.policy-heading {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.return-link {
  margin-top: 32px;
}

.password-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(10, 11, 13, 0.74);
  backdrop-filter: blur(22px);
}

.password-gate.is-hidden {
  display: none;
}

.privacy-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  align-items: end;
  justify-items: center;
  padding: var(--gutter);
  background: rgba(10, 11, 13, 0.24);
  backdrop-filter: blur(22px);
}

.privacy-overlay.is-open,
.privacy-overlay:target {
  display: grid;
}

.gate-card,
.privacy-flag {
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 178, 77, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.14), transparent 34%),
    rgba(18, 20, 24, 0.92);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58), 0 0 70px rgba(255, 106, 0, 0.12);
}

.gate-card h1 {
  max-width: none;
  font-size: clamp(2rem, 8.2vw, 4rem);
  white-space: nowrap;
}

.gate-card p,
.privacy-flag p {
  color: var(--muted);
  line-height: 1.7;
}

.gate-consent {
  padding: 16px 18px;
  margin-block: 22px 26px;
  color: rgba(244, 239, 231, 0.78);
  background: rgba(10, 11, 13, 0.42);
  border: 1px solid rgba(255, 178, 77, 0.18);
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 178, 77, 0.08);
}

.gate-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.gate-row input {
  min-width: 0;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(10, 11, 13, 0.84);
  border: 1px solid rgba(255, 178, 77, 0.22);
  border-radius: 4px;
}

.gate-row button,
.privacy-close {
  padding: 13px 18px;
  color: #210a00;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gate-row button {
  width: 100%;
  padding: 17px 22px;
  border: 1px solid rgba(255, 178, 77, 0.44);
  box-shadow: 0 0 28px rgba(255, 106, 0, 0.36), 0 0 74px rgba(255, 178, 77, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gate-row button:hover,
.gate-row button:focus-visible {
  background: linear-gradient(135deg, var(--accent-bright), #ffc36a);
  box-shadow: 0 0 36px rgba(255, 106, 0, 0.52), 0 0 96px rgba(255, 178, 77, 0.22);
  transform: translateY(-1px);
}

.gate-error {
  min-height: 1.5em;
  margin-bottom: 0;
  color: var(--accent-bright);
}

.privacy-flag {
  position: relative;
  width: min(100%, 760px);
  max-height: min(82vh, 720px);
  overflow: auto;
  transform: translateY(0);
  animation: privacy-curtain-rise 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-flag h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.privacy-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 12px;
}

[data-flow].flow-ready {
  opacity: 0;
  transform: translate3d(0, 62px, 0) scale(0.975);
  transition: opacity 1200ms ease, transform 1300ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-flow].flow-ready.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.project.flow-ready .player-frame {
  opacity: 0;
  transform: translate3d(0, 54px, 0) scale(0.965);
}

.project.flow-ready.is-visible .player-frame {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 1200ms ease, transform 1300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.flow-panel {
  position: relative;
}

@media (max-width: 820px) {
  .nav-shell {
    min-height: 64px;
  }

  .wordmark {
    font-size: clamp(1.45rem, 6.4vw, 2.15rem);
  }

  .wordmark::after {
    height: 0.82em;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: var(--gutter);
    bottom: auto;
    left: auto;
    width: 248px;
    max-width: calc(100vw - (var(--gutter) * 2));
    display: grid;
    gap: 0;
    justify-items: stretch;
    padding: 10px;
    background: rgba(10, 11, 13, 0.94);
    border: 1px solid rgba(255, 178, 77, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 4px;
  }

  .site-nav a:hover {
    background: rgba(255, 106, 0, 0.1);
  }

  .site-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding-inline: 12px;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    min-height: 64px;
  }

  .site-nav {
    inset-block-start: 62px;
  }

  .hero {
    min-height: 580px;
  }

  .hero-title {
    max-width: calc(100vw - 28px);
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .player-frame .plyr__controls {
    padding: 42px 10px 10px;
  }

  .player-frame .plyr__control {
    min-width: 38px;
    min-height: 38px;
  }

  .player-frame .plyr__control[data-plyr="fullscreen"] {
    min-width: 42px;
  }

  h1 {
    max-width: 420px;
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  .pending-pill {
    right: 10px;
    bottom: 10px;
    font-size: 0.62rem;
  }

  .gate-row {
    grid-template-columns: 1fr;
  }
}

@keyframes hero-content-flow {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  62% {
    opacity: 0;
    transform: translate3d(0, -72px, 0) scale(1.018);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -92px, 0) scale(1.04);
  }
}

@keyframes hero-content-arrive {
  to {
    opacity: 1;
  }
}

@keyframes header-arrive {
  to {
    transform: translateY(0);
  }
}

@keyframes cursor-pulse {
  0%,
  45% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes caret-hit {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }

  50% {
    transform: translateY(0) scaleY(1.24);
    box-shadow: 0 0 24px rgba(255, 106, 0, 0.9), 0 0 60px rgba(255, 178, 77, 0.34);
  }
}

@keyframes camera-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.86);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.24);
  }
}

@keyframes camera-intro {
  from {
    opacity: 0;
    filter: brightness(0.52) saturate(0.9);
  }

  to {
    opacity: 0.7;
    filter: brightness(1) saturate(1);
  }
}

@keyframes shade-intro {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}

@keyframes glow-intro {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  to {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes hero-title-aura {
  0% {
    opacity: 0;
    text-shadow: 0 0 60px rgba(255, 106, 0, 0.9);
    transform: translateY(18px) scale(0.98);
  }

  65% {
    opacity: 1;
    text-shadow: 0 0 42px rgba(255, 106, 0, 0.58), 0 0 120px rgba(255, 178, 77, 0.34);
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 26px rgba(255, 106, 0, 0.32), 0 0 90px rgba(255, 178, 77, 0.22);
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-copy-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch-slice {
  0%,
  100% {
    opacity: 0;
    transform: translate(0);
  }

  24%,
  54% {
    opacity: 0.72;
    transform: translate(4px, -1px);
  }
}

@keyframes privacy-rise {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes privacy-curtain-rise {
  from {
    opacity: 0;
    transform: translateY(100%) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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