:root {
  --ink: #171512;
  --muted: #746f66;
  --line: #ded8ce;
  --paper: #f8f4ed;
  --soft: #ebe5da;
  --white: #ffffff;
  --accent: #a78058;
  --accent-dark: #5a4430;
  --dust: #c4aaa0;
  --shadow: 0 28px 90px rgba(29, 25, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 170, 160, 0.22), transparent 30vw),
    var(--paper);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.announcement {
  min-height: 34px;
  padding: 9px 18px;
  color: var(--white);
  background: var(--dust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 86px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(248, 244, 237, 0.94);
  border-bottom: 1px solid rgba(222, 217, 209, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1;
}

.nav-group {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.nav-group.right {
  justify-content: flex-end;
}

.nav-group a,
.header-cta,
.eyebrow,
.filter,
.button,
.feature-tile span,
.project-card h3,
.project-index,
.site-footer {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group a {
  color: var(--muted);
}

.nav-group a:hover {
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  padding: 12px 19px;
  color: var(--white);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 120px);
  padding: 0 16px 22px;
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 52%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 42%);
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: min(8vw, 110px);
  z-index: 2;
  width: min(620px, calc(100% - 48px));
  color: var(--white);
  transform: translateY(-42%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow),
.contact-copy p,
.process-steps p,
.section-heading p {
  font-size: 16px;
  line-height: 1.75;
}

.hero-copy p:not(.eyebrow),
.process-steps p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid currentColor;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button.outline {
  color: var(--ink);
  background: transparent;
}

.hero .button.primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button.ghost {
  color: var(--white);
  background: transparent;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

.trust-strip div {
  min-height: 118px;
  padding: 26px 28px;
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 104px clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
}

.section-heading .eyebrow {
  color: var(--accent-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr 1fr;
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
}

.feature-tile {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--soft);
}

.feature-tile.tall {
  min-height: 520px;
}

.feature-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.03) 55%);
}

.feature-tile img {
  transition: transform 500ms ease;
}

.feature-tile:hover img {
  transform: scale(1.035);
}

.feature-tile span {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 1;
  color: var(--white);
}

.portfolio {
  padding-top: 74px;
  background: var(--white);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 34px;
}

.filter {
  min-height: 40px;
  padding: 0 18px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.gallery-count {
  margin: -14px auto 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 18px;
  max-width: 1420px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  gap: 11px;
  align-content: start;
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
}

.project-card.wide .project-media {
  aspect-ratio: 1.35 / 1;
}

.project-card img {
  transition: transform 450ms ease, filter 450ms ease;
}

.project-card:hover img {
  filter: saturate(0.92);
  transform: scale(1.03);
}

.project-index {
  color: var(--accent);
  font-size: 11px;
}

.project-card h3 {
  margin: 0;
}

.project-card p {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.process-band {
  padding: 104px clamp(18px, 5vw, 76px);
  color: var(--white);
  background: var(--ink);
}

.process-band .section-heading .eyebrow {
  color: #d9c5ad;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.process-steps article {
  padding: 34px;
  background: #211f1d;
}

.process-steps span {
  display: block;
  margin-bottom: 26px;
  color: #d9c5ad;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
}

.process-steps h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.process-steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 112px clamp(18px, 6vw, 94px);
}

.contact-image {
  min-height: 680px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-copy {
  max-width: 560px;
}

.contact-copy p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 34px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.contact-list span {
  color: var(--muted);
  font-size: 12px;
}

.contact-list a:hover {
  color: var(--accent-dark);
}

.button.wide {
  width: min(100%, 340px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 38px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 13px;
    min-height: auto;
    padding: 16px 18px;
  }

  .brand {
    grid-row: 1;
  }

  .nav-group,
  .nav-group.right {
    justify-content: center;
  }

  .hero-media {
    min-height: 560px;
  }

  .trust-strip,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile,
  .feature-tile.tall {
    min-height: 420px;
  }

  .process-steps,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-image {
    min-height: 540px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    font-size: 29px;
  }

  .nav-group {
    gap: 15px;
  }

  .nav-group a {
    font-size: 10px;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 0 10px 14px;
  }

  .hero-media {
    min-height: 620px;
  }

  .hero-copy {
    left: 28px;
    width: calc(100% - 56px);
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-strip,
  .project-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin: 0 10px;
  }

  .section,
  .process-band,
  .contact-section {
    padding: 72px 18px;
  }

  .filters {
    justify-content: flex-start;
  }

  .filter {
    padding: 0 13px;
    font-size: 11px;
  }

  .project-grid {
    gap: 28px;
  }

  .contact-image {
    min-height: 430px;
  }

  .site-footer {
    padding: 24px 18px;
  }
}

/* JUN three-module MVP redesign */
:root {
  --jun-red: #980000;
  --jun-red-dark: #760000;
  --jun-ink: #15110f;
  --jun-muted: #726a61;
  --jun-line: #ded6cc;
  --jun-paper: #f7f2ea;
  --jun-white: #ffffff;
}

body {
  min-height: 100vh;
  color: var(--jun-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(152, 0, 0, 0.08), transparent 32vw),
    linear-gradient(135deg, #fbf8f2 0%, var(--jun-paper) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 242, 234, 0.92);
  border-bottom: 1px solid rgba(222, 214, 204, 0.82);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.brand-lockup img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(152, 0, 0, 0.16);
}

.brand-lockup span {
  color: var(--jun-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.consult-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  color: var(--jun-white);
  background: var(--jun-ink);
  border: 1px solid var(--jun-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.consult-link:hover {
  background: var(--jun-red-dark);
  border-color: var(--jun-red-dark);
  transform: translateY(-2px);
}

.home-screen {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  min-height: calc(100vh - 86px);
  padding: clamp(38px, 6vw, 86px) clamp(18px, 5vw, 64px) 48px;
}

.home-intro {
  max-width: 860px;
}

.eyebrow {
  color: var(--jun-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-intro h1,
.consult-panel h2,
.detail-hero h2 {
  margin: 0;
  color: var(--jun-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.home-intro h1 {
  max-width: 1050px;
  font-size: clamp(68px, 9.6vw, 156px);
  line-height: 0.92;
}

.home-intro p:not(.eyebrow),
.consult-panel p,
.detail-hero p {
  max-width: 650px;
  color: var(--jun-muted);
  font-size: 16px;
  line-height: 1.75;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  min-height: min(62vh, 640px);
  overflow: hidden;
  padding: 0;
  color: var(--jun-white);
  background: var(--jun-ink);
  border: 0;
  cursor: pointer;
  text-align: left;
}

.module-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.06) 58%),
    linear-gradient(90deg, rgba(152, 0, 0, 0.28), transparent 54%);
}

.module-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.module-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.13), transparent 24%),
    linear-gradient(135deg, var(--jun-red-dark), #211311 70%);
  font-size: clamp(76px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.module-card:hover img {
  filter: saturate(0.92);
  transform: scale(1.045);
}

.module-number,
.module-title,
.module-subtitle {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
}

.module-number {
  top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.module-title {
  bottom: 94px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 52px);
  line-height: 0.98;
}

.module-subtitle {
  bottom: 28px;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.module-detail {
  padding: 42px clamp(18px, 5vw, 64px) 96px;
  background: var(--jun-white);
}

.back-button {
  margin-bottom: 26px;
  padding: 0;
  color: var(--jun-red);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.48fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  margin-bottom: 58px;
}

.detail-hero h2,
.consult-panel h2 {
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.94;
}

.detail-hero img {
  width: 100%;
  height: min(48vw, 560px);
  min-height: 420px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(21, 17, 15, 0.14);
}

.detail-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(48vw, 560px);
  min-height: 420px;
  color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, var(--jun-red-dark), #211311 70%);
  box-shadow: 0 24px 70px rgba(21, 17, 15, 0.14);
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--jun-line);
}

.detail-section-heading span {
  color: var(--jun-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  display: grid;
  gap: 10px;
  margin: 0;
}

.media-card img,
.media-card video {
  width: 100%;
  height: min(28vw, 420px);
  min-height: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eee8df;
}

.media-card figcaption {
  color: var(--jun-muted);
  font-size: 13px;
}

.empty-media {
  min-height: 220px;
  display: grid;
  place-content: center;
  padding: 28px;
  color: var(--jun-muted);
  background:
    linear-gradient(135deg, rgba(152, 0, 0, 0.06), transparent),
    #f4eee5;
  border: 1px dashed rgba(152, 0, 0, 0.28);
  text-align: center;
}

.empty-media span {
  color: var(--jun-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.empty-media p {
  max-width: 360px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.6;
}

.consult-panel {
  padding: 82px clamp(18px, 5vw, 64px);
  background: var(--jun-ink);
}

.consult-panel .eyebrow {
  color: #e2b0a6;
}

.consult-panel h2 {
  color: var(--jun-white);
}

.consult-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list a {
  display: grid;
  gap: 4px;
  color: var(--jun-white);
  font-size: 16px;
}

.contact-list span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--jun-muted);
  background: var(--jun-white);
  border-top: 1px solid var(--jun-line);
}

@media (max-width: 980px) {
  .module-grid,
  .detail-hero,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 420px;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 72px;
    padding: 13px 16px;
  }

  .brand-lockup img {
    width: 38px;
    height: 38px;
  }

  .brand-lockup span {
    font-size: 20px;
  }

  .consult-link {
    min-height: 38px;
    padding: 0 15px;
    font-size: 11px;
  }

  .home-screen {
    padding: 32px 14px 34px;
  }

  .home-intro h1 {
    font-size: 52px;
  }

  .module-card {
    min-height: 360px;
  }

  .module-title {
    bottom: 102px;
  }

  .module-detail,
  .consult-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

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

/* JUN immersive mixed media feed */
.brand-lockup img {
  width: 108px;
  height: 108px;
}

.brand-lockup span {
  font-family: FangSong, STFangsong, "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(42px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: 0.22em;
}

.home-intro h1,
.consult-panel h2,
.detail-hero h2,
.module-title,
.empty-media span {
  font-family: FangSong, STFangsong, "Songti SC", SimSun, Georgia, serif;
}

.home-screen[hidden],
.media-view[hidden] {
  display: none;
}

.media-view {
  position: relative;
  min-height: 100vh;
  background: #0f0d0c;
}

.media-view-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 150px 1fr 120px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 54px);
  color: var(--jun-white);
  background: rgba(15, 13, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.back-button,
.mini-consult {
  color: var(--jun-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.back-button {
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
}

.mini-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.media-view-title {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.media-view-title span {
  font-family: FangSong, STFangsong, "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.media-view-title small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-legend {
  position: sticky;
  top: 76px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(15, 13, 12, 0.66);
  backdrop-filter: blur(14px);
}

.stage-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot.factory,
.stage-pill.factory {
  background: #9c5a2e;
}

.dot.sample,
.stage-pill.sample {
  background: var(--jun-red);
}

.dot.client,
.stage-pill.client {
  background: #2f6256;
}

.immersive-feed {
  height: calc(100vh - 122px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #0f0d0c;
}

.feed-item {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 122px);
  padding: clamp(16px, 3vw, 42px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feed-item img,
.feed-item video {
  width: min(100%, 1180px);
  max-height: calc(100vh - 210px);
  object-fit: contain;
  background: #171412;
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.45);
}

.feed-item video {
  aspect-ratio: 16 / 9;
}

.feed-overlay {
  position: absolute;
  left: clamp(20px, 5vw, 70px);
  bottom: clamp(22px, 5vw, 64px);
  display: grid;
  gap: 12px;
  max-width: min(520px, calc(100% - 40px));
  color: var(--jun-white);
}

.stage-pill {
  justify-self: start;
  padding: 8px 12px;
  color: var(--jun-white);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feed-overlay p {
  margin: 0;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 14px;
  line-height: 1.5;
}

.empty-feed {
  color: var(--jun-white);
  text-align: center;
}

.empty-feed h2 {
  margin: 18px 0 10px;
  font-family: FangSong, STFangsong, "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 500;
}

.empty-feed p {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.desktop-feed-controls {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.media-view[hidden] + .desktop-feed-controls {
  display: none;
}

.desktop-feed-controls button {
  min-width: 112px;
  min-height: 42px;
  color: var(--jun-white);
  background: rgba(152, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.is-viewing-media .site-header,
.is-viewing-media .consult-panel,
.is-viewing-media .site-footer {
  display: none;
}

@media (max-width: 760px) {
  .brand-lockup img {
    width: 54px;
    height: 54px;
  }

  .brand-lockup span {
    font-size: 26px;
  }

  .media-view-bar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 68px;
    padding: 10px 12px;
  }

  .media-view-title {
    order: 3;
    grid-column: 1 / -1;
  }

  .stage-legend {
    top: 88px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .immersive-feed {
    height: calc(100vh - 138px);
  }

  .feed-item {
    min-height: calc(100vh - 138px);
    padding: 10px;
  }

  .feed-item img,
  .feed-item video {
    width: 100%;
    max-height: calc(100vh - 220px);
  }

  .feed-overlay {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .desktop-feed-controls {
    display: none;
  }
}
