.contact-copy {
  border-right: 1px solid var(--line);
  padding: 36px;
}

.contact-copy .section-kicker {
  color: rgb(133, 133, 133);
}

.contact-copy p:not(.section-kicker) {
  color: rgb(164, 164, 164);
  margin-top: 16px;
  font-size: 1.06rem;
  line-height: 1.82;
}

.contact-link {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  min-height: 178px;
  padding: 32px;
}

.contact-link span {
  color: rgb(133, 133, 133);
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-link strong {
  color: rgb(255, 255, 255);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.52;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.055);
}

.contact-link:nth-child(2n) {
  border-right: 0;
}

.contact-link:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.contact-section {
  border: 1px solid var(--line);
  color: rgb(255, 255, 255);
  background: radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.08), transparent 18rem),
    radial-gradient(circle at 78% 88%, rgba(255, 255, 255, 0.07), transparent 20rem),
    rgb(8, 8, 8);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  margin-top: 16px;
}

.contact-section, .portal-grid {
  border-radius: var(--home-panel-radius);
  overflow: hidden;
}

.cube-view {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  color: rgb(247, 247, 247);
  background: linear-gradient(145deg, rgb(7, 7, 7) 0%, rgb(3, 3, 3) 100%),
    rgb(5, 5, 5);
  box-shadow: var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-desc {
  color: var(--muted);
  max-width: 620px;
  margin-top: 26px;
  font-size: 1.18rem;
  line-height: 1.82;
}

.hero-kicker, .section-kicker {
  color: var(--subtle);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--text);
  max-width: 11ch;
  margin-top: 12px;
  font-size: clamp(4rem, 6vw, 7.8rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.magic-cube-stage {
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.46));
  position: relative;
  z-index: 1;
  width: 430px;
  height: 430px;
  transform-style: preserve-3d;
}

.portal-card {
  border-right: var(--home-card-border);
  background: rgba(255, 255, 255, 0.03);
  min-height: 310px;
  padding: 24px;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s ease,
    transform 0.18s ease;
}

.portal-card h3 {
  color: var(--text);
  margin-top: 54px;
  font-size: 1.45rem;
  font-weight: 600;
}

.portal-card p {
  color: var(--muted);
  margin-top: 13px;
  font-size: 1rem;
  line-height: 1.78;
}

.portal-card span {
  color: var(--text);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: auto;
  font-size: 0.96rem;
  font-weight: 700;
}

.portal-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.portal-card:last-child {
  border-right: 0;
}

.portal-grid {
  border: var(--home-card-border);
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-index {
  color: rgb(119, 119, 119);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-title {
  color: var(--text);
  margin-top: 12px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

.snapshot-label {
  color: rgb(158, 158, 158);
  display: block;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.snapshot-metric {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(15, 15, 15);
  position: relative;
  display: flex;
  min-height: 192px;
  overflow: hidden;
  flex-direction: column;
  padding: 26px;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast);
}

.snapshot-metric::before,
.snapshot-metric::after {
  opacity: 0.62;
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  height: 1px;
  pointer-events: none;
}

.snapshot-metric::after {
  opacity: 0.42;
  bottom: 0;
}

.snapshot-metric:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -1px 0 rgba(255, 255, 255, 0.055),
    0 12px 34px rgba(0, 0, 0, 0.18);
}

.snapshot-metric:hover::before {
  opacity: 0.82;
}

.snapshot-metric:hover::after {
  opacity: 0.58;
}

.snapshot-metric p {
  color: rgb(156, 156, 156);
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.snapshot-metric strong {
  color: var(--text);
  display: block;
  margin-top: 26px;
  font-size: clamp(1.5rem, 2.2vw, 1.92rem);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-copy h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
}

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

.contact-link, .portal-card {
  display: flex;
  flex-direction: column;
}

.cube-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  perspective: 980px;
}

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

.hero-overview {
  max-width: 780px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 82px 0 64px;
}

.is-preparing-reveal :is(.hero-section, .contact-section, .snapshot-panel) {
  visibility: hidden;
}

.magic-cube {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.magic-cube canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.magic-cube.is-dragging, .magic-cube.is-dragging canvas {
  cursor: grabbing;
}

.portal-card span::after {
  transition: transform 0.18s ease;
}

.portal-card:hover span::after {
  transform: translateX(3px);
}

.section {
  padding-top: 2px;
  padding-bottom: 32px;
}

.snapshot-card-top {
  display: block;
}

.snapshot-metric::before {
  top: 0;
}

.snapshot-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (width < 1024px) {
  .contact-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }

  .contact-link {
    border-right: 0;
    border-bottom: var(--home-card-border);
    padding: 24px;
  }

  .contact-link:last-child, .portal-card:last-child {
    border-bottom: 0;
  }

  .contact-link:nth-last-child(-n + 2) {
    border-bottom: var(--home-card-border);
  }

  .portal-card {
    border-right: 0;
    border-bottom: var(--home-card-border);
    min-height: 0;
    padding: 20px 22px 22px;
  }

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

  .contact-section {
    grid-template-columns: 1fr;
    margin-top: 2px;
  }

  .cube-frame {
    min-height: 430px;
  }

  .footer-panel {
    padding-inline: 22px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 58px 0 42px;
  }

  .hero-title {
    max-width: 9ch;
    font-size: 3.45rem;
  }

  .magic-cube-stage {
    width: min(350px, 94vw);
    height: min(350px, 94vw);
  }

  .portal-card h3 {
    margin-top: 22px;
    line-height: 1.2;
  }

  .portal-card p {
    margin-top: 10px;
    line-height: 1.68;
  }

  .portal-card span {
    margin-top: 18px;
  }

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

  .section {
    padding-top: 2px;
  }

  .snapshot-panel {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .snapshot-metric {
    min-height: 174px;
    padding: 22px;
  }

  .snapshot-metric strong {
    margin-top: 22px;
    font-size: 1.48rem;
  }
}
