/* IND 703 · AI in Object Design (2026-10-11)
   Drift columns: four strips on their own clocks. The stage is PINNED while
   the page scrolls through .ind-drift, and that scroll pushes the columns;
   after it, the footer arrives like on every other page. Click a tile for
   the click view (pixel sweep in, then the video takes over).
   Tokens come from style.css + theme.css; the only hard-coded colors are
   the caption gradient + sound pill, which sit ON media. */
.ind-drift { position: relative; height: 640vh; }   /* longer runway for ten objects (10-12) */
.ind-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ind-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tokens copied from the site (theme.css / style.css) so the proto reads
   like the portfolio in both modes */


/* shared type: matches the home cards */
.tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.title { font-weight: 800; font-size: clamp(28px, 2.8vw, 44px); line-height: .98; letter-spacing: -.02em; color: var(--stone); text-wrap: balance; }
.desc { font-size: 14px; line-height: 1.5; color: var(--text-dim); max-width: 44ch; text-wrap: pretty; }

/* ── A: DRIFT COLUMNS ─────────────────────────────── */
.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.2vw, 36px); padding: 0 var(--edge); overflow: hidden;
  transition: filter .6s var(--ease-out); }
.cols.is-dim { filter: blur(14px); opacity: .5; }
.col { position: relative; }
.col__strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 36px); will-change: transform; }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--void-2); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgb(7 7 9 / 0); transition: background .35s; pointer-events: none; }
/* taller since 5 columns (10-12): captions now reach ~35% up a tile on a 14", so the shade holds
   through ~38% and only fades out by 58% */
.tile::after { background: linear-gradient(to top, rgb(7 7 9 / .86) 0%, rgb(7 7 9 / .72) 20%, rgb(7 7 9 / .4) 38%, rgb(7 7 9 / 0) 58%); opacity: 0; transition: opacity .35s; }
.tile:hover::after { opacity: 1; }
.tile__cap { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; font-size: 14px; line-height: 1.4; color: rgb(231 221 202 / .86);
  text-wrap: pretty; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .4s var(--ease-out); }
.tile__cap { font-weight: 700; }
.tile__cap b { font-weight: 800; color: #E7DDCA; }
.tile:hover .tile__cap { opacity: 1; transform: none; }


/* ── shared detail sheet ─────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 10010;   /* over the nav + mode symbol (10001) */ display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center;
  padding: 7vh 5vw; pointer-events: none; }
.sheet.is-open { pointer-events: auto; }
.sheet__scrim { position: fixed; inset: 0; background: var(--void); opacity: 0; transition: opacity .5s; }   /* solid page color: the sweep's unrevealed area must match it exactly */
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__media { position: relative; display: grid; gap: 10px; }
.sheet__stage { position: relative; }
.sheet__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); opacity: 0; transition: opacity .25s; pointer-events: none; }
.sheet__video.is-on { opacity: 1; }
/* the home hero's "play sound": bare label + speaker, on the PAGE under the
   video (it was a pill on the footage and vanished on dark frames) */
.sheet__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet__sound { flex: none; display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); transition: color .4s; }
.sheet__sound:hover, .sheet__sound:focus-visible, .sheet__sound[aria-pressed="true"] { color: var(--text); }
.sheet__sound[hidden] { display: none; }
.sheet__sound-ic { flex: none; overflow: visible; }
.sheet__sound[aria-pressed="false"] .sheet__sound-w1 { animation: indWave 2.4s ease-in-out infinite; }
.sheet__sound[aria-pressed="false"] .sheet__sound-w2 { animation: indWave 2.4s ease-in-out .3s infinite; }
.sheet__sound[aria-pressed="true"] :is(.sheet__sound-w1, .sheet__sound-w2) { opacity: 1; }
@keyframes indWave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet__sound-ic path { animation: none !important; } }
.sheet__hero { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: transparent; }
.sheet__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet__thumbs button { width: 96px; aspect-ratio: 16 / 10; border: 0; padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .5;
  transition: opacity .2s; background: var(--void-2); }
.sheet__thumbs button[aria-current], .sheet__thumbs button:hover { opacity: 1; }
.sheet__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { position: relative; }
.sheet__body .title { margin: 0 0 6px; }
/* the title is a full sentence now: the name carries the weight, the rest reads as copy */
.sheet__title { font-size: clamp(22px, 2vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; max-width: 26ch; text-wrap: pretty; }
.sheet__title b { font-weight: 800; }
.sheet__body p.b, .tile__cap { text-wrap: pretty; }
.sheet__body h4 { margin: 24px 0 6px; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.sheet__body p.b { font-size: 14px; line-height: 1.55; color: var(--text); max-width: 44ch; }
.sheet__quote { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-dim); max-width: 44ch; }
.sheet__quote blockquote { margin: 0; text-wrap: pretty; }
.sheet__quote figcaption { margin-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.sheet__quote[hidden] { display: none; }
/* the sister link: a 16:10 thumb + the sister's own hover sentence */
/* the sister row is PINNED level with the thumbnails (Ivy 10-12). The media
   column dissolves (display: contents) so the sheet is one 2x2 grid:
   stage | text, thumbs | sister. The thumbs and the sister share a row, so
   no amount of copy can move it. Its label floats above the thumb. */
.sheet { grid-template-rows: auto 60px;   /* row 2 = the 96x60 thumbs; a 3-line sister sentence may hang below, never resize it */ align-items: start; align-content: center; gap: 10px 48px; }
.sheet__media { display: contents; }
.sheet__stage { grid-column: 1; grid-row: 1; }
.sheet__row { grid-column: 1; grid-row: 2; position: relative; }   /* positioned, or the fixed scrim paints over the full-opacity (current) thumb */
.sheet__body { grid-column: 2 / 3; grid-row: 1 / 2; position: absolute;   /* BOTH edges: an absolute grid child's missing end line means the container edge */ inset: 0; padding-bottom: 28px; display: flex; flex-direction: column-reverse; }   /* 28px: the copy always clears the sister row */   /* fills the stage's cell without ever stretching that row */
/* auto margins center the copy on the image; when it's TALLER than the image
   (Feather Friend on a 14") they collapse and column-reverse lets it grow UP
   into the free space, never down into the sister row */
.sheet__copy { margin: auto 0; }
.sheet__sister { grid-column: 2; grid-row: 2; position: relative; }
/* the label lives INSIDE the row, beside the thumb, so it never reaches up into the copy */
.sheet__sister-tag { display: block; margin: 0 0 4px; font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.sheet__sister[hidden] { display: none; }
.sheet .sheet__sister-btn { display: flex; align-items: flex-start; gap: 14px; max-width: 44ch; padding: 0; border: 0; background: none; color: var(--text-dim); font: inherit; font-size: 14px; line-height: 1.55; text-align: left; cursor: pointer; transition: color .2s; }
.sheet__sister-btn img { flex: none; width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; opacity: .7; transition: opacity .2s; }
.sheet__sister-btn b { color: var(--text); font-weight: 800; }
.sheet__sister-btn:hover { color: var(--text); }
.sheet__sister-btn:hover img { opacity: 1; }
.sheet__close { position: fixed; top: 20px; right: 20px; width: 30px; height: 30px; border: 0; border-radius: 999px; cursor: pointer; padding: 0;
  background: rgb(var(--ink-rgb) / .06); color: var(--text-dim); font-size: 17px; line-height: 1; transition: background .2s, color .2s; }
.sheet__close:hover { background: rgb(var(--ink-rgb) / .12); color: var(--text); }
.sheet .sheet__stage, .sheet .sheet__row, .sheet .sheet__sister, .sheet .sheet__body, .sheet .sheet__close { opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .6s var(--ease-out); }
.sheet.is-open .sheet__stage, .sheet.is-open .sheet__row, .sheet.is-open .sheet__sister, .sheet.is-open .sheet__body, .sheet.is-open .sheet__close { opacity: 1; transform: none; }
.sheet.is-open .sheet__body, .sheet.is-open .sheet__sister { transition-delay: .08s; }

@media (max-width: 760px) {
  .cols { grid-template-columns: repeat(2, 1fr); }
  .col:nth-child(n+3) { display: none; }
  .sheet { grid-template-columns: 1fr; overflow: auto; align-content: start; padding-top: 64px; }
  .sheet__stage, .sheet__row, .sheet__body, .sheet__sister { grid-column: auto; grid-row: auto; }
  .sheet__body { position: relative; inset: auto; }
}

/* ── same corners + shadow as the project cards (Ivy, 10-11) ── */
html[data-theme="linen"] .tile { box-shadow: var(--shadow-card); }
@supports (corner-shape: squircle) {
  :root :is(.tile, .sheet__hero, .sheet__video, .sheet__thumbs button) { border-radius: var(--radius-sq); corner-shape: squircle; }
}
.sheet button { font: inherit; color: inherit; }


/* the mode symbol sits on the site's right rail, which here is the top-right
   corner of the last column, so it vanished into the photos. On this page
   only, it moves out into the right margin: ONE card gap past the last
   column, the same space that sits between the cards (Ivy 10-12). Its
   height still comes from theme.js, centered on the nav text. */
.ind-body .theme-toggle { --tt-right: calc(var(--edge) - clamp(20px, 2.2vw, 36px) - 18px); }
