/* ─────────────────────────────────────────────────────────────
   POGO Core — animated hero card cluster
   2-col solution hero: left = copy, right = constellation of
   six solution cards centred on a POGO CORE tile, with dotted
   connectors that draw in, light pulses that travel along them,
   and per-card mini illustrations that loop.
   ───────────────────────────────────────────────────────────── */

#page-core .sol-hero {
  background:
    radial-gradient(ellipse 60% 70% at 100% 50%, rgba(13,158,122,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(232,116,42,0.06) 0%, transparent 70%);
}

#page-core .sol-hero-tag {
  background: var(--teal-pale);
  color: var(--teal-dark);
  letter-spacing: 0.14em;
}

/* Right-column visual container */
.core-visual {
  position: relative;
  /* Fixed-ish aspect so cards size predictably. */
  width: 100%;
  aspect-ratio: 1 / 0.95;
  min-height: 460px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* The grid that holds the cards. 12-col / 6-row metro layout. */
.core-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* SVG layer below cards for the dotted connectors + travelling pulses */
.core-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.core-lines path {
  fill: none;
  stroke: rgba(13,26,21,0.22);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  stroke-dashoffset: 0;
  opacity: 0;
}
.core-visual.in .core-lines path {
  animation: coreLineDraw 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}
.core-visual.in .core-lines path:nth-child(1) { animation-delay: 0.95s; }
.core-visual.in .core-lines path:nth-child(2) { animation-delay: 1.05s; }
.core-visual.in .core-lines path:nth-child(3) { animation-delay: 1.15s; }
.core-visual.in .core-lines path:nth-child(4) { animation-delay: 1.25s; }
.core-visual.in .core-lines path:nth-child(5) { animation-delay: 1.35s; }
@keyframes coreLineDraw {
  0%   { opacity: 0; stroke-dashoffset: 120; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

/* Pulses (small teal dots) that flow along each connector */
.core-pulse {
  fill: var(--teal, #0d9e7a);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(13,158,122,0.7));
}
.core-visual.in .core-pulse {
  animation: corePulseFlow 4.5s linear infinite;
}
.core-visual.in .core-pulse-1 { animation-delay: 1.6s; }
.core-visual.in .core-pulse-2 { animation-delay: 2.0s; }
.core-visual.in .core-pulse-3 { animation-delay: 2.4s; }
.core-visual.in .core-pulse-4 { animation-delay: 2.8s; }
.core-visual.in .core-pulse-5 { animation-delay: 3.2s; }
@keyframes corePulseFlow {
  0%   { opacity: 0; offset-distance: 0%; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* The cards */
.core-card {
  background: #fff;
  border: 1px solid rgba(13,26,21,0.06);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 1px 2px rgba(13,26,21,0.04),
    0 8px 24px rgba(13,26,21,0.06);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s ease;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  will-change: transform, opacity;
  position: relative;
}
.core-visual.in .core-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    transform 0.7s cubic-bezier(0.22,1,0.36,1) var(--in-delay, 0s),
    opacity   0.6s ease var(--in-delay, 0s),
    box-shadow 0.35s cubic-bezier(0.22,1,0.36,1),
    border-color 0.25s ease;
}
.core-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 2px 4px rgba(13,26,21,0.06),
    0 18px 38px rgba(13,26,21,0.10);
  border-color: rgba(13,158,122,0.4);
}
.core-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.core-card-icon svg {
  width: 24px; height: 24px;
  display: block;
}
.core-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.core-card-title {
  font-family: var(--font-d, 'Cabinet Grotesk', sans-serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink, #0d1a15);
  line-height: 1.15;
}
.core-card-sub {
  font-size: 13px;
  color: rgba(13,26,21,0.5);
  line-height: 1.3;
}

/* Slot positions on the 12×6 grid */
.core-c-eyfs       { grid-column:  1 / span 6; grid-row: 1 / span 2; --in-delay: 0.05s; }
.core-c-curriculum { grid-column:  7 / span 6; grid-row: 1 / span 2; --in-delay: 0.15s; }
.core-c-assessment { grid-column:  1 / span 6; grid-row: 3 / span 2; --in-delay: 0.25s; }
.core-c-dataview   { grid-column:  7 / span 6; grid-row: 3 / span 2; --in-delay: 0.35s; }
.core-c-pogo       { grid-column:  1 / span 4; grid-row: 5 / span 2; --in-delay: 0.45s; }
.core-c-mat        { grid-column:  5 / span 8; grid-row: 5 / span 2; --in-delay: 0.55s; }

/* Icon tints — matched to home nav */
.core-ic-teal   { background: var(--teal-pale, #edfaf5); color: var(--teal, #0d9e7a); }
.core-ic-orange { background: var(--orange-pale, #fff5ec); color: var(--orange, #e8742a); }
.core-ic-blue   { background: rgba(59,130,246,0.10);     color: #3B82F6; }
.core-ic-amber  { background: rgba(245,158,11,0.12);     color: #F59E0B; }

/* POGO CORE tile — the centrepiece. Bigger logo, no body text. */
.core-c-pogo {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(155deg, #ffffff 0%, var(--teal-pale, #edfaf5) 100%);
  border: 1px solid rgba(13,158,122,0.18);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.core-c-pogo::before {
  /* Subtle continuous teal pulse glow around the centrepiece */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(13,158,122, 0);
}
.core-visual.in .core-c-pogo::before {
  animation: corePogoPulse 3.6s ease-in-out infinite 1.6s;
}
@keyframes corePogoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,158,122, 0); }
  50%      { box-shadow: 0 0 0 14px rgba(13,158,122, 0); inset: -1px; }
  25%      { box-shadow: 0 0 0 3px rgba(13,158,122, 0.28); }
}
.core-pogo-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  width: 64px; height: 64px;
}
.core-pogo-tile {
  border-radius: 9px;
}
.core-pogo-tile.t1 { background: var(--teal, #0d9e7a); }
.core-pogo-tile.t2 { background: var(--orange, #e8742a); }
.core-pogo-tile.t3 { background: var(--teal, #0d9e7a); }
.core-pogo-tile.t4 { background: var(--orange, #e8742a); }
/* Subtle entry stagger for the four tiles */
.core-visual.in .core-pogo-tile { animation: corePogoTileIn 0.5s cubic-bezier(0.34,1.56,0.64,1) backwards; }
.core-visual.in .core-pogo-tile.t1 { animation-delay: 0.55s; }
.core-visual.in .core-pogo-tile.t2 { animation-delay: 0.65s; }
.core-visual.in .core-pogo-tile.t3 { animation-delay: 0.75s; }
.core-visual.in .core-pogo-tile.t4 { animation-delay: 0.85s; }
@keyframes corePogoTileIn {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.core-pogo-label {
  font-family: var(--font-d, 'Cabinet Grotesk', sans-serif);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--teal-deep, #044232);
}

/* MAT card — wider, with trend bar inside */
.core-c-mat {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.core-mat-head {
  display: flex; align-items: center; gap: 14px;
}
.core-mat-text { flex: 1; min-width: 0; }
.core-mat-foot {
  display: flex; align-items: center; gap: 10px;
}
.core-mat-yoy {
  font-family: var(--font-d, 'Cabinet Grotesk', sans-serif);
  font-weight: 800;
  font-size: 14px;
  color: var(--teal, #0d9e7a);
  white-space: nowrap;
}
.core-mat-bar {
  flex: 1;
  height: 8px;
  background: rgba(13,158,122,0.10);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.core-mat-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal, #0d9e7a) 0%, var(--teal-dark, #086b52) 100%);
  border-radius: 99px;
  position: relative;
}
.core-visual.in .core-mat-bar-fill {
  animation: coreMatFill 1.6s cubic-bezier(0.22,1,0.36,1) forwards 0.95s;
}
@keyframes coreMatFill {
  0%   { width: 0%; }
  100% { width: 76%; }
}
.core-mat-bar-fill::after {
  /* Travelling shine inside the bar */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: translateX(-100%);
}
.core-visual.in .core-mat-bar-fill::after {
  animation: coreMatShine 3.2s ease-in-out infinite 2.4s;
}
@keyframes coreMatShine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(180%); }
  100% { transform: translateX(180%); }
}

/* Per-card live mini-illustrations */

/* EYFS — pulsing user dot */
.core-c-eyfs .core-card-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(13,158,122,0);
}
.core-visual.in .core-c-eyfs .core-card-icon::after {
  animation: coreEyfsPulse 3s ease-in-out infinite 1.4s;
}
@keyframes coreEyfsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,158,122,0); }
  50%      { box-shadow: 0 0 0 8px rgba(13,158,122,0.18); }
}

/* Curriculum — three pen-strokes that "fill in" */
.core-c-curriculum .core-card-icon svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.core-visual.in .core-c-curriculum .core-card-icon svg path {
  animation: coreCurriculumDraw 4s ease-in-out infinite;
}
.core-visual.in .core-c-curriculum .core-card-icon svg path:nth-child(2) { animation-delay: 0.4s; }
.core-visual.in .core-c-curriculum .core-card-icon svg path:nth-child(3) { animation-delay: 0.8s; }
@keyframes coreCurriculumDraw {
  0%   { stroke-dashoffset: 24; }
  40%  { stroke-dashoffset: 0; }
  70%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -24; }
}

/* Assessment — sparkline redraws */
.core-c-assessment .core-spark {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  fill: none;
  stroke: #3B82F6;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.core-visual.in .core-c-assessment .core-spark {
  animation: coreSparkDraw 3.6s cubic-bezier(0.22,1,0.36,1) infinite 1.4s;
}
@keyframes coreSparkDraw {
  0%   { stroke-dashoffset: 80; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -80; }
}

/* DataView — bars breathe up and down */
.core-c-dataview .core-bar {
  transform-origin: bottom;
}
.core-visual.in .core-c-dataview .core-bar { animation: coreBarBreathe 2.4s ease-in-out infinite; }
.core-visual.in .core-c-dataview .core-bar.b1 { animation-delay: 0.0s; }
.core-visual.in .core-c-dataview .core-bar.b2 { animation-delay: 0.25s; }
.core-visual.in .core-c-dataview .core-bar.b3 { animation-delay: 0.50s; }
@keyframes coreBarBreathe {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1); }
}

/* MAT — dashboard icon: subtle line redraw */
.core-c-mat .core-card-icon svg .core-mat-trend {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  fill: none;
  stroke: var(--teal, #0d9e7a);
  stroke-width: 2;
  stroke-linecap: round;
}
.core-visual.in .core-c-mat .core-card-icon svg .core-mat-trend {
  animation: coreMatTrend 4s ease-in-out infinite 1.8s;
}
@keyframes coreMatTrend {
  0%   { stroke-dashoffset: 32; }
  45%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -32; }
}

/* Scroll-driven parallax — each card holds a custom --core-depth which
   the JS multiplies by scroll progress to displace cards along Y and slightly
   in opacity for a layered effect. The default (no JS) keeps everything flat. */
.core-card { transition-property: transform, opacity, box-shadow, border-color; }
.core-c-eyfs       { --core-depth: -10; }
.core-c-curriculum { --core-depth:  10; }
.core-c-assessment { --core-depth: -16; }
.core-c-dataview   { --core-depth:  16; }
.core-c-pogo       { --core-depth:  -4; }
.core-c-mat        { --core-depth:   4; }

/* On smaller screens, fall back to a stacked column */
@media (max-width: 1100px) {
  .core-visual { aspect-ratio: auto; min-height: 0; }
  .core-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .core-c-eyfs, .core-c-curriculum,
  .core-c-assessment, .core-c-dataview {
    grid-column: span 1; grid-row: auto;
  }
  .core-c-pogo  { grid-column: 1 / span 1; grid-row: auto; }
  .core-c-mat   { grid-column: 2 / span 1; grid-row: auto; }
  .core-lines { display: none; }
}
@media (max-width: 720px) {
  .core-grid { grid-template-columns: 1fr; }
  .core-c-pogo, .core-c-mat { grid-column: 1 / -1; }
}

/* ─────────────────────────────────────────────────────────────
   POGO Core — richer hero card previews + bottom tile grid
   ───────────────────────────────────────────────────────────── */

/* Cards become a column of head + viz */
.core-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
}
.core-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.core-card-viz {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

/* Shared bar row used in curriculum viz + inside-curric */
.core-viz-bar-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
}
.core-viz-bar-lbl {
  width: 58px; flex-shrink: 0;
  color: rgba(13,26,21,0.55);
  font-weight: 600;
}
.core-viz-bar {
  flex: 1; height: 6px;
  background: rgba(13,26,21,0.06);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.core-viz-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 99px;
  background: var(--c, var(--teal));
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.core-visual.in .core-viz-bar-fill,
.core-inside-card.in .core-viz-bar-fill,
.reveal.is-visible .core-viz-bar-fill {
  width: var(--target-width, 0%);
}
.core-viz-bar-val {
  width: 32px; text-align: right;
  font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* EYFS viz */
.core-viz-eyfs {
  background: linear-gradient(170deg, var(--teal-pale) 0%, #fff 60%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(13,158,122,0.12);
}
.core-viz-eyfs-bubble {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11px; color: var(--ink-70);
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 32px;
}
.core-viz-eyfs-ai {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--font-d); font-weight: 800; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13,158,122,0.4);
}
.core-viz-eyfs-text::after {
  content: '|';
  color: var(--teal);
  animation: coreBlink 1s steps(1) infinite;
  margin-left: 1px;
}
.core-visual.in .core-viz-eyfs-text {
  animation: coreEyfsType 6s steps(1) infinite;
}
@keyframes coreEyfsType {
  0%   { content: ''; }
  5%   { content: 'A'; }
  10%  { content: 'Ama'; }
  15%  { content: 'Amara'; }
  20%  { content: 'Amara coun'; }
  25%  { content: 'Amara counted'; }
  30%  { content: 'Amara counted to 12'; }
  40%  { content: 'Amara counted to 12 confidently.'; }
  85%  { content: 'Amara counted to 12 confidently.'; }
  90%  { content: ''; }
  100% { content: ''; }
}
.core-visual.in .core-viz-eyfs-text::before {
  content: '';
  animation: coreEyfsTypeText 6s steps(1) infinite;
}
@keyframes coreEyfsTypeText {
  0%, 4%   { content: 'Amara show'; }
  10%      { content: 'Amara showed exc'; }
  16%      { content: 'Amara showed excellent c'; }
  22%      { content: 'Amara showed excellent count'; }
  28%      { content: 'Amara showed excellent counting'; }
  34%      { content: 'Amara showed excellent counting sk'; }
  40%      { content: 'Amara showed excellent counting skills.'; }
  88%      { content: 'Amara showed excellent counting skills.'; }
  92%, 100% { content: ''; }
}
.core-viz-eyfs-text { font-style: italic; }
@keyframes coreBlink { 50% { opacity: 0; } }
.core-viz-eyfs-tags {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.core-viz-tag {
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  letter-spacing: 0.04em;
}
.core-tag-teal { background: var(--teal); color: #fff; }
.core-tag-orange { background: var(--orange); color: #fff; }

/* Curriculum viz */
.core-viz-curric {
  background: linear-gradient(170deg, var(--orange-pale) 0%, #fff 60%);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(232,116,42,0.12);
}

/* Assessment viz */
.core-viz-assess {
  background: linear-gradient(170deg, rgba(59,130,246,0.07) 0%, #fff 60%);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid rgba(59,130,246,0.12);
}
.core-viz-assess-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.core-viz-assess-lbl {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(13,26,21,0.4);
}
.core-viz-assess-val {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 26px;
  color: #3B82F6;
  letter-spacing: -0.03em;
  line-height: 1;
}
.core-viz-assess-delta {
  font-size: 10px; color: var(--green); font-weight: 700;
  margin-top: 2px;
}
.core-viz-assess-spark { width: 100%; height: 48px; align-self: end; }
.core-viz-assess-line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}
.core-visual.in .core-viz-assess-line,
.core-inside-card.in .core-viz-assess-line,
.reveal.is-visible .core-viz-assess-line {
  animation: coreAssessDraw 1.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
.core-viz-assess-area {
  opacity: 0;
}
.core-visual.in .core-viz-assess-area,
.core-inside-card.in .core-viz-assess-area,
.reveal.is-visible .core-viz-assess-area {
  animation: coreAssessFill 1s ease 0.8s forwards;
}
@keyframes coreAssessDraw { to { stroke-dashoffset: 0; } }
@keyframes coreAssessFill { to { opacity: 1; } }

/* DataView viz */
.core-viz-data {
  background: linear-gradient(170deg, rgba(245,158,11,0.08) 0%, #fff 60%);
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid rgba(245,158,11,0.14);
}
.core-viz-data-bars {
  display: flex; align-items: flex-end; gap: 5px; height: 48px;
}
.core-viz-dbar {
  flex: 1;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 3px 3px 0 0;
  height: 0%;
  transition: height 0.8s cubic-bezier(0.22,1,0.36,1);
  transform-origin: bottom;
}
.core-viz-dbar.core-viz-dbar-a {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
}
.core-visual.in .core-viz-dbar,
.core-inside-card.in .core-viz-dbar,
.reveal.is-visible .core-viz-dbar {
  height: var(--h, 50%);
  animation: coreDataBarBreathe 4s ease-in-out infinite 1.4s;
}
.core-visual.in .core-viz-dbar:nth-child(1),
.core-inside-card.in .core-viz-dbar:nth-child(1) { transition-delay: 0.05s; }
.core-visual.in .core-viz-dbar:nth-child(2),
.core-inside-card.in .core-viz-dbar:nth-child(2) { transition-delay: 0.10s; }
.core-visual.in .core-viz-dbar:nth-child(3),
.core-inside-card.in .core-viz-dbar:nth-child(3) { transition-delay: 0.15s; }
.core-visual.in .core-viz-dbar:nth-child(4),
.core-inside-card.in .core-viz-dbar:nth-child(4) { transition-delay: 0.20s; }
.core-visual.in .core-viz-dbar:nth-child(5),
.core-inside-card.in .core-viz-dbar:nth-child(5) { transition-delay: 0.25s; }
.core-visual.in .core-viz-dbar:nth-child(6),
.core-inside-card.in .core-viz-dbar:nth-child(6) { transition-delay: 0.30s; }
.core-visual.in .core-viz-dbar:nth-child(7),
.core-inside-card.in .core-viz-dbar:nth-child(7) { transition-delay: 0.35s; }
.core-visual.in .core-viz-dbar:nth-child(8),
.core-inside-card.in .core-viz-dbar:nth-child(8) { transition-delay: 0.40s; }
@keyframes coreDataBarBreathe {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}
.core-viz-data-tip {
  font-size: 10px; font-weight: 600;
  color: rgba(13,26,21,0.65);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: rgba(245,158,11,0.10);
  border-radius: 8px;
  line-height: 1.2;
}
.core-viz-data-tip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
  animation: coreTipPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes coreTipPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}

/* POGO Core centrepiece — overhaul */
.core-c-pogo {
  background: linear-gradient(155deg, #ffffff 0%, var(--teal-pale) 65%, rgba(232,116,42,0.10) 100%);
  border: 1px solid rgba(13,158,122,0.2);
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.core-pogo-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 60%, rgba(13,158,122,0.16) 0%, rgba(13,158,122,0) 70%);
  pointer-events: none;
  animation: corePogoHalo 4s ease-in-out infinite;
}
@keyframes corePogoHalo {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.core-pogo-tiles {
  width: 76px; height: 76px;
  margin: 0 auto;
  animation: corePogoFloat 5s ease-in-out infinite;
}
@keyframes corePogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-2deg); }
}
.core-pogo-label {
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.core-pogo-tagline {
  font-size: 11px;
  color: rgba(13,26,21,0.55);
  font-weight: 500;
  margin-top: 2px;
}

/* MAT viz */
.core-c-mat {
  gap: 10px;
}
.core-mat-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.core-mat-map {
  position: relative;
  border-radius: 12px;
  background:
    radial-gradient(circle at 25% 35%, rgba(13,158,122,0.10), transparent 45%),
    radial-gradient(circle at 75% 55%, rgba(232,116,42,0.10), transparent 50%),
    linear-gradient(135deg, #f6f4ee, #efece5);
  overflow: hidden;
  min-height: 100px;
  border: 1px solid rgba(13,26,21,0.05);
}
.core-mat-map::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,26,21,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,26,21,0.04) 1px, transparent 1px);
  background-size: 14px 14px;
}
.core-mat-pin {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(13,158,122,0.2), 0 2px 4px rgba(0,0,0,0.18);
  transform: translate(-50%, -50%);
  animation: coreMatPinPulse 3s ease-in-out infinite;
}
.core-mat-pin-o { background: var(--orange); box-shadow: 0 0 0 2px rgba(232,116,42,0.2), 0 2px 4px rgba(0,0,0,0.18); }
.core-mat-pin:nth-child(1) { animation-delay: 0s; }
.core-mat-pin:nth-child(2) { animation-delay: 0.3s; }
.core-mat-pin:nth-child(3) { animation-delay: 0.6s; }
.core-mat-pin:nth-child(4) { animation-delay: 0.9s; }
.core-mat-pin:nth-child(5) { animation-delay: 1.2s; }
.core-mat-pin:nth-child(6) { animation-delay: 1.5s; }
@keyframes coreMatPinPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.18); }
}
.core-mat-meta { display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 11px; }
.core-mat-meta-row { display: flex; align-items: center; gap: 8px; }
.core-mat-meta-lbl { color: rgba(13,26,21,0.55); font-weight: 600; min-width: 64px; }
.core-mat-meta-val { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.core-mat-meta-teal { color: var(--teal); }

/* ─────────────────────────────────────────────────────────────
   "What's inside" — rich tiles below the hero
   ───────────────────────────────────────────────────────────── */
.core-inside-section { padding-top: 36px; padding-bottom: 56px; }
.core-inside-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.core-inside-eyfs   { grid-column: span 2; }
.core-inside-curric { grid-column: span 2; }
.core-inside-assess { grid-column: span 2; }
.core-inside-data   { grid-column: span 3; }
.core-inside-mat    { grid-column: span 3; }
.core-inside-glue   { grid-column: span 6; }

.core-inside-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(13,26,21,0.07);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s ease;
  min-height: 260px;
  isolation: isolate;
}
.core-inside-card[href], .core-inside-card[onclick] { cursor: pointer; }
.core-inside-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(13,26,21,0.06),
    0 22px 44px rgba(13,26,21,0.10);
  border-color: rgba(13,158,122,0.4);
}
.core-inside-bg {
  position: absolute; inset: 0;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
}
.core-inside-bg-teal   { background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(13,158,122,0.16), transparent 65%); }
.core-inside-bg-orange { background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(232,116,42,0.16), transparent 65%); }
.core-inside-bg-blue   { background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(59,130,246,0.14), transparent 65%); }
.core-inside-bg-amber  { background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(245,158,11,0.16), transparent 65%); }
.core-inside-bg-cream  { background: linear-gradient(135deg, var(--teal-pale) 0%, var(--orange-pale) 100%); opacity: 1; }

.core-inside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.core-inside-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.core-inside-icon svg { width: 22px; height: 22px; }
.core-inside-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  background: var(--teal-pale);
  color: var(--teal-dark);
}
.core-inside-tag-orange { background: var(--orange-pale); color: var(--orange-dark); }
.core-inside-tag-blue   { background: rgba(59,130,246,0.10); color: #1d4ed8; }
.core-inside-tag-amber  { background: rgba(245,158,11,0.14); color: #92400e; }
.core-inside-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.core-inside-desc {
  font-size: 13.5px;
  color: var(--ink-70);
  line-height: 1.55;
}
.core-inside-preview {
  margin-top: auto;
  padding: 14px;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  border: 1px solid rgba(13,26,21,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.core-inside-preview-eyfs { background: rgba(255,255,255,0.65); }
.core-inside-photo {
  position: relative;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.core-inside-photo-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(13,158,122,0.35), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(232,116,42,0.30), transparent 50%),
    linear-gradient(135deg, #d0e8d8 0%, #f4e3c4 100%);
}
.core-inside-photo-tag {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.92);
  color: var(--teal-dark);
  backdrop-filter: blur(4px);
}
.core-inside-bubble {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.4;
  color: var(--ink-70);
  font-style: italic;
  min-height: 26px;
}
.core-inside-bubble-ai {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--font-d); font-weight: 800; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13,158,122,0.4);
}
.core-inside-bubble-text::before {
  content: '';
  animation: coreInsideEyfsType 7s steps(1) infinite;
}
.core-inside-bubble-text::after {
  content: '|';
  color: var(--teal);
  animation: coreBlink 1s steps(1) infinite;
  margin-left: 1px;
}
@keyframes coreInsideEyfsType {
  0%   { content: ''; }
  4%   { content: 'Amara'; }
  8%   { content: 'Amara count'; }
  12%  { content: 'Amara counted'; }
  18%  { content: 'Amara counted to 12'; }
  24%  { content: 'Amara counted to 12 confid'; }
  30%, 88% { content: 'Amara counted to 12 confidently.'; }
  92%, 100% { content: ''; }
}

/* Assess inside */
.core-inside-preview-assess { gap: 12px; }
.core-inside-assess-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.core-inside-assess-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.core-inside-assess-stat-lbl {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(13,26,21,0.45);
}
.core-inside-assess-stat-val {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.core-text-blue { color: #3B82F6; }
.core-text-green { color: var(--green); }

/* DataView inside */
.core-inside-preview-data .core-inside-data-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 78px;
}
.core-inside-preview-data .core-viz-dbar { border-radius: 4px 4px 0 0; }

/* MAT inside */
.core-inside-preview-mat {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  min-height: 110px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.core-inside-preview-mat .core-mat-map { min-height: 110px; }
.core-inside-mat-stats {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  border: 1px solid rgba(13,26,21,0.05);
}

/* Glue card */
.core-inside-glue {
  text-align: center;
  align-items: center;
  padding: 36px 22px;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--orange-pale) 100%);
}
.core-inside-glue-tiles {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  grid-template-rows: 56px;
  gap: 10px;
  margin-bottom: 6px;
}
.core-glue-tile {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(13,26,21,0.08);
  animation: coreGlueFloat 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d, 'Cabinet Grotesk', sans-serif);
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.core-glue-tile-1 { background: var(--teal); animation-delay: 0s; }
.core-glue-tile-2 { background: var(--orange); animation-delay: 0.2s; }
.core-glue-tile-3 { background: var(--teal); animation-delay: 0.4s; }
.core-glue-tile-4 { background: var(--orange); animation-delay: 0.6s; }
@keyframes coreGlueFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.core-inside-glue .core-inside-title { font-size: 26px; }
.core-inside-glue .core-inside-desc { max-width: 56ch; }
.core-inside-glue-meta {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 6px;
}
.core-inside-glue-chip {
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,0.7);
  color: var(--teal-deep);
  border: 1px solid rgba(13,158,122,0.15);
}

.core-inside-cta {
  margin-top: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  transition: gap 0.2s ease, color 0.2s ease;
}
.core-inside-card:hover .core-inside-cta {
  gap: 10px;
  color: var(--teal);
}

/* Stagger entry — IntersectionObserver adds .in to each tile */
.core-inside-card { opacity: 0; transform: translateY(14px); }
.core-inside-card.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.core-inside-card.in:nth-child(1) { transition-delay: 0.05s; }
.core-inside-card.in:nth-child(2) { transition-delay: 0.12s; }
.core-inside-card.in:nth-child(3) { transition-delay: 0.19s; }
.core-inside-card.in:nth-child(4) { transition-delay: 0.26s; }
.core-inside-card.in:nth-child(5) { transition-delay: 0.33s; }
.core-inside-card.in:nth-child(6) { transition-delay: 0.40s; }

/* Mobile fallback for inside grid */
@media (max-width: 1100px) {
  .core-inside-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .core-inside-eyfs, .core-inside-curric, .core-inside-assess,
  .core-inside-data, .core-inside-mat, .core-inside-glue {
    grid-column: span 2;
  }
}
@media (max-width: 720px) {
  .core-inside-grid { grid-template-columns: 1fr; }
}

/* The hero cards are richer now — keep them compact so the cluster
   fits visually next to the hero text instead of towering over it. */
@media (min-width: 1101px) {
  .core-visual { aspect-ratio: auto; min-height: 520px; max-height: 600px; }
  .core-card { padding: 12px 14px; gap: 8px; }
  .core-card-icon { width: 40px; height: 40px; border-radius: 10px; }
  .core-card-icon svg { width: 20px; height: 20px; }
  .core-card-title { font-size: 15px; }
  .core-card-sub { font-size: 11px; }
  .core-card-viz { gap: 6px; }
  .core-viz-eyfs,
  .core-viz-curric,
  .core-viz-assess,
  .core-viz-data { padding: 8px 10px; }
  .core-viz-eyfs-bubble { min-height: 26px; font-size: 10px; }
  .core-viz-eyfs-ai { width: 18px; height: 18px; font-size: 8px; }
  .core-viz-bar-row { font-size: 10px; }
  .core-viz-bar-lbl { width: 50px; }
  .core-viz-bar { height: 5px; }
  .core-viz-assess { grid-template-columns: auto 1fr; gap: 8px; padding: 8px 10px; }
  .core-viz-assess-val { font-size: 20px; }
  .core-viz-assess-spark { height: 38px; }
  .core-viz-assess-delta { font-size: 9px; }
  .core-viz-data-bars { height: 38px; gap: 4px; }
  .core-viz-data-tip { font-size: 9px; padding: 4px 6px; }
  .core-pogo-tiles { width: 56px; height: 56px; }
  .core-pogo-label { font-size: 11px; letter-spacing: 0.16em; }
  .core-pogo-tagline { font-size: 10px; }
  .core-mat-body { gap: 8px; }
  .core-mat-map { min-height: 70px; }
  .core-mat-meta { font-size: 10px; gap: 4px; }
  .core-mat-meta-lbl { min-width: 56px; }
  .core-mat-yoy { font-size: 12px; }
  .core-mat-bar { height: 6px; }
}
