/* Portfolio and case-study pages */

.subpage {
  background: var(--paper);
}

/* Service landing pages */

.service-page-hero {
  min-height: 760px;
}

.service-page-hero h1 {
  max-width: 1160px;
  font-size: clamp(58px, 7vw, 102px);
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.subpage-hero-inner > .service-start {
  margin-top: 24px;
  color: rgba(247, 248, 245, 0.52);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-start strong {
  margin-left: 8px;
  color: var(--lime);
  font-size: 14px;
}

.service-problems {
  background: var(--paper);
}

.service-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-problem-grid article {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-problem-grid article > span {
  color: var(--blue);
  font: 700 10px/1 Consolas, monospace;
}

.service-problem-grid h3 {
  margin: 86px 0 14px;
  font-size: 24px;
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.service-problem-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-scope-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 255, 69, 0.08), transparent 26%),
    var(--deep);
  color: var(--white);
}

.service-scope-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 100px;
}

.service-scope-copy {
  position: sticky;
  top: 130px;
  align-self: start;
}

.service-scope-copy .section-index {
  color: var(--lime);
}

.service-scope-copy h2,
.service-faq-layout h2 {
  margin: 0;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.service-scope-copy h2 span {
  color: var(--muted-light);
}

.service-scope-copy > p:last-child {
  max-width: 540px;
  margin: 30px 0 0;
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.7;
}

.service-scope-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.service-scope-list li {
  display: grid;
  min-height: 84px;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-light);
}

.service-scope-list span {
  color: var(--lime);
  font: 700 10px/1 Consolas, monospace;
}

.service-scope-list p {
  margin: 0;
  font-size: 16px;
  font-weight: 560;
}

.service-process-section {
  background: var(--white);
}

.service-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.service-process-grid li {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-process-grid li > span {
  color: var(--blue);
  font: 700 10px/1 Consolas, monospace;
}

.service-process-grid h3 {
  margin: 88px 0 14px;
  font-size: 22px;
  font-weight: 630;
  letter-spacing: -0.04em;
}

.service-process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-estimate-section {
  background: var(--paper-warm);
}

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

.service-price-grid article {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.service-price-grid article > span {
  color: var(--blue);
  font: 700 10px/1 Consolas, monospace;
}

.service-price-grid h3 {
  margin: 54px 0 14px;
  font-size: 24px;
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.service-price-grid p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.service-price-grid strong {
  display: grid;
  gap: 4px;
  margin-top: auto;
  color: var(--ink);
  font-size: 19px;
}

.service-price-grid strong small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 520;
}

.service-estimate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 32px;
  margin-top: 28px;
}

.service-estimate-actions > a:not(.button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 720;
}

.service-case-section {
  background: var(--lime);
}

.service-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: end;
}

.service-case-card h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.service-case-card > div > p:not(.section-index) {
  max-width: 780px;
  margin: 30px 0 0;
  color: rgba(7, 17, 31, 0.7);
  font-size: 16px;
  line-height: 1.7;
}

.service-case-card .case-tags li {
  border-color: rgba(7, 17, 31, 0.2);
  color: rgba(7, 17, 31, 0.7);
}

.service-faq-section {
  background: var(--paper);
}

.service-faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.service-faq-layout h2 span {
  color: var(--muted);
}

.service-faq-list {
  border-top: 1px solid var(--line);
}

.service-faq-list details {
  border-bottom: 1px solid var(--line);
}

.service-faq-list summary {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 620;
  list-style: none;
}

.service-faq-list summary::-webkit-details-marker {
  display: none;
}

.service-faq-list summary span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.service-faq-list details[open] summary span {
  transform: rotate(45deg);
}

.service-faq-list details > p {
  max-width: 760px;
  margin: -4px 60px 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.service-related-section {
  background: var(--deep);
  color: var(--white);
}

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

.service-related-grid > a {
  display: grid;
  min-height: 170px;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(247, 248, 245, 0.035);
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.service-related-grid > a:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}

.service-related-grid span {
  grid-column: 1 / -1;
  color: var(--lime);
  font: 700 9px/1 Consolas, monospace;
}

.service-related-grid strong {
  font-size: 20px;
  font-weight: 590;
  letter-spacing: -0.03em;
}

.service-related-grid i {
  color: var(--lime);
  font-style: normal;
}

.service-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
}

.service-final-cta p {
  max-width: 650px;
  margin: 0;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1020px) {
  .service-problem-grid,
  .service-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-scope-layout,
  .service-faq-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .service-scope-copy {
    position: static;
  }

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

  .service-case-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .service-page-hero {
    min-height: 720px;
  }

  .service-hero-actions,
  .service-hero-actions .button {
    width: 100%;
  }

  .service-problem-grid,
  .service-process-grid,
  .service-price-grid,
  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-problem-grid article,
  .service-process-grid li {
    min-height: 240px;
  }

  .service-problem-grid h3,
  .service-process-grid h3 {
    margin-top: 58px;
  }

  .service-scope-list li {
    min-height: 76px;
  }

  .service-price-grid article {
    min-height: 290px;
  }

  .service-case-card {
    gap: 36px;
  }

  .service-case-card .button {
    width: 100%;
  }

  .service-faq-list summary {
    min-height: 76px;
    font-size: 15px;
  }

  .service-faq-list details > p {
    margin-right: 0;
  }

  .service-final-cta {
    display: grid;
  }

  .service-final-cta .button {
    width: 100%;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  color: rgba(247, 248, 245, 0.42);
  font-size: 10px;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--lime);
}

.breadcrumbs span[aria-current="page"] {
  color: rgba(247, 248, 245, 0.72);
}

.subpage-hero {
  position: relative;
  min-height: 730px;
  overflow: hidden;
  padding: 152px 0 96px;
  background:
    radial-gradient(circle at 80% 22%, rgba(52, 200, 255, 0.11), transparent 27%),
    var(--deep);
  color: var(--white);
}

.subpage-orbit {
  position: absolute;
  top: 88px;
  right: 4vw;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(52, 200, 255, 0.14);
  border-radius: 50%;
}

.subpage-orbit::before,
.subpage-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.subpage-orbit::before {
  inset: 72px;
  border: 1px solid rgba(216, 255, 69, 0.14);
}

.subpage-orbit::after {
  top: 40px;
  right: 70px;
  width: 9px;
  height: 9px;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}

.subpage-hero-inner {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(64px, 7.4vw, 108px);
  font-weight: 520;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.subpage-hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.subpage-hero-inner > p:not(.eyebrow) {
  max-width: 680px;
  margin: 38px 0 0;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.65;
}

.subpage-counter {
  position: absolute;
  right: 0;
  bottom: -22px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding-left: 32px;
  border-left: 1px solid rgba(247, 248, 245, 0.15);
}

.subpage-counter strong {
  color: var(--lime);
  font-size: 62px;
  font-weight: 530;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.subpage-counter span {
  color: rgba(247, 248, 245, 0.45);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Portfolio index */

.portfolio-list {
  background: var(--paper-warm);
}

.portfolio-project-card {
  display: grid;
  min-height: 760px;
  grid-template-columns: 0.93fr 1.07fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.portfolio-project-card:hover {
  box-shadow: 0 42px 110px rgba(3, 9, 17, 0.2);
  transform: translateY(-8px);
}

.project-card-copy {
  display: flex;
  flex-direction: column;
  padding: 50px;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 690;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-top b {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-weight: 710;
}

.project-card-top i {
  font-size: 15px;
  font-style: normal;
  transition: transform 0.2s ease;
}

.portfolio-project-card:hover .project-card-top i {
  transform: translate(3px, -3px);
}

.project-card-title {
  margin-top: 66px;
}

.project-card-title p {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 730;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card-title h2 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 550;
  letter-spacing: -0.058em;
  line-height: 0.99;
}

.project-card-description {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.project-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.project-card-stats span {
  display: grid;
  gap: 4px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.project-card-stats span:first-child {
  padding-left: 0;
}

.project-card-stats span:last-child {
  border-right: 0;
}

.project-card-stats strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -0.04em;
}

.project-card-visual {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(52, 200, 255, 0.15), transparent 30%),
    linear-gradient(145deg, #0c1c2e, var(--deep));
}

.project-card-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(52, 200, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 200, 255, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
}

.project-routes i {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime));
  transform-origin: left;
}

.project-routes i::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
  content: "";
  transform: translateY(-50%);
}

.project-routes i:nth-child(1) {
  top: 90px;
  left: 50px;
  width: 340px;
  transform: rotate(20deg);
}

.project-routes i:nth-child(2) {
  top: 230px;
  right: -80px;
  width: 370px;
  transform: rotate(155deg);
}

.project-routes i:nth-child(3) {
  bottom: 180px;
  left: 20px;
  width: 260px;
  transform: rotate(-18deg);
}

.project-routes i:nth-child(4) {
  right: -40px;
  bottom: 100px;
  width: 280px;
  transform: rotate(192deg);
}

.project-console-mini {
  position: absolute;
  top: 120px;
  right: 46px;
  left: 50px;
  overflow: hidden;
  border: 1px solid rgba(247, 248, 245, 0.18);
  border-radius: 22px;
  background: rgba(8, 20, 33, 0.94);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2.5deg);
}

.console-mini-top {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(247, 248, 245, 0.1);
}

.console-mini-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.console-mini-top b {
  color: var(--muted-light);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.console-mini-body {
  display: grid;
  min-height: 390px;
  grid-template-columns: 54px 1fr;
}

.console-mini-body aside {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  padding-top: 24px;
  border-right: 1px solid rgba(247, 248, 245, 0.08);
}

.console-mini-body aside i {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(247, 248, 245, 0.22);
  border-radius: 4px;
}

.console-mini-body aside i:first-child {
  border-color: var(--lime);
  background: var(--lime);
}

.console-mini-body > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 28px 24px;
}

.mini-title {
  width: 42%;
  height: 17px;
  grid-column: 1 / -1;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(247, 248, 245, 0.18);
}

.mini-card {
  height: 58px;
  border: 1px solid rgba(247, 248, 245, 0.08);
  border-radius: 9px;
  background: rgba(247, 248, 245, 0.04);
}

.mini-chart {
  position: relative;
  height: 118px;
  grid-column: 1 / -1;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(165deg, transparent 48%, var(--cyan) 49%, var(--cyan) 50%, transparent 51%),
    rgba(247, 248, 245, 0.035);
}

.mini-row {
  height: 13px;
  grid-column: 1 / -1;
  border-radius: 4px;
  background: rgba(247, 248, 245, 0.06);
}

.mini-row:last-child {
  width: 72%;
}

.project-phone {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: -140px;
  width: 192px;
  height: 435px;
  overflow: hidden;
  padding: 8px;
  border: 2px solid rgba(247, 248, 245, 0.48);
  border-radius: 35px;
  background: #10161d;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.56);
  transform: rotate(5deg);
}

.project-phone > span {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: #172029;
  transform: translateX(-50%);
}

.project-phone img {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  object-fit: cover;
  object-position: top;
}

.project-badge {
  position: absolute;
  z-index: 4;
  right: 220px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(247, 248, 245, 0.16);
  border-radius: 11px;
  background: rgba(5, 11, 18, 0.9);
  color: var(--white);
  font-family: Consolas, monospace;
  font-size: 9px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.project-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.portfolio-principle {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.portfolio-principle > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 710;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-principle p {
  max-width: 700px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.portfolio-principle a {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 720;
}

.portfolio-principle i {
  font-size: 16px;
  font-style: normal;
}

.portfolio-cta {
  padding: 104px 0;
  background: var(--lime);
}

.portfolio-cta-inner {
  display: grid;
  grid-template-columns: 1fr 0.72fr auto;
  gap: 70px;
  align-items: end;
}

.portfolio-cta .section-index {
  color: rgba(7, 17, 31, 0.56);
}

.portfolio-cta h2 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.portfolio-cta h2 span {
  color: rgba(7, 17, 31, 0.45);
}

.portfolio-cta-inner > p {
  margin: 0 0 4px;
  color: rgba(7, 17, 31, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.portfolio-cta .button-lime {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* MDM case hero */

.case-hero {
  position: relative;
  min-height: 1100px;
  overflow: hidden;
  padding: 150px 0 94px;
  background:
    radial-gradient(circle at 75% 25%, rgba(52, 200, 255, 0.1), transparent 27%),
    var(--deep);
  color: var(--white);
}

.case-hero-glow {
  position: absolute;
  top: 140px;
  right: -120px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(52, 200, 255, 0.07);
  filter: blur(80px);
}

.case-hero .shell {
  position: relative;
  z-index: 2;
}

.case-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.42fr);
  gap: 90px;
  align-items: end;
}

.case-hero-copy h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(58px, 6.4vw, 94px);
  font-weight: 520;
  letter-spacing: -0.068em;
  line-height: 0.93;
}

.case-hero-copy h1 em {
  color: var(--lime);
  font-style: normal;
}

.case-hero-lead {
  max-width: 820px;
  margin: 34px 0 0;
  color: rgba(247, 248, 245, 0.7);
  font-size: 19px;
  line-height: 1.65;
}

.case-hero-tags {
  margin-top: 28px;
}

.case-hero-tags li {
  border-color: rgba(247, 248, 245, 0.16);
  color: var(--muted-light);
}

.case-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(247, 248, 245, 0.16);
}

.case-facts div {
  display: grid;
  gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(247, 248, 245, 0.16);
}

.case-facts dt {
  color: rgba(247, 248, 245, 0.36);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: rgba(247, 248, 245, 0.78);
  font-size: 12px;
}

.case-hero-stage {
  position: relative;
  min-height: 480px;
  margin-top: 70px;
  overflow: hidden;
  border: 1px solid rgba(247, 248, 245, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(13, 30, 50, 0.88), rgba(5, 11, 18, 0.9));
  box-shadow: var(--shadow-dark);
}

.case-stage-grid {
  opacity: 0.3;
}

.stage-panel {
  position: absolute;
  display: grid;
  min-width: 270px;
  gap: 5px;
  padding: 20px;
  border: 1px solid rgba(247, 248, 245, 0.15);
  border-radius: 15px;
  background: rgba(7, 17, 31, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.stage-panel > span {
  color: var(--muted-light);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.stage-panel > strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 620;
}

.stage-backend {
  top: 82px;
  left: 70px;
}

.stage-backend div {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}

.stage-backend i {
  width: 52px;
  height: 24px;
  border-radius: 6px;
  background: rgba(52, 200, 255, 0.09);
}

.stage-backend i:nth-child(2) {
  background: rgba(216, 255, 69, 0.09);
}

.stage-core {
  right: 70px;
  bottom: 72px;
}

.stage-core b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 550;
}

.stage-core b i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.stage-phone {
  position: absolute;
  z-index: 3;
  top: -65px;
  left: 50%;
  width: 190px;
  height: 410px;
  overflow: hidden;
  padding: 8px;
  border: 2px solid rgba(247, 248, 245, 0.48);
  border-radius: 34px;
  background: #10161d;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.58);
  transform: translateX(-50%) rotate(-3deg);
}

.stage-phone img {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  object-fit: cover;
  object-position: top;
}

.phone-camera {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #172029;
  transform: translateX(-50%);
}

.stage-flow {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.stage-flow i {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
}

.stage-flow i:nth-child(1) { left: 0; }
.stage-flow i:nth-child(2) { left: 50%; background: var(--lime); }
.stage-flow i:nth-child(3) { right: 0; background: var(--blue); }

.flow-one {
  top: 210px;
  left: 300px;
  width: 250px;
  transform: rotate(18deg);
}

.flow-two {
  right: 285px;
  bottom: 195px;
  width: 270px;
  transform: rotate(-20deg);
}

.stage-status {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(247, 248, 245, 0.14);
  border-radius: 999px;
  background: rgba(5, 11, 18, 0.8);
  color: var(--muted-light);
  font-size: 9px;
  transform: translateX(-50%);
}

.stage-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* Case context */

.case-context {
  background: var(--paper);
}

.case-context-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.case-context-heading h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.case-context-heading h2 span {
  color: var(--muted);
}

.case-context-copy > .lead {
  margin: 0;
  font-size: 24px;
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.case-context-copy > p:not(.lead) {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.context-challenges {
  display: grid;
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.context-challenges article {
  display: grid;
  grid-template-columns: 46px 180px 1fr;
  gap: 20px;
  align-items: start;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.context-challenges span {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.context-challenges h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 660;
}

.context-challenges p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Architecture */

.system-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(52, 200, 255, 0.08), transparent 25%),
    var(--deep);
}

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

.system-card {
  min-height: 560px;
  padding: 30px;
  border: 1px solid rgba(247, 248, 245, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(247, 248, 245, 0.035);
  color: var(--white);
}

.system-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-light);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.system-card-top b {
  padding: 6px 9px;
  border: 1px solid rgba(247, 248, 245, 0.12);
  border-radius: 7px;
  font-weight: 550;
}

.system-card-mark {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin: 65px 0 34px;
  border: 1px solid rgba(52, 200, 255, 0.23);
  border-radius: 28px;
  background: rgba(52, 200, 255, 0.07);
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 16px;
  font-weight: 720;
  box-shadow: inset 0 0 30px rgba(52, 200, 255, 0.04);
}

.system-card-lime .system-card-mark {
  border-color: rgba(216, 255, 69, 0.25);
  background: rgba(216, 255, 69, 0.07);
  color: var(--lime);
}

.system-card-blue .system-card-mark {
  border-color: rgba(74, 120, 255, 0.28);
  background: rgba(74, 120, 255, 0.09);
  color: #91aaff;
}

.system-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 580;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.system-card > p {
  margin: 0;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.65;
}

.system-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(247, 248, 245, 0.11);
  list-style: none;
}

.system-card li {
  position: relative;
  padding-left: 17px;
  color: rgba(247, 248, 245, 0.63);
  font-size: 12px;
}

.system-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.system-card-lime li::before {
  background: var(--lime);
}

.system-card-blue li::before {
  background: #91aaff;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr 58px 1fr 58px 1fr 58px 1fr;
  align-items: center;
  margin-top: 42px;
  padding: 22px;
  border: 1px solid rgba(247, 248, 245, 0.13);
  border-radius: var(--radius-md);
  background: rgba(247, 248, 245, 0.025);
}

.architecture-flow > div {
  display: grid;
  gap: 2px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(247, 248, 245, 0.035);
}

.architecture-flow span {
  color: var(--muted-light);
  font-family: Consolas, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.architecture-flow strong {
  color: var(--white);
  font-size: 11px;
  font-weight: 630;
}

.architecture-flow > i {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.architecture-flow > i b {
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-50%);
}

/* Capabilities */

.capabilities-section {
  background: var(--paper);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability {
  min-height: 330px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability > span {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.capability > b {
  display: grid;
  width: 56px;
  height: 38px;
  place-items: center;
  margin: 45px 0 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.capability:nth-child(3n + 2) > b {
  color: var(--lime-dark);
}

.capability:nth-child(3n) > b {
  color: #009cd7;
}

.capability h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

/* Roles */

.roles-section {
  overflow: hidden;
  background: var(--lime);
}

.roles-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 90px;
  align-items: center;
}

.roles-copy .section-index {
  color: rgba(7, 17, 31, 0.56);
}

.roles-copy > h2 {
  margin: 0;
  font-size: clamp(50px, 5.5vw, 80px);
  font-weight: 530;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.roles-copy > h2 span {
  color: rgba(7, 17, 31, 0.44);
}

.roles-copy > p {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(7, 17, 31, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.role-switcher {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.role-switcher button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(7, 17, 31, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(7, 17, 31, 0.64);
  font-size: 12px;
  font-weight: 680;
}

.role-switcher button.is-active {
  background: var(--ink);
  color: var(--white);
}

.role-copy {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(7, 17, 31, 0.2);
}

.role-copy h3 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.role-copy ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-copy li {
  position: relative;
  padding-left: 17px;
  color: rgba(7, 17, 31, 0.68);
  font-size: 12px;
}

.role-copy li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.roles-phone {
  position: relative;
  display: grid;
  min-height: 680px;
  place-items: center;
}

.roles-phone-shell {
  position: relative;
  z-index: 3;
  width: 285px;
  height: 620px;
  overflow: hidden;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 48px;
  background: #0e141a;
  box-shadow: 0 35px 80px rgba(7, 17, 31, 0.28);
  transform: rotate(3deg);
}

.roles-phone-shell img {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  object-fit: cover;
  object-position: top;
}

.roles-speaker {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  width: 62px;
  height: 6px;
  border-radius: 99px;
  background: #182129;
  transform: translateX(-50%);
}

.roles-caption {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 56px;
  padding: 10px 13px;
  border: 1px solid rgba(7, 17, 31, 0.22);
  border-radius: 10px;
  background: rgba(247, 248, 245, 0.74);
  color: rgba(7, 17, 31, 0.65);
  font-family: Consolas, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.roles-orbit {
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(7, 17, 31, 0.15);
  border-radius: 50%;
}

.roles-orbit::before {
  position: absolute;
  inset: 70px;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 50%;
  content: "";
}

.roles-orbit i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.roles-orbit i:nth-child(1) { top: 85px; left: 60px; }
.roles-orbit i:nth-child(2) { top: 50%; right: -4px; background: var(--cyan); }
.roles-orbit i:nth-child(3) { bottom: 60px; left: 100px; background: var(--blue); }

/* Security */

.security-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(52, 200, 255, 0.08), transparent 28%),
    var(--deep);
  color: var(--white);
}

.security-grid {
  opacity: 0.1;
}

.security-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.security-heading .section-index {
  color: var(--lime);
}

.security-heading h2 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.security-heading h2 span {
  color: var(--lime);
}

.security-heading > p {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.7;
}

.security-list {
  display: grid;
  border-top: 1px solid rgba(247, 248, 245, 0.14);
}

.security-list article {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid rgba(247, 248, 245, 0.14);
}

.security-list article > span {
  padding-top: 4px;
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.security-list h3 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 610;
  letter-spacing: -0.03em;
}

.security-list p {
  margin: 0;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.62;
}

.security-list article > b {
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(247, 248, 245, 0.12);
  border-radius: 6px;
  color: rgba(247, 248, 245, 0.36);
  font-family: Consolas, monospace;
  font-size: 7px;
  font-weight: 550;
}

/* Results */

.results-section {
  background: var(--paper-warm);
}

.results-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  gap: 14px;
}

.result-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.result-card-main {
  min-height: 430px;
  grid-row: span 2;
  background: var(--ink);
  color: var(--white);
}

.result-card-lime {
  background: var(--lime);
}

.result-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-card-main > span {
  color: var(--muted-light);
}

.result-card > strong {
  margin-top: auto;
  font-size: clamp(50px, 5vw, 78px);
  font-weight: 540;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.result-card > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.result-card-main > p {
  color: var(--muted-light);
}

.result-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: rgba(247, 248, 245, 0.12);
}

.result-breakdown i {
  display: grid;
  gap: 2px;
  padding: 13px;
  background: var(--ink);
  color: var(--muted-light);
  font-size: 9px;
  font-style: normal;
}

.result-breakdown b {
  color: var(--white);
  font-size: 18px;
}

.results-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

/* Stack and CTA */

.case-stack-section {
  padding: 105px 0;
  background: var(--white);
}

.case-stack-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.case-stack-layout h2 {
  margin: 0;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 530;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.case-stack-layout h2 span {
  color: var(--muted);
}

.case-stack-layout ul {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.case-stack-layout li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.case-stack-layout li span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-stack-layout li strong {
  font-size: 15px;
  font-weight: 630;
  text-align: right;
}

.case-cta {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  background: var(--deep);
  color: var(--white);
}

.case-cta-grid {
  opacity: 0.13;
}

.case-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.case-cta .section-index {
  color: var(--lime);
}

.case-cta h2 {
  max-width: 1060px;
  margin: 0 auto;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.case-cta h2 span {
  color: var(--lime);
}

.case-cta-inner > p:not(.section-index) {
  max-width: 650px;
  margin: 30px auto 0;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.7;
}

.case-cta-inner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

/* Novus Core portfolio card and case */

.portfolio-index-page,
.novus-case-page {
  min-width: 0;
}

.portfolio-project-list {
  display: grid;
  gap: 34px;
}

.project-card-visual-core {
  background:
    radial-gradient(circle at 50% 46%, rgba(129, 80, 255, 0.2), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(52, 200, 255, 0.12), transparent 26%),
    linear-gradient(145deg, #10122c, var(--deep));
}

.project-card-visual-core::before {
  opacity: 0.24;
  background-size: 44px 44px;
}

.core-card-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(216, 255, 69, 0.2) 50%, transparent 50.15%),
    linear-gradient(transparent 49.85%, rgba(52, 200, 255, 0.18) 50%, transparent 50.15%);
}

.core-card-node,
.core-card-kernel,
.core-card-api {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(247, 248, 245, 0.18);
  background: rgba(7, 17, 31, 0.9);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.core-card-node {
  display: grid;
  width: 190px;
  gap: 7px;
  padding: 18px 20px;
  border-radius: 16px;
}

.core-card-node span,
.core-card-kernel span {
  color: rgba(247, 248, 245, 0.48);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.11em;
}

.core-card-node strong {
  color: var(--white);
  font-size: 16px;
  font-weight: 610;
}

.core-card-product {
  top: 74px;
  left: 50%;
  width: 230px;
  border-color: rgba(216, 255, 69, 0.36);
  transform: translateX(-50%);
}

.core-card-module-one {
  top: 238px;
  left: 54px;
}

.core-card-module-two {
  top: 238px;
  right: 54px;
}

.core-card-api {
  top: 423px;
  right: 54px;
  left: 54px;
  padding: 15px;
  border-color: rgba(52, 200, 255, 0.34);
  border-radius: 12px;
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.core-card-kernel {
  right: 86px;
  bottom: 92px;
  left: 86px;
  display: grid;
  grid-template-columns: 1fr repeat(3, 11px);
  gap: 11px;
  align-items: center;
  padding: 24px 26px;
  border-color: rgba(129, 80, 255, 0.52);
  border-radius: 18px;
}

.core-card-kernel strong {
  grid-column: 1;
  color: var(--white);
  font-size: 26px;
  font-weight: 660;
  letter-spacing: -0.04em;
}

.core-card-kernel i {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.core-card-links i {
  position: absolute;
  z-index: 1;
  width: 1px;
  background: linear-gradient(var(--lime), var(--cyan));
}

.core-card-links i:nth-child(1) {
  top: 145px;
  left: 50%;
  height: 78px;
}

.core-card-links i:nth-child(2) {
  top: 310px;
  left: 34%;
  height: 105px;
}

.core-card-links i:nth-child(3) {
  top: 310px;
  right: 34%;
  height: 105px;
}

.case-hero-stage.novus-hero-stage {
  min-height: 0;
  aspect-ratio: 1264 / 891;
  background: #070b13;
}

.novus-hero-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.novus-hero-stage::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 17, 31, 0.82));
  content: "";
  pointer-events: none;
}

.novus-hero-stage figcaption {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 248, 245, 0.82);
  font-size: 11px;
}

.novus-hero-stage figcaption i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.75);
}

.novus-stage-label {
  position: absolute;
  z-index: 3;
  padding: 9px 12px;
  border: 1px solid rgba(247, 248, 245, 0.18);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.76);
  color: rgba(247, 248, 245, 0.7);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.novus-stage-label-one {
  top: 26px;
  left: 28px;
}

.novus-stage-label-two {
  top: 26px;
  right: 28px;
}

.interface-section {
  overflow: hidden;
  background: var(--lime);
}

.interface-section .section-index,
.interface-section .section-head > p {
  color: rgba(7, 17, 31, 0.62);
}

.interface-gallery {
  display: grid;
  min-height: 1050px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.interface-shot {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.16);
  border-radius: var(--radius-xl);
  background: var(--deep);
  box-shadow: 0 28px 70px rgba(7, 17, 31, 0.18);
}

.interface-shot-wide {
  grid-column: 1;
  grid-row: 1;
}

.interface-shot:not(.interface-shot-wide):not(.interface-shot-mobile) {
  grid-column: 1;
  grid-row: 2;
}

.interface-shot-mobile {
  grid-column: 2;
  grid-row: 1 / 3;
}

.interface-shot > img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: cover;
  object-position: top center;
}

.interface-shot-mobile > img {
  object-fit: contain;
}

.interface-shot figcaption {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 12px;
  padding: 20px 22px;
  border-top: 1px solid rgba(247, 248, 245, 0.12);
  background: rgba(7, 17, 31, 0.96);
  color: var(--white);
}

.interface-shot figcaption span {
  grid-row: 1 / 3;
  color: var(--lime);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.interface-shot figcaption strong {
  font-size: 15px;
  font-weight: 610;
}

.interface-shot figcaption small {
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.45;
}

.interface-note {
  max-width: 850px;
  margin: 24px 0 0;
  color: rgba(7, 17, 31, 0.66);
  font-size: 11px;
  line-height: 1.65;
}

.novus-case-page .case-stack-layout strong {
  overflow-wrap: anywhere;
}

/* Portfolio/case responsive */

@media (max-width: 1180px) {
  .portfolio-project-card {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-copy {
    padding: 40px;
  }

  .case-hero-layout {
    gap: 55px;
  }

  .system-card {
    padding: 25px;
  }

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

@media (max-width: 1020px) {
  .subpage-hero {
    min-height: 680px;
    padding-top: 138px;
  }

  .subpage-counter {
    right: auto;
    bottom: -80px;
    left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .portfolio-project-card {
    grid-template-columns: 1fr;
  }

  .project-card-copy {
    min-height: 690px;
  }

  .project-card-visual {
    min-height: 650px;
  }

  .project-card-visual-core {
    min-height: 650px;
  }

  .portfolio-principle {
    grid-template-columns: 140px 1fr;
  }

  .portfolio-principle a {
    grid-column: 2;
  }

  .portfolio-cta-inner {
    grid-template-columns: 1fr 0.8fr;
  }

  .portfolio-cta .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .case-hero {
    min-height: auto;
  }

  .case-hero-layout {
    grid-template-columns: 1fr;
  }

  .case-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-facts div:nth-child(odd) {
    padding-right: 20px;
    border-right: 1px solid rgba(247, 248, 245, 0.16);
  }

  .case-facts div:nth-child(even) {
    padding-left: 20px;
  }

  .case-context-layout,
  .security-layout,
  .case-stack-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .system-cards {
    grid-template-columns: 1fr;
  }

  .system-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 130px 1fr;
    gap: 0 30px;
  }

  .system-card-top {
    grid-column: 1 / -1;
  }

  .system-card-mark {
    grid-row: span 3;
    margin: 50px 0 0;
  }

  .system-card h3 {
    margin-top: 50px;
  }

  .system-card ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .architecture-flow > i {
    width: 1px;
    height: 24px;
    justify-self: center;
    background: linear-gradient(var(--cyan), var(--lime));
  }

  .architecture-flow > i b {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translate(50%, 50%);
  }

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

  .roles-layout {
    grid-template-columns: 1fr;
  }

  .roles-phone {
    min-height: 650px;
  }

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

  .result-card-main {
    grid-row: span 2;
  }

  .interface-gallery {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .interface-shot-wide,
  .interface-shot:not(.interface-shot-wide):not(.interface-shot-mobile),
  .interface-shot-mobile {
    grid-column: 1;
    grid-row: auto;
  }

  .interface-shot > img {
    height: auto;
    aspect-ratio: 1264 / 891;
    flex: none;
  }

  .interface-shot-mobile > img {
    max-height: 760px;
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  .breadcrumbs {
    margin-bottom: 32px;
  }

  .subpage-hero {
    min-height: 650px;
    padding: 118px 0 90px;
  }

  .subpage-hero h1 {
    font-size: clamp(52px, 14vw, 72px);
  }

  .subpage-hero-inner > p:not(.eyebrow) {
    font-size: 16px;
  }

  .subpage-counter {
    position: relative;
    bottom: auto;
    margin-top: 70px;
  }

  .project-card-copy {
    min-height: 0;
    padding: 28px 22px;
  }

  .project-card-top {
    align-items: flex-start;
    gap: 20px;
  }

  .project-card-title {
    margin-top: 45px;
  }

  .project-card-title h2 {
    font-size: 43px;
  }

  .project-card-stats {
    margin-top: 48px;
  }

  .project-card-stats span {
    padding: 0 8px;
  }

  .project-card-stats strong {
    font-size: 18px;
  }

  .project-card-visual {
    min-height: 550px;
  }

  .project-card-visual-core {
    min-height: 590px;
  }

  .core-card-product {
    top: 58px;
  }

  .core-card-module-one {
    top: 198px;
    left: 24px;
  }

  .core-card-module-two {
    top: 198px;
    right: 24px;
  }

  .core-card-api {
    top: 360px;
    right: 24px;
    left: 24px;
  }

  .core-card-kernel {
    right: 42px;
    bottom: 62px;
    left: 42px;
  }

  .core-card-links i:nth-child(1) {
    top: 128px;
    height: 58px;
  }

  .core-card-links i:nth-child(2),
  .core-card-links i:nth-child(3) {
    top: 270px;
    height: 80px;
  }

  .project-console-mini {
    top: 70px;
    right: 20px;
    left: 20px;
  }

  .project-phone {
    right: 24px;
    width: 165px;
  }

  .project-badge {
    right: 170px;
    bottom: 35px;
  }

  .portfolio-principle {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .portfolio-principle a {
    grid-column: 1;
  }

  .portfolio-cta-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-cta h2 {
    font-size: 58px;
  }

  .case-hero {
    padding: 118px 0 70px;
  }

  .case-hero-copy h1 {
    font-size: clamp(50px, 13vw, 70px);
  }

  .case-hero-lead {
    font-size: 17px;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .case-facts div:nth-child(odd),
  .case-facts div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .case-hero-stage {
    min-height: 600px;
  }

  .case-hero-stage.novus-hero-stage {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .novus-stage-label {
    display: none;
  }

  .stage-backend {
    top: 48px;
    left: 20px;
  }

  .stage-core {
    right: 20px;
    bottom: 55px;
  }

  .stage-phone {
    top: 170px;
    width: 160px;
    height: 350px;
  }

  .flow-one,
  .flow-two {
    display: none;
  }

  .stage-status {
    bottom: 12px;
  }

  .case-context-layout {
    gap: 42px;
  }

  .case-context-copy > .lead {
    font-size: 21px;
  }

  .context-challenges article {
    grid-template-columns: 36px 1fr;
  }

  .context-challenges p {
    grid-column: 2;
  }

  .system-card {
    display: block;
  }

  .system-card-mark {
    margin-top: 45px;
  }

  .system-card h3 {
    margin-top: 32px;
  }

  .system-card ul {
    grid-template-columns: 1fr;
  }

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

  .capability {
    min-height: 290px;
  }

  .role-copy ul {
    grid-template-columns: 1fr;
  }

  .roles-phone {
    min-height: 600px;
  }

  .roles-phone-shell {
    width: 250px;
    height: 545px;
  }

  .roles-orbit {
    width: 450px;
    height: 450px;
  }

  .security-list article {
    grid-template-columns: 34px 1fr;
  }

  .security-list article > b {
    display: none;
  }

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

  .result-card,
  .result-card-main {
    min-height: 310px;
    grid-row: auto;
  }

  .case-stack-layout li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .case-stack-layout li strong {
    text-align: left;
  }

  .case-cta {
    padding: 100px 0;
  }

  .case-cta-inner > div {
    display: grid;
  }

  .interface-shot figcaption {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .project-card-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card-stats span {
    grid-template-columns: 90px 1fr;
    align-items: center;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-badge {
    right: auto;
    left: 16px;
  }

  .project-card-visual-core {
    min-height: 540px;
  }

  .core-card-node {
    width: 118px;
    padding: 13px;
  }

  .core-card-product {
    width: 180px;
  }

  .core-card-node strong {
    font-size: 13px;
  }

  .core-card-module-one {
    left: 14px;
  }

  .core-card-module-two {
    right: 14px;
  }

  .core-card-api {
    right: 14px;
    left: 14px;
  }

  .core-card-kernel {
    right: 24px;
    bottom: 70px;
    left: 24px;
  }

  .core-card-kernel strong {
    font-size: 22px;
  }

  .novus-hero-stage figcaption {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .security-heading,
  .security-list,
  .security-list article > div {
    min-width: 0;
  }

  .security-heading h2 {
    overflow-wrap: anywhere;
    font-size: 42px;
  }

  .stage-panel {
    min-width: 235px;
  }

  .stage-core {
    bottom: 45px;
  }
}

/* Market portfolio card and case */

.market-case-page {
  min-width: 0;
}

.portfolio-project-card-market .project-card-title p {
  color: #9a6a08;
}

.project-card-visual-market {
  background:
    radial-gradient(circle at 28% 24%, rgba(215, 169, 71, 0.2), transparent 30%),
    radial-gradient(circle at 76% 70%, rgba(18, 121, 86, 0.28), transparent 34%),
    linear-gradient(145deg, #081710, #030907);
}

.project-card-visual-market::before {
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(215, 169, 71, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 169, 71, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.project-card-visual-market .project-routes i {
  background: linear-gradient(90deg, transparent, #d7a947, #46d49a);
}

.project-card-visual-market .project-routes i::after {
  background: #d7a947;
  box-shadow: 0 0 14px rgba(215, 169, 71, 0.85);
}

.market-console-mini {
  border-color: rgba(215, 169, 71, 0.24);
  background: rgba(4, 15, 10, 0.94);
  transform: rotate(-2deg);
}

.market-console-mini .mini-chart {
  background:
    linear-gradient(165deg, transparent 48%, #d7a947 49%, #d7a947 50%, transparent 51%),
    rgba(247, 248, 245, 0.035);
}

.market-project-phone {
  right: 35px;
  bottom: -92px;
  width: 208px;
  height: 406px;
  border-color: rgba(215, 169, 71, 0.58);
  transform: rotate(4deg);
}

.market-case-page .case-hero {
  background:
    radial-gradient(circle at 72% 23%, rgba(215, 169, 71, 0.12), transparent 27%),
    radial-gradient(circle at 34% 76%, rgba(18, 121, 86, 0.12), transparent 30%),
    var(--deep);
}

.market-hero-stage {
  min-height: 600px;
  margin-right: 0;
  margin-left: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(18, 121, 86, 0.3), transparent 30%),
    radial-gradient(circle at 50% 40%, rgba(215, 169, 71, 0.12), transparent 48%),
    linear-gradient(145deg, #091b14, #030907);
}

.market-stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(215, 169, 71, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 169, 71, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
}

.market-stage-phone {
  position: absolute;
  z-index: 2;
  width: 190px;
  aspect-ratio: 1080 / 2108;
  overflow: hidden;
  padding: 7px;
  border: 2px solid rgba(215, 169, 71, 0.44);
  border-radius: 34px;
  background: #080c0a;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.58);
}

.market-stage-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  object-fit: cover;
  object-position: center;
}

.market-stage-phone-main {
  z-index: 4;
  top: 38px;
  left: 50%;
  width: 230px;
  border-color: rgba(215, 169, 71, 0.76);
  transform: translateX(-50%);
}

.market-stage-phone-left {
  top: 102px;
  left: 13%;
  transform: rotate(-8deg);
}

.market-stage-phone-right {
  top: 102px;
  right: 13%;
  transform: rotate(8deg);
}

.market-stage-label {
  position: absolute;
  z-index: 5;
  padding: 9px 12px;
  border: 1px solid rgba(215, 169, 71, 0.24);
  border-radius: 999px;
  background: rgba(3, 9, 7, 0.82);
  color: rgba(247, 248, 245, 0.66);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.market-stage-label-one {
  top: 28px;
  left: 28px;
}

.market-stage-label-two {
  top: 28px;
  right: 28px;
}

.market-hero-stage figcaption {
  position: absolute;
  z-index: 5;
  bottom: 20px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(247, 248, 245, 0.74);
  font-size: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.market-hero-stage figcaption i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #46d49a;
  box-shadow: 0 0 12px rgba(70, 212, 154, 0.8);
}

.market-interface-section {
  background: #e5f7ad;
}

.market-interface-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.market-interface-shot {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.18);
  border-radius: 24px;
  background: var(--deep);
  box-shadow: 0 24px 58px rgba(7, 17, 31, 0.17);
}

.market-interface-shot > img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 2108;
  object-fit: cover;
  object-position: center;
}

.market-interface-shot figcaption {
  display: grid;
  min-height: 94px;
  grid-template-columns: 28px 1fr;
  gap: 3px 8px;
  align-content: center;
  padding: 16px;
  border-top: 1px solid rgba(247, 248, 245, 0.1);
  color: var(--white);
}

.market-interface-shot figcaption span {
  grid-row: 1 / 3;
  color: #d7a947;
  font-family: Consolas, monospace;
  font-size: 9px;
}

.market-interface-shot figcaption strong {
  font-size: 13px;
  font-weight: 620;
}

.market-interface-shot figcaption small {
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.4;
}

.market-case-page .interface-note {
  color: rgba(7, 17, 31, 0.68);
}

@media (max-width: 1020px) {
  .market-interface-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-stage-phone-left {
    left: 7%;
  }

  .market-stage-phone-right {
    right: 7%;
  }
}

@media (max-width: 760px) {
  .market-project-phone {
    right: 24px;
    bottom: -78px;
    width: 174px;
    height: 340px;
  }

  .market-hero-stage {
    min-height: 590px;
  }

  .market-stage-label {
    display: none;
  }

  .market-stage-phone-main {
    top: 78px;
    width: 205px;
  }

  .market-stage-phone-left,
  .market-stage-phone-right {
    top: 135px;
    width: 158px;
    opacity: 0.62;
  }

  .market-stage-phone-left {
    left: -32px;
  }

  .market-stage-phone-right {
    right: -32px;
  }

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

@media (max-width: 460px) {
  .market-hero-stage {
    min-height: 550px;
  }

  .market-stage-phone-main {
    top: 72px;
    width: 190px;
  }

  .market-stage-phone-left,
  .market-stage-phone-right {
    top: 145px;
    width: 142px;
    opacity: 0.48;
  }

  .market-stage-phone-left {
    left: -64px;
  }

  .market-stage-phone-right {
    right: -64px;
  }

  .market-hero-stage figcaption {
    right: 12px;
    left: 12px;
    justify-content: center;
    font-size: 9px;
    text-align: center;
    transform: none;
    white-space: normal;
  }

  .market-interface-gallery {
    grid-template-columns: 1fr;
  }

  .market-interface-shot {
    width: 100%;
    max-width: 320px;
    justify-self: center;
  }
}

/* Keep service hero overrides after legacy portfolio breakpoints. */
.service-detail-page .service-page-hero {
  min-height: 760px;
}

.service-detail-page .service-page-hero h1 {
  max-width: 1160px;
  font-size: clamp(58px, 7vw, 102px);
}

.service-detail-page .subpage-hero-inner > .service-start {
  margin-top: 24px;
  color: rgba(247, 248, 245, 0.52);
  font-size: 12px;
}

@media (max-width: 760px) {
  .service-detail-page .service-page-hero {
    min-height: 720px;
  }

  .service-detail-page .service-page-hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }
}

/* Full price page */

.prices-page .prices-hero {
  min-height: 690px;
}

.full-price-section {
  background: var(--paper-warm);
}

.full-price-group + .full-price-group {
  margin-top: 88px;
}

.full-price-group-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.full-price-group-head p,
.full-price-group-head h2,
.full-price-group-head span {
  margin: 0;
}

.full-price-group-head p,
.full-price-group-head span {
  color: var(--muted);
  font: 700 10px/1.3 Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.full-price-group-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
}

.full-price-list {
  border-bottom: 1px solid var(--line);
}

.full-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 170px;
  gap: 28px;
  align-items: center;
  min-height: 170px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.full-price-row:last-child {
  border-bottom: 0;
}

.full-price-row > div > span {
  color: var(--blue);
  font: 700 9px/1 Consolas, monospace;
  letter-spacing: 0.08em;
}

.full-price-row h3 {
  margin: 13px 0 8px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.full-price-row p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.full-price-row > strong {
  display: grid;
  gap: 4px;
  font-size: 18px;
  text-align: right;
}

.full-price-row > strong small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 520;
  line-height: 1.35;
}

.full-price-row > a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 720;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.full-price-row > a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.full-price-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-top: 70px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--lime);
}

.full-price-note p {
  max-width: 820px;
  margin: 0;
  color: rgba(7, 17, 31, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1020px) {
  .full-price-row {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .full-price-row > a {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0 18px;
  }
}

@media (max-width: 760px) {
  .prices-page .prices-hero {
    min-height: 650px;
  }

  .full-price-group + .full-price-group {
    margin-top: 66px;
  }

  .full-price-group-head {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .full-price-group-head p {
    grid-column: 1 / -1;
  }

  .full-price-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .full-price-row > strong {
    text-align: left;
  }

  .full-price-row > a {
    grid-column: auto;
    width: 100%;
  }

  .full-price-note {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
  }

  .full-price-note .button {
    width: 100%;
  }
}

/* Privacy page */

.privacy-page .privacy-hero {
  min-height: 650px;
}

.subpage-hero-inner > .privacy-version {
  margin-top: 28px;
  color: var(--lime);
  font: 700 10px/1.3 Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-content {
  background: var(--paper);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 820px);
  gap: 110px;
  justify-content: center;
  align-items: start;
}

.privacy-layout > * {
  min-width: 0;
}

.privacy-nav {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 2px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.privacy-nav p {
  margin: 0 0 14px;
  color: var(--muted);
  font: 700 9px/1 Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-nav a {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.privacy-nav a:last-child {
  border-bottom: 0;
}

.privacy-nav a:hover {
  color: var(--blue);
}

.privacy-document > h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.privacy-document .privacy-intro {
  margin-top: 34px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.75;
}

.privacy-document section {
  scroll-margin-top: 112px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-document section h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.privacy-document p,
.privacy-document li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.privacy-document p {
  margin: 0;
}

.privacy-document p + p {
  margin-top: 16px;
}

.privacy-document ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
}

.privacy-document a:not(.button) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 46px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--lime);
}

.privacy-contact p {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 1020px) {
  .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .privacy-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-nav p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .privacy-page .privacy-hero {
    min-height: 610px;
  }

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

  .privacy-nav p {
    grid-column: auto;
  }

  .privacy-nav a {
    min-height: 44px;
  }

  .privacy-document section h2 {
    font-size: 24px;
  }

  .privacy-contact {
    display: grid;
  }

  .privacy-contact .button {
    width: 100%;
  }
}
