/* Landing page styles for digitaleslernen.org. Shared platform tokens remain
 * in site.css; this file is loaded only by the homepage template.
 */

/* Home palette is an alias layer onto the brand tokens in site.css
 * (single source of truth, theme-aware there). --home-marine-55 is the
 * muted-text role and points at the opaque AA-safe mix; --home-marine-35
 * is decorative small print and maps to the faint mix.
 */
:root {
  --home-mustard: var(--brand-mustard);
  --home-mustard-tint: var(--brand-mustard-tint);
  --home-mustard-soft: var(--brand-mustard-soft);
  --home-marine: var(--brand-marine);
  --home-marine-08: var(--brand-marine-08);
  --home-marine-16: var(--brand-marine-16);
  --home-marine-35: var(--brand-text-faint);
  --home-marine-55: var(--brand-text-muted);
  --home-ink: var(--brand-ink);
  --home-rule: var(--brand-rule);
  --home-surface: var(--brand-surface);
  --home-surface-soft: var(--brand-surface-soft);
  --home-max: var(--layout-max-width);
  --home-font: var(--font-sans);
  --home-mono: var(--font-mono);
  --home-grid-font: "DCH Basisschrift", "Comic Sans MS", "Trebuchet MS", cursive;
  --home-cloud-font: Arial, Helvetica, sans-serif;
  --home-card-border-width: 1px;
  --home-card-hairline-width: 0.75px;
}

@font-face {
  font-family: "DCH Basisschrift";
  src: url("/static/fonts/DCH_Basisschrift.ttf") format("truetype");
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

.home-page {
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--home-surface) 0%, var(--home-mustard-tint) 42%, var(--home-surface) 100%);
  color: var(--home-ink);
  font-family: var(--home-font);
  font-feature-settings: "ss01", "ss02";
  text-rendering: optimizeLegibility;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-page ::selection {
  background: var(--home-mustard);
  color: var(--home-marine);
}

.home-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.home-symbol-grid {
  --grid-size: 32px;
  --grid-cols: 1;
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-auto-rows: var(--grid-size);
  grid-template-columns: repeat(var(--grid-cols), var(--grid-size));
  pointer-events: none;
  overflow: hidden;
  color: var(--home-marine);
  opacity: 1;
  contain: strict;
}

.home-symbol-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--home-marine-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-marine-08) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.18;
}

.home-grid-cell {
  display: grid;
  place-items: center;
  width: var(--grid-size);
  height: var(--grid-size);
  font-family: var(--home-grid-font);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  opacity: min(0.86, calc(var(--ambient-opacity, 0) + var(--cursor-opacity, 0)));
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) scale(var(--symbol-scale, 1));
  transition:
    opacity 520ms ease,
    transform 1600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.home-symbol-grid.is-reduced .home-grid-cell {
  opacity: var(--static-opacity, 0);
  transform: none;
  transition: none;
}

.home-shell {
  position: relative;
  z-index: 1;
}

.home-wrap {
  width: 100%;
  max-width: var(--home-max);
  margin-inline: auto;
}

.home-top {
  width: 100%;
}

.home-wrap {
  padding-inline: 2rem;
}

.home-top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.75rem 2rem 0;
}

/* Homepage variant: the brand anchors the top-left corner while the
 * settings trigger and language switcher keep the right edge. */
.home-top--split {
  justify-content: space-between;
}

.home-chrome {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.75rem;
}

.home-link {
  display: grid;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border: 1px solid var(--home-rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-surface) 72%, transparent);
  color: var(--home-marine-55);
}

.home-link:hover,
.home-link:focus-visible {
  border-color: var(--home-marine-35);
  color: var(--home-marine);
  text-decoration: none;
}

.home-link__icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.home-chrome__brand-stack {
  --home-brand-indent: 0.92rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--home-mono);
  font-size: 1.23rem;
  font-weight: 750;
  color: var(--home-marine);
}

.home-brand__mark {
  width: 0.42rem;
  height: 0.42rem;
  margin-inline-end: 0.5rem;
  background: var(--home-mustard);
  border: 1px solid var(--home-marine);
}

.home-identity-link {
  margin-inline-start: var(--home-brand-indent);
  font-family: var(--home-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--home-marine-55);
}

.home-identity-link:hover,
.home-identity-link:focus-visible {
  color: var(--home-marine);
}

/* Primary navigation, grouped with the chrome on the right. The auto margin
 * takes all the free space in the header, which leaves the brand alone on the
 * left and pulls the nav up against the settings trigger. It stays a sibling of
 * .home-chrome rather than moving inside it so the tab order remains brand,
 * nav, settings, language.
 *
 * Set in the same mono face as the brand and the language switcher so the
 * header reads as one strip rather than three unrelated controls. */
.home-nav {
  margin-inline-start: auto;
}

/* Matches the 2rem settings trigger rather than the taller brand, so the
 * labels sit on the icon's centre line now that they are neighbours. */
.home-nav > ul {
  display: flex;
  align-items: center;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  list-style: none;
  font-family: var(--home-mono);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
}

.home-nav a {
  color: var(--home-marine-55);
}

.home-nav a:hover,
.home-nav a:focus-visible {
  color: var(--home-marine);
}

.home-lang {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-family: var(--home-mono);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
}

.home-lang a,
.home-lang span {
  color: var(--home-marine-55);
}

.home-lang a[aria-current="page"] {
  color: var(--home-marine);
  font-weight: 900;
}

.home-lang span {
  cursor: default;
}

.home-hero {
  padding-block-start: 4rem;
}

.home-ideas {
  position: relative;
  max-width: 61.25rem;
  height: 15rem;
  margin: 0 auto 3rem;
}

.home-ideas__item {
  position: absolute;
  color: var(--home-ink);
  white-space: nowrap;
  cursor: default;
  transition:
    color 180ms ease,
    transform 260ms ease;
}

.home-ideas__item:hover {
  color: var(--home-marine);
  transform: translateY(-2px);
}

.home-ideas__item--1 { left: 4%; top: 8%; font-size: 0.88rem; color: var(--home-marine-55); }
.home-ideas__item--2 { left: 28%; top: 22%; font-size: 1.62rem; font-weight: 650; }
.home-ideas__item--3 { left: 56%; top: 6%; font-size: 1rem; font-weight: 550; }
.home-ideas__item--4 { left: 79%; top: 18%; font-size: 1.12rem; font-weight: 550; }
.home-ideas__item--5 { left: 12%; top: 50%; font-size: 0.82rem; color: var(--home-marine-55); }
.home-ideas__item--6 { left: 42%; top: 56%; font-size: 1.12rem; font-weight: 550; }
.home-ideas__item--7 { left: 68%; top: 48%; font-size: 1.75rem; font-weight: 750; color: var(--home-marine); }
.home-ideas__item--8 { left: 4%; top: 80%; font-size: 0.88rem; color: var(--home-marine-55); }
.home-ideas__item--9 { left: 26%; top: 86%; font-size: 1.5rem; font-weight: 650; }
.home-ideas__item--10 { left: 60%; top: 84%; font-size: 1rem; font-weight: 550; }
.home-ideas__item--11 { left: 82%; top: 78%; font-size: 0.82rem; color: var(--home-marine-55); }

.home-tagline {
  max-width: 68rem;
  margin: 2rem 0 0;
  font-size: 5.25rem;
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: 0;
}

.home-tagline em {
  position: relative;
  display: inline-block;
  color: var(--home-marine);
  font-style: normal;
}

.home-tagline em::after {
  content: "";
  display: block;
  width: 64%;
  height: 0.36rem;
  margin-block-start: -0.62rem;
  background: var(--home-mustard);
}

.home-section {
  padding-block-start: 7.5rem;
}

.home-time__panel {
  position: relative;
  z-index: 2;
  margin-block-start: 2.5rem;
  padding: 3.5rem 3.5rem 4rem;
  background: var(--home-marine);
  color: #fff;
  isolation: isolate;
}

.home-time__lead {
  max-width: 48.75rem;
  margin: 0 0 3.5rem;
  font-size: 2.1rem;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: 0;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.home-step h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0;
}

.home-step p {
  margin: 0;
  /* These used to sit on the dark .home-time__panel and were white. The v7
   * Studio layout drops that panel, so white text became invisible on the
   * light page. Muted ink instead. */
  color: var(--home-marine-55);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-step__number {
  display: block;
  color: var(--home-marine-55);
  font-family: var(--home-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.home-step__rule {
  width: 3.5rem;
  height: 2px;
  margin-block-end: 1rem;
  background: var(--home-marine);
}

.home-section-title {
  max-width: 56rem;
  margin: 1.5rem 0 2rem;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.home-lab-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block-start: 1px solid var(--home-rule);
  border-inline-start: 1px solid var(--home-rule);
  background: var(--home-surface);
  isolation: isolate;
}

.home-tile {
  position: relative;
  display: flex;
  min-height: 16.25rem;
  padding: 2.25rem 2rem 2.5rem;
  flex-direction: column;
  justify-content: space-between;
  border-block-end: 1px solid var(--home-rule);
  border-inline-end: 1px solid var(--home-rule);
  background: var(--home-surface);
  color: var(--home-ink);
  transition:
    background-color 180ms ease,
    color 180ms ease;
  isolation: isolate;
}

a.home-tile:hover,
a.home-tile:focus-visible {
  background: var(--home-marine-08);
}

.home-tile--feature {
  background: var(--home-mustard);
}

.home-tile--feature:hover {
  background: var(--home-marine-08);
}

.home-tile--dark {
  background: var(--home-surface);
  color: var(--home-ink);
}

a.home-tile--dark:hover,
a.home-tile--dark:focus-visible {
  background: var(--home-marine-08);
}

.home-tile__number {
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.home-tile--dark .home-tile__number {
  color: var(--home-marine);
}

.home-tile__arrow {
  position: absolute;
  inset-block-start: 2.1rem;
  inset-inline-end: 2rem;
  color: var(--home-marine);
  font-size: 1.18rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.home-tile--dark .home-tile__arrow {
  color: var(--home-marine);
}

a.home-tile:hover .home-tile__arrow,
a.home-tile:focus-visible .home-tile__arrow {
  transform: translate(3px, -3px);
}

.home-tile h3 {
  margin: 0;
  font-size: 1.82rem;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: 0;
}

.home-tile p {
  max-width: 32ch;
  margin: 0.62rem 0 0;
  color: var(--home-marine-55);
  font-size: 0.84rem;
  line-height: 1.55;
}

.home-tile--feature p {
  color: color-mix(in srgb, var(--home-marine) 80%, var(--home-mustard));
}

.home-tile--dark p {
  color: var(--home-marine-55);
}

.home-qa {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--home-rule);
  background: var(--home-surface);
  isolation: isolate;
}

.home-qa li {
  border-block-end: 1px solid var(--home-rule);
  background: var(--home-surface);
}

.home-qa details {
  padding-block: 1.75rem;
}

.home-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--home-ink);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: 0;
  list-style: none;
  transition: color 180ms ease;
}

.home-qa summary::-webkit-details-marker {
  display: none;
}

.home-qa summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.home-qa summary:hover,
.home-qa details[open] summary {
  color: var(--home-marine);
}

.home-qa details[open] summary::after {
  transform: rotate(45deg);
}

.home-qa p {
  max-width: 70ch;
  margin: 1.12rem 0 0;
  color: var(--home-marine-55);
  font-size: 1rem;
  line-height: 1.65;
}

.home-foot {
  margin-block-start: 8.75rem;
  padding-block: 3rem 2.5rem;
  border-block-start: 1px solid var(--home-rule);
}

.home-foot__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--home-marine-55);
  font-family: var(--home-mono);
  font-size: 0.75rem;
}

.home-foot__row strong,
.home-foot__row a:hover,
.home-foot__row a:focus-visible {
  color: var(--home-marine);
}

.home-foot__links {
  display: flex;
  gap: 0.8rem;
}

.home-foot__version {
  color: var(--home-marine-35);
  white-space: nowrap;
}

.home-foot__links a + a::before {
  content: "/";
  margin-inline-end: 0.8rem;
  color: var(--home-marine-55);
}

.home-page :focus-visible {
  outline-color: var(--home-marine);
}

.free-community {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.free-community__top {
  width: 100%;
  padding: 1.75rem 2rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 1.25rem;
}

a.free-community__back {
  margin-inline-end: auto;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--home-rule);
  color: var(--home-marine);
  font-size: 1.45rem;
  line-height: 1;
}

.free-community__hero {
  width: min(54rem, calc(100% - 3rem));
  margin: 5.5rem auto 0;
  text-align: center;
}

.free-community__title {
  margin: 0;
  color: var(--home-ink);
  font-size: 3.75rem;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

.free-community__lead {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: var(--home-marine-55);
  font-size: 1.05rem;
  line-height: 1.65;
}

.free-community__notice {
  width: fit-content;
  max-width: 100%;
  margin: 1.75rem auto 0;
  padding: 0.78rem 1rem;
  border: 1px solid color-mix(in srgb, var(--home-marine) 20%, transparent);
  background: color-mix(in srgb, var(--home-mustard) 46%, transparent);
  color: var(--home-marine);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Spam honeypot: parked offscreen instead of display:none so naive bots
   still treat the field as fillable while humans never encounter it. */
.free-community__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.free-community__composer {
  margin-block-start: 2.75rem;
  padding: 1.45rem;
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1.5rem 5rem var(--home-marine-08);
  text-align: start;
}

.free-community__composer textarea {
  width: 100%;
  min-height: 8.5rem;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  font: 500 1.1rem/1.55 var(--home-font);
}

.free-community__composer textarea::placeholder,
.free-community__handle input::placeholder {
  color: color-mix(in srgb, var(--home-ink) 50%, transparent);
}

.free-community__composer-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-block-start: 1rem;
}

.free-community__handle {
  flex: 1 1 auto;
  display: grid;
  gap: 0.35rem;
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.72rem;
}

.free-community__handle input {
  min-height: 2.75rem;
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.7);
  color: var(--home-ink);
  font: 500 0.95rem/1.2 var(--home-font);
  padding: 0 0.85rem;
}

.free-community__submit {
  flex: 0 0 auto;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid var(--home-marine);
  background: var(--home-marine);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.free-community__error {
  margin: 0.6rem 0 0;
  color: var(--color-danger);
  font-size: 0.86rem;
  line-height: 1.4;
}

.free-community__modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  padding: 3rem 1.5rem;
  background: color-mix(in srgb, var(--home-ink) 34%, transparent);
}

.free-community__modal-panel {
  width: min(50rem, 100%);
  border: 1px solid var(--home-rule);
  background: var(--home-surface);
  color: var(--home-ink);
  box-shadow: 0 2rem 6rem color-mix(in srgb, var(--home-marine) 22%, transparent);
  padding: 1.5rem;
}

.free-community__modal-panel h2 {
  margin: 0;
  color: var(--home-marine);
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.free-community__modal-lead {
  margin: 0.8rem 0 1.25rem;
  color: var(--home-marine-55);
  font-size: 0.98rem;
  line-height: 1.55;
}

.free-community__context-form {
  display: grid;
  gap: 0.9rem;
}

.free-community__question {
  border-block-start: 1px solid var(--home-rule);
  padding-block-start: 0.9rem;
}

.free-community__question header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.free-community__question h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.free-community__question header span {
  color: var(--home-marine-55);
  font-family: var(--home-mono);
  font-size: 0.68rem;
}

.free-community__question p {
  margin: 0.35rem 0 0;
  color: var(--home-marine-55);
  font-size: 0.86rem;
  line-height: 1.45;
}

.free-community__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}

.free-community__choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.68);
  color: var(--home-ink);
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.45rem 0.7rem;
}

.free-community__choices input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--home-marine);
}

.free-community__question textarea {
  width: 100%;
  min-height: 6rem;
  margin-block-start: 0.75rem;
  border: 1px solid var(--home-rule);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--home-ink);
  font: 500 0.95rem/1.45 var(--home-font);
}

.free-community__context-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-block-start: 1px solid var(--home-rule);
  padding-block-start: 1rem;
}

.free-community__context-actions a {
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.74rem;
}

.free-community__samples {
  margin-block-start: 1.35rem;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.free-community__samples p {
  margin: 0;
  color: var(--home-marine-55);
  font-family: var(--home-mono);
  font-size: 0.75rem;
}

.free-community__samples div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.free-community__samples button {
  min-height: 2.55rem;
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.52);
  color: var(--home-ink);
  cursor: pointer;
  font: 500 0.9rem/1.1 var(--home-font);
  padding: 0 0.85rem;
}

.free-community__apps {
  width: 100%;
  margin-block-start: auto;
  padding-block: 7rem 2.5rem;
  overflow: hidden;
}

.free-community__apps h2 {
  width: min(var(--home-max), calc(100% - 4rem));
  margin-inline: auto;
}

.free-community__apps h2 {
  margin-block: 1rem 1.75rem;
  color: var(--home-marine);
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.free-community__carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  border-block: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.18);
  /* The auto-advance in free-community.js drives scrollLeft directly (and
     is itself gated on prefers-reduced-motion), so the native scrollbar
     stays hidden to preserve the original marquee look; keyboard/touch/
     trackpad scrolling still works without it. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.free-community__carousel::-webkit-scrollbar {
  display: none;
}

.free-community__track {
  display: flex;
  width: max-content;
}

a.free-community__app {
  display: grid;
  min-width: 13rem;
  min-height: 5.25rem;
  place-items: center;
  border-inline-end: 1px solid var(--home-rule);
  color: var(--home-marine-55);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.15;
  padding: 0 1.2rem;
  text-align: center;
}

.apps-catalog {
  min-height: 100vh;
  padding-block-end: 5rem;
}

.apps-catalog__top {
  width: 100%;
  padding: 1.75rem 2rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 1.25rem;
}

.apps-catalog__back {
  margin-inline-end: auto;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--home-rule);
  color: var(--home-marine);
  font-size: 1.45rem;
  line-height: 1;
}

.apps-catalog__hero {
  width: 100%;
  max-width: var(--home-max);
  margin: 3.5rem auto 0;
  padding-inline: 2rem;
  text-align: start;
}

.apps-catalog__title {
  margin: 0;
  color: var(--home-ink);
  font-size: 3.2rem;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

.apps-catalog__lead {
  max-width: 45rem;
  margin: 1.25rem 0 0;
  color: var(--home-marine-55);
  font-size: 1.05rem;
  line-height: 1.65;
}

.apps-catalog__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 16rem);
  gap: 1rem;
  margin-block-start: 2rem;
  padding: 1rem;
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1rem 3rem color-mix(in srgb, var(--home-marine) 7%, transparent);
  text-align: start;
}

.apps-catalog__filters label {
  display: grid;
  gap: 0.4rem;
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.72rem;
}

.apps-catalog__filters input,
.apps-catalog__filters select {
  min-height: 3rem;
  border: 1px solid var(--home-rule);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--home-ink);
  font: 500 0.98rem/1.2 var(--home-font);
}

.apps-catalog__workspace {
  width: min(70rem, calc(100% - 4rem));
  margin: 3.25rem auto 0;
}

.apps-catalog__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border-block-end: 1px solid var(--home-rule);
}

.apps-catalog__tab {
  min-width: 0;
  min-height: 3.1rem;
  border: 1px solid var(--home-rule);
  border-block-end: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.48);
  color: var(--home-marine-55);
  cursor: pointer;
  font-family: var(--home-mono);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.15;
  padding: 0.55rem 0.75rem;
}

.apps-catalog__tab[aria-selected="true"] {
  background: var(--home-marine);
  border-color: var(--home-marine);
  color: #fff;
}

.apps-catalog__tab:hover,
.apps-catalog__tab:focus-visible {
  border-color: var(--home-marine);
  color: var(--home-ink);
}

.apps-catalog__tab[aria-selected="true"]:hover,
.apps-catalog__tab[aria-selected="true"]:focus-visible {
  color: #fff;
}

.apps-catalog__panel {
  padding-block-start: 1.35rem;
}

.apps-catalog__panel[hidden] {
  display: none;
}

.apps-catalog__rows {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps-catalog__row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  gap: 1.35rem;
  align-items: center;
  min-height: 7.25rem;
  padding: 1.05rem 1.2rem 1.05rem 0;
  border: 1px solid var(--home-marine-08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0.9rem 2.4rem color-mix(in srgb, var(--home-marine) 7%, transparent);
}

.apps-catalog__row[hidden] {
  display: none;
}

.apps-catalog__row-index {
  justify-self: start;
  display: grid;
  width: 3.85rem;
  height: 3.85rem;
  place-items: center;
  border: 1px solid var(--home-marine-16);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--home-mustard) 95%, transparent), color-mix(in srgb, var(--home-mustard-soft) 90%, transparent));
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-0.65rem);
  box-shadow: 0 0.65rem 1.4rem color-mix(in srgb, var(--home-marine) 9%, transparent);
}

.apps-catalog__row-title {
  display: inline-block;
  color: var(--home-ink);
  text-decoration: none;
}

.apps-catalog__row-title h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
}

.apps-catalog__row-title:hover,
.apps-catalog__row-title:focus-visible {
  color: var(--home-marine);
}

.apps-catalog__row-desc {
  max-width: 42rem;
  margin: 0.45rem 0 0;
  color: var(--home-marine-55);
  font-size: 0.94rem;
  line-height: 1.45;
}

.apps-catalog__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: 0.75rem;
}

.apps-catalog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps-catalog__chips li {
  min-height: 1.65rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.52);
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.68rem;
  line-height: 1;
  padding: 0 0.55rem;
}

.apps-catalog__chips--target li {
  border-color: var(--brand-marine-24);
  background: var(--home-marine);
  color: #fff;
}

.apps-catalog__chips--target li,
.home-time__panel,
.home-time__panel h2,
.home-time__panel h3 {
  color: #fff;
}

.apps-catalog__chips--tags li {
  background: color-mix(in srgb, var(--home-mustard) 30%, transparent);
  color: var(--home-ink);
}

.apps-catalog__chips--audience li {
  background: rgba(255, 255, 255, 0.72);
  color: var(--home-marine-55);
}

.apps-catalog__actions {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.apps-catalog__like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid color-mix(in srgb, var(--home-marine) 12%, transparent);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--home-marine-55);
  font-family: var(--home-mono);
  font-size: 0.68rem;
  font-weight: 650;
}

.home-page .apps-catalog__launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 2rem;
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.home-page .apps-catalog__launch:hover,
.home-page .apps-catalog__launch:focus-visible {
  background: transparent;
  color: var(--home-ink);
  text-decoration: none;
}

.apps-catalog__empty {
  margin: 0;
  padding: 2.25rem 0;
  border-block: 1px solid var(--home-rule);
  color: var(--home-marine-55);
  text-align: center;
}

.app-detail-page {
  min-height: 100vh;
  padding-block-end: 5rem;
}

.app-detail {
  width: min(70rem, calc(100% - 4rem));
  margin: 3.5rem auto 0;
}

.app-detail__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 29rem);
  gap: 2.5rem;
  align-items: center;
  padding-block: 1.75rem 2.25rem;
  border-block-end: 1px solid var(--home-rule);
}

.app-detail__carousel {
  position: absolute;
  z-index: 3;
  inset-block-start: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-marine);
  box-shadow: none;
  font-family: var(--home-mono);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.42;
  text-decoration: none;
  transform: translateY(-50%);
  transition: color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.app-detail__carousel[hidden] {
  display: none;
}

.app-detail__carousel:hover,
.app-detail__carousel:focus-visible {
  background: transparent;
  color: var(--home-marine);
  box-shadow: none;
  opacity: 0.85;
  text-decoration: none;
  transform: translateY(calc(-50% - 2px));
}

.app-detail__carousel--previous {
  inset-inline-start: -4.25rem;
}

.app-detail__carousel--next {
  inset-inline-end: -4.25rem;
}

.app-detail__hero--without-media {
  grid-template-columns: minmax(0, 1fr);
}

.app-detail__copy {
  max-width: 50rem;
}

.app-detail__copy h1 {
  margin: 0;
  color: var(--home-ink);
  font-size: 3.2rem;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

.app-detail__short {
  margin: 1.1rem 0 0;
  color: var(--home-marine-55);
  font-size: 1.05rem;
  line-height: 1.65;
}

.app-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-block-start: 2rem;
}

.home-page .app-detail__launch {
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--home-marine);
  border-radius: 12px;
  background: var(--home-mustard);
  color: var(--home-ink);
  font-family: var(--home-font);
  font-size: 1rem;
  font-weight: 640;
  box-shadow: none;
}

.home-page .app-detail__launch:hover,
.home-page .app-detail__launch:focus-visible {
  border-color: var(--home-marine);
  background: var(--home-mustard-soft);
  color: var(--home-ink);
  text-decoration: none;
}

.home-page .app-detail__launch:focus-visible {
  outline: 3px solid var(--home-mustard);
  outline-offset: 3px;
}

.app-detail__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-block-start: 2.5rem;
  border-inline-start: var(--home-card-hairline-width) solid var(--home-rule);
}

.app-detail__media {
  margin: 0;
  border: 1px solid var(--home-marine-08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0.9rem 2.4rem color-mix(in srgb, var(--home-marine) 7%, transparent);
  overflow: hidden;
}

.app-detail__thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.app-detail__description,
.app-detail__features,
.app-detail__target,
.app-detail__focus {
  margin: 0;
  padding: 1.5rem;
  border-block-end: var(--home-card-hairline-width) solid var(--home-rule);
  border-inline-end: var(--home-card-hairline-width) solid var(--home-rule);
  color: var(--home-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.app-detail__focus {
  display: flex;
  flex-direction: column;
}

.app-detail__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.app-detail__features ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-detail__features li {
  position: relative;
  padding-inline-start: 1.25rem;
}

.app-detail__features li::before {
  position: absolute;
  inset: 0.15rem auto auto 0;
  color: var(--home-marine);
  content: "↗";
  font-family: var(--home-mono);
  font-weight: 750;
}

.app-detail__description p:last-child {
  margin-block-end: 0;
}

.app-detail__tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  justify-content: center;
  flex: 1;
  gap: 0.45rem 1rem;
  min-height: 7.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.15;
  text-align: center;
}

.app-detail__tag-cloud li {
  color: var(--ink-navy);
  font-family: var(--home-mono);
  font-size: 1rem;
  font-weight: 650;
}

.app-detail__tag-cloud li:nth-child(8n + 1) {
  color: var(--ink-peach);
  font-size: 1.65rem;
  font-weight: 780;
}

.app-detail__tag-cloud li:nth-child(8n + 2) {
  color: var(--ink-sky);
  font-size: 1.15rem;
}

.app-detail__tag-cloud li:nth-child(8n + 3) {
  color: var(--ink-mint);
  font-size: 1.4rem;
  font-weight: 750;
}

.app-detail__tag-cloud li:nth-child(8n + 4) {
  color: var(--ink-lilac);
  font-size: 0.95rem;
}

.app-detail__tag-cloud li:nth-child(8n + 5) {
  color: var(--ink-rose);
  font-size: 1.3rem;
  font-weight: 720;
}

.app-detail__tag-cloud li:nth-child(8n + 6) {
  color: var(--ink-cyan);
  font-size: 1.05rem;
}

.app-detail__tag-cloud li:nth-child(8n + 7) {
  color: var(--ink-ruby);
  font-size: 1.5rem;
  font-weight: 760;
}

.app-detail__tag-cloud li:nth-child(8n) {
  color: var(--ink-forest);
  font-size: 1.2rem;
}

.app-detail__secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--home-marine);
  border-radius: 12px;
  background: var(--home-surface);
  color: var(--home-ink);
  font-family: var(--home-font);
  font-size: 1rem;
  font-weight: 640;
  text-decoration: none;
}

.app-detail__secondary-link:hover,
.app-detail__secondary-link:focus-visible {
  background: var(--home-marine-08);
  color: var(--home-ink);
  text-decoration: none;
}

.workshop-offer {
  min-height: 100vh;
  padding-block-end: 5rem;
}

.workshop-offer__top {
  width: 100%;
  padding: 1.75rem 2rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 1.25rem;
}

.workshop-offer__back {
  margin-inline-end: auto;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--home-rule);
  color: var(--home-marine);
  font-size: 1.45rem;
  line-height: 1;
}

.workshop-offer__hero,
.workshop-offer__section,
.workshop-offer__contact {
  width: min(var(--home-max), calc(100% - 4rem));
  margin-inline: auto;
}

.workshop-offer__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.78fr);
  gap: 3rem;
  align-items: end;
  margin-block-start: 4rem;
}

.workshop-offer__hero-copy {
  min-width: 0;
}

.workshop-offer__hero h1,
.workshop-offer__section h2,
.workshop-offer__contact h2 {
  margin: 0;
  color: var(--home-ink);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

.workshop-offer__hero h1 {
  max-width: 14ch;
  font-size: 4.25rem;
}

.workshop-offer__lead {
  max-width: 46rem;
  margin: 1.3rem 0 0;
  color: var(--home-marine-55);
  font-size: 1.08rem;
  line-height: 1.65;
}

.workshop-offer__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0;
  margin: 2.2rem 0 0;
  border-block-start: 1px solid var(--home-rule);
  border-inline-start: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.42);
}

.workshop-offer__summary div {
  min-height: 7rem;
  padding: 1rem;
  border-block-end: 1px solid var(--home-rule);
  border-inline-end: 1px solid var(--home-rule);
}

.workshop-offer__summary dt {
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.2;
}

.workshop-offer__summary dd {
  margin: 0.7rem 0 0;
  color: var(--home-ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* .home-page prefix so the white label survives the `.home-page a
 * { color: inherit }` reset (same pattern as .apps-catalog__launch). */
.home-page .workshop-offer__cta {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  margin-block-start: 1.5rem;
  border: 1px solid var(--home-marine);
  background: var(--home-marine);
  color: #fff;
  font-family: var(--home-mono);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  padding: 0 1rem;
}

.home-page .workshop-offer__cta:hover,
.home-page .workshop-offer__cta:focus-visible {
  background: var(--home-ink);
  text-decoration: none;
}

.workshop-offer__hero-photo,
.workshop-offer__photo,
.workshop-offer__testimonial,
.workshop-offer__highlight {
  margin: 0;
}

.workshop-offer__hero-photo {
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1.3rem 3.6rem color-mix(in srgb, var(--home-marine) 10%, transparent);
}

.workshop-offer__hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.workshop-offer__hero-photo figcaption,
.workshop-offer__photo figcaption {
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border-block-start: 1px solid var(--home-rule);
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.workshop-offer__section {
  margin-block-start: 7rem;
}

.workshop-offer__section h2,
.workshop-offer__contact h2 {
  font-size: 2.6rem;
}

.workshop-offer__highlights,
.workshop-offer__testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--home-rule);
  border-inline-start: 1px solid var(--home-rule);
  background: var(--home-surface);
}

.workshop-offer__highlight,
.workshop-offer__testimonial {
  min-height: 13rem;
  padding: 1.4rem;
  border-block-end: 1px solid var(--home-rule);
  border-inline-end: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.64);
}

.workshop-offer__highlight h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: 0;
}

.workshop-offer__highlight p {
  margin: 1rem 0 0;
  color: var(--home-marine-55);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Audience pages reuse the workshop-offer editorial block. The peer cards are
 * the only interactive highlight cells, so they get the same hover lift and a
 * launch glyph as the home tiles do. */
.audience-peer {
  text-decoration: none;
  transition: background 120ms ease;
}

.audience-peer:hover,
.audience-peer:focus-visible {
  background: var(--home-marine-08);
  text-decoration: none;
}

.audience-peer h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.audience-peer h3::after {
  content: "↗";
  color: var(--home-marine);
  font-size: 1rem;
}

.workshop-offer__section-intro {
  max-width: 54rem;
  margin: 1.1rem 0 0;
  color: var(--home-marine-55);
  font-size: 1.02rem;
  line-height: 1.65;
}

.workshop-offer__content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--home-rule);
  border-inline-start: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.44);
}

.workshop-offer__content-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  padding: 1.35rem;
  border-block-end: 1px solid var(--home-rule);
  border-inline-end: 1px solid var(--home-rule);
  background: var(--home-surface);
}

.workshop-offer__content-card h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.workshop-offer__content-card p,
.workshop-offer__content-card li {
  color: var(--home-marine-55);
  font-size: 0.94rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.workshop-offer__content-card p {
  margin: 0.85rem 0 0;
}

.workshop-offer__content-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-inline-start: 1.15rem;
}

.workshop-offer__section-link {
  align-self: flex-start;
  margin-block-start: auto;
  padding-block-start: 1.2rem;
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.workshop-offer__gallery h2 {
  color: var(--home-marine);
}

.workshop-offer__photos {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1rem;
  margin-block-start: 2rem;
}

.workshop-offer__photo {
  border: 1px solid var(--home-rule);
  background: rgba(255, 255, 255, 0.7);
}

.workshop-offer__photo:first-child {
  grid-row: span 2;
}

.workshop-offer__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.workshop-offer__photo:first-child img {
  aspect-ratio: 4 / 5;
}

.workshop-offer__testimonials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workshop-offer__testimonial {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  justify-content: space-between;
}

.workshop-offer__testimonial blockquote {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.26rem;
  font-weight: 550;
  line-height: 1.35;
}

.workshop-offer__testimonial blockquote::before {
  content: "\201c";
  color: var(--home-marine);
}

.workshop-offer__testimonial blockquote::after {
  content: "\201d";
  color: var(--home-marine);
}

.workshop-offer__testimonial figcaption {
  display: grid;
  gap: 0.25rem;
  margin-block-start: 1.5rem;
  color: var(--home-marine-55);
  font-size: 0.9rem;
  line-height: 1.35;
}

.workshop-offer__testimonial strong {
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.78rem;
}

.workshop-offer__contact {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(22rem, 1fr);
  gap: 3rem;
  align-items: start;
  margin-block-start: 7rem;
  padding: 2rem;
  border: 1px solid var(--home-rule);
  background: var(--home-marine);
  color: #fff;
}

.workshop-offer__contact h2 {
  color: #fff;
}

.workshop-offer__contact p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.65;
}

.workshop-offer__form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.workshop-offer__form label {
  display: grid;
  gap: 0.45rem;
}

.workshop-offer__form span {
  color: var(--home-mustard);
  font-family: var(--home-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.workshop-offer__form input,
.workshop-offer__form textarea {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--home-ink);
  font: 500 0.98rem/1.35 var(--home-font);
}

.workshop-offer__form textarea {
  min-height: 9rem;
}

.workshop-offer__form button {
  min-height: 3.1rem;
  border: 1px solid var(--home-mustard);
  border-radius: 0;
  background: var(--home-mustard);
  color: var(--home-marine);
  font-family: var(--home-mono);
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 880px) {
  .home-top,
  .home-wrap {
    padding-inline: 1.5rem;
  }

  .home-hero {
    padding-block-start: 3rem;
  }

  .home-ideas {
    height: 22rem;
  }

  .home-ideas__item {
    font-size: 0.9rem;
  }

  .home-ideas__item--2,
  .home-ideas__item--7,
  .home-ideas__item--9 {
    font-size: 1.18rem;
    font-weight: 650;
  }

  .home-tagline {
    font-size: 3.45rem;
  }

  .home-time__panel {
    padding: 2.25rem 1.75rem 2.5rem;
  }

  .home-time__lead {
    font-size: 1.8rem;
  }

  .home-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-section-title {
    font-size: 1.75rem;
  }

  .home-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-foot__row {
    align-items: flex-start;
    flex-direction: column;
  }

  .free-community__hero {
    margin-block-start: 4rem;
  }

  .free-community__title {
    font-size: 3rem;
  }

  .free-community__apps {
    padding-block-start: 5rem;
  }

  .apps-catalog__hero {
    margin-block-start: 4rem;
  }

  .apps-catalog__title {
    font-size: 3rem;
  }

  .apps-catalog__filters {
    grid-template-columns: 1fr;
  }

  .apps-catalog__row {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    align-items: start;
    padding-inline-end: 1rem;
  }

  .apps-catalog__row-index {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.12rem;
  }

  .apps-catalog__actions {
    grid-column: 2;
    justify-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .app-detail__hero {
    grid-template-columns: 1fr;
  }

  .app-detail__carousel {
    width: 2.75rem;
    height: 2.75rem;
  }

  .app-detail__carousel--previous {
    inset-inline-start: -0.75rem;
  }

  .app-detail__carousel--next {
    inset-inline-end: -0.75rem;
  }

  .app-detail__content {
    grid-template-columns: 1fr;
  }

  .app-detail__copy h1 {
    font-size: 3rem;
  }

  .workshop-offer__hero,
  .workshop-offer__contact {
    grid-template-columns: 1fr;
  }

  .workshop-offer__hero h1 {
    max-width: 100%;
    font-size: 3rem;
  }

  .workshop-offer__summary,
  .workshop-offer__highlights,
  .workshop-offer__content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workshop-offer__photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-top {
    padding: 1.25rem 1.25rem 0;
  }

  /* Three items no longer fit on one line beside the settings trigger and the
   * language switcher. Wrap the nav onto its own full-width row underneath
   * rather than letting the labels shrink or collide. */
  .home-top--split {
    flex-wrap: wrap;
  }

  .home-nav {
    order: 3;
    width: 100%;
    /* Drops the right-alignment: on its own row the labels start at the
     * left edge, under the brand. */
    margin-inline-start: 0;
  }

  .home-nav > ul {
    min-height: 0;
    gap: 1.25rem;
  }

  .home-wrap {
    padding-inline: 1.25rem;
  }

  .home-section {
    padding-block-start: 5rem;
  }

  .home-ideas {
    height: 20rem;
  }

  .home-ideas__item {
    font-size: 0.78rem;
  }

  .home-ideas__item--2,
  .home-ideas__item--7,
  .home-ideas__item--9 {
    font-size: 0.95rem;
  }

  .home-ideas__item--1 { left: 0; top: 4%; }
  .home-ideas__item--2 { left: 20%; top: 18%; }
  .home-ideas__item--3 { left: 58%; top: 2%; }
  .home-ideas__item--4 { left: 64%; top: 30%; }
  .home-ideas__item--5 { left: 0; top: 48%; }
  .home-ideas__item--6 { left: 34%; top: 58%; }
  .home-ideas__item--7 { left: 45%; top: 70%; }
  .home-ideas__item--8 { left: 0; top: 80%; }
  .home-ideas__item--9 { left: 8%; top: 92%; }
  .home-ideas__item--10 { left: 62%; top: 84%; }
  .home-ideas__item--11 { left: 50%; top: 47%; }

  .home-tagline {
    font-size: 2.55rem;
  }

  .home-tagline em::after {
    height: 0.28rem;
    margin-block-start: -0.45rem;
  }

  .home-time__panel {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
  }

  .home-time__lead {
    font-size: 1.55rem;
  }

  .home-section-title {
    font-size: 1.5rem;
  }

  .home-lab-grid {
    grid-template-columns: 1fr;
  }

  .home-tile {
    min-height: 13.5rem;
    padding: 1.75rem 1.5rem 2rem;
  }

  .home-tile__arrow {
    inset-block-start: 1.65rem;
    inset-inline-end: 1.5rem;
  }

  .home-tile h3 {
    font-size: 1.55rem;
  }

  .home-qa summary {
    font-size: 1.18rem;
  }

  .home-foot {
    margin-block-start: 5rem;
  }

  .free-community__top {
    padding: 1.25rem 1.25rem 0;
    gap: 0.5rem;
  }

  .apps-catalog__top {
    padding: 1.25rem 1.25rem 0;
    gap: 0.5rem;
  }

  .workshop-offer__top {
    padding: 1.25rem 1.25rem 0;
    gap: 0.5rem;
  }

  .home-chrome {
    gap: 0.5rem;
  }

  .home-chrome__brand-stack {
    --home-brand-indent: 0.77rem;
  }

  .home-brand__mark {
    margin-inline-end: 0.35rem;
  }

  .free-community__hero {
    width: calc(100% - 2.5rem);
    margin-block-start: 3.5rem;
  }

  .free-community__title {
    font-size: 2.35rem;
  }

  .free-community__lead {
    font-size: 0.96rem;
  }

  .free-community__composer {
    padding: 1.1rem;
  }

  .free-community__composer-row {
    align-items: stretch;
    flex-direction: column;
  }

  .free-community__submit {
    width: 100%;
  }

  .free-community__apps h2 {
    width: calc(100% - 2.5rem);
  }

  .free-community__app {
    min-width: 10.5rem;
    font-size: 0.94rem;
  }

  .apps-catalog__workspace {
    width: calc(100% - 2.5rem);
  }

  .apps-catalog__hero {
    margin-block-start: 3.5rem;
    padding-inline: 1.25rem;
  }

  .apps-catalog__title {
    font-size: 2.35rem;
  }

  .apps-catalog__lead {
    font-size: 0.96rem;
  }

  .apps-catalog__filters {
    margin-block-start: 2rem;
  }

  .apps-catalog__tabs {
    grid-template-columns: 1fr;
    border-block-end: 0;
  }

  .apps-catalog__tab {
    border-block-end: 1px solid var(--home-rule);
  }

  .apps-catalog__row-title h2 {
    font-size: 1.35rem;
  }

  .apps-catalog__row {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .apps-catalog__row-index {
    transform: none;
  }

  .apps-catalog__actions {
    grid-column: auto;
  }

  .apps-catalog__launch {
    width: auto;
  }

  .apps-catalog__like {
    width: 100%;
  }

  .app-detail {
    width: calc(100% - 2.5rem);
    margin-block-start: 3.5rem;
  }

  .app-detail__copy h1 {
    font-size: 2.35rem;
  }

  .app-detail__short {
    font-size: 0.96rem;
  }

  .app-detail__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-detail__launch {
    width: 100%;
    justify-content: center;
  }

  .app-detail__secondary-link {
    width: 100%;
    justify-content: center;
  }

  .workshop-offer__hero,
  .workshop-offer__section,
  .workshop-offer__contact {
    width: calc(100% - 2.5rem);
  }

  .workshop-offer__hero {
    gap: 2rem;
    margin-block-start: 3.5rem;
  }

  .workshop-offer__hero h1,
  .workshop-offer__section h2,
  .workshop-offer__contact h2 {
    font-size: 2.35rem;
  }

  .workshop-offer__lead {
    font-size: 0.96rem;
  }

  .workshop-offer__summary,
  .workshop-offer__highlights,
  .workshop-offer__content-grid,
  .workshop-offer__testimonials,
  .workshop-offer__photos {
    grid-template-columns: 1fr;
  }

  .workshop-offer__summary div {
    min-height: 0;
  }

  .workshop-offer__photo:first-child {
    grid-row: auto;
  }

  .workshop-offer__photo:first-child img {
    aspect-ratio: 4 / 3;
  }

  .workshop-offer__section,
  .workshop-offer__contact {
    margin-block-start: 5rem;
  }

  .workshop-offer__contact {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-ideas__item,
  .home-tile,
  .home-tile__arrow,
  .home-qa summary,
  .home-qa summary::after {
    transition: none;
  }

  .free-community__carousel {
    scroll-behavior: auto;
  }
}

/* ===========================================================================
 * Landing page search: word cloud, search field, results
 * ---------------------------------------------------------------------------
 * Visual direction from homepage-samples/v7-studio.html ("Studio"): a centred
 * flowing cloud, the subtitle beneath it, audiences as tags, the Fabrik as a
 * conveyor of five stations.
 *
 * The pastel accents are additive to the marine/mustard brand rather than a
 * replacement for it. They stay literal hex values instead of joining the
 * generated platform-theme block, because that block is regenerated from
 * web/templates/partials/theme_palette.go by `go generate` and guarded by
 * TestPlatformThemeCSSInSync; adding hand-written entries to it would fail
 * that test on the next regeneration.
 * ======================================================================== */

:root {
  --pastel-lemon: #fdf4c2;
  --pastel-mint: #d7f9e6;
  --pastel-sky: #d8edff;
  --pastel-lilac: #e8dfff;
  --pastel-peach: #ffe6d0;
  --pastel-rose: #ffdcef;
  --pastel-ruby: #ffe0dc;
  --pastel-forest: #ddf3d7;
  --pastel-cyan: #d5f3f8;
  --pastel-navy: #e1e8f6;
  --neon-lemon: #eab308;
  --neon-mint: #2fdd9c;
  --neon-sky: #38bdf8;
  --neon-lilac: #a78bfa;
  --neon-peach: #fb923c;
  --neon-rose: #f472b6;
  --neon-ruby: #ef5a50;
  --neon-forest: #65b84b;
  --neon-cyan: #22b8cf;
  --neon-navy: #6175a8;

  /* Text-safe siblings of the accents above. The neons are fills and fail
   * contrast as body colour on the cream surface; these are the versions the
   * word cloud sets type in. */
  --ink-lemon: #8a6410;
  --ink-mint: #0f766e;
  --ink-sky: #1d4ed8;
  --ink-lilac: #6d28d9;
  --ink-peach: #b45309;
  --ink-rose: #be185d;
  --ink-ruby: #b42318;
  --ink-forest: #287a20;
  --ink-cyan: #087e8b;
  --ink-navy: #273b74;
}

/* --- Hero ---------------------------------------------------------------- */

.home-hero {
  display: grid;
  gap: clamp(1rem, 2.5vh, 1.75rem);
  justify-items: center;
  text-align: center;
  padding-block: clamp(0.75rem, 2vh, 1.5rem) clamp(2rem, 6vw, 4rem);
}

.home-hero__sub {
  display: grid;
  gap: 0.4rem;
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.5;
}

.home-hero__sub strong {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
}

.home-hero__sub em {
  font-style: normal;
  color: var(--home-marine);
}

.home-hero__sub span {
  color: var(--home-marine-55);
}

/* --- Word cloud ---------------------------------------------------------- */

/* Two layouts in one element.
 *
 * Default: a wrapped flex list. This is what the server renders and what a
 * visitor without JavaScript keeps -- readable, in DOM order, fully
 * navigable.
 *
 * Enhanced: home-cloud.js measures each word, finds it a gap along a spiral
 * from the centre, and switches to absolute positioning. That nesting is the
 * thing that makes a word cloud look like one, and no flex or grid layout can
 * express it. */
.home-cloud {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(80vw, 100%);
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: clamp(0.9rem, 2.6vw, 2rem);
  row-gap: 0.35rem;
}

/* Hidden until placed, but only when scripting is on: otherwise the flex list
 * would be seen reflowing into a cloud on every load. The `js` class is set
 * synchronously in the document head, so this never hides content from
 * someone who will not get the enhancement. */
.js .home-cloud { visibility: hidden; }
.js .home-cloud--ready { visibility: visible; }

.home-cloud--placed {
  display: block;
  position: relative;
  width: min(80vw, 100%);
}

.home-cloud--placed > li {
  /* left/top come from home-cloud.js. */
  white-space: nowrap;
}

/* Two classes deep on purpose. home.css sets `.home-page a { color: inherit }`
 * at specificity (0,2,0), which outranks a lone .home-cloud__word and left
 * every word the default ink. Do not flatten this selector. */
.home-cloud .home-cloud__word {
  display: inline-block;
  text-decoration: none;
  /* The reference cloud uses the neutral, compact proportions of a classic
   * grotesk. Keep this local to the cloud so the site's own type system still
   * carries the interface and editorial content. */
  font-family: var(--home-cloud-font);
  font-feature-settings: normal;
  /* Colour carries the category, not a highlighter behind the text. The
   * underline-ish gradient this replaces read as marked-up prose; ink colour
   * is what makes a word cloud look like one. */
  color: var(--cloud-ink, var(--home-marine));
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
  border-radius: 10px;
  padding: 0 0.18em;
  transition: background-color 180ms ease, opacity 180ms ease;
}

/* Fill on hover, but do not move. A cloud word is a link, and a link that
 * lifts and rotates under the pointer is a link you can miss. The highlight
 * going solid is affordance enough. */
.home-cloud .home-cloud__word:hover,
.home-cloud .home-cloud__word:focus-visible {
  background: var(--cloud-tone, var(--pastel-lemon));
}

.home-cloud .home-cloud__word:focus-visible {
  outline: 2px solid var(--home-marine);
  outline-offset: 3px;
}

/* A term that leads nowhere in the current results weakens but keeps its
 * place, so the cloud never reflows under the pointer (concept doc 4.2.2).
 *
 * Opacity and background only. Nothing here may change the text's measured
 * size: home-cloud.js positions words by their measured boxes, so a lighter
 * font weight on dimmed terms made every search re-measure and re-place the
 * whole cloud. Dimming is a colour change, full stop. */
.home-cloud .home-cloud__word.is-dimmed {
  opacity: 0.32;
  background: none;
}

.home-cloud .home-cloud__word.is-current {
  background: var(--cloud-tone, var(--pastel-lemon));
  box-shadow: inset 0 -2px 0 var(--cloud-edge, var(--neon-lemon));
}

/* Static words are not links and should not compete with them. */
.home-cloud .home-cloud__word--static {
  color: var(--home-marine-35);
}

/* Decorative words are not links and must not look like them. */
.home-cloud .home-cloud__word--static {
  background: none;
  font-weight: 500;
}

/* The reference cloud creates hierarchy with scale, not boldness: one clear
 * anchor, a few supporting words, then small gap-fillers. Sizes still depend
 * only on editorial weight (see offerings.assignSizes), so searches cannot
 * move the composition. */
.home-cloud__word--u5 { font-size: clamp(2.24rem, 4.4vw, 2.88rem); }
.home-cloud__word--u4 { font-size: clamp(1.6rem, 3.2vw, 2.12rem); }
.home-cloud__word--u3 { font-size: clamp(1.24rem, 2.4vw, 1.6rem); }
.home-cloud__word--u2 { font-size: clamp(0.96rem, 1.84vw, 1.2rem); }
.home-cloud__word--u1 { font-size: 0.8rem; }

.home-cloud__item--lemon { --cloud-tone: var(--pastel-lemon); --cloud-edge: var(--neon-lemon); --cloud-ink: var(--ink-lemon); }
.home-cloud__item--mint  { --cloud-tone: var(--pastel-mint);  --cloud-edge: var(--neon-mint);  --cloud-ink: var(--ink-mint); }
.home-cloud__item--sky   { --cloud-tone: var(--pastel-sky);   --cloud-edge: var(--neon-sky);   --cloud-ink: var(--ink-sky); }
.home-cloud__item--lilac { --cloud-tone: var(--pastel-lilac); --cloud-edge: var(--neon-lilac); --cloud-ink: var(--ink-lilac); }
.home-cloud__item--peach { --cloud-tone: var(--pastel-peach); --cloud-edge: var(--neon-peach); --cloud-ink: var(--ink-peach); }
.home-cloud__item--rose  { --cloud-tone: var(--pastel-rose);  --cloud-edge: var(--neon-rose);  --cloud-ink: var(--ink-rose); }
.home-cloud__item--ruby  { --cloud-tone: var(--pastel-ruby);  --cloud-edge: var(--neon-ruby);  --cloud-ink: var(--ink-ruby); }
.home-cloud__item--forest { --cloud-tone: var(--pastel-forest); --cloud-edge: var(--neon-forest); --cloud-ink: var(--ink-forest); }
.home-cloud__item--cyan  { --cloud-tone: var(--pastel-cyan);  --cloud-edge: var(--neon-cyan);  --cloud-ink: var(--ink-cyan); }
.home-cloud__item--navy  { --cloud-tone: var(--pastel-navy);  --cloud-edge: var(--neon-navy);  --cloud-ink: var(--ink-navy); }

/* --- Search field -------------------------------------------------------- */

.home-search-slot {
  width: min(38rem, 100%);
  min-width: 0;
}

.home-search {
  display: grid;
  gap: 0.6rem;
  width: 100%;
}

.home-search__label {
  font-size: 0.95rem;
  color: var(--home-marine-55);
}

.home-search__field {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

/* Two classes on purpose. site.css styles every text control through
 * input[type="search"], whose specificity (0,1,1) beats a single class (0,1,0)
 * no matter which stylesheet loads last -- so a plain .home-search__input rule
 * silently loses its padding, border and height to the global control style.
 * Do not flatten this selector. */
.home-search .home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  /* 48px floor: the constitution's 44px tap-target minimum plus the border. */
  min-height: 48px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--home-ink);
  background: var(--home-surface);
  border: 2px solid var(--home-marine);
  border-radius: 12px;
}

.home-search .home-search__input:focus-visible {
  outline: 3px solid var(--home-mustard);
  outline-offset: 1px;
}

.home-search__submit {
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 640;
  color: var(--home-ink);
  background: var(--home-mustard);
  border: 2px solid var(--home-marine);
  border-radius: 12px;
  cursor: pointer;
}

.home-search__submit:hover { background: var(--home-mustard-soft); }

.home-search__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0;
  font-size: 0.92rem;
  color: var(--home-marine-55);
}

.home-search__examples a { color: var(--home-marine); }

/* --- Results ------------------------------------------------------------- */

.home-results:not(:empty) { display: block; }

/* Spacing lives on the region, not on whichever heading happens to be first,
 * so the block starts at the same offset before and after a search. */
.home-results { padding-block-start: 1rem; }
.home-results > :first-child { margin-block-start: 0; }

.home-results__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0 0.5rem;
}

.home-results__count {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.home-results__reset {
  font-size: 0.92rem;
  color: var(--home-marine-55);
}

.home-results__note {
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  color: var(--home-marine-55);
  background: var(--home-mustard-tint);
  border-radius: 10px;
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem 0.3rem 0.8rem;
  font-size: 0.92rem;
  background: var(--home-surface);
  border: 1px solid var(--home-marine);
  border-radius: 999px;
}

.home-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Full 44px target on touch without inflating the chip visually. */
  min-width: 44px;
  min-height: 44px;
  margin: -0.75rem -0.4rem -0.75rem 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--home-marine);
  text-decoration: none;
}

.home-chip__remove:hover { color: var(--home-ink); }

/* Four across, explicitly. auto-fill worked out to three columns at desktop
 * width, so the four featured cards wrapped 3 + 1 -- the same orphan row the
 * Fabrik had. Fixing the count also means the cards are the same size before
 * and after a search: results replace featured without resizing. */
.home-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 66rem) {
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .home-cards { grid-template-columns: 1fr; }
}

.home-card__link {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  height: 100%;
  padding: 1.1rem 1.2rem;
  color: inherit;
  text-decoration: none;
  background: var(--home-surface);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 14px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.home-card__link:hover,
.home-card__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--home-marine-16);
}

.home-card__kind {
  font-family: var(--home-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-marine-55);
}

.home-card--app .home-card__kind { color: var(--neon-lemon); }
.home-card--workshop .home-card__kind { color: var(--neon-lilac); }
.home-card--content .home-card__kind { color: var(--neon-peach); }
.home-card--course .home-card__kind { color: var(--neon-rose); }

.home-card__title { margin: 0; font-size: 1.2rem; letter-spacing: -0.015em; }
.home-card__summary { margin: 0; font-size: 0.95rem; color: var(--home-marine-55); }

.home-card__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--home-marine);
}

.home-card__reasons-label { font-weight: 640; }

.home-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-card__badges li {
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  background: var(--home-mustard-tint);
  border-radius: 999px;
}

.home-card__go {
  font-family: var(--home-mono);
  font-size: 0.8rem;
  color: var(--home-marine-55);
}

.home-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border: var(--home-card-border-width) dashed var(--home-rule);
  border-radius: 14px;
}

.home-empty h3 { margin: 0 0 0.4rem; }
.home-empty p { margin: 0; color: var(--home-marine-55); }

/* --- "Shall we build it?" card ------------------------------------------- */

.home-idea-card {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem;
  background: var(--pastel-mint);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 14px;
}

.home-idea-card__kicker {
  margin: 0;
  font-family: var(--home-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-idea-card h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.015em; }
.home-idea-card p { margin: 0; font-size: 0.95rem; }

.home-idea-card__cta {
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-weight: 640;
  color: var(--home-ink);
  text-decoration: none;
  background: var(--home-surface);
  border: 2px solid var(--home-marine);
  border-radius: 999px;
}

.home-idea-card__cta:hover { background: var(--home-mustard); }

/* --- App purposes as lightweight navigation ----------------------------- */

.home-app-purposes {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin-top: -0.35rem;
  text-align: center;
}

.home-app-purposes__title {
  margin: 0;
  font-family: var(--home-mono);
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--home-marine-55);
}

.home-app-purposes ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-page .home-app-purposes a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--home-marine-55);
  transition: color 140ms ease;
}

.home-page .home-app-purposes a:hover,
.home-page .home-app-purposes a:focus-visible {
  color: var(--home-marine);
}

/* --- Section labels ------------------------------------------------------ */

.home-section__sub {
  max-width: 46rem;
  margin: 0 0 1.5rem;
  color: var(--home-marine-55);
}

/* --- Fabrik -------------------------------------------------------------- */

/* Five stations, one row. auto-fit with a 14rem minimum sounds right but
 * cannot promise a row count: once the container drops below 5 x 14rem plus
 * gaps it silently wraps to 4 + 1, which reads as a broken grid rather than a
 * conveyor. Five explicit columns keep the line a line.
 *
 * Below the width where five columns stay legible the stations stack, the
 * same way the three process cards do. Anything in between -- 3 + 2 or
 * 2 + 2 + 1 -- has the same orphan-row problem in a smaller window. */
.home-factory__line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 66rem) {
  .home-factory__line {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

.home-station {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  height: 100%;
  padding: 1rem 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
  background: var(--home-surface);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 14px;
  transition: transform 140ms ease, background-color 140ms ease;
}

.home-factory__line li:nth-child(1) .home-station:hover { background: var(--pastel-peach); }
.home-factory__line li:nth-child(2) .home-station:hover { background: var(--pastel-lemon); }
.home-factory__line li:nth-child(3) .home-station:hover { background: var(--pastel-lilac); }
.home-factory__line li:nth-child(4) .home-station:hover { background: var(--pastel-mint); }
.home-factory__line li:nth-child(5) .home-station:hover { background: var(--pastel-sky); }

.home-station:hover,
.home-station:focus-visible { transform: translateY(-3px); }

.home-station__badge {
  font-family: var(--home-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--home-marine-55);
}

.home-station h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.015em; }
.home-station p { margin: 0; font-size: 0.87rem; line-height: 1.5; color: var(--home-marine-55); }

.home-station__go {
  font-family: var(--home-mono);
  font-size: 0.78rem;
  color: var(--home-marine);
}

/* --- Steps --------------------------------------------------------------- */

/* Three cards joined by a connector, all in one colour. The v7 conveyor
 * shape without the per-station palette, which competed with the cloud. */
.home-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-step {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--home-surface);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 14px;
}

/* The link between two cards. A short rule rather than an arrow: the order
 * is already numbered, so this only has to say "and then". */
.home-steps__link {
  flex: 0 0 2.5rem;
  align-self: center;
  height: 2px;
  background: var(--home-marine);
}

@media (max-width: 52rem) {
  .home-steps { flex-direction: column; }
  .home-steps__link {
    flex-basis: 1.75rem;
    width: 2px;
    height: 1.75rem;
    align-self: center;
  }
}

@media (max-width: 40rem) {
  .home-search__field { flex-wrap: wrap; }
  .home-search__submit { width: 100%; }
  /* A 40-word cloud is a wall of text on a phone. Cap the ramp so the hero
   * stays one screen and the search field is reachable without scrolling. */
  .home-cloud__word--u5 { font-size: 1.12rem; }
  .home-cloud__word--u4 { font-size: 1rem; }
  .home-cloud__word--u3 { font-size: 0.88rem; }
  /* u2 and u1 need explicit values here too, not just the top three. Their
   * clamp() floors do not scale with the viewport, so at phone widths u2 sat
   * above the u3 override and the ramp ran backwards: step 2 words rendered
   * larger than step 3 ones. */
  .home-cloud__word--u2 { font-size: 0.8rem; }
  .home-cloud__word--u1 { display: none; font-size: 0.74rem; }
}

/* --- Contact ------------------------------------------------------------- */

.home-contact__form {
  display: grid;
  gap: 0.9rem;
  max-width: 42rem;
}

.home-contact__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 0.9rem;
}

.home-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.home-field > span {
  color: var(--home-marine-55);
}

.home-field em {
  font-style: normal;
  color: var(--home-marine-35);
}

/* Two classes, same reason as the search input: site.css styles every text
 * control through input[type="..."], whose specificity beats a single class
 * no matter which stylesheet loads last. Do not flatten. */
.home-contact__form .home-field input[type="text"],
.home-contact__form .home-field input[type="email"],
.home-contact__form .home-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  color: var(--home-ink);
  background: var(--home-surface);
  border: 2px solid var(--home-marine);
  border-radius: 12px;
}

.home-contact__form .home-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.home-contact__form .home-field :is(input, textarea):focus-visible {
  outline: 3px solid var(--home-mustard);
  outline-offset: 1px;
}

.home-contact__form .home-field :is(input, textarea)[aria-invalid="true"] {
  border-color: var(--neon-rose);
}

.home-field--check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

.home-contact__form .home-field--check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--home-marine);
}

.home-contact__error {
  margin: 0;
  padding: 0.6rem 0.9rem;
  color: var(--home-ink);
  background: var(--pastel-rose);
  border-radius: 10px;
}

.home-contact__privacy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--home-marine-55);
}

.home-contact__sent {
  max-width: 42rem;
  padding: 1.3rem 1.4rem;
  background: var(--pastel-mint);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 14px;
}

.home-contact__sent h3 { margin: 0 0 0.4rem; }
.home-contact__sent p { margin: 0; }

.home-contact__notice {
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
  padding: 1.3rem 1.4rem;
  background: var(--pastel-lemon);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 14px;
}

.home-contact__notice h3,
.home-contact__notice p { margin: 0; }

.home-contact__notice a {
  width: fit-content;
  color: var(--home-marine);
  font-weight: 700;
}

.home-contact__form button[type="submit"] { justify-self: start; }

/* The honeypot must be unreachable by people but present in the DOM for bots.
 * Not display:none -- some bots skip hidden inputs, which defeats the trap. */
.home-contact__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Readable panel over the background grid ----------------------------- */
/* The animated symbol grid sits behind the whole page. Over headings and
 * cards it reads as texture, but behind running paragraphs it competes with
 * the words. Sections carrying body copy get an opaque surface. */

.home-panel {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--home-surface);
  border: var(--home-card-border-width) solid var(--home-marine);
  border-radius: 18px;
}

.home-panel > .home-section-title {
  margin-top: 0;
}

/* --- FAQ as a conversation ----------------------------------------------- */

.home-thread {
  display: grid;
  gap: 1.9rem;
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-msg {
  display: flex;
  gap: 0.9rem;
}

.home-msg--q { margin-right: clamp(0rem, 10vw, 5rem); }

.home-msg--a {
  flex-direction: row-reverse;
  margin-top: 0.9rem;
  margin-left: clamp(0rem, 10vw, 5rem);
}

.home-msg__avatar {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  background: var(--msg-tone, var(--pastel-sky));
}

.home-msg--a .home-msg__avatar {
  background: var(--home-marine);
  color: var(--home-surface);
  font-family: var(--home-mono);
  font-size: 0.7rem;
}

.home-msg__bubble {
  padding: 1rem 1.25rem 1.1rem;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: var(--msg-tone, var(--pastel-sky));
}

.home-msg--a .home-msg__bubble {
  background: var(--home-surface);
  border: 1.5px solid var(--home-marine-16);
  border-top-left-radius: 18px;
  border-top-right-radius: 6px;
}

.home-msg__q {
  margin: 0;
  font-weight: 680;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.home-msg__a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--home-marine-55);
  line-height: 1.6;
}

.home-msg--lemon { --msg-tone: var(--pastel-lemon); }
.home-msg--mint  { --msg-tone: var(--pastel-mint); }
.home-msg--sky   { --msg-tone: var(--pastel-sky); }
.home-msg--lilac { --msg-tone: var(--pastel-lilac); }
.home-msg--peach { --msg-tone: var(--pastel-peach); }
.home-msg--rose  { --msg-tone: var(--pastel-rose); }

@media (max-width: 40rem) {
  .home-msg--q, .home-msg--a { margin-inline: 0; }
}

/* --- Search suggestions --------------------------------------------------- */

.home-search__field { position: relative; }

.home-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-height: 20rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  text-align: left;
  background: var(--home-surface);
  border: 2px solid var(--home-marine);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--home-marine-16);
}

.home-suggest[hidden] { display: none; }

.home-suggest__item {
  /* 44px target: this is a touch list on a tablet. */
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.home-suggest__item.is-active,
.home-suggest__item:hover {
  background: var(--home-mustard);
}

@media (max-width: 40rem) {
  /* The submit button wraps to its own line below 40rem, so the dropdown has
   * to clear both rows rather than just the input. */
  .home-suggest { top: calc(100% + 0.4rem); }
}

@media (max-width: 75rem) {
  .home-search--docked {
    position: fixed;
    z-index: 60;
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: auto;
    max-width: 38rem;
    margin-inline: auto;
    padding: 0.5rem;
    gap: 0;
    background: var(--home-surface);
    border: 1px solid var(--home-marine-16);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(10, 28, 78, 0.22);
  }

  .home-search--docked .home-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .home-search--docked .home-search__field {
    flex-wrap: nowrap;
  }

  .home-search--docked .home-search__submit {
    flex: 0 0 auto;
    width: auto;
  }

  .home-search--docked .home-suggest {
    top: auto;
    bottom: calc(100% + 0.55rem);
    max-height: min(20rem, calc(100vh - 6rem));
  }
}

/* --- Featured row (the pre-search state of the results region) ------------ */

.home-results__featured {
  margin: 0 0 0.5rem;
  font-family: var(--home-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--home-marine-55);
}
