/*
Theme Name: Cogent Insight
Theme URI: https://cogentinsight.co/
Author: DevMuse
Description: Bespoke holding page for Cogent Insight.
Version: 1.2.0
Text Domain: cogent-insight
*/

:root {
  --ci-ink: #061113;
  --ci-ink-soft: #0b1c1f;
  --ci-paper: #f2f1e9;
  --ci-muted: #98aaa8;
  --ci-accent: #57d6c8;
  --ci-line: rgba(87, 214, 200, 0.17);
  --ci-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ci-ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ci-paper);
  background:
    radial-gradient(circle at 22% 18%, rgba(35, 107, 102, 0.2), transparent 33rem),
    radial-gradient(circle at 82% 78%, rgba(14, 60, 62, 0.28), transparent 38rem),
    linear-gradient(145deg, var(--ci-ink-soft), var(--ci-ink) 58%);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  color: var(--ci-ink);
  background: var(--ci-accent);
}

.ci-network {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: ci-canvas-in 1.6s 0.1s var(--ci-ease) forwards;
}

.ci-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.75rem);
}

.ci-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-main {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.ci-hero {
  width: min(100%, 76rem);
  text-align: center;
}

.ci-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  width: min(100%, 72rem);
  margin: 0 auto clamp(2.4rem, 5vw, 4.2rem);
  opacity: 0;
  animation: ci-rise-in 1s 0.35s var(--ci-ease) forwards;
}

.ci-logo__mark {
  flex: 0 0 auto;
  width: clamp(9rem, 16vw, 12.5rem);
  height: auto;
  overflow: visible;
  color: var(--ci-accent);
  filter: drop-shadow(0 0 2.2rem rgba(87, 214, 200, 0.1));
}

.ci-logo__name {
  margin: 0;
  color: var(--ci-paper);
  font-size: clamp(2.7rem, 5.6vw, 5.5rem);
  font-weight: 720;
  letter-spacing: 0.045em;
  line-height: 0.94;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ci-statement {
  width: 100%;
  margin: 0;
  font-size: clamp(1.9rem, 3.7vw, 3.5rem);
  font-weight: 620;
  letter-spacing: 0.075em;
  line-height: 0.98;
  text-transform: uppercase;
}

.ci-statement__visual {
  display: grid;
  justify-items: center;
}

.ci-statement__fixed {
  display: block;
  opacity: 0;
  animation: ci-rise-in 0.9s 0.72s var(--ci-ease) forwards;
}

.ci-words {
  position: relative;
  display: block;
  width: 100%;
  height: 1.08em;
  overflow: hidden;
  color: var(--ci-accent);
  text-shadow: 0 0 2.8rem rgba(87, 214, 200, 0.15);
  opacity: 0;
  animation: ci-rise-in 0.9s 0.82s var(--ci-ease) forwards;
}

.ci-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(72%);
  transition:
    opacity 0.72s var(--ci-ease),
    transform 0.72s var(--ci-ease);
}

.ci-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ci-word.is-exiting {
  opacity: 0;
  transform: translateY(-72%);
}

.ci-intro {
  width: min(100%, 32rem);
  margin: clamp(1.7rem, 3vw, 2.4rem) auto 0;
  color: var(--ci-muted);
  font-size: clamp(0.96rem, 1.5vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.7;
  opacity: 0;
  animation: ci-rise-in 0.9s 0.98s var(--ci-ease) forwards;
}

.ci-footer {
  color: var(--ci-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: ci-rise-in 0.9s 1.05s var(--ci-ease) forwards;
}

.ci-footer p {
  margin: 0;
}

@keyframes ci-rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ci-canvas-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .ci-page {
    padding: 1.35rem;
  }

  .ci-logo {
    gap: clamp(0.8rem, 3vw, 1.15rem);
    margin-bottom: 2.8rem;
  }

  .ci-logo__mark {
    width: clamp(4.75rem, 22vw, 6.25rem);
  }

  .ci-logo__name {
    font-size: clamp(1.35rem, 6.4vw, 2rem);
    letter-spacing: 0.035em;
    text-align: left;
  }

  .ci-statement {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    letter-spacing: 0.06em;
  }
}

@media (max-width: 390px) {
  .ci-logo__name {
    font-size: 1.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ci-word:not(.is-active) {
    display: none;
  }
}
