/* ============================
   Corsini Dev Co — Site Styles
   (updated with full-logo option + Capabilities grid/cards)
   ============================ */

:root {
  --bg1: #0a0f1f;
  --bg2: #0f1a3a;
  --acc: #66e0ff;
  --ink: #e7f0ff;
  --ink-dim: #a9b7d1;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-brd: rgba(255, 255, 255, 0.18);
  --grad1: conic-gradient(
    from 180deg at 50% 50%,
    #8de8ff11,
    #00d1ff1a,
    #2a6fff14,
    #b56bff12,
    #ff7bc412,
    #ffb86b12,
    #8de8ff11
  );
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(
      1200px 1200px at 20% 10%,
      #1d2a66 0%,
      transparent 60%
    ),
    radial-gradient(1200px 1200px at 80% 90%, #2890a6 0%, transparent 60%),
    linear-gradient(120deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

/* ===== Global layout ===== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 6vw;
}
section {
  position: relative;
}
h2 {
  font-size: clamp(1.6rem, 1.4rem + 1.5vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
p {
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ===== HERO (base) ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  filter: blur(40px) saturate(140%);
  background: var(--grad1);
  animation: spin 28s linear infinite;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  background-image: url("/img/noise.png");
  background-size: 300px;
  mix-blend-mode: screen;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Default hero “poster” card (croppable) */
.logo-shell {
  width: min(92vw, 1400px);
  height: min(92vh, 800px);
  display: grid;
  place-items: center;
  padding: clamp(12px, 1.5vw, 24px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--glass-brd);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.logo-shell:hover {
  transform: translateZ(0) scale(1.01);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
  animation: floaty 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  gap: 0.35rem;
}
.wheel {
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink-dim);
  border-radius: 14px;
  position: relative;
  opacity: 0.7;
}
.wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  transform: translateX(-50%);
  background: var(--ink-dim);
  border-radius: 2px;
  animation: wheel 1.4s ease-in-out infinite;
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ===== HERO (enhancements) ===== */
.enhanced-hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.enhanced-hero .aurora {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
      60% 120% at 10% 20%,
      #66e0ff22 0 40%,
      transparent 60%
    ),
    radial-gradient(80% 140% at 90% 80%, #b56bff22 0 40%, transparent 70%),
    radial-gradient(70% 100% at 50% 10%, #ff7bc422 0 35%, transparent 70%);
  filter: blur(30px) saturate(130%);
  animation: auroraMove 18s ease-in-out infinite alternate;
  z-index: -3;
}
@keyframes auroraMove {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(-2deg) scale(1.02);
  }
  100% {
    transform: translate3d(2%, 2%, 0) rotate(2deg) scale(1.06);
  }
}
.enhanced-hero .spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    450px 450px at 50% 50%,
    #ffffff15,
    transparent 60%
  );
  mix-blend-mode: screen;
  transition: background-position 0.15s linear;
  pointer-events: none;
  z-index: -2;
}
/* one-time logo shine */
.logo-shine {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background: linear-gradient(
    75deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 48%,
    transparent 60%
  );
  transform: translateX(-130%) rotate(5deg);
  animation: shine 1.25s ease-out 0.35s 1 both;
  border-radius: 24px;
  z-index: 2;
}
@keyframes shine {
  to {
    transform: translateX(130%) rotate(5deg);
    opacity: 0;
  }
}

/* ===== Full-logo mode (show 100% of the logo, no cropping) ===== */
.logo-shell.full-logo {
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
}
.logo-shell.full-logo .hero-logo {
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  object-fit: contain;
}

/* ===== Tagline ===== */
.tagline {
  border-top: 1px solid var(--glass-brd);
  border-bottom: 1px solid var(--glass-brd);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.03), transparent);
}
.tagline .marquee {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  overflow: hidden;
}
.tagline .marquee span {
  color: var(--ink);
  opacity: 0.8;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  padding: 0.8rem 0;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.pillar {
  grid-column: span 12;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  overflow: clip;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.pillar figure {
  margin: 0;
  aspect-ratio: 21/9;
  background: #0003;
}
.pillar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}
.pillar .content {
  padding: 1.2rem 1.2rem 1.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
}
@media (min-width: 800px) {
  .pillar {
    grid-column: span 6;
  }
}
@media (min-width: 1100px) {
  .pillar {
    grid-column: span 4;
  }
}

/* ===== Mosaic ===== */
.mosaic {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(12, 1fr);
}
.tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: #ffffff08;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile:nth-child(1) {
  grid-column: span 7;
  aspect-ratio: 7/4;
}
.tile:nth-child(2) {
  grid-column: span 5;
  aspect-ratio: 5/4;
}
.tile:nth-child(3) {
  grid-column: span 4;
  aspect-ratio: 4/4;
}
.tile:nth-child(4) {
  grid-column: span 4;
  aspect-ratio: 4/4;
}
.tile:nth-child(5) {
  grid-column: span 4;
  aspect-ratio: 4/4;
}
@media (max-width: 900px) {
  .tile {
    grid-column: span 12 !important;
    aspect-ratio: 16/9 !important;
  }
}

/* ===== Footer ===== */
footer {
  padding: 4rem 6vw;
  border-top: 1px solid var(--glass-brd);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  display: inline-block;
  margin: 0 0.4rem;
  box-shadow: 0 0 12px var(--acc);
}
.tiny {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===== Reveal animations (uses --delay) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.center {
  text-align: center;
}
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.6rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #9be7ff, #62d3ff);
  color: #031322;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(98, 211, 255, 0.38);
  border: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}

/* ===== Capabilities grid/cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cap-card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cap-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.28); }
.cap-title {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.cap-list {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-dim);
}
.cap-list li { margin: 0.25rem 0; }
.cap-list li::marker { color: var(--acc); }

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-logo,
  .marquee-track,
  .enhanced-hero .aurora,
  .logo-shine {
    animation: none !important;
  }
  .logo-shell,
  .tile img,
  .cap-card {
    transition: none !important;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
