/* The deck: fifteen slides, one per kind of person, jobs as pictures.
   Nothing here is shared with the research reader on purpose. That is a
   document to be read; this is a deck to be shown, so the rules are the
   opposite: one idea a slide, few words, and the detail hidden until asked
   for. Everything scales off the viewport rather than a text measure.      */

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { background: var(--page); color: var(--ink-1); font-family: var(--font-text); }
#deck { --gut: clamp(20px, 5vw, 92px); }

/* ---- a slide ---- */
.slide {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(78px, 11vh, 104px) var(--gut) clamp(34px, 6vh, 66px);
  border-top: 1px solid var(--hairline); scroll-snap-align: start;
}
.slide:first-child { border-top: 0; }
.kick {
  font: 600 clamp(11px, 1vw, 13px)/1 var(--font-text); letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 clamp(10px, 1.6vh, 20px);
}
.big {
  font: 700 clamp(38px, 6.4vw, 104px)/0.98 var(--font-display);
  letter-spacing: -.04em; margin: 0; max-width: 15ch; text-wrap: balance;
}
.sub {
  font: 400 clamp(17px, 2.1vw, 30px)/1.28 var(--font-text); color: var(--ink-2);
  margin: clamp(14px, 2.4vh, 30px) 0 0; max-width: 26ch; letter-spacing: -.015em;
}

/* ---- cover ---- */
.cover .big { max-width: 13ch; }
.cover-figs { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 76px);
  margin-top: clamp(30px, 6vh, 64px); }
.fig-n { font: 700 clamp(30px, 4.4vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.fig-l { font: 400 clamp(12px, 1.15vw, 16px)/1.35 var(--font-text); color: var(--muted);
  max-width: 17ch; margin-top: 6px; }
.scrollcue { margin-top: clamp(26px, 5vh, 54px); font: 400 13px/1 var(--font-text);
  color: var(--muted); display: flex; align-items: center; gap: 9px; }
.scrollcue i { display: block; width: 1px; height: 26px; background: var(--muted);
  animation: cue 1.9s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .2; transform: scaleY(.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---- the chooser: ten rooms ---- */
.rooms { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr;
  gap: clamp(8px, 1vw, 16px); margin-top: clamp(18px, 3vh, 40px); flex: 1; min-height: 0;
  max-height: 62vh; }
.room { display: flex; flex-direction: column; gap: 7px; cursor: pointer; min-height: 0;
  background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.room-pic { position: relative; flex: 1; min-height: 74px; border-radius: 10px; overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--hairline); transition: transform .18s, border-color .18s; }
.room:hover .room-pic { transform: translateY(-3px); border-color: var(--c); }
.room b { font: 650 clamp(11px, 1.05vw, 15px)/1.2 var(--font-display); letter-spacing: -.015em; }
.room span { font: 400 clamp(10px, .92vw, 13px)/1.25 var(--font-text); color: var(--muted); }

/* ---- a group slide: a name, a line, and three or four big titles ---- */
/* No pictures here. The complaint that killed the earlier version was right:
   a picture on every row makes the eye work before it has read anything, and
   from the back of a room the title is the only thing that carries. */
.ghead { flex: none; margin-bottom: clamp(10px, 2vh, 26px); }
.ghead .big { max-width: 18ch; font-size: clamp(34px, 5.4vw, 82px); }
.ghead .sub { margin-top: clamp(10px, 1.6vh, 18px); max-width: 30ch;
  font-size: clamp(16px, 1.8vw, 26px); }

.list { display: flex; flex-direction: column; justify-content: center;
  flex: 1; min-height: 0; }
.row { display: flex; align-items: baseline; justify-content: space-between;
  gap: clamp(16px, 3vw, 48px); width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: none; padding: clamp(11px, 1.9vh, 26px) 0;
  border: 0; border-top: 1px solid var(--hairline);
  transition: border-color .18s ease; }
.row:last-child { border-bottom: 1px solid var(--hairline); }
.row b { font: 700 clamp(26px, 4.1vw, 62px)/1.03 var(--font-display); letter-spacing: -.038em;
  transition: color .18s ease, transform .18s ease; text-wrap: balance; }
.row em { font-style: normal; white-space: nowrap; color: var(--muted);
  font: 400 clamp(13px, 1.35vw, 20px)/1.2 var(--font-text); font-variant-numeric: tabular-nums;
  transition: color .18s ease; }
.row .go { opacity: 0; margin-left: 6px; transition: opacity .18s ease; }
.row:hover { border-top-color: var(--c); }
.row:hover + .row { border-top-color: var(--c); }
.row:last-child:hover { border-bottom-color: var(--c); }
.row:hover b { color: var(--c); transform: translateX(clamp(4px, .6vw, 10px)); }
.row:hover em { color: var(--ink-2); }
.row:hover .go { opacity: 1; }

/* ---- the closing route ---- */
.route { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 22px);
  margin-top: clamp(20px, 4vh, 44px); }
.stop { border-top: 2px solid var(--hairline); padding-top: 12px; }
.stop.on { border-top-color: var(--s6); }
.stop i { font-style: normal; font: 700 clamp(20px, 2.4vw, 34px)/1 var(--font-display);
  letter-spacing: -.03em; color: var(--muted); }
.stop.on i { color: var(--s6); }
.stop b { display: block; font: 700 clamp(13px, 1.25vw, 18px)/1.18 var(--font-display);
  letter-spacing: -.02em; margin-top: 8px; }
.stop span { font: 400 clamp(11px, 1.02vw, 14px)/1.3 var(--font-text); color: var(--muted); }

/* ---- the detail sheet ---- */
.sheetback { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: clamp(12px, 3vw, 40px);
  background: color-mix(in srgb, var(--page) 62%, #000); backdrop-filter: blur(7px);
  animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
body.locked { overflow: hidden; }
.sheet { position: relative; width: min(940px, 100%); max-height: 90svh; overflow: auto;
  background: var(--page); border: 1px solid var(--hairline); border-radius: 20px;
  padding: clamp(22px, 3.4vw, 46px); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface-1);
  color: var(--ink-2); cursor: pointer; font: 400 17px/1 var(--font-text); }
.sheet-x:hover { color: var(--ink-1); border-color: var(--muted); }
.sheet-top { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(18px, 2.6vw, 34px);
  align-items: center; }
.sheet-pic { aspect-ratio: 3/2; border-radius: 14px; overflow: hidden; position: relative;
  background: color-mix(in srgb, var(--c) 10%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.sheet-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet h2 { font: 700 clamp(26px, 3.6vw, 46px)/1.02 var(--font-display); letter-spacing: -.035em;
  margin: 0; text-wrap: balance; }
/* one line saying what the job is, one saying what AI changed, then the label */
.sheet .what { font: 400 clamp(17px, 1.85vw, 26px)/1.28 var(--font-text); color: var(--ink-1);
  letter-spacing: -.02em; margin: 12px 0 0; max-width: 40ch; }
.sheet .now { font: 400 clamp(14px, 1.35vw, 19px)/1.35 var(--font-text); color: var(--ink-2);
  margin: 10px 0 0; max-width: 46ch; padding-left: 13px;
  border-left: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.sheet .who { font: 400 clamp(11.5px, 1.05vw, 14px)/1.35 var(--font-text); color: var(--muted);
  margin: 12px 0 0; }
/* pills, not chips: fiai-styles.css already owns .chip as an 8px colour swatch */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(18px, 2.6vh, 28px) 0 0; }
.pill { border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 14px;
  font: 400 13px/1.2 var(--font-text); color: var(--ink-2); background: var(--surface-1); }
.pill b { font-weight: 650; color: var(--ink-1); }
.pill.acc { border-color: color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, var(--surface-1)); }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px) clamp(20px, 3vw, 44px); margin-top: clamp(20px, 3vh, 32px); }
.block.wide { grid-column: 1 / -1; }
.who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.who-list li { font: 400 clamp(13.5px, 1.2vw, 16px)/1.35 var(--font-text); color: var(--ink-1);
  padding-left: 15px; position: relative; }
.who-list li::before { content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.block h3 { font: 600 11px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; }
.block p { font: 400 clamp(14px, 1.25vw, 17px)/1.45 var(--font-text); margin: 0; color: var(--ink-1); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.steps li { display: flex; gap: 11px; font: 400 clamp(14px, 1.25vw, 17px)/1.4 var(--font-text); }
.steps i { font-style: normal; flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
  font: 650 12px/21px var(--font-text); text-align: center; }
.sheet-foot { margin-top: clamp(18px, 2.6vh, 28px); padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font: 400 12.5px/1.5 var(--font-text); color: var(--muted); }

/* ---- the rail ---- */
.rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 9px; }
.rail a { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline);
  transition: background .2s, transform .2s; }
.rail a:hover { background: var(--muted); transform: scale(1.4); }
.rail a.on { background: var(--ink-1); transform: scale(1.3); }

/* ---- narrow ---- */
@media (max-width: 1000px) {
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .route { grid-template-columns: repeat(2, 1fr); }
  .sheet-top { grid-template-columns: 1fr; }
  .sheet-pic { max-width: 200px; }
  .blocks { grid-template-columns: 1fr; }
  .rail { display: none; }
}
@media (max-width: 620px) {
  .rooms { grid-template-columns: repeat(2, 1fr); max-height: none; flex: none; }
  .room-pic { aspect-ratio: 4/3; flex: none; }
  .slide { min-height: auto; padding-top: 80px; padding-bottom: 56px; scroll-snap-align: none; }
  .list { flex: none; }
  .row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---- the drawings ---- */
/* Two drawings survive, and only where a picture earns its place: the ten
   rooms on the chooser, which is a menu and reads faster as pictures, and one
   motif in a job's detail sheet. The slides themselves carry no pictures. */
.mo .f1 { fill: var(--ink-1); opacity: .12; }
.mo .f2 { fill: var(--ink-1); opacity: .26; }
.mo .fa { fill: var(--c); }
.mo .s1 { fill: none; stroke: var(--ink-1); opacity: .32; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.mo .sa { fill: none; stroke: var(--c); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.mo .fp { fill: var(--page); }
.mo .sp { fill: none; stroke: var(--page); stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round; }
.mo text { font-family: var(--font-display); font-weight: 800; }
.mo .tp { fill: var(--page); }
.mo .tf { fill: var(--ink-1); opacity: .26; }

.sc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc .bg { fill: var(--surface-1); }
.sc .wall { fill: var(--hairline); opacity: .45; }
.sc .light { fill: var(--ink-1); opacity: .05; }
.sc .desk { fill: var(--ink-1); opacity: .17; }
.sc .under { fill: var(--ink-1); opacity: .07; }
.sc .obj { fill: var(--ink-1); opacity: .24; }
.sc .scr { fill: var(--page); }
.sc .txt { fill: var(--ink-1); opacity: .3; }
.sc .fig { fill: var(--ink-1); opacity: .62; }
.sc .acc { fill: var(--c); }
.sc .accs { fill: var(--c); opacity: .38; }
.sc .ln { stroke: var(--ink-1); stroke-width: 1.2; fill: none; opacity: .32; stroke-linecap: round; }
.sc .accln { stroke: var(--c); stroke-width: 1.5; fill: none; stroke-linecap: round; }
