/* ============================================================================
   generator.css — /ai-outfit-generator.html only. Loaded last.

   The landing's language (noir.css §0-§1, §10, §13): one ink ground, paper
   type, hairlines instead of filled surfaces, cobalt the only accent. The
   stage reuses the hero's look canvas idea (4:5, 18px radius, cobalt plate,
   ink-glass chips, the duotone layer) under its own .gen-* names, because
   redesign.css paints any element called .look with a surface (!important).

   Motion: transitions and keyframes here only touch opacity, transform and
   clip-path. The stage choreography itself runs in js/generator.js (Web
   Animations), which reads the same reduced-motion and tall-viewport rules.
   Nothing that ships in the HTML rests at opacity 0.
   ============================================================================ */

.gen-page {
  --paper: #f4f2ed;
  --ink: #0a0a0b;
  --ink-glass: rgba(14, 14, 18, 0.78);
  --gen-line: rgba(244, 242, 237, 0.24);
  --gen-line-soft: rgba(244, 242, 237, 0.12);
  --gen-mono-label: 400 11px/1.2 var(--font-mono);
  background: var(--bg);
}

.gen-wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.gen-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Text link: mono caps, a cobalt arrow that slides on hover. */
.gen-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: 0;
  font: var(--gen-mono-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
}
.gen-link::after {
  content: "→";
  font-size: 15px;
  letter-spacing: 0;
  color: var(--accent);
  transition: transform 320ms var(--craft-ease);
}
@media (hover: hover) {
  .gen-link:hover::after { transform: translateX(6px); }
}

/* Every focusable control on this page rings in cobalt. */
.gen-page :is(a, button, summary, input):focus-visible {
  outline: 2px solid var(--c-accent-500);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   1. The tool
   --------------------------------------------------------------------------- */

.gen-hero {
  padding: clamp(8px, 1.2vw, 20px) 0 clamp(48px, 6vw, 80px);
}

.gen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 44px;
}

@media (min-width: 992px) {
  .gen {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: start;
  }
  .gen__left {
    padding-right: clamp(36px, 4vw, 56px);
    border-right: 1px solid var(--border);
  }
  .gen__right {
    align-self: stretch;
    padding-left: clamp(36px, 4.2vw, 64px);
  }
}

/* -- Head ------------------------------------------------------------------ */
.gen-head__eyebrow { letter-spacing: 0.18em !important; line-height: 1.6 !important; align-items: baseline !important; }
.gen-head__eyebrow::before { transform: translateY(-3px); }
.gen-head__eyebrow b { font-weight: 400; white-space: nowrap; }
.gen-head__eyebrow i { font-style: normal; color: var(--accent); padding: 0 0.2em; }

.gen-head__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 3.4vw, 3.2rem);
  line-height: 0.91;
  letter-spacing: -0.003em;
  text-transform: uppercase;
  color: var(--fg);
}
.gen-head__l1 { display: block; }
.gen-head__title em {
  display: block;
  font-style: normal;
  color: var(--accent);
  text-wrap: balance;
}

.gen-head__sub {
  margin: 0 0 24px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* -- Controls -------------------------------------------------------------- */
.gen-controls { margin: 0; }

.gen-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.gen-field + .gen-field { margin-top: 18px; }

.gen-label {
  display: block;
  float: none;
  margin: 0 0 10px;
  padding: 0;
  font: var(--gen-mono-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.gen-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gen-pill {
  position: relative;
  margin: 0;
  font-weight: inherit;
  cursor: pointer;
}
.gen-pill input,
.gen-shape input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.gen-pill span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--gen-line);
  border-radius: 999px;
  font: 500 15px/1 var(--font-body);
  color: var(--fg);
  transition: background-color 120ms var(--craft-ease-io),
              color 120ms var(--craft-ease-io),
              border-color 120ms var(--craft-ease-io),
              transform 120ms var(--craft-ease-io);
}
@media (hover: hover) {
  .gen-pill:hover span { border-color: rgba(244, 242, 237, 0.6); }
}
.gen-pill:active span { transform: scale(0.97); }
.gen-pill input:checked + span {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.gen-pill input:focus-visible + span,
.gen-shape input:focus-visible + .gen-shape__tile {
  outline: 2px solid var(--c-accent-500);
  outline-offset: 3px;
}

/* Style around a piece: the app's dashed box, marked app only. A native
   <details>, so it opens without script and keeps its note in the HTML. */
.gen-piece {
  border: 1px dashed rgba(244, 242, 237, 0.3);
  border-radius: 14px;
  perspective: 600px;
}
.gen-piece__face {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px 0 16px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--fg-muted);
  border-radius: 14px;
}
.gen-piece__face::-webkit-details-marker { display: none; }
.gen-piece__face::marker { content: ""; }
.gen-piece__plus {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  transition: transform 200ms var(--craft-ease);
}
.gen-piece__plus::before,
.gen-piece__plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5.5px;
  width: 12px;
  height: 1px;
  background: currentColor;
}
.gen-piece__plus::after { transform: rotate(90deg); }
.gen-piece[open] .gen-piece__plus { transform: rotate(45deg); }
.gen-piece__tag {
  margin-left: auto;
  padding: 6px 9px 5px;
  border: 1px solid color-mix(in srgb, var(--c-accent-500) 80%, transparent);
  border-radius: 999px;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-accent-300);
}
.gen-piece__note {
  padding: 2px 16px 16px 40px;
  transform-origin: 50% 0;
}
.gen-piece__note p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.gen-piece[open] .gen-piece__note {
  animation: gen-flip 200ms var(--craft-ease) both;
}
@keyframes gen-flip {
  from { opacity: 0; transform: rotateX(-16deg) translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Weather: native range. Hairline track, paper thumb, cobalt to its left.
   --v (0..4) is written by the script; the fill follows with no transition. */
.gen-weather__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.gen-weather__row .gen-label { margin: 0; }
.gen-weather__out {
  font: var(--gen-mono-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}
.gen-range {
  --v: 0;
  --fill: calc(11px + (100% - 22px) * var(--v) / 4);
  display: block;
  width: 100%;
  height: 30px;
  margin: 6px 0 2px;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.gen-range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right,
    var(--c-accent-500) 0, var(--c-accent-500) var(--fill),
    var(--gen-line) var(--fill), var(--gen-line) 100%);
}
.gen-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--bg);
  transition: transform 120ms var(--craft-ease-io);
}
.gen-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.gen-range::-moz-range-track { height: 2px; border-radius: 2px; background: var(--gen-line); }
.gen-range::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--c-accent-500); }
.gen-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--bg);
}
.gen-page .gen-range:focus-visible { outline: none; }
.gen-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c-accent-500); }
.gen-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c-accent-500); }

.gen-hint {
  margin: 0;
  font: 400 11px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}
.gen-hint--noscript { margin-top: 12px; }

/* Primary action: paper fill, ink text. A cobalt hairline sweeps under it
   while the looks are matched. */
.gen-go-wrap { margin-top: 22px; }
.gen-go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 16px/1 var(--font-body);
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 120ms var(--craft-ease-io), opacity 160ms var(--craft-ease-io);
}
.gen-go:active { transform: scale(0.985); }
.gen-go:disabled {
  background: transparent;
  border-color: var(--gen-line);
  color: var(--fg-subtle);
  cursor: not-allowed;
  transform: none;
}
.gen[data-state="matching"] .gen-go { cursor: progress; }
.gen-sweep {
  position: relative;
  display: block;
  height: 2px;
  margin: 10px 26px 0;
  overflow: hidden;
}
.gen-sweep i {
  position: absolute;
  inset: 0;
  background: var(--c-accent-500);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.gen-brief {
  min-height: 1.4em;
  margin: 12px 0 0;
  font: var(--gen-mono-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-subtle);
}
.gen-brief b { font-weight: 400; color: var(--fg); }
.gen-brief i { font-style: normal; color: var(--accent); }

/* -- Stage ----------------------------------------------------------------- */
.gen-stage {
  --look-h: min(58vh, 560px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: calc(var(--look-h) * 0.8);
  max-width: 100%;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .gen-stage {
    position: sticky;
    top: var(--stage-top, 116px);
  }
}
@media (max-width: 991px) {
  .gen-stage { width: min(100%, 520px); scroll-margin-top: 104px; }
}

.gen-look {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  container-type: inline-size;
  isolation: isolate;
  color: var(--paper);
}
@media (min-width: 768px) {
  .gen-look { box-shadow: 18px 0 0 0 var(--c-accent-500); }
  .gen-stage { padding-right: 18px; box-sizing: content-box; max-width: calc(100% - 18px); }
}

.gen-look__photo,
.gen-look__mono,
.gen-look__veil {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
}
.gen-look__photo {
  z-index: 0;
  background: #0e0e12;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9);
}
.gen-look__photo img,
.gen-look__mono img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.gen-img { opacity: 0; }
.gen-img.is-on { opacity: 1; }

/* Duotone: grayscale photo under a cobalt colour blend. Rests clipped away;
   the script opens and clears it. */
.gen-look__mono {
  z-index: 2;
  isolation: isolate;
  clip-path: inset(0 0 100% 0);
}
.gen-look__mono img { filter: grayscale(1) contrast(1.15) brightness(0.85); }
.gen-look__duo {
  position: absolute;
  inset: 0;
  background: var(--c-accent-500);
  mix-blend-mode: color;
}

/* Garment tags: ink-glass chips, roughly where each layer sits on the body
   (the lists run outer layer, top, bottom, shoes). */
.gen-look__tags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.gen-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  max-width: 46%;
  padding: 0.75em 1.05em 0.7em 0.9em;
  border-radius: 999px;
  background: var(--ink-glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  font: 400 max(9px, 2.05cqw)/1.15 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.gen-tag::before {
  content: "";
  flex: 0 0 auto;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--c-accent-500);
  box-shadow: 0 0 0 0.3em color-mix(in srgb, var(--c-accent-500) 30%, transparent);
}
.gen-tag span { overflow: hidden; text-overflow: ellipsis; }
.gen-tag--0 { top: 22%; left: 5%; }
.gen-tag--1 { top: 40%; right: 5%; }
.gen-tag--2 { top: 62%; left: 5%; }

.gen-look__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  height: 1px;
  background: var(--c-accent-500);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--c-accent-500) 70%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* Veil: the brief card while choosing. Empty in the
   HTML; filled and faded by the script. */
.gen-look__veil {
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9cqw 8cqw 8cqw;
  background:
    linear-gradient(to top, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.72) 48%, rgba(10, 10, 11, 0.38) 100%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.gen-look__veil:empty { display: none; }

.gen-veil__k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 3.4cqw;
  font: 400 max(9.5px, 2.1cqw)/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.72);
}
.gen-veil__k::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--c-accent-500);
}
.gen-veil__lead {
  margin: 0 0 1.2cqw;
  font: 400 max(13px, 3.2cqw)/1.2 var(--font-serif);
  font-style: italic;
  color: rgba(244, 242, 237, 0.8);
}
.gen-veil__big {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17cqw;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
}
.gen-veil__big i { font-style: normal; color: var(--accent); }
.gen-veil__big--ask { font-size: 12.5cqw; }
.gen-veil__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4cqw 3.6cqw;
  margin: 3.4cqw 0 0;
  padding: 3cqw 0 0;
  border-top: 1px solid rgba(244, 242, 237, 0.2);
  font: 400 max(10px, 2.3cqw)/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.62);
}
.gen-veil__meta b { font-weight: 400; color: var(--paper); }

.gen-look__folio {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  margin: 0;
  padding: 7px 11px 6px;
  border-radius: 999px;
  background: var(--ink-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 400 10px/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  pointer-events: none;
}

/* -- Body shape strip: glyph + one-line label; only the active one framed -- */
.gen-shapes {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.gen-shapes__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.gen-shape {
  position: relative;
  display: block;
  margin: 0;
  font-weight: inherit;
  cursor: pointer;
}
.gen-shape__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 2px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--fg-subtle);
  transition: border-color 180ms var(--craft-ease-io), color 180ms var(--craft-ease-io);
}
.gen-shape__tile svg {
  width: 22px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-linecap: round;
  overflow: visible;
}
.gen-shape__tile .g-thin { stroke-width: 1.5; transition: opacity 180ms var(--craft-ease-io); }
.gen-shape__tile .g-bold { stroke-width: 2.5; opacity: 0; transition: opacity 180ms var(--craft-ease-io); }
.gen-shape__name {
  font: 500 11px/1.2 var(--font-body);
  white-space: nowrap;
}
@media (hover: hover) {
  .gen-shape:hover .gen-shape__tile { color: var(--fg-muted); }
}
.gen-shape input:checked + .gen-shape__tile {
  border-color: rgba(244, 242, 237, 0.42);
  color: var(--fg);
}
.gen-shape input:checked + .gen-shape__tile .g-thin { opacity: 0; }
.gen-shape input:checked + .gen-shape__tile .g-bold { opacity: 1; }

/* -- The look's title and the honest line under it ------------------------- */
.gen-meta { padding-top: 2px; }
.gen-meta__title {
  margin: 0 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 500 clamp(1.3rem, 1.9vw, 1.55rem)/1.2 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.gen-meta__note {
  margin: 0;
  font: 400 11px/1.5 var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--fg-subtle);
}

/* -- The next two matches, locked: blurred, darkened, one line and the badge -- */
.gen-locked:empty { display: none; }
.gen-locked {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: 92px;
  margin-top: 4px;
  /* One continuous blurred panel, so the line and badge never sit across a seam. */
  overflow: hidden;
  border-radius: 12px;
}
.gen-locked__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0e0e12;
}
.gen-locked__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: blur(18px) brightness(0.58) saturate(1.1);
  transform: scale(1.25);
}
.gen-locked__over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 16px;
  pointer-events: none;
}
.gen-locked__over a { pointer-events: auto; }
.gen-locked__line {
  font: 400 11px/1.3 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.gen-locked .app-store-badge img { height: 40px; width: auto; }

/* ---------------------------------------------------------------------------
   2-6. Static sections
   --------------------------------------------------------------------------- */

.gen-sec {
  padding: var(--sec-pad) 0;
  border-top: 1px solid var(--border);
}

.gen-h2 {
  max-width: 17ch;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.004em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--fg);
}
.gen-h2 em { font-style: normal; color: var(--accent); }

.gen-lede {
  max-width: 60ch;
  margin: 0 0 clamp(32px, 4vw, 52px);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* 2. Three moves: columns under one hairline. */
.gen-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.gen-steps li {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 34px) clamp(20px, 2.4vw, 32px) 0;
}
.gen-steps li:first-child { padding-left: 0; }
.gen-steps li + li { border-left: 1px solid var(--border); }
.gen-steps__n {
  display: block;
  margin: 0 0 16px;
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
}
.gen-steps h3 {
  margin: 0;
  font: 600 19px/1.35 var(--font-body);
  color: var(--fg);
}
.gen-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-muted); }

/* 3. What it considers: a two-column hairline table. */
.gen-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.gen-table__col { min-width: 0; padding: clamp(24px, 2.8vw, 34px) clamp(20px, 3vw, 44px) 0; }
.gen-table__col:first-child { padding-left: 0; }
.gen-table__col + .gen-table__col { border-left: 1px solid var(--border); }
.gen-table__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font: var(--gen-mono-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.gen-table__col + .gen-table__col .gen-table__head { color: var(--fg); }
.gen-table__col + .gen-table__col .gen-table__head::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.gen-table__list { margin: 0 0 28px; }
.gen-table__list > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.gen-table__list dt { margin: 0; font: 600 16px/1.4 var(--font-body); color: var(--fg); }
.gen-table__list dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-muted); }

/* 4. Six sample looks. */
.gen-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 64px) clamp(24px, 3vw, 40px);
}
.gen-card { min-width: 0; margin: 0; }
.gen-card__media {
  position: relative;
  margin: 0 0 20px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--c-neutral-50);
}
.gen-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 700ms var(--craft-ease);
}
@media (hover: hover) {
  .gen-card:hover .gen-card__media img { transform: scale(1.025); }
}
.gen-card__folio {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 11px 6px;
  border-radius: 999px;
  background: var(--ink-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 400 10px/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.gen-card__title {
  margin: 0 0 8px;
  font: 500 clamp(1.3rem, 1.8vw, 1.55rem)/1.15 var(--font-serif);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.gen-card__tags {
  margin: 0;
  font: 400 10.5px/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.gen-card__tags span { color: var(--accent); padding: 0 0.3em; }
.gen-after {
  max-width: 70ch;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* In-copy links: paper text, cobalt underline. */
.gen-after a,
.gen-vs__foot a:not(.app-store-badge),
.gen-faq a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
@media (hover: hover) {
  .gen-after a:hover,
  .gen-vs__foot a:not(.app-store-badge):hover,
  .gen-faq a:hover { color: var(--c-accent-300); }
}

/* 5. Web tool vs app: three hairline rows. */
.gen-vs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.gen-vs li {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--border);
}
.gen-vs h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--fg);
}
.gen-vs p { margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.6; color: var(--fg-muted); }
.gen-vs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.gen-vs__foot p { margin: 0; font-size: 16px; color: var(--fg-muted); }

/* 6. FAQ: the hairline list from faq.html. */
.gen-faq { max-width: 880px; border-top: 1px solid var(--border); margin-top: clamp(24px, 3vw, 36px); }
.gen-faq__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(20px, 2.6vw, 28px) 0;
  border-bottom: 1px solid var(--border);
}
.gen-faq__item h3 {
  margin: 0 0 10px;
  font: 600 clamp(1.05rem, 1.6vw, 1.2rem)/1.35 var(--font-body);
  color: var(--fg);
}
.gen-faq__item p { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.65; color: var(--fg-muted); }

/* 7. Closing band: poster type, one cobalt word, a low cobalt bloom. */
.gen-close {
  padding: var(--sec-pad) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background-color: var(--bg);
  background-image: radial-gradient(70% 60% at 50% 115%,
    color-mix(in srgb, var(--c-accent-500) 30%, transparent), transparent 70%);
}
.gen-close .sec-eyebrow { justify-content: center; }
.gen-close__title {
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--fg);
}
.gen-close__title em { font-style: normal; color: var(--accent); }
.gen-close p:not(.sec-eyebrow) {
  max-width: 50ch;
  margin: 0 auto 30px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.gen-close .app-store-badge { display: inline-block; }

/* Footer on the same ink as the page (noir.css §0). */
.gen-page .walsh-content-wrapper-white-2 { background-color: var(--bg) !important; }

/* ---------------------------------------------------------------------------
   Tablets and phones
   --------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .gen-head__title { font-size: clamp(2.6rem, 9.4vw, 4rem); }
  .gen-head__sub { max-width: 46ch; }
  .gen-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gen-table { grid-template-columns: minmax(0, 1fr); }
  .gen-table__col { padding-left: 0; padding-right: 0; }
  .gen-table__col + .gen-table__col { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 767px) {
  /* Phones: fewer, larger things with room around them. */
  .gen-page { --sec-pad: 88px; }
  .gen-wrap { width: calc(100% - 44px); }
  .gen-hero { padding: 16px 0 80px; }
  .gen { row-gap: 64px; }

  .gen-head__sub { font-size: 17px; line-height: 1.6; margin-bottom: 36px; }
  .gen-field + .gen-field { margin-top: 32px; }
  .gen-label { margin-bottom: 14px; }
  .gen-pills { gap: 10px; }
  .gen-pill span { min-height: 46px; height: auto; padding: 0 20px; font-size: 16px; }
  .gen-piece__face { min-height: 56px; font-size: 15px; }
  .gen-go-wrap { margin-top: 36px; }
  .gen-go { height: 58px; font-size: 17px; }
  .gen-brief { margin-top: 16px; line-height: 1.6; }

  .gen-stage { gap: 18px; }
  .gen-shape__tile { padding: 9px 0 8px; }
  .gen-meta__note { font-size: 10.5px; letter-spacing: 0; white-space: nowrap; }
  .gen-locked { height: 132px; }
  .gen-locked__over { flex-direction: column; gap: 12px; }

  .gen-sec { padding: var(--sec-pad) 0; }
  .gen-h2 { margin-bottom: 24px; }
  .gen-lede { font-size: 17px; line-height: 1.6; margin-bottom: 40px; }

  .gen-steps { grid-template-columns: minmax(0, 1fr); }
  .gen-steps li { padding: 28px 0; }
  .gen-steps li + li { border-left: 0; border-top: 1px solid var(--border); }

  .gen-table__list > div { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .gen-table__list dd { font-size: 16px; line-height: 1.6; }
  .gen-vs li { grid-template-columns: minmax(0, 1fr); padding: 28px 0; gap: 10px; }
  .gen-vs p { line-height: 1.6; }
  .gen-vs__foot { margin-top: 40px; }

  /* Sample looks: a snapping rail of large cards instead of six photos stacked. */
  .gen-cards {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 84%;
    gap: 20px;
    margin: 0 -22px;
    padding: 0 22px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 22px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .gen-cards::-webkit-scrollbar { display: none; }
  .gen-card { scroll-snap-align: start; }
  .gen-after { line-height: 1.6; margin-top: 48px; }

  .gen-faq__item { padding: 28px 0; }
  .gen-faq__item p { line-height: 1.6; }
  .gen-close p:not(.sec-eyebrow) { line-height: 1.6; }
}

/* ---------------------------------------------------------------------------
   Reduced motion and very tall viewports (noir.css §16): every transition on
   the page is instantaneous. js/generator.js applies the same rule to the
   stage choreography.
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce), (min-height: 1501px) {
  .gen-page *,
  .gen-page *::before,
  .gen-page *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
}
