/* The opening follows the designer's large feature / compact story hierarchy. */
.home-hero { position: relative; isolation: isolate; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.5rem; }
.home-hero::before { content: none; }
.home-hero__aside { display: block; padding: 0; border: 0; }
.home-top-stories { display: grid; gap: 1.25rem; }
.home-top-stories .article-card__link { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr); gap: .45rem 1rem; align-content: start; }
.home-top-stories .article-card__image { grid-row: 1 / 3; align-self: start; }
.home-top-stories .discovery-card__meta { grid-column: 2; grid-row: 2; margin: 0; font-size: .65rem; gap: .5rem; text-transform: none; letter-spacing: 0; }
.home-top-stories .article-card h3 { grid-column: 2; grid-row: 1; margin: 0; font: 700 clamp(.9rem, 1.2vw, 1.1rem)/1.4 Inter, sans-serif; letter-spacing: -.025em; }
.home-top-stories .discovery-card__summary { display: none; }
.home-hero .article-card--feature h2 { max-width: none; font: 750 clamp(1.1rem, 1.7vw, 1.5rem)/1.35 Inter, sans-serif; letter-spacing: -.025em; }
.home-hero .article-card--feature .discovery-card__meta, .home-hero .discovery-card__cta { display: none; }
.home-hero .article-card--feature .discovery-card__summary { margin-top: .5rem; font-size: .875rem; }
.home-hero .article-card__image img { transition: transform .25s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-hero .article-card__link:hover img { transform: scale(1.025); }
}

/* A separate native taxonomy View; the curated rabbit-hole grid stays intact. */
.home-category-carousel { position: relative; margin-top: 2.5rem; min-width: 0; color: var(--l1t-text, #edf6f5); }
.home-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.l1t-homepage .home-category-heading h2, .home-category-heading h2 { margin: 0; font: 650 .75rem/1.5 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--l1t-muted-text, #a8b9bd); }
.home-category-controls { display: flex; gap: .4rem; }
.home-category-controls[hidden] { display: none; }
.home-category-controls button { width: 40px; height: 36px; border: 1px solid var(--l1t-border-strong, #edf6f54d); border-radius: 3px; background: transparent; color: var(--l1t-text, #edf6f5); font-size: 1.1rem; }
.home-category-controls button:hover:enabled { border-color: var(--l1t-link, #12afc4); color: var(--l1t-link, #12afc4); }
.home-category-controls button:disabled { opacity: .3; }
/* Keep Drupal's editor pencil stable instead of inheriting theme button motion. */
.l1t-homepage .contextual .trigger { transition: none; }
.home-category-track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--home-category-width, clamp(280px, 35vw, 680px)); gap: clamp(14px, 1.45vw, 28px); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scroll-padding-inline: 2px; list-style: none; padding: .35rem 2px .9rem; margin: 0; scrollbar-width: thin; scrollbar-color: var(--l1t-link, #12afc4) transparent; }
.home-category-track.is-wheel-scrolling { scroll-snap-type: none; }
.home-category-track > li { min-width: 0; scroll-snap-align: start; }
.home-category-track > li:nth-child(3n + 1) { --tile-accent: #bfe43f; }
.home-category-track > li:nth-child(3n + 2) { --tile-accent: #12afc4; }
.home-category-track > li:nth-child(3n) { --tile-accent: #a3dcd5; }
.home-category { position: relative; isolation: isolate; display: flex; align-items: end; min-width: 0; aspect-ratio: 16 / 9; padding: 3.4% 3.4%; container-type: inline-size; overflow: hidden; border-radius: 4px; background: var(--tile-accent, #12afc4); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.home-category__photo { position: absolute; inset: 0; z-index: -3; mix-blend-mode: multiply; }
.home-category__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .42; transition: transform .35s ease; }
.home-category::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, #00141f66, #00141f08 65%, transparent); }
.home-category::after { content: ''; position: absolute; z-index: -1; inset: -6px; background: #00141f; mask: url('../assets/circuit-reference.svg') center / 300px auto repeat; opacity: .12; transition: transform .35s ease, opacity .35s ease; pointer-events: none; }
.home-category__label { position: relative; max-width: calc(100% - 16%); color: var(--tile-accent, #12afc4); font: 750 clamp(1.5rem, 8.8cqi, 3.75rem)/1.08 Montserrat, sans-serif; letter-spacing: -.035em; text-wrap: balance; }
@supports (-webkit-text-stroke: 1px black) {
  .home-category__label { -webkit-text-stroke: 1px var(--tile-accent, #12afc4); -webkit-text-fill-color: #00141f; }
}
.home-category__view { display: grid; align-content: center; flex: 0 0 12%; aspect-ratio: 1; height: auto; margin-left: auto; border-radius: 50%; background: #00141f; color: #edf6f5; font: 700 clamp(.5rem, 1.8cqi, .75rem)/1.2 Inter, sans-serif; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.home-category__view > span { display: none; }
@media (hover: hover) {
  .home-category:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--tile-accent, #12afc4); }
  .home-category:hover .home-category__photo img { transform: scale(1.04); }
  .home-category:hover::after { transform: translateX(6px); opacity: .4; }
  .home-category:hover .home-category__label { -webkit-text-fill-color: var(--tile-accent, #12afc4); }
}
.home-category:focus-visible { outline: 2px solid var(--l1t-link, #12afc4); outline-offset: 3px; }
.home-category-track:focus-visible { outline: 2px solid var(--l1t-link, #12afc4); outline-offset: 2px; }
.home-section-heading > .home-see-all { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.15rem; border-radius: 5px; background: #12afc4; color: #00141f; font: 750 .7rem/1.4 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.home-section-heading > .home-see-all:hover { background: #bfe43f; color: #00141f; }
@media (max-width: 850px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__aside { padding-top: .5rem; }
  .home-top-stories { gap: 1rem; }
  .home-top-stories .article-card__link { grid-template-columns: 120px minmax(0, 1fr); }
  .home-top-stories .article-card h3 { font-size: 1rem; }
}
@media (max-width: 600px) {
  .home-category-track { grid-auto-columns: calc(80% + 1.6rem); }
  .home-category__label { font-size: 8.8cqi; }
  .home-category-carousel { margin-top: 2rem; }
}
@media (max-width: 360px) {
  .home-top-stories .article-card__link { grid-template-columns: 92px minmax(0, 1fr); gap: .4rem .8rem; }
  .home-top-stories .article-card h3 { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-category, .home-category__photo img, .home-category::after, .home-hero .article-card__image img { transition: none; }
  .home-category:hover, .home-category:hover .home-category__photo img, .home-category:hover::after { transform: none; }
}

/* Reference proportions: spacious central brand, full-bleed category strip,
   and a 75% editorial column. Native block wrappers own editing controls. */
.l1t-homepage { position: relative; isolation: isolate; padding-bottom: 1px; }
.l1t-homepage::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 auto; height: min(1350px, 110vw); background: url('../assets/circuit-reference.svg') center -80px / 380px auto repeat; opacity: .11; mask-image: radial-gradient(ellipse 46% 52% at 50% 26%, #000 15%, transparent 100%); }
.l1t-homepage .home-wrap { width: min(1440px, calc(100% - 5rem), 76%); }
.home-masthead { border-bottom: 0; padding-block: 2rem; gap: 1.5rem; }
.home-intro { display: block; text-align: center; padding-block: 3rem 2rem; }
.home-intro--generous { padding-block: clamp(3rem, 5.5vw, 6.5rem) clamp(2rem, 3vw, 4rem); }
.l1t-homepage .home-intro h1 { color: var(--home-ink); font: 800 clamp(3.5rem, 7.3vw, 8.75rem)/1 Montserrat, sans-serif; letter-spacing: -.065em; text-transform: none; }
.home-intro h1 > span:first-child { color: #12afc4; }
.home-intro p { margin: .7rem 0 0; font: 700 clamp(1rem, 2.1vw, 2.25rem)/1.3 Montserrat, sans-serif; color: var(--home-ink); letter-spacing: -.035em; }
.home-component--categories { margin-block: 0 3rem; }
.home-component--categories .home-category-carousel { margin-top: 0; }
.home-component--categories .home-category-heading { width: 76%; margin-inline: auto; }
.home-component--categories .home-category-track { padding-inline: max(1rem, 12%); scroll-padding-inline: max(1rem, 12%); }
.home-density--compact { --home-category-width: clamp(260px, 28vw, 480px); }
.home-density--large { --home-category-width: clamp(310px, 42vw, 800px); }
.l1t-homepage .home-featured-title { font: 700 clamp(1.35rem, 1.8vw, 2rem)/1.3 Montserrat, sans-serif; margin-bottom: 1rem; }
.home-component--support { margin-bottom: 5rem; }
@media (max-width: 1250px) {
  .l1t-homepage .home-wrap { width: calc(100% - 4rem); }
  .home-masthead { flex-wrap: wrap; }
  .home-component--categories .home-category-heading { width: calc(100% - 4rem); }
  .home-component--categories .home-category-track { padding-inline: 2rem; scroll-padding-inline: 2rem; }
}
@media (max-width: 600px) {
  .l1t-homepage .home-wrap, .home-component--categories .home-category-heading { width: calc(100% - 2rem); }
  .home-component--categories .home-category-track { padding-inline: 1rem; scroll-padding-inline: 1rem; grid-auto-columns: calc(80% + 1.6rem); }
  .l1t-homepage::before { height: 760px; background-size: 300px; background-position: center -120px; mask-image: radial-gradient(ellipse at 50% 25%, #000, transparent 75%); }
  .home-masthead { padding-block: 1.5rem; }
}
