.top-nav {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin: 0 auto 2.2rem;
  width: fit-content;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  display: flex;
  gap: 0.35rem;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background var(--fade-speed) ease, color var(--fade-speed) ease, transform var(--fade-speed) ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: rgba(242, 204, 115, 0.2);
  color: #fff7d3;
  transform: translateY(-1px);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.48rem 0.9rem;
  background: rgba(13, 19, 45, 0.45);
  backdrop-filter: blur(14px);
}

.brand-orb {
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff9c7, #34d4bc 44%, #7a5ff8);
  box-shadow: 0 0 18px rgba(61, 212, 193, 0.85);
}

.hero-intro {
  min-height: 62vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(17, 23, 54, 0.64), rgba(18, 10, 47, 0.56));
  box-shadow: var(--shadow-bloom);
}

.thread-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.82;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 5.5rem);
  max-width: 700px;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: rgba(240, 242, 255, 0.72);
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7.4vw, 6.4rem);
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 0 36px rgba(111, 89, 255, 0.32);
}

.hero-tagline span {
  color: var(--accent-gold);
}

.hero-description {
  margin: 1.25rem 0 0;
  max-width: 54ch;
  line-height: 1.8;
  color: rgba(241, 243, 255, 0.84);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.dream-canvas {
  margin-top: 1.8rem;
  min-height: 56vh;
  position: relative;
}

.dream-window {
  position: absolute;
  width: min(270px, 70vw);
  border-radius: 26px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: 0 22px 45px rgba(12, 11, 33, 0.5);
  cursor: pointer;
  backdrop-filter: blur(12px);
  animation: floatDrift var(--drift-duration, 8s) ease-in-out infinite;
}

.dream-window:hover {
  border-color: rgba(242, 204, 115, 0.6);
}

.window-screen {
  min-height: 126px;
  border-radius: 16px;
  background: linear-gradient(130deg, var(--window-tone-a, rgba(111, 89, 255, 0.55)), var(--window-tone-b, rgba(247, 174, 212, 0.45)));
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.2);
}

.dream-window h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.dream-window p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(240, 242, 255, 0.76);
}

.immersion-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  align-items: center;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.immersion-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.immersion-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, var(--tone-a, rgba(61, 212, 193, 0.35)), transparent 46%),
    radial-gradient(circle at 80% 10%, var(--tone-b, rgba(242, 204, 115, 0.24)), transparent 42%),
    rgba(4, 7, 20, 0.9);
}

.immersion-panel {
  position: relative;
  width: min(860px, 92vw);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(15px);
  padding: clamp(1.5rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-bloom);
}

.immersion-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.immersion-panel p {
  line-height: 1.75;
  color: rgba(240, 244, 255, 0.88);
}

.immersion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.immersion-meta span {
  display: inline-flex;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  background: rgba(8, 11, 29, 0.45);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 16, 40, 0.8);
  cursor: pointer;
}

.about-flow {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  position: relative;
}

.about-visual {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.about-visual figcaption {
  display: none;
}

.about-card {
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 280px;
  padding: 1.2rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.about-card:nth-child(2n) {
  transform: translateY(26px);
}

.about-card h3 {
  margin: 0 0 0.7rem;
}

.about-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(236, 239, 255, 0.84);
}

.timeline {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-step {
  flex: 1 1 220px;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.timeline-step strong {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--accent-gold);
}

.works-field {
  position: relative;
  margin-top: 2.4rem;
  min-height: 72vh;
}

.work-orb {
  position: absolute;
  width: min(260px, 72vw);
  animation: floatDrift var(--drift-duration, 11s) ease-in-out infinite;
}

.work-core {
  border-radius: 28px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--ms, 1));
  transition: transform 180ms ease, border-color 180ms ease;
}

.work-core:hover {
  border-color: rgba(61, 212, 193, 0.74);
}

.work-thumb {
  border-radius: 18px;
  min-height: 150px;
  background: linear-gradient(145deg, var(--tone-a, rgba(111, 89, 255, 0.58)), var(--tone-b, rgba(247, 174, 212, 0.45)));
}

.work-thumb.is-image {
  background: #050505;
  overflow: hidden;
}

.work-thumb.is-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.work-core h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.06rem;
}

.work-core p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(234, 238, 255, 0.78);
}

.prompt-reveal {
  position: fixed;
  inset: 0;
  z-index: 9980;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 420ms ease;
}

.prompt-reveal.visible {
  opacity: 1;
}

.prompt-reveal p {
  margin: 0;
  width: min(840px, 86vw);
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.2;
  color: rgba(252, 230, 167, 0.95);
  text-shadow: 0 0 24px rgba(247, 174, 212, 0.58);
}

.contact-wrap {
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.contact-panel {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  padding: 1.15rem;
  backdrop-filter: blur(13px);
}

.form-stack {
  display: grid;
  gap: 0.8rem;
}

.form-stack label {
  font-size: 0.88rem;
  color: rgba(242, 244, 255, 0.82);
}

.input,
.textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 9, 28, 0.46);
  padding: 0.72rem 0.8rem;
}

.textarea {
  min-height: 138px;
  resize: vertical;
}

.inline-row {
  display: flex;
  gap: 0.6rem;
}

.upload-side-picker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.55rem;
}

.upload-side-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(10, 14, 34, 0.42);
  padding: 0.44rem 0.72rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.upload-side-btn.is-active {
  background: linear-gradient(130deg, var(--accent-gold), #fff2ca);
  color: var(--night-900);
  border-color: rgba(242, 204, 115, 0.85);
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  color: var(--night-900);
  font-weight: 600;
  background: linear-gradient(130deg, var(--accent-gold), #fff2ca);
}

.btn.alt {
  background: linear-gradient(130deg, rgba(61, 212, 193, 0.82), rgba(239, 248, 255, 0.88));
}

.dropzone {
  margin-top: 0.7rem;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: center;
  color: rgba(230, 234, 255, 0.78);
  background: rgba(7, 10, 28, 0.4);
  transition: border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}

.dropzone.drag-over {
  border-color: rgba(242, 204, 115, 0.8);
  background: rgba(111, 89, 255, 0.2);
}

.preview-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  max-height: 400px;
  overflow: auto;
}

.preview-card {
  padding: 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.preview-card img,
.preview-card video {
  border-radius: 12px;
  max-height: 180px;
  object-fit: cover;
}

.preview-card p {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: rgba(236, 239, 255, 0.8);
}

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

.link-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 17, 42, 0.55);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
}

.toast {
  margin-top: 0.8rem;
  padding: 0.62rem 0.8rem;
  border-radius: 11px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(61, 212, 193, 0.18);
  display: none;
}

.toast.show {
  display: block;
}

@keyframes floatDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -18px, 0) rotate(0.8deg);
  }
}

@media (max-width: 980px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .top-nav {
    width: 100%;
  }

  .top-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-intro {
    min-height: 58vh;
  }

  .work-orb,
  .dream-window {
    width: min(230px, 88vw);
  }
}
