:root {
  --comms-coral: #ff5e52;
  --comms-pink: #f65eb1;
  --comms-violet: #a861ff;
  --comms-amber: #ffc95a;
  --comms-cyan: #7be8e1;
  --comms-paper: #f6f0ed;
  --comms-ink: #191519;
  --comms-gradient: linear-gradient(120deg, var(--comms-coral), var(--comms-pink) 54%, var(--comms-violet));
}

.comms-page {
  background: #09090b;
}

.comms-page .cursor-light {
  background: radial-gradient(circle, rgba(246, 94, 177, 0.11), transparent 68%);
}

.comms-progress span {
  background: linear-gradient(90deg, var(--comms-coral), var(--comms-pink), var(--comms-cyan));
  box-shadow: 0 0 1rem rgba(246, 94, 177, 0.7);
}

.comms-page .projects-header {
  background: rgba(9, 9, 11, 0.78);
}

.comms-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 7rem) var(--page-x) clamp(2.5rem, 5vw, 4rem);
  isolation: isolate;
}

.comms-hero::before,
.comms-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(6rem);
}

.comms-hero::before {
  top: 3rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  background: rgba(168, 97, 255, 0.22);
}

.comms-hero::after {
  bottom: 10%;
  left: 28%;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 94, 82, 0.14);
}

.comms-glow {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.comms-glow-a {
  top: 8rem;
  right: 5%;
  width: min(45vw, 42rem);
  aspect-ratio: 1;
  animation: commsOrbit 18s linear infinite;
}

.comms-glow-b {
  top: 14rem;
  right: 12%;
  width: min(32vw, 30rem);
  aspect-ratio: 1;
  border-color: rgba(246, 94, 177, 0.16);
  animation: commsOrbit 14s linear infinite reverse;
}

.comms-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.35fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.comms-kicker {
  margin: 0;
  color: var(--comms-coral);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.comms-title {
  margin: 1.1rem 0 0;
  font-size: clamp(5rem, 14vw, 14.5rem);
  line-height: 0.73;
  letter-spacing: -0.095em;
  font-weight: 900;
}

.comms-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.44);
}

.comms-intro,
.comms-body {
  max-width: 53rem;
  margin: clamp(2rem, 4vw, 3.4rem) 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.08rem, 1.55vw, 1.48rem);
  line-height: 1.58;
}

.comms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.comms-tags span,
.hero-media-label {
  border: 1px solid rgba(246, 94, 177, 0.34);
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
  background: rgba(246, 94, 177, 0.05);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.63rem;
  font-weight: 900;
}

.voice-console {
  overflow: hidden;
  border: 1px solid rgba(246, 94, 177, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 94, 82, 0.14), rgba(168, 97, 255, 0.13)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.voice-console-head,
.voice-console-bottom,
.tone-mixer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 900;
}

.voice-console-head i,
.tone-mixer-head i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--comms-coral);
  box-shadow: 0 0 1rem var(--comms-coral);
  animation: commsPulse 2.2s ease-in-out infinite;
}

.voice-bars {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-bars span {
  display: block;
  width: 0.68rem;
  height: var(--bar-height);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--comms-cyan), var(--comms-pink), var(--comms-coral));
  animation: commsSignal 1.8s ease-in-out infinite alternate;
}

.voice-bars span:nth-child(1) { --bar-height: 22%; animation-delay: -0.2s; }
.voice-bars span:nth-child(2) { --bar-height: 48%; animation-delay: -0.9s; }
.voice-bars span:nth-child(3) { --bar-height: 72%; animation-delay: -0.4s; }
.voice-bars span:nth-child(4) { --bar-height: 42%; animation-delay: -1.2s; }
.voice-bars span:nth-child(5) { --bar-height: 88%; animation-delay: -0.6s; }
.voice-bars span:nth-child(6) { --bar-height: 58%; animation-delay: -1.4s; }
.voice-bars span:nth-child(7) { --bar-height: 74%; animation-delay: -0.3s; }
.voice-bars span:nth-child(8) { --bar-height: 34%; animation-delay: -1s; }
.voice-bars span:nth-child(9) { --bar-height: 52%; animation-delay: -0.7s; }

.voice-console-bottom strong {
  color: var(--comms-paper);
  font-size: 3.5rem;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.voice-console-bottom span {
  color: var(--comms-cyan);
}

.comms-hero-media {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3.5rem, 6vw, 6rem);
  border: 1px solid rgba(246, 94, 177, 0.28);
  border-radius: var(--radius);
  background: #141013;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
}

.comms-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 45%, rgba(255, 255, 255, 0.12), transparent 58%);
  content: "";
  transform: translateX(-90%);
  animation: commsSweep 7s ease-in-out infinite;
}

.comms-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  background: rgba(14, 12, 15, 0.78);
  backdrop-filter: blur(12px);
}

.hero-media-label span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--comms-coral);
  box-shadow: 0 0 0.8rem var(--comms-coral);
}

.comms-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.022);
}

.comms-marquee div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.35rem;
  animation: commsMarquee 30s linear infinite;
}

.comms-marquee span {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.92rem, 1.5vw, 1.25rem);
  font-weight: 900;
}

.comms-marquee i {
  color: var(--comms-coral);
  font-size: 1.8rem;
  font-style: normal;
}

.comms-story,
.comms-login-scene,
.comms-modules,
.studio-panel,
.tone-section,
.prompts-section,
.insights-section,
.comms-decisions {
  padding: var(--section-y) var(--page-x);
}

.comms-story {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.comms-story-number {
  color: rgba(246, 94, 177, 0.13);
  font-size: clamp(10rem, 22vw, 23rem);
  font-weight: 900;
  letter-spacing: -0.14em;
  line-height: 0.7;
}

.comms-story h2,
.comms-login-copy h2,
.comms-section-head h2,
.studio-panel h2,
.tone-copy h2,
.prompts-copy h2,
.insights-copy h2,
.comms-decisions h2 {
  max-width: 12ch;
  margin: 0.65rem 0 0;
  font-size: clamp(3.3rem, 7vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.91;
}

.comms-body-secondary {
  color: rgba(255, 255, 255, 0.43);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
}

.comms-login-scene {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 45%, rgba(246, 94, 177, 0.17), transparent 24rem),
    linear-gradient(135deg, rgba(255, 94, 82, 0.05), transparent 48%);
}

.comms-login-copy {
  position: relative;
  z-index: 1;
  max-width: 61rem;
}

.login-mockup {
  width: min(82vw, 88rem);
  margin: clamp(1rem, 2vw, 2rem) auto clamp(-4rem, -3vw, -2rem);
}

.login-mockup img,
.insights-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

.comms-modules {
  border-bottom: 1px solid var(--line);
}

.station-grid,
.comms-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.station-card,
.comms-decision-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.032);
}

.station-card {
  min-height: 17rem;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 300ms ease;
}

.station-card:hover,
.station-card.is-hovering {
  border-color: rgba(246, 94, 177, 0.56);
  background: rgba(246, 94, 177, 0.075);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.24);
}

.station-card span,
.comms-decision-card span {
  color: var(--comms-coral);
  font-size: 0.68rem;
  font-weight: 900;
}

.station-card h3,
.comms-decision-card h3 {
  margin: clamp(3rem, 6vw, 6.5rem) 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  font-weight: 900;
  line-height: 0.95;
}

.station-card p,
.comms-decision-card p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.91rem;
  line-height: 1.55;
}

.comms-motion-card {
  transform: perspective(900px) translate3d(0, var(--card-lift, 0), 0) scale(var(--card-scale, 1))
    rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.comms-motion-card.comms-reveal {
  transform: perspective(900px) translate3d(0, calc(2rem + var(--card-lift, 0rem)), 0)
    scale(var(--card-scale, 1)) rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
}

.comms-motion-card.comms-reveal.is-visible {
  transform: perspective(900px) translate3d(0, var(--card-lift, 0rem), 0) scale(var(--card-scale, 1))
    rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
}

.studio-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(24rem, 1.28fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.studio-panel h2 span,
.tone-copy h2 span,
.prompts-copy h2 span,
.insights-copy h2 span {
  color: var(--comms-coral);
}

.analysis-board,
.tone-mixer {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255, 94, 82, 0.13), rgba(168, 97, 255, 0.1)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.24);
}

.analysis-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
}

.analysis-board-head b {
  color: var(--comms-paper);
  font-size: 4rem;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.analysis-line {
  display: grid;
  grid-template-columns: minmax(6rem, 0.24fr) minmax(0, 1fr) 2rem;
  gap: 1rem;
  align-items: center;
  padding-top: 1.3rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
}

.analysis-line i,
.tone-slider em {
  display: block;
  overflow: hidden;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.analysis-line em,
.tone-slider em i {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--comms-coral), var(--comms-pink), var(--comms-amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.3s var(--ease);
}

.analysis-board.is-visible .analysis-line em,
.tone-mixer.is-visible .tone-slider em i {
  transform: scaleX(1);
}

.analysis-line em.is-risk {
  background: linear-gradient(90deg, var(--comms-amber), var(--comms-coral));
}

.tone-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1.2fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 48%, rgba(246, 94, 177, 0.14), transparent 25rem),
    var(--comms-paper);
  color: var(--comms-ink);
}

.tone-section .comms-body {
  color: rgba(25, 21, 25, 0.7);
}

.tone-mixer {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 94, 82, 0.82), rgba(168, 97, 255, 0.78)),
    #282029;
}

.tone-slider {
  display: grid;
  grid-template-columns: minmax(7rem, 0.24fr) 3rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.tone-slider em i {
  width: var(--level);
  background: linear-gradient(90deg, var(--comms-cyan), var(--comms-paper), var(--comms-amber));
}

.prompts-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.prompts-section::before {
  position: absolute;
  top: -10rem;
  right: -3rem;
  color: rgba(246, 94, 177, 0.06);
  content: "PROMPTS";
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 900;
  letter-spacing: -0.1em;
}

.prompts-copy,
.prompt-grid {
  position: relative;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.prompt-card {
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.prompt-human {
  background:
    linear-gradient(150deg, rgba(255, 94, 82, 0.26), rgba(246, 94, 177, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.prompt-bot {
  background:
    linear-gradient(150deg, rgba(123, 232, 225, 0.15), rgba(168, 97, 255, 0.12)),
    rgba(255, 255, 255, 0.03);
}

.prompt-card p {
  margin: 0;
  color: var(--comms-coral);
  font-size: 0.7rem;
  font-weight: 900;
}

.prompt-card h3 {
  max-width: 16ch;
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.93;
}

.prompt-card span {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 900;
}

.insights-section {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 36%, rgba(255, 94, 82, 0.12), transparent 25rem),
    radial-gradient(circle at 70% 58%, rgba(168, 97, 255, 0.1), transparent 32rem);
}

.insights-copy {
  max-width: 70rem;
}

.insights-mockup {
  width: min(142%, 110rem);
  margin: clamp(2.5rem, 5vw, 5rem) 0 clamp(-2rem, -1vw, -1rem) 4%;
}

.comms-decisions {
  border-bottom: 1px solid var(--line);
}

.comms-decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comms-decision-card {
  min-height: 17rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.comms-decision-card h3 {
  max-width: 12ch;
  margin-top: auto;
}

.comms-decision-card p {
  max-width: 24rem;
}

.comms-contact {
  background:
    radial-gradient(circle at 50% 54%, rgba(246, 94, 177, 0.13), transparent 25rem),
    #09090b;
}

.comms-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.comms-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes commsPulse {
  0%,
  100% { opacity: 0.58; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes commsSignal {
  from { transform: scaleY(0.62); }
  to { transform: scaleY(1.05); }
}

@keyframes commsOrbit {
  from { transform: rotate(0deg) scale(0.96); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(0.96); }
}

@keyframes commsSweep {
  0%,
  35% { transform: translateX(-90%); }
  68%,
  100% { transform: translateX(90%); }
}

@keyframes commsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .comms-hero-grid,
  .studio-panel,
  .tone-section {
    grid-template-columns: 1fr;
  }

  .voice-console {
    max-width: 32rem;
  }

  .comms-story {
    grid-template-columns: 1fr;
  }

  .comms-story-number {
    font-size: 10rem;
  }

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

  .insights-mockup {
    width: 155%;
    margin-left: -10%;
  }
}

@media (max-width: 560px) {
  .comms-title {
    font-size: clamp(5rem, 25vw, 7.3rem);
  }

  .voice-bars {
    height: 8.5rem;
  }

  .voice-console-bottom strong {
    font-size: 2.8rem;
  }

  .comms-hero-media {
    margin-top: 2.5rem;
  }

  .hero-media-label {
    position: static;
    border: 0;
    border-radius: 0;
  }

  .comms-story h2,
  .comms-login-copy h2,
  .comms-section-head h2,
  .studio-panel h2,
  .tone-copy h2,
  .prompts-copy h2,
  .insights-copy h2,
  .comms-decisions h2 {
    font-size: clamp(2.8rem, 13.5vw, 4.5rem);
  }

  .login-mockup {
    width: 118%;
    margin-left: -9%;
  }

  .station-grid,
  .prompt-grid,
  .comms-decision-grid {
    grid-template-columns: 1fr;
  }

  .station-card {
    min-height: 14rem;
  }

  .analysis-line,
  .tone-slider {
    grid-template-columns: minmax(5.5rem, 0.36fr) 2.1rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .prompt-card {
    min-height: 19rem;
  }

  .insights-mockup {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comms-glow,
  .voice-console-head i,
  .tone-mixer-head i,
  .voice-bars span,
  .comms-hero-media::after,
  .comms-marquee div {
    animation: none;
  }
}
