/* Framecast-derived design vars — Muse Isle CreatorHub */
:root {
  --ember: #ff6436;
  --onyx: #161616;
  --graphite: #3c3a3e;
  --stone: #7b7a7c;
  --ash: #a2a2a2;
  --silver: #c9c7cc;
  --fog: #f1f1f1;
  --canvas: #f8f8f8;
  --card: #ffffff;
  --black: #0a0a0a;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--graphite);
  font-family: "Archivo", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.monument {
  font-family: "League Gothic", "Archivo", "PingFang SC", sans-serif;
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.gradient-fill {
  background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hairline {
  border-color: var(--silver);
}

.ghost-watermark {
  font-family: "League Gothic", "Archivo", sans-serif;
  text-transform: uppercase;
  color: var(--fog);
  -webkit-text-stroke: 1px var(--silver);
  position: absolute;
  top: -0.25rem;
  left: 0;
  font-size: clamp(4.5rem, 18vw, 10rem);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ember);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Header */
.site-header {
  width: 100%;
  background: var(--onyx);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  color: #fff;
  font-size: 0.6875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--onyx);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.25rem;
}

.nav-link {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 160ms ease, background-color 160ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  display: none;
}

.nav-cta-mobile {
  margin-top: 0.5rem;
  text-align: center;
  justify-content: center;
}

.burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 200ms ease, opacity 200ms ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn-ember {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--ember);
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  transition: opacity 160ms ease;
  flex-shrink: 0;
}

.btn-ember:hover {
  opacity: 0.9;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.75rem;
}

.text-link {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--silver);
  transition: color 160ms ease;
  width: fit-content;
}

.text-link:hover {
  color: var(--ember);
}

/* Hero */
.hero {
  width: 100%;
  background: var(--onyx);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2.5rem;
  text-align: center;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--ember);
  flex-shrink: 0;
}

.status-text {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.hero .monument {
  font-size: clamp(4.5rem, 16vw, 10.5rem);
  width: 90%;
  max-width: 16ch;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  max-width: 36rem;
  margin-top: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Monitor stage */
.monitor-stage {
  width: 100%;
  background: var(--onyx);
  padding: 1rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor {
  position: relative;
  width: 100%;
  max-width: 860px;
}

.monitor-screen {
  border: 10px solid var(--black);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.monitor-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-neck {
  width: 140px;
  height: 18px;
  background: var(--black);
  margin: 0 auto;
}

.monitor-base {
  width: min(280px, 70%);
  height: 10px;
  background: var(--black);
  margin: 0 auto;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
}

.monitor-caption {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  text-align: center;
}

/* Sections */
.section {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-top: 2.5rem;
}

.capabilities .section-head {
  padding-top: 2.5rem;
}

.section-label {
  font-size: 0.6875rem;
  color: var(--stone);
}

.proof-label,
.collab-label {
  margin-bottom: 2.5rem;
}

/* Capabilities list */
.cap-list {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
}

.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--silver);
  align-items: center;
}

.cap-row:first-child {
  border-top: 0;
}

.cap-num {
  font-size: 0.6875rem;
  color: var(--ash);
}

.cap-row h3 {
  font-size: clamp(1.375rem, 4vw, 1.875rem);
  font-weight: 500;
  color: var(--graphite);
}

.tag {
  border-radius: 9999px;
  border: 1px solid var(--silver);
  padding: 0.5rem 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--stone);
  width: fit-content;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.work-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--silver);
  transition: transform 220ms ease;
}

.work-frame {
  border: 8px solid var(--black);
  background: #000;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 1.5rem;
}

.work-meta {
  font-size: 0.6875rem;
  color: var(--stone);
  margin-bottom: 0.75rem;
}

.work-body h3,
.workshop-panel h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 0.5rem;
}

.work-desc {
  font-size: 0.875rem;
  color: var(--stone);
  line-height: 1.65;
}

.media-hover:hover,
.media-hover:focus-within {
  transform: scale(1.02);
}

/* Proof */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--silver);
  padding-top: 2.5rem;
}

.proof-num {
  font-size: clamp(2.75rem, 10vw, 3.75rem);
  color: var(--onyx);
  background: none;
  -webkit-text-fill-color: initial;
}

.proof-cap {
  font-size: 0.6875rem;
  color: var(--stone);
  margin-top: 0.75rem;
}

.proof-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

/* Workshop */
.workshop-panel {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--silver);
  overflow: hidden;
  transition: transform 220ms ease;
}

.workshop-frame {
  border-bottom: 8px solid var(--black);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.workshop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-panel figcaption {
  padding: 1.5rem;
}

/* Collaborators */
.collab-strip {
  background: var(--card);
  border: 1px solid var(--silver);
  display: flex;
  flex-wrap: wrap;
}

.collab-cell {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
}

.collab-cell:last-child {
  border-right: 0;
}

.collab-cell .mono {
  font-size: 0.875rem;
  color: var(--stone);
}

/* CTA + Footer */
.cta {
  width: 100%;
  background: var(--onyx);
  padding: 4rem 1.5rem 6rem;
}

.cta-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  max-width: 18ch;
  margin-bottom: 2rem;
  line-height: 0.9;
}

.cta-lead {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  width: 100%;
  background: var(--onyx);
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-cta {
  color: rgba(255, 255, 255, 0.55);
  width: fit-content;
}

.footer-cta:hover {
  color: #fff;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 460ms var(--ease),
    transform 460ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .media-hover:hover,
  .media-hover:focus-within {
    transform: none;
  }
}

/* sm+ */
@media (min-width: 640px) {
  .nav-inner {
    padding: 0 2rem;
  }

  .section {
    padding: 5rem 2rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-lead {
    font-size: 1.125rem;
  }

  .cap-row {
    grid-template-columns: 80px 1fr auto;
    gap: 0.75rem;
  }

  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .proof-links {
    flex-direction: row;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .cta-title {
    line-height: 0.85;
  }
}

/* md+ */
@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-cta-mobile {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }
}

/* lg+ */
@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero .monument {
    font-size: 168px;
  }
}
