/* ==========================================================================
   Agent Jasmine (image-generation.html) · page CSS
   Loads after styles.css. Every rule is scoped under .page-jasmine and uses
   the system tokens only.
   Breakpoints follow the system: 1180, 920, 760, 600 (spreads), 520.
   ========================================================================== */

/* ---------- Hero: one photo, cropped to the model ----------
   Square on desktop so the photo sits level with the copy column; same 8px
   photo radius as the system .spread and the other Agent Jasmine pages. */
.page-jasmine .jas-hero__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 45% 50%;
  background: var(--bg-muted);
  border-radius: var(--radius-3);
}
.page-jasmine .jas-register { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 920px) {
  .page-jasmine .jas-hero__img { aspect-ratio: 3 / 2; }
}

/* ---------- Fig. 2 · Input → Output → Channels ----------
   Same drawing language as the system lifecycle: an ink rule with an iris
   square at the head of each column, a chevron into the next column, and
   stage names in the bold display grotesk (as .lifecycle__name). */
.page-jasmine .jas-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  counter-reset: jasflow;
}
.page-jasmine .jas-flow__step { counter-increment: jasflow; position: relative; padding-top: 34px; min-width: 0; }
.page-jasmine .jas-flow__step::before {
  content: ""; position: absolute; top: 9px; left: 0; right: calc(-1 * var(--col-gap));
  height: 1px; background: var(--rule);
}
.page-jasmine .jas-flow__step:last-child::before { right: 0; }
.page-jasmine .jas-flow__step::after {
  content: ""; position: absolute; top: 5px; left: 0; width: 9px; height: 9px; background: var(--mark);
}
.page-jasmine .jas-flow__step:not(:last-child) .jas-flow__name::after {
  content: ""; position: absolute; top: 6px; right: calc(-1 * var(--col-gap) + 7px);
  width: 7px; height: 7px;
  border-top: 1px solid var(--rule); border-right: 1px solid var(--rule);
  transform: rotate(45deg);
}
.page-jasmine .jas-flow__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 0.7vw, 2rem); line-height: 1.1; letter-spacing: -0.025em;
}
/* Step number: the same accent numeral as the homepage cards and the lifecycle (01, 02, 03) */
.page-jasmine .jas-flow__name::before {
  content: counter(jasflow, decimal-leading-zero); display: block; margin-bottom: 6px;
  font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; line-height: 1.4;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.page-jasmine .jas-flow__lead { margin-top: 6px; font-size: var(--fs-small); color: var(--fg-2); }
.page-jasmine .jas-flow__list { margin-top: var(--space-5); border-top: 1px solid var(--line-2); }
.page-jasmine .jas-flow__list li {
  padding: 12px 0 13px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2);
}
.page-jasmine .jas-flow__list b { color: var(--fg); font-weight: 600; }

@media (max-width: 920px) {
  .page-jasmine .jas-flow { grid-template-columns: minmax(0, 1fr); }
  .page-jasmine .jas-flow__step { padding: 0 0 var(--space-6) 30px; }
  .page-jasmine .jas-flow__step::before { top: 6px; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .page-jasmine .jas-flow__step:last-child { padding-bottom: 0; }
  .page-jasmine .jas-flow__step:last-child::before { display: none; }
  .page-jasmine .jas-flow__step::after { top: 8px; }
  .page-jasmine .jas-flow__step:not(:last-child) .jas-flow__name::after { display: none; }
}

/* ---------- Fig. 3 · Channel formats drawn to scale ----------
   Desktop: one row; each column is as wide as its aspect ratio, so every
   box comes out the same height. Narrower: wrap with a fixed box height. */
.page-jasmine .jas-channels .t-h3 { max-width: 14ch; }
.page-jasmine .jas-formats {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.667fr 0.5625fr 1.6fr 1.91fr 1.778fr;
  column-gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.page-jasmine .jas-fmt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.page-jasmine .jas-fmt__box {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: var(--ar, 1 / 1);
  border: 1px solid var(--line-3); border-radius: var(--radius-1); background: var(--bg-raised);
}
.page-jasmine .jas-fmt__box b { font-size: var(--fs-caption); font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.page-jasmine .jas-fmt__name { font-size: var(--fs-caption); line-height: 1.35; color: var(--fg-2); }
.page-jasmine .jas-fmt--1x1 { --ar: 1 / 1; }
.page-jasmine .jas-fmt--4x5 { --ar: 4 / 5; }
.page-jasmine .jas-fmt--2x3 { --ar: 2 / 3; }
.page-jasmine .jas-fmt--9x16 { --ar: 9 / 16; }
.page-jasmine .jas-fmt--16x10 { --ar: 16 / 10; }
.page-jasmine .jas-fmt--191x100 { --ar: 191 / 100; }
.page-jasmine .jas-fmt--16x9 { --ar: 16 / 9; }

@media (max-width: 1180px) {
  .page-jasmine .jas-formats {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    gap: var(--space-5) var(--space-4);
    --fmt-h: 76px;
  }
  .page-jasmine .jas-fmt { width: min-content; }
  .page-jasmine .jas-fmt__box { width: auto; height: var(--fmt-h); }
}
@media (max-width: 520px) {
  .page-jasmine .jas-formats { --fmt-h: 54px; column-gap: var(--space-3); }
  .page-jasmine .jas-fmt__box b { font-size: var(--fs-micro); }
}

/* ---------- Fig. 4 · Sample brief (flat mockup inside .ui) ---------- */
.page-jasmine .jas-brief__rows > div {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px;
  padding: 9px 16px; border-bottom: 1px solid var(--ui-soft);
}
.page-jasmine .jas-brief__rows dt { padding-top: 2px; font-size: var(--fs-micro); font-weight: 600; color: var(--ui-fg-2); }
.page-jasmine .jas-brief__rows dd { font-size: 0.8438rem; line-height: 1.5; color: var(--ui-fg); }
.page-jasmine .jas-brief__rows small {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: var(--fs-micro); color: var(--ui-fg-2);
}
.page-jasmine .jas-brief__rows small .i { width: 12px; height: 12px; }
.page-jasmine .jas-chip {
  display: inline-block; margin: 1px 4px 2px 0; padding: 0 7px;
  border: 1px solid var(--ui-line-2); border-radius: var(--radius-2);
  background: var(--ui-muted); font-size: var(--fs-micro); line-height: 1.6; white-space: nowrap;
}
.page-jasmine .jas-brief__review { padding: 14px 16px 0; }
.page-jasmine .jas-frames {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 8px;
}
.page-jasmine .jas-frames li {
  display: flex; align-items: flex-end; justify-content: space-between;
  aspect-ratio: 5 / 4; padding: 5px 7px;
  background: var(--ui-muted); border: 1px solid var(--ui-line); border-radius: var(--radius-1);
  font-size: var(--fs-micro); color: var(--ui-fg-2);
}
.page-jasmine .jas-frames .i { width: 12px; height: 12px; }
/* Approved = semantic "passed": the same Radix green as the "4 approved"
   legend (.st--ok) and the homepage score status, not the iris accent. */
.page-jasmine .jas-frames .is-ok { border-bottom: 3px solid var(--ui-ok-mark); }
.page-jasmine .jas-frames .is-ok .i { color: var(--ui-ok); }
.page-jasmine .jas-frames .is-redo { background: var(--ui-bg); border-color: var(--ui-fg); border-bottom-width: 3px; color: var(--ui-fg); }
.page-jasmine .jas-brief__count {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px;
}
.page-jasmine .jas-brief__total { margin-left: auto; font-size: var(--fs-micro); color: var(--ui-fg-2); }
@media (max-width: 520px) {
  .page-jasmine .jas-brief__rows > div { grid-template-columns: 5.25em minmax(0, 1fr); padding-inline: 12px; }
  .page-jasmine .jas-brief__review { padding-inline: 12px; }
  .page-jasmine .jas-frames { gap: 4px; }
  .page-jasmine .jas-frames li { padding: 3px 4px; }
  .page-jasmine .jas-brief__total { margin-left: 0; }
}

/* ---------- Fig. 5 · Work gallery (system .spread rows, grouped) ---------- */
.page-jasmine .jas-gallery .spread { --spread-h: clamp(240px, 25vw, 360px); }
.page-jasmine .jas-gallery__group + .jas-gallery__group { margin-top: clamp(28px, 3.4vw, 44px); }
.page-jasmine .jas-gallery__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
  margin-bottom: 12px; padding-top: 10px; border-top: 1px solid var(--line-2);
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; line-height: 1.4; letter-spacing: 0;
}
.page-jasmine .jas-gallery__head span { font-weight: 400; color: var(--fg-2); }
.page-jasmine .jas-spread--4 { --spread-cols: repeat(4, minmax(0, 1fr)); }
.page-jasmine .jas-gallery .jas-spread--4 { --spread-h: clamp(300px, 31vw, 450px); }
.page-jasmine .jas-pos-kaftan { object-position: 40% 50%; }
.page-jasmine .jas-pos-runway { object-position: 62% 50%; }
.page-jasmine .spread__item img { transition: opacity .15s ease; }
.page-jasmine a.spread__item:hover img { opacity: 0.92; }
.page-jasmine a.spread__item:focus-visible { outline-offset: 4px; }
@media (max-width: 920px) {
  .page-jasmine .jas-spread--4 { --spread-cols: repeat(2, minmax(0, 1fr)); row-gap: var(--space-5); }
  .page-jasmine .jas-gallery .jas-spread--4 { --spread-h: clamp(300px, 56vw, 520px); }
}
@media (max-width: 600px) {
  .page-jasmine .jas-gallery .spread { --spread-h: clamp(170px, 48vw, 280px); }
  .page-jasmine .jas-gallery .jas-spread--4 { --spread-h: clamp(220px, 62vw, 320px); }
}

/* ---------- Verticals: three hairline-topped columns ---------- */
.page-jasmine .jas-verticals {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap);
}
.page-jasmine .jas-verticals > li {
  display: flex; flex-direction: column; min-width: 0;
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.page-jasmine .jas-verticals h3 a {
  text-decoration: underline; text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.page-jasmine .jas-verticals h3 a:hover { text-decoration-thickness: 2px; }
.page-jasmine .jas-verticals > li > p { margin-top: 10px; color: var(--fg-2); max-width: 40ch; }
.page-jasmine .jas-verticals .checks { margin: 18px 0 22px; }
.page-jasmine .jas-verticals .arrow-link { align-self: flex-start; margin-top: auto; }
@media (max-width: 920px) {
  .page-jasmine .jas-verticals { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-7); }
}
