/* Home, after the opening: pieces of the app's own window as images, the grid of what else the app does, and one
   quiet colour down the page. Loaded last, so it settles the type scale of the sections below "Inside Atlas Mind". */
.home-page :is(.pieces, .setup-story, .updates, .home-questions, .cta-band) { --story-heading: clamp(26px, 2.35vw, 34px); }
.home-page :is(.setup-layout h2, .updates-copy h2, .cta-grid h2, .home-questions .faq-title, .pieces-head h2) {
  font-size: var(--story-heading); font-weight: 500; letter-spacing: -.03em; line-height: 1.12;
}
.home-page .tab-copy h3 { max-width: 18ch; font-size: clamp(24px, 2.2vw, 31px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.home-page .tab-copy > p { max-width: 42ch; font-size: 15.5px; line-height: 1.6; }
/* Every tab's panel is as tall as the tallest piece, so changing tab does not move the page under it. */
@media (min-width: 901px) { .home-page .tab-panel:not([hidden]) { min-height: 470px; align-items: start; padding-top: 34px; } }
.home-page .setup-steps summary { font-size: clamp(16px, 1.3vw, 18px); letter-spacing: -.015em; }

/* A piece of the app: a photograph of its own window, on the page's own black, with a hairline round it. */
.app-piece { display: grid; gap: 12px; margin: 0; min-width: 0; }
.app-piece img { width: 100%; height: auto; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.app-piece figcaption { display: flex; align-items: center; gap: 8px; color: #8a8a8a; font-size: 12px; line-height: 1.4; }
.app-piece figcaption::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 0 1px #6a6a6a; }
/* Each piece is shown near the size it has in the app, never stretched to fill its column: the app's own type
   stays close to the page's (Oliver, 20 Nov 2026: an image at its full width is not thereby the right look). */
.home-page .tab-panel .app-piece { justify-self: center; width: 100%; }
.piece-room { max-width: 520px; }
.piece-recall { max-width: 560px; }
.piece-integrations { max-width: 660px; }
.piece-projects { max-width: 600px; }
.piece-projects img:first-of-type { width: min(392px, 62%); }
.piece-recall img { box-shadow: none; }
/* The Room and the delegation are photographed edge to edge on black, so they sit on the page with no frame and
   their edges line up with the words beside or over them. */
:is(.piece-room, .piece-delegation) img { border-radius: 0; box-shadow: none; background: none; }
.piece-projects img { border-radius: 10px; }

/* The grid: two cards a row, the wider one holding the larger piece, turn about. */
.pieces-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.pieces-head h2 { margin: 0; max-width: 20ch; text-wrap: balance; }
.pieces-head p { margin: 0; color: var(--text-body); font-size: 15.5px; line-height: 1.55; }
.pieces-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.piece-card {
  grid-column: span 5; display: grid; align-content: space-between; gap: 26px; min-width: 0;
  padding: clamp(20px, 2.1vw, 28px); border-radius: 18px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: box-shadow 200ms ease-out;
}
.piece-card:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.piece-wide { grid-column: span 7; }
.piece-copy { display: grid; gap: 10px; justify-items: start; }
.piece-kind { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #9a9a9a; font-size: 12.5px; letter-spacing: .01em; }
.piece-copy h3 { margin: 0; max-width: 22ch; font-size: clamp(19px, 1.55vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.piece-copy > p:not(.piece-kind) { margin: 0; max-width: 46ch; color: var(--text-body); font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }
.piece-copy .story-link { font-size: 13.5px; }
.sym { flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.piece-foot { display: grid; gap: 18px; }
.piece-marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.piece-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .08); color: #a6a6a6; font-size: 13px; }
.piece-points li { display: flex; align-items: center; gap: 7px; }
.piece-marks li { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #131313; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.piece-marks img { width: 28px; height: 28px; object-fit: contain; }
.pieces-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.pieces-notes li { display: flex; gap: 12px; padding: 18px 4px 0; border-top: 1px solid rgba(255, 255, 255, .09); color: #9a9a9a; }
.pieces-notes .sym { margin-top: 2px; }
.pieces-notes strong { display: block; color: var(--text); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.pieces-notes span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; }

/* The questions keep their tiles and lose their colours: one ground down the page. */
.home-questions > .wrap { width: min(var(--page-width), 100% - 2 * var(--gutter)); }
.home-questions .faq-title { width: auto; margin-inline: 0; }
/* Four even columns of tiles. An opened answer lengthens its own column and the tiles under it move down; the
   page's script still measures each tile's height for that, and its own widths give way to the columns here. */
.home-questions .faq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; }
.home-questions .faq-grid[data-packed] { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 8px; }
.home-questions .faq-item, .home-questions .faq-item[open] { width: 100%; min-width: 0; grid-column-end: span 1 !important; }
.home-questions .faq-item > summary { min-height: 46px; }
.home-questions .faq-item, .home-questions .faq-item[data-tone] {
  --tile-bg: #111112; --tile-ink: #ededed; --tile-detail: #bdbdbd;
  border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.home-questions .faq-item:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.home-questions .faq-item[open] { --tile-bg: #161617; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.home-questions .faq-item > summary:focus-visible { border-radius: 9px; }

/* Each part comes up a little as it is first seen (home-reveal.js marks the page; without it nothing is hidden). */
.reveal-on [data-reveal] { opacity: 0; translate: 0 14px; transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), translate 700ms cubic-bezier(.16, 1, .3, 1); }
.reveal-on [data-reveal].is-seen { opacity: 1; translate: 0; }
.reveal-on .pieces-grid > :nth-child(even) { transition-delay: 90ms; }

@media (max-width: 900px) {
  .home-questions .faq-grid, .home-questions .faq-grid[data-packed] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece-card, .piece-wide { grid-column: 1 / -1; }
  .pieces-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .home-questions .faq-grid, .home-questions .faq-grid[data-packed] { grid-template-columns: minmax(0, 1fr); }
  .pieces-notes { grid-template-columns: minmax(0, 1fr); }
  .piece-marks li { width: 48px; height: 48px; border-radius: 13px; }
  .app-piece img { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1; translate: 0; transition: none; }
  .piece-card { transition: none; }
}
