/* =====================================================================
   ATRI SYSTEMS — homepage additions to site.css
   The homepage uses the same fonts, colours, navigation, buttons and
   footer as every other page (site.css). This file only adds the hero,
   the research list and the text-and-drawing rows.
   ===================================================================== */

/* Hero: black band, like the story band on the first-ring page */
.sys-hero { background: #000; color: #F5F5F7; padding: 88px 0 16px; text-align: center; overflow: hidden; }
.sys-hero .h-hero { color: #F5F5F7; }
.sys-hero .lede-2 { color: #A1A1A6; max-width: 780px; margin: 24px auto 0; }
.sys-hero .actions { margin-top: 32px; }
.sys-hero .link { color: #2997FF !important; }
/* The planet band. Default (no WebGL, reduced motion): a still picture and the portal button. */
.sky { position: relative; background: #000; }
.sky-stage { position: relative; padding: 8px 22px 64px; text-align: center; }
.sky-canvas, .dive-veil, .sky-timeline { display: none; }
.sky-still { display: block; width: 100%; max-width: 860px; height: auto; margin: 0 auto; }
.portal { margin-top: 8px; }
/* Live: the band pins for a short scroll while the planet forms (saturn.js) */
.sky.booting * { transition: none !important; }
.sky.is-live .sky-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.sky.is-live .sky-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.sky.is-live .sky-still { display: none; }
.sky.is-live .sky-timeline { display: block; position: relative; height: 160vh; }   /* how long the sequence lasts */
.frame5-mark { position: absolute; left: 0; width: 1px; height: 1px; }
.sky.is-live .portal { position: absolute; left: 0; top: 0; margin: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.sky.is-live .portal.on { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.sky.is-live .dive-veil { display: block; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }

/* Research list */
.sys-research { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--rule); }
.sys-research li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.sys-research .n { font-size: 17px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.sys-research h3 { font-size: 21px; line-height: 1.24; font-weight: 600; letter-spacing: .011em; }
.site .sys-research p { margin-top: 6px; color: var(--ink-2); }

/* The eight beats: text beside its drawing */
.beats { padding: 40px 0; }
.beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 36px 0; }
.beat + .beat { border-top: 1px solid var(--rule); }
.beat-text { font-size: 21px; line-height: 1.48; letter-spacing: .011em; color: var(--ink); }
.beat-art { margin: 0; background: #fff; border-radius: 28px; padding: 28px 40px; }
.beat:nth-child(even) .beat-art { order: -1; }

.drawing { display: block; width: 100%; height: auto; max-height: 230px; }
.drawing .ink { fill: none; stroke: #1D1D1F; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drawing .pencil { fill: none; stroke: #AEAEB2; stroke-width: 1; stroke-linecap: round; }
.drawing .fill-paper { fill: #fff; }
.bull:not(.anim) .as-bull { display: none; }
.drawing .old-type { font-family: var(--font); font-weight: 600; font-size: 104px; letter-spacing: -0.02em; fill: #1D1D1F; }
.drawing .cal-day { font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; fill: #1D1D1F; }
.drawing .cal-year { font-family: var(--font); font-weight: 600; font-size: 40px; fill: #1D1D1F; }

/* One engine, many packs */
.site .sys-engine { margin-top: 24px; }
.actions.sys-left { justify-content: flex-start; margin-top: 36px; }

@media (max-width: 734px) {
  .sys-hero { padding-top: 64px; text-align: left; }
  .sky.is-live .sky-timeline { height: 130vh; }
  .sys-hero .actions { justify-content: flex-start; }
  .beats { padding: 32px 0; }
  .beat { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; }
  .beat-art { order: -1; padding: 20px 24px; border-radius: 18px; }
  .beat:nth-child(even) .beat-art { order: -1; }
  .beat-text { font-size: 19px; }
  .sys-research li { grid-template-columns: 40px minmax(0, 1fr); }
  .sys-research h3 { font-size: 19px; }
}
