/* Shared homepage bands, headings, cards and seasonal lights. */
.home-section { color: var(--ink); text-align: left; scroll-margin-top: 96px; --home-accent: rgb(var(--season-glow, 255 96 33)); }
.home-section[hidden] { display: none; }
.home-section .container { max-width: var(--alr-max); }
.home-section a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }
.home-section .home-heading { margin: 0; font-size: var(--t-h2); font-weight: 700; line-height: 1.05; letter-spacing: var(--track-display, -0.015em); color: var(--ink); }
.home-section .home-intro { margin: var(--s-3) 0; color: var(--ink-2); font-size: var(--t-body); line-height: 1.6; }
.home-section .home-note { margin: var(--s-2) 0 0; color: var(--ink-2); font-size: var(--t-meta); line-height: 1.6; }
.home-section .section-lead-link:hover,
.home-section .section-lead-link:focus-visible { color: var(--ink); border-color: var(--home-accent); }
.home-section .section-lead-link span { color: var(--home-accent); }

/* Latest Renders markup and styles, with three square containers. */
.home-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.home-legend-grid .featured-card { grid-column: auto; grid-row: auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 1; border-color: rgba(255,255,255,.08); border-radius: 12px; background: var(--bg-secondary); }
.home-legend-grid .card-image { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.home-legend-grid .card-image img,
.home-legend-grid .card-image [data-thumb-status] { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center 30%; }
.home-legend-grid .featured-card:hover,
.home-legend-grid .featured-card:focus-visible { border-color: rgb(var(--season-glow, 255 106 43) / .3); transform: translateY(-3px); box-shadow: 0 14px 26px rgba(0,0,0,.3); }
/* Same motion as Latest: only the border fades, the lift snaps, the artwork eases in. */
.home-legend-grid .featured-card { transition: border-color var(--d-mid) var(--ease); }
.home-legend-grid .card-image img { transition: transform .28s cubic-bezier(.22, 1, .36, 1); }
.home-legend-grid .featured-card:hover .card-title,
.home-legend-grid .featured-card:focus-visible .card-title { color: var(--text-primary); }
.home-legend-grid .featured-card:hover .card-image img,
.home-legend-grid .featured-card:focus-visible .card-image img { transform: scale(1.06); }
.home-legend-grid .featured-card:hover .card-view-overlay,
.home-legend-grid .featured-card:focus-visible .card-view-overlay { transform: scaleX(1); }
.home-legend-grid .card-view-overlay { background: var(--home-accent); }
.home-legend-grid .card-content { z-index: 2; text-align: left; padding: 48px 12px 12px; background: linear-gradient(to top, #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.4) 60%, transparent 100%); }
.home-legend-grid .card-title { font-size: .92rem; font-weight: 700; line-height: 1.25; margin-bottom: 2px; color: var(--text-primary); text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.home-legend-grid .recent-card-meta { font-size: .75rem; color: rgba(255,255,255,.6); text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.home-pick-source a { color: inherit; text-underline-offset: 3px; }

/* Quiet alternating surfaces keep the compact bands distinct without flooding them with light. */
.home-section.home-tools { background: #101013; }
.home-section.home-request { background: var(--stage); }
.home-section.home-support { background: #111114; }
.home-section.home-community { background: var(--stage); }
.home-tools .band-glow, .home-news .band-glow { opacity: .35; }
.home-request .band-glow, .home-community .band-glow { opacity: .22; }
.home-support .band-glow { opacity: .12; }
.home-tools .band-dots, .home-request .band-dots, .home-support .band-dots, .home-community .band-dots { opacity: .35; }
.home-tools > .band-seam, .home-news > .band-seam,
.home-request > .band-seam, .home-support > .band-seam, .home-community > .band-seam { opacity: .35; }
.home-support .band-fx::after { opacity: .025; }

/* Product emblems echo the existing tools hub, with depth rather than a mock interface. */
.home-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.home-tool { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 32px; padding: clamp(24px, 3vw, 36px); background: linear-gradient(135deg, #1b1b20, #101013 65%); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 30px rgba(0,0,0,.12); transition: border-color var(--d-mid) var(--ease); }
.home-tools .home-tool:hover, .home-tools .home-tool:focus-within { border-color: rgb(var(--season-glow, 255 106 43) / .3); transform: translateY(-3px); box-shadow: 0 14px 26px rgba(0,0,0,.3); }
/* The accent rule that draws along the foot of a Latest card on hover. */
.home-tool::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--home-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--d-mid) var(--ease); pointer-events: none; }
.home-tools .home-tool:hover::after, .home-tools .home-tool:focus-within::after { transform: scaleX(1); }
.home-tool-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); position: relative; z-index: 1; }
.home-tool-emblem { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border: 1px solid rgb(var(--season-glow, 255 96 33) / .2); border-radius: 16px; background: linear-gradient(145deg, rgb(var(--season-glow, 255 96 33) / .12), rgba(255,255,255,.015)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.2); }
.home-tool-icon { font-size: 27px; color: var(--home-accent); }
.home-tool-watermark { position: absolute; right: -18px; bottom: 12px; z-index: -1; font-size: 180px; color: rgba(255,255,255,.025); transform: rotate(-12deg); pointer-events: none; }
.home-tool-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }
.home-tool h3 { font-size: clamp(1.125rem, 1.8vw, 1.4rem); line-height: 1.3; margin: 0 0 var(--s-2); letter-spacing: var(--track-heading, -0.01em); }
.home-tool p { font-size: var(--t-body); color: var(--ink-2); line-height: 1.6; margin: 0 0 var(--s-4); max-width: 34ch; }
.home-tool-copy .section-lead-link { margin-top: auto; }
.home-tool-meta { display: flex; flex-direction: column; gap: .35rem; color: var(--ink-2); font-size: var(--t-meta); text-align: right; }
.home-tool-meta span:first-child { color: var(--ink); }

/* A real archive render gives the request invitation its focal point. */
.home-request-panel { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(115deg, #17171c, #0c0c0f 64%); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.home-request-copy { padding: clamp(28px, 4vw, 56px); position: relative; z-index: 2; }
.home-section .home-eyebrow { margin: 0 0 var(--s-3); color: var(--ink-2); font-size: var(--t-micro); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.home-request .home-heading { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.08; }
.home-request .home-heading em { font-style: normal; color: var(--home-accent); }
.home-request .home-intro { margin-block: var(--s-3) var(--s-4); }
.home-request .home-note { margin-top: var(--s-3); max-width: 38ch; }
.home-request-art { position: relative; min-width: 0; align-self: stretch; background: radial-gradient(ellipse at 60% 55%, rgb(var(--season-glow, 255 96 33) / .1), transparent 67%); }
.home-request-art img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 112%; max-width: none; height: 100%; object-fit: contain; object-position: center bottom; mask-image: linear-gradient(#000 72%, transparent 98%); }
.home-request-steps { position: absolute; bottom: 28px; inset-inline: 8%; display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--t-meta); color: var(--ink); }
.home-request-art::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgba(8,8,10,var(--label-shade, .72))); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.home-request-steps { z-index: 1; }
.home-request-steps span { display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.75); }
.home-request-steps small { color: var(--home-accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.home-updates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.home-update { border-top: 1px solid var(--line-2); padding-top: var(--s-3); min-width: 0; overflow-wrap: anywhere; }
.home-update-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: var(--s-3); font-size: var(--t-micro); color: var(--ink-2); }
.home-update-category { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-left: 3px solid var(--home-accent); padding-left: .6rem; color: var(--ink); }
.home-update h3 { font-size: var(--t-h3); line-height: 1.4; }
.home-update-permalink { color: inherit; text-decoration: none; }
.home-update-permalink:hover { color: var(--home-accent); text-decoration: underline; text-underline-offset: 3px; }
.home-update-permalink:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; border-radius: 2px; }
.home-update .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.home-update > p { color: var(--ink-2); font-size: var(--t-body); line-height: 1.6; margin: var(--s-2) 0 var(--s-3); }
.home-updates:has(> :only-child) { grid-template-columns: minmax(0, 750px); }
.home-section .home-promo-layout { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.home-promo-layout .btn { flex-shrink: 0; }
.home-section.home-support { padding-block: var(--s-5); }
.home-support .home-heading { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.home-anchor { position: absolute; top: 0; scroll-margin-top: 80px; }
.home-section .home-community-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-community-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s-4); color: var(--ink-2); font-size: var(--t-micro); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.home-community-mark { font-size: 30px; color: var(--home-accent); }
.home-community-invite .home-intro { max-width: 36ch; margin-block: var(--s-3) var(--s-4); }
.home-community-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.home-community-benefit { padding: clamp(22px, 2.4vw, 32px); min-width: 0; }
.home-community-benefit:nth-child(even) { border-left: 1px solid var(--line); }
.home-community-benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
.home-community-benefit > i { display: block; font-size: 22px; color: var(--home-accent); margin-bottom: 20px; }
.home-community-benefit h3 { margin: 0 0 10px; color: var(--ink); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.35; letter-spacing: -.015em; }
.home-community-benefit p { margin: 0; color: var(--ink-2); font-size: var(--t-meta); line-height: 1.7; }
/* Match the homepage's rectangular buttons, with seasonal keylines. */
.home-section .btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.5rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--ink); box-shadow: none; font-size: var(--t-body); font-weight: 700; text-transform: none; letter-spacing: .01em; }
.home-section .btn:hover { border-color: var(--home-accent); background: var(--stage-2); transform: none; box-shadow: none; }
.home-section .home-request-cta { border-color: rgb(var(--season-glow, 255 96 33) / .5); background: rgb(var(--season-glow, 255 96 33) / .1); }
.home-section .home-request-cta:hover { background: rgb(var(--season-glow, 255 96 33) / .18); }
html[data-season] .home-legend-grid .card-image { background: radial-gradient(120% 80% at 50% 0%, rgb(var(--season-glow) / .1), transparent 62%), var(--stage); }
/* spotlight.js sizes the light to the card (80% of its longer side, 300px at
   least), so the wide tool cards and larger legend cards glowed far more than
   Latest's small ones. Pin them to Latest's reach. */
:is(.home-legend, .home-tool) > .spotlight { --spot-r: 300px; }
/* Match Latest's small-card shadow. The IDs intentionally outrank the
   seasonal [data-spotlight]:hover rule, which otherwise adds a coloured halo. */
:is(#legend-spotlight, #creator-tools-feature) :is(.home-legend, .home-tool):hover,
:is(#legend-spotlight, #creator-tools-feature) .home-legend:focus-visible,
#creator-tools-feature .home-tool:focus-within {
  box-shadow: 0 14px 26px rgba(0,0,0,.3);
}
@media (max-width: 900px) {
  .home-section .home-promo-layout { align-items: flex-start; flex-direction: column; }
  .home-request-panel { grid-template-columns: 1.1fr .9fr; }
  .home-request-copy { padding: 32px; }
  .home-section .home-community-layout { grid-template-columns: 1fr; }
  .home-community-invite .home-intro { max-width: 48ch; }
}
@media (max-width: 680px) {
  .home-tools-grid, .home-updates, .home-section .home-community-layout { grid-template-columns: 1fr; }
  .home-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-legend-grid .featured-card:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .home-legend-grid .card-content { padding: 2.5rem .65rem .65rem; }
  .home-legend-grid .card-title { font-size: .85rem; }
  .home-legend-grid .recent-card-meta { font-size: .75rem; }
  .home-section .home-community-layout { gap: var(--s-3); }
  .home-request-panel { grid-template-columns: 1fr; }
  .home-request-copy { padding: 28px 24px 12px; }
  .home-request-art { min-height: 280px; margin-top: 12px; }
  .home-request-art img { width: 100%; }
  .home-request-steps { bottom: 24px; }
}
@media (max-width: 480px) {
  .home-community-benefits { grid-template-columns: 1fr; }
  .home-community-benefit { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 24px 20px; }
  .home-community-benefit:nth-child(even) { border-left: 0; }
  .home-community-benefit + .home-community-benefit { border-top: 1px solid var(--line); }
  .home-community-benefit > i { grid-row: 1 / 3; font-size: 20px; margin: 3px 0 0; }
  .home-community-benefit p { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .home-section *, .home-section *::before, .home-section *::after { transition: none !important; animation: none !important; }
  .home-legend-grid .featured-card:hover .card-image img,
  .home-legend-grid .featured-card:focus-visible .card-image img { transform: none; }
  .home-legend-grid .featured-card:hover, .home-legend-grid .featured-card:focus-visible { transform: none; }
  .home-tools .home-tool:hover, .home-tools .home-tool:focus-within { transform: none; }
  .home-tools .home-tool:hover::after, .home-tools .home-tool:focus-within::after { transform: scaleX(0); }
}
