/* Home page: business-model steps and the domain carousel. */
.offer-card h3 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: normal;
}
.offer-card p {
  font-weight: 400;
}
/* Home 02. The business model: three steps beside one picture. The same cubes go from scattered data, through
   ordered rows, to the things AI labs build. */
.model {
  padding: calc(var(--sec-gap) - 16px) 0 0;
}
.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--head-gap);
}
.model-head {
  font-size: var(--section-size);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-wrap: balance;
}
.model-art {
  position: relative;
  aspect-ratio: 1 / 0.96;
}
.model-art canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Without WebGL: a still per step instead of the 3D picture (model-still.js). */
.model-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.model-art.no-webgl canvas {
  display: none;
}
.model-step {
  display: block;
  width: 100%;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}
.model-step:last-child {
  border-bottom: 1px solid var(--line);
}
.model-step-title {
  display: block;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.015em;
  color: var(--muted);
  transition: color 0.3s;
}
.model-step:hover .model-step-title {
  color: var(--ink-2);
}
.model-step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}
.model-step-body > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}
.model-step-body > span::before {
  content: '';
  display: block;
  height: 10px;
}
.model-step.is-on .model-step-title {
  color: var(--ink);
}
.model-step.is-on .model-step-body {
  grid-template-rows: 1fr;
}
@media (min-width: 1024px) {
  .model-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: var(--head-gap) 56px;
    align-items: start;
  }
  .model-head {
    grid-column: 1;
    grid-row: 1;
  }
  .model-steps {
    grid-column: 1;
    grid-row: 2;
  }
  .model-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
@media (max-width: 639px) {
  .model-step-title {
    font-size: 20px;
    line-height: 28px;
  }
  .model-step-body > span {
    font-size: 16px;
    line-height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .model-step-body,
  .model-step-title {
    transition: none;
  }
}
/* Home 04. Two doors as cards, one dark, one peach, each with its own moving picture between title and text. */
.two-cards {
  padding: var(--sec-gap) 0 0;
}
.card-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 44px 36px 40px;
  border-radius: 16px;
  overflow: hidden;
}
.offer-card.dark {
  background: var(--black);
  color: var(--on-dark);
}
.offer-card.light {
  background: var(--peach);
  color: var(--ink);
}
.offer-card .kicker {
  color: inherit;
  opacity: 0.75;
}
.offer-card h2 {
  margin-top: 40px;
  font-size: var(--section-size);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 14ch;
  text-wrap: balance;
}
.card-art {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  margin-top: 32px;
}
.card-art .pixel-art {
  position: absolute;
  inset: 0;
}
.offer-card p {
  margin-top: 28px;
  font-size: 18px;
  line-height: 28px;
  max-width: 36ch;
  text-wrap: pretty;
}
.offer-card.dark p {
  color: rgb(255 255 255 / 0.72);
}
.offer-card.light p {
  color: var(--ink-2);
}
.offer-card .btn {
  margin-top: 32px;
  align-self: flex-start;
  gap: 10px;
  background: transparent;
}
@media (min-width: 1024px) {
  .card-pair {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .offer-card {
    min-height: 620px;
    padding: 56px 48px 48px;
  }
}
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .card-pair {
      grid-template-rows: auto auto 1fr auto auto;
      row-gap: 0;
    }
    .offer-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
    }
    .offer-card .btn {
      justify-self: start;
    }
    .card-art {
      min-height: 208px;
    }
  }
}
/* Home 03. Domains we cover, after the reference's case-study row: tall cards almost touching, running edge
   to edge, each with a white label at the top and its copy over a dark fade, a moving picture in place of a photo. */
.domains {
  padding: var(--sec-gap) 0 0;
}
.domains-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: var(--head-gap);
}
.domains-head p {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}
/* The strip starts on the page's left line, under the heading's D. Below 1024 px it runs off the right of the window; from there it keeps to the page column. */
.marquee {
  position: relative;
  overflow: hidden;
  margin-left: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter));
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-set {
  display: flex;
  gap: 6px;
  padding-right: 6px;
  margin: 0;
  list-style: none;
}
.domain-card {
  --tone: var(--surface-dark);
  --deep: var(--ink-deep);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: clamp(232px, 27.2vw, 416px);
  aspect-ratio: 3 / 4;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tone);
  color: var(--on-dark);
}
.domain-card .pixel-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.domain-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 56%;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0),
    color-mix(in srgb, var(--deep) 86%, transparent) 52%,
    var(--deep)
  );
  pointer-events: none;
}
.domain-label {
  position: absolute;
  top: 26px;
  left: 28px;
  right: 28px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.domain-card .kicker {
  color: rgb(255 255 255 / 0.7);
  letter-spacing: 0.18em;
}
.domain-card h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.domain-card p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 22px;
  color: rgb(255 255 255 / 0.82);
}
@media (max-width: 639px) {
  .domain-card {
    padding: 22px;
  }
  .domain-label {
    top: 20px;
    left: 22px;
    right: 22px;
  }
  .domain-card h3 {
    font-size: 20px;
    line-height: 28px;
  }
  .domain-card p {
    font-size: 14px;
    line-height: 20px;
  }
}
/* Flat tile display with a still fallback. */
[data-tile-runner] .runner-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-tile-runner][data-ready='true'] .runner-poster {
  visibility: hidden;
}
[data-tile-runner] canvas {
  position: relative;
}
[data-tile-runner][data-ready='fallback'] canvas {
  display: none;
}
@media (hover: hover) {
  /* A home card answers a hover anywhere on it as its button does (kept apart so browsers without :has() keep the rules above). */
  :root .offer-card:has(.card-cover:hover) .btn.btn {
    border-color: var(--brand);
    background: var(--surface);
    color: var(--on-brand);
  }
  :root .offer-card:has(.card-cover:hover) .btn.btn::before {
    background-size: var(--btn-fill-full);
    transition: background-size 0.62s cubic-bezier(0.3, 0.7, 0.35, 1);
  }
}
@media (max-width: 639px) {
  .model-head,
  .offer-card h2 {
    line-height: 38px;
  }
  .domains-head p {
    font-size: 16px;
    line-height: 26px;
  }
}
@media (max-width: 1023px) {
  .model {
    padding-top: calc(var(--sec-gap) - 64px);
  }
}
@media (min-width: 1024px) {
  .marquee {
    margin-right: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter));
    container-type: inline-size;
  }
  .domain-card {
    width: clamp(232px, 29.5cqi, 416px);
  }
}
/* Each home card is one link: a cover under the button fills the card. The button stays above it as the keyboard stop. */
.offer-card {
  position: relative;
}
.card-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
:root .offer-card .btn.btn {
  z-index: 1;
}
/* Natural source colour, with the same caption fade as the selection board. */
.domain-video-card video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--film-grade);
  pointer-events: none;
}
.domain-video-card::after {
  inset: 0;
  height: 100%;
  background: var(--film-shade);
}
.domain-video-card .domain-label {
  text-shadow: 0 1px 9px rgb(0 0 0 / 0.45);
}
/* Direct manipulation remains available while the strip glides slowly. */
[data-marquee] {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
[data-marquee].is-dragging {
  cursor: grabbing;
}
[data-marquee]:focus {
  outline: none;
}
[data-marquee]:focus-visible:not(.pointer-focused) {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.carousel-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* The FDE site's home page: what its sections need beyond the shared styles (site.css, home.css). Colours only from
   theme.css, by role. */

/* The line above the hero's statement. The brand's darker shade, so the small text reads (4.5:1). */
.eyebrow {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--brand-700);
}
/* The hero's picture (hero.js) is drawn over the whole section: the pixels on one canvas, a figure on a second one
   that the script places. Neither takes the pointer, which the section listens to. The text stays above them. */
.fde-hero {
  position: relative;
  overflow: hidden;
}
.fde-hero .hero-pixels,
.fde-hero .hero-figure {
  position: absolute;
  pointer-events: none;
}
.fde-hero .hero-pixels {
  inset: 0;
  width: 100%;
  height: 100%;
}
.fde-hero .container {
  position: relative;
  z-index: 1;
}
/* Phones and tablets: the rocket above the text (handover 6.1); its column goes. */
@media (max-width: 1023px) {
  .fde-hero .hp-copy {
    padding-top: 230px;
  }
  .fde-rocket {
    display: none;
  }
}
/* Side by side: the hero is tall enough for draems.io's figures, and the right column keeps the rocket's place. */
@media (min-width: 1024px) {
  .fde-hero {
    display: flex;
    align-items: center;
    min-height: 660px;
  }
  .fde-rocket {
    aspect-ratio: 1;
    max-width: 420px;
  }
}

/* How we work: the stack's canvas (handover 6.4) is square, at most 420 px. */
.model-art.fde-stack {
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

/* Pixel pictures drawn as SVG squares: the strong and the soft tone, per background. */
.px-icon .strong {
  fill: var(--brand);
}
.px-icon .soft {
  fill: var(--art-2);
}

/* What we build: the cards four by two from 1024 px, two columns on tablets, a row to swipe on phones (without a
   scrollbar; the cut-off card shows there is more). The list scrolls inside .uc-scroll, the region the keyboard
   reaches, so the list stays a plain list. */
.uc-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.uc-scroll::-webkit-scrollbar {
  display: none;
}
.uc-scroll:focus-visible {
  outline-offset: 4px;
}
.uc-grid {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uc-card {
  display: flex;
  flex: 0 0 260px;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
  padding: 28px;
  border-radius: 12px;
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .uc-scroll {
    overflow: visible;
  }
  .uc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uc-card {
    height: 280px;
  }
}
@media (min-width: 1024px) {
  .uc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .uc-card {
    height: 300px;
  }
}
.uc-card.light {
  background: var(--peach);
  color: var(--ink);
}
.uc-card.dark {
  background: var(--black);
  color: var(--on-dark);
}
/* On dark cards the pictures take the scheme's second colour; their soft cells stay a shade above the card, so the
   card shows one blue only (Alex, 1 December 2026). */
.uc-card.dark .px-icon .strong {
  fill: var(--amber);
}
.uc-card.dark .px-icon .soft {
  fill: var(--pixel-dark-line);
}
.uc-card h3 {
  font-size: 20px;
  line-height: 25px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.uc-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  text-wrap: pretty;
}
.uc-card.light p {
  color: var(--ink-2);
}
.uc-card.dark p {
  color: rgb(255 255 255 / 0.72);
}

/* Not slide decks: three numbered steps, side by side from 768 px. */
.steps-3 .dp-item {
  border-top-color: var(--ink);
}
.step-no {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--brand-700);
}
@media (min-width: 768px) {
  .steps-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* Platforms: a soft box, the heading on the left, what the platforms bring on the right. The partners' logos come
   once the contracts are signed (docs/PLAN.md, Step 8). */
.platforms-box {
  display: grid;
  gap: 40px;
  padding: 48px 28px;
  border-radius: 16px;
  background: var(--brand-50);
}
.platforms-box h2 {
  font-size: var(--section-size);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.platforms-box h2 + p {
  max-width: 30em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}
.platforms-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink);
}
.platforms-points li {
  display: flex;
  gap: 14px;
}
.platforms-points li::before {
  content: '';
  flex: 0 0 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--brand);
}
@media (min-width: 1024px) {
  .platforms-box {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    padding: 56px;
  }
}

/* Two ways: the cards' pictures stand on the line above the text. */
.offer-card .card-art {
  display: flex;
  align-items: flex-end;
}
.team .figure {
  fill: var(--art-1);
}
.team .figure.lit {
  fill: var(--brand);
}
/* Three of the five figures light up in turn, stay lit a while and go out, every 6 seconds (handover 6.5). With
   reduced motion they stay lit. */
@keyframes figure-lit {
  0% {
    fill: var(--art-1);
  }
  10% {
    fill: var(--brand);
  }
  78% {
    fill: var(--brand);
  }
  88% {
    fill: var(--art-1);
  }
  100% {
    fill: var(--art-1);
  }
}
.team .figure.lit {
  animation: figure-lit 6s ease-in-out infinite both;
}
.team.is-off .figure.lit {
  animation-play-state: paused;
}
/* The bars (bars.js): until they are in view they wait unseen, then rise cell by cell from the bottom, bar after bar;
   now and then one bar's top cell flashes light (handover 6.6). Without the script, or with reduced motion, they
   simply stand. */
.bars[data-rise='wait'] rect {
  opacity: 0;
}
@keyframes bar-cell-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.bars[data-rise='go'] rect {
  animation: bar-cell-in 120ms var(--rise) both;
}
/* The bars stand on the dark card: second colour, flashing to its lighter step. */
.bars .strong {
  fill: var(--amber);
}
@keyframes bar-flash {
  0%,
  100% {
    fill: var(--amber);
  }
  30%,
  60% {
    fill: var(--sweep-end);
  }
}
.bars rect.flash {
  animation: bar-flash 400ms ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .team .figure.lit,
  .bars[data-rise='go'] rect,
  .bars rect.flash {
    animation: none;
  }
}
