/* Homepage continuation: the calm hero leads into a continuous gallery and four distinct chapters. */
/* Card navigation remains available through the tabs and the cards themselves. */
body[data-page="home"] :is(.home-showcase-activity, .home-showcase-controls, .home-resource-controls) {
  display: none !important;
}
body[data-page="home"] .home-showcase.is-teleporting .home-showcase-track {
  transition: none !important;
}
html[data-theme] body[data-page="home"] :is(.home-showcase, .home-news, .home-tools) {
  --color-ink: #20283a;
  --color-ink-soft: #68748a;
  --color-card: #fff;
  --color-paper: #fff;
  --color-paper-soft: #f3f6ff;
  --color-rule: rgb(95 116 169 / 0.2);
  --color-accent: #536ab6;
  --color-shadow: rgb(59 78 132 / 0.08);
  --color-shadow-strong: rgb(59 78 132 / 0.14);
  color: #20283a;
  color-scheme: light;
}
body[data-page="home"] .home-showcase {
  background:
    radial-gradient(ellipse 50% 34% at 50% 70%, rgb(149 166 255 / 0.15), transparent 75%),
    linear-gradient(180deg, #f8f9fd 0%, #f0f3fa 100%);
}
body[data-page="home"] .home-showcase-intro p {
  color: #586bc0;
  letter-spacing: 0.16em;
}
body[data-page="home"] .home-showcase-intro h2 { text-wrap: balance; }
body[data-page="home"] .home-showcase-tabs {
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 5px;
  border: 1px solid rgb(73 87 155 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  box-shadow: 0 10px 35px rgb(56 69 119 / 0.07);
}
body[data-page="home"] .home-showcase-tabs button { flex: 0 0 auto; }
body[data-page="home"] .home-showcase-tabs button[aria-selected="true"] {
  background: #253a73;
  box-shadow: 0 5px 16px rgb(28 46 102 / 0.18);
}
@media (max-width: 760px) {
  body[data-page="home"] .home-showcase-tabs {
    justify-content: flex-start;
    width: calc(100% - 32px);
  }
}
body[data-page="home"] .home-showcase-card {
  border-color: rgb(85 103 181 / 0.14);
  box-shadow: 0 27px 72px rgb(59 75 139 / 0.14);
}
body[data-page="home"] .home-showcase-card.is-active {
  box-shadow: 0 30px 84px rgb(48 69 145 / 0.19);
}
body[data-page="home"] .home-showcase-activity { color: #6d7892; }
body[data-page="home"] .home-showcase-progress i {
  background: linear-gradient(90deg, #73bcf0, #575fb5);
}

body[data-page="home"] .home-editorial > .container,
body[data-page="home"] .home-collaboration > .container {
  width: min(calc(100% - 64px), 1200px);
}
body[data-page="home"] .home-editorial { padding-block: clamp(90px, 9vw, 140px); }
body[data-page="home"] .home-editorial .reveal.reveal-ready,
body[data-page="home"] .home-collaboration .reveal.reveal-ready {
  opacity: 1;
  transform: none;
  transition: none;
}
body[data-page="home"] .home-section-head { position: relative; z-index: 1; margin-bottom: 42px; }
body[data-page="home"] .home-section-kicker {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body[data-page="home"] .home-section-head h2 {
  font-family: var(--font-home) !important;
  font-size: clamp(2.1rem, 3.3vw, 3.6rem);
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2;
  text-wrap: balance;
}
body[data-page="home"] .home-section-intro {
  max-width: 34em;
  margin: 18px 0 0;
  color: var(--color-ink-soft);
  line-height: 1.75;
}

/* Current research: a large lead story, four reading cards, and a compact channel shelf. */
html[data-theme] body[data-page="home"] .home-news {
  color: #1c2844;
  background:
    radial-gradient(ellipse 42% 30% at 85% 15%, rgb(185 205 250 / 0.24), transparent 72%),
    #f9fafe;
}
body[data-page="home"] .home-news .home-section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 34px;
}
body[data-page="home"] .home-news .home-section-kicker { color: #6575be; }
body[data-page="home"] .home-news-status {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 13px;
  border: 1px solid rgb(94 119 185 / 0.15);
  border-radius: 999px;
  color: #65718d;
  background: rgb(255 255 255 / 0.75);
  font-size: 0.76rem;
}
body[data-page="home"] .home-news-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  gap: 18px;
}
body[data-page="home"] .home-news-feature {
  overflow: hidden;
  padding: 13px 13px 28px;
  border: 1px solid rgb(93 116 181 / 0.13);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 66px rgb(61 83 142 / 0.1);
}
body[data-page="home"] .home-news-feature-media {
  height: clamp(300px, 28vw, 390px);
  margin-bottom: 22px;
  border: 0;
  border-radius: 19px;
}
body[data-page="home"] .home-news-feature :is(.home-news-meta, h3, p) { margin-inline: 18px; }
body[data-page="home"] .home-news-feature h3 {
  font-size: clamp(1.6rem, 2.45vw, 2.25rem);
  line-height: 1.35;
}
body[data-page="home"] .home-news-feature > p { margin-top: 12px; }
body[data-page="home"] .home-news-list {
  display: grid;
  align-content: stretch;
  gap: 12px;
  border: 0;
}
body[data-page="home"] .home-news-row {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 104px;
  padding: 16px 22px;
  border: 1px solid rgb(93 116 181 / 0.13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(61 83 142 / 0.055);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
body[data-page="home"] .home-news-row time strong { color: #5d70ba; }
body[data-page="home"] .home-news-channel-label {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  color: #536bb1;
  background: #eef2ff;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}
body[data-page="home"] .home-source-column { gap: 12px; margin-top: 22px; }
body[data-page="home"] .home-source-title { margin: 0 0 2px; }
body[data-page="home"] .home-source-title span { color: #60739e; font-size: 0.8rem; letter-spacing: 0.12em; }
body[data-page="home"] .home-source-item {
  min-height: 96px;
  gap: 14px;
  padding: 17px;
  border-color: rgb(93 116 181 / 0.13);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgb(61 83 142 / 0.045);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
body[data-page="home"] .home-source-mark {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #6176b9;
  background: #edf2ff;
  font-size: 0.69rem;
  font-weight: 750;
}

/* Resource chapter: deep blue light and luminous task cards follow the white gallery. */
html[data-theme] body[data-page="home"] .home-resources {
  color: #f6f8ff;
  background:
    radial-gradient(ellipse 56% 54% at 0% 100%, rgb(47 110 210 / 0.52), transparent 70%),
    radial-gradient(ellipse 38% 45% at 100% 0%, rgb(78 81 191 / 0.44), transparent 74%),
    linear-gradient(145deg, #071122 0%, #101b3e 62%, #071223 100%);
}
body[data-page="home"] .home-resources::before {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(67 123 228 / 0.27), transparent 66%);
  pointer-events: none;
}
body[data-page="home"] .home-resources .home-section-kicker { color: #9dbbff; }
body[data-page="home"] .home-resources .home-section-head h2 { color: #fff; }
body[data-page="home"] .home-resources .home-section-head h2 { font-weight: 400 !important; }
body[data-page="home"] .home-resources .home-section-head > p { color: #b5c2df; }
body[data-page="home"] .home-resource-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}
body[data-page="home"] .home-resource-visual {
  min-height: 560px;
  border-color: rgb(180 205 255 / 0.28);
  border-radius: 27px;
  box-shadow: 0 26px 84px rgb(0 0 0 / 0.24), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
body[data-page="home"] .home-resource-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgb(5 17 40 / 0.72));
  pointer-events: none;
}
body[data-page="home"] .home-resource-visual img { transition: transform 650ms ease; }
body[data-page="home"] .home-image-caption {
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
  gap: 9px;
  padding: 20px 23px;
  border: 1px solid rgb(203 219 255 / 0.3);
  border-radius: 17px;
  color: #fff;
  background: rgb(10 26 62 / 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 35px rgb(0 0 0 / 0.14);
}
body[data-page="home"] .home-image-caption small { color: #9bc4ff; }
body[data-page="home"] .home-image-caption b { color: #fff; font-size: 1rem; }
body[data-page="home"] .home-resource-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}
body[data-page="home"] .home-index-row {
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 22px 8px;
  min-height: 270px;
  padding: 26px;
  border: 1px solid rgb(148 183 249 / 0.27);
  border-radius: 22px;
  color: #f6f8ff;
  background:
    radial-gradient(circle at 100% 100%, rgb(48 101 192 / 0.34), transparent 54%),
    linear-gradient(145deg, rgb(32 49 91 / 0.88), rgb(10 25 55 / 0.85));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 14px 38px rgb(0 0 0 / 0.11);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
body[data-page="home"] .home-index-row > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(169 198 255 / 0.32);
  border-radius: 999px;
  color: #c3d8ff;
  font-size: 0.7rem;
}
body[data-page="home"] .home-index-row > div { grid-column: 1 / -1; align-self: end; }
body[data-page="home"] .home-index-row > .ui-icon { grid-column: 2; grid-row: 1; justify-self: end; color: #bcd3ff; }
body[data-page="home"] .home-index-row small { color: #a9bbdf; }
body[data-page="home"] .home-index-row h3 { color: #fff; font-size: 1.45rem; }
body[data-page="home"] .home-index-row p { color: #b7c6e3; }

body[data-page="home"] .home-resources .home-section-head {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  margin-bottom: 36px;
  text-align: center;
}
body[data-page="home"] .home-resources .home-section-head > p { max-width: 38em; }
body[data-page="home"] .home-resource-carousel { position: relative; z-index: 1; }
body[data-page="home"] .home-resource-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 25px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgb(163 190 246 / 0.23);
  border-radius: 999px;
  background: rgb(10 23 51 / 0.63);
  scrollbar-width: none;
}
body[data-page="home"] .home-resource-tabs::-webkit-scrollbar { display: none; }
body[data-page="home"] .home-resource-tabs button {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: #bac9ea;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
body[data-page="home"] .home-resource-tabs button[aria-selected="true"] {
  color: #152449;
  background: #e4edff;
}
body[data-page="home"] .home-resource-window {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-block: 10px;
  overflow: clip;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  perspective: 1600px;
}
body[data-page="home"] .home-resource-carousel.is-dragging .home-resource-window { cursor: grabbing; }
body[data-page="home"] .home-resource-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  width: max-content;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(.2,.7,.2,1);
}
body[data-page="home"] .home-resource-carousel:not(.is-ready) .home-resource-track,
body[data-page="home"] .home-resource-carousel.is-dragging .home-resource-track,
body[data-page="home"] .home-resource-carousel.is-teleporting .home-resource-track { transition: none !important; }
body[data-page="home"] .home-resource-carousel.is-teleporting .home-resource-card { transition: none !important; }
body[data-page="home"] .home-resource-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  flex: 0 0 min(740px, 66vw);
  min-width: 0;
  min-height: 420px;
  padding: clamp(26px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid rgb(168 198 255 / 0.31);
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 85%, rgb(53 110 211 / 0.35), transparent 50%),
    linear-gradient(145deg, #152752, #0b1937 75%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.19), inset 0 1px 0 rgb(255 255 255 / 0.1);
  opacity: .74;
  transform: scale(.93);
  transition: transform 720ms cubic-bezier(.2,.7,.2,1), opacity 550ms ease, box-shadow 550ms ease;
}
body[data-page="home"] .home-resource-card.is-active {
  opacity: 1;
  transform: none;
  box-shadow: 0 23px 70px rgb(41 104 220 / 0.3), 0 0 0 1px rgb(125 175 255 / 0.23), inset 0 1px 0 rgb(255 255 255 / 0.16);
}
body[data-page="home"] .home-resource-card.is-before {
  transform-origin: right center;
  transform: translateY(19px) rotateY(9deg) rotateZ(-3deg) scale(.92);
}
body[data-page="home"] .home-resource-card.is-after {
  transform-origin: left center;
  transform: translateY(19px) rotateY(-9deg) rotateZ(3deg) scale(.92);
}
body[data-page="home"] .home-resource-card:not(.is-active) { cursor: pointer; }
body[data-page="home"] .home-resource-card-copy { min-width: 0; }
body[data-page="home"] .home-resource-card-step {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgb(166 196 255 / 0.35);
  border-radius: 999px;
  color: #bbd1ff;
  font-size: .73rem;
}
body[data-page="home"] .home-resource-card h3 {
  margin: 25px 0 14px;
  color: #fff;
  font-size: clamp(1.85rem, 2.65vw, 2.5rem);
  font-weight: 400 !important;
  line-height: 1.18;
}
body[data-page="home"] .home-resource-card p {
  max-width: 22em;
  margin: 0;
  color: #bfcee9;
  line-height: 1.7;
}
body[data-page="home"] .home-resource-card-copy a {
  display: inline-flex;
  gap: 8px;
  margin-top: 26px;
  color: #d9e7ff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
body[data-page="home"] .home-resource-card-copy a svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  align-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-page="home"] .home-resource-card figure {
  width: min(100%, 300px);
  height: 310px;
  justify-self: end;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgb(221 232 255 / 0.27);
  border-radius: 17px;
  background: rgb(255 255 255 / 0.13);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.22);
  transform: rotate(4deg);
}
body[data-page="home"] .home-resource-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: contain;
  object-position: center;
  background: #f7f8fc;
}
body[data-page="home"] .home-resource-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 42px;
  margin-top: 25px;
  color: #afc4ef;
  font-size: .75rem;
}
body[data-page="home"] .home-resource-controls button {
  flex: 0 0 auto;
  min-width: 39px;
  height: 39px;
  padding: 0 10px;
  border: 1px solid rgb(166 196 255 / 0.35);
  border-radius: 999px;
  color: #dbe7ff;
  background: rgb(18 37 75 / 0.7);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
body[data-page="home"] .home-resource-controls button[hidden] { display: none; }
body[data-page="home"] .home-resource-progress {
  display: block;
  flex: 0 0 105px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(191 210 250 / 0.2);
}
body[data-page="home"] .home-resource-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #79baff, #d1e8ff);
}
body[data-page="home"] .home-resource-carousel.is-playing .home-resource-progress i {
  animation: homeDemoFill var(--resource-cycle, 4200ms) linear forwards;
}
body[data-page="home"] .home-resource-carousel :is(a, button):focus-visible { outline: 2px solid #d3e4ff; outline-offset: 3px; }

/* Tools: large real product preview with selectable work cards. */
html[data-theme] body[data-page="home"] .home-tools {
  background:
    radial-gradient(ellipse 40% 30% at 10% 100%, rgb(195 215 255 / 0.23), transparent 74%),
    #fff;
}
body[data-page="home"] .home-tools .home-section-kicker { color: #6178bc; }
body[data-page="home"] .home-tools-layout {
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  gap: 22px;
}
body[data-page="home"] .home-tools-visual {
  min-height: 540px;
  padding: 15px;
  border-color: rgb(91 113 174 / 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, #f5f7ff, #e9efff);
  box-shadow: 0 25px 70px rgb(59 85 149 / 0.12);
}
body[data-page="home"] .home-tool-image { inset: 15px; overflow: hidden; border-radius: 17px; }
body[data-page="home"] .home-tool-image img {
  object-fit: contain;
  object-position: center;
  background: var(--color-paper-soft);
}
body[data-page="home"] .home-tool-image figcaption {
  right: 18px;
  bottom: 18px;
  left: 18px;
  min-height: 65px;
  padding: 14px 17px;
  border: 1px solid rgb(91 113 174 / 0.16);
  border-radius: 13px;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
}
body[data-page="home"] .home-tool-list {
  display: grid;
  gap: 13px;
  border: 0;
}
body[data-page="home"] .home-tool-row {
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  min-height: 171px;
  padding: 22px 25px;
  border: 1px solid rgb(90 115 184 / 0.16);
  border-radius: 19px;
  background: #f8faff;
  transition: transform 260ms ease, border-color 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}
body[data-page="home"] .home-tool-row.is-active {
  border-color: rgb(91 111 192 / 0.55);
  background: #f1f4ff;
  box-shadow: 0 14px 36px rgb(60 80 162 / 0.1);
}
body[data-page="home"] .home-tool-number {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: #6278c1;
  background: #e7ecff;
  font-size: 0.76rem;
}
body[data-page="home"] .home-tool-row h3 { font-size: 1.45rem; }
body[data-page="home"] .home-tool-row.is-active h3 { color: #445ba8; }

/* Final collaboration chapter, with the image returning as an atmospheric backdrop. */
html[data-theme] body[data-page="home"] .home-collaboration {
  min-height: 570px;
  color: #fff;
  background: #10192f;
}
body[data-page="home"] .home-collaboration-media {
  position: absolute;
  inset: 0;
  display: block;
}
body[data-page="home"] .home-collaboration-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: translateY(var(--home-parallax-y, 0));
  scale: 1.07;
  filter: saturate(0.9);
}
body[data-page="home"] .home-collaboration::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 15 36 / 0.91), rgb(12 27 56 / 0.76) 55%, rgb(17 42 68 / 0.48));
}
body[data-page="home"] .home-collaboration-inner {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 360px;
  border: 0;
}
body[data-page="home"] .home-collaboration .home-section-kicker { color: #bfd5ff; }
body[data-page="home"] .home-collaboration h2 {
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.13;
}
body[data-page="home"] .home-collaboration-inner > div:last-child > p {
  color: #d4def1;
  font-size: 1.08rem;
}
body[data-page="home"] .home-collaboration .button-lime {
  min-height: 53px;
  padding-inline: 24px;
  border-color: #e4ebff;
  border-radius: 999px;
  color: #1d2d58;
  background: #e4ebff;
}
body[data-page="home"] .home-collaboration .home-more-link-light { color: #e4ebff; }

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .home-news-row:hover,
  body[data-page="home"] .home-source-item:hover,
  body[data-page="home"] .home-tool-row:hover {
    transform: translateY(-4px);
    border-color: rgb(94 119 201 / 0.38);
    box-shadow: 0 19px 42px rgb(60 80 142 / 0.12);
  }
  body[data-page="home"] .home-index-row:hover {
    transform: translateY(-6px);
    border-color: rgb(190 212 255 / 0.62);
    box-shadow: 0 20px 54px rgb(34 79 184 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.12);
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .home-resource-card { flex-basis: min(680px, 82vw); }
  body[data-page="home"] .home-news-grid,
  body[data-page="home"] .home-resource-layout,
  body[data-page="home"] .home-tools-layout,
  body[data-page="home"] .home-collaboration-inner { grid-template-columns: minmax(0, 1fr); }
  body[data-page="home"] .home-resource-visual { min-height: 420px; }
  body[data-page="home"] .home-resource-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .home-index-row { min-height: 230px; }
  body[data-page="home"] .home-tools-visual { min-height: 470px; }
  body[data-page="home"] .home-tool-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="home"] .home-tool-row { grid-template-columns: minmax(0, 1fr) 18px; align-content: start; min-height: 218px; }
  body[data-page="home"] .home-tool-number { grid-column: 1 / -1; }
  body[data-page="home"] .home-collaboration-inner { gap: 24px; }
}
@media (max-width: 600px) {
  body[data-page="home"] .home-resource-tabs { justify-content: flex-start; max-width: calc(100% - 16px); }
  body[data-page="home"] .home-resource-tabs button { padding-inline: 13px; font-size: .73rem; }
  body[data-page="home"] .home-resource-track { gap: 12px; }
  body[data-page="home"] .home-resource-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 15px;
    flex-basis: calc(100vw - 62px);
    min-height: 456px;
    padding: 21px;
    border-radius: 18px;
  }
  body[data-page="home"] .home-resource-card h3 { margin: 14px 0 9px; font-size: 1.6rem; }
  body[data-page="home"] .home-resource-card p { font-size: .82rem; }
  body[data-page="home"] .home-resource-card-copy a { margin-top: 13px; }
  body[data-page="home"] .home-resource-card figure { width: min(100%, 230px); height: 210px; justify-self: center; transform: rotate(2deg); }
  body[data-page="home"] .home-resource-controls { gap: 6px; font-size: .67rem; }
  body[data-page="home"] .home-resource-controls button { min-width: 32px; height: 32px; padding-inline: 7px; }
  body[data-page="home"] .home-resource-progress { flex-basis: 36px; }
  body[data-page="home"] .home-showcase-controls { gap: 9px; }
  body[data-page="home"] .home-showcase-arrow { flex: 0 0 38px; width: 38px; height: 38px; }
  body[data-page="home"] .home-showcase-dots { gap: 2px; }
  body[data-page="home"] .home-showcase-dots button { width: 18px; height: 38px; }
  body[data-page="home"] .home-editorial > .container,
  body[data-page="home"] .home-collaboration > .container { width: min(calc(100% - 36px), 1200px); }
  body[data-page="home"] .home-editorial { padding-block: 78px; }
  body[data-page="home"] .home-section-head h2 { font-size: clamp(2.15rem, 8.5vw, 3rem); }
  body[data-page="home"] .home-news .home-section-head { grid-template-columns: 1fr; }
  body[data-page="home"] .home-news-feature { padding: 9px 9px 24px; border-radius: 20px; }
  body[data-page="home"] .home-news-feature-media { height: 230px; border-radius: 14px; }
  body[data-page="home"] .home-news-feature :is(.home-news-meta, h3, p) { margin-inline: 11px; }
  body[data-page="home"] .home-news-row { min-height: 100px; padding: 15px; }
  body[data-page="home"] .home-source-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .home-source-item { min-height: 82px; padding: 12px; }
  body[data-page="home"] .home-source-mark { flex-basis: 30px; height: 30px; font-size: 0.61rem; }
  body[data-page="home"] .home-source-item small { display: none; }
  body[data-page="home"] .home-resource-visual { min-height: 345px; }
  body[data-page="home"] .home-resource-index { gap: 10px; }
  body[data-page="home"] .home-index-row { min-height: 220px; padding: 17px; border-radius: 17px; }
  body[data-page="home"] .home-index-row h3 { font-size: 1.15rem; }
  body[data-page="home"] .home-index-row p { font-size: 0.77rem; }
  body[data-page="home"] .home-tools-visual { min-height: 330px; padding: 8px; border-radius: 20px; }
  body[data-page="home"] .home-tool-image { inset: 8px; }
  body[data-page="home"] .home-tool-list { grid-template-columns: 1fr; }
  body[data-page="home"] .home-tool-row { grid-template-columns: 38px minmax(0, 1fr) 18px; min-height: 125px; padding: 15px 18px; }
  body[data-page="home"] .home-tool-number { grid-column: auto; }
  body[data-page="home"] .home-tool-row h3 { font-size: 1.16rem; }
  html[data-theme] body[data-page="home"] .home-collaboration { min-height: 580px; padding-block: 82px; }
  body[data-page="home"] .home-collaboration-inner { padding: 0; }
  body[data-page="home"] .home-collaboration h2 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  body[data-page="home"] .home-collaboration-inner > div:last-child > p { font-size: 0.96rem; }
}
@media (max-width: 380px) {
  body[data-page="home"] .home-resource-index { grid-template-columns: 1fr; }
  body[data-page="home"] .home-index-row { min-height: 160px; }
  body[data-page="home"] .home-source-item { gap: 7px; }
  body[data-page="home"] .home-source-item .ui-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-resource-card,
  body[data-page="home"] .home-resource-track,
  body[data-page="home"] .home-resource-progress i { animation: none !important; transition: none !important; }
  body[data-page="home"] .home-resource-card.is-before,
  body[data-page="home"] .home-resource-card.is-after { transform: none !important; }
  body[data-page="home"] :is(.home-news-row, .home-source-item, .home-index-row, .home-tool-row, .home-resource-visual img, .home-collaboration-media img) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Touch WebKit can drop clipped image layers when a card returns from a 3D
   transform to its resting plane. Use a flat tree throughout the transition. */
@media (hover: none), (pointer: coarse) {
  body[data-page="home"] .home-resource-window {
    overflow: hidden;
    perspective: none;
  }
  body[data-page="home"] .home-resource-track { transform-style: flat; }
  body[data-page="home"] .home-resource-card.is-active { transform: translateY(0) scale(1); }
  body[data-page="home"] .home-resource-card.is-before { transform: translateY(10px) rotate(-2deg) scale(.94); }
  body[data-page="home"] .home-resource-card.is-after { transform: translateY(10px) rotate(2deg) scale(.94); }
  body[data-page="home"] .home-resource-card figure { transform: none; }
}
