/* The new Home (16 Oct 2026): hero, our line, topics, tools, science. Deep Sonik blue, a colour per topic. */
.app.home { max-width: 1180px; gap: 0; padding-top: 8px; }
.app.home > .fineprint { margin-top: 56px; }

/* 1. hero */
.h2-hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 40px; padding: 40px 0 48px; }
.h2-mark { display: grid; place-items: center; }
.h2-mark .logo { --mark-h: min(42vw, 300px); --mark-w: calc(var(--mark-h) * 0.65); width: var(--mark-w); height: var(--mark-h); filter: drop-shadow(0 0 40px rgba(77, 168, 255, 0.25)); }
.h2-kicker { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: var(--accent); font: 0.72rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.h2-kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.h2-title { margin: 0; font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
  background: linear-gradient(90deg, #E7EBF8 0%, #9DB4FF 55%, #B98CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2-lede { margin: 16px 0 24px; max-width: 46ch; font-size: 1.08rem; line-height: 1.55; color: var(--muted); }
.h2-search .homesearch { margin: 0; max-width: 560px; }
.h2-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.h2-btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.h2-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.h2-btn:hover { filter: brightness(1.08); }
.h2-btn.ghost:hover { border-color: var(--accent); }

/* 2. our line */
.h2-band { margin: 0 calc(50% - 50vw); padding: 30px 16px; background: linear-gradient(90deg, rgba(77, 168, 255, 0.06), rgba(155, 107, 255, 0.10), rgba(77, 168, 255, 0.06)); border-block: 1px solid var(--line); text-align: center; }
.h2-band p { margin: 0 auto; max-width: 900px; font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

/* sections */
.h2-sec { padding-top: 64px; }
.h2-sec > h2 { margin: 0; text-align: center; font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; font-weight: 600; }
.h2-sub { margin: 8px auto 28px; max-width: 60ch; text-align: center; color: var(--muted); }

/* 3. topic cards */
.h2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h2-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.h2-card:hover, .h2-card:focus-visible { transform: translateY(-3px); border-color: var(--k); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--k); outline: none; }
.h2-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.h2-art .art { display: block; width: 100%; height: 100%; transition: transform 0.6s ease; }
.h2-card:hover .art, .h2-tool:hover .art { transform: scale(1.05); }
.h2-cap { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.h2-cap strong { font-size: 1.05rem; font-weight: 600; }
.h2-cap strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px var(--k); vertical-align: 2px; }
.h2-cap small { color: var(--muted); font-size: 0.86rem; }

/* the bar with every family */
.h2-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; margin-top: 22px; padding: 12px 18px; border-radius: 16px; background: #050A1C; border: 1px solid var(--line); }
.h2-bar a { padding: 4px 6px; border-radius: 6px; color: var(--ink); font-size: 0.92rem; text-decoration: none; }
.h2-bar a:hover, .h2-bar a:focus-visible { color: #fff; background: var(--surface-2); outline: none; }
.h2-bar span { color: var(--line); }

/* 4. tools */
.h2-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h2-tool { position: relative; display: block; min-height: 260px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; }
.h2-tool .h2-art { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0.85; }
.h2-tool::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 36, 0.92) 0%, rgba(10, 15, 36, 0.55) 55%, rgba(10, 15, 36, 0.2) 100%); }
.h2-tcopy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 260px; padding: 24px; box-sizing: border-box; }
.h2-tcopy strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: var(--k); }
.h2-tcopy > span { max-width: 30ch; color: var(--ink); opacity: 0.85; }
.h2-tcopy em { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-style: normal; font-weight: 600; font-size: 0.9rem; }
.h2-tcopy em svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h2-tool:hover, .h2-tool:focus-visible { border-color: var(--k); transform: translateY(-3px); outline: none; }

/* 5. science */
.h2-tag { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(5, 10, 28, 0.85); border: 1px solid var(--line); font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k); }
.h2-more { margin-top: 6px; font-weight: 600; color: var(--ink) !important; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem !important; }

/* tablets and phones */
@media (max-width: 900px) {
  .h2-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0 36px; text-align: center; }
  .h2-mark .logo { --mark-h: min(48vw, 200px); }
  .h2-kicker { justify-content: center; }
  .h2-lede { margin-inline: auto; }
  .h2-search .homesearch { margin: 0 auto; }
  .h2-cta { justify-content: center; }
  .h2-grid, .h2-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .h2-grid, .h2-tools { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .h2-grid:not(.three) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-grid:not(.three) .h2-cap small { display: none; }
  .h2-cap { padding: 10px 12px 12px; }
  .h2-cap strong { font-size: 0.95rem; }
  .h2-sec { padding-top: 44px; }
  .h2-tool, .h2-tcopy { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .h2-card, .h2-tool, .h2-art .art { transition: none; } }

/* topic photos (licensed stock), tinted toward the deep blue with a line of the topic colour */
.h2-art.photo { background: #071433; }
.h2-art.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.h2-art.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 20, 51, 0) 45%, rgba(7, 20, 51, 0.55) 100%); box-shadow: inset 0 -2px 0 var(--k); pointer-events: none; }
.h2-card:hover .h2-art.photo img { transform: scale(1.05); }

/* the band carries the wide blue wave (licensed stock), darkened so the words stay clear */
.h2-band { background: linear-gradient(90deg, rgba(10, 15, 36, 0.78), rgba(10, 15, 36, 0.45), rgba(10, 15, 36, 0.78)), url("topics/band.jpg") center / cover no-repeat; padding-block: 54px; }
.h2-band p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }

/* the brain on top: wide, centred, the words under it */
.h2-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12px; text-align: center; }
.h2-mark { margin: 0 calc(50% - 50vw); }
.h2-brain { display: block; width: min(1180px, 100%); height: auto; margin: 0 auto; }
.h2-kicker { justify-content: center; }
.h2-lede { margin-inline: auto; }
.h2-search .homesearch { margin: 0 auto; }
.h2-cta { justify-content: center; }
.h2-brain { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); margin-bottom: -28px; }

/* the three words on one line, on every screen */
.h2-title { white-space: nowrap; font-size: clamp(1.5rem, 7.4vw, 3.6rem); }

.h2-lede { text-align: center; max-width: none; }
.h2-lede span { display: block; }

/* small, thin bars between the three words */
.h2-title { display: flex; justify-content: center; align-items: center; gap: 0.32em; }
.h2-title i { display: inline-block; width: 0.32em; height: 0.06em; min-height: 2px; border-radius: 2px; background: #9DB4FF; opacity: 0.75; }
.h2-title span { background: inherit; -webkit-background-clip: text; background-clip: text; }

/* the Generator's mode windows, on Home */
.h2gm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.h2gm .gm-win { text-decoration: none; color: inherit; }
@media (max-width: 900px) { .h2gm { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }
.h2gm .gm-art { height: auto; aspect-ratio: 17 / 6; }

/* Home: the windows end at their line, the parts joined by short bars */
.h2gm .gm-desc, .h2gm .gm-list { display: none !important; }
.h2gm .gm-win { padding-bottom: 20px; }
.h2gm .gm-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.h2gm .gm-tag i { display: inline-block; width: 8px; height: 1.5px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.h2gm .gm-tag { gap: 3px 5px; } .h2gm .gm-tag i { width: 6px; }
.h2gm .gm-tag { line-height: 1; } .h2gm .gm-tag i { position: relative; top: -0.06em; }
.h2gm .gm-tag i { top: -0.16em; }

/* the bars are a dash in the same line of text, so they sit at the same height in every card */
.h2gm .gm-tag { display: block; line-height: 1.4; }
.h2gm .gm-tag .sep { display: inline; margin: 0 0.35em; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; opacity: 0.6; position: relative; top: -0.06em; }
.h2gm .gm-tag .sep { font-family: inherit; top: 0; vertical-align: 0.08em; }

/* 16 Oct 2026 (evening): the line sits on the brain, the search is at the bottom, no buttons */
.h2-mark { position: relative; }
.h2-over { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92%, 900px); margin: 0; text-align: center;
  font-size: clamp(1.15rem, 2.8vw, 2rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.85), 0 0 40px rgba(5, 10, 28, 0.9); pointer-events: none; }
section.h2-search { margin-top: 48px; padding-top: 0; }
.h2-search .homesearch { margin: 0 auto; max-width: 640px; }
/* bottom search: a bit larger, centred under the cards and above the footer line */
section.h2-search { display: flex; justify-content: center; }
section.h2-search .homesearch { width: 100%; max-width: 820px; height: 56px; margin: 0 auto; padding-left: 52px; }
section.h2-search .homesearch > svg { left: 20px; width: 22px; height: 22px; }
section.h2-search .homesearch input { font-size: 1.05rem; }
section.h2-search .homesearch button { width: 44px; height: 44px; }
/* no buttons any more: close the gap between the hero and Explore by topic */
.h2-hero { padding-bottom: 0; }
.h2-hero + .h2-sec { margin-top: 24px; padding-top: 0; }
/* the line on two lines; on phones the brain image is bigger (sides cropped) */
@media (min-width: 701px) { .h2-over span + span::before { content: " "; } }
@media (max-width: 700px) {
  .h2-over span { display: block; }
  .h2-mark { overflow: hidden; }
  .h2-brain { width: 190%; max-width: none; margin-left: -45%; margin-bottom: -10px; }
  .h2-over { font-size: 1.05rem; width: 94%; }
}
@media (max-width: 700px) { .h2-lede { font-size: clamp(0.72rem, 3.5vw, 0.95rem); } .h2-lede span { display: block; text-wrap: balance; } }
/* the antenna line never breaks inside a sentence, in any language */
@media (min-width: 701px) { .h2-over { width: auto; max-width: 96vw; white-space: nowrap; font-size: clamp(1rem, 2.2vw, 2rem); } }
@media (max-width: 700px) { .h2-over span { white-space: nowrap; font-size: min(1.05rem, 4.6vw); } }
/* phone tagline: one line in every language (FR, PT, ES are longer, so a little smaller) */
@media (max-width: 700px) {
  .h2-lede span { white-space: nowrap; }
  html:not([lang|="en"]) .h2-lede { font-size: min(0.95rem, 3.05vw); }
}
/* the small bars never disappear; longer French words get a slightly smaller title on phones */
.h2-title i { flex-shrink: 0; }
@media (max-width: 700px) { html[lang|="fr"] .h2-title { font-size: 6.6vw !important; } }
