:root {
  --project-accent: #8fb9eb;
  --project-accent-rgb: 143, 185, 235;
  --echo-deep: #080c14;
  --echo-surface: #0d131d;
  --echo-surface-soft: #111a27;
  --echo-line: rgba(188, 205, 224, 0.15);
}

.echo-page {
  background: var(--bg);
}

.echo-page ::selection {
  color: var(--echo-deep);
  background: var(--project-accent);
}

.echo-page code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9em;
}

/* Hero */
.echo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.42fr) minmax(0, 0.58fr);
  column-gap: clamp(42px, 5vw, 76px);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 62px);
  padding-bottom: 70px;
}

.echo-hero-copy {
  position: relative;
  z-index: 5;
}

.echo-hero h1 {
  margin: 20px 0 34px;
  font-size: clamp(4.5rem, 6.8vw, 7rem);
  font-weight: 550;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.echo-hero-headline {
  max-width: 620px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.3vw, 3.7rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.echo-hero-description {
  max-width: 570px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.76;
}

.echo-platform {
  width: max-content;
  margin: 0;
  padding: 7px 11px;
  color: var(--project-accent);
  border: 1px solid rgba(var(--project-accent-rgb), 0.48);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.echo-hero-visual {
  position: relative;
  min-width: 0;
  height: clamp(620px, 52vw, 770px);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 53% 48%, rgba(var(--project-accent-rgb), 0.16), transparent 34%),
    linear-gradient(145deg, #080c14, #101826 58%, #080c14);
  isolation: isolate;
}

.echo-hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.7px, transparent 0.8px);
  background-size: 16px 16px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.echo-rings {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 53%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--project-accent-rgb), 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.echo-rings::before,
.echo-rings::after {
  position: absolute;
  border: 1px solid rgba(var(--project-accent-rgb), 0.09);
  border-radius: 50%;
  content: "";
}

.echo-rings::before { inset: 14%; }
.echo-rings::after { inset: 31%; }

.hero-echo-phone {
  position: absolute;
  width: 31%;
  max-width: 245px;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.58);
}

.hero-phone-home {
  top: 19%;
  left: 4%;
  transform: rotate(-5deg);
}

.hero-phone-focus {
  z-index: 3;
  top: 7%;
  left: 50%;
  width: 36%;
  max-width: 278px;
  transform: translateX(-50%);
}

.hero-phone-thread {
  top: 19%;
  right: 3%;
  transform: rotate(5deg);
}

.echo-hero-foot {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.echo-hero-foot i {
  height: 1px;
  background: var(--border);
}

/* Concept */
.echo-concept {
  border-top: 1px solid var(--border);
}

.echo-concept > h2 {
  max-width: 1120px;
  margin: clamp(52px, 7vw, 92px) auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-align: center;
}

.echo-concept-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 7vw, 110px);
  max-width: 940px;
  margin: clamp(70px, 9vw, 130px) auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--border-bright);
}

.echo-concept-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.8;
}

/* Story */
.echo-story {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--echo-surface);
}

.echo-story .story-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.echo-story .story-step h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.echo-mobile-screen {
  max-width: 460px;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid var(--echo-line);
  border-radius: 10px;
  background: var(--echo-deep);
}

.echo-mobile-screen img {
  width: 100%;
}

.echo-story-media {
  min-height: calc(100vh - var(--header-height) - 86px);
  min-height: calc(100svh - var(--header-height) - 86px);
}

.echo-story-media .story-device {
  position: relative;
  z-index: 2;
  width: min(33vw, 350px);
  margin-inline: auto;
  border-width: 8px;
  border-radius: 42px;
  box-shadow: 0 46px 120px rgba(0, 0, 0, 0.58);
}

.echo-story-orbit {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(50vw, 570px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--project-accent-rgb), 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.echo-story-orbit::before,
.echo-story-orbit::after {
  position: absolute;
  border: 1px solid rgba(var(--project-accent-rgb), 0.08);
  border-radius: 50%;
  content: "";
}

.echo-story-orbit::before { inset: 16%; }
.echo-story-orbit::after { inset: 34%; }

.echo-story .story-screen-stack img {
  transform: translateY(8px);
  transition-duration: 720ms;
}

.echo-story .story-screen-stack img.is-active {
  transform: translateY(0);
}

.echo-story .story-progress {
  position: relative;
  z-index: 2;
  width: min(33vw, 350px);
  margin-inline: auto;
}

@media (min-width: 769px) {
  .js .echo-story-layout {
    grid-template-columns: minmax(330px, 0.43fr) minmax(0, 0.57fr);
    gap: clamp(56px, 8vw, 120px);
  }

  .js .echo-story .story-step {
    min-height: 82vh;
    min-height: 82svh;
    opacity: 0.3;
    transition-duration: 620ms;
  }

  .js .echo-story .story-step.is-active {
    opacity: 1;
  }
}

/* Editorial pause */
.echo-editorial {
  overflow: hidden;
  background: #080c14;
}

.echo-editorial-copy {
  display: grid;
  grid-template-columns: minmax(230px, 0.31fr) minmax(0, 0.69fr);
  gap: 36px;
  align-items: start;
}

.echo-editorial-copy .case-index {
  grid-row: 1 / span 2;
}

.echo-editorial-copy h2 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.echo-editorial-copy > p:last-child {
  grid-column: 2;
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.75;
}

.echo-editorial-visual {
  position: relative;
  height: clamp(680px, 68vw, 920px);
  margin-top: clamp(74px, 9vw, 130px);
  overflow: hidden;
  border: 1px solid var(--echo-line);
  background:
    radial-gradient(circle at center, rgba(var(--project-accent-rgb), 0.15), transparent 37%),
    linear-gradient(135deg, #060a11, #101826 60%, #080c14);
}

.echo-editorial-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.7px, transparent 0.8px);
  background-size: 16px 16px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.editorial-phone {
  position: absolute;
  width: min(26%, 310px);
  border-width: 8px;
  border-radius: 42px;
}

.editorial-reflection {
  top: 18%;
  left: 10%;
  transform: rotate(-5deg);
}

.editorial-return {
  z-index: 2;
  top: 7%;
  left: 50%;
  width: min(29%, 345px);
  transform: translateX(-50%);
}

.editorial-history {
  top: 18%;
  right: 10%;
  transform: rotate(5deg);
}

/* Writing */
.echo-writing .case-section-heading h2,
.echo-ai .case-section-heading h2,
.echo-privacy .case-section-heading h2,
.echo-engineering .case-section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(430px, 0.62fr) minmax(300px, 0.38fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  margin-top: clamp(74px, 9vw, 130px);
}

.writing-screen {
  position: relative;
  width: min(100%, 610px);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--echo-line);
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--project-accent-rgb), 0.13), transparent 42%),
    var(--echo-surface);
}

.writing-screen::before {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 0.7px, transparent 0.8px);
  background-size: 15px 15px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.writing-screen img {
  position: relative;
  width: min(100%, 390px);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.48);
}

.writing-features {
  border-top: 1px solid var(--border-bright);
}

.writing-features article {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding-block: 30px;
  border-bottom: 1px solid var(--border);
}

.writing-features span,
.writing-features h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.writing-features span {
  color: var(--project-accent);
}

.writing-features h3 {
  margin: 0 0 15px;
}

.writing-features p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* AI */
.echo-ai {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--echo-surface);
}

.ai-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: clamp(70px, 9vw, 120px);
}

.ai-flow > div {
  min-height: 150px;
  padding: 26px;
  border-top: 1px solid var(--project-accent);
  border-bottom: 1px solid var(--border-bright);
}

.ai-flow span,
.ai-flow strong {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.ai-flow span {
  display: block;
  margin-bottom: 36px;
  color: var(--project-accent);
}

.ai-flow strong {
  display: block;
  margin-bottom: 8px;
}

.ai-flow p {
  margin: 0;
  color: var(--text-secondary);
}

.ai-flow > i {
  color: var(--project-accent);
  font-size: 1.2rem;
  font-style: normal;
  transform: rotate(-90deg);
}

.ai-showcase {
  display: grid;
  grid-template-columns: minmax(270px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
  margin-top: clamp(90px, 11vw, 160px);
}

.ai-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.78;
}

.ai-copy p + p {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.ai-phones {
  position: relative;
  height: clamp(610px, 54vw, 760px);
  overflow: hidden;
  border: 1px solid var(--echo-line);
  background: radial-gradient(circle at center, rgba(var(--project-accent-rgb), 0.15), transparent 40%), #080c14;
}

.ai-phone {
  position: absolute;
  top: 9%;
  width: min(36%, 300px);
  border-width: 8px;
  border-radius: 42px;
}

.ai-question {
  left: 13%;
  transform: rotate(-3deg);
}

.ai-thread {
  right: 13%;
  transform: rotate(3deg) translateY(7%);
}

/* Privacy */
.privacy-list {
  margin-top: clamp(74px, 9vw, 130px);
  border-top: 1px solid var(--border-bright);
}

.privacy-list article {
  display: grid;
  grid-template-columns: minmax(80px, 0.22fr) minmax(0, 0.78fr);
  gap: 34px;
  padding-block: clamp(34px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
}

.privacy-list article > span {
  color: var(--project-accent);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.privacy-list h3 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
}

.privacy-list p {
  max-width: 850px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.75;
}

.privacy-boundary {
  display: grid;
  grid-template-columns: minmax(210px, 0.31fr) minmax(0, 0.69fr);
  gap: 40px;
  margin-top: clamp(64px, 8vw, 110px);
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(var(--project-accent-rgb), 0.35);
  background: rgba(var(--project-accent-rgb), 0.055);
}

.privacy-boundary > p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.75;
}

/* Engineering */
.echo-engineering {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #080c14;
}

.engineering-tech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(74px, 9vw, 130px);
  border: 1px solid var(--echo-line);
  background: var(--echo-line);
}

.engineering-tech > div {
  min-height: 260px;
  padding: clamp(26px, 3vw, 42px);
  background: var(--echo-deep);
}

.engineering-tech span {
  display: block;
  min-height: 50px;
  color: var(--project-accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.engineering-tech p {
  margin: 42px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.85;
}

.engineering-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--border-bright);
  border-left: 1px solid var(--border-bright);
}

.engineering-stories article {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
}

.engineering-stories span,
.engineering-stories h3 {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.engineering-stories span {
  color: var(--project-accent);
}

.engineering-stories h3 {
  margin: 0 0 20px;
}

.engineering-stories p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* Final */
.echo-final {
  padding-bottom: 0;
  background: var(--surface);
}

.echo-final h2 {
  max-width: 1100px;
  margin: clamp(38px, 5vw, 68px) 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.echo-final .shell > p:not(.case-index) {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.echo-footer {
  background: var(--surface);
}

@media (max-width: 1180px) {
  .echo-hero {
    grid-template-columns: minmax(350px, 0.4fr) minmax(0, 0.6fr);
    gap: 36px;
  }

  .echo-hero h1 {
    font-size: clamp(4.35rem, 6.8vw, 6.2rem);
  }

  .echo-hero-visual {
    height: clamp(580px, 57vw, 660px);
  }

  .hero-echo-phone {
    width: 32%;
  }

  .hero-phone-focus {
    width: 37%;
  }

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

@media (max-width: 900px) {
  .echo-hero {
    grid-template-columns: 1fr;
    gap: 56px;
    min-height: auto;
    padding-top: calc(var(--header-height) + 52px);
    padding-bottom: 106px;
  }

  .echo-hero-copy {
    max-width: 740px;
  }

  .echo-hero h1 {
    font-size: clamp(5.3rem, 15vw, 8.5rem);
  }

  .echo-hero-visual {
    height: min(90vw, 690px);
  }

  .echo-hero-foot {
    bottom: 42px;
  }

  .echo-editorial-copy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .echo-editorial-copy .case-index,
  .echo-editorial-copy h2,
  .echo-editorial-copy > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .echo-editorial-copy > p:last-child {
    margin-top: 0;
  }

  .writing-layout,
  .ai-showcase {
    grid-template-columns: 1fr;
  }

  .writing-features,
  .ai-copy {
    max-width: 680px;
  }

  .writing-screen {
    width: 100%;
  }

  .privacy-boundary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .echo-mobile-screen {
    max-width: none;
  }

  .echo-editorial-visual {
    height: 760px;
  }

  .editorial-phone {
    width: 34%;
  }

  .editorial-reflection { left: 3%; }
  .editorial-return { width: 38%; }
  .editorial-history { right: 3%; }

  .ai-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ai-flow > i {
    padding-block: 15px;
    text-align: center;
    transform: none;
  }

  .ai-flow > div {
    min-height: 0;
  }

  .engineering-stories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .echo-hero {
    gap: 42px;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 86px;
  }

  .echo-hero h1 {
    margin: 18px 0 28px;
    font-size: clamp(3.65rem, 17vw, 5rem);
  }

  .echo-hero-headline {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .echo-hero-description {
    font-size: 1rem;
  }

  .echo-hero-visual {
    height: 124vw;
    max-height: 500px;
    margin-inline: -16px;
    border-right: 0;
    border-left: 0;
  }

  .hero-echo-phone {
    top: 22%;
    width: 42%;
  }

  .hero-phone-home { left: -5%; }

  .hero-phone-focus {
    top: 8%;
    width: 48%;
  }

  .hero-phone-thread { right: -5%; }

  .echo-hero-foot {
    bottom: 24px;
    gap: 9px;
    font-size: 0.58rem;
  }

  .echo-concept > h2 {
    font-size: clamp(3rem, 14vw, 4.3rem);
    text-align: left;
  }

  .echo-concept-copy {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 58px;
  }

  .story-step-visual {
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .echo-editorial-copy h2 {
    font-size: clamp(2.9rem, 13vw, 4.1rem);
  }

  .echo-editorial-visual {
    height: 138vw;
    max-height: 580px;
    margin: 62px -16px 0;
    border-right: 0;
    border-left: 0;
  }

  .editorial-phone {
    top: 26%;
    width: 43%;
    border-width: 5px;
    border-radius: 28px;
  }

  .editorial-reflection { left: -7%; }

  .editorial-return {
    top: 8%;
    width: 50%;
  }

  .editorial-history { right: -7%; }

  .writing-layout {
    gap: 50px;
    margin-top: 64px;
  }

  .writing-screen {
    margin-inline: -16px;
    width: calc(100% + 32px);
    padding: 24px 16px;
    border-right: 0;
    border-left: 0;
  }

  .writing-screen img {
    width: 100%;
  }

  .ai-flow {
    margin-top: 62px;
  }

  .ai-showcase {
    gap: 46px;
    margin-top: 78px;
  }

  .ai-phones {
    height: 126vw;
    max-height: 520px;
    margin-inline: -16px;
    border-right: 0;
    border-left: 0;
  }

  .ai-phone {
    top: 10%;
    width: 51%;
    border-width: 5px;
    border-radius: 30px;
  }

  .ai-question { left: 2%; }
  .ai-thread { right: 2%; }

  .privacy-list {
    margin-top: 64px;
  }

  .privacy-list article {
    grid-template-columns: 42px 1fr;
    gap: 16px;
  }

  .privacy-boundary {
    gap: 14px;
    margin-top: 58px;
    padding: 26px 22px;
  }

  .engineering-tech {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .engineering-tech > div {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    min-height: 0;
  }

  .engineering-tech span {
    min-height: 0;
  }

  .engineering-tech p {
    margin: 0;
  }

  .engineering-stories {
    margin-top: 70px;
  }

  .engineering-stories article {
    padding: 28px 20px;
  }

  .echo-final h2 {
    font-size: clamp(4.3rem, 20vw, 6.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-home,
  .hero-phone-focus,
  .hero-phone-thread,
  .editorial-reflection,
  .editorial-return,
  .editorial-history,
  .ai-question,
  .ai-thread {
    animation: none;
  }
}
