/* ===========================================================
   AI block (home) — "You can make anything with AI."
   Dark block: title + text on the same edges as every other block, then
   the diagram: a white square in the middle, four coloured corner squares,
   and the topics (what I bring on the left/bottom, the AI tools on the
   right/top) wired into it. ai-block.js places and animates everything in
   the diagram from one coordinate system (design px from the Figma file,
   scaled to the screen), so this file only holds the looks.
   =========================================================== */

.eod-ai {
  --eod-ai-bg: var(--eod-black);
  --eod-ai-guide: #2c2c2c;
  --eod-ai-ink: #0b0b0b;
  position: relative;
  overflow: clip; /* the guides run edge to edge and some tags bleed out */
  background: var(--eod-ai-bg);
  color: #fff;
  padding-top: 10em;
  padding-bottom: 8em;
}

/* ---- Title + text ---- */
.eod-ai__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3em;
  width: 100%;
  max-width: var(--eod-content-max);
  margin: 0 auto;
}
.eod-ai__title {
  margin: 0;
  max-width: 13.6em;
  font-weight: 400;
  /* Header 1 */
  font-size: var(--eod-fs-h1);
  line-height: var(--eod-lh-h1);
  letter-spacing: var(--eod-ls-h1);
}
.eod-ai__title-main,
.eod-ai__title-muted {
  display: block;
}
.eod-ai__title-muted {
  color: #8a8a8a;
}
.eod-ai__body {
  flex: 0 0 auto;
  width: 20.625em; /* 330px */
  margin: 0.5em 0 0;
  /* Paragraph 2 */
  font-size: var(--eod-fs-p2);
  line-height: var(--eod-lh-p2);
  letter-spacing: var(--eod-ls-p2);
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Diagram ---- */
.eod-ai__stage {
  /* ai-block.js sets --u (one Figma px, scaled), --cy (core centre from the
     top), --core (square size) and the stage height. The aspect ratio is
     only the first-paint guess so nothing jumps when the script runs. */
  --u: 1px;
  --core: 360px;
  --cy: 50%;
  position: relative;
  width: 100%;
  max-width: var(--eod-content-max);
  margin: 4.5em auto 0;
  aspect-ratio: 1320 / 770;
}

/* Thin lines through the square's edges, edge to edge (and on phones also
   top to bottom), like the guides in the design. */
.eod-ai__guide {
  position: absolute;
  z-index: 0;
  background: var(--eod-ai-guide);
  pointer-events: none;
}
.eod-ai__guide--top,
.eod-ai__guide--bottom {
  left: 50%;
  width: 300vw;
  height: 1px;
  margin-left: -150vw;
  transform-origin: 50% 50%;
}
.eod-ai__guide--top { top: calc(var(--cy) - var(--core) / 2); }
.eod-ai__guide--bottom { top: calc(var(--cy) + var(--core) / 2 - 1px); }
.eod-ai__guide--left,
.eod-ai__guide--right {
  display: none;
  top: calc(var(--cy) - 300vh);
  height: 600vh;
  width: 1px;
  transform-origin: 50% 50%;
}
.eod-ai__guide--left { left: calc(50% - var(--core) / 2); }
.eod-ai__guide--right { left: calc(50% + var(--core) / 2 - 1px); }

.eod-ai__wires {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.eod-ai__wire {
  fill: none;
  stroke-width: 1;
  stroke-linejoin: miter;
  opacity: 0.75;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}
.eod-ai__wire--dashed {
  stroke-dasharray: 3 3;
}
.eod-ai__wire.is-hot {
  opacity: 1;
  stroke-width: 1.5;
}
.eod-ai__pulse {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
}

.eod-ai__tags {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eod-ai__tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0.38em 0.7em 0.34em;
  border-radius: 2px;
  background: var(--tag-bg, #f4f4f4);
  color: var(--eod-ai-ink);
  /* Caption (size scales with the diagram, see ai-block.js) */
  font-size: var(--tag-font, 12px);
  line-height: var(--eod-lh-c);
  letter-spacing: var(--eod-ls-c);
  /* they're badges (design system): written as typed, no all caps */
  white-space: nowrap;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
/* Small loose keywords floating around the square. */
.eod-ai__tag--word {
  z-index: 1;
  padding: 0.3em 0.62em 0.26em;
  font-size: var(--word-font, 9px);
}
/* Phones: the topics that don't fit are still there, out of focus behind. */
.eod-ai__tag--far {
  z-index: 0;
  filter: blur(var(--blur, 2px));
}
.eod-ai__tag--link {
  cursor: default;
}
.eod-ai__tag--link.is-hot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 24px var(--tag-bg);
}

.eod-ai__core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: var(--cy);
  width: var(--core);
  height: var(--core);
  margin: calc(var(--core) / -2) 0 0 calc(var(--core) / -2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--core) * 0.056) calc(var(--core) * 0.061);
  border-radius: var(--eod-radius-m);
  background: #fff;
  color: var(--eod-ai-ink);
}
.eod-ai__core-text {
  margin: 0;
  /* Header 1 style; the size scales with the diagram (see ai-block.js) */
  font-size: var(--core-font, 40px);
  font-weight: 400;
  line-height: var(--eod-lh-h1);
  letter-spacing: var(--eod-ls-h1);
}
.eod-ai__line {
  display: block;
  overflow: hidden;
  /* room for descenders inside the mask */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.eod-ai__line-inner {
  display: block;
}
.eod-ai__core-foot {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  /* Caption */
  font-size: var(--foot-font, 12px);
  line-height: var(--eod-lh-c);
  letter-spacing: var(--eod-ls-c);
  text-transform: uppercase;
  white-space: nowrap;
}
.eod-ai__core-left {
  color: rgba(11, 11, 11, 0.5);
}

.eod-ai__joints {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.eod-ai__joint {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--joint, 6px);
  height: var(--joint, 6px);
  margin: calc(var(--joint, 6px) / -2) 0 0 calc(var(--joint, 6px) / -2);
  background: var(--tag-bg, #fff);
}

.eod-ai__corner {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: var(--cy);
  width: var(--corner, 20px);
  height: var(--corner, 20px);
  margin: calc(var(--corner, 20px) / -2) 0 0 calc(var(--corner, 20px) / -2);
}
.eod-ai__corner--tl { background: #8ec9ee; }
.eod-ai__corner--tr { background: #f07fb8; }
.eod-ai__corner--bl { background: #c9a6f0; }
.eod-ai__corner--br { background: #f08a3c; }
/* Corner squares switched off for now (Evy: "misschien wil ik ze later nog
   terug"). Everything else still runs (the square still opens up), so to
   bring them back only this rule has to go. */
.eod-ai__corner {
  display: none;
}

/* ---- Tablet + phone: stacked text, the tall diagram ---- */
@media (max-width: 1023px) {
  .eod-ai__head {
    flex-direction: column;
    gap: 1.5em;
  }
  .eod-ai__body {
    width: auto;
    max-width: 32em;
    margin-top: 0;
  }
  .eod-ai__stage {
    margin-top: 2.5em;
    aspect-ratio: 350 / 640;
  }
  .eod-ai__guide--left,
  .eod-ai__guide--right {
    display: block;
  }
  /* the vertical guides also run behind the text above */
  .eod-ai__head {
    z-index: 2;
  }
}
@media (max-width: 767px) {
  .eod-ai {
    padding-top: 5em;
    padding-bottom: 4em;
  }
}
