/* Example Arc footer component styles. */

#contact {
  scroll-margin-top: 0;
}

.contact-cta-section,
.epilogue-section {
  position: relative;
  background: #111315;
  color: #ffffff;
  overflow: hidden;
}

.contact-cta-section {
  --contact-cta-height: var(--screen-frame-height);
  --contact-cta-top-safe: max(
    clamp(116px, 14vh, 148px),
    calc(var(--floating-header-clearance, 108px) + 18px)
  );
  --contact-cta-bottom-safe: clamp(28px, 3.2vh, 40px);
  min-height: var(--contact-cta-height);
  height: var(--contact-cta-height);
}

.epilogue-gradient-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(31, 127, 229, 0.18), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.08), transparent 24%);
  pointer-events: none;
}

.contact-cta-light-pillar {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.contact-cta-light-pillar canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-cta-light-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 44% 46%, rgba(17, 19, 21, 0.02), transparent 28%),
    linear-gradient(90deg, rgba(17, 19, 21, 0.08), rgba(17, 19, 21, 0.02) 46%, rgba(17, 19, 21, 0.12));
  pointer-events: none;
}

.screen-section.contact-cta-screen {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1fr);
  color: #ffffff;
  min-height: var(--contact-cta-height);
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  text-align: left;
  padding-top: var(--contact-cta-top-safe);
  padding-bottom: var(--contact-cta-bottom-safe);
}

.contact-cta-model-shell {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: center;
  width: clamp(340px, 34vw, 560px);
  height: clamp(340px, 34vw, 560px);
  opacity: 0;
  transform: translateX(-2vw);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.contact-cta-model-shell.is-ready {
  opacity: 1;
}

.contact-cta-model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0px;
  --progress-bar-color: transparent;
  opacity: 0.96;
  filter: saturate(1.05) contrast(1.03);
}

.contact-cta-model-viewer::part(default-progress-bar) {
  display: none;
  opacity: 0;
}

.contact-cta-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-self: center;
  justify-items: center;
  align-content: center;
  gap: clamp(24px, 4vh, 44px);
  max-width: 680px;
  text-align: center;
}

.contact-cta-screen .epilogue-hero {
  justify-items: center;
  gap: clamp(18px, 2vh, 28px);
  text-align: center;
}

.epilogue-hero {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  text-align: center;
}

.epilogue-cta-foot {
  padding-block: 0;
}

.footer-write-btn {
  --footer-write-gradient: linear-gradient(105deg, #5227ff 0%, #007CEB 46%, #9fdbff 100%);
  --footer-write-gradient-text: linear-gradient(105deg, #9fdbff 0%, #2f9dff 46%, #6d43ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 214px;
  height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#111315, #111315) padding-box,
    var(--footer-write-gradient) border-box;
  color: #9fdbff;
  font-family: var(--font-ui-accent);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  box-shadow:
    0 0 18px rgba(82, 39, 255, 0.28),
    0 0 26px rgba(159, 219, 255, 0.12);
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.footer-write-btn:hover {
  background:
    linear-gradient(rgba(17, 19, 21, 0.78), rgba(17, 19, 21, 0.78)) padding-box,
    var(--footer-write-gradient) border-box;
  box-shadow:
    0 0 22px rgba(82, 39, 255, 0.34),
    0 0 34px rgba(159, 219, 255, 0.18);
}

.footer-write-btn > span {
  display: block;
  line-height: 1;
  transform: translateY(0.04em);
  background: var(--footer-write-gradient-text);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-write-btn-icon {
  display: none;
}

.footer-write-btn::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--footer-write-gradient-text);
  mask: url("../../pages/home/media/icons/message.svg") center / contain no-repeat;
  -webkit-mask: url("../../pages/home/media/icons/message.svg") center / contain no-repeat;
}

.epilogue-footer-shell {
  position: relative;
  z-index: 1;
  padding-top: clamp(28px, 3.4vw, 44px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
  box-sizing: border-box;
}

.epilogue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(180px, 0.72fr));
  gap: 22px 28px;
}

.epilogue-brand-block {
  display: grid;
  gap: 18px;
  align-content: start;
}

.epilogue-title {
  color: #ffffff;
}

.epilogue-note {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.72);
}

.epilogue-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 18px 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.epilogue-brand {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.epilogue-brand-note {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.58;
}

.epilogue-brand-copy {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.84rem;
}

.epilogue-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.epilogue-column-title {
  margin: 0;
  font-family: var(--font-ui-accent);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.footer-home-link {
  display: inline-flex;
  width: fit-content;
}

.footer-logo-icon {
  width: auto;
  height: 28px;
  filter: brightness(0) invert(1);
}

.epilogue-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.epilogue-links--stack {
  display: grid;
  justify-content: start;
  gap: 10px;
}

.epilogue-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.epilogue-social-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
}

.epilogue-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

.epilogue-social-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.epilogue-link:hover {
  color: #ffffff;
  opacity: 0.7;
}

.epilogue-link--muted {
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.epilogue-link--inactive {
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

@media (max-width: 1180px) {
  .epilogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .contact-cta-section {
    --contact-cta-height: clamp(550px, var(--arttina-visible-viewport-height), 1050px);
    --contact-cta-top-safe: max(
      clamp(104px, 13svh, 132px),
      calc(var(--floating-header-clearance, 108px) + 14px)
    );
    --contact-cta-bottom-safe: clamp(28px, 4svh, 42px);
  }

  .screen-section.contact-cta-screen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: 0;
    text-align: center;
  }

  .contact-cta-model-shell {
    order: 2;
    justify-self: center;
    align-self: center;
    width: min(88vw, 390px);
    height: min(88vw, 390px);
    transform: none;
  }

  .contact-cta-copy {
    order: 1;
    align-self: stretch;
    justify-items: center;
    align-content: center;
    gap: clamp(16px, 2.6svh, 24px);
    max-width: 560px;
    text-align: center;
  }

  .contact-cta-screen .epilogue-hero {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .contact-cta-light-pillar {
    opacity: 0.68;
  }

  .contact-cta-light-pillar::after {
    background:
      radial-gradient(circle at 60% 38%, rgba(17, 19, 21, 0.04), transparent 22%),
      linear-gradient(180deg, rgba(17, 19, 21, 0.08), rgba(17, 19, 21, 0.22));
  }

  .contact-cta-section {
    --contact-cta-top-safe: max(
      clamp(98px, 12svh, 120px),
      calc(var(--floating-header-clearance, 108px) + 12px)
    );
    --contact-cta-bottom-safe: clamp(24px, 3.2svh, 34px);
  }

  .screen-section.contact-cta-screen {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .contact-cta-model-shell {
    width: min(88vw, 340px);
    height: min(88vw, 340px);
  }

  .contact-cta-copy {
    gap: clamp(14px, 2.4svh, 22px);
  }

  .contact-cta-screen .epilogue-title {
    margin-bottom: 0;
    font-size: clamp(2rem, 8.6vw, 2.9rem);
    line-height: 0.94;
  }

  .contact-cta-screen .epilogue-note {
    max-width: 31ch;
    font-size: clamp(0.95rem, 4vw, 1rem);
    line-height: 1.42;
  }

  .footer-write-btn {
    min-width: 204px;
    height: 48px;
    padding: 0 22px;
    gap: 10px;
    font-size: 0.9rem;
  }

  .footer-write-btn-icon {
    display: none;
  }

  .footer-write-btn::after {
    width: 18px;
    height: 18px;
  }

  .epilogue-title {
    font-size: 10vw;
    margin-bottom: 20px;
  }

  .epilogue-hero {
    justify-items: center;
    text-align: center;
  }

  .epilogue-note {
    max-width: 100%;
  }

  .epilogue-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .epilogue-brand-block {
    display: contents;
  }

  .epilogue-column {
    gap: 14px;
  }

  .epilogue-brand-copy {
    order: 20;
    padding-top: 4px;
  }

  .epilogue-links--stack {
    gap: 12px;
  }

  .epilogue-social-link {
    gap: 11px;
  }

  .epilogue-social-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .epilogue-brand-note {
    max-width: none;
    font-size: 0.9rem;
  }

  .epilogue-cta-foot .premium-btn {
    width: 100%;
    max-width: 420px;
  }

  .epilogue-footer-shell {
    padding-top: 24px;
    padding-bottom: 28px;
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 720px) {
  .contact-cta-section {
    --contact-cta-top-safe: max(
      clamp(82px, 11svh, 98px),
      calc(var(--floating-header-clearance, 108px) + 10px)
    );
    --contact-cta-bottom-safe: 20px;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .contact-cta-model-shell {
    width: min(85vw, 306px);
    height: min(85vw, 306px);
  }
}
