/* Made with Ergod (made.html), on the Signal foundation (signal-site.css:
   tokens, type, .sg-wrap / .sg-eyebrow / .sg-btn). The page is
   `body.sg-page`, so the site header sits in the flow above the art band.
   The study's #/discover page is the design (journeys.css + styles.css).
   Neutral grounds and text; violet only as a small accent (eyebrow dot, the
   current-phase dot, focus rings, text links). The illustrated results keep
   their own paper colours: they are files, not page chrome. Everything
   fictional on the page carries its label beside it. */

.made-page { --art-ground: var(--paper); display: block; }
/* Zero weight, so a component's own margin (.sg-eyebrow) still applies. */
:where(.made-page) :is(h1, h2, h3, p) { margin: 0; }

/* ── Art band (the study's .wide-art.makes-art) ─────────────────────────── */
/* The band sits on the page's paper: the drawing fades into it top and bottom
   (art.css .art-fade), and the controls row below is the same paper. */
.made-art { background: var(--paper); }
.made-band-frame { --band-h: clamp(320px, 48vh, 540px); position: relative; height: var(--band-h); overflow: hidden; isolation: isolate; background: var(--paper); }
.made-band { position: absolute; inset: 0; }
/* The poster is a Build capture (800x340) framed like the renderer's still; it
   fades out when the renderer paints and stays as the no-WebGL picture. */
.made-band .made-poster { inset: auto; left: 50%; top: 50%; width: min(100%, calc(var(--band-h) * 2.353)); height: auto; aspect-ratio: 800 / 340;
  transform: translate(-50%, -50%); object-fit: cover; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
/* The study's corner note: which of the four scenes, and what it shows. */
.made-art-note { position: absolute; left: max(42px, calc((100% - 1280px) / 2 + 48px)); top: 45px; z-index: 2; display: grid; gap: 9px; max-width: 230px; color: #ebe8e6; pointer-events: none; text-shadow: 0 2px 18px #111314; }
.made-art-note::before { content: ''; width: 36px; height: 1px; margin-bottom: 6px; background: #8f8f97; }
.made-art-note span { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #c9c7cf; }
.made-art-note strong { font: 500 25px/1.12 var(--display); letter-spacing: -.04em; color: var(--ink); }
.made-art-note small { font-size: 11px; line-height: 1.5; color: #aeadb4; }

.made-art-controls { padding: 4px 24px 0; }
/* The scene choice (the study's .makes-key): quiet text pills; the chosen one
   sits on the surface with a hairline. */
.made-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.made-tab { position: relative; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 24px; background: transparent; color: var(--muted); font: 500 12px/1 var(--sans); cursor: pointer; transition: color .3s, background .3s, border-color .3s; }
.made-tab:hover { color: var(--ink); }
.made-tab.is-current { color: var(--ink); }
.made-tab.is-current::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--violet); }
.made-tab[aria-pressed="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); }
.made-tab[aria-pressed="true"]::after { display: none; }
.made-tab:focus-visible, .made-motion:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.made-tab:disabled { color: #66666d; cursor: not-allowed; }
.made-tabs-rule { width: 4px; height: 4px; margin: 0 4px; border-radius: 50%; background: var(--line); }

.made-art-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; max-width: 900px; margin: 10px auto 0; }
.made-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 550 11px/1.2 var(--sans); white-space: nowrap; }
.made-page .made-art-caption { color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.made-motion { min-height: 32px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 500 12px/1 var(--sans); cursor: pointer; }
.made-motion:hover { border-color: #55565c; color: var(--ink); }
.made-motion.is-pending { visibility: hidden; }

/* ── Intro (the study's .page-hero.product-hero) ────────────────────────── */
.made-intro { padding: 44px 0 46px; }
.made-intro .sg-wrap > * { max-width: 820px; }
.made-intro h1 { margin-bottom: 22px; font-size: clamp(42px, 5vw, 68px); }
.made-page .made-intro p:last-child { max-width: 680px; font-size: 18px; }

/* ── Sections (the study's .section + .section-heading) ─────────────────── */
.made-section { padding: 92px 0; border-top: 1px solid var(--line); }
.made-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.made-head h2 { max-width: 620px; font-size: clamp(30px, 3.6vw, 50px); }
.made-page .made-head > p { max-width: 350px; margin-bottom: 4px; }

/* The shelf of illustrated examples. */
.made-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.made-item { display: grid; gap: 3px; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.made-item:hover { transform: translateY(-3px); }
.made-item[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow); }
.made-item:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.made-item small { margin-top: 8px; color: var(--muted); font-size: 11px; }
.made-item strong { font-size: 14px; font-weight: 600; }
.made-thumb { display: block; height: 96px; overflow: hidden; border-radius: 8px; }
.made-thumb > i { display: block; height: 100%; font-style: normal; }
.t-brief { display: grid !important; align-content: start; gap: 7px; padding: 14px; background: #e3e7ef; }
.t-brief b { height: 6px; border-radius: 3px; background: #7d8aa8; }
.t-brief b:nth-child(2) { width: 78%; } .t-brief b:nth-child(3) { width: 58%; }
.t-brief em { margin-top: 14px; color: #4b5876; font-size: 10px; font-style: normal; }
.t-tool { display: grid !important; align-content: start; gap: 7px; padding: 14px; background: #efe6da; color: #5b3d17; }
.t-tool b { font: 700 22px var(--display); letter-spacing: -.03em; }
.t-tool em { height: 10px; border: 1px solid #c7ab86; border-radius: 3px; background: #fff9; }
.t-game { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; padding: 10px 18px; background: #2f3a6b; }
.t-game em { place-self: center; width: min(22px, 100%); aspect-ratio: 1; border-radius: 50%; background: #ffffff1f; }
.t-game em.a { background: #f4c95d; } .t-game em.b { background: #c2b5fa; }

.made-panel { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 34px; align-items: start; }
.made-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font-size: 11px; font-weight: 550; white-space: nowrap; }
.made-request small { display: block; margin: 22px 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.made-page .made-request h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.03em; }
.made-request ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: 13px; }
.made-request li { display: flex; gap: 8px; }
.made-request li > span { flex: none; color: var(--green); }
.made-window { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.made-bar { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.made-bar span:last-child { color: var(--muted); font-size: 10px; }
.made-body { min-height: 380px; }
.made-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 25px; margin-top: 18px; font-size: 11px; }
.made-page .made-note p { font-size: 11px; }
.made-note a { color: var(--violet); font-weight: 550; text-decoration: none; }
.made-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.made-note a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.brief { min-height: 380px; padding: 26px 28px; background: #fbfbf8; color: #262833; font-size: 13px; }
.brief small { color: #5a5f74; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.brief h4 { margin: 10px 0 12px; font: 400 24px/1.15 var(--serif); letter-spacing: -.01em; }
.made-page .brief p { color: #3a3d4a; line-height: 1.6; }
.brief-table { overflow-x: auto; }
.brief table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 12px; }
.brief th, .brief td { padding: 8px; border-bottom: 1px solid #dfe1e8; text-align: left; }
.brief th { font-size: 11px; font-weight: 650; }
.cite { padding: 0 2px; border: 0; background: none; color: #3c4fb0; font: inherit; font-size: 11px; line-height: 1; vertical-align: super; cursor: pointer; }
.cite[aria-pressed="true"] { border-radius: 3px; background: #e2e6fb; }
.cite:focus-visible { outline: 2px solid #3c4fb0; outline-offset: 1px; }
.made-page .brief .tradeoff { font-size: 12px; }
.sources { margin: 14px 0 0; padding-left: 18px; color: #555a6b; font-size: 11px; }
.sources li { padding: 4px 6px; border-radius: 4px; transition: background .3s; }
.sources .is-cited { background: #e8ebfb; color: #262833; }

.splitter { display: grid; align-content: start; gap: 14px; min-height: 380px; margin: 0; padding: 28px; background: #faf6ef; color: #2c2317; }
.splitter h4 { margin: 0; font: 600 20px var(--display); letter-spacing: -.02em; }
.splitter label { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #e6dccd; font-size: 13px; }
.splitter label span { display: flex; align-items: center; gap: 4px; padding: 0 10px; border: 1px solid #d9ccb8; border-radius: 7px; background: #fff; }
.splitter label span:focus-within { border-color: #8a5a2b; box-shadow: 0 0 0 2px #8a5a2b33; }
.splitter input { width: 90px; padding: 9px 0; border: 0; background: transparent; color: #2c2317; font: 600 16px var(--display); text-align: right; outline: none; }
.splitter i { color: #8a7658; font-style: normal; }
.splitter-result { display: grid; gap: 4px; margin-top: 6px; padding: 18px 20px; border-radius: 10px; background: #2c2317; color: #faf6ef; }
.splitter-result span { font-size: 11px; opacity: .78; }
.splitter-result strong { font: 700 34px var(--display); letter-spacing: -.03em; }
.splitter-result small { font-size: 12px; line-height: 1.45; opacity: .88; }

.four { min-height: 380px; padding: 22px; background: #1f2748; color: #eef0fb; }
.four-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.four-head h4 { margin: 0; font: 600 18px var(--display); letter-spacing: -.02em; }
.made-page .four-head p { color: #c9cdea; font-size: 12px; text-align: right; }
.four-drops, .four-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 400px; margin: 0 auto; }
.four-drops button { display: grid; place-items: center; height: 30px; border: 0; border-radius: 6px; background: #ffffff14; color: #eef0fb; font-size: 14px; cursor: pointer; }
.four-drops button:hover:not(:disabled) { background: #ffffff2e; }
.four-drops button:focus-visible, .four-new:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.four-drops button:disabled { opacity: .3; cursor: default; }
.four-board { margin-top: 6px; padding: 8px; border-radius: 12px; background: #2f3a6b; }
.four-board span { aspect-ratio: 1; border-radius: 50%; background: #161c38; }
.four-board .you { background: #f4c95d; }
.four-board .cpu { background: #c2b5fa; }
.four-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 14px; font-size: 12px; }
.four-foot span { display: flex; align-items: center; gap: 6px; }
.four-foot i { width: 10px; height: 10px; border-radius: 50%; }
.four-foot i.you { background: #f4c95d; } .four-foot i.cpu { background: #c2b5fa; }
.four-new { min-height: 36px; padding: 8px 12px; border: 1px solid #ffffff33; border-radius: 9px; background: #ffffff10; color: #eef0fb; font: 550 12px var(--sans); cursor: pointer; }
.four-new:hover { background: #ffffff1f; }

/* ── Recorded in Ergod: a separate row with its own provenance words. ───── */
.made-recorded-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.made-rec { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s; }
.made-rec:hover { border-color: #56575e; }
.made-rec-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0d0e; border-bottom: 1px solid var(--line); }
/* --rec-zoom / --rec-origin (made-page.jsx MADE_RECORDED `zoom`, `origin`)
   tighten a card's crop on the part of the capture that matters; the hover
   lift multiplies the zoom. */
.made-rec-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(var(--rec-zoom, 1)); transform-origin: var(--rec-origin, 50% 0); transition: transform .5s; }
.made-rec:hover .made-rec-image img { transform: scale(calc(var(--rec-zoom, 1) * 1.03)); }
.made-rec-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.made-rec-copy > span { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 550; line-height: 1.4; }
.made-rec-copy > span::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.made-page .made-rec-copy h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.03em; }
.made-rec-copy h3 a { color: var(--ink); text-decoration: none; }
.made-rec-copy h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.made-page .made-rec-copy p { font-size: 13px; line-height: 1.55; }
.made-rec-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 550; }
.made-rec-links a { color: var(--violet); text-decoration: none; }
.made-rec-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.made-rec a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.made-rec-text { background: var(--soft); }
.made-rec-text .made-rec-copy { justify-content: flex-end; padding-top: 28px; }
.made-page .made-rec-text h3 { font-size: 24px; }

/* ── Community gallery ──────────────────────────────────────────────────── */
.made-gallery-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.made-gallery h2 { font-size: clamp(30px, 3.6vw, 50px); }
.made-page .made-gallery p:not(.sg-eyebrow) { max-width: 440px; margin-bottom: 20px; font-size: 16px; }

/* ── Start (the study's .cta-band, on a neutral surface) ────────────────── */
.made-start { padding-top: 0; border-top: 0; }
.made-start-band { padding: 96px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: center; }
.made-start-band h2 { font-size: clamp(38px, 4.4vw, 52px); }
.made-page .made-start-band p { max-width: 560px; margin: 20px auto 28px; font-size: 16px; }
.made-start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 1180px) {
  .made-recorded-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .made-panel { grid-template-columns: 1fr; gap: 26px; }
  .made-gallery-inner { grid-template-columns: 1fr; align-items: start; gap: 20px; }
}
@media (max-width: 640px) {
  .made-band-frame { --band-h: clamp(300px, 42vh, 360px); }
  /* The note takes the band's top; the drawing sits below it (the study). */
  .made-band .made-poster { top: calc(50% + 38px); }
  .made-band > canvas { top: 76px; height: calc(100% - 76px); }
  .made-art-note { left: 20px; top: 12px; max-width: 220px; gap: 4px; }
  .made-art-note::before { margin-bottom: 2px; }
  .made-art-note strong { font-size: 18px; }
  .made-art-note small { font-size: 10px; }
  .made-art-note span { font-size: 9px; }
  .made-art-controls { padding: 4px 12px 0; }
  /* Five tabs on one row. */
  .made-tabs { gap: 2px; }
  .made-tab { padding: 8px 10px; }
  .made-tab, .made-motion { min-height: 44px; }
  .made-tabs-rule { display: none; }
  /* Room for a two-line caption, so switching scenes never moves the row below. */
  .made-page .made-art-caption { flex-basis: 100%; order: -1; min-height: 3.2em; display: flex; align-items: center; justify-content: center; }
  .made-intro { padding: 32px 0 25px; }
  .made-intro h1 { font-size: 42px; }
  .made-page .made-intro p:last-child { font-size: 16px; }
  .made-section { padding: 53px 0; }
  .made-head { display: block; margin-bottom: 27px; }
  .made-head h2, .made-gallery h2 { font-size: 34px; }
  .made-page .made-head > p { margin-top: 17px; font-size: 14px; }
  .made-shelf { gap: 8px; }
  .made-item { padding: 8px 8px 10px; }
  .made-item strong { font-size: 13px; }
  .made-thumb { height: 64px; }
  .made-body, .brief, .splitter, .four { min-height: 0; }
  .brief { padding: 20px 16px; }
  .brief table { font-size: 11px; }
  .brief th, .brief td { padding: 6px 4px; }
  .splitter { padding: 20px 16px; }
  .splitter input { width: 64px; min-height: 44px; }
  .made-rec-links a { display: inline-block; padding-block: 2px; }
  .four { padding: 16px 12px; }
  .four-head { display: grid; }
  .made-page .four-head p { text-align: left; }
  .made-bar { flex-direction: column; gap: 2px; }
  .made-note { flex-direction: column; }
  .made-note a { display: inline-flex; min-height: 44px; align-items: center; }
  .made-recorded-grid { grid-template-columns: 1fr; }
  .made-start-band { padding: 56px 22px; }
  .made-start-band h2 { font-size: 35px; }
  .made-start-actions .sg-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .made-item, .made-rec-image img, .made-tab, .sources li { transition: none; }
  .made-item:hover { transform: none; }
  .made-rec:hover .made-rec-image img { transform: scale(var(--rec-zoom, 1)); }
}
@media (max-width: 768px) { .made-tab, .made-motion { min-height: 44px; } }
