/*
 * File:     kikoworks/02_website/kikoworks.css
 * Project:  KikoWorks
 * Purpose:  Styles for the homepage, privacy page, and 404 page.
 * Author:   John Francis Sagadraca
 * Created:  2026-10-03 (first commit)
 * Notes:    Loaded after base.css.
 */
/* KikoWorks — homepage, privacy, and 404 styles.
   Loaded after base.css (tokens, fonts, header, footer). */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ── Buttons and links ── */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 0 var(--navy-deep);
}

.primary:hover {
  border-color: var(--navy);
  background: var(--navy);
}

.mango,
.light {
  border-color: var(--mango);
  background: var(--mango);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--mango-shade);
}

.mango:hover,
.light:hover {
  background: var(--mango-soft);
}

/* On the dark bands, main buttons glow like a reactor core. */
.hero .button.primary,
.contact .button {
  box-shadow: 0 4px 0 var(--mango-shade), 0 0 0 1px rgb(76 201 240 / 35%), 0 0 28px -4px rgb(76 201 240 / 55%);
}

.hero .button.primary {
  border-color: var(--blue);
  box-shadow: 0 4px 0 #0b2f6b, 0 0 0 1px rgb(76 201 240 / 45%), 0 0 30px -4px rgb(76 201 240 / 65%);
}

.hero .button.primary:hover {
  border-color: #2f74ec;
  background: #2f74ec;
}

.text-link,
.portfolio-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--mango);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.text-link:hover,
.portfolio-link:hover {
  color: var(--accent);
}

/* ── Hero ── */
.hero {
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
}

.hud-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

/* A scan line that sweeps the hero once on load (motion.js). */
.hud-scan {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, white 50%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 18px 2px rgb(76 201 240 / 70%);
  opacity: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hl {
  background: linear-gradient(transparent 62%, var(--mango-soft) 62%, var(--mango-soft) 92%, transparent 92%);
}

.hero .hl {
  background-image: linear-gradient(transparent 86%, var(--mango) 86%, var(--mango) 96%, transparent 96%);
  color: var(--mango);
}

.hero .text-link:hover {
  color: var(--cyan);
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--on-dark);
  font-size: clamp(1.06rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.microcopy {
  margin: 18px 0 0;
  color: var(--on-dark);
  font-size: 0.86rem;
}

.hero-stack {
  position: relative;
  min-height: 440px;
}

.stack-card {
  position: absolute;
  display: block;
  width: 74%;
  border: 1px solid rgb(76 201 240 / 40%);
  border-radius: 10px;
  padding: 8px;
  background: #0d2a52;
  box-shadow: 0 26px 50px -24px rgb(0 0 0 / 70%), 0 0 40px -14px rgb(76 201 240 / 45%);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.stack-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.stack-card.hud-frame::after {
  --l: 22px;
}

.stack-card:hover.hud-frame::after,
.stack-card:focus-visible.hud-frame::after {
  --c: var(--mango);
}

.stack-1 {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
}

.stack-2 {
  top: 90px;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
}

.stack-3 {
  bottom: 0;
  left: 10%;
  z-index: 2;
  transform: rotate(-1.5deg);
}

.stack-card:hover,
.stack-card:focus-visible {
  z-index: 3;
  transform: rotate(0) translateY(-6px);
}

/* ── Audience strip ── */
.audience {
  border-top: 1px solid rgb(76 201 240 / 25%);
  background: var(--navy);
  color: white;
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.audience-row span::before {
  margin-right: 10px;
  color: var(--cyan);
  content: "▸";
  font-size: 0.6em;
  vertical-align: 0.2em;
}

/* ── Sections ── */
.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

/* Light sections carry a very faint blueprint grid. */
#services,
#standards,
#process,
#free {
  background:
    linear-gradient(rgb(31 95 209 / 5%) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgb(31 95 209 / 5%) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.about-copy h2,
.contact h2,
.privacy-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ── Services ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 24px;
  background: var(--surface);
}

.service-card:nth-child(2) {
  border-color: var(--navy);
  background:
    radial-gradient(circle at 85% 0%, rgb(76 201 240 / 25%), transparent 55%),
    var(--navy);
  color: white;
}

.service-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.service-card:nth-child(2) .service-num {
  color: var(--mango);
}

.service-card h3 {
  margin: 10px 0 10px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.service-card > p {
  margin: 0;
  color: var(--muted);
}

.service-card:nth-child(2) > p {
  color: var(--on-dark);
}

.service-card ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.service-card li {
  border-top: 1px dashed var(--line);
  padding: 8px 0;
}

.service-card:nth-child(2) li {
  border-top-color: rgb(255 255 255 / 22%);
}

.service-card .price {
  margin-top: auto;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.service-card .price span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card:nth-child(2) .price span {
  color: var(--mango-soft);
}

.service-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Brackets lock onto a service card on hover. */
.service-card.hud-frame::after {
  --c: var(--blue);
  --hud-gap: 10px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.service-card:nth-child(2).hud-frame::after {
  --c: var(--cyan);
}

.service-card:hover.hud-frame::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Work bento: a dark "display case" band ── */
.work-section.hud-band .section-heading > p:last-child,
.work-section.hud-band .work-heading > p:last-child {
  color: var(--on-dark);
}

.work-section .tile {
  border-color: rgb(76 201 240 / 25%);
  color: var(--ink);
  box-shadow: 0 24px 50px -30px rgb(0 0 0 / 80%);
}

.work-section .tile:hover,
.work-section .tile:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 24px 50px -30px rgb(0 0 0 / 80%), 0 0 36px -8px rgb(76 201 240 / 55%);
}

.work-section .work-links .text-link,
.work-section .portfolio-link {
  color: white;
}

.work-section .work-links .text-link {
  color: var(--on-dark);
}

.work-section .work-links a:hover {
  color: var(--cyan);
}

.work-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 40px;
}

.work-heading > p:last-child {
  margin: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.tile {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.tile-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-wide img {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

.tile:hover,
.tile:focus-visible {
  border-color: rgb(31 95 209 / 45%);
  box-shadow: 0 20px 36px -24px rgb(var(--shadow) / 50%), 0 0 0 3px rgb(31 95 209 / 12%);
  transform: translateY(-4px);
}

/* Brackets snap in around a project on hover or keyboard focus. */
.tile.hud-frame::after {
  --c: var(--blue);
  --hud-gap: -12px;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tile:hover.hud-frame::after,
.tile:focus-visible.hud-frame::after {
  opacity: 1;
  transform: scale(1);
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.tag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--paper-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-proto {
  background: var(--mango-soft);
  color: var(--ink);
}

.tile-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tile-wide .tile-title {
  font-size: 1.8rem;
}

.tile:hover .tile-title,
.tile:focus-visible .tile-title {
  color: var(--accent);
}

.tile-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 32px;
  margin-top: 36px;
}

.portfolio-link {
  display: inline-block;
  font-size: 1.05rem;
}

.work-links .text-link {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Standards ── */
.standards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.standards {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: std;
}

.standards li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 14px;
  border-top: 1px dashed var(--line);
  padding: 14px 0;
  counter-increment: std;
}

.standards li::before {
  grid-row: span 2;
  color: var(--accent);
  content: counter(std, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.9;
}

.standards b {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.standards span {
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-panel {
  margin-top: 8px;
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 60px -36px rgb(var(--shadow) / 70%);
}

.spec-panel .eyebrow {
  margin-bottom: 8px;
}

.specs {
  margin: 0;
}

.specs > div {
  border-top: 1px solid rgb(76 201 240 / 20%);
  padding: 16px 0 14px;
}

.specs dt {
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.specs dd {
  margin: 2px 0 0;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}

.spec-num {
  color: white;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 0 22px rgb(76 201 240 / 55%);
}

.specs p {
  margin: 0;
  color: var(--on-dark);
  font-size: 0.88rem;
}

.spec-foot {
  margin: 10px 0 0;
  color: var(--on-dark);
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ── Process ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 46px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  border-top: 3px dashed var(--blue);
  padding-top: 18px;
  counter-increment: step;
}

.steps li::before {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  content: "Step " counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ── Free tools ── */
.free-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.free-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 16px;
  padding: 26px 26px 28px;
  background: var(--surface);
}

.free-kind {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.free-card h3 {
  margin: 10px 0;
  font-size: 1.6rem;
  line-height: 1.1;
}

.free-card > p:not(.free-kind) {
  margin: 0;
  color: var(--muted);
}

.free-card > p a {
  color: var(--ink);
  text-decoration-color: var(--mango);
  text-underline-offset: 4px;
}

.free-card ul {
  align-self: stretch;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.free-card li {
  border-top: 1px dashed var(--line);
  padding: 8px 0 8px 26px;
}

.free-card li::before {
  display: inline-block;
  width: 14px;
  margin-right: 12px;
  margin-left: -26px;
  color: var(--blue);
  content: "✓";
  font-weight: 700;
}

.free-card .button {
  margin-top: auto;
}

/* ── About ── */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: clamp(40px, 8vw, 100px);
}

.about-mark {
  display: grid;
  width: min(280px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(76 201 240 / 45%) 0 22%, transparent 48%),
    repeating-conic-gradient(rgb(76 201 240 / 28%) 0 4deg, transparent 4deg 30deg),
    var(--navy-deep);
  box-shadow: inset 0 0 0 10px var(--navy), inset 0 0 0 13px var(--mango), 0 0 50px -10px rgb(76 201 240 / 55%);
}

.about-mark span {
  color: white;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  text-shadow: 0 0 24px rgb(76 201 240 / 80%);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.about-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.about-copy h2 {
  margin-bottom: 22px;
  color: var(--ink);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.family-note {
  color: var(--accent);
  font-style: italic;
}

/* ── Contact ── */
.contact {
  padding: clamp(72px, 9vw, 112px) 0;
}

.contact-actions.hud-frame {
  padding: 28px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.contact h2 {
  color: white;
}

.contact-inner > div > p:last-child,
.contact-actions p {
  color: var(--on-dark);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.phone-link {
  margin-top: 22px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration-color: var(--mango);
  text-underline-offset: 6px;
}

.contact-actions p {
  margin: 16px 0 0;
  font-size: 0.9rem;
}

/* ── Privacy page ── */
.privacy-copy {
  max-width: 780px;
}

.privacy-copy > p:first-of-type {
  margin-top: 26px;
}

.privacy-copy h2 {
  margin: 42px 0 10px;
  font-size: 1.5rem;
}

.privacy-copy p {
  color: var(--muted);
}

.privacy-copy strong,
.privacy-copy a {
  color: var(--ink);
}

.privacy-copy .button {
  margin-top: 20px;
}

/* ── 404 ── */
.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
}

.not-found-copy {
  max-width: 720px;
}

.not-found-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.not-found-copy p {
  color: var(--muted);
}

.not-found-copy .button {
  margin-top: 14px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    width: min(520px, 100%);
    min-height: 400px;
    margin-inline: auto;
  }

  .service-grid,
  .free-grid,
  .standards-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-wide {
    grid-row: auto;
  }

  .tile-wide img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .hero-stack {
    min-height: 300px;
  }

  .stack-card {
    width: 68%;
  }

  .stack-2 {
    top: 60px;
  }

  .work-heading,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .work-heading {
    gap: 14px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile-wide {
    grid-column: auto;
  }

  .tile-wide .tile-title {
    font-size: 1.5rem;
  }

  .about-mark {
    width: 140px;
  }

  .about-mark span {
    font-size: 3.4rem;
  }

  .about-grid,
  .contact-inner {
    gap: 34px;
  }

  .audience-row {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stack {
    min-height: 280px;
  }
}

/* ── Motion (motion.js) ──
   Only active when motion-init.js adds .js-motion, which it skips for
   reduced-motion visitors. Movement uses the separate translate/rotate
   properties driven by CSS variables, so it adds to, not replaces, each
   element's own (hover) transform. */
.hl {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.js-motion .hero h1,
.js-motion .hero-text > *,
.js-motion .stack-card {
  opacity: 0;
  animation: motion-failsafe 0s 3s forwards;   /* shown anyway if motion.js never runs */
}

.js-motion [data-word],
.js-motion .hero-text > *,
.js-motion .rise {
  translate: 0 var(--rise, 0px);
}

/* Sticky header with a reading-progress line and a section marker. */
.js-motion {
  scroll-padding-top: 84px;
}

.js-motion .site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  transition: box-shadow 0.3s ease;
}

.js-motion .site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgb(0 0 0 / 60%);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.js-motion .site-header nav {
  position: relative;
}

.js-motion .site-header nav a:not(.nav-cta):hover {
  text-decoration: none;
}

.nav-marker {
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: 0;
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Hero: cards deal in on load, then fan apart while scrolling away. */
.hero-grid {
  perspective: 1400px;
}

.js-motion .hero-text {
  translate: 0 var(--px-y, 0px);
}

.js-motion .stack-card {
  translate: 0 calc(var(--deal-y, 0px) + var(--px-y, 0px));
  rotate: calc(var(--deal-r, 0deg) + var(--px-r, 0deg));
}

.js-motion .button {
  translate: var(--mag-x, 0px) var(--mag-y, 0px);
}

/* Audience strip drifts sideways. */
.js-motion .audience {
  overflow: hidden;
}

.js-motion .audience-row {
  translate: var(--drift, 0px) 0;
}

/* Project images drift inside their frames; the text panel sits above. */
.js-motion .tile img {
  border-bottom: 0;
}

.js-motion .tile-body {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Steps draw their top line as they scroll into view. */
.js-motion .steps.drawn li {
  border-top-color: transparent;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 16px) no-repeat 0 0 / calc(var(--draw, 1) * 100%) 3px;
  background-origin: border-box;
}

@keyframes motion-failsafe {
  to {
    opacity: 1;
  }
}

/* Printing or saving as PDF shows everything, even parts not scrolled to yet. */
@media print {
  .js-motion .hero h1,
  .js-motion .hero-text > *,
  .js-motion .stack-card,
  .js-motion [data-word],
  .js-motion .rise {
    opacity: 1 !important;
    translate: none !important;
  }
  .js-motion .site-header {
    position: static;
  }
}
