/* data analysis section */

.koru-data {
  /* content-sized, no min-height */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* full-bleed breakout */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: transparent;
  color: #0f1821;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;

  /* off-screen; js updates these */
  --mx: -600px;
  --my: -600px;
}

/* dot-grid spotlight */
.koru-data::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 24, 33, 0.18) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    circle 240px at var(--mx) var(--my),
    rgba(0,0,0,1),
    rgba(0,0,0,0.50) 45%,
    transparent 80%
  );
          mask-image: radial-gradient(
    circle 240px at var(--mx) var(--my),
    rgba(0,0,0,1),
    rgba(0,0,0,0.50) 45%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
}

.koru-data-inner,
.koru-data-classes-strip {
  position: relative;
  z-index: 2;
}

.koru-data-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  box-sizing: border-box;
}

.koru-data-header {
  text-align: center;
  max-width: 760px;
}
.koru-data-logo {
  display: block;
  margin: 0 auto 18px auto;
  width: 56px;
  height: auto;
  opacity: 0.90;
  /* darken white logo for light bg */
  filter: brightness(0.25) sepia(0.2) hue-rotate(190deg) saturate(2.5);
}
.koru-data-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 500;
  margin: 0;
  color: #0f1821;
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.koru-data-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  width: 100%;
}

.koru-data-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 24, 33, 0.07);
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF9F4 100%);
  box-shadow:
    0 1px 2px        rgba(15, 24, 33, 0.06),
    0 14px 32px -14px rgba(15, 24, 33, 0.18);
  transition: transform   360ms cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow  360ms cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 280ms ease;

  /* off-screen default; js sets on hover */
  --card-mx: -200px;
  --card-my: -200px;
}

.koru-data-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 200px at var(--card-mx) var(--card-my),
    rgba(30, 69, 104, 0.14),
    rgba(30, 69, 104, 0.04) 40%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 2;
}
.koru-data-thumb:hover::before { opacity: 1; }
.koru-data-thumb:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 69, 104, 0.25);
  box-shadow:
    0 4px 10px        rgba(15, 24, 33, 0.07),
    0 24px 48px -16px rgba(30, 69, 104, 0.28),
    0 12px 24px  -10px rgba(15, 24, 33, 0.12);
}
.koru-data-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.koru-data-thumb:hover img {
  transform: scale(1.06);
}
.koru-data-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 24, 33, 0.30);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.koru-data-pitch {
  max-width: 740px;
  width: 100%;
  text-align: center;
}
.koru-data-pitch p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(14.5px, 1.6vw, 20px);
  line-height: 1.75;
  font-weight: 400;
  color: rgba(15, 24, 33, 0.82);
  margin: 0;
}

.koru-data-classes-strip {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(15, 24, 33, 0.08);
  padding: 22px 0;
  box-sizing: border-box;
}

.koru-data-classes-intro {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(15, 24, 33, 0.6);
  margin: 0 0 16px 0;
  padding: 0 24px;
}

.koru-data-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 0;
}
.koru-data-banner::before,
.koru-data-banner::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.koru-data-banner::before {
  left: 0;
  background: linear-gradient(90deg,  rgba(252, 251, 248, 0.95), transparent);
}
.koru-data-banner::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(252, 251, 248, 0.95), transparent);
}

.koru-data-banner-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: koruDataScroll 60s linear infinite;
}
.koru-data-banner:hover .koru-data-banner-track {
  animation-play-state: paused;
}
@keyframes koruDataScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.koru-data-class {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 48px;
}
.koru-data-class a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.koru-data-class img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 240ms ease, filter 240ms ease, transform 240ms ease;
}
.koru-data-class:hover img {
  opacity: 1;
  filter: grayscale(0) saturate(1);
  transform: scale(1.06);
}

/* responsive */
@media (max-width: 720px) {
  .koru-data-inner      { padding: 24px 16px; gap: 22px; }
  .koru-data-logo       { width: 44px; margin-bottom: 12px; }
  .koru-data-thumbs     { gap: 14px; }
  .koru-data-pitch p    { font-size: 14.5px; line-height: 1.7; }
  .koru-data-banner-track { gap: 36px; animation-duration: 40s; }
  .koru-data-class      { font-size: 18px; }
  .koru-data-class img  { height: 24px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .koru-data-banner-track    { animation: none; }
  .koru-data-thumb,
  .koru-data-thumb img       { transition: none; }
  .koru-data-thumb:hover     { transform: none; }
  .koru-data-thumb:hover img { transform: none; }
}

/* page backdrop -- scoped to .koru-standalone so it stays off the combined page */
html.koru-standalone, body.koru-standalone {
  min-height: 100vh;
}
body.koru-standalone {
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 45%,
      rgba(255, 255, 255, 0.93) 0%,
      rgba(255, 255, 255, 0.80) 60%,
      rgba(250, 248, 242, 0.68) 100%
    ),
    url('background.jpg') center center / cover no-repeat fixed;
}

.koru-credit {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: rgba(15, 24, 33, 0.55);
  padding: 14px 0 20px 0;
}

/* large-screen scaling -- clamp px caps freeze type on 27"+ monitors */
@media (min-width: 1720px) {
  .koru-data-inner { max-width: 1560px; }
  .koru-data-pitch { max-width: 920px; }
  .koru-data-pitch p { font-size: 21px; }
  .koru-data-header h2 { font-size: 56px; }
  .koru-data-logo { width: 68px; }
  .koru-data-classes-intro { font-size: 15px; }
  .koru-data-class { height: 58px; }
  .koru-data-class img { height: 52px; max-width: 175px; }
}
@media (min-width: 2400px) {
  .koru-data-inner { max-width: 1980px; }
  .koru-data-pitch { max-width: 1080px; }
  .koru-data-pitch p { font-size: 24px; }
  .koru-data-header h2 { font-size: 64px; }
  .koru-data-class { height: 66px; }
  .koru-data-class img { height: 60px; max-width: 205px; }
}
