/* Shallow, image-led destinations with one compact navigation row. */
.home-hero { padding: clamp(42px, 4.5vw, 66px) 0 24px; }
.home-hero-grid { gap: clamp(28px, 4.2vw, 60px); }
.home-hero-intro { margin-top: 18px; }
.home-hero-command { margin-top: 18px; padding-block: 9px; }
.home-hero .hero-meta { margin-top: 18px; }
.home-feature-carousel[data-ready] {
  --art-brightness: 1;
  --art-saturation: 1;
  --art-sepia: 0;
  --art-field: #292326;
  --art-ink: #f7e9d7;
  --art-highlight: #e5c885;
  --art-detail: #bd8584;
  position: relative;
  container-type: inline-size;
  display: block;
  margin-top: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--red);
  border-radius: 6px;
  background: var(--surface-solid);
}
.home-feature-viewport { position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.home-feature-track { display: flex; transition: transform .5s cubic-bezier(.22,.75,.22,1); }
.home-feature-carousel.is-dragging .home-feature-track { transition: none; cursor: grabbing; }
.home-feature-carousel.is-dragging .home-feature-link { cursor: grabbing; user-select: none; }
.home-feature-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 132px;
  overflow: hidden;
  background: var(--surface-solid);
}
.home-feature-link {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 132px;
  padding: 14px 64px 15px 22px;
  -webkit-user-drag: none;
}
.home-feature-link:focus-visible { outline: 3px solid var(--red); outline-offset: -5px; border-radius: 4px; }
.home-feature-kicker { margin: 0; color: var(--muted); font-size: .65rem; font-weight: 750; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.home-feature-title { max-width: 62%; margin: 0; color: var(--text); font: bold clamp(1.2rem, 1.7vw, 1.5rem)/1.2 var(--serif); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.home-feature-description { max-width: 53%; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.home-feature-metrics { display: flex; flex-wrap: wrap; max-width: 100%; gap: 10px clamp(22px, 4vw, 48px); margin: 3px 0 0; }
.home-feature-metrics > div { display: grid; min-width: 0; gap: 1px; }
.home-feature-metrics dt { order: 1; color: var(--muted); font-size: .68rem; }
.home-feature-metrics dd { margin: 0; color: var(--red); font: bold 1.35rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.home-feature-go { position: absolute; right: 16px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .55); border-radius: 50%; background: rgb(12 38 47 / .7); color: #fff; transform: translateY(-50%); transition: background .2s, scale .2s; }
.home-feature-go svg { width: 19px; height: 19px; }
.home-feature-link:is(:hover,:focus-visible) .home-feature-go { background: var(--red-fill); scale: 1.06; }
.home-feature-art { position: absolute; z-index: -2; inset: 0 0 0 42%; overflow: hidden; pointer-events: none; background: var(--art-field); }
.home-feature-art img {
  --frame-brightness: 1;
  --frame-saturation: 1;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: 68% 55%;
  transform: scale(1.015);
  filter: brightness(calc(var(--art-brightness) * var(--frame-brightness))) saturate(calc(var(--art-saturation) * var(--frame-saturation))) sepia(var(--art-sepia));
  transition: transform .42s cubic-bezier(.2,.7,.2,1), filter .42s ease;
}
.home-feature-slide[data-feature="notes"] .home-feature-art img { object-position: 68% 60%; }
.home-feature-slide::after { position: absolute; z-index: -1; content: ""; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--surface-solid) 0%, var(--surface-solid) 33%, color-mix(in srgb, var(--surface-solid) 95%, transparent) 45%, color-mix(in srgb, var(--surface-solid) 24%, transparent) 66%, transparent 82%); }
.home-feature-scene { position: absolute; right: 15%; top: 50%; width: min(33%, 220px); aspect-ratio: 3 / 1; transform: translateY(-50%); opacity: 0; transition: opacity .2s; }
.home-feature-scene svg { display: block; width: 100%; height: 100%; overflow: visible; stroke: color-mix(in srgb, var(--art-detail) 20%, var(--art-ink)); stroke-width: 1.4; fill: none; filter: drop-shadow(0 1px 4px var(--art-field)); }
.home-feature-scene [data-stage] { opacity: 0; }
.home-feature-slide[data-frame="1"] [data-stage="1"],
.home-feature-slide[data-frame="2"] [data-stage="2"],
.home-feature-slide[data-frame="3"] [data-stage="3"],
.home-feature-slide[data-frame="4"] [data-stage="4"] { opacity: 1; }
.home-feature-slide[data-frame]:not([data-frame="0"]) .home-feature-scene { opacity: 1; }
.home-feature-slide[data-frame="1"] .home-feature-art img { transform: scale(1.03) translateX(-.2%); --frame-saturation: 1.04; }
.home-feature-slide[data-frame="2"] .home-feature-art img { transform: scale(1.04) translate(-.4%, -.3%); --frame-saturation: 1.09; --frame-brightness: 1.02; }
.home-feature-slide[data-frame="3"] .home-feature-art img { transform: scale(1.055) translate(-.6%, -.5%); --frame-saturation: 1.12; --frame-brightness: 1.04; }
.home-feature-slide[data-frame="4"] .home-feature-art img { transform: scale(1.045) translate(-.4%, -.2%); --frame-saturation: 1.08; --frame-brightness: 1.02; }
.home-feature-footer { position: relative; display: flex; align-items: stretch; min-height: 44px; border-top: 1px solid var(--line); background: var(--surface-solid); }
.home-feature-tabs { display: flex; flex: 1; min-width: 0; }
.home-feature-tab { position: relative; flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 5px; border: 0; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
.home-feature-tab > span:first-child { display: none; }
.home-feature-tab[aria-current="true"] { color: var(--red); }
.home-feature-tab[aria-current="true"]::after { content: ""; position: absolute; inset: auto 16px 0; height: 2px; background: var(--red); }
.home-feature-tab:hover { background: var(--surface-2); color: var(--text); }
.home-feature-controls { display: flex; flex: 0 0 auto; align-items: center; padding: 0 6px; }
.home-feature-controls button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--red); cursor: pointer; }
.home-feature-controls button:hover { background: var(--surface-2); }
.home-feature-controls svg { width: 16px; height: 16px; }
.home-feature-controls button:focus-visible, .home-feature-tab:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.home-feature-picker { display: none; }
.home-feature-progress { position: absolute; inset: auto 0 0; height: 1px; pointer-events: none; transform-origin: left; background: var(--red); opacity: .35; transform: scaleX(0); }
.home-feature-carousel.is-rotating .home-feature-progress { animation: home-feature-progress 8s linear forwards; }
.home-feature-carousel.is-suspended .home-feature-progress { animation-play-state: paused; }
html[data-theme="dark"] .home-feature-carousel { --art-brightness: .86; --art-saturation: .98; }
html[data-member-theme="coding"] .home-feature-carousel { --art-field: #092319; --art-ink: #e1ffe8; --art-highlight: #b3f2c6; --art-detail: #70c996; }
html[data-member-theme="golden"] .home-feature-carousel { --art-field: #30200f; --art-ink: #fff0c6; --art-highlight: #f4ca71; --art-detail: #c39b4d; }
html[data-member-theme="blueflame"] .home-feature-carousel { --art-field: #09203c; --art-ink: #d8f5ff; --art-highlight: #a4dffa; --art-detail: #5bb6e1; }
@keyframes home-feature-progress { to { transform: scaleX(1); } }
@media (max-width: 700px) {
  .home-hero { padding-top: 36px; }
  .home-feature-link { padding: 14px 54px 15px 18px; min-height: 154px; }
  .home-feature-slide { min-height: 154px; }
  .home-feature-kicker { display: none; }
  .home-feature-title { max-width: 88%; font-size: 1.25rem; }
  .home-feature-description { max-width: 76%; font-size: .8rem; }
  .home-feature-art { left: 24%; }
  .home-feature-slide[data-feature="exponential-n"] .home-feature-art img { object-position: 30% 55%; }
  .home-feature-slide[data-feature="periodic-table"] .home-feature-art img,
  .home-feature-slide[data-feature="blog"] .home-feature-art img { object-position: 40% 55%; }
  .home-feature-slide::after { background: linear-gradient(90deg, var(--surface-solid) 0%, color-mix(in srgb, var(--surface-solid) 96%, transparent) 31%, color-mix(in srgb, var(--surface-solid) 80%, transparent) 53%, color-mix(in srgb, var(--surface-solid) 12%, transparent) 100%); }
  .home-feature-go { right: 12px; width: 32px; height: 32px; }
  .home-feature-metrics { gap: 10px 20px; }
  .home-feature-metrics dd { font-size: 1.3rem; }
  .home-feature-tabs { display: none; }
  .home-feature-picker { position: relative; display: flex; flex: 1; align-items: stretch; min-width: 0; }
  .home-feature-picker select { appearance: none; width: 100%; min-width: 0; min-height: 44px; padding: 8px 28px 8px 14px; border: 0; border-radius: 0; background: transparent; color: var(--text); font: 650 .76rem/1.4 var(--font); cursor: pointer; }
  .home-feature-picker select:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
  .home-feature-picker select option { background: var(--surface-solid); color: var(--text); }
  .home-feature-picker > svg { position: absolute; right: 9px; top: 50%; width: 12px; height: 12px; color: var(--red); pointer-events: none; transform: translateY(-50%); }
  .home-feature-controls { padding-inline: 0; }
}
@media (max-width: 360px) {
  .home-feature-link { padding-right: 46px; }
  .home-feature-title { max-width: 100%; }
  .home-feature-description { max-width: 90%; }
}
/* Enlarged text can use a second row without squeezing the selected name. */
@container (max-width: 18rem) {
  .home-feature-footer { flex-wrap: wrap; }
  .home-feature-picker { flex-basis: 100%; border-bottom: 1px solid var(--line); }
  .home-feature-controls { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-feature-track, .home-feature-art img, .home-feature-scene, .home-feature-go { transition: none; }
  .home-feature-carousel.is-rotating .home-feature-progress { animation: none; }
  .home-feature-slide[data-frame] .home-feature-art img { transform: none; --frame-brightness: 1; --frame-saturation: 1; }
}
@media print {
  .home-feature-footer, .home-feature-art, .home-feature-go { display: none; }
  .home-feature-track { transform: none !important; }
  .home-feature-slide[data-clone], .home-feature-slide:not([data-feature="notes"]) { display: none; }
  .home-feature-title, .home-feature-description { max-width: 100%; }
}
