/* KOVA contact section — premium monochrome contact hub */
.contact.contact-premium {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 144px);
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  background:
    radial-gradient(circle at 80% 18%, rgb(255 255 255 / 7%), transparent 28%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 94%, var(--text) 6%));
  isolation: isolate;
}
:root[data-theme="light"] .contact.contact-premium {
  background:
    radial-gradient(circle at 80% 18%, rgb(0 0 0 / 5%), transparent 28%),
    linear-gradient(180deg, var(--bg), #eef0f3);
}
.contact-glow {
  position: absolute;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  right: -12vw;
  top: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 9%), transparent 64%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="light"] .contact-glow {
  background: radial-gradient(circle, rgb(0 0 0 / 7%), transparent 64%);
}
.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
  min-width: 0;
}
.contact-copy,
.contact-channel-grid,
.contact-channel-card,
.contact-channel-card > span {
  min-width: 0;
}
.contact-copy h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3.2rem, 6.4vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.072em;
}
.contact-copy h2 em {
  color: var(--muted);
  font-style: normal;
}
.contact-copy > p {
  max-width: 630px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.18vw, 1.13rem);
  line-height: 1.7;
}
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 var(--text-xs)/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 92%, var(--text) 8%);
}
.contact-status span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 12%, transparent);
  animation: contactPulse 2.2s ease-in-out infinite;
}
.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.contact-channel-card {
  min-height: 188px;
  padding: 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 36px;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, var(--text) 8%), color-mix(in srgb, var(--bg) 97%, var(--text) 3%));
  box-shadow: 0 20px 55px rgb(0 0 0 / 10%);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .38s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background-color .3s ease, box-shadow .38s ease;
}
.contact-channel-card:hover {
  text-decoration: none;
  transform: translateY(-8px) scale(1.012);
  border-color: color-mix(in srgb, var(--text) 46%, transparent);
  box-shadow: 0 28px 70px rgb(0 0 0 / 18%);
}
.contact-channel-card:active {
  transform: translateY(-2px) scale(.985);
  transition-duration: .1s;
}
.contact-channel-card:nth-child(5) {
  grid-column: 1 / -1;
}
.contact-brand-icon {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px;
  max-width: 54px;
  min-height: 54px;
  max-height: 54px;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 88%, var(--text) 12%);
  transition: transform .35s ease, background-color .35s ease, color .35s ease;
}
.contact-channel-card:hover .contact-brand-icon {
  transform: rotate(-5deg) scale(1.07);
  background: var(--text);
  color: var(--inverse);
}
.contact-brand-icon svg,
.contact-channel-card .contact-brand-icon > svg {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  fill: currentColor;
  flex: none;
}
.contact-brand-icon svg * {
  vector-effect: non-scaling-stroke;
}
.contact-channel-card small,
.contact-channel-card strong,
.contact-channel-card span span {
  display: block;
}
.contact-channel-card small {
  margin-top: 2px;
  font: 500 var(--text-xs)/1.2 var(--mono);
  letter-spacing: .14em;
  color: var(--muted);
}
.contact-channel-card strong {
  margin-top: 10px;
  font-size: clamp(1.2rem, 1.55vw, 1.58rem);
  letter-spacing: -.035em;
}
.contact-channel-card span span {
  margin-top: 8px;
  max-width: 260px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.contact-channel-card > b {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1rem;
  transition: transform .35s ease, background-color .35s ease, color .35s ease;
}
.contact-channel-card:hover > b {
  transform: translate(3px,-3px);
  background: var(--text);
  color: var(--inverse);
}
.footer .socials {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer .social-link {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  max-width: 38px;
  min-height: 38px;
  max-height: 38px;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .28s ease, background-color .28s ease, color .28s ease, border-color .28s ease;
}
.footer .social-link:hover {
  text-decoration: none;
  transform: translateY(-4px) scale(1.06);
  background: var(--text);
  color: var(--inverse);
  border-color: var(--text);
}
.footer .social-link:active {
  transform: scale(.92);
}
.footer .social-link span,
.footer .social-link svg,
.footer .social-link > svg {
  width: 19px !important;
  height: 19px !important;
  max-width: 19px !important;
  max-height: 19px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
}
.footer .social-link svg { fill: currentColor; }

/* Contact hierarchy — direct channels first, social channels secondary. */
.contact-premium .contact-channel-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.contact-premium .contact-channel-card:nth-child(1),
.contact-premium .contact-channel-card:nth-child(2) {
  grid-column: span 3 !important;
  min-height: 210px !important;
  padding: 26px !important;
  border-color: color-mix(in srgb, var(--text) 48%, transparent) !important;
  background: var(--text) !important;
  color: var(--inverse) !important;
  box-shadow: 0 28px 70px rgb(0 0 0 / 22%) !important;
}
.contact-premium .contact-channel-card:nth-child(1) small,
.contact-premium .contact-channel-card:nth-child(2) small,
.contact-premium .contact-channel-card:nth-child(1) span span,
.contact-premium .contact-channel-card:nth-child(2) span span {
  color: color-mix(in srgb, var(--inverse) 70%, transparent) !important;
}
.contact-premium .contact-channel-card:nth-child(1) .contact-brand-icon,
.contact-premium .contact-channel-card:nth-child(2) .contact-brand-icon,
.contact-premium .contact-channel-card:nth-child(1) > b,
.contact-premium .contact-channel-card:nth-child(2) > b {
  border-color: color-mix(in srgb, var(--inverse) 24%, transparent) !important;
  background: color-mix(in srgb, var(--inverse) 9%, transparent) !important;
  color: var(--inverse) !important;
}
.contact-premium .contact-channel-card:nth-child(1):hover,
.contact-premium .contact-channel-card:nth-child(2):hover {
  transform: translateY(-7px) scale(1.01) !important;
  box-shadow: 0 34px 84px rgb(0 0 0 / 28%) !important;
}
.contact-premium .contact-channel-card:nth-child(n+3) {
  grid-column: span 2 !important;
  min-height: 150px !important;
  padding: 18px !important;
  grid-template-columns: 46px minmax(0,1fr) 32px !important;
  gap: 13px !important;
}
.contact-premium .contact-channel-card:nth-child(n+3) .contact-brand-icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  border-radius: 15px !important;
}
.contact-premium .contact-channel-card:nth-child(n+3) .contact-brand-icon svg {
  width: 23px !important;
  height: 23px !important;
}
.contact-premium .contact-channel-card:nth-child(n+3) > b {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

/* Results — free 2x2 number composition without card borders. */
.results.results-desktop-enabled {
  min-height: auto !important;
  padding-block: clamp(84px, 8vw, 124px) !important;
}
.results.results-desktop-enabled .results-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(48px, 6vw, 92px) clamp(52px, 7vw, 110px) !important;
  width: min(760px, 100%) !important;
  margin: clamp(56px, 7vw, 96px) auto 0 !important;
  border: 0 !important;
}
.results.results-desktop-enabled .results-grid > div {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.results.results-desktop-enabled .results-grid strong {
  display: block !important;
  margin: 0 0 12px !important;
  font-size: clamp(4rem, 7vw, 7.4rem) !important;
  line-height: .82 !important;
  letter-spacing: -.065em !important;
  font-weight: 800 !important;
}
.results.results-desktop-enabled .results-grid span {
  display: block !important;
  color: var(--muted) !important;
  font-size: clamp(.95rem, 1.15vw, 1.15rem) !important;
  line-height: 1.35 !important;
}

/* Projects — titles and CTAs stay inside their cards at every width. */
.projects .projects-grid {
  grid-template-columns: minmax(230px, .58fr) minmax(0, 1.42fr) !important;
  align-items: start !important;
}
.projects .projects-copy {
  min-width: 0 !important;
}
.projects .projects-copy h2 {
  max-width: 10ch !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.projects .project-scroller {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  min-width: 0 !important;
}
.projects .project-card,
.projects .project-card-live {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.projects .project-card > div:last-child,
.projects .project-card-live > div:last-child {
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.projects .project-card strong,
.projects .project-card-live strong {
  max-width: 100% !important;
  font-size: clamp(.82rem, 1vw, 1rem) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.projects .project-card span,
.projects .project-card-live span,
.projects .project-card p,
.projects .project-card-live p {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.projects .project-card button,
.projects .project-card-live button,
.projects .project-card .project-visit,
.projects .project-card-live .project-visit {
  position: static !important;
  margin-top: 14px !important;
  flex: 0 0 auto !important;
}

@keyframes contactPulse {
  0%,100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.25); opacity: 1; }
}
@media (max-width: 1180px) {
  .contact-shell { grid-template-columns: 1fr !important; }
  .contact-premium .contact-channel-grid { grid-template-columns: repeat(6, minmax(0,1fr)) !important; }
  .projects .projects-grid { grid-template-columns: 1fr !important; }
  .projects .projects-copy h2 { max-width: 12ch !important; }
  .projects .project-scroller { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 820px) {
  .contact-premium .contact-channel-card:nth-child(1),
  .contact-premium .contact-channel-card:nth-child(2) {
    grid-column: span 6 !important;
    min-height: 168px !important;
  }
  .contact-premium .contact-channel-card:nth-child(n+3) {
    grid-column: span 2 !important;
  }
  .results.results-desktop-enabled .results-grid {
    gap: 42px 28px !important;
    margin-top: 48px !important;
  }
  .projects .project-scroller { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 720px) {
  .contact.contact-premium { padding-block: 72px; }
  .contact-copy h2 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .contact-copy > p { margin-top: 22px; }
  .contact-status { margin-top: 24px; }
  .contact-premium .contact-channel-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .contact-premium .contact-channel-card,
  .contact-premium .contact-channel-card:nth-child(1),
  .contact-premium .contact-channel-card:nth-child(2),
  .contact-premium .contact-channel-card:nth-child(n+3) {
    grid-column: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    grid-template-columns: 50px minmax(0,1fr) 34px !important;
    gap: 13px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }
  .contact-premium .contact-channel-card:nth-child(1),
  .contact-premium .contact-channel-card:nth-child(2) {
    min-height: 150px !important;
  }
  .contact-brand-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
  }
  .contact-brand-icon svg,
  .contact-channel-card .contact-brand-icon > svg {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
  }
  .contact-channel-card > b {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .results.results-desktop-enabled .results-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    width: 100% !important;
    gap: 38px 20px !important;
    margin-top: 42px !important;
  }
  .results.results-desktop-enabled .results-grid strong {
    font-size: clamp(3rem, 15vw, 4.6rem) !important;
  }
  body .projects .projects-grid { display: block !important; }
  body .projects .project-scroller {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    gap: 16px !important;
  }
  body .projects .project-scroller .project-card,
  body .projects .project-scroller .project-card-live {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    scroll-snap-align: none !important;
  }
  body .projects .project-scroller .project-card .project-media,
  body .projects .project-scroller .project-card-live .project-media {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }
  body .projects .project-scroller .project-card > div:last-child,
  body .projects .project-scroller .project-card-live > div:last-child {
    height: auto !important;
    min-height: 0 !important;
    padding: 16px !important;
  }
  body .projects .projects-copy h2 {
    max-width: 100% !important;
    font-size: clamp(2.65rem, 11.5vw, 3.8rem) !important;
    line-height: .94 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}
@media (max-width: 430px) {
  .contact-premium .contact-channel-card,
  .contact-premium .contact-channel-card:nth-child(1),
  .contact-premium .contact-channel-card:nth-child(2),
  .contact-premium .contact-channel-card:nth-child(n+3) {
    grid-template-columns: 46px minmax(0,1fr) 30px !important;
    gap: 11px !important;
    padding: 16px !important;
  }
  .contact-brand-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    max-width: 46px;
    min-height: 46px;
    max-height: 46px;
    border-radius: 15px;
  }
  .contact-brand-icon svg,
  .contact-channel-card .contact-brand-icon > svg {
    width: 23px !important;
    height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
  }
  .contact-channel-card > b {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: .88rem;
  }
  .results.results-desktop-enabled .results-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 14px !important;
  }
  .results.results-desktop-enabled .results-grid strong {
    font-size: clamp(2.75rem, 14vw, 4rem) !important;
  }
  .results.results-desktop-enabled .results-grid span {
    font-size: .82rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-status span { animation: none; }
  .contact-channel-card,
  .contact-brand-icon,
  .contact-channel-card > b,
  .footer .social-link { transition: none; }
  .contact-channel-card:hover,
  .contact-channel-card:active,
  .footer .social-link:hover,
  .footer .social-link:active { transform: none; }
}

/* Desktop structural fix: neutralize the generic .contact grid from base.css. */
@media (min-width: 721px) {
  .contact.contact-premium {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    align-items: initial !important;
    width: 100% !important;
    max-width: none !important;
  }

  .contact.contact-premium > .eyebrow {
    display: block !important;
    margin-bottom: clamp(34px, 4vw, 62px) !important;
  }

  .contact.contact-premium .contact-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .contact.contact-premium .contact-copy h2 {
    max-width: 10ch !important;
    font-size: clamp(3.2rem, 4.1vw, 5.15rem) !important;
    line-height: .94 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}
