:root {
  --sky-deep: #18375d;
  --sky-mid: #67a2cd;
  --sky-soft: #a0aef2;
  --sun: #ce2e2b;
  --path: #adb3a5;
  --text: #f6f8fd;
  --muted: rgba(239, 244, 255, 0.8);
  --muted-soft: rgba(226, 235, 250, 0.6);
  --line: rgba(235, 241, 255, 0.2);
  --line-strong: rgba(245, 247, 255, 0.38);
  --panel: rgba(18, 30, 49, 0.5);
  --panel-strong: rgba(15, 24, 41, 0.74);
  --panel-soft: rgba(245, 249, 255, 0.9);
  --shadow: rgba(6, 11, 21, 0.34);
  --display-font: 'Michroma', 'Orbitron', sans-serif;
  --ui-font: 'Orbitron', sans-serif;
  --body-font: 'Rajdhani', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  font-family: var(--body-font);
  color: var(--text);
  background: linear-gradient(180deg, #153458 0%, #2a5c8b 56%, #d8e1ec 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(206, 46, 43, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(9, 18, 34, 0.18), transparent 28%, rgba(7, 12, 20, 0.08) 100%);
}

.scene-root,
.viewport {
  width: 100vw;
  height: 100vh;
}

.scene-root {
  position: relative;
  overflow: hidden;
}

.viewport {
  position: fixed;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}

.viewport.is-pointer-locked {
  cursor: none;
}

.viewport canvas,
canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-fade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 14, 24, 0.44), transparent 34%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.24), transparent 34%, rgba(9, 16, 29, 0.16) 100%);
}

.top-nav,
.hero,
.credits-toggle,
.credits-panel,
.intro-overlay,
.overlay {
  position: fixed;
}

.top-nav,
.hero,
.credits-toggle,
.credits-panel {
  z-index: 24;
}

.top-nav {
  top: 34px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.4vw, 44px);
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  transform: translateX(-50%);
}

.ui-nav-button,
.credits-toggle,
.credits-close,
.overlay-close,
.intro-button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--ui-font);
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ui-nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: clamp(154px, 12vw, 188px);
  padding: 16px 20px 18px;
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: clamp(0.9rem, 1.35vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 28, 74, 0.94);
  text-shadow: none;
}

.ui-nav-button::before {
  content: none;
}

.ui-nav-button::after {
  content: none;
}

.ui-nav-button:hover,
.ui-nav-button:focus-visible {
  color: #ff3d6f;
  transform: translateY(-2px);
  outline: none;
}

.ui-nav-button.is-active {
  padding-inline: 20px;
  background: linear-gradient(135deg, #ff123f, #ff2053);
  color: #10151f;
  box-shadow:
    0 18px 42px rgba(112, 7, 29, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero {
  top: clamp(118px, 19vh, 198px);
  left: clamp(28px, 5vw, 68px);
  z-index: 23;
  max-width: min(620px, calc(100vw - 64px));
  display: grid;
  gap: 14px;
}

.hero-kicker {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.82);
  text-shadow: 0 2px 16px rgba(6, 10, 18, 0.56);
}

.hero-title {
  margin: 0;
  max-width: 7ch;
  font-family: var(--display-font);
  font-size: clamp(4.2rem, 11vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sun);
  text-shadow:
    0 18px 56px rgba(89, 15, 14, 0.34),
    0 4px 0 rgba(255, 245, 240, 0.22),
    0 0 18px rgba(206, 46, 43, 0.12);
}

.hero-role {
  margin: 2px 0 0;
  font-family: var(--ui-font);
  font-size: clamp(0.92rem, 1.4vw, 1.18rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 250, 255, 0.94);
  text-shadow: 0 2px 16px rgba(6, 10, 18, 0.46);
}

.hero-quote {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.18;
  color: rgba(244, 247, 255, 0.95);
  text-shadow: 0 2px 18px rgba(6, 10, 18, 0.38);
}

.scene-instructions {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 24;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: min(1180px, calc(100vw - 56px));
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(107, 128, 159, 0.78), rgba(92, 114, 146, 0.7)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.16), transparent 56%);
  box-shadow:
    0 18px 42px rgba(10, 17, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: rgba(244, 247, 253, 0.96);
  font-family: var(--ui-font);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: none;
  text-align: center;
  text-shadow: 0 1px 8px rgba(9, 14, 24, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.credits-toggle {
  left: 28px;
  bottom: 26px;
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 248, 253, 0.94);
  z-index: 10;
  text-shadow: 0 2px 12px rgba(4, 8, 16, 0.5);
}

.credits-toggle:hover,
.credits-toggle:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.credits-panel {
  left: 28px;
  bottom: 64px;
  width: min(340px, calc(100vw - 48px));
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(17, 28, 46, 0.86), rgba(14, 22, 37, 0.92)),
    radial-gradient(circle at top left, rgba(160, 174, 242, 0.12), transparent 44%);
  box-shadow: 0 26px 60px rgba(6, 11, 20, 0.36);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.credits-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.credits-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-title {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248, 250, 255, 0.72);
}

.credits-close,
.overlay-close {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credits-close:hover,
.credits-close:focus-visible,
.overlay-close:hover,
.overlay-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.credits-copy,
.credits-list {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.credits-list {
  padding-left: 18px;
}

.credits-list li + li {
  margin-top: 8px;
}

.intro-overlay {
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(9, 15, 25, 0.46) 44%, rgba(8, 13, 22, 0.72) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.intro-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-cloud {
  position: relative;
  width: min(660px, calc(100vw - 64px));
  min-height: 236px;
  padding: 56px 72px 60px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  background: none;
  box-shadow: none;
  text-align: center;
  transform: translateY(-8px);
}

.intro-cloud::before {
  content: '';
  position: absolute;
  inset: -42px -70px -44px;
  background: url('cloud.png') center center / contain no-repeat;
  filter: drop-shadow(0 26px 50px rgba(9, 15, 24, 0.26));
  z-index: -2;
}

.intro-cloud::after {
  content: none;
}

.intro-label {
  margin: 0 0 12px;
  font-family: var(--ui-font);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(14, 25, 43, 0.78);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.28);
}

.intro-title {
  margin: 0 auto 12px;
  font-family: var(--display-font);
  max-width: 520px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.16;
  color: #162948;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.34);
  text-wrap: balance;
}

.intro-button {
  margin-top: 26px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ce2e2b, #dc5a48);
  box-shadow: 0 16px 30px rgba(93, 19, 18, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .intro-cloud {
    width: min(92vw, 520px);
    min-height: 208px;
    padding: 46px 34px 50px;
    transform: translateY(-4px);
  }

  .intro-cloud::before {
    inset: -26px -34px -30px;
  }

  .intro-title {
    max-width: 360px;
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }
}

.intro-button:hover,
.intro-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  outline: none;
}

.overlay {
  inset: 0;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 16, 28, 0.46), rgba(10, 16, 27, 0.7)),
    radial-gradient(circle at 22% 20%, rgba(206, 46, 43, 0.08), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(160, 174, 242, 0.12), transparent 26%);
  backdrop-filter: blur(10px) saturate(0.86);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-content {
  width: min(1100px, calc(100vw - 64px));
  max-height: min(84vh, 920px);
  overflow: auto;
  padding: 30px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 29, 46, 0.82), rgba(12, 20, 33, 0.92)),
    radial-gradient(circle at top right, rgba(160, 174, 242, 0.12), transparent 30%);
  box-shadow:
    0 36px 96px rgba(5, 10, 19, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.overlay-content.is-works {
  width: min(1240px, calc(100vw - 64px));
  padding: 30px 32px 30px;
  background:
    linear-gradient(180deg, rgba(15, 24, 39, 0.88), rgba(11, 18, 31, 0.94)),
    radial-gradient(circle at 18% 14%, rgba(206, 46, 43, 0.12), transparent 20%),
    radial-gradient(circle at 84% 24%, rgba(160, 174, 242, 0.12), transparent 26%);
}

.overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.overlay-copy {
  min-width: 0;
}

.overlay-mode,
.overlay-category {
  margin: 0;
  font-family: var(--ui-font);
  text-transform: uppercase;
}

.overlay-mode {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: rgba(246, 248, 253, 0.56);
}

.overlay-category {
  margin-top: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: rgba(246, 248, 253, 0.84);
}

.overlay-standard h2 {
  margin: 20px 0 10px;
  max-width: 12ch;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  color: var(--text);
}

.overlay-desc {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.overlay-standard.is-hidden {
  display: none;
}

.works-showcase {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.works-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.works-filter {
  appearance: none;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 248, 253, 0.72);
  font-family: var(--ui-font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.works-filter:hover,
.works-filter:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.works-filter.is-active {
  color: #ffffff;
  border-color: rgba(206, 46, 43, 0.42);
  background:
    linear-gradient(135deg, rgba(206, 46, 43, 0.28), rgba(160, 174, 242, 0.14)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.works-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.works-stepper-button,
.works-action {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(249, 251, 255, 0.92);
  font-family: var(--ui-font);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.works-stepper-button {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
}

.works-stepper-button:hover,
.works-stepper-button:focus-visible,
.works-action:hover,
.works-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.works-stepper-button:disabled {
  opacity: 0.36;
  cursor: default;
  transform: none;
}

.works-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.works-feature-copy,
.works-visual-frame {
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 70px rgba(4, 8, 15, 0.22);
}

.works-feature-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px 34px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(103, 162, 205, 0.1), transparent 34%);
}

.works-feature-category,
.works-visual-label,
.works-feature-meta {
  margin: 0;
  font-family: var(--ui-font);
  text-transform: uppercase;
}

.works-feature-category {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--work-accent, rgba(246, 248, 253, 0.72));
}

.works-feature-title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
  color: #f7f9ff;
  text-wrap: balance;
}

.works-feature-desc {
  margin: 0;
  max-width: 34ch;
  color: rgba(231, 236, 247, 0.86);
  font-size: 1.08rem;
  line-height: 1.65;
}

.works-feature-meta {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: rgba(246, 248, 253, 0.46);
}

.works-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.works-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.works-action::after {
  content: '↗';
  margin-left: 10px;
  font-size: 0.95rem;
}

.works-visual {
  display: grid;
}

.works-visual-frame {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 28px 28px 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 26, 42, 0.34), rgba(12, 17, 31, 0.18)),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--work-accent, #67a2cd) 48%, transparent), transparent 22%),
    linear-gradient(140deg, rgba(103, 162, 205, 0.18), rgba(160, 174, 242, 0.08) 48%, rgba(255, 255, 255, 0.03));
}

.works-visual-frame::before,
.works-visual-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.works-visual-frame::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.works-visual-frame::after {
  width: 180px;
  height: 180px;
  top: 42px;
  right: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--work-accent, #67a2cd) 65%, white) 0%, transparent 68%);
  opacity: 0.18;
  filter: blur(2px);
}

.works-visual-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: rgba(246, 248, 253, 0.54);
}

.works-visual-glyph {
  position: relative;
  z-index: 1;
  align-self: center;
  font-family: var(--display-font);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--work-accent, #67a2cd) 70%, white);
  text-shadow: 0 16px 42px rgba(8, 14, 24, 0.18);
}

.works-visual-title,
.works-visual-index {
  position: relative;
  z-index: 1;
  margin: 0;
}

.works-visual-title {
  max-width: 16ch;
  font-size: 1rem;
  line-height: 1.3;
  color: rgba(246, 248, 253, 0.88);
}

.works-visual-index {
  font-family: var(--ui-font);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 248, 253, 0.48);
}

.works-dot-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.works-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.works-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.works-dot:hover,
.works-dot:focus-visible {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
}

.works-dot.is-active {
  border-color: color-mix(in srgb, var(--work-accent, #67a2cd) 74%, white);
  background: color-mix(in srgb, var(--work-accent, #67a2cd) 82%, white);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--work-accent, #67a2cd) 20%, transparent);
}

.overlay-sections {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.overlay-sections.is-grouped {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.overlay-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(160, 174, 242, 0.08), transparent 44%);
}

.overlay-section-label {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 248, 253, 0.62);
}

.overlay-items {
  display: grid;
  gap: 12px;
}

.overlay-item {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.overlay-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-name {
  display: block;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
}

.project-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.project-item-link,
.overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: rgba(246, 248, 253, 0.92);
  text-decoration: none;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-item-link::after,
.overlay-link::after {
  content: '↗';
  font-size: 0.9rem;
}

.project-item-link:hover,
.project-item-link:focus-visible,
.overlay-link:hover,
.overlay-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.overlay-link {
  margin-top: 24px;
}

.overlay-link.is-hidden {
  display: none;
}

body.page-open .top-nav {
  top: 24px;
  gap: clamp(22px, 3.2vw, 44px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}

body.page-open .ui-nav-button {
  padding: 16px 20px 18px;
  min-inline-size: clamp(154px, 12vw, 188px);
  font-size: clamp(0.9rem, 1.35vw, 1.15rem);
  letter-spacing: 0.1em;
  color: rgba(255, 28, 74, 0.94);
}

body.page-open .ui-nav-button:hover,
body.page-open .ui-nav-button:focus-visible {
  color: #ff3d6f;
}

body.page-open .ui-nav-button.is-active {
  padding-inline: 20px;
  color: #10151f;
  background: linear-gradient(135deg, #ff123f, #ff2053);
  box-shadow:
    0 18px 42px rgba(112, 7, 29, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.page-open .hero,
body.page-open .scene-instructions,
body.page-open .credits-toggle,
body.page-open .credits-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

body.page-open .scene-fade {
  opacity: 0.18;
}

@keyframes pageViewEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-shell {
  position: fixed;
  inset: 0;
  z-index: 18;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.page-shell.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-shell::before,
.page-shell::after {
  content: '';
  position: absolute;
  inset: 0;
}

.page-shell::before {
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.98), rgba(241, 244, 248, 0.98)),
    radial-gradient(circle at 14% 18%, rgba(160, 174, 242, 0.14), transparent 28%),
    radial-gradient(circle at 85% 16%, rgba(206, 46, 43, 0.1), transparent 18%),
    radial-gradient(circle at 72% 88%, rgba(103, 162, 205, 0.12), transparent 22%);
}

.page-shell::after {
  background:
    linear-gradient(rgba(20, 37, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 37, 58, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  opacity: 0.22;
}

.page-shell-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  padding: 142px clamp(20px, 4vw, 48px) 64px;
}

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

body[data-page='works'] .page-shell::before {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.985), rgba(11, 11, 14, 0.995)),
    radial-gradient(circle at 18% 14%, rgba(103, 162, 205, 0.16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(206, 46, 43, 0.12), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(160, 174, 242, 0.1), transparent 30%);
}

body[data-page='works'] .page-shell::after {
  opacity: 0;
}

body[data-page='works'] .page-shell-scroll {
  padding-top: 112px;
}

body[data-page='project'] .page-shell-scroll {
  padding-top: 88px;
}

.page-view {
  width: min(1240px, 100%);
  margin: 0 auto;
  animation: pageViewEnter 0.28s ease both;
}

.page-view[hidden] {
  display: none !important;
}

.page-lead {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.page-lead-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.page-kicker,
.page-count,
.project-category,
.project-chip {
  font-family: var(--ui-font);
  text-transform: uppercase;
}

.page-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(22, 38, 60, 0.56);
}

.page-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #14253d;
  text-wrap: balance;
}

.page-description {
  margin: 16px 0 0;
  max-width: 48ch;
  color: #5a6878;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.about-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 220px);
  width: min(1120px, 100%);
}

.about-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 42px) clamp(10px, 2vw, 18px) 0;
  isolation: isolate;
}

.about-panel::before,
.about-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.about-panel::before {
  inset: -56px -92px -44px;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 19, 66, 0.46), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.98), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(10, 10, 12, 0.9), transparent 36%),
    linear-gradient(135deg, rgba(6, 6, 8, 0.98), rgba(255, 255, 255, 0.36) 42%, rgba(255, 19, 66, 0.34) 70%, rgba(10, 10, 12, 0.96));
  filter: blur(42px) saturate(112%);
  opacity: 0.98;
  animation: aboutGradientShift 16s ease-in-out infinite alternate;
}

.about-panel::after {
  inset: -18px -34px -10px;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.44), transparent 34%),
    radial-gradient(circle at 70% 36%, rgba(255, 19, 66, 0.22), transparent 26%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  filter: blur(28px);
  opacity: 0.86;
  animation: aboutGradientPulse 11s ease-in-out infinite alternate;
}

.about-box {
  position: relative;
  width: min(860px, 100%);
  padding: clamp(34px, 5vw, 52px) clamp(28px, 5vw, 54px) clamp(30px, 4vw, 42px);
  border: 1px solid rgba(19, 34, 53, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(252, 252, 253, 0.72)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.34), transparent 56%);
  box-shadow:
    0 24px 70px rgba(15, 18, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.about-copy {
  margin: 0;
  color: #111111;
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1.72;
  text-align: center;
  text-wrap: balance;
}

.about-name {
  color: #ff1342;
  font-weight: 700;
}

@keyframes aboutGradientShift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.02);
  }
}

@keyframes aboutGradientPulse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.74;
  }
  50% {
    transform: translate3d(1.5%, -2%, 0) scale(1.04);
    opacity: 0.92;
  }
  100% {
    transform: translate3d(-2%, 1%, 0) scale(0.98);
    opacity: 0.8;
  }
}

.page-count {
  margin: 0;
  padding-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(22, 38, 60, 0.5);
}

.works-page {
  width: min(1260px, 100%);
}

.works-page-toolbar {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.works-page .page-filters {
  justify-content: center;
  gap: clamp(18px, 2vw, 40px);
}

body[data-page='works'] .page-filter {
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

body[data-page='works'] .page-filter:hover,
body[data-page='works'] .page-filter:focus-visible {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page='works'] .page-filter.is-active {
  color: #ffffff;
}

.page-back {
  appearance: none;
  border: 1px solid rgba(21, 38, 59, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 35, 54, 0.68);
  font-family: var(--ui-font);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.page-filter {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(20, 35, 54, 0.36);
  font-family: var(--ui-font);
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.page-back:hover,
.page-back:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #16263f;
  transform: translateX(2px);
  outline: none;
  box-shadow: none;
}

.page-filter:hover,
.page-filter:focus-visible {
  background: transparent;
  color: rgba(20, 35, 54, 0.72);
  transform: translateY(-1px);
  outline: none;
  box-shadow: none;
}

.page-filter.is-active {
  color: #14253d;
  background: transparent;
  box-shadow: none;
}

.works-filter-status {
  display: none;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.9vw, 24px);
}

.works-grid.is-gallery-focus {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: clamp(28px, 2.8vw, 40px);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
  animation: cardReveal 0.34s ease both;
  animation-delay: var(--card-delay, 0ms);
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px) scale(1.008);
  filter: drop-shadow(0 28px 42px rgba(21, 37, 58, 0.18));
  outline: none;
}

.work-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: inherit;
  overflow: hidden;
  background: #eff2f5;
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    0 10px 30px rgba(21, 37, 58, 0.06);
}

body[data-page='works'] .work-card-media.is-card {
  background: #0b0c10;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.work-card-media.is-card {
  aspect-ratio: 1 / 1;
}

.work-card-media.is-hero {
  aspect-ratio: 16 / 9;
  min-height: clamp(340px, 54vw, 720px);
  border-radius: 28px;
  box-shadow:
    0 28px 68px rgba(24, 40, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.work-card-media.is-gallery {
  aspect-ratio: 16 / 10;
  border-radius: 24px;
}

.work-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 29, 0.02), rgba(10, 18, 29, 0.34));
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.work-card:hover .work-card-media::after,
.work-card:focus-visible .work-card-media::after {
  opacity: 1;
}

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

.work-card-media[data-fit='contain'] img,
.work-card-media[data-fit='contain'] video {
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(236, 241, 247, 0.95), rgba(223, 231, 240, 0.95));
}

body[data-page='works'] .work-card-media.is-card[data-fit='contain'] img,
body[data-page='works'] .work-card-media.is-card[data-fit='contain'] video {
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.98), rgba(18, 19, 24, 0.98));
}

.work-card-media.is-hero img,
.work-card-media.is-hero video,
.work-card-media.is-gallery img,
.work-card-media.is-gallery video {
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(236, 241, 247, 0.95), rgba(223, 231, 240, 0.95));
}

.work-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card-accent, #67a2cd) 14%, white), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at top left, color-mix(in srgb, var(--card-accent, #67a2cd) 28%, white), transparent 40%);
}

.work-card-placeholder.is-card {
  align-content: center;
  justify-items: center;
  padding: 24px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card-accent, #67a2cd) 18%, white), rgba(250, 251, 252, 0.92)),
    radial-gradient(circle at top left, color-mix(in srgb, var(--card-accent, #67a2cd) 30%, white), transparent 42%);
}

.work-card-placeholder.is-hero {
  padding: 28px;
}

.work-card-placeholder-badge {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 33, 53, 0.68);
  font-family: var(--ui-font);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-card-placeholder-key {
  justify-self: end;
  align-self: end;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-accent, #67a2cd) 28%, rgba(19, 34, 53, 0.22));
}

.work-card-placeholder.is-card .work-card-placeholder-key {
  justify-self: center;
  align-self: center;
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.work-card-placeholder-copy {
  display: grid;
  gap: 8px;
  max-width: 34ch;
}

.work-card-placeholder-title,
.work-card-placeholder-desc {
  margin: 0;
}

.work-card-placeholder-title {
  font-family: var(--display-font);
  font-size: clamp(1.18rem, 2vw, 1.8rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: #15273f;
}

.work-card-placeholder-desc {
  color: #556575;
  font-size: 0.98rem;
  line-height: 1.5;
}

.work-card-body {
  display: none;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.work-card-category {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent, #67a2cd) 14%, white);
  color: #1a2a40;
  font-family: var(--ui-font);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-card-title {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 1.82rem);
  line-height: 1.1;
  color: #15273f;
  text-wrap: balance;
}

.work-card-subtitle {
  margin: 0;
  color: #2f4662;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.work-card-description {
  margin: 0;
  color: #5f6d7c;
  font-size: 1rem;
  line-height: 1.58;
}

.work-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 2px;
}

.work-card-cta,
.work-card-link-note {
  font-family: var(--ui-font);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-card-cta {
  color: #203653;
}

.work-card-cta::after {
  content: '↗';
  margin-left: 8px;
  font-size: 0.84rem;
}

.work-card-link-note {
  color: rgba(32, 54, 83, 0.54);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.work-card:hover .work-card-overlay,
.work-card:focus-visible .work-card-overlay {
  opacity: 1;
}

.work-card-hover-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--ui-font);
  font-size: clamp(1.35rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(10px);
  transition: transform 0.24s ease;
}

.work-card:hover .work-card-hover-title,
.work-card:focus-visible .work-card-hover-title {
  transform: translateY(0);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(63, 74, 91, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  box-shadow: none;
}

.page-back::before {
  content: '←';
  font-size: 0.92rem;
}

.project-page {
  width: min(1760px, 100%);
}

.project-hero {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
}

.project-media-shell {
  --project-stage-bleed: clamp(20px, 3.6vw, 72px);
  display: grid;
  width: calc(100% + (var(--project-stage-bleed) * 2));
  margin: 0 calc(var(--project-stage-bleed) * -1);
}

.project-media-shell .work-card-media.is-hero {
  height: min(74vh, 780px);
  min-height: clamp(460px, 58vw, 640px);
  max-height: 780px;
  aspect-ratio: auto;
  padding: clamp(16px, 2vw, 26px);
  border-radius: 0;
  background: #050608;
  box-shadow:
    0 34px 90px rgba(8, 10, 15, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-media-shell .work-card-media.is-hero img,
.project-media-shell .work-card-media.is-hero video {
  object-fit: contain;
  background: transparent;
}

.project-copy {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.6vw, 28px);
  width: min(1500px, 100%);
  margin: 0 auto;
}

.project-copy > * {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.project-category {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.project-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  line-height: 0.94;
  color: #14253d;
  text-transform: uppercase;
  text-wrap: balance;
  text-align: center;
}

.project-subtitle {
  display: none;
}

.project-description {
  margin: 0;
  max-width: 36em;
  color: #3a4655;
  font-size: clamp(1.42rem, 2.2vw, 1.92rem);
  line-height: 1.58;
  text-align: center;
}

.project-meta-row {
  display: grid;
  grid-template-columns: minmax(260px, 360px);
  justify-content: center;
  justify-items: center;
  gap: 0;
  width: min(420px, 100%);
  text-align: center;
}

.project-meta-heading,
.project-meta-value {
  margin: 0;
}

.project-meta-group {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.project-meta-heading {
  font-family: var(--ui-font);
  font-size: clamp(1.28rem, 1.7vw, 1.54rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #16263f;
}

.project-meta-values {
  display: grid;
  gap: 8px;
}

.project-meta-value {
  color: #16263f;
  font-size: clamp(1.26rem, 1.62vw, 1.5rem);
  line-height: 1.42;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.project-body {
  display: grid;
  justify-items: center;
  gap: clamp(54px, 6vw, 84px);
  width: min(1500px, 100%);
  margin: clamp(56px, 6vw, 88px) auto 0;
}

.project-story,
.project-gallery-section {
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.project-section-header {
  display: none;
}

.project-section-kicker {
  margin: 0;
  font-family: var(--ui-font);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(21, 37, 58, 0.52);
}

.project-section-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: #15273f;
}

.project-sections {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

.project-section {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 3.5vw, 38px) 0 0;
  border-top: 1px solid rgba(19, 34, 53, 0.08);
}

.project-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-section-heading,
.project-section-copy {
  margin: 0;
}

.project-section-heading {
  font-family: var(--ui-font);
  font-size: 0.94rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #223753;
}

.project-section-copy {
  max-width: 94ch;
  color: #475361;
  font-size: clamp(1.24rem, 1.48vw, 1.42rem);
  line-height: 1.88;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 34px);
}

.project-gallery > :only-child,
.project-gallery-item.is-video {
  grid-column: 1 / -1;
}

.project-gallery-item {
  margin: 0;
  display: grid;
  gap: 18px;
}

.project-gallery-item.is-video {
  justify-items: center;
}

.project-gallery-item.is-video .work-card-media.is-gallery {
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  min-height: clamp(280px, 48vw, 680px);
  margin-inline: auto;
  justify-self: center;
}

.project-gallery-item.is-video .project-gallery-caption {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.project-gallery-caption {
  display: grid;
  gap: 6px;
}

.project-gallery-label,
.project-gallery-copy {
  margin: 0;
}

.project-gallery-label {
  font-family: var(--ui-font);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #223753;
}

.project-gallery-copy {
  max-width: 64ch;
  color: #556473;
  font-size: 1.04rem;
  line-height: 1.66;
}

.page-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #16263f;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-actions[hidden],
.page-primary-link[hidden] {
  display: none !important;
}

.page-primary-link:empty::after {
  content: none;
}

.page-primary-link::after {
  content: '↗';
  font-size: 0.94rem;
}

.page-primary-link:hover,
.page-primary-link:focus-visible {
  transform: translateX(2px);
  color: #ce2e2b;
  outline: none;
}

body.overlay-open .hero,
body.overlay-open .credits-toggle {
  opacity: 0.22;
  transform: translateY(8px);
}

body.overlay-open .top-nav {
  opacity: 0.94;
  transform: translateX(-50%);
}

body.intro-open .hero,
body.intro-open .top-nav,
body.intro-open .scene-instructions,
body.intro-open .credits-toggle {
  opacity: 0.9;
  transform: none;
  filter: none;
}

body.intro-open .credits-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 980px) {
  .overlay-sections.is-grouped {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-nav {
    top: 18px;
    left: 50%;
    right: auto;
    width: min(calc(100vw - 28px), 640px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    transform: translateX(-50%);
  }

  body.overlay-open .top-nav {
    transform: translateX(-50%);
  }

  body.page-open .top-nav {
    top: 16px;
    width: min(calc(100vw - 28px), 720px);
    gap: 14px 20px;
    padding: 0;
  }

  .ui-nav-button {
    min-inline-size: 120px;
    padding: 14px 18px 15px;
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .ui-nav-button.is-active {
    padding-inline: 18px;
  }

  .about-page {
    min-height: calc(100vh - 160px);
  }

  .about-panel {
    width: min(100%, 100%);
    padding-top: 22px;
  }

  .about-box {
    padding: 34px 22px 30px;
    border-radius: 24px;
  }

  .about-copy {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    line-height: 1.64;
    text-wrap: initial;
  }

  .hero {
    top: 106px;
    left: 18px;
    right: 18px;
    max-width: calc(100vw - 36px);
    gap: 10px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(3.4rem, 17vw, 5.6rem);
  }

  .hero-role {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .hero-quote {
    max-width: 18ch;
    font-size: 1.1rem;
  }

  .credits-toggle {
    left: 18px;
    bottom: 18px;
  }

  .scene-instructions {
    left: 18px;
    right: 18px;
    bottom: 18px;
    gap: 10px;
    max-width: none;
    padding: 16px 18px;
    font-size: 0.6rem;
    line-height: 1.45;
    transform: none;
  }

  .credits-panel {
    left: 18px;
    right: 18px;
    bottom: 54px;
    width: auto;
  }

  .intro-cloud {
    padding: 28px 22px 24px;
    border-radius: 30px;
  }

  .overlay {
    padding: 18px;
  }

  .overlay-content {
    width: 100%;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .overlay-content.is-works {
    width: 100%;
    padding: 22px 18px 24px;
  }

  .overlay-head {
    align-items: stretch;
    flex-direction: column;
  }

  .overlay-standard h2,
  .works-feature-title {
    max-width: none;
  }

  .works-topbar,
  .works-feature {
    grid-template-columns: 1fr;
  }

  .works-topbar {
    align-items: stretch;
  }

  .works-stepper {
    justify-content: space-between;
  }

  .works-stepper-button {
    flex: 1;
  }

  .works-feature-copy,
  .works-visual-frame {
    min-height: auto;
  }

  .works-feature-copy {
    padding: 24px 22px;
  }

  .works-visual-frame {
    min-height: 280px;
    padding: 22px 22px 20px;
  }

  .page-shell-scroll {
    padding: 108px 18px 36px;
  }

  body[data-page='project'] .page-shell-scroll {
    padding-top: 84px;
  }

  .works-page .page-filters {
    justify-content: center;
    gap: 14px 20px;
  }

  .works-grid,
  .works-grid.is-gallery-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card {
    border-radius: 26px;
  }

  .project-copy {
    padding-top: 0;
    width: 100%;
  }

  .project-copy > * {
    width: min(100%, 920px);
  }

  .project-media-shell .work-card-media.is-hero {
    height: min(62vh, 560px);
    min-height: 360px;
    max-height: 560px;
    padding: 14px;
    border-radius: 24px;
  }

  .project-title {
    font-size: clamp(2.9rem, 12vw, 4.8rem);
  }

  .project-description {
    max-width: 100%;
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
  }

  .project-meta-row {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(100%, 920px);
  }

  .project-section-copy {
    font-size: 1.04rem;
    line-height: 1.74;
  }

  .page-filter {
    font-size: clamp(1.15rem, 7vw, 1.8rem);
  }

  .works-grid,
  .works-grid.is-gallery-focus {
    gap: 14px;
  }

  .work-card-hover-title {
    font-size: clamp(1rem, 4.8vw, 1.5rem);
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-body {
    width: 100%;
    margin-top: 42px;
    gap: 48px;
  }

  .project-story,
  .project-gallery-section {
    width: min(100%, 920px);
  }
}

@media (max-width: 1080px) and (min-width: 761px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .works-grid,
  .works-grid.is-gallery-focus {
    grid-template-columns: 1fr;
  }

  .works-page .page-filters {
    gap: 12px 16px;
  }
}
