/* ============================================================
   prototype.css — page-specific styles for prototype.html
   Loaded alongside styles.css
   ============================================================ */

/* ---------- 01 Final design hero (large image + description) ---------- */
.hero-figure {
  margin: 1.5rem 0 0;
}

.hero-figure .frame {
  position: relative;
  aspect-ratio: 260 / 462;   /* matches the GIF's natural shape */
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.hero-figure .frame::before {
  content: "Final prototype placeholder";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  z-index: 1;
}

.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.9rem auto 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  max-width: 420px;
  text-align: center;
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 65ch;
  margin: 1.5rem auto 0;
}

/* ---------- Trio grid (3 figures + bullets) ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2rem;

  width: 100vw;
  max-width: 1500px;
  margin-left: 50%;
  transform: translateX(-50%);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
}

.trio figure { margin: 0; }

.trio .frame {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(0,0,0,0.018) 22px 23px);
  /* No overflow:hidden, no min-height — frame sizes to image's natural shape */
}

.trio img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.trio figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

/* Bullets under each trio figure */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  max-width: none;
}

.bullets li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.55em;
  line-height: 1.55;
  color: var(--ink);
  font-size: 0.95rem;
}

.bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- 04 Conclusion prose ---------- */
.prose-block {
  max-width: 62ch;
  margin: 1.5rem 0 0;
}

.prose-block p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.2em;
  max-width: none;
}

.prose-block p:last-child { margin-bottom: 0; }

/* ---------- 05 References (academic-style) ---------- */
.references {
  list-style: none;
  counter-reset: ref;
  padding: 0;
  margin: 2rem 0 0;
  max-width: none;
}

.references li {
  counter-increment: ref;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.references li::before {
  content: "[" counter(ref) "]";
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}

.ref-citation {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}

.ref-citation a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}

.ref-citation em {
  font-style: italic;
}

.ref-usage {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}

.ref-usage-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.ref-usage p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  color: var(--ink);
}

/* Stack on mobile */
@media (max-width: 720px) {
  .references li {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
  .ref-usage {
    grid-column: 2;
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 1rem;
    margin-top: 0.3rem;
  }
}

/* ---------- Mobile stacking ---------- */
@media (max-width: 720px) {
  .trio {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}