/* Homepage only: sections, tiles, marquee, tape ruler and the flying section
   names. Nothing here touches the shared stylesheet. */

body{ overflow-x: clip; }
section{ scroll-margin-top: 64px; }

/* ---------- headings: the gradient, cut into the page ----------
   the fill is the shared gradient with a little grain; in the cut, the top of
   each capital is in the shadow of the edge above and the floor near the
   bottom catches the light (the bands sit at Archivo's cap top and baseline
   within the inline box). The second half is hollow like the page headings:
   an outline in the same gradient round a dark, see-through middle. */
.blk h2 a{
  background:
    linear-gradient(180deg,
      rgba(12,14,15,0) 0%, rgba(12,14,15,0) 17%,
      rgba(12,14,15,0.85) 19.5%, rgba(12,14,15,0.35) 36%, rgba(12,14,15,0.05) 60%, rgba(12,14,15,0) 100%),
    linear-gradient(rgba(12,14,15,0.08), rgba(12,14,15,0.08)),
    var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: 0;
  filter: drop-shadow(1px 2px 0 rgba(255,255,255,0.13)) drop-shadow(-2px -3px 3px rgba(0,0,0,0.95)) drop-shadow(0 0 8px rgba(0,0,0,0.7));
  transition: filter 200ms ease;
}
.blk h2 a span{ color: transparent; }
.blk h2 a .b{
  -webkit-text-stroke: 2.5px transparent;
  -webkit-text-fill-color: rgba(12,14,15,0.82);
  filter: brightness(1.35);
}
.blk h2 a:hover{ filter: brightness(1.15) drop-shadow(1px 2px 0 rgba(255,255,255,0.13)) drop-shadow(-2px -3px 3px rgba(0,0,0,0.95)); border: 0; }

/* ---------- sections ---------- */
#intro{ padding-top: 0; }
.hero-logo{ margin: 0; line-height: 0; }
.hero-logo img{ display: block; width: clamp(240px, 42vw, 440px); height: auto; margin-left: -1.5%; }
#software, #plugins, #audio, #extensions, #latest, #list{
  margin-top: 72px;
  padding-top: 72px;
  border-top: var(--rule);
}
.blk{ padding-bottom: 24px; }
.blk-n{
  display: block;
  margin: 0 0 22px;
  font: 11px/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--filings);
}
.blk h2{
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.92;
  margin: 0 0 26px;
}
.blk-lede{
  max-width: 52ch;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(216,212,204,0.78);
}

/* ---------- product tiles ---------- */
.tiles{ display: grid; gap: 18px; margin-top: 40px; }
.tiles.two{ grid-template-columns: repeat(2, 1fr); }
.tiles.three{ grid-template-columns: repeat(3, 1fr); }
.tile{
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--iron);
  border: var(--rule);
  transition: border-color 200ms ease, background 200ms ease;
}
.tile:hover{ color: inherit; border-color: rgba(216,212,204,0.34); background: var(--iron-hi); }
.tile-img{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101315;
  border-bottom: var(--rule);
}
.tile-img img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 600ms ease;
}
.tile:hover .tile-img img{ transform: scale(1.03); }
.tile-img.ph{
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(216,212,204,0.035) 0 1px, transparent 1px 14px),
    #101315;
}
.tile-img.ph span{
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--filings);
  text-align: center;
  padding: 0 18px;
}
.tile-body{ display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.tile-body h3{
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.tile-body p{ margin: 0; font-size: 15px; line-height: 1.55; color: rgba(216,212,204,0.7); flex: 1; }
.tile-meta{
  margin-top: 6px;
  font: 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--filings);
}
.tile-meta.soon{ color: var(--patina); }

/* ---------- extensions ---------- */
.ext{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 40px;
  padding: 28px 0 4px;
  color: inherit;
  border: 0;
  border-top: var(--rule);
}
.ext + .ext{ margin-top: 28px; }
.ext:hover{ color: inherit; border-top-color: rgba(216,212,204,0.34); }
.ext-icon{ width: 72px; height: 72px; border-radius: 16px; border: 1px solid rgba(216,212,204,0.16); display: block; }
.ext h3{
  margin: 0 0 10px;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
}
.ext p{ margin: 0; max-width: 60ch; font-size: 16px; color: rgba(216,212,204,0.74); }
.ext.swine .ext-icon{ width: 96px; height: 96px; border-radius: 20px; }
.ext.swine{ grid-template-columns: 96px 1fr; }
.ext.swine h3{ font-size: 40px; }
.ph-quote{
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px dashed rgba(216,212,204,0.3);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--filings);
}

@media (max-width: 900px){
  .tiles.three{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .tiles.two, .tiles.three{ grid-template-columns: 1fr; }
  .ext, .ext.swine{ grid-template-columns: 56px 1fr; gap: 16px; }
  .ext-icon, .ext.swine .ext-icon{ width: 56px; height: 56px; border-radius: 12px; }
  .ext.swine h3{ font-size: 30px; }
  .ph-quote{ font-size: 19px; padding: 16px 18px; }
}

/* ---------- reveal on scroll (only when the script is running) ---------- */
html.fx .rv{
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
  transition-delay: var(--d, 0s);
}
html.fx .rv.in{ opacity: 1; transform: none; filter: none; }

/* ---------- floating deck ---------- */
.deck .card{ translate: 0 var(--py, 0px); }

/* ---------- marquee ---------- */
.marquee{
  position: relative;
  width: 100vw;
  margin: 38px 0 0 calc(50% - 50vw);
  overflow: hidden;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.marquee-track{
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee-scroll 38s linear infinite;
}
.marquee-track li{
  flex: none;
  padding: 14px 0 13px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--filings);
  white-space: nowrap;
}
.marquee-track li::before{
  content: "\25AA";
  margin: 0 22px;
  color: rgba(216,212,204,0.35);
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee-scroll{ to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- section list: for screen readers; the flying names are the visible one ---------- */
.rail{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- tape ruler: the length of the page, scrolling with it ---------- */
.ruler, .flyer{ display: none; }

@media (min-width: 1240px){
  html.rl .ruler{
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 56px;
    z-index: 30;
    cursor: none;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    background: linear-gradient(to left, rgba(12,14,15,0.94), rgba(12,14,15,0.66));
    border-left: var(--rule);
  }
  html.rl .flyer{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
  }
}
html.rl.dragging, html.rl.dragging *{ cursor: none !important; user-select: none; }

.tape{
  position: absolute;
  left: 0; right: 0; top: 0;
}
.tape-ticks{
  position: absolute;
  inset: 0;
}
.tape-n{
  position: absolute;
  right: 24px;
  font: 9px/1 var(--mono);
  letter-spacing: 0.06em;
  color: rgba(110,118,121,0.55);
  transform: translateY(-50%);
}
.tape-sec{
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 1px solid rgba(216,212,204,0.2);
  transition: border-color 160ms;
}
.tape-sec i{
  position: absolute;
  left: 5px;
  top: 4px;
  font: normal 9px/1 var(--mono);
  color: var(--filings);
  transition: color 160ms;
}
.tape-sec.on{ border-top-color: rgba(216,212,204,0.5); }
.tape-sec.on i{ color: rgba(216,212,204,0.75); }

/* the name each section leaves on the tape */
.tape-name{
  position: absolute;
  left: 27px;
  transform-origin: 0 0;
  transform: rotate(-90deg) translateY(-50%);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  white-space: pre;
  font-kerning: none;
  color: rgba(240,237,230,0.5);
  pointer-events: none;
  transition: color 300ms;
}
.tape-name b{ font-weight: 900; }
.tape-name.on{ color: rgba(240,237,230,0.85); }

.ruler-guide{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  margin-top: -1px;
  background: var(--chalk);
  opacity: 0;
  transition: opacity 120ms;
  will-change: transform;
  pointer-events: none;
}
.ruler-guide.show{ opacity: 1; }
.ruler-guide i{
  position: absolute;
  right: 22px;
  top: -16px;
  font: normal 9px/1 var(--mono);
  color: var(--chalk);
  text-shadow: 0 0 6px var(--ink);
}

/* ---------- flying section names ---------- */
.fly{
  position: absolute;
  left: 0; top: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  white-space: pre;
  color: var(--chalk);
  text-shadow: 0 0 4px var(--ink), 0 0 12px var(--ink);
  transform-origin: 50% 50%;
}
.fly.o{
  color: transparent;
  -webkit-text-stroke: 1.4px var(--filings);
  text-shadow: none;
}
.fly-trail{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fly.past{ color: var(--filings); }
.fly.ride{ color: rgba(240,237,230,0.9); text-shadow: none; }
.fly.o.ride{ color: rgba(240,237,230,0.9); -webkit-text-stroke: 0; }
.fly.o.past{ color: transparent; -webkit-text-stroke-color: rgba(110,118,121,0.8); }
.fly-hot{
  position: absolute;
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}
.fly-hot:hover ~ .fly{ }
.fly-measure{
  position: absolute;
  left: -9999px; top: 0;
  visibility: hidden;
}
