/* Overtly Covert: site styles */
:root {
  /* Match hero logo plate black exactly (#000) so the neon does not read as a separate tile */
  --oc-black: #000000;
  --oc-ink: #000000;
  --oc-pink: #e6007e;
  --oc-pink-glow: rgba(230, 0, 126, 0.35);
  --oc-white: rgba(255, 255, 255, 0.92);
  --oc-muted: rgba(255, 255, 255, 0.55);
  --oc-line: rgba(255, 255, 255, 0.12);
  --oc-glass: rgba(0, 0, 0, 0.55);
  --font-body: MuseoSans, "Segoe UI", sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --content-max: 1200px;
  --hero-max: min(94vw, 600px);
}

@font-face {
  font-family: MuseoSans;
  src: url("../files/MuseoSans_500.otf");
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  background: var(--oc-black);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--oc-white);
  font-family: var(--font-body);
  background: var(--oc-black);
  text-align: center;
  overflow-x: hidden;
  min-width: 310px;
}

/* Soft grain only; keep base plate pure black like the logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

.oc-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--oc-black);
  /* no tinted gradients: they made the hero look like a separate square */
}

.oc-shell {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Hero logo */
.logo {
  display: block;
  width: var(--hero-max);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 0;
  cursor: pointer;
  border: none;
  background: var(--oc-black);
  animation: oc-logo-float 8s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes oc-logo-float {
  0% {
    transform: translateY(0) scale(1);
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    transform: translateY(-10px) scale(1.01);
    filter: hue-rotate(8deg) brightness(1.05);
  }
  50% {
    transform: translateY(-4px) scale(1.005);
    filter: hue-rotate(0deg) brightness(1);
  }
  75% {
    transform: translateY(-14px) scale(1.01);
    filter: hue-rotate(-6deg) brightness(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: hue-rotate(0deg) brightness(1);
  }
}

.logo:hover {
  animation-play-state: paused;
  filter: brightness(1.15);
}

.logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 8px;
}

#animation_container {
  margin: 0 auto;
  display: block;
  width: 100%;
  line-height: 0;
  background: var(--oc-black);
  /* Soft edge so brick plate dissolves into the same #000 page black */
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 42%, #000 58%, rgba(0, 0, 0, 0.65) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 50% 42%, #000 58%, rgba(0, 0, 0, 0.65) 78%, transparent 100%);
}

#canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--oc-black);
}

/* Intro / thesis */
.oc-intro {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.oc-intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.oc-blurb {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--oc-white);
}

.oc-thesis {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--oc-muted);
}

.oc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--oc-line);
  color: var(--oc-white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.oc-cta:hover,
.oc-cta:focus-visible {
  border-color: var(--oc-pink);
  background: rgba(230, 0, 126, 0.08);
  color: #fff;
  outline: none;
}

.oc-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Portfolio */
.oc-portfolio {
  margin-top: 2.75rem;
  text-align: left;
}

.oc-section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.oc-section-head.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.oc-section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oc-white);
}

.oc-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--oc-line), transparent);
}

.oc-group {
  margin: 2rem 0 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6ec7;
  text-shadow: 0 0 18px rgba(255, 110, 199, 0.45);
}

.oc-group:first-of-type {
  margin-top: 0.25rem;
}

.oc-canvas-wrap {
  position: relative;
}

#oc-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.partners-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.partners-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem 1rem 1.5rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease;
}

.partners-list a.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.partners-list a:hover,
.partners-list a:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.partners-list a:focus-visible .oc-logo-mat img {
  outline: none;
}

.oc-logo-mat {
  width: min(200px, 88%);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oc-logo-mat img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1) grayscale(0.08);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.partners-list a:hover .oc-logo-mat img,
.partners-list a:focus-visible .oc-logo-mat img {
  filter: brightness(1.12) grayscale(0);
  transform: scale(1.05);
}

.partners-list a[data-bright="1"] .oc-logo-mat img {
  filter: brightness(1.08) grayscale(0);
}

.partners-list a span {
  display: block;
  margin-top: 0.85rem;
  max-width: 12.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--oc-muted);
  transition: color 0.25s ease;
}

.partners-list a:hover span,
.partners-list a:focus-visible span {
  color: var(--oc-white);
}

.oc-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--oc-line);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oc-muted);
}

.oc-footer a {
  color: var(--oc-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.oc-footer a:hover,
.oc-footer a:focus-visible {
  color: #fff;
  border-bottom-color: var(--oc-pink);
  outline: none;
}

@keyframes eggFlash {
  0% {
    filter: none;
  }
  15% {
    filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.7))
      drop-shadow(0 0 28px rgba(255, 0, 255, 0.5)) saturate(1.2);
  }
  100% {
    filter: none;
  }
}

body.egg-flash .logo,
body.egg-flash .partners-list a.is-visible {
  animation: eggFlash 2s ease-in-out 1;
}

@media (max-width: 960px) {
  .partners-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .partners-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }

  .partners-list a {
    min-height: 160px;
    padding: 1.35rem 0.65rem 1.1rem;
  }

  .oc-logo-mat {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .oc-bg,
  .logo {
    animation: none;
  }

  .oc-intro,
  .oc-section-head,
  .partners-list a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
